Internet of Things device group control method and device based on orthogonal address code
Through the IoT device group control method based on orthogonal address codes, the real-time problem of multi-device control is solved, efficient communication for simultaneous control of multiple devices is achieved, and the efficiency of control instruction issuance and real-time device control are improved.
Patent Information
- Application Number
- CN202311348646.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-18
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-10-18
AI Technical Summary
When multiple IoT devices need to perform control actions at the same time, the existing technology needs to send control instructions one by one and wait for confirmation, causing the real-time nature of device control to be affected, especially when the number of devices is large, it will cause a long time loss.
Adopt an IoT device group control method based on orthogonal address codes to achieve simultaneous control of multiple devices through device networking, orthogonal code allocation, multi-address control instruction generation, instruction identification and execution determination, using the Walsh algorithm or normal The intersection code construction method generates orthogonal address codes that comply with orthogonal coding specifications, and issues control instructions through broadcast or multicast.
It improves the real-time and efficiency of multi-device control, reduces redundant communication instructions, and improves the speed and accuracy of group device control.
Smart Images

Figure CN117278525B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things device control, and in particular to a method and device for controlling a group of Internet of Things devices based on an orthogonal address code. Background Art
[0002] With the increasing application of IoT technology and the increasing number of IoT devices, the following situations are becoming increasingly serious:
[0003] At present, when multiple IoT devices need to perform the same control action, the IoT platform generally needs to send control instructions to the devices one by one to achieve control. Sending control instructions one by one also requires waiting for device execution confirmation and other steps. Therefore, when there are many IoT devices, it often leads to a long time loss, affecting the real-time performance of device control.
[0004] In view of the above problems, the present application proposes a new technical solution. Summary of the invention
[0005] In order to improve the real-time performance of controlling multiple IoT devices, the present application provides a method and device for controlling a group of IoT devices based on orthogonal address codes.
[0006] In the first aspect, the present application provides a method for controlling a group of IoT devices based on an orthogonal address code, which adopts the following technical solution:
[0007] A method for controlling a group of IoT devices based on an orthogonal address code, comprising:
[0008] Device networking, which includes: connecting multiple IoT devices to the Internet, and grouping them according to grouping conditions predefined by the user to obtain multiple device groups;
[0009] Orthogonal code allocation, which includes: allocating orthogonal address codes that comply with orthogonal code specifications to devices based on a preset unspecified orthogonal code generation algorithm;
[0010] The multi-address control instruction generation includes: enabling the control center to generate the multi-address control instruction based on the addresses of multiple IoT devices to be controlled, and the multi-address control instruction is sent in batches;
[0011] Instruction recognition and execution determination, which includes: allowing the Internet of Things device of the corresponding device group to recognize the multi-address control instruction, and determining whether the relationship between the multi-address control instruction and its own orthogonal address encoding meets the preset conditions. If so, the Internet of Things device executes the action corresponding to the multi-address control instruction; if not, the Internet of Things device does not execute the action corresponding to the multi-address control instruction.
[0012] Optionally, the non-specific orthogonal code generation algorithm includes: processing the device address using the Walsh algorithm or the orthogonal code construction method, and converting it into a binary code.
[0013] Optionally, the orthogonal address coding that complies with the orthogonal coding specification includes: the result of a logical operation on the orthogonal address codes of any two or more devices in the same device group is not equal to an all-1 sequence, and the number of 1s in the orthogonal address codes is equal.
[0014] Optionally, the control center generates a multi-address control instruction based on the addresses of multiple IoT devices to be controlled, which includes: performing a logical operation on the addresses of multiple IoT devices to generate a new address code, attaching the instruction data to be sent to the address code, and forming a data packet as a multi-address control instruction.
[0015] Optionally, the multi-address control instruction is sent in groups, which includes: publishing to all devices in the form of broadcast or multicast.
[0016] Optionally, the determination of whether the relationship between the multi-address control instruction and its own orthogonal address coding meets preset conditions includes: performing a logical OR operation on the local orthogonal address coding of the IoT device and the address code in the multi-address control instruction, and determining whether the result is the same as the local orthogonal address coding of the IoT device.
[0017] In the second aspect, the present application provides an IoT device group control device based on an orthogonal address code, which adopts the following technical solution:
[0018] A device for controlling a group of Internet of Things devices based on orthogonal address codes comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute any of the above-mentioned methods for controlling a group of Internet of Things devices based on orthogonal address codes.
[0019] In summary, the present application includes at least one of the following beneficial technical effects: it has the characteristics of simple principle, small amount of calculation, fast calculation speed, etc., and multiple-address communication is performed through orthogonal address coding. A single control instruction can be used to achieve the simultaneous issuance of control instructions for multiple devices. Since the communication transmission time is often much longer than the computer's binary calculation time, compared with the existing point-to-point communication mode, the present invention can greatly improve the efficiency of issuing control instructions, reduce redundant communication instructions, and improve the real-time control of group equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic diagram of the main process of the method of this application. DETAILED DESCRIPTION
[0021] The following is combined with Figure 1 This application is described in further detail.
[0022] The embodiment of the present application discloses a method for controlling a group of Internet of Things devices based on orthogonal address codes.
[0023] Reference Figure 1 , the IoT device group control method based on orthogonal address code includes:
[0024] 1) Equipment networking;
[0025] 2) Orthogonal coding allocation;
[0026] 3) Generation of multi-address control instructions; and,
[0027] 4) Instruction recognition and execution determination.
[0028] It should be noted that the above 2) and 3) are not strictly sequential steps, and 2) can also be included in the process of 3).
[0029] Regarding 1), device networking, it includes: connecting multiple IoT devices to the Internet, and grouping them according to user-predefined grouping conditions to obtain multiple device groups.
[0030] It can be understood that the implementation of this application includes an Internet of Things control platform (control center) and Internet of Things devices. The Internet of Things control platform can communicate with the Internet of Things devices through broadcast or multicast; the communication methods between the Internet of Things devices and the Internet of Things control platform include but are not limited to TCP / IP networks, message queues and other communication methods.
[0031] Regarding 2), orthogonal coding allocation, it includes: allocating orthogonal address codes that comply with orthogonal coding specifications to devices based on a preset non-specific orthogonal code generation algorithm.
[0032] Specifically:
[0033] The unspecific orthogonal code generation algorithm includes: processing the device address using the Walsh algorithm or the orthogonal code construction method (refer to the patent CN200710090508) and converting it into a binary code.
[0034] Orthogonal address coding that complies with orthogonal coding specifications includes: the result of a logical operation of orthogonal address codes of any two or more devices in the same device group is not equal to an all-1 sequence, and the number of 1s in the orthogonal address codes is equal.
[0035] For example, the orthogonal address code of device A is 1101 and the orthogonal address code of device B is 1011; the result of the “AND” operation between the two is 1001.
[0036] It should be noted that binary bit operations include multiple operations. The main operations involved in this article are binary operations, that is, comparing and operating on two binary data bit by bit. Common rules include:
[0037] 1. AND operation: If the digits in the same position of two numbers are both 1, the result is 1, otherwise it is 0, for example: 10 AND11 = 10, and another example: 10 AND 01 = 00.
[0038] 2. OR operation: If any one of the digits in the same position of two numbers is 1, the result is 1; if both are 0, the result is 0. For example: 10 OR 11 = 11; another example: 10 AND 01 = 11.
[0039] Regarding 3), generation of multi-address control instructions, which includes: instructing the control center to generate multi-address control instructions based on the addresses of multiple IoT devices to be controlled, and the multi-address control instructions are sent in batches.
[0040] Specifically:
[0041] The control center generates a multi-address control instruction based on the addresses of multiple IoT devices to be controlled, which includes: performing a logical operation on the addresses of multiple IoT devices to generate a new address code, attaching the instruction data to be sent to the address code, and the formed data packet is used as the multi-address control instruction.
[0042] The multi-address control instruction is sent in groups, including: publishing to all devices in the form of broadcast or multicast.
[0043] Regarding 4), instruction identification and execution determination, which includes:
[0044] The IoT devices of the corresponding device group are required to recognize the multi-address control instructions (i.e., during the parsing process, the data packet is split again into: address + instruction data);
[0045] Determine whether the relationship between the multi-address control instruction and its own orthogonal address encoding meets the preset conditions. If yes, the IoT device executes the action corresponding to the multi-address control instruction; if not, the IoT device does not execute the action corresponding to the multi-address control instruction.
[0046] The above judgment conditions are defined by the staff themselves: the results of "XOR", "XOR" and "OR" operations can be used for comparison and specific definitions can be made.
[0047] In one implementation of this method, taking "or" as an example:
[0048] Determine whether the relationship between the multi-address control instruction and its own orthogonal address code meets the preset conditions, including: performing a logical OR operation on the local orthogonal address code of the Internet of Things device and the address code in the multi-address control instruction, and determine whether the result is the same as the local orthogonal address code of the Internet of Things device.
[0049] If they are the same, it is a command sent to this device, and the action is executed; otherwise, it is judged as not a command sent to this device, and the device does not execute the action.
[0050] To sum up, this method has the characteristics of simple principle, small amount of calculation, fast calculation speed, etc. It performs multi-address communication through orthogonal address coding, and can realize the simultaneous issuance of control instructions for multiple devices through a single control instruction. Since the communication transmission time is often much longer than the computer's binary calculation time, compared with the existing point-to-point communication mode, the present invention can greatly improve the efficiency of issuing control instructions, reduce redundant communication instructions, and improve the real-time control of group equipment.
[0051] The embodiment of the present application also discloses a group control device for Internet of Things devices based on orthogonal address codes.
[0052] An IoT device group control device based on orthogonal address codes comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute any of the IoT device group control methods based on orthogonal address codes described above.
[0053] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A method for controlling a group of Internet of Things devices based on orthogonal address codes, characterized in that: include: Device networking, which includes: connecting multiple IoT devices to the Internet, and grouping them according to grouping conditions predefined by the user to obtain multiple device groups; Orthogonal code allocation, which includes: allocating orthogonal address codes that comply with orthogonal code specifications to devices based on a preset unspecified orthogonal code generation algorithm; The multi-address control instruction generation includes: enabling the control center to generate the multi-address control instruction based on the addresses of multiple IoT devices to be controlled, and the multi-address control instruction is sent in batches; Instruction recognition and execution determination, which includes: allowing the IoT device of the corresponding device group to recognize the multi-address control instruction, and determining whether the relationship between the multi-address control instruction and its own orthogonal address encoding meets the preset conditions, if yes, the IoT device executes the action corresponding to the multi-address control instruction; if no, the IoT device does not execute the action corresponding to the multi-address control instruction; The control center generates a multi-address control instruction based on the addresses of multiple IoT devices to be controlled, which includes: performing a logical operation on the addresses of multiple IoT devices to generate a new address code, attaching the instruction data to be sent to the address code, and forming a data packet as the multi-address control instruction.
2. The method for controlling a group of IoT devices based on orthogonal address codes according to claim 1 is characterized in that: The non-specific orthogonal code generation algorithm includes: processing the device address using the Walsh algorithm or the orthogonal code construction method, and converting it into a binary code.
3. The method for controlling a group of IoT devices based on orthogonal address codes according to claim 1 is characterized in that: The orthogonal address coding that complies with the orthogonal coding specification includes: the result of the AND logic operation of the orthogonal address codes of any two or more devices in the same device group is not equal to the all-1 sequence, and the number of 1s in the orthogonal address codes is equal.
4. The method for controlling a group of IoT devices based on orthogonal address codes according to claim 1 is characterized in that: The multi-address control instruction is sent in groups, which includes: issuing to all devices in the form of broadcast or multicast.
5. The method for controlling a group of Internet of Things devices based on orthogonal address codes according to claim 1 is characterized in that: The method of determining whether the relationship between the multi-address control instruction and its own orthogonal address code meets the preset conditions includes: performing a logical OR operation on the local orthogonal address code of the Internet of Things device and the address code in the multi-address control instruction, and determining whether the result is the same as the local orthogonal address code of the Internet of Things device.
6. A group control device for Internet of Things devices based on orthogonal address codes, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes a group control method of Internet of Things devices based on orthogonal address codes as claimed in any one of claims 1 to 5.
