Communication method, system and device of Internet of Things equipment and medium
By generating parallel communication strategies and mode key groups through IoT gateways, and using multiple target communication modes to transmit data from IoT devices in parallel, the problem of resource contention in IoT systems is solved, communication stability and reliability are improved, device resource requirements are reduced, the scope of application is expanded, and security is enhanced.
Patent Information
- Application Number
- CN202511070334.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-10-31
AI Technical Summary
The increasing number of IoT devices in IoT systems leads to resource contention, affecting the stability and reliability of data communication.
By generating parallel communication strategies and mode key groups through an IoT gateway, data from IoT devices can be transmitted in parallel using multiple target communication modes, ensuring secure data transmission.
It improves the communication stability and reliability of IoT devices, reduces the requirements for device resources, expands the scope of application, and enhances the security of data transmission.
Smart Images

Figure CN120880986A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet of Things (IoT) technology, and in particular to a communication method, system, device, and medium for IoT devices. Background Technology
[0002] With the development of science and technology, the Internet of Things (IoT) (such as the power IoT and the industrial IoT) has developed rapidly. In IoT systems, a large number of different types of IoT devices (such as distribution IoT devices in the power IoT) communicate, generate, process, and transmit data through IoT networks. Data communication and transmission of IoT devices has become a key focus for relevant professionals.
[0003] Currently, the relevant technology typically involves allocating frequency band usage time slots for data to be transmitted based on the amount of data transmitted by IoT devices in an IoT system, and then transmitting the data to the server in the IoT system based on the allocated usage time slots. However, as the number of IoT devices connected to the IoT system continues to increase, and the number of IoT devices transmitting data also continues to increase, this method is prone to resource contention during data communication transmission, and the stability and reliability of IoT device data communication transmission are not satisfactory.
[0004] Therefore, the problems with the relevant technologies still need to be solved and optimized. Summary of the Invention
[0005] The purpose of this invention is to at least partially solve one of the technical problems existing in the related art.
[0006] Therefore, one objective of this invention is to provide a communication method, system, apparatus, and medium for Internet of Things (IoT) devices, wherein the method can effectively improve the communication stability and reliability of IoT devices.
[0007] To achieve the above-mentioned technical objectives, the technical solutions adopted in the embodiments of this application include:
[0008] In a first aspect, embodiments of this application provide a communication method for an Internet of Things (IoT) device, applied to an IoT gateway, wherein the IoT gateway is communicatively connected to an IoT server, and the method includes:
[0009] Obtain the IoT communication mode set, as well as the configuration parameters, historical transmission data records, and data to be transmitted of the IoT device, wherein the data to be transmitted includes device data of several different data types;
[0010] Based on the IoT communication mode set, a communication strategy is generated for the configuration parameters and the historical transmission data records to obtain a parallel communication strategy. The parallel communication strategy includes several target communication modes, each of which corresponds to at least one type of device data. Different target communication modes correspond to different data types.
[0011] The parallel communication strategy is used to generate a key to obtain a communication key group. The communication key group includes several mode keys, each mode key corresponds to a target communication mode, and the several mode keys in the communication key group are different from each other and have an association relationship.
[0012] According to the communication key group and the parallel communication strategy, the data to be transmitted by the IoT device is transmitted in parallel to the IoT server.
[0013] In addition, the method according to the above embodiments of this application may also have the following additional technical features:
[0014] Furthermore, in one embodiment of this application, the step of generating a communication strategy based on the configuration parameters and the historical transmission data records according to the IoT communication mode set to obtain a parallel communication strategy includes:
[0015] Based on the configuration parameters, the IoT communication mode set is analyzed to obtain several available modes;
[0016] Based on all the available modes, the historical transmission data records are assigned data modes to obtain several data types corresponding to each available mode;
[0017] Based on all the data types, the corresponding available modes are mapped and combined to obtain the parallel communication strategy.
[0018] Furthermore, in one embodiment of this application, the step of generating a communication key set for the parallel communication strategy includes:
[0019] Acquire the transmission sequence information for each of the target communication modes, and the mode response of the IoT device under each of the target communication modes;
[0020] Based on all the transmission sequence information, key associations are constructed for all the mode responses to obtain the communication key group.
[0021] Furthermore, in one embodiment of this application, obtaining the mode response of the IoT device in each of the target communication modes includes:
[0022] Based on the target communication mode, a mode challenge is obtained, and the mode challenge is different under different target communication modes;
[0023] The pattern challenge is sent to the IoT device so that the IoT device generates a response to the pattern challenge, and the pattern response returned by the IoT device is obtained.
[0024] Furthermore, in one embodiment of this application, the step of constructing the communication key group by performing key association on all the mode responses based on all the transmission sequence information includes:
[0025] Get the current round, the current transmission sequence information, and the mode response;
[0026] Perform round analysis on the current round to obtain the round analysis results;
[0027] If the round analysis result indicates that the current round is the first round, then the current transmission sequence information and mode response are concatenated using a first key to obtain a mode key corresponding to the current round; or, if the round analysis result indicates that the current round is not the first round, then an intermediate key is obtained, and based on the intermediate key, the current transmission sequence information and mode response are concatenated using a second key to obtain a mode key corresponding to the current round.
[0028] The intermediate key is the pattern key from the previous round.
[0029] Furthermore, in one embodiment of this application, the step of concatenating the current transmission sequence information and the pattern response with a first key to obtain the pattern key corresponding to the current round includes:
[0030] The current transmission sequence information and the mode response are concatenated to obtain the first concatenated data;
[0031] The first concatenated data is subjected to key hashing to obtain the pattern key.
[0032] Further, in one embodiment of this application, the step of concatenating the current transmission sequence information and the pattern response with a second key based on the intermediate key to obtain the pattern key corresponding to the current round includes:
[0033] Based on the intermediate key, the current mode response is XORed and combined to obtain composite key response data;
[0034] Based on the composite key response data, the current transmission sequence information is concatenated to obtain the second concatenated data;
[0035] The second concatenated data is subjected to key hashing to obtain the pattern key.
[0036] Secondly, embodiments of this application provide a communication system for an Internet of Things (IoT) device, applied to an IoT gateway, wherein the IoT gateway is communicatively connected to an IoT server, and the system includes:
[0037] The first processing unit is used to acquire a set of IoT communication modes, as well as the configuration parameters, historical transmission data records and data to be transmitted of the IoT device. The data to be transmitted includes device data of several different data types.
[0038] The second processing unit is used to generate a communication strategy based on the configuration parameters and the historical transmission data records according to the IoT communication mode set, and to obtain a parallel communication strategy. The parallel communication strategy includes several target communication modes, each of which corresponds to at least one type of device data. Different target communication modes correspond to different data types.
[0039] The third processing unit is used to generate a key for the parallel communication strategy to obtain a communication key group. The communication key group includes several mode keys, each mode key corresponds to a target communication mode, and the several mode keys in the communication key group are different from each other and have an association relationship.
[0040] The fourth processing unit is used to transmit the data to be transmitted from the IoT device to the IoT server in parallel according to the communication key group and the parallel communication strategy.
[0041] Thirdly, embodiments of this application also provide an electronic device, including:
[0042] At least one processor;
[0043] At least one memory for storing at least one program;
[0044] When the at least one program is executed by the at least one processor, the at least one processor performs the method described above.
[0045] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a processor-executable program, which, when executed by the processor, is used to implement the above-described method.
[0046] The advantages and beneficial effects of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application:
[0047] This application discloses a communication method, system, apparatus, and medium for an Internet of Things (IoT) device. The method is applied to an IoT gateway, which acquires an IoT communication mode set, configuration parameters of the IoT device, historical transmission data records, and data to be transmitted. The data to be transmitted includes device data of several different data types. Based on the IoT communication mode set, a communication strategy is generated from the configuration parameters and historical transmission data records to obtain a parallel communication strategy. The parallel communication strategy includes several target communication modes, each corresponding to at least one data type of device data. Different target communication modes correspond to different data types. A key is generated from the parallel communication strategy to obtain a communication key group. The communication key group includes several mode keys, each corresponding to one target communication mode. The mode keys within the communication key group are different but related. Based on the communication key group and the parallel communication strategy, the data to be transmitted from the IoT device is transmitted in parallel to the IoT server. This method uses an IoT gateway to transmit data in parallel based on a parallel communication strategy that includes several target communication modes and a mode key corresponding to each target communication mode. This can suppress resource contention during data communication transmission while ensuring secure data transmission, thereby effectively improving the communication stability and reliability of IoT devices. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following description is provided with accompanying drawings of the relevant technical solutions in the embodiments of this application or the prior art. It should be understood that the accompanying drawings described below are only for the purpose of clearly illustrating some embodiments of the technical solutions in this application. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0049] Figure 1 A flowchart illustrating a communication method for an Internet of Things (IoT) device provided in an embodiment of this application;
[0050] Figure 2 This application provides a schematic diagram of the framework of a communication system for an Internet of Things (IoT) device.
[0051] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0052] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application. The step numbers in the following embodiments are set only for ease of explanation, and there is no limitation on the order between the steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0054] Currently, the relevant technologies typically allocate frequency band usage time slots for data to be transmitted in IoT systems based on the amount of data transmitted by IoT devices, and then transmit the data to the server in the IoT system based on the allocated usage time slots, thereby suppressing the high packet loss rate during data communication transmission in IoT systems. However, with the continuous increase in the number of IoT devices connected to the IoT system and the continuous increase in the number of IoT devices transmitting data, this method is prone to resource contention during data communication transmission, and the stability and reliability of IoT device data communication transmission are not satisfactory.
[0055] Furthermore, related technologies typically involve adding authentication functionality for the device's private or public key within the IoT system. After successful authentication, a connection is established, and data to be transmitted is communicated over this connection based on time slots. However, public keys are not very secure, and private keys require IoT devices to possess substantial computing resources. In practical IoT applications, where the resources of IoT devices are often extremely limited, this approach suffers from poor security and is not suitable for resource-constrained IoT devices, thus limiting its applicability.
[0056] It should be noted that the aforementioned related technologies are only used to assist in understanding the technical solutions of this application and do not mean that they belong to the publicly disclosed prior art.
[0057] In view of this, embodiments of this application provide a communication method, system, apparatus, and medium for IoT devices. The method includes a parallel communication strategy comprising several target communication modes and a mode key corresponding to each target communication mode, to transmit data in parallel. Specifically, based on the parallel communication strategy and the mode key corresponding to each target communication mode, device data of several data types corresponding to each target communication mode are transmitted in parallel to the IoT service. This can suppress resource contention during data communication transmission while ensuring secure data transmission, thereby effectively improving the communication stability and reliability of IoT devices.
[0058] Furthermore, this method generates target communication modes and mode keys corresponding to the device data of IoT devices on the IoT gateway side, which can reduce the resource requirements of IoT devices and improve the applicability. Also, based on the fact that several mode keys within a communication key group are different yet related, specifically by concatenating the mode response of the current target communication mode with the mode key of the previous target communication mode, this method ensures that the mode key of each target communication mode under the IoT device is not completely identical to and related to the mode keys of other target communication modes. These different yet related mode keys allow the IoT gateway to notify the IoT device to continue secure data transmission using the keys of the remaining target communication modes after discovering that the mode key of one of the target communication modes of the IoT device has been attacked, thus improving the security of data communication transmission.
[0059] Reference Figure 1 In this embodiment of the application, a communication method for an Internet of Things (IoT) device is applied to an IoT gateway, wherein the IoT gateway is communicatively connected to an IoT server, and the method includes:
[0060] Step 110: Obtain the IoT communication mode set, as well as the configuration parameters, historical transmission data records and data to be transmitted of the IoT device. The data to be transmitted includes device data of several different data types.
[0061] In the embodiments of this application, the IoT communication mode set can be a collection of various different types of communication modes in the IoT system. For example, in the power IoT system, the commonly used communication modes are high-speed power line carrier communication mode and low-power wireless communication mode. The IoT communication mode set of the power IoT system can include high-speed power line carrier communication mode and low-power wireless communication mode.
[0062] Understandably, in an IoT system, an IoT gateway can communicate with multiple IoT devices and with an IoT server. Specifically, for one of the IoT devices under the IoT gateway, the gateway can obtain configuration parameters previously provided by the gateway. These parameters include at least one of the IoT device's communication power consumption, bandwidth, latency, and operating frequency band. Historical transmission data records can be the data transmission records of the IoT device in previous historical time periods, recording the amount of data transmitted and the data transmission requirements for each time period. The data to be transmitted can be the data that the IoT device is currently preparing to transmit. This data includes several different types of device data. For example, for an IoT device used for alarms in an IoT system, the data it needs to transmit includes fault data and remaining battery power data, with the data types of the fault data and the remaining battery power data being different.
[0063] Step 120: Based on the IoT communication mode set, generate a communication strategy for the configuration parameters and the historical transmission data records to obtain a parallel communication strategy;
[0064] In this embodiment of the application, for any IoT device that is connected to the IoT gateway, the IoT gateway can determine the parallel communication strategy corresponding to the IoT device based on the configuration parameters and historical transmission data records of the IoT device. The parallel communication strategy includes several target communication modes, each target communication mode corresponds to at least one type of device data, and different target communication modes correspond to different data types.
[0065] In some embodiments, the step of generating a communication strategy based on the configuration parameters and the historical transmission data records according to the IoT communication mode set to obtain a parallel communication strategy includes:
[0066] Based on the configuration parameters, the IoT communication mode set is analyzed to obtain several available modes;
[0067] Based on all the available modes, the historical transmission data records are assigned data modes to obtain several data types corresponding to each available mode;
[0068] Based on all the data types, the corresponding available modes are mapped and combined to obtain the parallel communication strategy.
[0069] In this embodiment, for any IoT device's configuration parameters, mode analysis can determine the available modes of the IoT device from the IoT communication mode set based on the device power consumption in the configuration parameters. For example, it can determine the available modes for devices supporting high power consumption as high-speed power line carrier communication mode and low-power wireless communication mode, and determine the available mode for devices supporting only low power consumption as low-power wireless communication mode. Alternatively, it can determine the available modes of the IoT device from the IoT communication mode set based on the frequency band used in the configuration parameters.
[0070] It is understood that, taking an IoT device for alarm purposes as an example, if the available modes of the IoT device for alarm purposes include high-speed power line carrier communication mode and low-power wireless communication mode, the data mode allocation can first be based on the historical transmission data records of the IoT device for alarm purposes to determine the data type. For example, the real-time transmission data type can be determined based on the fault data that needs to be reported in real time in the historical transmission data records, and the timed reporting data type can be determined based on the remaining battery power data of the device that only needs to be reported periodically. Alternatively, the data type division can also be determined based on the amount of transmission data in the historical transmission data records. There are already many ways to determine the specific data type, which will not be elaborated here.
[0071] It is worth mentioning that after determining the data type of the IoT device used for alarm, for example, if the IoT device used for alarm includes real-time transmission and timed reporting types, an available mode can be assigned to the determined data type. For example, the high-speed power line carrier communication mode can correspond to the real-time transmission data type, while the low-power wireless communication mode can correspond to the timed reporting data type. Based on each available mode and the data type corresponding to each available mode, a target communication mode is generated, and then a parallel communication strategy is constructed based on all target communication modes.
[0072] It should be noted that, for ease of understanding, the examples provided in this application are only simple examples. In practical applications, each available mode may correspond to multiple different types of device data. For example, the high-speed power line carrier communication mode may also correspond to multiple data types such as "real-time transmission" and "large data transmission volume". This application will not elaborate further here.
[0073] Step 130: Generate a key for the parallel communication strategy to obtain a communication key group. The communication key group includes several mode keys, and each mode key corresponds to a target communication mode.
[0074] In this embodiment of the application, key generation may be to generate a corresponding mode key for each target communication mode in the parallel communication strategy, and to construct a communication key group based on the mode key in each target communication mode, wherein each mode key in the communication key group is different and has an association relationship.
[0075] In some embodiments, generating a communication key set for the parallel communication strategy includes:
[0076] Acquire the transmission sequence information for each of the target communication modes, and the mode response of the IoT device under each of the target communication modes;
[0077] Further, obtaining the mode response of the IoT device in each of the target communication modes includes:
[0078] Based on the target communication mode, a mode challenge is obtained, and the mode challenge is different under different target communication modes;
[0079] The pattern challenge is sent to the IoT device so that the IoT device generates a response to the pattern challenge, and the pattern response returned by the IoT device is obtained.
[0080] In this embodiment, the transmission sequence information is used to indicate the position of the device data corresponding to the target communication mode within the entire data to be transmitted, and it can be determined based on the historical transmission data records of the IoT device. For the pattern response of the IoT device in any target communication mode, it can generate a random challenge, denoted as the pattern challenge, through the IoT gateway in the target communication mode based on challenge-response authentication technology, and send the pattern challenge to the IoT device, so that the IoT device can generate and return a pattern response to the IoT gateway based on its own configured Physically Unclonable Response (PUF) module in the target communication mode.
[0081] Based on all the transmission sequence information, key associations are constructed for all the mode responses to obtain the communication key group.
[0082] Further, the step of constructing the communication key set by key association of all the mode responses based on all the transmission sequence information includes:
[0083] Get the current round, the current transmission sequence information, and the mode response;
[0084] Perform round analysis on the current round to obtain the round analysis results;
[0085] In this embodiment of the application, for any IoT device that is connected to the IoT gateway, the IoT gateway can generate a mode key corresponding to each target communication mode of the parallel communication strategy in a cyclical manner based on the parallel communication strategy corresponding to the IoT device.
[0086] It is understandable that the current round can be the current execution round in the loop process, the current transmission sequence information can be the transmission sequence information of the target communication mode corresponding to the current round, and the current mode response can be the mode response of the target communication mode corresponding to the current round.
[0087] For example, in this embodiment of the application, the target communication modes of the IoT device used for alarms are high-speed power line carrier communication mode and low-power wireless communication mode, respectively, with high-speed power line carrier communication mode corresponding to the first round and low-power wireless communication mode corresponding to the second round. Round analysis can be performed to analyze and determine whether the current round belongs to the first round, thereby obtaining the first round. Specifically, if the round analysis result is that the current round is the first round, it means that the mode key of the current round is the first mode key generated by the IoT gateway for the IoT device, that is, the IoT gateway generates the mode key for the high-speed power line carrier communication mode of the IoT device; or, if the current round is the second round, the round analysis result is that the current round is not the first round, which means that the mode key of the current round is the second mode key generated by the IoT gateway for the IoT device, that is, the IoT gateway generates the mode key for the low-power wireless communication mode of the IoT device.
[0088] It should be noted that the example of the current round in this application is only a simple example. In actual applications, there are more than or equal to 3 target communication modes of IoT devices. In this case, the maximum round threshold of the current round is equal to the total number of target communication modes. This application will not elaborate further here.
[0089] If the round analysis result indicates that the current round is the first round, then the current transmission sequence information and the mode response are concatenated with a first key to obtain the mode key corresponding to the current round;
[0090] Further, the step of concatenating the current transmission sequence information and the pattern response with a first key to obtain the pattern key corresponding to the current round includes:
[0091] The current transmission sequence information and the mode response are concatenated to obtain the first concatenated data;
[0092] The first concatenated data is subjected to key hashing to obtain the pattern key.
[0093] In this embodiment, if the first round is applied to the high-speed power line carrier communication mode of the IoT device used for alarm, the first key splicing can first be achieved by splicing the transmission sequence information in the high-speed power line carrier communication mode and the mode response returned by the IoT device used for alarm in the high-speed power line carrier communication mode through the IoT gateway, thereby obtaining the first spliced data; then, the IoT gateway performs a hash operation on the obtained first spliced data, thereby generating the mode key of the IoT device used for alarm in the high-speed power line carrier communication mode.
[0094] For example, the pattern key in the first round can be represented as:
[0095] h1=H(δ1||s1)
[0096] Where h1 is the mode key in the first round; H(·) is the hash operation function; δ1 is the mode response of the target communication mode corresponding to the first round; and s1 is the transmission sequence information of the target communication mode corresponding to the first round.
[0097] Alternatively, if the round analysis result indicates that the current round is not the first round, then an intermediate key is obtained, and based on the intermediate key, the current transmission sequence information and the mode response are concatenated with a second key to obtain the mode key corresponding to the current round.
[0098] Further, the step of concatenating the current transmission sequence information and the pattern response with a second key based on the intermediate key to obtain the pattern key corresponding to the current round includes:
[0099] Based on the intermediate key, the current mode response is XORed and combined to obtain composite key response data;
[0100] Based on the composite key response data, the current transmission sequence information is concatenated to obtain the second concatenated data;
[0101] The second concatenated data is subjected to key hashing to obtain the pattern key.
[0102] In this embodiment of the application, taking the current round as the second round, and taking the low-power wireless communication mode of the IoT device used for alarm as an example, the second key concatenation can be as follows: obtaining the mode key of the first round, that is, the mode key of the IoT device used for alarm in high-speed power line carrier communication mode, denoted as the intermediate key; then, performing an XOR operation between the intermediate key and the mode response of the IoT device used for alarm in low-power wireless communication mode to obtain composite key response data; and concatenating the composite key response data with the transmission sequence information of the IoT device used for alarm in low-power wireless communication mode, and performing a hash operation on the concatenated second concatenated data to obtain the mode key of the IoT device used for alarm in low-power wireless communication mode.
[0103] For example, the pattern key in the second round can be represented as:
[0104]
[0105] Where h2 is the mode key in the second round; H(·) is the hash function; δ2 is the mode response of the target communication mode corresponding to the second round; and s2 is the transmission sequence information of the target communication mode corresponding to the second round.
[0106] It is understandable that in actual IoT application scenarios, the target communication mode of the IoT device connected to the IoT gateway is one or more. For cases where the target communication mode of the IoT device is one, two or more, it can be simply deduced based on the aforementioned example of this application, and will not be elaborated further here.
[0107] Step 140: Based on the communication key group and the parallel communication strategy, transmit the data to be transmitted from the IoT device to the IoT server in parallel.
[0108] In this embodiment, after generating a communication key group and parallel communication strategy corresponding to the IoT device, the IoT gateway can transmit the data to be transmitted from the IoT device to the IoT server in parallel based on the obtained communication key group and parallel communication strategy.
[0109] Specifically, if the IoT device is used for alarm purposes, the IoT gateway can first split the data to be transmitted from the user's alarm IoT device into fault data and remaining battery power data. Then, based on the mode key corresponding to the high-speed power line carrier communication mode, the fault data is encrypted to obtain fault encrypted data, and based on the mode key corresponding to the low-power wireless communication mode, the remaining battery power data is encrypted to obtain battery encrypted data. Then, the IoT gateway transmits the fault encrypted data based on the high-speed power line carrier communication mode and transmits the battery encrypted data based on the low-power wireless communication mode, thereby transmitting the data to be transmitted from the alarm IoT device to the IoT server in parallel.
[0110] Understandably, during the transmission of data, the IoT gateway can also monitor the bandwidth utilization of the frequency band used by each target communication mode in real time. Specifically, for a certain target communication mode, when the bandwidth utilization of a certain frequency band used under that target communication mode is greater than a first preset threshold, the data to be transmitted under that frequency band can be split, and the split data can be transmitted using the remaining frequency bands where the bandwidth utilization of the target communication mode is less than or equal to a second preset threshold. This ensures load balancing in the IoT system, helps avoid frequent packet loss due to excessive load, and further improves the communication stability and reliability of IoT devices.
[0111] The following describes in detail, with reference to the accompanying drawings, a communication system for an Internet of Things (IoT) device according to an embodiment of this application.
[0112] Reference Figure 2 This application proposes a communication system for an Internet of Things (IoT) device, applied to an IoT gateway. The IoT gateway is communicatively connected to an IoT server. The system includes:
[0113] The first processing unit 101 is used to acquire a set of IoT communication modes, as well as the configuration parameters, historical transmission data records and data to be transmitted of the IoT device. The data to be transmitted includes device data of several different data types.
[0114] The second processing unit 102 is used to generate a communication strategy based on the configuration parameters and the historical transmission data records according to the IoT communication mode set, and to obtain a parallel communication strategy. The parallel communication strategy includes several target communication modes, each of which corresponds to at least one type of device data. Different target communication modes correspond to different data types.
[0115] The third processing unit 103 is used to generate a key for the parallel communication strategy to obtain a communication key group. The communication key group includes several mode keys, each mode key corresponds to a target communication mode, and the several mode keys in the communication key group are different from each other and have an association relationship.
[0116] The fourth processing unit 104 is used to transmit the data to be transmitted from the IoT device to the IoT server in parallel according to the communication key group and the parallel communication strategy.
[0117] It is understood that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0118] Reference Figure 3 This application also provides an electronic device, including:
[0119] At least one processor 201;
[0120] At least one memory 202 is used to store at least one program;
[0121] When the at least one program is executed by the at least one processor 201, the at least one processor 201 implements the above-described method embodiments.
[0122] Similarly, it can be understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0123] This application also provides a computer-readable storage medium storing a program executable by a processor 201, which, when executed by the processor 201, is used to implement the above-described method embodiments.
[0124] Similarly, the content of the above method embodiments is applicable to the present computer-readable storage medium embodiments. The specific functions implemented by the present computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0125] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0126] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods.
[0127] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this application are provided by way of example to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.
[0128] Furthermore, although this application is described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding this application. Rather, given the properties, functions, and internal relationships of the various functional modules in the apparatus disclosed herein, the actual implementation of the module will be understood within the scope of conventional technology for an engineer. Therefore, those skilled in the art can implement the application set forth in the claims using ordinary techniques without excessive experimentation. It is also understood that the specific concepts disclosed are merely illustrative and not intended to limit the scope of this application, which is determined by the full scope of the appended claims and their equivalents.
[0129] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods in the embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0130] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0131] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0132] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0133] In the foregoing description of this specification, the references to terms such as "one embodiment," "another embodiment," or "some embodiments," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0134] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
[0135] The above is a detailed description of the preferred embodiments of this application, but this application is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application, and these equivalent modifications or substitutions are all included within the scope defined by the claims of this application.
Claims
1. A communication method for an Internet of Things (IoT) device, characterized in that, Applied to an IoT gateway, which communicates with an IoT server, the method includes: Obtain the IoT communication mode set, as well as the configuration parameters, historical transmission data records, and data to be transmitted of the IoT device, wherein the data to be transmitted includes device data of several different data types; Based on the IoT communication mode set, a communication strategy is generated for the configuration parameters and the historical transmission data records to obtain a parallel communication strategy. The parallel communication strategy includes several target communication modes, each of which corresponds to at least one type of device data. Different target communication modes correspond to different data types. The parallel communication strategy is used to generate a key to obtain a communication key group. The communication key group includes several mode keys, each mode key corresponds to a target communication mode, and the several mode keys in the communication key group are different from each other and have an association relationship. According to the communication key group and the parallel communication strategy, the data to be transmitted by the IoT device is transmitted in parallel to the IoT server.
2. The method according to claim 1, characterized in that, The step of generating a parallel communication strategy based on the configuration parameters and historical transmission data records according to the IoT communication mode set includes: Based on the configuration parameters, the IoT communication mode set is analyzed to obtain several available modes; Based on all the available modes, the historical transmission data records are assigned data modes to obtain several data types corresponding to each available mode; Based on all the data types, the corresponding available modes are mapped and combined to obtain the parallel communication strategy.
3. The method according to claim 1, characterized in that, The step of generating a communication key set for the parallel communication strategy includes: Acquire the transmission sequence information for each of the target communication modes, and the mode response of the IoT device under each of the target communication modes; Based on all the transmission sequence information, key associations are constructed for all the mode responses to obtain the communication key group.
4. The method according to claim 3, characterized in that, Obtaining the mode response of the IoT device in each of the target communication modes includes: Based on the target communication mode, a mode challenge is obtained, and the mode challenge is different under different target communication modes; The pattern challenge is sent to the IoT device so that the IoT device generates a response to the pattern challenge, and the pattern response returned by the IoT device is obtained.
5. The method according to claim 3, characterized in that, The step of constructing the communication key group by key association of all the mode responses based on all the transmission sequence information includes: Get the current round, the current transmission sequence information, and the mode response; Perform round analysis on the current round to obtain the round analysis results; If the round analysis result indicates that the current round is the first round, then the current transmission sequence information and mode response are concatenated using a first key to obtain a mode key corresponding to the current round; or, if the round analysis result indicates that the current round is not the first round, then an intermediate key is obtained, and based on the intermediate key, the current transmission sequence information and mode response are concatenated using a second key to obtain a mode key corresponding to the current round. The intermediate key is the pattern key from the previous round.
6. The method according to claim 5, characterized in that, The step of concatenating the current transmission sequence information and the pattern response with a first key to obtain the pattern key corresponding to the current round includes: The current transmission sequence information and the mode response are concatenated to obtain the first concatenated data; The first concatenated data is subjected to key hashing to obtain the pattern key.
7. The method according to claim 5, characterized in that, The step of concatenating the current transmission sequence information and the pattern response with a second key based on the intermediate key to obtain the pattern key corresponding to the current round includes: Based on the intermediate key, the current mode response is XORed and combined to obtain composite key response data; Based on the composite key response data, the current transmission sequence information is concatenated to obtain second concatenated data; The second concatenated data is subjected to key hashing to obtain the pattern key.
8. A communication system for an Internet of Things (IoT) device, characterized in that, The system is applied to an IoT gateway, which communicates with an IoT server, and includes: The first processing unit is used to acquire a set of IoT communication modes, as well as the configuration parameters, historical transmission data records and data to be transmitted of the IoT device. The data to be transmitted includes device data of several different data types. The second processing unit is used to generate a communication strategy based on the configuration parameters and the historical transmission data records according to the IoT communication mode set, and to obtain a parallel communication strategy. The parallel communication strategy includes several target communication modes, each of which corresponds to at least one type of device data. Different target communication modes correspond to different data types. The third processing unit is used to generate a key for the parallel communication strategy to obtain a communication key group. The communication key group includes several mode keys, each mode key corresponds to a target communication mode, and the several mode keys in the communication key group are different from each other and have an association relationship. The fourth processing unit is used to transmit the data to be transmitted from the IoT device to the IoT server in parallel according to the communication key group and the parallel communication strategy.
9. An electronic device, characterized in that, include: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor performs the method as described in any one of claims 1-7.
10. A computer-readable storage medium storing a processor-executable program, characterized in that, The processor-executable program, when executed by the processor, is used to implement the method as described in any one of claims 1-7.
Citation Information
Cited By
Internet of Things gateway data grading processing method and system based on edge computing
CN121217662A
An edge-computing-based internet of things gateway data hierarchical processing method and system
CN121217662B
