K8056 + arduino

Hello,

I am trying to control a k8056 8 channel relay card from an arduino microcontroller. I use a max232 adapter to (TTL -> RS232).
Normaly to switch the first relay, the string is:
K8056.exe IRP_MJ_WRITE Serial0 SUCCESS Length 20: 0D 01 53 31 6E 0D 01 53 31 6E 0D 01 53 31 6E 0D 01 53 31 6E
I do a code to generate the same by arduino but it doesn’t work.
To debug, I connect arduino to my PC, launch hyperterminal and record trace:
hypertrm.exe IRP_MJ_READ Serial0 TIMEOUT Length 8: 0D 01 53 31 6E 0D 01 53
hypertrm.exe IRP_MJ_READ Serial0 TIMEOUT Length 8: 31 6E 0D 01 53 31 6E 0D
hypertrm.exe IRP_MJ_READ Serial0 TIMEOUT Length 4: 01 53 31 6E

Why K8056 can’t detect this string ?

Thanks for your help

Make sure baudrate and settings are correct.
Make sure time between two code strings is correct.
Make sure code strings are repeated the required number of times.

Hello,
Thanks for your reply but the baudrate is OK, the test code is the following to switch the first relay is the follwing:

void setup()
{
Serial.begin(2400);
}

int relayon[] = {13, 01, 83, 49, 110, 13, 01, 83, 49, 110, 13, 01, 83, 49,
110, 13, 01, 83, 49, 110};
int i;
void loop()
{
for (i = 0; i < 20; i = i+1) {
Serial.print(relayon[i],BYTE);
delay (5);
}
delay (5000);
}

Sorry, we are not familiar with this programming language.