Method, device and system capable of achieving serial port communication
A technology for serial communication and equipment, applied in the field of communication, can solve the problems of low data transmission efficiency, high production and processing costs and management costs, identification errors of slave devices, etc., and achieve the effect of improving processing efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] see figure 1 , a method for realizing serial port communication, the method specifically includes the following operations:
[0044] Step 101: Determine the slave devices in each position through the control bus and the serial bus;
[0045] Step 102: receiving the interrupt request sent by each existing slave device through the control bus;
[0046] Step 103: if currently only an interrupt request sent by an on-position slave device is received, the serial bus is allocated to the on-position slave device currently sending the interrupt request;
[0047] Step 104: If the interrupt requests sent by multiple slave devices in position are currently received, determine the interrupt priorities corresponding to the slave devices in position, and serialize the serial number according to the interrupt priorities corresponding to the slave devices in position The bus is assigned to one of the multiple present slave devices;
[0048] Step 105: Perform data communication with t...
Embodiment 2
[0051] see figure 2, is a system for implementing serial port communication provided by the embodiment of the present invention. The system includes: a master device 101, a slave device 201, a slave device 202, ..., a slave device 20N, and a total of N slave devices, where N is greater than An integer equal to 2; in the embodiment of the present invention, the above N slave devices can be connected to the master device 101 through the same serial bus and the same control bus respectively.
[0052] In the embodiment of the present invention, the serial bus can specifically be RS232, RS485 or RS422. Usually, the serial bus is used to transmit data between the master device and the slave device, and can include a receiving channel RXD and a sending channel TXD. Among them, RS232, RS485 or RS422 is a serial physical interface formulated by EIA (Electronic Industry Association, American Electronics Industry Association), RS refers to the abbreviation of English Recommendation Crit...
Embodiment 3
[0094] Referring to 5, a master device, the master device includes: a determination module 401, a receiving module 402, a first distribution module 403, a second distribution module 404 and a data communication module 405;
[0095] Determining module 401, is used for determining each in-position slave equipment by control bus and serial bus;
[0096] The receiving module 402 is used to receive the interrupt request sent by each slave device in place through the control bus;
[0097] The first allocation module 403 is used to assign the serial bus to the slave device currently sending the interrupt request if only one interrupt request sent by the slave device in position is currently received;
[0098] The second allocation module 404 is used to determine the interrupt priority levels corresponding to multiple slave devices in position if the interrupt requests sent by multiple slave devices in position are currently received, and according to the interrupt corresponding to th...
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