Testing RS232 protocol data using USB to Arduino


hi all,

first time caller long time listener :)

i looking build software communicates piece of hardware not have in possession @ time, hardware uses serial connector utilising rs232 protocol. want start writing code desktop application dont have hardware test data sending difficult hoping substitute arduino receive data via standard arduino usb connection hope of turning on , off light or outputting data serial monitor... possible to:

1) send/receive rs232 data via standard pc->usb->arduino ?

2) make sense @ prototype , has got examples of doing chance ?

the difference between signals @ rx , tx pins of arduino , proper rs232 connection voltage levels. use max232 convert between arduino's ttl voltage levels , higher rs232 voltage levels. there should no need change in code.

how plan connect arduino other device? using arduino spare hardwareserial ports (such mega or micro) make things easier because use usb connection pc debug messages. use softwareserial create serial port on uno second-best option.

you should check if rs232 device needs signals on of control lines such dtr , rts (never sure which) arduino usart not handle them. can emulate them program.

...r


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Testing RS232 protocol data using USB to Arduino


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor