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
0
votes
1 answer

RS485 bus on raspberry pi extension board to DMX 512 protocol

For my thesis I need to change brightness and color of LED stripes. In my case i have to use a raspberry pi with an raspberry pi extension board, because this board supports the RS485 bus system. I need to reprogramm the RS485 bus to DMX512…
0
votes
2 answers

Converting uint8_t to int issues

I am trying to communicate with a usb dongle via serial communication. My communication works, however I cant get the device to correctly parse the communication. My devices reads the message and compares it with a hardcoded c-string. It parses and…
Ronin
  • 93
  • 1
  • 2
  • 11
0
votes
0 answers

How do i implement an Android native library into my android project? Specifically the biemmeIOdemo Library

I am developing an app that needs to read data from a modbus RTU slave device connected through RS485. The only place online that i could find a solution to this problem is here. http://www.biemmeitalia.net/libraries/install.html The link to the…
0
votes
0 answers

RS485 in point-to-point communication

I'd like to achieve TCP over RS485 in point-to-point communication. Due to the hardware, I cannot use RS232. I don't have any equipment yet so I cannot not test anything. In Linux, can I use slattach process with e.g SLIP protocol to transmit and…
aako
  • 1
  • 2
0
votes
2 answers

Linux poll on serial transmission end

I'm implementing RS485 on arm developement board using serial port and gpio for data enable. I'm setting data enable to high before sending and I want it to be set low after transmission is complete. It can be simply done by writing: //fd =…
peku33
  • 3,628
  • 3
  • 26
  • 44
0
votes
1 answer

Python serial write - lost bytes

I'm trying to send 9 bytes through a serial port (tested with RS232, RS485) with Python 2.7 pySerial package. If I write out the bytes to the serial port, some of the bytes randomly get lost (do not arrive on the receiving end). If I use a 1…
balas
  • 216
  • 3
  • 11
0
votes
1 answer

writing signals to serial port

I am trying to write data to a DMX receiver via USB to RS485 cable. I can see the correct data frames, but for the packet to follow the DMX protocol, I need a break and MAB signal. So my question is, is there a way to generate such signals? My…
Gmann45
  • 21
  • 3
0
votes
2 answers

How to receive data properly from Mbus in C#?

I have really terrible problem that makes me almost sick. For 2-3 days, I've been dealing with this protocol issue and i find myself here to get some help from you guys. I hope I'll be solving. Thanks in advance. I had code in Vb that uses Old…
Destroy
  • 73
  • 1
  • 9
0
votes
1 answer

Multi threading in Modbus? How can send query at 500 ms keeping response time as 1 second?

I have implemented MODBUS master slave communication. I have implemented fun 6, 16 & 3. I set 1 minute as response time. Now problem is that I want to send query at 500 ms. But because of this 1 second response time, I need to wait till 1 sec to…
kapilddit
  • 1,729
  • 4
  • 26
  • 51
0
votes
0 answers

Decode scrambled UART bytes from serialport RS485

I'm connecting two PCs (one Windows, one Linux) with two RS485 Adapters (A,B,C wire). The problem is.. although both devices are set identically to "19200 8N1" ... I cannot get a working connection, because the bytes arrive in only one direction and…
Hhut
  • 1,128
  • 1
  • 12
  • 24
0
votes
0 answers

Half Duplex RS485 linux Serial USB Programing in C

I'm trying to setup half duplex communication in Ubuntu 14.04 in my program. I have my RS485 transceiver using the RTS line to toggle back and forth between transmit and receive. I'm using a speak when spoken to system and this program is the…
user3753729
  • 1
  • 1
  • 3
0
votes
1 answer

RS485 Breackout and Arduino Uno rev.3

hi to all i have this strange problem,i have two scenario, in first scenario i have a energy meter, i use this shield enter link description here, i can read data from energy meter. all work well. in second scenario i have a energy meter i use…
Ant
  • 281
  • 1
  • 4
  • 19
0
votes
1 answer

Serial port configuration in Wince 6.0

I'm using WinCE 6.0 device for serial communication. It has 4 serial ports, of which I'm using 2, one is for RS232 and the other is for RS485. serial port configured with RS232 is working fine but for RS485 communication is not working below is the…
user1586695
  • 39
  • 1
  • 9
0
votes
1 answer

RS485: simple and reliable protocol

I'm trying to design a simple and reliable master/slaves protocol for a 2-wires RS485 bus. All the nodes on the bus have a unique address. One node is the master that is the only node that is able to start communications. All other nodes can't send…
pozzugno
  • 750
  • 6
  • 19
0
votes
2 answers

Control RTS line when communication via RS-485 serial

I'm trying to communicate over the serial interface RS-485 on a Linux machine with kernel 2.6.39. I'm using this breakout board together with the pySerial module. When I write something via the interface often my data gets corrupted. On the product…
OrangeTux
  • 11,142
  • 7
  • 48
  • 73