Skip to main content
12 votes

Major difference between DTR signal and RTS signal?

DTS and RTS are used on esp8266 boards with USB (Wemos, NodeMcu) to reset the board and to set io 0 low for bootloader mode. You can see it in source code of esptool.py. Sometimes you want a reset ...
Juraj's user avatar
  • 18.1k
11 votes
Accepted

Major difference between DTR signal and RTS signal?

Electrically they are both the same. The difference is what they are used for. DTR means Data Terminal Ready and indicates that the connected device is ready to receive data. Data Terminal Ready (...
Majenko's user avatar
  • 105k
6 votes
Accepted

Read serial with header and end marker

The short answer to your question is “yes, there is a way”. Multiple ways actually. You could write a blocking function, which follows more or less the logic of the example you show, blocking while ...
Edgar Bonet's user avatar
  • 43.3k
4 votes
Accepted

Pressure Gauge analog reading via RS232

You have a misconception, which signals get's outputted where. If you want to simply read the analog signal of the sensor, you need to use the "control" connector. There you can find the analog signal ...
chrisl's user avatar
  • 16.3k
4 votes
Accepted

How to read from and write to rs232 device from/to Arduino

You didn't show how you connected the MAX3232, so I cannot say anything about that. But I can write something about your code and how the data gets received on the PC. On the PC: Here it is important ...
chrisl's user avatar
  • 16.3k
3 votes
Accepted

How to send IR data from Arduino to USB-TTL

You are transmitting data by encoding it using one of probably many Sony Consumer Remote Control formats and expecting to decode it using one of many possible RS232 like formats. You will likely get ...
st2000's user avatar
  • 7,350
3 votes

How do I connect Arduino to RS232 via USB?

This is effectively not workable. USB is not a peer-to-peer standard, but a host/device one. Both your Arduino and the USB-serial converter are intended to be devices, so they cannot communicate. ...
Chris Stratton's user avatar
3 votes

Slice byte-stream into bit pieces

Note: This is an answer that OP originally edited into his question. I gather the data into an array of bytes data[125]. Then I gather the relevant bytes per value and stack them together: long var ...
3 votes

Send data to Programmable Power supply from Arduino by RS232

First you will need a TTL to RS-232 adaptor. These are most commonly known as the "MAX232" and is available as a little module. This will convert the 0-5V TTL signal the Arudino produces ...
Majenko's user avatar
  • 105k
3 votes
Accepted

Arduino unable to read 0x41 and 0x42 (reads others just fine (ICT bill acceptor)

The default for Arduino Serial is 8 data bits, no parity, one stop bit. The first page of your linked documents says: Start bit 1, Data bit 8, Parity bit Even, Stop bit 1. The mismatched parity ...
Mappy Wilks's user avatar
2 votes
Accepted

Interfacing to scale over RS-232

The solution turned out to be a couple of things, some of which mentioned by others in the comments. Problems that needed to be fixed: My level-shifter was a huge part of the problem. I switched to ...
Michael Molter's user avatar
2 votes

Connect to Arduino 2560 using a RS232 Connection

Yes, perfectly possible. You need an RS-232 interface chip - the most common and well-known of these is the MAX232. You can get them as breakouts on eBay. That interfaces between the DB9 and pins 0/...
Majenko's user avatar
  • 105k
2 votes

Arduino-RS232 converter baud rate problem

It is never good to base code on delays instead of intervals. This is especially true for faster intervals where the execution of the code its self consume a significant portion of the interval. ...
st2000's user avatar
  • 7,350
2 votes

Arduino to read from RS232 converter to TTL serial module (updated)

You need to disconnect the Arduino`s RX and TX pins from any device before trying to upload a sketch via USB, because the Serial data is directly wired from the USB chip to these pins. It's as if you'...
Maximilian Gerhardt's user avatar
2 votes
Accepted

Reading Arduino Serial Input

From the manual: http://dmx.ohaus.com/WorkArea/showcontent.aspx?id=4294974226 The balance will return “ES” for invalid commands. Check to make sure you're using the correct serial parameters that ...
jdwolf's user avatar
  • 366
2 votes

unable to read RS232 output on Arduino mega with MAX232 shield

I have solved the above and will share the answer as it may be of help to others: As the Tx indicator LED on the RS232 shield would not light up when connected to the sensor, I checked the voltage ...
Joost Keuskamp's user avatar
2 votes
Accepted

Arduino GPS Simulator: SoftwareSerial Issues

First off, some comments about your code: Never use String unless it is absolutely unavoidable Unless you have a free() to balance your malloc() you will run out of memory almost immediately There is ...
Majenko's user avatar
  • 105k
2 votes
Accepted

Joy-IT RS232 Shield and RS232 voltage levels

Yes, that shield will handle the level shifting for you. If you look closely at the images of the shield, you see the MAX232 chip, which is a commonly used chip for getting UART (which is the Serial ...
chrisl's user avatar
  • 16.3k
2 votes

How to read from and write to rs232 device from/to Arduino

Hi and welcome to the wonderful world of Arduino. It appears that you have picked-up Arduino with ease. Your program is almost there. Your wiring connection diagram looks to be correct. When I am ...
sa_leinad's user avatar
  • 3,188
2 votes

I cannot communicate using RS232 between Arduino and Lakeshore Fluxmeter. How do I get data back from the fluxmeter?

You are lacking the line terminators from your serial writing. As it says in the manual: Terminators are fixed to CRLF. And in the example code (the Quick Basic is probably the easiest to follow): ...
Majenko's user avatar
  • 105k
2 votes

Arduino unable to read 0x41 and 0x42 (reads others just fine (ICT bill acceptor)

The default for Arduino Serial is 8 data bits, no parity, one stop bit. The first page of your linked documents says: Start bit 1, Data bit 8, Parity bit Even, Stop bit 1. The mismatched parity ...
6v6gt's user avatar
  • 1,053
1 vote

Major difference between DTR signal and RTS signal?

As a counter point, industrial systems utilize the UART protocol at much higher rates - 10 Mbits for example. RTS/CTS can prove very useful when a large data set is being received at a higher rate. ...
KLeisses's user avatar
1 vote

Is there any option to connect XDTouch IrTouchScreen to Arduino?

Looks like your touch screen may talk RS-232. It uses the SP232EEN (a MAX232 clone) to interface with an MCU (Cypress CY7C63803) to get USB. Connect wires to T1 IN and R1 OUT (I assume it's on ...
Majenko's user avatar
  • 105k
1 vote

Serial Port configuration with asio C++ library

Can you include all the other calls you make related to setting up the serial port along with asio::serial_port_base::baud_rate(baudios)? Ideally, split that out into a separate function (that takes ...
cjs's user avatar
  • 594
1 vote

How do I connect Arduino to RS232 via USB?

Any network of USB devices involves a single host talking to many slave devices. The typical connection to program an Arduino board is, on the USB side: PC (USB Host) <-> USB Cable <-> ...
cjs's user avatar
  • 594
1 vote

RS232-TTL Data Transmission

I think you just want a normal USB A-B cable, exactly like you'd use on a PC. You probably could use the cable you picture, but you'd need a female DB-9 connector. If you really want to do that for ...
Mark Smith's user avatar
  • 2,181
1 vote

Arduino-RS232 converter baud rate problem

This Arduino sketch is a wonderful opportunity for you to learn the very basics of serial communication. You should be very careful scaling the constants given in any baud rate program (whether using ...
Jack Creasey's user avatar
1 vote

Sparkfun OpenLog both lights flashing

If the OpenLog's RX pin is held low for too long at startup, it'll reset to 9600 baud to attempt to recover. A bad rs232-ttl converter could cause this, if the RX pin was being held low. If you need ...
rsaxvc's user avatar
  • 121
1 vote
Accepted

Sparkfun OpenLog both lights flashing

The problem with the circuit was a bad rs232-ttl converter. Not sure how that messed up the openlog, but replacing it fixed the problem. In the photo above, D1 on the converter is an led which should ...
marcp's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible