RS485 transceiving state conversion method, system and device, and medium
A technology of RS485 and conversion method, which is applied in the field of conversion of RS485 sending and receiving states, which can solve problems such as serial port freeze, data packet loss, frequent conversion or unreasonable delay, and achieve the effect of avoiding data packet loss or serial port freeze
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Such as figure 1 As shown, this embodiment provides a conversion method of RS485 transceiver state, this conversion method can be applied to the controller, so it can be executed by the controller, the controller in this embodiment can be realized by MCU (micro control unit) , and can also be other controllers that can run the conversion method, which is not specifically limited here. The data processing and the control of the RS485 transceiver state transition are realized by the MCU. The RS485 uses balanced sending and differential receiving methods to transmit data, has the ability to suppress common-mode interference, and the communication distance can reach thousands of meters. Its working mode is half-duplex, relying on the level change of the control direction pin, that is, the DE (transmitter output enable) pin to perform state conversion, and it will delay for a certain period of time between the conversion states to ensure complete and efficient data transmis...
Embodiment 2
[0061] Such as image 3 As shown, this embodiment provides a RS485 transceiving state conversion system, the conversion system includes a first control module 1 , a startup module 2 , a second control module 3 , a first judging module 4 and a second judging module 5 .
[0062] The second judging module 5 is used to judge whether the control direction pin of the RS485 is at the first level, if not, then call the starting module 2; if so, call the first control module 1 and the starting module 2.
[0063] In this embodiment, when the control direction pin of the RS485 is at the first level, the RS485 is in the receiver state, and when the control direction pin of the RS485 is at the second level, the RS485 is in the transmitter state.
[0064] In this embodiment, the first level is preferably a low level, and the second level is preferably a high level.
[0065] The first control module 1 is used to control the RS485 to be in the transmitter state, and call the startup module 2...
Embodiment 3
[0079] Figure 4 It is a schematic structural diagram of an electronic device provided by Embodiment 3 of the present invention. The electronic equipment includes a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the RS485 transceiving state conversion method of Embodiment 1 is realized. Figure 4 The electronic device 30 shown is only an example, and should not limit the functions and scope of use of the embodiments of the present invention.
[0080] Such as Figure 4 As shown, electronic device 30 may take the form of a general-purpose computing device, which may be a server device, for example. Components of the electronic device 30 may include, but are not limited to: at least one processor 31 , at least one memory 32 , and a bus 33 connecting different system components (including the memory 32 and the processor 31 ).
[0081] The bus 33 includes a data bus, an address bus...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com