1. Problem Analysis
1. Start the serial port debugging assistant
-
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:
-
Laptop + serial port debugging assistant + USB to 485 interface
-
485 to SSI equipment
-
MCU Debug Tools
Build a test environment
2. Problem Analysis
1. Start the serial port debugging assistant
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.
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
485 interface protection circuit
The measured DE=0 is in the receiving state.
(2) Start Keil uVision5 and enter debugging
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
Finally it was determined that the SP485EE chip was broken, and communication was normal after replacing it.
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?
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
- Popular Resources
- Popular amplifiers
- Siemens S7-1200-PLC Programming and Application Tutorial (3rd Edition) (Edited by Shi Shouyong)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Practical training guidance for new electrician technology (Wu Qihong, Jiang Jian, Xu Kungang, Zhang Hong)
- Teach you to learn 51 single chip microcomputer-C language version (Second Edition) (Song Xuefeng)
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Find TI, NXP, ALTERA, XILINX, ST, Microchip factory stock chips
- Record the use of TM1668 driver
- Newbie help, ESP8266 program problem
- GaN Applications in RF and Electronics
- CC2530 Basic Experiment 1 I/O Experiment Code
- Qorvo Online Design Conference - Wi-Fi Architecture and Future Development of Wi-Fi Standards
- DC motor drive solution using TC118S domestic chip
- Inline instructions in TI DSP TMS320C66x study notes (c6x.h Chinese comments)
- [Zero-knowledge ESP8266 tutorial] Quick Start 19 Using NTP server to get network time
- [GD32E503 Review] How to Play with GD32E503-Environment Construction