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
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.