problem in using serial rs232
hi!
i'm have problem in using rs232. i'm using arduino mega 2560 interface between 2 device through rs232.
my problem in reading sequence 13-byte in hex .
i need 13-byte sequence device sends me through serial3, need first 2 bytes of sequence , play on variable , return confirmation string first 2 bytes correct.
but besides problem have problem bytes read getting accumulated, generating errors in reading, how can solve these problems?
i'm have problem in using rs232. i'm using arduino mega 2560 interface between 2 device through rs232.
my problem in reading sequence 13-byte in hex .
i need 13-byte sequence device sends me through serial3, need first 2 bytes of sequence , play on variable , return confirmation string first 2 bytes correct.
but besides problem have problem bytes read getting accumulated, generating errors in reading, how can solve these problems?
if want communicate proper rs232 system need max232 or equivalent between , arduino convert voltage levels. rs232 voltage levels may damage arduino.
and have not posted program have no idea other problems there might be.
and when posting code please use code button </>
...r
and have not posted program have no idea other problems there might be.
and when posting code please use code button </>
code: [select]
so code looks this
and easy copy text editor see how use forum...r
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > problem in using serial rs232
arduino
Comments
Post a Comment