Method and system for polarity detection of rs-485 interface based on electric energy meter communication protocol
A technology of RS-485 and polarity detection, applied in the direction of data exchange through path configuration, bus network, etc., can solve the problems of easy reverse polarity and complicated polarity detection methods, and achieve convenient construction and later maintenance, Realize the effect of simple and reliable, simple and reliable networking
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0061] like image 3 As shown, the polarity detection method flow process provided by the invention is:
[0062] 1. When the RS-485 interface communicates, according to the requirements of the multi-function energy meter protocol (DL / 645-1997), the leading byte 0xfe and the frame header 0x68 should be transmitted first during communication, and then the address bits, data bits and so on.
[0063] 2. If the leading byte 0xfe is used to judge, the probability of misjudgment is high, so the frame header 0x68 is used to judge, that is, the RS-485 receiver receives the differential signal between A and B and stores it in an 8-bit shift register. The data in the register is judged on the falling edge of the clock. If the data in the register is 0x68, it means that the polarity detection is correct; if the data in the register is 0x79, it means that the polarity detection is wrong; if the data in the register is not 0x68 or 0x97, It means that the data has not yet been transmitted, ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


