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

Java - jSSC library and RTS Signal doesn´t active/desactivate

I am using jSSC library and I need to implements the RTS signal because I need to conenct to some RS-485 clients so I use this signal for DE/RE of a SN75176. The problem is when I active or deactive the RTS signal, I have a LED between the MAX232…
0
votes
1 answer

Receiving an input string using MAX485 breakout block for Arduino Uno

I am attempting to use my arduino uno's rx and tx pins to receive an ASCII character string from an rs485 device transmitting at 2400 BAUD with 0.100Sec between transmissions, and then parse and output certain pieces of the string to a 16x2 LCD…
GoJo2332
  • 31
  • 2
  • 4
0
votes
2 answers

Packet Error Check Codes

I am programming an RS-485 protocol on a PIC micro controller and Linux computer. I was originally thinking about using CRC8 to check incoming data, however it looks like this would be a processor intensive task. Instead I was thinking of a more…
Reid
  • 4,376
  • 11
  • 43
  • 75
0
votes
1 answer

Receive RS485 Commands via C#

I have been googling and haven't found any code to help me with this, maybe I missed something? I want to receive RS485 commands. At the moment I am just receiving rubbish. Here is my current code although I don't think it would help: //C#…
M.R. Inc
  • 19
  • 1
  • 3
0
votes
2 answers

How can I install Hjelmslund USB485 in debian

As the title says! I can read info from the device with "dmesg" and see it when "lsusb" but how do I attach/install it as for example dev/ttyUSB2
Christian
  • 1,548
  • 2
  • 15
  • 26
0
votes
1 answer

Two LPC1765 devices communicating through RS-485

I'm trying to implement a simple communication between two LPC1765 devices using RS-485. I'm using this example added to my menu system (it's a basic example for…
wolf9000
  • 141
  • 1
  • 9
0
votes
1 answer

Connect an Ipad to a controller

I need to run an application in my ipad which has to talk wirelessly to a controller. The controller communicates on serial as well as RS485 port. It doesn't have a wifi adapter. What are the options for me to do this ? One thought is, I have to buy…
0
votes
1 answer

Create serial port device file

I need to develop a test program, which sends and recieves data from terminal to the serial port. In order to do that I want to create virtual device file and work with it. I did that by using command: mknod -m 666 ttyS32 c 4, 500 The device file…
mol
  • 2,607
  • 4
  • 21
  • 40
-1
votes
0 answers

I need to find the baud rate a software uses to display some data

I have a software(.exe file) that runs and captures data on RS485 link. I am unable to determine the baud rate at which it is capturing data. Have tried all basic baud rates from 1600-9600 and above that too but all I receive is garble data. Any way…
-1
votes
1 answer

rs 485 communication problem between 2 Arduinos

I am a novice to Arduino. I came across an article on rs 485 and currently trying to implement the same between 2 arduino unos. I copied code from internet which is pretty simple but I am unable to make communication work properly. Here is the code…
-1
votes
1 answer

RS485 interface in C

I would like to access a reader from my Raspberry PI. It is connected to my Raspberry PI via an Ethernet cable and has an RS485 interface. Can anyone help me accomplish this task and suggest me steps to establish communication between the devices? I…
-1
votes
4 answers

Arduino MODBUS RTU communication Delay?

There is a problem in writing the MODBUS RTU code using Arduino. First, the communication was successful. However, communication is performed in the order of request -> request -> response -> request -> request -> response. Please refer to the video…
-1
votes
1 answer

C linux: Serial communication lost some first bytes when receive data

I'm working on Linux system that using modbus rtu RS485 to send and receive data. My device is master and just send "request latest data"(8Bytes include 2Byte CRC) to slaver (from now is only 1 slaver) every 1second. when Slaver receive request,…
user1234
  • 25
  • 9
-1
votes
1 answer

Problems reading data from Arduino over rs485

I have written a small program to communicate between RasPi and Arduino. I can send messages from the RasPi to the Arduino perfectly. The Arduino will read the incoming message, and respond appropriately. The problem occurs when the RasPi is reading…
The Candy King
  • 89
  • 1
  • 1
  • 10
-1
votes
1 answer

Have to write a client for poll RS485 by Modbus RTU over Modbus TCP?

I want to send a converter request via ethernet. I write a small piece of php. code: public function actionModbus() { $errors = array(); $warnings = array(); $connection = BinaryStreamConnection::getBuilder() ->setPort(80) …
rasul
  • 9
  • 1
1 2 3
21
22