RS485 communication problem, can receive but not send, confirmation process of 485 chip failure

Publisher:RadiantSoulLatest update time:2024-03-08 Source: elecfansKeywords:RS485 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Problem Analysis

1. Start the serial port debugging assistant

  1. question

The 485 to SSI device supports the 485 interface and MOUDBUS RTU protocol. Under normal circumstances, the host (PLC, computer) and the slave (485 to SSI device) work in master-slave mode, that is, the host sends commands and the slave responds and gives feedback. The problems encountered are:

After the 485-to-SSI device works normally for a period of time, it suddenly stops working, that is, the host cannot receive feedback from the slave.

Build a test environment and use it for debugging:

  1. Laptop + serial port debugging assistant + USB to 485 interface

  2. 485 to SSI equipment

  3. MCU Debug Tools

wKgaomUqCWuAfvNeAAXbCzoio98269.png

Build a test environment

2. Problem Analysis

1. Start the serial port debugging assistant

wKgZomUqClaAdEabAAFO9csyQos749.png

Click "Send", the data receiving area does not receive data

The problem is that after pressing "Send", the data receiving area does not receive any data.

Normally, click "Send" and the data receiving area will display the feedback data.

wKgZomUqCn-AVnJGAAFbsMbjQF8186.png

Click "Send" and the data receiving area receives the data.

2. Use the MCU debugging tool to check whether the serial port can receive data

(1) Use a multimeter to measure the 485 chip transceiver control pin signal

wKgZomUqCqaAXItdAAEYTly6V-Q417.png

485 interface protection circuit

The measured DE=0 is in the receiving state.

(2) Start Keil uVision5 and enter debugging

wKgaomUqCsaAa7G7AAE7WJqhLk0550.png

Keil debugging interface

It is found that 485 receives data normally, but the serial port debugging assistant cannot receive the sent data.

(3) 485 sends data, but the serial port debugging assistant cannot receive it

wKgZomUqC4KAFxJoAAJKWZp1jjM822.png

Finally it was determined that the SP485EE chip was broken, and communication was normal after replacing it.

wKgaomUqC6-AEfJlAAInblPGGFA321.png

Cyclic sending, the data receiving area continuously displays data


Conclusion

The problem I encountered this time is a bit strange. I made two units of this device. The SP485EE chips were from the same batch. One unit worked normally, but the other unit failed to send messages. The first time, I solved the problem by replacing the SP485 chip after repeated tests. However, the problem did not last long before it reappeared. I tested the circuit again and found that the SP485EE was still broken. To be honest, my 485 circuit application is very mature. This is the first time I have encountered the continuous failure of the SP485 chip. Is it because the SP485 is made in low-cost domestic products?


Keywords:RS485 Reference address:RS485 communication problem, can receive but not send, confirmation process of 485 chip failure

Previous article:Sharing of various electrical control wiring circuit schematics
Next article:Axis parameter configuration and single-axis motion control of EtherCAT motion control edge controller ZMC432H

Recommended ReadingLatest update time:2024-11-16 13:41

4412 RS485
1. 485 Hardware Principle The principle of differential pair data transmission IO data transmission → differential pair The transmission distance of RS232 is less than 15 meters, while the transmission distance of RS485 is from tens of meters to more than 1000 meters. Why can 485 transmit so far? The different
[Microcontroller]
4412 RS485
STM32 Novice Growth Record---Application of RS485 Communication Protocol
RS485 Disadvantages: RS485 bus is a conventional communication bus. It cannot do automatic arbitration of the bus, that is, it cannot send data at the same time to avoid bus competition. Therefore, the communication efficiency of the whole system is bound to be low, and the data redundancy is large. RS485 bus is not s
[Microcontroller]
RS485 Bus Interface
RS485 Bus is a serial communication bus with differential signal travel along the bus and sends the information from one point to another point. The maximum length of the bus is around 1000 m. The bus is allowing multi-master or single master, as long as only one point is sending data at a time on half duplex networ
[Analog Electronics]
Digital ward call system based on ARM
The digital ward call system is a special call system used in hospital wards, nursing homes and other places to communicate with medical staff and patients. It is one of the necessary equipment to improve the level of hospital care. At present, there are many hospital ward call systems on the market, mainly wired and
[Microcontroller]
Digital ward call system based on ARM
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号