I am trying to write some data to two serials ports (SerialUSB and Serial1 on D5/D10 pins on IDC). The output on the SerialUSB upon monitoring from serial monitor shows good values where as on setting the serial monitor on Serial1 shows all garbled values as below.
I tried reversing the TX/RX pins then the output stops completely.
OnSerial1: 20:18:11.097 -> Ri6럍⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮E⸮⸮
On SerialUSB: 20:19:07.931 -> [-0.109;-0.109;-0.109;-0.109;0.00;0.00;]
Hi, i'm not sure how you you are getting the RS232 signal into your Serial Monitor; if you want to read Serial TTL signals with your laptop, the easiest way is to get a simple TTL-to-USB converter, they used to be FTDI but now there are some cheaper alternatives. It's a very handy tool to debug serial modules (gsm, gps, wifi, bluetooth), you don't need to go over RS232.
Ok, so here is what I was doing wrong. If anyone have had the same issue, this would be a solution. (It was very basic, and my bad for not reading the instructions carefully).
- The Serial ports D0/D1 or D5/D10 use TTL, hence a RS232 TTL conversion is necessary. Most of the converters use a MAX232 chip to make the necessary conversion. After patching the connections (TX,RX,+,GND) the data was clear and readable on the serial monitor. The one is tested with is this: https://www.rhydolabz.com/wireless-zigbee-xbee-c-130_133/xbee-explorer-rs232-p-482.html?zenid=3euqktusq1rf0g0iho53j025s1
(The above product is for XBee but the TX/RX pins on the chipset are connected via the MAX232 chip to the RS232 port)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!