Method and system for master device to automatically number slave devices
A technology of automatic numbering and device numbering, applied in transmission systems, electromagnetic wave transmission systems, bus-type electromagnetic networks, etc., can solve problems such as troublesome numbering of slave devices
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] figure 1 It is a flowchart of a method for a master device to automatically number a slave device provided in Embodiment 1 of the present invention. Such as figure 1 As shown, a method for a master device of the present invention to automatically number a slave device comprises the following steps:
[0053] S1: The master device broadcasts the command to collect the SN serial number of the slave device;
[0054] S2: The slave device returns the SN serial number information of the slave device after a random delay time;
[0055] S3: After the master device collects the SN serial number information of all slave devices, it forms a list of SN serial numbers and numbers, and sends the list to all slave devices;
[0056] S4: After receiving the list, the slave device compares its own SN serial number according to the corresponding list of SN serial numbers and numbers, and finds out the corresponding number to generate a unique number of the slave device.
[0057] In t...
Embodiment 2
[0059] figure 2 It is a flow chart of a method for a master device to automatically number a slave device provided in Embodiment 2 of the present invention. Such as figure 2 As shown, before the step S1: the master device broadcasts the command to collect the SN sequence number of the slave device, it further includes:
[0060] The master device starts self-test to determine whether there is a physical connection to the slave device at the bus interface;
[0061] If it exists, the master device detects whether there is the SN serial number information of the slave device, and if so, exits the automatic numbering process, and if not, sends a command to the remote slave device to obtain the SN serial number information.
[0062] Before the master device broadcasts the command to collect the SN serial number of the slave device to the slave device, it will first perform a power-on self-test to determine whether the bus interface is physically connected to the slave device. In ...
Embodiment 3
[0064] image 3 It is a flowchart of a method for automatically numbering slave devices by a master device according to Embodiment 3 of the present invention. Such as image 3 As shown, the step S2: the slave device returns the SN sequence number information of the slave device after a random delay time, including:
[0065] S20: After the slave device receives an instruction from the master device to collect SN serial number information, the slave device runs the designed random delay algorithm to calculate the random delay time;
[0066] S21: Start timing from the device counter, when the random delay time is up, return the corresponding SN serial number information to the master device;
[0067] S22: In order to ensure that the master device receives the SN serial number information of the slave device, after the slave device passes through the preset maximum delay, the slave device sends the SN information to the master device through the random delay calculated by the ra...
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