A data transmission method for an Internet of Things gateway
By building an exclusive protocol data transmission channel in the Internet of Things gateway and verifying unfamiliar terminals, the security of data transmission in the Internet of Things gateway is solved, and the reliability and security of data transmission are improved.
Patent Information
- Application Number
- CN202411178601.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-27
AI Technical Summary
The existing IoT gateway data transmission methods are difficult to ensure the security of data transmission between the IoT gateway and the IoT device and the security of access devices.
By building an exclusive protocol data transmission channel in the Internet of Things gateway, and verifying unfamiliar terminals based on the request information in the gateway access request, storing the authenticated terminal to the secure access terminal list to ensure the security and reliability of data transmission.
It improves the reliability of the access device of IoT gateway data, and ensures the security of data transmission between the IoT gateway and the device through the exclusive protocol data transmission channel, realizing the secure transmission and access of IoT device data.
Smart Images

Figure CN118713928B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a data transmission method for an Internet of Things gateway. Background Art
[0002] At present, the IoT gateway data transmission method refers to a method in the IoT system that is responsible for collecting and processing data from various sensors and transmitting the data from the sensor end to a remote server or other application. At present, there are mainly the following common data transmission methods:
[0003] 1. MQTT (Message Queue Telemetry Transport): is a lightweight publish / subscribe communication protocol that is well suited for use on mobile devices and wireless networks. MQTT delivers messages to subscribers via a proxy server, so it can achieve real-time data transmission while maintaining low power consumption. However, MQTT has some disadvantages, such as lack of persistence and security.
[0004] 2. CoAP (Constrained Application Protocol): It is an application layer protocol designed for IoT devices to enable interaction between devices and applications. The design goal of CoAP is to enable instant communication between devices and applications while saving resources and energy as much as possible. However, CoAP also has some limitations, such as compatibility issues.
[0005] However, the existing IoT gateway data transmission method is difficult to ensure the security of data transmission between the IoT gateway and IoT devices and the security of access to devices.
[0006] Therefore, the present invention proposes an Internet of Things gateway data transmission method. Summary of the invention
[0007] The present invention provides an Internet of Things gateway data transmission method, which is used to verify an unfamiliar terminal based on request information in a gateway access request, thereby improving the reliability of an access device to Internet of Things gateway data, and based on a dedicated protocol data transmission channel established between the Internet of Things gateway and the corresponding sub-device, ensuring the security of data transmission between the Internet of Things gateway and the Internet of Things device, that is, achieving secure transmission and access to Internet of Things device data based on the Internet of Things gateway.
[0008] The present invention provides an Internet of Things gateway data transmission method, comprising:
[0009] S1: When the IoT gateway receives the device data reported by the sub-device, it stores the device data of the corresponding sub-device in the IoT gateway's IoT device list. At the same time, based on the device data reported by the sub-device, a dedicated protocol data transmission channel is established between the IoT gateway and the corresponding sub-device;
[0010] S2: receiving a gateway access request from an unfamiliar terminal based on a preset channel, and verifying the unfamiliar terminal based on request information in the gateway access request to obtain a verification result of the unfamiliar terminal;
[0011] S3: When the verification result of the unfamiliar terminal is passed, the corresponding unfamiliar terminal is stored in the security access terminal list of the Internet of Things gateway, and the latest security access terminal list of the Internet of Things gateway is obtained;
[0012] S4: When the IoT gateway receives a data access request from a security access terminal in the latest security access terminal list, it obtains a feedback gateway data packet based on all data access scopes of all data access objects in the current data access request and the exclusive protocol data transmission channel between the IoT gateway and each sub-device in the latest IoT device list, and sends the feedback gateway data packet to the corresponding security access terminal to obtain the IoT gateway data transmission result.
[0013] Preferably, based on the data access object and data access scope in the current data access request and the exclusive protocol data transmission channel between the IoT gateway and each sub-device in the latest IoT device list, obtaining a feedback gateway data packet includes:
[0014] Obtain the data access scope of all data access tasks currently completed by the IoT gateway as the accessed data scope of the IoT gateway;
[0015] Determine whether there is overlap between the accessed data range of the IoT gateway and all data access ranges of all data access objects in the current data access request, and if so, determine the overlapping data range between the accessed data range of the IoT gateway and all data access ranges of all data access objects in the current data access request;
[0016] Generate all data access subtasks of the current data access request based on all data access ranges except overlapping data access ranges in all data access ranges of all data access objects in the current data access request;
[0017] Otherwise, all data access subtasks of the current data access request are generated based on all data access scopes of all data access objects in the current data access request;
[0018] Based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, a feedback gateway data packet is obtained.
[0019] Preferably, the IoT gateway data transmission method obtains a feedback gateway data packet based on an exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, including:
[0020] Based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, the current access feedback data packet is obtained;
[0021] When there is no overlap between the accessed data range of the IoT gateway and all data access ranges of all data access objects in the current data access request, the current access feedback data packet is regarded as the feedback gateway data packet;
[0022] When there is an overlap between the accessed data range of the Internet of Things gateway and all data access ranges of all data access objects in the current data access request, all access data packets within the corresponding overlapping data range are retrieved and aggregated in all data access tasks currently completed by the Internet of Things gateway to obtain a first data packet, and the first data packet is aggregated with the current access feedback data packet to obtain a feedback gateway data packet.
[0023] Preferably, the IoT gateway data transmission method obtains the current access feedback data packet based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, including:
[0024] Step 1: Based on the exclusive protocol data transmission channel between each sub-device in the latest IoT device list, evaluate the access transmission efficiency of each data access sub-task of the current data access request;
[0025] Step 2: Determine the required bandwidth for access transmission of each data access subtask of the current data access request, the limit bandwidth of each exclusive protocol data transmission channel of the IoT gateway, and the limit bandwidth of the IoT gateway;
[0026] Step 3: Based on the access transmission efficiency of each data access subtask of the current data access request, the required bandwidth for access transmission of each data access subtask, the limit bandwidth of each exclusive protocol data transmission channel of the IoT gateway, and the limit bandwidth of the IoT gateway, obtain the current access feedback data packet.
[0027] Preferably, the Internet of Things gateway data transmission method, step 3: based on the access transmission efficiency of each data access subtask of the current data access request, the access transmission required bandwidth of each data access subtask and the limit bandwidth of each exclusive protocol data transmission channel of the Internet of Things gateway and the limit bandwidth of the Internet of Things gateway, obtain the current access feedback data packet, including:
[0028] Step 301: Generate a current concurrent access task thread of the Internet of Things gateway based on the access transmission efficiency of each data access subtask of the current data access request, the access transmission bandwidth required for each data access subtask, the limit bandwidth of each exclusive protocol data transmission channel of the Internet of Things gateway, and the limit bandwidth of the Internet of Things gateway;
[0029] Step 302: Execute all data access subtasks of the current data access request based on the exclusive protocol data transmission channel between the current concurrent access task thread of the IoT gateway and each sub-device in the latest IoT device list to obtain the current access feedback data packet.
[0030] Preferably, the Internet of Things gateway data transmission method, step 301: based on the access transmission efficiency of each data access subtask of the current data access request, the access transmission required bandwidth of each data access subtask and the limit bandwidth of each exclusive protocol data transmission channel of the Internet of Things gateway and the limit bandwidth of the Internet of Things gateway, generate the current concurrent access task thread of the Internet of Things gateway, including:
[0031] Among all the data access subtasks of the current data access request, all the data access data subtasks belonging to each exclusive protocol data transmission channel are determined as all the subtasks to be sorted for each exclusive protocol data transmission channel;
[0032] Performing multiple arbitrary divisions on all to-be-sorted subtasks of each exclusive protocol data transmission channel to obtain division results of multiple division processes of each exclusive protocol data transmission channel, wherein the division results of each division process include multiple hypothetical concurrent subtask sets, and each hypothetical concurrent subtask set includes at least one to-be-sorted subtask corresponding to the exclusive protocol data transmission channel;
[0033] Based on the division results of multiple division processes of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the limit bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated.
[0034] Preferably, the Internet of Things gateway data transmission method generates the current concurrent access task thread of the Internet of Things gateway based on the division results of multiple division processes of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the limit bandwidth of the Internet of Things gateway, including:
[0035] The sum of the access transmission bandwidths required by all the to-be-ordered subtasks in each hypothetical concurrent subtask set is regarded as the total required bandwidth of the corresponding hypothetical concurrent subtask set;
[0036] Among the division results of all the sub-division processes of each exclusive protocol data transmission channel, all the division results in which the total required bandwidth of all the assumed concurrent subtask sets in the corresponding division results does not exceed the limit bandwidth of the corresponding exclusive protocol data transmission channel are screened out, and they are regarded as all the qualified division results of each exclusive protocol data transmission channel;
[0037] The ratio of the total required bandwidth of each hypothetical concurrent subtask set to the limit bandwidth of the corresponding dedicated protocol data transmission channel is regarded as the sub-concurrency limit utilization rate of the corresponding hypothetical concurrent subtask set;
[0038] The average of the sub-concurrency limit utilization rates of all hypothetical concurrent sub-task sets in each target-reaching partition result is taken as the concurrency limit utilization rate of each target-reaching partition result;
[0039] Based on the maximum concurrent limit utilization rate of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the maximum bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated.
[0040] Preferably, the Internet of Things gateway data transmission method generates the current concurrent access task thread of the Internet of Things gateway based on the maximum concurrent limit utilization rate of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the limit bandwidth of the Internet of Things gateway, including:
[0041] All the hypothetical concurrent subtask sets in the standard-reaching division results with the maximum concurrent limit utilization rate of all exclusive protocol data transmission channels are arbitrarily combined multiple times to obtain the combination result of each combination process, wherein the combination result of each combination process includes multiple subtask set combinations, and each subtask set combination includes any hypothetical concurrent subtask set in the standard-reaching division result with the maximum concurrent limit utilization rate of at least one exclusive protocol data transmission channel;
[0042] The sum of the access transmission bandwidth required by all the to-be-sorted subtasks in each subtask set combination is taken as the total concurrent bandwidth required by each subtask set combination;
[0043] Among the combination results of all combination processes, select all combination results whose total concurrent bandwidth required for all subtask set combinations in the corresponding combination results does not exceed the maximum bandwidth sum of the IoT gateway, and regard them as all qualified combination results;
[0044] Based on the access transmission efficiency of all qualified combination results and each data access subtask of the current data access request and the maximum bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated.
[0045] Preferably, the data transmission method of the Internet of Things gateway generates the current concurrent access task thread of the Internet of Things gateway based on the access transmission efficiency of each data access subtask of all qualified combination results and the current data access request and the limit bandwidth of the Internet of Things gateway, including:
[0046] The ratio of the total concurrent bandwidth required for each subtask set combination to the maximum bandwidth of the IoT gateway is taken as the total concurrent maximum utilization rate of each subtask set combination;
[0047] Among all the qualified combination results, the combination result with the largest total concurrent limit utilization rate is regarded as the optimal combination result;
[0048] Based on the access transmission efficiency of all to-be-sorted subtasks in each subtask set combination in the optimal combination result, all subtask set combinations in the optimal combination result are sorted to obtain the current concurrent access task threads of the IoT gateway.
[0049] Preferably, the data transmission method of the Internet of Things gateway, based on the access transmission efficiency of all the to-be-sorted subtasks in each subtask set combination in the optimal combination result, sorts all the subtask set combinations in the optimal combination result, and obtains the current concurrent access task thread of the Internet of Things gateway, including:
[0050] The sum of the access transmission efficiencies of all the to-be-sorted subtasks in each subtask set combination in the optimal combination result is taken as the concurrent access transmission efficiency of the corresponding subtask set combination;
[0051] According to the principle of concurrent access transmission efficiency from large to small, all subtask set combinations in the optimal combination result are sorted and fitted into task threads to obtain the current concurrent access task threads of the IoT gateway.
[0052] The beneficial effects of the present invention compared with the prior art are as follows: based on the request information in the gateway access request, the unfamiliar terminal is verified, thereby improving the reliability of the access device to the Internet of Things gateway data, and based on the dedicated protocol data transmission channel between the Internet of Things gateway and the corresponding sub-device, the security of data transmission between the Internet of Things gateway and the Internet of Things device is guaranteed, that is, the secure transmission and access to the Internet of Things device data is realized based on the Internet of Things gateway.
[0053] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures specifically pointed out in this application document.
[0054] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0056] Figure 1 This is a flow chart of a data transmission method for an Internet of Things gateway in an embodiment of the present invention;
[0057] Figure 2 This is a flow chart of another method for transmitting data via an Internet of Things gateway in an embodiment of the present invention;
[0058] Figure 3 This is a flowchart of a specific execution method of step 3 in an embodiment of the present invention. DETAILED DESCRIPTION
[0059] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0060] Example 1
[0061] The present invention provides a method for data transmission of an Internet of Things gateway, referring to Figure 1 ,include:
[0062] S1: When the IoT gateway receives the device data reported by the sub-device, it stores the device data of the corresponding sub-device in the IoT gateway's IoT device list. At the same time, based on the device data reported by the sub-device, a dedicated protocol data transmission channel is established between the IoT gateway and the corresponding sub-device;
[0063] S2: receiving a gateway access request from an unfamiliar terminal based on a preset channel, and verifying the unfamiliar terminal based on request information in the gateway access request to obtain a verification result of the unfamiliar terminal;
[0064] S3: When the verification result of the unfamiliar terminal is passed, the corresponding unfamiliar terminal is stored in the security access terminal list of the Internet of Things gateway, and the latest security access terminal list of the Internet of Things gateway is obtained;
[0065] S4: When the IoT gateway receives a data access request from a security access terminal in the latest security access terminal list, it obtains a feedback gateway data packet based on all data access scopes of all data access objects in the current data access request and the exclusive protocol data transmission channel between the IoT gateway and each sub-device in the latest IoT device list, and sends the feedback gateway data packet to the corresponding security access terminal to obtain the IoT gateway data transmission result.
[0066] In this embodiment, the IoT gateway is a communication device used to connect and manage IoT devices and the Internet. It is usually located between IoT devices in scenes such as homes, offices, or factories, and aggregates sensor data, actuator instructions, and other data from different devices to a central platform and provides various services.
[0067] In this embodiment, the sub-device is an IoT device connected to an IoT gateway, such as a smart home device or a sensor device.
[0068] In this embodiment, the device data includes data related to the IoT device, such as device attributes and data obtained through device detection.
[0069] In this embodiment, the IoT device list is a list including all IoT devices connected to the current IoT gateway.
[0070] In this embodiment, a dedicated protocol data transmission channel is established between the IoT gateway and the corresponding sub-device based on the device data reported by the sub-device, namely:
[0071] Determine the port attributes, transmission data type or transmission delay requirements of the sub-device based on the device data reported by the sub-device;
[0072] The transmission protocol between the IoT gateway and the corresponding sub-device is determined based on the port attributes of the sub-device, the type of data transmitted or the transmission delay requirements, and a transmission channel (i.e., a dedicated protocol data transmission channel) is built based on the transmission protocol to connect the IoT gateway and the corresponding sub-device.
[0073] In this embodiment, the preset channel is, for example, an information transmission channel opened for the corresponding Internet of Things gateway, and the access terminal can initiate a gateway access request to the Internet of Things gateway from the transmission channel.
[0074] In this embodiment, the unfamiliar terminal is a communication terminal that has not been security verified, such as an unfamiliar mobile phone terminal or iPad terminal.
[0075] In this embodiment, the gateway access request is a request for requesting access to an Internet of Things gateway.
[0076] In this embodiment, the request information in the gateway access request includes information indicating the source or identity of the unfamiliar terminal, such as the IP address of the unfamiliar terminal when it is loaded into the network.
[0077] In this embodiment, the strange terminal is verified based on the request information in the gateway access request to obtain the verification result of the strange terminal, for example:
[0078] It is determined whether the IP address of the unknown terminal included in the request information when loading the network is a secure IP address within the preset secure address range. If so, it is determined that the unknown terminal has passed the verification; otherwise, it is determined that the unknown terminal has not passed the verification.
[0079] In this embodiment, the security access terminal list of the Internet of Things gateway includes all security access terminals that are allowed to access the device data of all Internet of Things devices connected to the Internet of Things gateway.
[0080] In this embodiment, the secure access terminal is a terminal that is allowed to access the device data of all IoT devices connected to the IoT gateway.
[0081] In this embodiment, the data access request is a request for accessing device data of all IoT devices connected to the IoT gateway.
[0082] In this embodiment, all data access objects in the current data access request are IoT devices to which the device data to be accessed represented in the current data access request belongs.
[0083] In this embodiment, all data access ranges of all data access objects in the current data access request are partial data ranges in the device data of the data access objects to be accessed indicated in the current data access request.
[0084] In this embodiment, the feedback gateway data packet includes all the data that is desired to be accessed in the current data access request.
[0085] The beneficial effects of the above technology are: the unfamiliar terminal is verified based on the request information in the gateway access request, which improves the reliability of the access device of the IoT gateway data, and based on the dedicated protocol data transmission channel between the IoT gateway and the corresponding sub-device, the security of data transmission between the IoT gateway and the IoT device is guaranteed, that is, the secure transmission and access of IoT device data is realized based on the IoT gateway.
[0086] Example 2
[0087] On the basis of Example 1, the Internet of Things gateway data transmission method obtains a feedback gateway data packet based on the data access object and data access scope in the current data access request and the exclusive protocol data transmission channel between the Internet of Things gateway and each sub-device in the latest Internet of Things device list, including:
[0088] Obtain the data access scope of all data access tasks currently completed by the IoT gateway as the accessed data scope of the IoT gateway;
[0089] Determine whether there is overlap between the accessed data range of the IoT gateway and all data access ranges of all data access objects in the current data access request, and if so, determine the overlapping data range between the accessed data range of the IoT gateway and all data access ranges of all data access objects in the current data access request;
[0090] Generate all data access subtasks of the current data access request based on all data access ranges except overlapping data access ranges in all data access ranges of all data access objects in the current data access request;
[0091] Otherwise, all data access subtasks of the current data access request are generated based on all data access scopes of all data access objects in the current data access request;
[0092] Based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, a feedback gateway data packet is obtained.
[0093] In this embodiment, the data access task is a task that the security access terminal has initiated to obtain partial device data of some IoT devices based on the IoT gateway.
[0094] In this embodiment, the data access scope of the data access task is the data range obtained in the device data represented in the data access task.
[0095] In this embodiment, the data range is composed of partial data, so the overlapping data range is the data overlapping between the two.
[0096] In this embodiment, all data access subtasks of the current data access request are generated based on all data access ranges of all data access objects in the current data access request except for overlapping data access ranges, including:
[0097] According to different data access objects, all data access ranges except overlapping data access ranges in all data access ranges of all data access objects in the current data access request are divided to obtain multiple new data access ranges, and each continuous data access range in the newly obtained multiple data access ranges is regarded as a data access subtask that should be completed.
[0098] In this embodiment, all data access subtasks of the current data access request are generated based on all data access scopes of all data access objects in the current data access request, including:
[0099] According to different data access objects, all data access ranges of all data access objects in the current data access request are divided to obtain multiple new data access ranges, and each continuous data access range in the newly obtained multiple data access ranges is regarded as a data access subtask that should be completed.
[0100] The beneficial effect of the above technology is: by judging whether there is overlap between the accessed data range of the IoT gateway and all data access ranges of all data access objects in the current data access request, the repeated acquisition of some device data within the current data access range is avoided, thereby improving the access efficiency of the IoT gateway data.
[0101] Example 3
[0102] On the basis of Example 2, the Internet of Things gateway data transmission method obtains a feedback gateway data packet based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest Internet of Things device list, including:
[0103] Based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, obtain the current access feedback data packet;
[0104] When there is no overlap between the accessed data range of the IoT gateway and all data access ranges of all data access objects in the current data access request, the current access feedback data packet is regarded as the feedback gateway data packet;
[0105] When there is an overlap between the accessed data range of the Internet of Things gateway and all data access ranges of all data access objects in the current data access request, all access data packets within the corresponding overlapping data range are retrieved and aggregated in all data access tasks currently completed by the Internet of Things gateway to obtain a first data packet, and the first data packet is aggregated with the current access feedback data packet to obtain a feedback gateway data packet.
[0106] In this embodiment, based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, the current access feedback data packet is obtained, including:
[0107] Based on the exclusive protocol data transmission channel between each sub-device in the latest IoT device list, all data access subtasks of the current data access request are executed to obtain the current access feedback data packet.
[0108] The beneficial effects of the above technology are: based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, the secure transmission of IoT gateway data between the IoT gateway and the IoT device is realized.
[0109] Example 4
[0110] On the basis of Example 3, the Internet of Things gateway data transmission method obtains the current access feedback data packet based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest Internet of Things device list, referring to Figure 2 ,include:
[0111] Step 1: Based on the exclusive protocol data transmission channel between each sub-device in the latest IoT device list, evaluate the access transmission efficiency of each data access sub-task of the current data access request;
[0112] Step 2: Determine the required bandwidth for access transmission of each data access subtask of the current data access request, the limit bandwidth of each exclusive protocol data transmission channel of the IoT gateway, and the limit bandwidth of the IoT gateway;
[0113] Step 3: Based on the access transmission efficiency of each data access subtask of the current data access request, the required bandwidth for access transmission of each data access subtask, the limit bandwidth of each exclusive protocol data transmission channel of the IoT gateway, and the limit bandwidth of the IoT gateway, obtain the current access feedback data packet.
[0114] In this embodiment, based on the exclusive protocol data transmission channel between each sub-device in the latest IoT device list, the access transmission efficiency of each data access sub-task of the current data access request is evaluated, including:
[0115] The transmission protocol adopted by the exclusive protocol data transmission channel adopted by each data access subtask of the current data access request is retrieved from the preset transmission protocol-access transmission efficiency to determine the access transmission efficiency of each data access subtask of the current data access request.
[0116] In this embodiment, the bandwidth required for access transmission of the data access subtask is the bandwidth value required for the data transmission process when executing the corresponding data access subtask.
[0117] In this embodiment, the limit bandwidth of each dedicated protocol data transmission channel represents the maximum bandwidth value that each dedicated protocol data transmission channel can provide for the currently executed data transmission task, which is determined according to the original settings of its device hardware or the network on which it is mounted.
[0118] In this embodiment, the limit bandwidth of the Internet of Things gateway is the sum of the limit bandwidths of all exclusive protocol data transmission channels of the Internet of Things gateway.
[0119] The beneficial effects of the above technology are: based on the access transmission efficiency of each data access subtask of the current data access request, the bandwidth required for the access transmission of each data access subtask and the maximum bandwidth of each exclusive protocol data transmission channel of the IoT gateway and the maximum bandwidth of the IoT gateway, the details of the data transmission process for obtaining the current access feedback data packet are more clearly defined.
[0120] Example 5
[0121] On the basis of Example 4, the Internet of Things gateway data transmission method, step 3: based on the access transmission efficiency of each data access subtask of the current data access request, the access transmission required bandwidth of each data access subtask and the limit bandwidth of each exclusive protocol data transmission channel of the Internet of Things gateway and the limit bandwidth of the Internet of Things gateway, obtain the current access feedback data packet, reference Figure 3 ,include:
[0122] Step 301: Generate a current concurrent access task thread of the Internet of Things gateway based on the access transmission efficiency of each data access subtask of the current data access request, the access transmission bandwidth required for each data access subtask, the limit bandwidth of each exclusive protocol data transmission channel of the Internet of Things gateway, and the limit bandwidth of the Internet of Things gateway;
[0123] Step 302: Execute all data access subtasks of the current data access request based on the exclusive protocol data transmission channel between the current concurrent access task thread of the IoT gateway and each sub-device in the latest IoT device list to obtain the current access feedback data packet.
[0124] In this embodiment, the current concurrent access task thread of the Internet of Things gateway is a thread in which all data access subtasks of the current data access request are executed in the order in which they are executed, and in this thread, the same exclusive protocol data transmission channel may execute multiple data access subtasks at the same time.
[0125] The beneficial effects of the above technology are: by considering the access transmission efficiency of each data access subtask of the current data access request, the bandwidth required for the access transmission of each data access subtask and the maximum bandwidth of each exclusive protocol data transmission channel of the Internet of Things gateway, as well as the maximum bandwidth of the Internet of Things gateway and these parameters, a reasonable arrangement of the execution order of the numerous data access subtasks in the current data access request of the Internet of Things gateway is achieved, thereby improving the transmission and access efficiency of the Internet of Things gateway data.
[0126] Example 6
[0127] On the basis of Example 5, the Internet of Things gateway data transmission method, step 301: based on the access transmission efficiency of each data access subtask of the current data access request, the access transmission required bandwidth of each data access subtask and the limit bandwidth of each exclusive protocol data transmission channel of the Internet of Things gateway and the limit bandwidth of the Internet of Things gateway, generate the current concurrent access task thread of the Internet of Things gateway, including:
[0128] Among all the data access subtasks of the current data access request, all the data access data subtasks belonging to each exclusive protocol data transmission channel are determined as all the subtasks to be sorted for each exclusive protocol data transmission channel;
[0129] Performing multiple arbitrary divisions on all to-be-sorted subtasks of each exclusive protocol data transmission channel to obtain division results of multiple division processes of each exclusive protocol data transmission channel, wherein the division results of each division process include multiple hypothetical concurrent subtask sets, and each hypothetical concurrent subtask set includes at least one to-be-sorted subtask corresponding to the exclusive protocol data transmission channel;
[0130] Based on the division results of multiple division processes of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the limit bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated.
[0131] The beneficial effects of the above technology are: all the subtasks to be sorted for each exclusive protocol data transmission channel are arbitrarily divided multiple times, and the division results of the multiple division processes of each exclusive protocol data transmission channel are obtained, and the access transmission efficiency of each data access subtask of the current data access request and the maximum bandwidth of the Internet of Things gateway are considered, thereby further ensuring the rationality of the arrangement of the execution order of the numerous data access subtasks in the current data access request of the Internet of Things gateway.
[0132] Example 7
[0133] On the basis of Example 6, the Internet of Things gateway data transmission method generates the current concurrent access task thread of the Internet of Things gateway based on the division results of multiple division processes of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the limit bandwidth of the Internet of Things gateway, including:
[0134] The sum of the access transmission bandwidths required by all the to-be-ordered subtasks in each hypothetical concurrent subtask set is regarded as the total required bandwidth of the corresponding hypothetical concurrent subtask set;
[0135] Among the division results of all the sub-division processes of each exclusive protocol data transmission channel, all the division results in which the total required bandwidth of all the assumed concurrent subtask sets in the corresponding division results does not exceed the limit bandwidth of the corresponding exclusive protocol data transmission channel are screened out, and they are regarded as all the qualified division results of each exclusive protocol data transmission channel;
[0136] The ratio of the total required bandwidth of each hypothetical concurrent subtask set to the limit bandwidth of the corresponding dedicated protocol data transmission channel is regarded as the sub-concurrency limit utilization rate of the corresponding hypothetical concurrent subtask set;
[0137] The average of the sub-concurrency limit utilization rates of all hypothetical concurrent sub-task sets in each target-reaching partition result is taken as the concurrency limit utilization rate of each target-reaching partition result;
[0138] Based on the maximum concurrent limit utilization rate of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the maximum bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated.
[0139] In this embodiment, the sub-concurrency limit utilization rate of the assumed concurrent subtask set represents the degree of occupancy of the limit bandwidth of the corresponding exclusive protocol data transmission channel when the corresponding exclusive protocol data transmission channel simultaneously executes all the to-be-ordered subtasks in the assumed concurrent subtask set.
[0140] In this embodiment, the concurrent limit utilization rate of the target division result represents the degree to which all the assumed concurrent subtask sets in the corresponding target division result occupy the limit bandwidth of the corresponding exclusive protocol data transmission channel when the corresponding exclusive protocol data transmission channel is required to simultaneously execute all the to-be-ordered subtasks in each assumed concurrent subtask set in the target division result.
[0141] The beneficial effects of the above technology are: based on the principle that the total required bandwidth of all assumed concurrent subtask sets in the corresponding division results does not exceed the limit bandwidth of the corresponding exclusive protocol data transmission channel, the preliminary screening of the division results of multiple division processes is achieved, ensuring the executable nature of the current concurrent access task thread of the generated Internet of Things gateway, and then accurately determining the sub-concurrency limit utilization rate of the assumed concurrent subtask set and the concurrency limit utilization rate of the qualified division results, combined with the access transmission efficiency of each data access subtask of the current data access request and the limit bandwidth of the Internet of Things gateway, further achieving accurate planning of the current concurrent access task thread of the Internet of Things gateway.
[0142] Example 8
[0143] On the basis of Example 7, the Internet of Things gateway data transmission method generates the current concurrent access task thread of the Internet of Things gateway based on the maximum concurrent limit utilization rate of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the limit bandwidth of the Internet of Things gateway, including:
[0144] All the hypothetical concurrent subtask sets in the standard-reaching division results with the maximum concurrent limit utilization rate of all exclusive protocol data transmission channels are arbitrarily combined multiple times to obtain the combination result of each combination process, wherein the combination result of each combination process includes multiple subtask set combinations, and each subtask set combination includes any hypothetical concurrent subtask set in the standard-reaching division result with the maximum concurrent limit utilization rate of at least one exclusive protocol data transmission channel;
[0145] The sum of the access transmission bandwidth required by all the to-be-sorted subtasks in each subtask set combination is taken as the total concurrent bandwidth required by each subtask set combination;
[0146] Among the combination results of all combination processes, select all combination results whose total concurrent bandwidth required for all subtask set combinations in the corresponding combination results does not exceed the maximum bandwidth sum of the IoT gateway, and regard them as all qualified combination results;
[0147] Based on the access transmission efficiency of all qualified combination results and each data access subtask of the current data access request and the maximum bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated.
[0148] The beneficial effects of the above technology are: by making multiple arbitrary combinations of all hypothetical concurrent sub-task sets in the qualified division results with the maximum concurrent limit utilization rate of all exclusive protocol data transmission channels, and using the maximum bandwidth of the Internet of Things gateway and the combination results of multiple combination processes to screen, the executable nature of the current concurrent access task thread of the generated Internet of Things gateway is further guaranteed, and the screened results are combined with the access transmission efficiency of each data access subtask of the current data access request and the maximum bandwidth of the Internet of Things gateway, thereby further realizing the accurate planning of the current concurrent access task thread of the Internet of Things gateway.
[0149] Example 9
[0150] On the basis of Example 8, the Internet of Things gateway data transmission method generates the current concurrent access task thread of the Internet of Things gateway based on the access transmission efficiency of each data access subtask of all qualified combination results and the current data access request and the limit bandwidth of the Internet of Things gateway, including:
[0151] The ratio of the total concurrent bandwidth required for each subtask set combination to the maximum bandwidth of the IoT gateway is taken as the total concurrent maximum utilization rate of each subtask set combination;
[0152] Among all the qualified combination results, the combination result with the largest total concurrent limit utilization rate is regarded as the optimal combination result;
[0153] Based on the access transmission efficiency of all to-be-sorted subtasks in each subtask set combination in the optimal combination result, all subtask set combinations in the optimal combination result are sorted to obtain the current concurrent access task threads of the IoT gateway.
[0154] In this embodiment, the total concurrent limit utilization rate of the subtask set combination represents the limit bandwidth and occupancy degree of all exclusive protocol data transmission channels of the Internet of Things gateway when all exclusive protocol data transmission channels of the Internet of Things gateway simultaneously execute all the to-be-ordered subtasks in the subtask set combination.
[0155] The beneficial effects of the above technology are: by quantifying the total concurrent limit utilization rate of each subtask set combination, and using this parameter to screen all qualified combination results, the optimal combination result is obtained, and then the access transmission efficiency of all subtasks to be sorted in each subtask set combination in the optimal combination result is used to sort all subtask set combinations in the optimal combination result, further realizing the accurate planning of the current concurrent access task threads of the Internet of Things gateway.
[0156] Embodiment 10:
[0157] On the basis of implementation 9, the IoT gateway data transmission method, based on the access transmission efficiency of all to-be-sorted subtasks in each subtask set combination in the optimal combination result, sorts all subtask set combinations in the optimal combination result, and obtains the current concurrent access task thread of the IoT gateway, including:
[0158] The sum of the access transmission efficiencies of all the to-be-sorted subtasks in each subtask set combination in the optimal combination result is taken as the concurrent access transmission efficiency of the corresponding subtask set combination;
[0159] According to the principle of concurrent access transmission efficiency from large to small, all subtask set combinations in the optimal combination result are sorted and fitted into task threads to obtain the current concurrent access task threads of the IoT gateway.
[0160] In this embodiment, according to the principle of concurrent access transmission efficiency from large to small, all subtask set combinations in the optimal combination result are sorted and fitted into task threads, and the current concurrent access task thread of the Internet of Things gateway is obtained, which is:
[0161] According to the principle of concurrent access transmission efficiency from large to small, all subtask set combinations in the optimal combination result are sorted to determine the sorting ordinal numbers of all subtask set groups;
[0162] The sorting sequence number of the subtask set group is regarded as the sequence number of the execution order of each subtask set in the subtask set group in the corresponding exclusive protocol data transmission channel;
[0163] Thread fitting is performed based on the ordinal numbers of the execution order of all subtasks to be sorted in all exclusive protocol data transmission channels of the physical network gateway to obtain the current concurrent access task threads of the Internet of Things gateway.
[0164] The beneficial effects of the above technology are: the order of all tasks to be sorted is determined in sequence according to the principle of access transmission efficiency from large to small, and based on the combination of sub-task sets, the tasks to be sorted that are executed simultaneously by all exclusive protocol data transmission channels of the physical network gateway are determined, ensuring that the current concurrent access task thread based on the Internet of Things gateway can complete as many data transmission sub-tasks as possible in the current data access request as quickly as possible, thereby further improving the overall transmission efficiency of the Internet of Things gateway data.
[0165] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for transmitting data via an Internet of Things gateway, characterized in that: include: S1: When the IoT gateway receives the device data reported by the sub-device, it stores the device data of the corresponding sub-device in the IoT gateway's IoT device list. At the same time, based on the device data reported by the sub-device, a dedicated protocol data transmission channel is established between the IoT gateway and the corresponding sub-device; S2: receiving a gateway access request from an unfamiliar terminal based on a preset channel, and verifying the unfamiliar terminal based on request information in the gateway access request to obtain a verification result of the unfamiliar terminal; S3: When the verification result of the unfamiliar terminal is passed, the corresponding unfamiliar terminal is stored in the security access terminal list of the Internet of Things gateway, and the latest security access terminal list of the Internet of Things gateway is obtained; S4: When the IoT gateway receives a data access request from a security access terminal in the latest security access terminal list, it obtains a feedback gateway data packet based on all data access scopes of all data access objects in the current data access request and the exclusive protocol data transmission channel between the IoT gateway and each sub-device in the latest IoT device list, and sends the feedback gateway data packet to the corresponding security access terminal to obtain the IoT gateway data transmission result; Wherein, based on the data access object and data access scope in the current data access request and the exclusive protocol data transmission channel between the IoT gateway and each sub-device in the latest IoT device list, a feedback gateway data packet is obtained, including: Obtain the data access scope of all data access tasks currently completed by the IoT gateway as the accessed data scope of the IoT gateway; Determine whether there is overlap between the accessed data range of the IoT gateway and all data access ranges of all data access objects in the current data access request, and if so, determine the overlapping data range between the accessed data range of the IoT gateway and all data access ranges of all data access objects in the current data access request; Generate all data access subtasks of the current data access request based on all data access ranges except overlapping data access ranges in all data access ranges of all data access objects in the current data access request; Otherwise, all data access subtasks of the current data access request are generated based on all data access scopes of all data access objects in the current data access request; Based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, a feedback gateway data packet is obtained.
2. The Internet of Things gateway data transmission method according to claim 1, characterized in that: Based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, a feedback gateway data packet is obtained, including: Based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, the current access feedback data packet is obtained; When there is no overlap between the accessed data range of the IoT gateway and all data access ranges of all data access objects in the current data access request, the current access feedback data packet is regarded as the feedback gateway data packet; When there is an overlap between the accessed data range of the Internet of Things gateway and all data access ranges of all data access objects in the current data access request, all access data packets within the corresponding overlapping data range are retrieved and aggregated in all data access tasks currently completed by the Internet of Things gateway to obtain a first data packet, and the first data packet is aggregated with the current access feedback data packet to obtain a feedback gateway data packet.
3. The Internet of Things gateway data transmission method according to claim 2, characterized in that: Based on the exclusive protocol data transmission channel between all data access subtasks of the current data access request and each sub-device in the latest IoT device list, the current access feedback data packet is obtained, including: Step 1: Based on the exclusive protocol data transmission channel between each sub-device in the latest IoT device list, evaluate the access transmission efficiency of each data access sub-task of the current data access request; Step 2: Determine the required bandwidth for access transmission of each data access subtask of the current data access request, the limit bandwidth of each exclusive protocol data transmission channel of the IoT gateway, and the limit bandwidth of the IoT gateway; Step 3: Based on the access transmission efficiency of each data access subtask of the current data access request, the access transmission required bandwidth of each data access subtask, the limit bandwidth of each exclusive protocol data transmission channel of the IoT gateway, and the limit bandwidth of the IoT gateway, obtain the current access feedback data packet.
4. The Internet of Things gateway data transmission method according to claim 3, characterized in that: Step 3: Based on the access transmission efficiency of each data access subtask of the current data access request, the required bandwidth for access transmission of each data access subtask, the limit bandwidth of each exclusive protocol data transmission channel of the IoT gateway, and the limit bandwidth of the IoT gateway, obtain the current access feedback data packet, including: Step 301: Generate a current concurrent access task thread of the Internet of Things gateway based on the access transmission efficiency of each data access subtask of the current data access request, the access transmission bandwidth required for each data access subtask, the limit bandwidth of each exclusive protocol data transmission channel of the Internet of Things gateway, and the limit bandwidth of the Internet of Things gateway; Step 302: Execute all data access subtasks of the current data access request based on the exclusive protocol data transmission channel between the current concurrent access task thread of the IoT gateway and each sub-device in the latest IoT device list to obtain the current access feedback data packet.
5. The Internet of Things gateway data transmission method according to claim 4, characterized in that: Step 301: Based on the access transmission efficiency of each data access subtask of the current data access request, the access transmission bandwidth required for each data access subtask, the limit bandwidth of each exclusive protocol data transmission channel of the IoT gateway, and the limit bandwidth of the IoT gateway, generate the current concurrent access task thread of the IoT gateway, including: Among all the data access subtasks of the current data access request, all the data access data subtasks belonging to each exclusive protocol data transmission channel are determined as all the subtasks to be sorted for each exclusive protocol data transmission channel; Performing multiple arbitrary divisions on all to-be-sorted subtasks of each exclusive protocol data transmission channel to obtain division results of multiple division processes of each exclusive protocol data transmission channel, wherein the division results of each division process include multiple hypothetical concurrent subtask sets, and each hypothetical concurrent subtask set includes at least one to-be-sorted subtask corresponding to the exclusive protocol data transmission channel; Based on the division results of multiple division processes of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the limit bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated.
6. The Internet of Things gateway data transmission method according to claim 5, characterized in that: Based on the division results of multiple division processes of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the limit bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated, including: The sum of the access transmission bandwidths required by all the to-be-ordered subtasks in each hypothetical concurrent subtask set is regarded as the total required bandwidth of the corresponding hypothetical concurrent subtask set; Among the division results of all the sub-division processes of each exclusive protocol data transmission channel, all the division results in which the total required bandwidth of all the assumed concurrent subtask sets in the corresponding division results does not exceed the limit bandwidth of the corresponding exclusive protocol data transmission channel are screened out, and they are regarded as all the qualified division results of each exclusive protocol data transmission channel; The ratio of the total required bandwidth of each hypothetical concurrent subtask set to the limit bandwidth of the corresponding dedicated protocol data transmission channel is regarded as the sub-concurrency limit utilization rate of the corresponding hypothetical concurrent subtask set; The average of the sub-concurrency limit utilization rates of all hypothetical concurrent sub-task sets in each target-reaching partition result is taken as the concurrency limit utilization rate of each target-reaching partition result; Based on the maximum concurrent limit utilization rate of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the maximum bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated.
7. The Internet of Things gateway data transmission method according to claim 6, characterized in that: Based on the maximum concurrent limit utilization rate of each exclusive protocol data transmission channel, the access transmission efficiency of each data access subtask of the current data access request, and the limit bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated, including: All the hypothetical concurrent subtask sets in the standard-reaching division results with the maximum concurrent limit utilization rate of all exclusive protocol data transmission channels are arbitrarily combined multiple times to obtain the combination result of each combination process, wherein the combination result of each combination process includes multiple subtask set combinations, and each subtask set combination includes any hypothetical concurrent subtask set in the standard-reaching division result with the maximum concurrent limit utilization rate of at least one exclusive protocol data transmission channel; The sum of the access transmission bandwidth required by all the to-be-sorted subtasks in each subtask set combination is taken as the total concurrent bandwidth required by each subtask set combination; Among the combination results of all combination processes, select all combination results whose total concurrent bandwidth required for all subtask set combinations in the corresponding combination results does not exceed the maximum bandwidth sum of the IoT gateway, and regard them as all qualified combination results; Based on the access transmission efficiency of all qualified combination results and each data access subtask of the current data access request and the maximum bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated.
8. The Internet of Things gateway data transmission method according to claim 7, characterized in that: Based on all the qualified combination results and the access transmission efficiency of each data access subtask of the current data access request and the maximum bandwidth of the IoT gateway, the current concurrent access task thread of the IoT gateway is generated, including: The ratio of the total concurrent bandwidth required for each subtask set combination to the maximum bandwidth of the IoT gateway is taken as the total concurrent maximum utilization rate of each subtask set combination; Among all the qualified combination results, the combination result with the largest total concurrent limit utilization rate is regarded as the optimal combination result; Based on the access transmission efficiency of all to-be-sorted subtasks in each subtask set combination in the optimal combination result, all subtask set combinations in the optimal combination result are sorted to obtain the current concurrent access task threads of the IoT gateway.
9. The Internet of Things gateway data transmission method according to claim 8, characterized in that: Based on the access transmission efficiency of all the to-be-sorted subtasks in each subtask set combination in the optimal combination result, all the subtask set combinations in the optimal combination result are sorted to obtain the current concurrent access task threads of the IoT gateway, including: The sum of the access transmission efficiencies of all the to-be-sorted subtasks in each subtask set combination in the optimal combination result is taken as the concurrent access transmission efficiency of the corresponding subtask set combination; According to the principle of concurrent access transmission efficiency from large to small, all subtask set combinations in the optimal combination result are sorted and fitted into task threads to obtain the current concurrent access task threads of the IoT gateway.
Citation Information
Patent Citations
Configuration method and device of data acquisition equipment and Internet of Things platform server
CN116095111A
Equipment management method and device
CN116389060A
Equipment self-discovery system based on Internet of Things platform and implementation method thereof
CN116743850A
Network data transmission method and device, electronic equipment and readable storage medium
CN116961961A
Lot gateway capable of handling heterogenous protocols
EP3148226A1
