Data processing method and device of internet of things terminal, electronic equipment and storage medium
By introducing relay nodes into the IoT system and selecting an appropriate data reporting method based on the data acquisition scenario parameters, the problem of untimely data reporting by passive IoT terminals was solved, thereby improving the stability and efficiency of data processing.
Patent Information
- Application Number
- CN202310012437.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-05
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2043-01-05
AI Technical Summary
When passive IoT terminals collect large amounts of data, their storage capacity and computing power are limited, which can lead to data not being processed and reported to the base station in a timely manner. This can easily cause memory overflow and loss of critical data, resulting in poor data reporting reliability.
In an IoT system, relay nodes are deployed to receive terminal data and determine the appropriate data reporting method based on the data collection scenario parameters. This includes reporting complete data, incremental data, and incremental data of statistical values. The data is then processed by the relay nodes and reported to the base station.
It alleviates the data loss problem caused by insufficient storage and computing power of passive IoT terminals, improves the stability and efficiency of data reporting, and adapts to the data transmission needs of different scenarios.
Smart Images

Figure CN116017344B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet of Things, in particular to a data processing method and device of an Internet of Things terminal, an electronic device and a storage medium. BACKGROUND
[0002] Passive Internet of Things is an Internet of Things device powered by external energy harvesting or limited energy storage capacity. It has many advantages such as simple structure, maintenance-free during its life cycle, and environmental friendliness, and is widely used in sensor data collection scenarios such as smart grids and smart farms.
[0003] Generally, the passive Internet of Things terminal directly reports the collected data to the base station for analysis after processing the collected data. However, due to the limited storage capacity and computing power of the passive Internet of Things terminal, when the terminal collects a large amount of data, the data cannot be processed and reported to the base station in time, which may cause terminal memory overflow and loss of critical data, thereby reducing the reliability of data reporting. SUMMARY
[0004] The present application aims to solve the above problems in the prior art, and provides a data processing method and device of an Internet of Things terminal, an electronic device and a storage medium, so as to improve the stability and efficiency of data reporting of the Internet of Things terminal.
[0005] To achieve the above object, the technical scheme adopted by the embodiments of the present application is as follows:
[0006] In a first aspect, the embodiments of the present application provide a data processing method of an Internet of Things terminal, applied to a relay node in an Internet of Things system, the Internet of Things system comprising: a plurality of Internet of Things terminals, the relay node and a base station, the relay node being in communication with each Internet of Things terminal and the base station; the method comprising:
[0007] determining a data reporting mode according to data collection scenario parameters, the data collection scenario parameters comprising at least one of the following: data collection amount, number of Internet of Things terminals bound to the relay node, and power of the Internet of Things terminal;
[0008] receiving collected data sent by the Internet of Things terminal, processing the collected data according to the data reporting mode, generating a data processing result, and reporting the data processing result to the base station.
[0009] Optionally, determining the data reporting mode according to the data collection scenario parameters comprises:
[0010] if the data collection amount is less than a first threshold and the number of Internet of Things terminals bound to the relay node meets a first number, determining that the data reporting mode is complete data reporting;
[0011] If the amount of data collected is greater than the second threshold, then the data reporting method is determined to be incremental data reporting;
[0012] If the amount of data collected is greater than the second threshold and the battery level of the IoT terminal is lower than the preset battery level, then the data reporting method is determined to be incremental data reporting of statistical values.
[0013] Optionally, the step of processing the collected data according to the data reporting method to generate data processing results includes:
[0014] If the data reporting method is complete data reporting, then the data sequence corresponding to the current collection period is generated based on the collected data at each time point within the current collection period.
[0015] Based on the collected data at each time point, determine the data mean and data variance corresponding to the current collection period;
[0016] Based on the data sequence corresponding to the current acquisition period, as well as the data mean and variance corresponding to the current acquisition period, the data processing result for the current acquisition period is obtained.
[0017] Optionally, the step of processing the collected data according to the data reporting method to generate data processing results includes:
[0018] If the data reporting method is incremental data reporting, then based on the collected data at each time point within the current collection period, the difference between the collected data at adjacent time points is determined to obtain the incremental sequence of collected data corresponding to the current collection period.
[0019] Based on the incremental sequence of the collected data corresponding to the current collection period and the collected data at the first moment within the current collection period, the data processing result of the current collection period is obtained.
[0020] Optionally, the step of processing the collected data according to the data reporting method to generate data processing results includes:
[0021] If the data reporting method is statistical value incremental data reporting, then based on the collected data at each time point within at least two consecutive collection periods, a mean increment sequence and a variance increment sequence corresponding to the consecutive collection periods are generated. The mean increment sequence includes the difference between the means of adjacent collection periods, and the variance increment sequence includes the difference between the variances of adjacent collection periods.
[0022] Based on the data mean and variance corresponding to the first acquisition period, as well as the mean increment sequence and variance increment sequence, the data processing results for the continuous acquisition period are obtained.
[0023] Optionally, the method further includes:
[0024] Start a timer, receive the collected data at various times from the IoT terminal, and stop collecting data after the timer expires, thus obtaining the collected data at each time within the current collection period.
[0025] Optionally, the method further includes:
[0026] Start the counter, receive the data collected by the IoT terminal at various times, and stop collecting data after the number of received data meets the count of the counter, thus obtaining the data collected in the current collection period.
[0027] Secondly, this application also provides a data processing device for an Internet of Things (IoT) terminal, applied to a relay node in an IoT system. The IoT system includes: multiple IoT terminals, the relay node, and a base station, wherein the relay node communicates with each IoT terminal and the base station respectively; the device includes: a determining module and a processing module.
[0028] The determining module is used to determine the data reporting method based on the data collection scenario parameters. The data collection scenario parameters include at least one of the following: data collection volume, number of IoT terminals bound to the relay node, and battery level of the IoT terminals.
[0029] The processing module is used to receive the collected data sent by the IoT terminal, process the collected data according to the data reporting method, generate data processing results, and report the data processing results to the base station.
[0030] Optionally, the determining module is specifically used to determine that the data reporting method is complete data reporting if the data collection amount is less than a first threshold and the number of IoT terminals bound to the relay node meets a first quantity.
[0031] If the amount of data collected is greater than the second threshold, then the data reporting method is determined to be incremental data reporting;
[0032] If the amount of data collected is greater than the second threshold and the battery level of the IoT terminal is lower than the preset battery level, then the data reporting method is determined to be incremental data reporting of statistical values.
[0033] Optionally, the processing module is specifically used to generate a data sequence corresponding to the current collection period based on the collected data at each moment within the current collection period if the data reporting method is complete data reporting;
[0034] Based on the collected data at each time point, determine the data mean and data variance corresponding to the current collection period;
[0035] Based on the data sequence corresponding to the current acquisition period, as well as the data mean and variance corresponding to the current acquisition period, the data processing result for the current acquisition period is obtained.
[0036] Optionally, the processing module is specifically used to determine the difference between the collected data at adjacent times based on the collected data at each time point within the current collection period, and obtain the incremental sequence of collected data corresponding to the current collection period, if the data reporting method is incremental data reporting.
[0037] Based on the incremental sequence of the collected data corresponding to the current collection period and the collected data at the first moment within the current collection period, the data processing result of the current collection period is obtained.
[0038] Optionally, the processing module is specifically used to generate a mean increment sequence and a variance increment sequence corresponding to the continuous acquisition period based on the acquired data at each time point within at least two consecutive acquisition periods if the data reporting method is statistical value incremental data reporting. The mean increment sequence includes the difference between the means of adjacent acquisition periods, and the variance increment sequence includes the difference between the variances of adjacent acquisition periods.
[0039] Based on the data mean and variance corresponding to the first acquisition period, as well as the mean increment sequence and variance increment sequence, the data processing results for the continuous acquisition period are obtained.
[0040] Optionally, the device further includes: a receiving module;
[0041] The receiving module is used to start a timer, receive the data collected by the IoT terminal at various times, and stop collecting after the timer expires, thus obtaining the data collected at each time within the current collection period.
[0042] The receiving module is also used to start a counter, receive the collected data at various times from the IoT terminal, and stop collecting data after the number of received collected data meets the count of the counter, so as to obtain the collected data in the current collection period.
[0043] Thirdly, embodiments of this application provide an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the data processing method for the Internet of Things terminal provided in the first aspect.
[0044] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the data processing method for an IoT terminal as provided in the first aspect.
[0045] The beneficial effects of this application are:
[0046] This application provides a data processing method, apparatus, electronic device, and storage medium for IoT terminals. By deploying relay nodes in the IoT system, data collected by the IoT terminal can be first sent to the relay nodes. The relay nodes can then determine a matching data reporting method based on data collection scenario parameters to process the collected data sent by the IoT terminal, and finally report the data processing results to the base station. By introducing relay nodes, the problem of potential data loss caused by directly reporting data to the base station due to the limited storage and computing power of IoT terminals can be alleviated. Furthermore, determining an appropriate data reporting method based on data collection scenario parameters makes the data reporting method more suitable for the current scenario, thereby ensuring the stability of data reporting and effectively improving data processing and reporting efficiency. Attached Figure Description
[0047] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 This application provides an embodiment of an Internet of Things (IoT) system architecture diagram.
[0049] Figure 2 A flowchart illustrating the data processing method for an IoT terminal provided in this application embodiment. Figure One ;
[0050] Figure 3 A flowchart illustrating the data processing method for an IoT terminal provided in this application embodiment. Figure Two ;
[0051] Figure 4 A flowchart illustrating the data processing method for an IoT terminal provided in this application embodiment. Figure Three ;
[0052] Figure 5 A flowchart illustrating the data processing method for an IoT terminal provided in this application embodiment. Figure Four ;
[0053] Figure 6 A flowchart illustrating the data processing method for an IoT terminal provided in this application embodiment. Figure Five ;
[0054] Figure 7A schematic diagram of a data processing device for an Internet of Things (IoT) terminal provided in an embodiment of this application;
[0055] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0056] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0057] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0058] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0059] Narrowband Internet of Things (NB-IoT) is a narrowband IoT technology based on cellular networks. It supports low-power devices connecting to cellular data over wide-area networks, and is also known as Low-Power Wide-Area Network (LPWA). NB-IoT uses licensed frequency bands and features wide coverage, high connectivity, low data rates, and low power consumption. Currently, 3GPP (3rd Generation Partnership Project) has completed the standardization of NB-IoT technology. This type of low-power wide-area network technology has addressed some user needs with its relatively low cost, low power consumption, and wide connectivity. This technology is currently being applied in various vertical industries, such as remote meter reading, asset tracking, and smart parking.
[0060] As the number of IoT nodes increases, the cost of battery placement and maintenance within IoT devices will become extremely high. Furthermore, many real-world scenarios and needs remain that current NB-IoT technologies cannot address, for example:
[0061] 1. Application scenarios in extreme environmental conditions, such as high pressure, extremely high / low temperature, humid and corrosive environments, etc.
[0062] 2. Requirements for equipment with extremely low complexity / tiny size (e.g., millimeter-level thickness) and long lifespan requiring no maintenance;
[0063] 3. Scenarios where traditional battery power supply is unavailable.
[0064] With the continuous advancement of energy harvesting technology, passive IoT (Ambient IoT), or the Internet of Things without batteries, has emerged. Passive IoT devices are powered through external energy harvesting or limited energy storage capacity (such as capacitors). They acquire energy through wireless radio frequency signals, solar energy, sunlight, kinetic energy, and temperature differences, and utilize dedicated energy harvesting devices to collect this energy to power the IoT devices. They also possess numerous advantages, including extremely simple structure, maintenance-free operation throughout their lifespan, and environmental friendliness. Passive IoT terminals are widely used in sensor data reporting scenarios such as smart grids and smart farms.
[0065] Due to cost and functional limitations, passive IoT terminals have extremely limited storage and computing power. When the terminal collects a large amount of data, failure to report the data to the base station in a timely manner can easily lead to memory overflow and loss of critical data.
[0066] Based on this, this solution proposes deploying dedicated relay nodes to receive data reported by passive IoT terminals. Data collected by the terminals is first reported to the relay nodes. Relay nodes with sufficient computing power classify, summarize, and process the received data before reporting it uniformly to the base station. Furthermore, considering the strong correlation between data detected by sensors within a certain time frame and spatial area, the relay nodes can summarize the data reported by the terminals and report the summarized results to the base station all at once. This data reporting method effectively reduces the number of reporting operations, saves bandwidth resources, and significantly improves the reliability of data reporting.
[0067] Figure 1 This application provides an embodiment of an Internet of Things (IoT) system architecture diagram, such as... Figure 1As shown, the Internet of Things (IoT) system may include: IoT terminals, relay nodes, and base stations. There may be multiple IoT terminals, all of which are communicatively connected to the relay nodes and can transmit data with the relay nodes. The relay nodes are also communicatively connected to the base stations and can report the processed data received from the IoT terminals to the base stations. The relay nodes may be third-party devices independent of the base stations or units not belonging to the base stations.
[0068] Relay nodes can receive collected data sent by IoT terminals and, based on the amount of data collected and the scale of connected IoT terminals, select appropriate data processing methods to process the collected data and report the processing results to the base station. This avoids the problem of data loss caused by the limited storage and computing power of IoT terminals failing to report collected data to the base station in a timely manner.
[0069] The multiple IoT terminals connected to a relay node can be of the same type or different types. IoT terminals of the same type are used to collect the same type of data. For example, when the IoT terminal is a temperature sensor, it is only used to collect temperature data, and when the IoT terminal is a humidity sensor, it is only used to collect humidity data.
[0070] Figure 2 A flowchart illustrating the data processing method for an IoT terminal provided in this application embodiment. Figure One The execution entity of this method can be a relay node. For example... Figure 1 As shown, the method may include:
[0071] S201. Determine the data reporting method based on the data collection scenario parameters. The data collection scenario parameters include at least one of the following: data collection volume, number of IoT terminals bound to the relay node, and battery level of the IoT terminals.
[0072] Data acquisition scenario parameters can be used to characterize the application scenario information of the method. Typically, different data reporting methods can be selected to report data to the base station according to different application scenarios, so as to adapt to the data transmission requirements under different application scenarios and ensure the integrity of data reporting.
[0073] In this embodiment, the data acquisition scenario parameters may include, but are not limited to: data acquisition volume, the number of IoT terminals bound to the relay node, and the battery level of the IoT terminals. The number of IoT terminals bound to the relay node refers to the data of the IoT terminals that have established communication connections with the relay node; in other words, it refers to the number of IoT terminals supported by the relay node.
[0074] In this embodiment, relay nodes may include, but are not limited to: 5G terminals (NR UE, New Radio, User Equipment); LTE terminals (LTE UE, Long Term Evolution, User Equipment); NB-IoT (Narrow Band Internet of Things) terminals; dedicated relay base stations; wireless CPE (Customer Premises Equipment) nodes; edge computing platforms; edge gateways; passive IoT terminals of the same type; third-party power equipment with protocol conversion capabilities; and third-party power amplifiers and forwarding equipment with compatible transmission protocols.
[0075] S202. Receive the collected data sent by the IoT terminal, process the collected data according to the data reporting method, generate the data processing result, and report the data processing result to the base station.
[0076] Based on the determined data reporting method, the collected data sent by the IoT terminal can be processed according to the data reporting method to generate data processing results and report them to the base station.
[0077] When processing the collected data according to the data reporting method, the collected data sent by an IoT terminal can be processed separately, and the data processing results can be reported to the base station separately according to the IoT terminal. The collected data of each IoT terminal is processed and reported separately, so as to effectively distinguish the data collected from different IoT terminals, so as to facilitate subsequent data processing and analysis.
[0078] The collected data sent by different IoT terminals can be distinguished and labeled based on the identifier of the IoT terminal.
[0079] Optionally, the identification of an IoT terminal may include, but is not limited to, the following information: ID (Identity document) information; product serial number; Name information; IP (Internet Protocol) address information; MAC (Media Access Control) address information; and information about the manufacturer of the device.
[0080] Optionally, the ID information in the terminal identification information includes, but is not limited to, the following: Device Identifier information; Temporary Mobile Subscriber Identity (TMSI); Globally Unique Temporary Mobile Subscriber Identity (GUTI); and Radio Network Temporary Identifier (RNTI).
[0081] In summary, the data processing method for IoT terminals provided in this embodiment, by deploying relay nodes in the IoT system, allows data collected by the IoT terminal to be sent to the relay nodes first. The relay nodes can then determine a suitable data reporting method based on data collection scenario parameters to process the collected data sent by the IoT terminal, and finally report the data processing results to the base station. Introducing relay nodes can alleviate the problem of potential data loss caused by directly reporting data to the base station due to the limited storage and computing power of IoT terminals. Furthermore, determining an appropriate data reporting method based on data collection scenario parameters makes the data reporting method more suitable for the current scenario, thereby ensuring the stability of data reporting.
[0082] Figure 3 A flowchart illustrating the data processing method for an IoT terminal provided in this application embodiment. Figure Two In step S201, the data reporting method is determined based on the data acquisition scenario parameters, which may include:
[0083] S301. If the amount of data collected is less than the first threshold and the number of IoT terminals bound to the relay node meets the first quantity, then the data reporting method is determined to be complete data reporting.
[0084] If the amount of data collected is less than the first threshold, it can be characterized that the amount of data collected is small. If the number of IoT terminals bound to the relay node meets the first number, it can be characterized that the scale of IoT terminals bound to the relay node is small. When the scale of terminals is small and the amount of data collected is small, it can be determined that the data reporting method is complete data reporting.
[0085] In this case, the collected data does not need to be processed and can be directly used to form a data sequence for reporting.
[0086] S302. If the amount of data collected is greater than the second threshold, then the data reporting method is determined to be incremental data reporting.
[0087] A data collection volume greater than the second threshold indicates a large data collection volume. When the data collection volume is large, the data reporting method can be determined to be incremental data reporting.
[0088] Incremental data reporting involves calculating the difference between adjacent data collected and reporting the difference. When reporting data, the difference is used. This method results in more zero values in the difference when the changes in adjacent data are small, thus reducing the amount of data reported.
[0089] S303. If the amount of data collected is greater than the second threshold and the battery power of the IoT terminal is lower than the preset battery power, then the data reporting method is determined to be incremental data reporting of statistical values.
[0090] When the amount of data collected is large and the battery power of the IoT terminal is insufficient, the data reporting method can be determined to be the statistical value incremental data reporting method.
[0091] The incremental statistical data reporting method involves reporting the difference in statistical values between adjacent collection periods. This eliminates the need to report every data point in a collection period; only the difference in statistical values needs to be reported, which can significantly reduce the amount of data reported.
[0092] Figure 4 A flowchart illustrating the data processing method for an IoT terminal provided in this application embodiment. Figure Three Optionally, in step S202, processing the collected data according to the data reporting method to generate data processing results may include:
[0093] S401. If the data reporting method is complete data reporting, then the data sequence corresponding to the current collection period is generated based on the collected data at each moment within the current collection period.
[0094] It should be noted that the type of data collected varies depending on the type of IoT terminal. Typically, the types of data collected by IoT terminals may include, but are not limited to: temperature; humidity; wind speed; voltage; current; pressure; vibration; light intensity; and node energy reserve.
[0095] In this embodiment, an IoT terminal is used as a temperature sensor to collect temperature data. In practical applications, any type of data collected by any type of IoT terminal can be processed in the same way.
[0096] When the data reporting method is complete data reporting, taking temperature data as an example, the relay node can report the complete temperature sequence from the IoT terminal, as well as the mean and variance of the temperature data, to the base station. This method is simple and direct, and is suitable for simple scenarios with a small number of IoT terminals and a small amount of data.
[0097] S402. Based on the collected data at each time point, determine the mean and variance of the data corresponding to the current collection period.
[0098] The mean and variance of the collected data can be calculated based on the collected data at each time point within the collection period, thereby obtaining the mean and variance of the data corresponding to the current collection period.
[0099] S403. Based on the data sequence corresponding to the current acquisition period, as well as the data mean and variance corresponding to the current acquisition period, obtain the data processing result for the current acquisition period.
[0100] Optionally, the data sequence corresponding to the current acquisition period, as well as the data mean and data variance, can be reported to the base station as data processing results. The data sequence is the sequence of temperature data collected at each moment in chronological order.
[0101] In this complete data reporting method, the data processing result of one collection cycle can be reported once, or the data processing results of multiple collection cycles of an IoT terminal can be reported uniformly. However, each collection cycle corresponds to one data processing result.
[0102] In one feasible approach, the relay node can receive data collected by the IoT terminal for each collection cycle based on a timer. Optionally, a timer is started to receive data collected by the IoT terminal at each moment, and collection stops after the timer expires, thus obtaining the data collected at each moment within the current collection cycle.
[0103] For example: A timer is initialized, and the relay node begins receiving temperature data reported by IoT terminals. When the timer expires, the relay node calculates the temperature mean and variance based on the received temperature data for each moment within the current acquisition period. Subsequently, the relay node reports the complete temperature sequence for the current acquisition period, along with the mean and variance of the temperature data, to the base station. The complete data report includes, but is not limited to, the following: the temperature data sequence; and the mean and variance of the temperature data.
[0104] The definitions of each reported data are as follows:
[0105] Temperature data sequence: Let Node_k be the terminal identifier of the IoT terminal. Within the timer duration, the relay node receives a total of N temperature data points from Node_k, which are then used as... Let represent the i-th temperature data. Let T_data_Tj be the N temperature data sequences accumulated by Node_k within the current timer period. Then T_data_Tj = [ , ... , ].
[0106] Temperature data mean and variance: Based on the temperature data sequence, the mean and variance of the temperature data of Node_k within the current timer period Tj can be calculated, denoted as follows: and .
[0107] In another possible implementation, the relay node can receive data collected by the IoT terminal for each collection cycle based on a counter. Optionally, the counter is started to receive data collected by the IoT terminal at each moment, and collection stops after the amount of received data meets the counter's count, thus obtaining the data collected in the current collection cycle.
[0108] For example, a counter is initialized, and the relay node begins receiving temperature data reported by IoT terminals. When the counter reaches its counting target, the relay node calculates the temperature mean and variance based on the received temperature data for the current acquisition period. Subsequently, the relay node reports the complete temperature sequence for the current acquisition period, along with the mean and variance of the temperature data, to the base station. The complete data report includes, but is not limited to, the following: the temperature data sequence; and the mean and variance of the temperature data.
[0109] Temperature data sequence: Let Node_k be the terminal identifier of the IoT terminal. Set the counter's target value to N. When the relay node receives N temperature data points from Node_k, terminate the counter and trigger the calculation. Let represent the i-th temperature data. Let T_data_N be the N temperature data sequences accumulated by Node_k, then T_data_N = [ , ... , ].
[0110] Temperature data mean and variance: Based on the temperature data sequence, the mean and variance of the N temperature data points received by Node_k can be calculated, denoted as follows: and .
[0111] Figure 5 A flowchart illustrating the data processing method for an IoT terminal provided in this application embodiment. Figure Four Optionally, in step S202, processing the collected data according to the data reporting method to generate data processing results may include:
[0112] S501. If the data reporting method is incremental data reporting, then based on the collected data at each time point within the current collection period, the difference between the collected data at adjacent time points is determined to obtain the incremental sequence of collected data corresponding to the current collection period.
[0113] When the data reporting method is incremental data reporting, just like with complete data reporting, the incremental data sequence corresponding to the current collection period can be determined based on the collected data at each moment within the current collection period. One collection period corresponds to one incremental data sequence.
[0114] S502. Based on the incremental sequence of the collected data corresponding to the current collection period and the collected data at the first moment within the current collection period, obtain the data processing result for the current collection period.
[0115] Taking temperature data as an example, the relay node can report the initial temperature data (the data collected at the first moment of the current collection cycle) and the temperature increment sequence received in the current collection cycle to the base station. One collection cycle corresponds to one data processing result.
[0116] Based on initial temperature data and temperature increment sequences, the base station can reconstruct temperature data for all time points through calculation. When temperature changes are small, the temperature increment sequence contains many zero values, which can be represented using a smaller number of bits. Therefore, it has the advantages of low data volume and low bandwidth consumption, making it suitable for large-scale terminal data reporting scenarios.
[0117] In one feasible approach, relay nodes can receive data collected from IoT terminals for each collection cycle based on a timer.
[0118] For example, a timer is initialized, and the relay node begins receiving temperature data reported by IoT terminals. When the timer expires, the relay node performs calculations based on the received temperature data for the current acquisition period and reports the calculation results to the base station. Incremental data reporting includes, but is not limited to, the following: initial node temperature data; temperature increment sequence.
[0119] The definitions of each reported data are as follows:
[0120] Initial node temperature data: refers to the first temperature data collected by the IoT terminal Node_k after the timer is initialized.
[0121] Temperature increment sequence: Calculate the difference between all two adjacent temperature data points in the temperature data sequence. Let the difference between the nth and (n+1th)th temperature data points of terminal Node_k be denoted as . Then there is By analogy, all N temperature increment data can be calculated, and the timer duration can be recorded. The temperature data difference increment sequence within is ,but =[ , ... , ].
[0122] In another possible approach, relay nodes can receive data collected from IoT terminals for each collection cycle based on a counter.
[0123] For example, a counter is initialized, and the relay node begins receiving temperature data reported by IoT terminals. When the counter reaches its counting target, the relay node performs calculations based on the received temperature data within the current acquisition period and reports the results to the base station. Incremental data reporting includes, but is not limited to, the following: initial node temperature data; temperature increment sequence.
[0124] The definitions of each reported data are as follows:
[0125] Initial node temperature data: refers to the first temperature data received by terminal Node_k after the counter is initialized.
[0126] Temperature increment sequence: Calculate the difference between all two adjacent temperature data points in a temperature data sequence. Let the difference between the nth temperature data point and the (n+1)th temperature data point be denoted as . Then there is Similarly, all N data point temperature differences can be calculated, and the sequence of N data point temperature differences is denoted as... ,but =[ , ... , ].
[0127] Figure 6 A flowchart illustrating the data processing method for an IoT terminal provided in this application embodiment. Figure Five Optionally, in step S202, processing the collected data according to the data reporting method to generate data processing results may include:
[0128] S601. If the data reporting method is statistical value incremental data reporting, then based on the collected data at each time point within at least two consecutive collection periods, generate the mean increment sequence and variance increment sequence corresponding to the consecutive collection periods. The mean increment sequence includes the difference between the means of adjacent collection periods, and the variance increment sequence includes the difference between the variances of adjacent collection periods.
[0129] In the method of reporting incremental statistical data, the collected data can be obtained by acquiring the collected data from multiple consecutive collection periods. By combining the collected data from each collection period, the difference between the mean and variance of the collected data from adjacent collection periods is obtained. In other words, the difference between the statistical values of the data from adjacent collection periods forms a statistical value sequence, which is then reported to the base station.
[0130] S602. Based on the data mean and variance corresponding to the first acquisition cycle, as well as the mean increment sequence and variance increment sequence, the data processing results for the continuous acquisition cycle are obtained.
[0131] Unlike the two data reporting methods mentioned above, in the method of reporting incremental statistical values, multiple consecutive collection cycles correspond to the calculation of a single data processing result.
[0132] Taking temperature data as an example, the relay node reports the temperature statistics within the initial timing period and the temperature increments between adjacent timing periods to the base station. The base station can then reconstruct the temperature statistics for all timing periods based on the initial timing period's temperature statistics and the increments. This method reports temperature statistics on a continuous multiple-period basis. This further reduces the number and frequency of data reports, significantly saving channel resources. It is suitable for scenarios where IoT terminals have low battery levels, small fluctuations in IoT terminal data, and large-scale terminal data reporting.
[0133] In one feasible approach, relay nodes can receive data collected from IoT terminals for each collection cycle based on a timer.
[0134] For example, a timer is initialized, and the relay node begins receiving temperature data reported by IoT terminals. When the timer expires, the relay node performs calculations based on the received temperature data and reports the results to the base station. The reporting of incremental statistical data includes, but is not limited to, the following: initial temperature statistical values; and the incremental sequence of temperature statistical values.
[0135] The definitions of each reported data are as follows:
[0136] Initial temperature statistics: the average temperature data within the initial timing period. and variance ;
[0137] Temperature Statistical Increment Sequence: If a relay node receives cumulative data over multiple consecutive timer cycles, it can calculate the mean and variance increments of the temperature data within adjacent timer cycles and construct an increment sequence. As follows:
[0138] Record the node during the timer cycle The mean of the internally received temperature data and variance Record the node in the next timer cycle. The mean of the internally received temperature data and variance The mean temperature increment is... The temperature variance increment is .
[0139] Similarly, assuming the relay node receives data from terminal Node_k for a cumulative M timer cycles, the average temperature increment sequence can be calculated. =[ , ,..., ], and temperature variance increment sequence =[ , ,..., ].
[0140] In another possible approach, relay nodes can receive data collected from IoT terminals for each collection cycle based on a counter.
[0141] For example, a counter is initialized, and the relay node begins receiving temperature data reported by IoT terminals. When the counter reaches its counting target, the relay node performs calculations based on the received temperature data and reports the results to the base station. The incremental reporting of statistical values includes, but is not limited to, the following data: initial temperature statistical values; and the incremental sequence of temperature statistical values.
[0142] The definitions of each reported data are as follows:
[0143] Initial temperature statistics: The average of the N temperature data points received after the first counting cycle. and variance ;
[0144] Temperature Statistical Value Increment Sequence: If a relay node receives cumulative data from multiple consecutive counting cycles, it can calculate and report the increments of the mean and variance of the temperature data based on the counting results of adjacent counting cycles. (See below:)
[0145] When the counter's counting period j reaches the counting target N, record the average of the N received temperature data. and variance When the counter's counting period j+1 reaches the counting target N, the average of the newly received N temperature data points is... and variance The mean temperature increment is... The temperature variance increment is
[0146] Similarly, assuming the relay node receives data from terminal Node_k for a cumulative M counting cycles, the average temperature increment sequence can be calculated. =[ , ,..., ], and temperature variance increment sequence =[ , ,..., ].
[0147] Based on the three data reporting methods of the relay nodes designed in this scheme, the appropriate data reporting method can be selected according to the actual data acquisition scenario parameters for data processing and reporting, which can effectively improve data processing and reporting efficiency. At the same time, a relay node data processing mechanism based on timers and counters is also considered, enabling different data acquisition modes.
[0148] In summary, the data processing method for IoT terminals provided in this embodiment, by deploying relay nodes in the IoT system, allows data collected by the IoT terminal to be sent to the relay nodes first. The relay nodes can then determine a matching data reporting method based on data collection scenario parameters to process the collected data sent by the IoT terminal, and finally report the data processing results to the base station. Introducing relay nodes alleviates the problem of potential data loss caused by directly reporting data to the base station due to the limited storage and computing power of IoT terminals. Furthermore, determining an appropriate data reporting method based on data collection scenario parameters makes the data reporting method more suitable for the current scenario, thereby ensuring the stability of data reporting and effectively improving data processing and reporting efficiency.
[0149] The following describes the apparatus, device, and storage medium used to execute the data processing method of the Internet of Things terminal provided in this application. The specific implementation process and technical effects are described above and will not be repeated below.
[0150] Figure 7 This is a schematic diagram of a data processing device for an IoT terminal provided in an embodiment of this application. The data processing device is applied to a relay node in an IoT system. The IoT system includes multiple IoT terminals, a relay node, and a base station. The relay node communicates with each IoT terminal and the base station. The functions implemented by the data processing device correspond to the steps executed in the aforementioned method. This device can be understood as the aforementioned relay node, such as... Figure 7 As shown, the device may include: a determining module 710 and a processing module 720;
[0151] The determination module 710 is used to determine the data reporting method based on the data collection scenario parameters. The data collection scenario parameters include at least one of the following: data collection volume, number of IoT terminals bound to the relay node, and battery level of the IoT terminals.
[0152] The processing module 720 is used to receive the collected data sent by the IoT terminal, process the collected data according to the data reporting method, generate the data processing result, and report the data processing result to the base station.
[0153] Optionally, the determining module 710 is specifically used to determine the data reporting method as complete data reporting if the data collection amount is less than the first threshold and the number of IoT terminals bound to the relay node meets the first quantity.
[0154] If the amount of data collected is greater than the second threshold, then the data reporting method is determined to be incremental data reporting;
[0155] If the amount of data collected is greater than the second threshold and the battery level of the IoT terminal is lower than the preset battery level, then the data reporting method is determined to be incremental data reporting of statistical values.
[0156] Optionally, the processing module 720 is specifically used to generate a data sequence corresponding to the current collection period based on the collected data at each moment within the current collection period if the data reporting method is complete data reporting;
[0157] Based on the collected data at each time point, determine the data mean and data variance corresponding to the current collection period;
[0158] Based on the data sequence corresponding to the current acquisition period, as well as the data mean and variance corresponding to the current acquisition period, the data processing results for the current acquisition period are obtained.
[0159] Optionally, the processing module 720 is specifically used to determine the difference between the collected data at adjacent times based on the collected data at each time point within the current collection period, and obtain the incremental sequence of collected data corresponding to the current collection period, if the data reporting method is incremental data reporting.
[0160] Based on the incremental sequence of the collected data corresponding to the current collection period and the collected data at the first moment within the current collection period, the data processing result of the current collection period is obtained.
[0161] Optionally, the processing module 720 is specifically used to generate a mean increment sequence and a variance increment sequence corresponding to the continuous acquisition period based on the acquired data at each time point within at least two consecutive acquisition periods if the data reporting method is statistical value incremental data reporting. The mean increment sequence includes the difference between the means of adjacent acquisition periods, and the variance increment sequence includes the difference between the variances of adjacent acquisition periods.
[0162] Based on the mean and variance of the data corresponding to the first acquisition period, as well as the mean increment sequence and variance increment sequence, the data processing results of the continuous acquisition period are obtained.
[0163] Optionally, the device further includes: a receiving module;
[0164] The receiving module is used to start the timer, receive the data collected by the IoT terminal at various times, and stop collecting after the timer expires, thus obtaining the data collected at each time within the current collection period.
[0165] The receiving module is also used to start the counter, receive the data collected by the IoT terminal at various times, and stop collecting data after the number of received data meets the counter count, thus obtaining the data collected in the current collection period.
[0166] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.
[0167] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more digital signal processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).
[0168] The modules described above can be connected or communicate with each other via wired or wireless connections. Wired connections can include metal cables, optical fibers, hybrid cables, or any combination thereof. Wireless connections can include connections via LAN, WAN, Bluetooth, ZigBee, or NFC, or any combination thereof. Two or more modules can be combined into a single module, and any module can be divided into two or more units. Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here.
[0169] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The device may be a computing device with data processing capabilities.
[0170] The device may include: a processor 801 and a storage medium 802.
[0171] Storage medium 802 is used to store programs, and processor 801 calls the programs stored in storage medium 802 to execute the above method embodiments. The specific implementation and technical effects are similar, and will not be described in detail here.
[0172] The storage medium 802 stores program code, which, when executed by the processor 801, causes the processor 801 to perform various steps in the data processing method of the Internet of Things terminal according to various exemplary embodiments of this application as described in the "Exemplary Methods" section above.
[0173] The processor 801 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0174] Storage medium 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The storage medium can include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type storage medium, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage medium, magnetic disk, optical disk, etc. The storage medium is any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, storage medium 802 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.
[0175] Optionally, this application also provides a program product, such as a computer-readable storage medium, including a program that, when executed by a processor, performs the above-described method embodiments.
[0176] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0177] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0178] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.
[0179] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various 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.
Claims
1. A data processing method for an Internet of Things (IoT) terminal, characterized in that, A relay node is used in an Internet of Things (IoT) system, wherein the IoT system includes: multiple IoT terminals, the relay node, and a base station, and the relay node communicates with each IoT terminal and the base station respectively; the method includes: The data reporting method is determined based on the data collection scenario parameters, which include at least one of the following: data collection volume, number of IoT terminals bound to the relay node, and battery level of the IoT terminals. The system receives collected data sent by IoT terminals, processes the collected data according to the data reporting method, generates data processing results, and reports the data processing results to the base station. The step of determining the data reporting method based on data collection scenario parameters includes: If the amount of data collected is less than the first threshold and the number of IoT terminals bound to the relay node meets the first quantity, then the data reporting method is determined to be complete data reporting; wherein, the number of IoT terminals bound to the relay node meeting the first quantity indicates that the scale of IoT terminals bound to the relay node is relatively small. If the amount of data collected is greater than the second threshold, then the data reporting method is determined to be incremental data reporting; If the amount of data collected is greater than the second threshold and the battery level of the IoT terminal is lower than the preset battery level, then the data reporting method is determined to be incremental data reporting of statistical values.
2. The method according to claim 1, characterized in that, The step of processing the collected data according to the data reporting method to generate data processing results includes: If the data reporting method is complete data reporting, then the data sequence corresponding to the current collection period is generated based on the collected data at each time point within the current collection period. Based on the collected data at each time point, determine the data mean and data variance corresponding to the current collection period; Based on the data sequence corresponding to the current acquisition period, as well as the data mean and variance corresponding to the current acquisition period, the data processing result for the current acquisition period is obtained.
3. The method according to claim 1, characterized in that, The step of processing the collected data according to the data reporting method to generate data processing results includes: If the data reporting method is incremental data reporting, then based on the collected data at each time point within the current collection period, the difference between the collected data at adjacent time points is determined to obtain the incremental sequence of collected data corresponding to the current collection period. Based on the incremental sequence of the collected data corresponding to the current collection period and the collected data at the first moment within the current collection period, the data processing result of the current collection period is obtained.
4. The method according to claim 1, characterized in that, The step of processing the collected data according to the data reporting method to generate data processing results includes: If the data reporting method is statistical value incremental data reporting, then based on the collected data at each time point within at least two consecutive collection periods, a mean increment sequence and a variance increment sequence corresponding to the consecutive collection periods are generated. The mean increment sequence includes the difference between the means of adjacent collection periods, and the variance increment sequence includes the difference between the variances of adjacent collection periods. Based on the data mean and variance corresponding to the first acquisition period, as well as the mean increment sequence and variance increment sequence, the data processing results for the continuous acquisition period are obtained.
5. The method according to any one of claims 2-4, characterized in that, The method further includes: Start a timer, receive the collected data at various times from the IoT terminal, and stop collecting data after the timer expires, thus obtaining the collected data at each time within the current collection period.
6. The method according to any one of claims 2-4, characterized in that, The method further includes: Start the counter, receive the data collected by the IoT terminal at various times, and stop collecting data after the number of received data meets the count of the counter, thus obtaining the data collected in the current collection period.
7. A data processing device for an Internet of Things (IoT) terminal, characterized in that, A relay node is used in an Internet of Things (IoT) system, which includes multiple IoT terminals, the relay node, and a base station. The relay node communicates with each IoT terminal and the base station. The device includes a determination module and a processing module. The determining module is used to determine the data reporting method based on the data collection scenario parameters. The data collection scenario parameters include at least one of the following: data collection volume, number of IoT terminals bound to the relay node, and battery level of the IoT terminals. The processing module is used to receive the collected data sent by the IoT terminal, process the collected data according to the data reporting method, generate data processing results, and report the data processing results to the base station. The determining module is specifically used to determine that the data reporting method is complete data reporting if the data collection volume is less than a first threshold and the number of IoT terminals bound to the relay node meets a first quantity; wherein, the number of IoT terminals bound to the relay node meeting the first quantity indicates that the scale of IoT terminals bound to the relay node is relatively small. If the amount of data collected is greater than the second threshold, then the data reporting method is determined to be incremental data reporting; If the amount of data collected is greater than the second threshold and the battery level of the IoT terminal is lower than the preset battery level, then the data reporting method is determined to be incremental data reporting of statistical values.
8. An electronic device, characterized in that, include: The device includes a processor, a storage medium, and a bus. The storage medium stores program instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus. The processor executes the program instructions to perform the steps of the data processing method for an IoT terminal as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, performs the steps of the data processing method for an IoT terminal as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Data acquisition methods and device and server
CN109617824A
Data processing method and device, computer equipment and storage medium
CN115460567A