Address allocation method, communication device and storage medium for serial communication equipment
A technology of serial port communication and distribution method, which is applied in the direction of instrumentation, electrical digital data processing, etc., and can solve the problems of unable to solve the data communication of the main equipment, and unable to apply to communication equipment occasions, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] Serial port communication is a widely used single-bus data communication, which is widely used in computer serial interface and data communication between devices. It is easy to use, fast, and is a full-duplex communication method, and two devices can initiate data transmission and reception at the same time. Among them, the serial port usually adopts the RS232 standard. The serial port communication allows one-to-one connection, and does not allow one-to-many and many-to-many networking. Therefore, when there is a master device and multiple slave devices, and each device only has a serial port communication interface, this How to implement data communication between the master device and multiple slave devices through a single serial port communication interface becomes a problem to be solved. This embodiment discloses a method for allocating addresses for serial communication devices. The serial communication device has at least two serial ports. The method can be use...
Embodiment 2
[0075] This embodiment also discloses a communication device as a slave device of a serial port communication system, which has a first serial port and a second serial port. The communication device includes an instruction acquisition module, a judgment module, a device information generation module, and an address update module, wherein: the instruction The obtaining module is used to obtain the address setting instruction sent by the upper-level slave device through the first serial port, and the address setting instruction includes the configuration address of the current-level device; the judging module is used to judge whether there is a next-level slave connected to the second serial port. equipment; a device information generating module, used to generate tail device information and pass the upper-level slave device after performing address configuration according to the address setting instruction sent by the upper-level slave device when there is no lower-level slave de...
Embodiment 3
[0080] attached Figure 4 The serial port communication system disclosed in this embodiment includes a master device and multiple slave devices, and the master device and multiple slave devices are connected in series through the serial port step by step, wherein the master device is configured to send an address to the first-level slave device connected to it A setting instruction, the address setting instruction includes the configuration address of the first-level slave device. After the first-level slave device is configured to perform address configuration according to the address setting instruction, the configuration address in the address setting instruction is updated according to the preset address change value and then sent to the next-level slave device, wherein the next-level slave device is It is configured to be configured according to the update address sent by the previous slave device when it is the last level, and then the address information of this level i...
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