Address management method and device of Internet of Things, and storage medium
By receiving device network access requests in the Internet of Things (IoT), performing address conflict verification and reallocation processing, and utilizing a pre-maintained address table and a periodic recycling mechanism, the address conflict problem caused by dynamic device joining/leaving is solved, thus achieving stability in IoT address allocation and reliability in communication.
Patent Information
- Application Number
- CN202511268031.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-05
- Publication Date
- 2025-12-19
AI Technical Summary
In the Internet of Things (IoT), the dynamic addition/removal of devices can easily cause address conflicts, leading to data packet loss or communication interruptions.
By receiving network access requests from devices, the system determines whether the device's initial address is equal to the registration string, performs address conflict verification and reallocation, and uses a pre-set address table for address management, including address hashing and a periodic recycling mechanism, to ensure the stability of address allocation.
It improves the stability of IoT address allocation and avoids communication terminal and data packet loss caused by address conflicts resulting from dynamic device addition/exit.
Smart Images

Figure CN121173785A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of Internet of Things address scheduling, and in particular to an address management method, device and storage medium for Internet of Things. BACKGROUND
[0002] Real-time monitoring of static grounding resistance in an industrial environment is crucial for safety production. Traditional solutions rely on wired sensor networks, usually adopting centralized wiring methods to converge the grounding points of each grounding stake or device to the acquisition module in the control room through copper core cables. Although this architecture has stable data transmission, it faces scenarios such as large petrochemical, pharmaceutical, and dust workshops with hundreds of monitoring points, resulting in exponential growth in the number of cables, causing heavy load on the bridge, long construction period, and possibly introducing induced lightning and electromagnetic interference due to the co-deposition of metal pipes and high-voltage power cables.
[0003] In addition, traditional solutions lack online diagnostic capabilities for hidden faults such as broken wires, oxidation corrosion, and poor contact. Once the resistance value of a branch exceeds the limit, manual inspection with a shaking table is often required, resulting in high downtime maintenance costs. In areas with strict explosion-proof zoning, wired sensors require additional explosion-proof boxes or intrinsic safety barriers, further increasing the complexity of equipment procurement and later explosion-proof certification. To address the difficulties of real-time monitoring and maintenance of traditional industrial grounding resistance, the Internet of Things is used to detect production conditions in each area. Traditional networking monitoring equipment requires manual setting of the addresses of monitoring devices to form a network, but device addresses are prone to address conflicts, missing numbers, and complex settings. Since the Internet of Things is formed by self-organizing networks, new problems arise. Dynamic joining / leaving of devices in the Internet of Things can easily cause address conflicts, leading to data packet loss or communication interruption, requiring a new technology to solve the current Internet of Things address maintenance problem. SUMMARY
[0004] The main purpose of the present application is to solve the technical problem of data packet loss or communication interruption caused by address conflicts when devices dynamically join / leave the Internet of Things.
[0005] The first aspect of the present application provides an address management method for the Internet of Things, comprising the steps of: receiving a device network access request, wherein the device network access request includes a device universally unique identifier and a device initial address corresponding to the device universally unique identifier; determining whether the device initial address is equal to a registration string; when the device initial address is equal to the registration string, performing allocation processing on the device universally unique identifier according to a preset maintenance address table to obtain an allocated address, and combining the device universally unique identifier with the allocated address to generate allocation information; When the registration string is not equal to the registration string, then according to a preset maintenance address table, address conflict checking processing is performed on the device initial address to obtain a checking result; When the checking result is address conflict, then according to the preset maintenance address table, address re-allocation processing is performed on the device general unique identification code to obtain an updated address, and the device general unique identification code and the updated address are combined to generate allocation information; The allocation information is broadcasted in a preset Internet of Things, and confirmation feedback information corresponding to the allocation information is received; According to a preset maintenance period, time limit checking and recycling processing is performed on the addresses in the maintenance address table to obtain a recycling result, and according to the recycling result, modification processing is performed on the maintenance address table to obtain a new preset maintenance address table.
[0006] Optionally, in the first implementation manner of the first aspect of the present application, the step of performing time limit checking and recycling processing on the addresses in the maintenance address table according to a preset maintenance period to obtain a recycling result comprises: According to a preset maintenance period, a maintenance address in the maintenance address table is read; It is judged whether the communication heartbeat interval length corresponding to the maintenance address is greater than a preset recycling threshold value; When the recycling threshold value is greater, a probe signal is sent to the maintenance address, and feedback data of the maintenance address is listened to within a preset time length; When no feedback data is received within the preset time length, a preset counter is increased, and it is judged whether the count of the counter exceeds a preset probe threshold value; When the preset probe threshold value is not exceeded, the probe signal is re-sent to the maintenance address, and the feedback data of the maintenance address is listened to within the preset time length; When the preset probe threshold value is exceeded, the maintenance address is marked as to be recycled in the maintenance address table.
[0007] Optionally, in the second implementation manner of the first aspect of the present application, the step of marking the maintenance address as to be recycled in the maintenance address table comprises: It is judged whether the attribute of the maintenance address in the maintenance address table is set as a permanent address; When the maintenance address is not set as a permanent address, the maintenance address is marked as to be recycled in the maintenance address table.
[0008] Optionally, in the third implementation manner of the first aspect of the present application, the step of performing address conflict checking processing on the device initial address according to a preset maintenance address table to obtain a checking result comprises: The device initial address is subjected to hash processing to obtain an address hash value; Hash matching the address hash value in the preset maintenance address table to obtain a matching UUID; When the matching UUID is consistent with the device universal unique identifier, a check result of no address conflict is generated. When the matching UUID is inconsistent with the device universal unique identifier, a check result of address conflict is generated.
[0009] Optionally, in a fourth implementation manner of the first aspect of the present application, the device network access request further includes a verification key, a registration random number, and a verification registration timestamp, and after the step of the device network access request, before the step of judging whether the device initial address is equal to the registration string, the method further includes: sequentially splicing the verification key, the registration random number, the device universal unique identifier, and the verification registration timestamp to generate a verification signature; Hash processing the signature verification to obtain a signature hash value; intercepting the first 16 bytes of data of the signature hash value to obtain a verification string; performing signature check processing on the verification string in a preset verification database to obtain a signature verification result; When the signature verification result is qualified, it is confirmed that the device network access request is qualified. When the signature verification result is unqualified, the connection of the device network access request is rejected.
[0010] Optionally, in a fifth implementation manner of the first aspect of the present application, after the step of broadcasting and sending the distribution information in the preset Internet of Things and receiving the confirmation feedback information corresponding to the distribution information, the method further includes: counting the number of all idle addresses in the maintenance address table, and generating an idle ratio of the maintenance address table based on the number of all idle addresses; judging whether the idle ratio is less than a preset active recycling ratio; When the idle ratio is less than the preset active recycling ratio, performing time limit check recycling processing on the addresses in the maintenance address table to obtain a recycling result, and modifying the maintenance address table according to the recycling result to obtain a new preset maintenance address table.
[0011] Optionally, in a sixth implementation manner of the first aspect of the present application, the step of performing address reallocation processing on the device universal unique identifier according to the preset maintenance address table to obtain an updated address includes: querying the longest idle address of the idle addresses in the preset maintenance address table; allocating and binding the longest idle address to the device universal unique identifier to obtain an updated address.
[0012] Optionally, in a seventh implementation form of the first aspect of the present application, after the step of broadcasting the allocation information in the preset Internet of Things and receiving the confirmation feedback information corresponding to the allocation information, the method further comprises: updating, based on the confirmation feedback information, the active time corresponding to the allocation information in the maintenance address table.
[0013] The second aspect of the present application provides an address management device of an Internet of Things, comprising a memory and at least one processor, the memory storing instructions, and the memory and the at least one processor being interconnected by a circuit; the at least one processor invoking the instructions in the memory to enable the address management device of the Internet of Things to perform the address management method of the Internet of Things described above.
[0014] The third aspect of the present application provides a computer readable storage medium storing instructions, when the instructions are run on a computer, enabling the computer to perform the address management method of the Internet of Things described above.
[0015] In the embodiments of the present application, the addresses are allocated by centralized management of various wireless and wired sensors. In the process of applying for joining the device address, the self-provided address of the device is first verified. If the address is an already registered address, address conflict analysis is performed. If the address is an unregistered address, address conflict analysis is performed, and the analysis result of the address conflict is obtained. When there is an address conflict, a new address is allocated to the device using the maintenance address table, and the allocated address is broadcasted. The periodic maintenance address is added when the device joins the Internet of Things, the expired address is recycled and the maintenance address table is adjusted in time, the dynamic modification and adjustment of the address of the Internet of Things are efficiently realized, the stability of the address allocation of the Internet of Things is improved, and the communication terminal and data packet loss caused by the address conflict due to the dynamic joining / leaving of the device of the Internet of Things are avoided. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 An embodiment diagram of the address management method of the Internet of Things in the embodiments of the present application; Figure 2 A framework diagram of the request access device of the address management method of the Internet of Things in the embodiments of the present application; Figure 3 An embodiment diagram of the address management method of the Internet of Things in the embodiments of the present application after the step 106; Figure 4 An embodiment diagram of the address management method of the Internet of Things in the embodiments of the present application after the step 107; Figure 5 An embodiment diagram of the address management device of the Internet of Things in the embodiments of the present application. DETAILED DESCRIPTION
[0017] The embodiment of the present application provides an address management method, device and storage medium of an Internet of Things.
[0018] The embodiments of the present application will be described in more detail below with reference to the drawings. Although some embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms, and should not be interpreted as being limited to the embodiments set forth herein, but rather, these embodiments are provided so that the present application can be more thoroughly and completely understood. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes, and are not intended to limit the scope of protection of the present application.
[0019] In the description of the embodiments of the present application, the term "comprising" and similar terms are to be interpreted as open-ended, i.e., "including but not limited to". The term "based on" is to be interpreted as "based, at least in part, on". The term "one embodiment" or "the embodiment" is to be interpreted as "at least one embodiment". The terms "first", "second", etc. can refer to different or same objects. Other explicit and implicit definitions can also be included below.
[0020] For ease of understanding, the specific flow of the embodiments of the present application is described below. Please refer to Figure 1 One embodiment of the address management method of the Internet of Things in the embodiments of the present application comprises the following steps: 101, receiving a device network access request, wherein the device network access request comprises: a device universally unique identifier, and an initial address of the device corresponding to the device universally unique identifier; In this embodiment, the device network access request is received, and the framework for requesting access to the device can be referred to Figure 2 , Figure 2 The framework for requesting access to the device in the address management method of the Internet of Things in the embodiments of the present application is shown. The device for requesting access comprises a 32-bit controller, a direct current 12 power supply connected to the controller through a 3.3V conversion circuit, a multi-resistance detection port connected to the controller, the multi-resistance detection port measuring the ground in real time, and transmitting the collected current to the controller. The controller is connected to a network communication interface and a wireless and wired communication interface through a TTL level serial port, connected to a buzzer through an I / O, connected to a flash memory and a display screen through a serial peripheral interface (SPI), and connected to a non-volatile memory through a serial communication bus protocol (I2C).
[0021] The access device is connected with the address management base station through a wired / wireless communication module, and the multi-channel resistance detection port converts analog signals into digital signals through an ADC for controller processing. The controller takes one AD value every 10 ms, and takes 100 sampling points in 1 second. The highest 20 AD values and the lowest 20 AD values are removed, and the remaining 60 AD values are taken to calculate the arithmetic mean value.
[0022] The access device sends a device network access request to the address management base station through a wireless or wired communication module. The device network access request includes a device universally unique identifier (UUID) and an initial address corresponding to the device universally unique identifier (UUID).
[0023] Specifically, the device network access request further includes a verification key, a registration random number, and a verification registration timestamp. After step 101, before step 102, the following specific embodiments are further included: 1011. The verification key, the registration random number, the device universally unique identifier, and the verification registration timestamp are sequentially concatenated to generate a verification signature. 1012. The signature verification is hashed to obtain a signature hash value. 1013. The first 16 bytes of data of the signature hash value are intercepted to obtain a verification string. 1014. According to the verification string, a signature verification process is performed on a preset verification database to obtain a signature verification result. 1015. When the signature verification result is qualified, the device network access request is confirmed to be qualified. 1016. When the signature verification result is unqualified, the connection of the device network access request is refused.
[0024] In steps 1011-1016, the device network access request includes a verification key, a registration random number generated when the device is registered, and a verification registration timestamp generated when the device is registered.
[0025] After receiving the device network access request, the data is sequentially concatenated in the order of the verification key, the registration random number, the device universally unique identifier, and the verification registration timestamp to obtain a verification signature. The verification signature is hashed using a hash algorithm to obtain a signature hash value. Then, the first 128 bits of data of the signature hash value, i.e., 16 bytes, are extracted to obtain a verification string.
[0026] In the authentication database of the base station, the authentication string of the authenticated legal device is saved in the device legality authentication. Therefore, the authentication string is matched in the authentication database, and the verification process of the authentication signature is performed. When the related authentication string is matched, the qualified signature verification result is generated, the device network access request is confirmed as the qualified legal request; when the related authentication string is not matched, the unqualified signature verification result is generated, the connection of the device network access request is rejected, and the device network access request is confirmed as the illegal request.
[0027] 102. judging whether the device initial address is equal to the registration string; In the embodiment, when the device accesses the network for the first time, the device initial address is set to 0, and 0 can be the registration string. Of course, other strings can be set as the default registration string. When the device has accessed the network, the last assigned address is taken as the device initial address. Whether the device initial address is equal to the registration string is judged, and different network address allocation processes are performed based on the judgment result.
[0028] 103. when equal to the registration string, the device universal unique identification code is allocated according to the preset maintenance address table, the allocated address is obtained, and the device universal unique identification code and the allocated address are combined to generate the allocation information; In the embodiment, if equal to the registration string, the device requesting to access the network is joined in the Internet of Things for the first time, and the device universal unique identification code is allocated with the idle address in the preset maintenance address table. The maintenance address table has multiple addresses, each address is marked as the use state or the idle state, and the information such as the time of the last device heartbeat is recorded. The allocated address and the device universal unique identification code in the maintenance address table are combined to generate the allocation information.
[0029] 104. when not equal to the registration string, the device initial address is subjected to the address conflict verification according to the preset maintenance address table, and the verification result is obtained; In the embodiment, if the device initial address in the network access request is not equal to the registration string, that is, it is indicated that the device requesting to access the network has the network access record in this request, and the device initial address is the address allocated in the last network access. Therefore, whether the UUID queried in the maintenance address table corresponding to the device initial address is consistent with the device universal unique identification code in the device network access request is inquired. If not consistent, it is indicated that the device initial address is occupied by other devices, and a new address needs to be allocated for the device universal unique identification code in the device network access request. If consistent, it is indicated that the device initial address is not occupied, and the device initial address is modified to the active state in the maintenance address table.
[0030] Specifically, the following specific implementation is included in the step 104. 1041, hash processing the initial address of the device to obtain an address hash value; 1042, hash matching the address hash value in a preset maintenance address table to obtain a matching UUID; 1043, when the matching UUID is consistent with the device universal unique identifier, a check result of address non-conflict is generated; 1044, when the matching UUID is inconsistent with the device universal unique identifier, a check result of address conflict is generated.
[0031] In steps 1041-1042, the initial address of the device is hash processed to obtain an address hash value. Hash matching of the address in the preset maintenance address table is performed using the address hash value, which can avoid traversal retrieval and obtain a matching result. When the hash matching hits, the corresponding UUID is found to determine whether it is consistent with the device universal unique identifier. If consistent, a check result of address non-conflict is obtained. If inconsistent, a check result of address conflict is obtained.
[0032] 105, when the check result is address conflict, address re-allocation processing is performed on the device universal unique identifier according to the preset maintenance address table to obtain an updated address, and the device universal unique identifier and the updated address are combined to generate allocation information; In this embodiment, if the check result is address conflict, an idle address in the maintenance address table is found, and the idle address is bound to the device universal unique identifier to obtain an updated address. The updated address and the device universal unique identifier are combined to obtain allocation information.
[0033] Specifically, in step 105, the following specific implementation is included: 1051, querying the longest idle address of the idle address in the preset maintenance address table; 1052, binding the longest idle address to the device universal unique identifier to obtain an updated address.
[0034] In steps 1051-1052, the maintenance address table records the latest heartbeat time of each device after uploading. The longest idle address is found from the addresses marked as idle state, and the longest idle address is obtained. The longest idle address is bound to the device universal unique identifier, and the longest idle address is determined as the updated address.
[0035] 106, broadcasting the allocation information in a preset Internet of Things, and receiving confirmation feedback information corresponding to the allocation information; In the embodiment, the allocation information generated in the step 105 or the step 103 is sent to each device of the Internet of Things through broadcasting, the feedback information is received by the requesting device, the UUID in the feedback information is compared with the ID of the device, if the IDs are consistent, the address in the feedback information is written into the memory of the requesting device, the device accesses the Internet of Things according to the updated address or the allocated address in the feedback, and the confirmation data of receiving the allocation information is returned. The base station receives the confirmation feedback information, and completes the address allocation of the requesting device.
[0036] Specifically, please refer to Figure 3 , Figure 3 The following is a specific embodiment after the step 106 of the address management method of the Internet of Things in the embodiment. 1061, count the number of all idle addresses in the maintenance address table, and generate the idle ratio of the maintenance address table based on the number of all idle addresses; 1062, judge whether the idle ratio is less than a preset active recycling ratio; 1063, when the idle ratio is less than the preset active recycling ratio, perform time limit check recycling processing on the addresses in the maintenance address table to obtain a recycling result, and modify the maintenance address table according to the recycling result to obtain a new preset maintenance address table.
[0037] In the steps 1061-1063, after the device address is accessed and the address is updated, the number of all idle addresses in the maintenance address table is actively counted, and the number of idle addresses is divided by the number of all addresses in the maintenance address table based on the number of all idle addresses to obtain the idle ratio of the maintenance address table.
[0038] Whether the idle ratio is less than the preset active recycling ratio is analyzed, for example, the active recycling ratio is set to 10%, that is, 90% of the addresses are in the active state, and the idle position of the address is insufficient. It is judged whether the latest active time of the address in the maintenance address table exceeds 120 hours, if the active time is more than 120 hours away from the current time length, it is indicated that the address corresponding to the device in the Internet of Things has not reported the heartbeat data for maintaining the connection for more than 120 hours, the address is written into the recycling list, after the addresses in the recycling list are recycled, the result of the recycled addresses is obtained. Based on the recycling result, the addresses in the maintenance address table are modified to obtain a new preset maintenance address table. The active recycling of the address can accelerate the recycling speed of the address in the case of address shortage, and reduce the number of idle addresses as soon as possible.
[0039] Further, after the step 106, the following specific embodiments are further included. 1064、updating the active time corresponding to the allocation information in the maintenance address table based on the confirmation feedback information.
[0040] In step 1064, the confirmation feedback information has a timestamp, and the active time corresponding to the address of the allocation information in the maintenance address table is updated based on the timestamp. The new active time in the maintenance address table is updated by the time of uploading the heartbeat signal by the device, and the active time in the maintenance address table affects the address recycling of the device.
[0041] 107、according to a preset maintenance period, performing time limit checking and recycling processing on the addresses in the maintenance address table to obtain a recycling result, and according to the recycling result, performing modification processing on the maintenance address table to obtain a new preset maintenance address table.
[0042] In this embodiment, the maintenance period is a passive idle address recycling mode, and the maintenance period is set to scan the addresses in the maintenance address table once every 48 hours, recycle the addresses whose last active time to the current scanning time is greater than 120 hours, and write the addresses into a recycling list to generate a recycling result. Based on the recycled addresses in the recycling result, the maintenance address table is modified, the state of the address is modified to idle, the UUID of the address is unchanged, and a new preset maintenance address table is generated.
[0043] For details, please refer to Figure 4 , Figure 4 is a specific implementation of step 107 of the address management method for the Internet of Things in the embodiment of the application, and step 107 includes the following specific implementation: 1071、according to a preset maintenance period, reading the maintenance addresses in the maintenance address table; 1072、judging whether the communication heartbeat interval time length corresponding to the maintenance address is greater than a preset recycling threshold value; 1073、when the communication heartbeat interval time length is greater than the recycling threshold value, sending a probe signal to the maintenance address and listening to the feedback data of the maintenance address within a preset time length; 1074、when no feedback data is received within the preset time length, increasing a preset counter, and judging whether the count of the counter exceeds a preset probe threshold value; 1075、when the count of the counter does not exceed the preset probe threshold value, re-sending a probe signal to the maintenance address and listening to the feedback data of the maintenance address within a preset time length; 1076、when the count of the counter exceeds the preset probe threshold value, marking the maintenance address as to be recycled in the maintenance address table.
[0044] 1071-1076 step, every 48 hours, read the maintenance address in the maintenance address table, analyze each maintenance address communication heartbeat interval length whether greater than 120 hours of recycling threshold. If greater than 120 hours, send a probe signal to the maintenance address, listen to whether there is maintenance address feedback data within 10s. If there is no maintenance address feedback data within 10s, the counter initially set to 0 is increased by 1, then the counter is judged whether it exceeds the probe threshold 3 times, if it does not exceed three times, the probe is reperformed, until the probe exceeds 3 times and no feedback of the device is obtained, which is marked as to be recycled in the maintenance address table. Finally, according to the maintenance address table, all addresses are recycled, and the effect of recycling addresses regularly is realized.
[0045] Further, in 1076 step, the following specific implementation is included: 10761, judge whether the attribute of the maintenance address in the maintenance address table is set as a permanent address; 10762, when not set as a permanent address, mark the maintenance address as to be recycled in the maintenance address table.
[0046] 10761-10762 step, a permanent address attribute can be introduced in the maintenance address table. The address attribute is mainly for the address of important devices such as key devices such as tank valves, which can be marked as 0xA0 attribute representing permanent address. If it is a permanent address, it cannot be recycled, and information such as permanent address exception not reported can be sent to the management port to remind the administrator, and the administrator can recycle the permanent address on the device, or control the permanent address in the base station system to force recycling. In the regular process of maintaining the device address, the permanent address cannot be recycled, and only the administrator can operate the permanent address recycling. If it is not a permanent address, the maintenance address can be marked as to be recycled in the maintenance address table.
[0047] In the embodiment of the application, through the centralized management address allocation of various wireless and wired sensors, in the device address application joining process, the address of the device is first verified, if the address is an already registered address, address conflict analysis is performed, if the address is an unregistered address, address conflict analysis is performed, and the analysis result of address conflict is obtained. When there is address conflict, a new address is allocated to the device using the maintenance address table, and then the allocated address is broadcasted. The periodic maintenance address is added when the device joins the Internet of Things, the expired address is recycled and the maintenance address table is adjusted in time, the dynamic modification and adjustment of the Internet of Things address is realized efficiently, the stability of the Internet of Things address allocation is improved, and the communication terminal and data packet loss caused by address conflict due to the dynamic joining / leaving of the Internet of Things device is avoided.
[0048] Figure 5 FIG. 1 is a schematic diagram of an address management device for an Internet of Things according to an embodiment of the present application. The address management device 500 for an Internet of Things can have a great difference due to different configurations or performances, and can include one or more central processing units (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing applications 533 or data 532. The memory 520 and the storage media 530 can be temporary storage or persistent storage. The programs stored in the storage media 530 can include one or more modules (not shown in the figure), each of which can include a series of instruction operations for the address management device 500 for an Internet of Things. Further, the processor 510 can be configured to communicate with the storage media 530 and execute the series of instruction operations in the storage media 530 on the address management device 500 for an Internet of Things.
[0049] The address management device 500 for an Internet of Things can further include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art can understand that the address management device 500 for an Internet of Things can include more or fewer components than those shown, or combine some components, or arrange different components. Figure 5 The address management device structure shown does not constitute a limitation on the address management device for an Internet of Things, and can include more or fewer components than those shown, or combine some components, or arrange different components.
[0050] The present application also provides a computer readable storage medium, which can be a non-volatile computer readable storage medium or a volatile computer readable storage medium, and the computer readable storage medium stores instructions, which, when executed on a computer, cause the computer to perform the steps of the address management method for an Internet of Things.
[0051] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
[0052] Moreover, while operations have been depicted in a particular order, this should not be understood as requiring such order nor that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing can be advantageous. Likewise, while several specific implementation details have been discussed, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination.
[0053] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. An address management method of an Internet of Things, characterized by, The method comprises the steps of: receiving a device on-network request, wherein the device on-network request comprises a device universally unique identifier and a device initial address corresponding to the device universally unique identifier; determining whether the device initial address is equal to a registration string; when the device initial address is equal to the registration string, performing allocation processing on the device universally unique identifier according to a preset maintenance address table to obtain an allocated address, combining the device universally unique identifier and the allocated address to generate allocation information, and broadcasting the allocation information in a preset Internet of Things (IoT) network and receiving confirmation feedback information corresponding to the allocation information; when the device initial address is not equal to the registration string, performing address conflict checking processing on the device initial address according to the preset maintenance address table to obtain a checking result; when the checking result is address conflict, performing address re-allocation processing on the device universally unique identifier according to the preset maintenance address table to obtain an updated address, combining the device universally unique identifier and the updated address to generate allocation information, and broadcasting the allocation information in the preset IoT network and receiving confirmation feedback information corresponding to the allocation information; performing time limit checking and recycling processing on the addresses in the maintenance address table according to a preset maintenance period to obtain a recycling result, and modifying the maintenance address table according to the recycling result to obtain a new preset maintenance address table. The step of performing time limit checking and recycling processing on the addresses in the maintenance address table according to a preset maintenance period to obtain a recycling result comprises the steps of:
2. The address management method of the IoT according to claim 1, characterized by, reading a maintenance address in the maintenance address table according to a preset maintenance period; determining whether the communication heartbeat interval time length corresponding to the maintenance address is greater than a preset recycling threshold value; when the communication heartbeat interval time length is greater than the preset recycling threshold value, sending a probe signal to the maintenance address and listening for feedback data of the maintenance address within a preset time length; when no feedback data is received within the preset time length, increasing a preset counter and determining whether the count of the counter exceeds a preset probe threshold value; when the count of the counter does not exceed the preset probe threshold value, re-sending a probe signal to the maintenance address and listening for feedback data of the maintenance address within a preset time length; when the count of the counter exceeds the preset probe threshold value, marking the maintenance address as to be recycled in the maintenance address table. The step of marking the maintenance address as to be recycled in the maintenance address table comprises the steps of:
3. The address management method of the Internet of Things according to claim 2, wherein determining whether the attribute of the maintenance address in the maintenance address table is set as a permanent address; when the attribute of the maintenance address is not set as a permanent address, marking the maintenance address as to be recycled in the maintenance address table. The step of performing address conflict checking processing on the device initial address according to a preset maintenance address table to obtain a checking result comprises the steps of: 4.The address management method of the Internet of Things according to claim 1, characterized in that, performing hash processing on the device initial address to obtain an address hash value; performing hash matching on the address hash value in the preset maintenance address table to obtain a matching UUID; when the matching UUID is consistent with the device universally unique identifier, generating a checking result of no address conflict; when the matching UUID is not consistent with the device universally unique identifier, generating a checking result of address conflict. 5.The address management method of the Internet of Things according to claim 1, characterized in that, The device onboarding request further comprises a verification key, a registration random number, and a verification registration timestamp, and further comprises, after the step of the device onboarding request, before the step of judging whether the device initial address is equal to the registration string: The verification key, the registration random number, the device universal unique identifier, and the verification registration timestamp are sequentially spliced to generate a verification signature; The signature verification is subjected to hash processing to obtain a signature hash value; The first 16 bytes of data of the signature hash value are intercepted to obtain a verification string; According to the verification string, signature verification processing is performed on a preset verification database to obtain a signature verification result; When the signature verification result is qualified, the device onboarding request is confirmed to be qualified; When the signature verification result is unqualified, the connection of the device onboarding request is rejected. 6.The address management method of the Internet of Things according to claim 1, characterized in that, After the step of broadcasting the allocation information in the preset Internet of Things and receiving the confirmation feedback information corresponding to the allocation information, the method further comprises: Counting the number of all free addresses in the maintenance address table, and generating a free ratio of the maintenance address table based on the number of all free addresses; Judging whether the free ratio is less than a preset active recycling ratio; When the free ratio is less than the preset active recycling ratio, performing time limit check recycling processing on the addresses in the maintenance address table to obtain a recycling result, and modifying the maintenance address table according to the recycling result to obtain a new preset maintenance address table. 7.The address management method of the Internet of Things according to claim 1, characterized in that, The step of performing address reallocation processing on the device universal unique identifier according to the preset maintenance address table to obtain an updated address comprises: Querying the longest idle address of the free addresses in the preset maintenance address table; Binding the longest idle address to the device universal unique identifier to obtain an updated address. 8.The address management method of Internet of Things according to claim 1, characterized in that, After the step of broadcasting the allocation information in the preset Internet of Things and receiving the confirmation feedback information corresponding to the allocation information, the method further comprises: Based on the confirmation feedback information, updating the active time corresponding to the allocation information in the maintenance address table.
9. An address management device of an Internet of Things, characterized by comprising: The address management device of the Internet of Things comprises a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected by a circuit; The at least one processor calls the instructions in the memory to enable the address management device of the Internet of Things to perform the address management method of the Internet of Things as claimed in any one of claims 1-8.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that The computer program is executed by the processor to implement the address management method of the Internet of Things as claimed in any one of claims 1-8.
