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
2
votes
0 answers

rs-485 USB to RS485 C code

#include #include /* File Control Definitions */ #include /* POSIX Terminal Control Definitions */ #include /* UNIX Standard Definitions */ #include…
2
votes
2 answers

STM32 - RS485 request-response

I am trying to send request to measuring device and receive it's response using UART with interrupts. However communication is unstable, I am receiving incomplete or corrupted responses. I am not sure but I think it's because switching driver enable…
V.CHR.
  • 31
  • 1
  • 6
2
votes
1 answer

Connection to RS485 device via ethernet converter

I have device (electric meter) with unspecified protocol with RS-485. I have some documentation about what messages I can send to get some readings. Goal is to write some Java app to get readings via RS-485 <=> Ethernet converter. For example here…
Alexey Bugerya
  • 461
  • 1
  • 4
  • 11
2
votes
0 answers

RS485 doesn't receive data

I have some nodes that are connected to a server with RS485. I use stm32f103 microcontroller with MAX485 in nodes. We use modebus connection. The driver is connected to a nano pi m3 as server. The baudrate is 115200. The problem is that sometimes…
N. Parsa
  • 21
  • 1
2
votes
0 answers

c serial programming as intermediaries

I am doing a project now to listen to the data between a PROFIBUS network that is between a master and slave. The setup would be that the master would be connected to Raspberry Pi and the Raspberry Pi would be connected to the slave. So far, I am…
2
votes
2 answers

ModBUS RTU with CC430F6137

I wrote a code to communicate via ModBUS RTU for Master device with 9600 baudrate. I downloaded a Simulation Program which is ModBUS Slave. I could communicate with PC by this way. I could read Input Register with my microcontroller. I downloaded…
Mustafa
  • 147
  • 1
  • 12
2
votes
2 answers

RS485: Inappropriate ioctl for device

I am using the following code to access the RS485 slave but I get the error: Error reading ioctl port (25): Inappropriate ioctl for device My code is as follows: #include #include int fd = open ("/dev/ttyUSB0",…
Jim Andrews
  • 43
  • 1
  • 7
2
votes
1 answer

how to discover two or more slaves using bacnet demo servers and bacnet demo client?

I am using Bacnet stack(0.8.3) in order to develop a Bacnet MSTP client. Initially, I run the demo server and read property client through MSTP. It's working. https://sourceforge.net/projects/bacnet/ Now, I am trying to run two different servers…
P. Vijay
  • 21
  • 1
2
votes
0 answers

Linux 8250 RS485 RTS Troubleshooting

I have learnt a lot from reading these forums, so I wanted to ask a question myself. I am working on an embedded Linux device that that is using the Linux 4.7 Kernel on the Xilinx Zynq platform. I am having trouble getting the RS485 part of the 8250…
2
votes
1 answer

extracting payload from slave in minimalmodbus python

I am using minimalmodbus to communicate with micro motion flow meter which uses rs485 protocol and i am using usb-rs485 converter. The micro motion modbus documentation is give here.…
2
votes
0 answers

Profibus-DP interface & library for Arduino/Pi?

I'm somewhat stuck with a prob: I have a measuring-transducer Profibus-DP Master-device here that reads probe-values (eg. temperature) and I need to get those values into a Pi or Arduino. The Device is able to do Profibus-DP, PA and Hart. I am right…
Phish
  • 43
  • 1
  • 10
2
votes
2 answers

RPI with multiple pics over rs485 - CCS compiler

I am Trying to delpoy rpi3 as a master, pic as slave, and rs485 as a network medium. The rpi loops over slaves' ids, it sends them one by one, and waits for a reply from the specified slave (pic). Every pic reads the received data (address) and…
Galilo Galilo
  • 519
  • 5
  • 22
2
votes
2 answers

MinimalModbus IO error

I'm trying to communicate to a custom board via Modbus RTU-half duplex RS-485 connection from my windows machine (windows 10). I'm using the python MinimalModbus API and have all the dependent libraries installed. I also have the proper RS-422/485…
CompMan
  • 57
  • 2
  • 6
2
votes
3 answers

Does anyone have any sample code or suggestions to help me to interface my 100 pin uc3a1512to a device via RS-485?

I am attempting to connect and control a device which only accepts RS-485 input. I wish to communicate to this device via my existing UC3A1512. Does anyone have any existing source code or examples that may help me to create this interface? I need…
Michael Eakins
  • 4,149
  • 3
  • 35
  • 54
2
votes
1 answer

Proper way using timeouts with serial port and ReadAsync

I have used serial port with its original methods like BytesToRead, Read and Write before. As it is said that these are unreliable and I had a lot busy waiting I am trying to switch to its asynchronous methods. I need to read from serial port with 2…
user3447279
  • 89
  • 11
1 2
3
21 22