Instruction transmission method and device

By generating data packets containing error correction codes and device correspondence relationships, and transmitting instructions to multiple devices using broadcast methods, the device independently judges and executes or ignores them, solving the problem of low efficiency of unicast mode in large-scale network environments, and achieving efficient and accurate instruction transmission.

CN120416779APending Publication Date: 2025-08-01SUNPURE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510629618.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-15
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

In a large-scale network environment, in the prior art, the unicast mode sends instructions to multiple devices one by one is inefficient, making it difficult to meet the precise control needs of specific devices.

Method used

By generating data packets, including error correction codes, instructions and device correspondence, it is transmitted to multiple devices by broadcasting. The devices independently judge and execute or ignore instructions, and combine the advantages of broadcasting and unicast modes to achieve directional control.

Benefits of technology

It realizes efficient transmission of instructions in a large-scale network environment, while meeting the precise control needs of specific devices, avoiding time-consuming operations in traditional unicast mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120416779A_ABST
    Figure CN120416779A_ABST
Patent Text Reader

Abstract

The invention discloses an instruction transmission method and device. The control module generates a data packet based on the instruction and a correspondence between the instruction and the plurality of devices. And issuing the data packet to the plurality of devices in a broadcast form at one time, so that the plurality of devices execute or ignore the instruction based on the data packet. And the equipment receives the broadcast message from the control module and acquires the data packet. And on the basis of the corresponding relationship and the equipment identifier pre-stored in the memory of the equipment, the instruction is autonomously judged to be executed or ignored, so that the directional control effect in the broadcast mode is realized. In this way, the advantages of the broadcast mode and the unicast mode can be combined, the efficient transmission function of the broadcast mode is kept, and the requirement for controlling specific equipment can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technologies, and particularly to a method and device for instruction transmission. Background Art

[0002] In wireless communication technologies, instruction distribution mainly adopts two modes: broadcast and unicast. The broadcast mode can distribute instructions to all devices at once, while the unicast mode sends instructions to devices one by one.

[0003] In the prior art, when only some devices need to respond to instructions, although the unicast mode can accurately distribute instructions to these devices, in a large-scale network environment, distributing instructions to multiple devices one by one has low efficiency. Summary of the Invention

[0004] Based on the above problems, this application provides a method and device for instruction transmission to overcome the low efficiency problem in the process of instruction distribution in a large-scale network environment.

[0005] This application discloses a method for instruction transmission, which is applied to a control module. The method includes:

[0006] Generating a data packet based on the instruction and the corresponding relationship between the instruction and multiple devices;

[0007] Broadcasting the data packet to multiple devices; the data packet is used to enable multiple devices to execute the instruction or ignore the instruction based on the data packet.

[0008] Optionally, the generating a data packet based on the instruction and the corresponding relationship between the instruction and multiple devices includes:

[0009] Obtaining an error correction code based on the instruction and the corresponding relationship;

[0010] Combining the error correction code, the instruction, and the corresponding relationship to obtain the data packet.

[0011] Optionally, before generating a data packet based on the instruction and the corresponding relationship between the instruction and multiple devices, the method further includes:

[0012] Generating an index file according to the device identifiers of multiple devices; multiple positions in the index file correspond one-to-one to multiple device identifiers;

[0013] Adding the requirement of the instruction for each device into the index file to obtain the corresponding relationship; the requirement is to control the device to execute the instruction or control the device to ignore the instruction.

[0014] Optionally, the step of combining the error correction code, the instruction, and the corresponding relationship to obtain the data packet includes:

[0015] Combining the corresponding relationship, the instruction, and the error correction code in sequence to obtain the data packet; the corresponding relationship is used to indicate each device to execute the instruction or ignore the instruction; the instruction is used to indicate the device to perform a preset operation.

[0016] Optionally, the step of broadcasting the data packet to multiple devices; the data packet is used to enable multiple devices to execute the instruction or ignore the instruction based on the data packet, includes:

[0017] Broadcasting the data packet to multiple devices so that the multiple devices perform an integrity check on the data packet to obtain a check result;

[0018] When the check result is normal, it is used to enable the device to execute the instruction or ignore the instruction based on the data packet;

[0019] When the check result is abnormal, it is used to enable the device to correct the instruction and the corresponding relationship based on the error correction code. After obtaining the correct instruction and the correct corresponding relationship, execute the instruction or ignore the instruction according to the correct instruction and the correct corresponding relationship.

[0020] Optionally, after broadcasting the data packet to multiple devices, the method further includes:

[0021] Receiving feedback information from multiple devices; the feedback information is that the device executes the instruction or ignores the instruction.

[0022] Based on the above method for transmitting an instruction, the present application also discloses a device for transmitting an instruction, which is applied to a control module and includes: a generating unit and a sending unit;

[0023] The generating unit is used to generate a data packet based on an instruction and the corresponding relationship between the instruction and multiple devices;

[0024] The sending unit is used to broadcast the data packet to multiple devices; the data packet is used to enable multiple devices to execute the instruction or ignore the instruction based on the data packet.

[0025] Optionally, the generating unit includes:

[0026] An obtaining subunit, configured to obtain an error correction code based on the instruction and the corresponding relationship;

[0027] A combining subunit, configured to combine the error correction code, the instruction, and the corresponding relationship to obtain the data packet.

[0028] Optionally, the device further includes:

[0029] An index generation unit, configured to generate an index file according to the device identifiers of multiple devices; multiple positions in the index file correspond to the multiple device identifiers one by one;

[0030] An index increment unit, configured to add the requirement of the instruction for each device into the index file to obtain the corresponding relationship; the requirement is to control the device to execute the instruction or control the device to ignore the instruction.

[0031] Optionally, the combinatorial subunit is configured to:

[0032] Combine the corresponding relationship, the instruction, and the error correction code in sequence to obtain the data packet; the corresponding relationship is used to indicate that each device executes the instruction or ignores the instruction; the instruction is used to instruct the device to perform a preset operation.

[0033] Optionally, the sending unit includes:

[0034] A sending subunit, configured to broadcast the data packet to multiple devices, so that the multiple devices perform an integrity check on the data packet to obtain a check result;

[0035] When the check result is normal, it is configured to cause the device to execute the instruction or ignore the instruction based on the data packet;

[0036] When the check result is abnormal, it is configured to cause the device to correct the instruction and the corresponding relationship based on the error correction code, and after obtaining the correct instruction and the correct corresponding relationship, execute the instruction or ignore the instruction according to the correct instruction and the correct corresponding relationship.

[0037] Optionally, the device further includes:

[0038] A feedback receiving unit, configured to receive feedback information of multiple devices; the feedback information is that the device executes the instruction or ignores the instruction.

[0039] This application discloses a method for instruction transmission, which is applied to a device. The method includes:

[0040] Receiving a broadcast message from a control module to obtain a data packet; the data packet includes an instruction and a corresponding relationship between the instruction and multiple devices;

[0041] Executing the instruction or ignoring the instruction based on the corresponding relationship and the device identifier; the device identifier is pre-stored in the memory of the device.

[0042] Optionally, the data packet further includes an error correction code, which is obtained based on the instruction and the corresponding relationship. The step of executing the instruction or ignoring the instruction based on the corresponding relationship and the device identifier includes:

[0043] When the verification result obtained by performing integrity verification on the data packet is abnormal, correct the instruction and the corresponding relationship based on the error correction code to obtain the correct instruction and the correct corresponding relationship;

[0044] Execute the correct instruction or ignore the correct instruction based on the correct corresponding relationship and the device identifier.

[0045] Optionally, the step of executing the instruction or ignoring the instruction based on the corresponding relationship and the device identifier includes:

[0046] In the index file in the corresponding relationship, find the position corresponding to the device identifier; multiple positions in the index file correspond to multiple device identifiers one by one;

[0047] Execute the instruction according to the requirement of the position or control the device to ignore the instruction; the requirement is the requirement of the instruction for the device corresponding to the position.

[0048] Optionally, after executing the instruction or ignoring the instruction, the method further includes:

[0049] Upload the feedback information to the control module; the feedback information is the execution of the instruction or the ignoring of the instruction.

[0050] Based on the above method for transmitting an instruction, the present application further discloses an instruction transmission device, which is applied to a device and includes: a receiving unit and a working unit;

[0051] The receiving unit is configured to receive a broadcast message from a control module and obtain a data packet; the data packet includes an instruction and the corresponding relationship between the instruction and multiple devices;

[0052] The working unit is configured to execute the instruction or ignore the instruction based on the corresponding relationship and the device identifier; the device identifier is pre-stored in the memory of the device.

[0053] Optionally, the data packet further includes an error correction code, which is obtained based on the instruction and the corresponding relationship. The working unit includes:

[0054] An error correction subunit, configured to, when the verification result obtained by performing integrity verification on the data packet is abnormal, correct the instruction and the corresponding relationship based on the error correction code to obtain the correct instruction and the correct corresponding relationship;

[0055] A working subunit, configured to execute the correct instruction or ignore the correct instruction based on the correct correspondence and the device identifier.

[0056] Optionally, the working unit includes:

[0057] A lookup subunit, configured to look up a position corresponding to the device identifier in an index file in the correspondence; multiple positions in the index file correspond to multiple device identifiers one by one;

[0058] A requirement subunit, configured to execute the instruction or control the device to ignore the instruction according to the requirement of the position; the requirement is the requirement of the instruction for the device corresponding to the position.

[0059] Optionally, the device further includes:

[0060] A feedback uploading unit, configured to upload feedback information to the control module; the feedback information is executing the instruction or ignoring the instruction.

[0061] This application discloses a method and a device for instruction transmission. The control module generates a data packet based on an instruction and the correspondence between the instruction and multiple devices. The data packet is sent to multiple devices at one time in a broadcast manner, so that the multiple devices execute or ignore the instruction based on the data packet. The device receives the broadcast message from the control module and obtains the data packet. Based on the correspondence and the device identifier pre-stored in the memory of the device, it independently determines whether to execute or ignore the instruction, thus achieving the directional control effect in the broadcast mode. In this way, the advantages of the broadcast mode and the unicast mode can be combined, maintaining both the efficient transmission function of the broadcast mode and meeting the requirement of controlling specific devices. Description of the Drawings

[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.

[0063] Figure 1 [[ID=Z8]]A flowchart of a method for instruction transmission disclosed in an embodiment of the present application;

[0064] Figure 2 A flowchart of another method for instruction transmission disclosed in an embodiment of the present application;

[0065] Figure 3a A structural schematic diagram of a device for instruction transmission applied to a control module disclosed in an embodiment of the present application;

[0066] Figure 3b This is a schematic structural diagram of a device for instruction transmission applied to a device disclosed in an embodiment of the present application. Detailed implementation manners

[0067] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0068] Embodiment 1: The present application discloses a method for instruction transmission.

[0069] Specifically, please refer to Figure 1 In a method for instruction transmission disclosed in this embodiment, the method applied to the control module includes the following steps:

[0070] Step 101: Generate a data packet based on the instruction and the corresponding relationship between the instruction and multiple devices.

[0071] In the method of this embodiment, the instruction is used to indicate the operation of the device. When there are multiple devices, the instruction needs to indicate the operations of multiple devices, so there is a corresponding relationship with multiple devices. And in the case where multiple devices perform different operations, the instruction can indicate different devices to perform different operations. For example, it indicates that device 1 performs a first operation and device 2 performs a second operation.

[0072] As an alternative method, an index file can be generated in advance according to the device identifiers of multiple devices. Multiple positions in the index file correspond one-to-one with multiple device identifiers. Then, the requirements of the instruction for each device are added to the index file to obtain the corresponding relationship. The requirement can specifically be to control the device to execute the instruction or to control the device to ignore the instruction. Taking eight devices as an example, the corresponding relationship can be in the form of a binary bit mask, such as a bit mask with a length of 8 bits. Each bit mask corresponds to each device one-to-one. Specifically, for example, the bit mask is 10110010 (binary), the first bit mask "1" corresponds to device 8, the second bit mask "0" corresponds to device 7, and so on, and the last bit mask "0" corresponds to device 1. Of course, in an actual working scenario, the length of the bit mask can be set according to the number of devices, and the order of the bit mask and its corresponding relationship with the devices can also be set according to actual requirements. The example here is only for easy understanding and does not serve as a limitation. As another alternative method, the corresponding relationship can be in the form of an index table, which is used for a lookup table structure, and each position in the table is corresponded with the number of a device.

[0073] In the method of this embodiment, the value of the bitmask can indicate whether the device executes the instruction or ignores it. For example, the value 1 indicates that the device executes the instruction, and the value 0 indicates that the device ignores the instruction. For the bitmask in the above example, it can be known that devices 8, 6, 5, and 2 need to execute the instruction, and devices 7, 4, 3, and 1 need to ignore the instruction.

[0074] In the method of this embodiment, since an instruction can direct multiple devices to perform different operations, the instruction can be an instruction code. For example, it can direct a device to perform a start operation or a shutdown operation. As an alternative method, the length of the instruction code can be 16 bits, including an operation code (the high 8 bits) and a parameter code (the low 8 bits). Among them, the operation code (in hexadecimal) and its meaning can be: 0x01 represents starting the motor, 0x02 represents stopping the motor, 0x03 represents adjusting the temperature, etc. The parameter code is used to represent the parameters of the action indicated by the operation code. For example, when the operation code is 0x01, the parameter code can be 0x01 (in hexadecimal), indicating that the motor speed is 100%. Another example is when the operation code is 0x03, the parameter code indicates the temperature value.

[0075] As an alternative method, by combining the correspondence and the instruction, that is, by combining the bitmask and the instruction code, a data packet can be generated. Considering data security issues, an encryption field can also be added to the bitmask or the instruction code to enhance security.

[0076] As another alternative method, based on the bitmask and the instruction code, an error correction code can be generated first, and then the bitmask, the instruction code, and the error correction code can be combined to generate a data packet, that is, by combining the correspondence, the instruction, and the error correction code in sequence to obtain the data packet. Among them, the error correction code is used to detect and correct errors during transmission. It is specifically calculated based on the bitmask and the instruction code. Among them, the error correction code can be based on the Hamming code to handle single-bit errors, or based on the Reed-Solomon code to handle consecutive multi-bit errors.

[0077] As an alternative method, corresponding to the bitmask and the instruction code in the above example, the first 24-bit data is 10110010 00000001 01100100 (binary), that is, 0xB2 0x01 0x64 (hexadecimal). The Hamming code of the first 24-bit data can be calculated to obtain the error correction code as 00111010 (binary), that is, 0x3A (hexadecimal).

[0078] Step 102: Broadcast the data packet to multiple devices.

[0079] In the method of this embodiment, the control module broadcasts the data packet to multiple devices in the form of wireless communication. The data packet is used to enable the multiple devices to execute or ignore the instruction based on the data packet. As an alternative method, when receiving the data packet, the device may first perform an integrity check to obtain a check result. When the check result is normal, the device executes or ignores the instruction based on the data packet. When the check result is abnormal, the device searches for an error correction code in the data packet. When there is no error correction code in the data packet, the device returns an abnormal error message. When there is an error correction code in the data packet, the device corrects the instruction and the corresponding relationship based on the error correction code to obtain the correct instruction and the correct corresponding relationship. Then, according to the correct instruction and the correct corresponding relationship, the device executes or ignores the instruction.

[0080] As an alternative method, the error correction process may specifically be, for example, the length of the data packet is 32 bits, which includes a 24-bit bit mask and instruction code, and an 8-bit error correction code. When receiving the data packet, in the case of 1-bit error caused by noise or the like, the 12th bit in the received data changes from the original data 0 to 1. At this time, the device can calculate the Hamming code of the first 24 bits of the received data to obtain a verification code. Comparing this verification code with the error correction code can locate the error bit, that is, the 12th bit, and change the value on it to 0 to obtain the first 24-bit data, that is, the correct bit mask and instruction code.

[0081] In the method of this embodiment, after the broadcast ends, the control module can also receive feedback information sent back from multiple devices. The feedback information indicates that the device has executed or ignored the instruction.

[0082] In a method for transmitting instructions disclosed in this embodiment, the method applied to the device includes the following steps:

[0083] Step 103: Receive a broadcast message from the control module and obtain the data packet.

[0084] In the method of this embodiment, when there is an error correction code in the data packet, after receiving the data packet, the device may first perform an integrity check on the data packet. When the check result obtained from the integrity check is abnormal, the device can correct the instruction and the corresponding relationship based on the error correction code according to the method in step 102 to obtain the correct instruction and the correct corresponding relationship.

[0085] Step 104: Execute or ignore the instruction based on the corresponding relationship and the device identifier.

[0086] In the method of this embodiment, a unique device identifier is assigned to the device during factory production or deployment, and this device identifier is stored in the built-in memory of the device. The device can look up the position corresponding to the device identifier in the index file in the correspondence relationship, and then execute the instruction according to the requirements of the position or control the device to ignore the instruction. That is, the device can determine the bit mask corresponding to itself in the data packet according to its own device identifier, and then independently judge whether to execute the instruction according to the value of the bit mask. For example, corresponding to the above example, device 8 determines that the bit mask corresponding to itself is the first bit mask, and its value is "1", then device 8 executes the instruction. Device 7 determines that the bit mask corresponding to itself is the second bit mask, and its value is "0", then device 7 does not execute the instruction.

[0087] In the method of this embodiment, after the device executes or ignores the instruction, the feedback information can also be sent back to the control module.

[0088] The method described in this embodiment supports the device to locate the bit mask corresponding to itself in the data packet through its own identifier, and independently judge whether to execute the instruction according to its value. It can broadcast a unified instruction to all devices at one time, and can also accurately select some devices to control them. It realizes the directional control effect under broadcasting, combines the advantages of both, realizes efficient transmission, and meets the need for precise control of specific devices. Applied to a multi-device system, it solves the problems of time-consuming and complex operation caused by sending instructions to some target devices one by one in the traditional unicast mode, and realizes the efficient transmission of instructions.

[0089] Embodiment 2: The present application discloses another method for instruction transmission. Please refer to Figure 2 , and the method described in this embodiment introduces the whole process of instruction transmission.

[0090] Step 201: The control module generates a data packet.

[0091] Step 202: The control module sends the data packet to the first device.

[0092] Step 203: The first device performs an integrity check on the data packet to determine whether the check result is normal. If so, go to step 204; if not, go to step 205.

[0093] Step 204: The first device determines the corresponding bit mask in the data packet based on its own device identifier.

[0094] Step 205: The first device corrects the data packet based on the error correction code in the data packet. And go to step 204.

[0095] Step 206: The first device determines whether the value of the bit mask is 1. If so, go to step 207; if not, go to step 208.

[0096] Step 207: The first device executes the instruction code in the data packet.

[0097] Step 208: The first device ignores the instruction code in the data packet.

[0098] Based on the method for instruction transmission applied to the control module disclosed in the above embodiments, this embodiment correspondingly discloses an instruction transmission device, which is also applied to the control module. Please refer to Figure 3a , The instruction transmission device includes: a generation unit 301 and a sending unit 302;

[0099] The generation unit 301 is configured to generate a data packet based on the instruction and the corresponding relationship between the instruction and multiple devices;

[0100] The sending unit 302 is configured to broadcast the data packet to multiple devices; the data packet is used to enable multiple devices to execute the instruction or ignore the instruction based on the data packet.

[0101] Optionally, the generation unit 301 includes:

[0102] An acquisition subunit, configured to obtain an error correction code based on the instruction and the corresponding relationship;

[0103] A combination subunit, configured to combine the error correction code, the instruction, and the corresponding relationship to obtain the data packet.

[0104] Optionally, the device further includes:

[0105] An index generation unit, configured to generate an index file according to the device identifiers of multiple devices; multiple positions in the index file correspond one-to-one with multiple device identifiers;

[0106] An index increment unit, configured to add the requirement of the instruction for each device into the index file to obtain the corresponding relationship; the requirement is to control the device to execute the instruction or control the device to ignore the instruction.

[0107] Optionally, the combination subunit is configured to:

[0108] Combine the corresponding relationship, the instruction, and the error correction code in sequence to obtain the data packet; the corresponding relationship is used to indicate that each device executes the instruction or ignores the instruction; the instruction is used to indicate that the device performs a preset operation.

[0109] Optionally, the sending unit 302 includes:

[0110] A sending subunit, configured to broadcast the data packet to the multiple devices, so that the multiple devices perform integrity verification on the data packet to obtain a verification result;

[0111] When the verification result is normal, it is configured to cause the device to execute the instruction or ignore the instruction based on the data packet;

[0112] When the verification result is abnormal, it is configured to cause the device to correct the instruction and the corresponding relationship based on the error correction code. After obtaining the correct instruction and the correct corresponding relationship, execute the instruction or ignore the instruction according to the correct instruction and the correct corresponding relationship.

[0113] Optionally, the device further includes:

[0114] A feedback receiving unit, configured to receive feedback information from the multiple devices; the feedback information is that the device executes the instruction or ignores the instruction.

[0115] Based on the method for transmitting instructions to devices disclosed in the above embodiments, this embodiment correspondingly discloses a device for transmitting instructions, which is also applied to devices. Please refer to Figure 3b , the device for transmitting instructions includes: a receiving unit 303 and a working unit 304;

[0116] The receiving unit 303 is configured to receive a broadcast message from a control module and obtain a data packet; the data packet includes an instruction and a corresponding relationship between the instruction and multiple devices;

[0117] The working unit 304 is configured to execute the instruction or ignore the instruction based on the corresponding relationship and the device identifier; the device identifier is pre-stored in the memory of the device.

[0118] Optionally, the data packet further includes an error correction code, which is obtained based on the instruction and the corresponding relationship. The working unit 304 includes:

[0119] An error correction subunit, configured to, when the verification result obtained by performing integrity verification on the data packet is abnormal, correct the instruction and the corresponding relationship based on the error correction code to obtain a correct instruction and a correct corresponding relationship;

[0120] A working subunit, configured to execute the correct instruction or ignore the correct instruction based on the correct corresponding relationship and the device identifier.

[0121] Optionally, the working unit 304 includes:

[0122] A search subunit, configured to search for a position corresponding to the device identifier in an index file in the corresponding relationship; multiple positions in the index file correspond to multiple device identifiers one by one;

[0123] A requirement subunit, configured to execute the instruction or ignore the instruction according to the requirement of the position; the requirement is the requirement of the instruction for the device corresponding to the position.

[0124] Optionally, the apparatus further includes:

[0125] A feedback uploading unit, configured to upload feedback information to the control module; the feedback information is to execute the instruction or ignore the instruction.

[0126] The embodiments in this specification are described in a progressive manner. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple. For the relevant parts, please refer to the description in the method section.

[0127] It should be further noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.

[0128] The steps of the method or algorithm described in combination with the embodiments disclosed in this article can be directly implemented by hardware, a software module executed by a processor, or a combination of both. The software module can be placed in a random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.

[0129] The features described in the embodiments in this specification can be replaced or combined with each other, enabling those skilled in the art to implement or use this application.

[0130] The foregoing description of the disclosed embodiments enables those skilled in the art to practice or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for instruction transmission, characterized in that, Applied to a control module, including: Generating a data packet based on an instruction and the corresponding relationship between the instruction and multiple devices; Broadcasting the data packet to the multiple devices; the data packet is used to cause the multiple devices to execute the instruction or ignore the instruction based on the data packet.

2. The method according to claim 1, wherein The generating a data packet based on an instruction and the corresponding relationship between the instruction and multiple devices includes: Obtaining an error correction code based on the instruction and the corresponding relationship; Combining the error correction code, the instruction, and the corresponding relationship to obtain the data packet.

3. The method according to claim 2, wherein Before generating a data packet based on an instruction and the corresponding relationship between the instruction and multiple devices, the method further includes: Generating an index file according to the device identifiers of the multiple devices; multiple positions in the index file correspond one-to-one to the multiple device identifiers; Adding the requirements of the instruction for each device into the index file to obtain the corresponding relationship; the requirement is to control the device to execute the instruction or control the device to ignore the instruction.

4. The method according to claim 2, wherein The combining the error correction code, the instruction, and the corresponding relationship to obtain the data packet includes: Sequentially combining the corresponding relationship, the instruction, and the error correction code to obtain the data packet; the corresponding relationship is used to indicate that each device executes the instruction or ignores the instruction; the instruction is used to indicate that the device performs a preset operation.

5. The method according to claim 2, wherein The broadcasting the data packet to the multiple devices; The data packet is used to cause the multiple devices to execute the instruction or ignore the instruction based on the data packet, including: Broadcasting the data packet to the multiple devices so that the multiple devices perform an integrity check on the data packet to obtain a check result; When the check result is normal, it is used to cause the device to execute the instruction or ignore the instruction based on the data packet; When the check result is abnormal, it is used to cause the device to correct the instruction and the corresponding relationship based on the error correction code, and after obtaining the correct instruction and the correct corresponding relationship, execute the instruction or ignore the instruction according to the correct instruction and the correct corresponding relationship.

6. The method according to claim 1, characterized in that After broadcasting the data packet to the multiple devices, the method further includes: Receiving feedback information from the multiple devices; the feedback information is that the device executes the instruction or ignores the instruction.

7. A method for instruction transmission, characterized in that Applied to a device, including: Receiving a broadcast message from a control module to obtain a data packet; the data packet includes an instruction and the corresponding relationship between the instruction and multiple devices; Executing the instruction or ignoring the instruction based on the corresponding relationship and the device identifier; the device identifier is pre-stored in the memory of the device.

8. The method according to claim 7, wherein The data packet further includes an error correction code obtained based on the instruction and the corresponding relationship, and the executing the instruction or ignoring the instruction based on the corresponding relationship and the device identifier includes: When the check result obtained by performing an integrity check on the data packet is abnormal, correcting the instruction and the corresponding relationship based on the error correction code to obtain a correct instruction and a correct corresponding relationship; Execute the correct instruction or ignore the correct instruction based on the correct correspondence and the device identifier.

9. The method according to claim 7, wherein Executing the instruction or ignoring the instruction based on the correspondence and the device identifier includes: In the index file in the correspondence, find the position corresponding to the device identifier; multiple positions in the index file correspond to multiple device identifiers one by one; Execute the instruction or ignore the instruction according to the requirement of the position; the requirement is the requirement of the instruction for the device corresponding to the position.

10. The method according to claim 7, wherein After executing the instruction or ignoring the instruction, the method further includes: Upload the feedback information to the control module; the feedback information is executing the instruction or ignoring the instruction.