Questions tagged [rs485]

RS-485 (aka TIA-485-A, ANSI/TIA/EIA-485, TIA/EIA-485, EIA-485) is a standard defining the electrical characteristics of drivers and receivers for use in digital serial communications systems. Electrical signaling is balanced, and multipoint systems are supported.

RS-485 does not define a protocol; merely an electrical interface. Although many applications use RS-485 signal levels, the speed, format, and protocol of the data transmission are not specified by RS-485. Interoperability of even similar devices from different manufacturers is not assured by compliance with the signal levels alone.

RS-485 standard similar to but with an important addition, RS-485 uses a balanced line (an simple electrical method for rejecting inducted noise) which enables it to run either at higher speed or longer distance.

The RS-485 differential line consists of two pins:

  • A, which is low for logic 1 and high for logic 0.
  • B, which is high for logic 1 and low for logic 0.

Simple RS-485 half-duplex connection

In addition to the A and B connections, the EIA standard also specifies a third interconnection point called SC, which is the common signal reference ground. This connection may be used to limit the common-mode signal that can be impressed on the receiver inputs. This third signal is the reference potential used by the transceiver to measure the A and B voltages.

RS-485 drivers use three-state logic allowing individual transmitters to be deactivated. This allows RS-485 to implement linear bus topologies using only two wires. The recommended arrangement of the wires is as a connected series of point-to-point (multidropped) nodes, i.e. a line or bus, not a star, ring, or multiply connected network.

More Information:

https://en.wikipedia.org/wiki/RS-485

Polarities for Differential Pair Signals RS-422 and RS-485

Guidelines for Proper Wiring of an RS-485 (TIA/EIA-485-A) Network

325 questions
1
vote
1 answer

How to solve Bad File Descriptor for Linux and Modbus

I am trying to setup a Half Duplex RS-485 communication using libmodbus on a Raspberry Pi running Raspian Buster, with a FTDI USB to Serial adapter. My FTDI adapter shows as ttyUSB0 when I run ls /dev/. I tried the following sample code: #include…
Michel Feinstein
  • 13,416
  • 16
  • 91
  • 173
1
vote
1 answer

Serial RS485 / RS232 communication with TDK-Lambda ZUP very slow only in Linux

In our experiment, we use many ZUP power supplies to power up the electronics. The exact models are TDK-Lambda ZUP80-2.5 and ZUP6-33. They are remotely controlled and monitored by a server running Linux. The problem is that the serial communication…
1
vote
1 answer

RS485 Communication Problem with Specific Hardware

I have a communication problem with RS485 that I am not sure which component or thing is problematic. I will define some cases, which some works and others not. I have four different components, USB - RS 232 Converter RS232 - RS485…
HVK
  • 23
  • 7
1
vote
1 answer

Is there any way to control uart rx fifo size in linux programmaticaly

I'm writing software to communicate with badly designed hardware. This hardware can communicate with linux pc (kernel 4.15) by RS485 line (9600 8N1) and it has very short timings: pc should reply in 2ms after receiving request from device. I was…
Alexandr Shutko
  • 1,857
  • 2
  • 20
  • 27
1
vote
1 answer

Decode Data From Hex and LRC

Hi i am having the following Rs485 data in that i know the value but unable to decrypt the data i am tried in taking 2's compliment but it comes to close but not get the correct data 3A 30 31 30 33 30 32 30 31 38 42 36 45 0D 0A in above rs 485 data…
Sathish
  • 199
  • 1
  • 11
1
vote
2 answers

RS485 support in pxa255

I want to use rs485 placed on my card. I'm working on arm-linux and with pxa255 processor. I have already checked "serial.h" located in arm-linux tool chain but unfortunately i couldn't find the appropriate rs485 settings struct although it is…
thetux4
  • 1,583
  • 10
  • 25
  • 38
1
vote
1 answer

Ubuntu mate Python using PySerial via RS485 half duplex transmit problems

Problems communicating with Modbus devices via USB to rs485. so I am using some python 3.5 and am using the PyModbus, PySerial and my code is based on the PyModbus serial example and under windows it works fine and communicates to the Modbus device…
Robert
  • 41
  • 5
1
vote
1 answer

Manipulating RS ports with the Windows API

I am trying to understand how to use the Windows API to communicate with RS232/RS422. I need to interface to some hardware where I don't really have control of the communication protocol, so I am forced to work with this. I need to set the TX + (pin…
joe
  • 11
  • 2
1
vote
1 answer

RS-485 bus multiple sensors

I will keep it short I ave been searching for an definitive answer but can't find one. I am using a RS-485 breakout board (pictured below) for a sensor connected to an arduino. I now want to add another sensor to this project so do I need another…
Ll N
  • 19
  • 5
1
vote
1 answer

SerialDevice IsRequestToSendEnabled Raspberry Pi

I am programming with vb and have a UWP project using a Raspberry Pi. When I use a USB to RS485 converter I can use the IsRequestToSendEnabled from SerialDevice to sync communication between the Raspberry and the PLC, but when I try to use the UART,…
Leo Magno
  • 13
  • 2
1
vote
0 answers

Timeout in PySerial behavior different from version 2.7 to 3.x

I'm working with BeagleBones Black Rev C from some time, and i use a lot UARTs interfaces (RS-232 and RS-485), and some time ago i start using the pyserial module 3.4, and i notice some difference in timeout behavior. So in the module 2.7, when i…
1
vote
0 answers

Arduino to Arduino Modbus RTU in RS-485

I'm trying Arduino to Arduino (master-slave) communication using Modbus RTU protocol in RS-485. I am using an Arduino Mega 2560 for the project and using this library Modbus RTU. As of now, the master simply reads data slave and prints in the Serial…
Nithin Varghese
  • 893
  • 1
  • 6
  • 28
1
vote
2 answers

Can I read Modbus RS485 data received on a slave computer with Python?

I am working on a slave computer and want to save the data transmitted from the master via Modbus RS485, into a text file. The master computer constantly send writing and reading request to the slave computer I am working on, below is a picture…
Yang
  • 177
  • 4
  • 20
1
vote
2 answers

Connecting RS485 output to Raspberry Pi[Android Things]

Just started working on Raspberry Pi with Android things, have a sensor that gives output through RS485 cables, I want to feed that output to Raspberry Pi, explored but got no proper solution for the same, If anyone had done this kind of stuff…
ABI
  • 1,536
  • 18
  • 38
1
vote
1 answer

Modbus RTU slave RS-485 failed to response

I'm trying to write modbus slave and have one problem: I'm correctly receive requests from master, but when I try to response it's look like something is incorrectly sended to serialport, because when I plug RS485 sniffer - I see both req and res…
Disminder
  • 51
  • 5