RS485 communication interface automatic baud rate and communication address detection method
A technology of RS485 and communication port, which is applied in the field of automatic baud rate and communication address detection of RS485 communication port, which can solve the problems of increasing hardware overhead and cost, difficulty of communication connection, adding detection circuit, etc., so as to avoid errors and avoid extra expenses Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0014] Such as figure 1 Shown, the RS485 communication port automatic baud rate of the present invention and communication address detection method comprise the steps:
[0015] Step 1. When the master is connected to a single slave, the master sends a fixed handshake protocol in the broadcast mode of the RS485 communication port, once for each baud rate, until a slave responds, and the slave responds at the baud rate Establish a communication link with the station number;
[0016] Step 2. When the master is connected to multiple slaves, the master sends a handshake protocol to the address of each slave, and each slave starts to decode after receiving the handshake protocol. When it is confirmed that it is the handshake protocol sent by the master to the slave , the slave sends a response to the master, telling the master the station number of the slave, if the handshake protocol sent by the master is not to access the slave, the slave will not respond;
[0017] Step 3. If th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 