Internet of Things data transmission method based on zigbee

By analyzing the fluctuation characteristics of smart home environment data and generating adjustment instructions, the frequent equipment regulation problems caused by fixed thresholds are solved, data accuracy and comfort control are improved, equipment life is extended, and energy consumption is reduced.

CN119012180AInactive Publication Date: 2024-11-22深圳市犀云科技有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411073304.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In smart homes, fixed regulation thresholds lead to instability of environmental parameter data, frequent regulation of equipment, affecting service life and increasing energy consumption.

Method used

By analyzing the fluctuation characteristics of the environmental data inside and outside the house, determining the current regulation indicators, and generating equipment adjustment instructions based on historical data and fluctuation characteristics, transmitting them to the device through the zigbee gateway to achieve intelligent regulation.

Benefits of technology

It improves the accuracy and comfort control capabilities of environmental data, reduces frequent equipment regulation and energy consumption, and extends the service life of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012180A_ABST
    Figure CN119012180A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data transmission, in particular to an Internet of Things data transmission method based on zigbee, and the method comprises the steps: obtaining indoor and outdoor environment data in the Internet of Things, analyzing the fluctuation characteristics of the environment data, and obtaining a current regulation and control index; and if the current regulation and control index is greater than or equal to the regulation threshold value, generating an equipment regulation instruction according to the current regulation and control index, and transmitting the equipment regulation instruction to each piece of indoor equipment through the zigbee gateway. According to the method, a certain parameter value of the environmental data is no longer used as a trigger regulation threshold value of the equipment regulation instruction, the fluctuation characteristics of the indoor and outdoor environmental data are fully analyzed, and the influence caused by the fluctuation characteristics is considered, so that the current regulation index is determined. And the indexes for adjusting the equipment are determined again, and related equipment adjusting instructions are transmitted through the central control system, so that the accuracy of data transmission is improved, and the indoor environment comfort control capability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a Zigbee-based Internet of Things data transmission method. Background Art

[0002] Zigbee is a low-power, low-cost wireless communication protocol. It can connect various smart home devices to achieve automation and remote control. It is low-cost, supports many connected devices, and allows many connected devices. It can meet the needs of large smart homes, making it widely used in smart home devices. The sensors in the smart home can monitor the environmental parameters in the house to control the comfort of the smart home.

[0003] At present, in the traditional comfort control of smart homes, thresholds for the amplitude of changes in various environmental parameters are often set. If the change is greater than the threshold, the central control center will issue relevant instructions to the device to complete the regulation of the environment, such as temperature, humidity, light, etc., so that the temperature environment can make people feel more comfortable. However, the monitored environmental parameter data is affected by many factors, resulting in these data not being stable. If the environmental parameter data at this time is at the threshold boundary of intelligent adjustment, the intelligent center will frequently send control instructions to related devices through the Zigbee gateway, resulting in unstable temperature data, which will cause frequent regulation of the equipment, affecting the service life of the equipment and increasing energy consumption. At the same time, the requirements for equipment regulation under different environmental conditions in different time periods may also vary, which may also lead to inaccurate thresholds.

[0004] In view of this, the present invention is proposed. Summary of the invention

[0005] In order to solve the technical problem that in the IoT environment of smart home, a fixed control threshold is used as a reference to issue control instructions to related devices, resulting in unstable data, which leads to frequent control of devices, affects the service life of the devices, and increases energy consumption, the purpose of the present invention is to provide an IoT data transmission method based on Zigbee, and the technical solution adopted is as follows:

[0006] A Zigbee-based Internet of Things data transmission method, the method comprising: acquiring environmental data inside and outside a house in the Internet of Things, analyzing the fluctuation characteristics of the environmental data, and obtaining a current regulation index; if the current regulation index is greater than or equal to a regulation threshold, generating a device regulation instruction according to the current regulation index, and transmitting the device regulation instruction to each device in the house through a Zigbee gateway.

[0007] The present invention no longer uses a certain parameter value of environmental data as the triggering control threshold of the device adjustment instruction, but fully analyzes the fluctuation characteristics of the environmental data inside and outside the house, taking into account the impact of the fluctuation characteristics, so as to determine the current control index. Then compare the current control index with the adjustment threshold. When it is greater than or equal to the adjustment threshold, the device adjustment instruction is actually generated, and the device adjustment instruction is transmitted to each device in the house through the Zigbee gateway, thereby realizing intelligent control. The adjustment threshold here is not a certain environmental parameter value, but is set according to the adjustment index corresponding to the optimal environmental comfort level achieved during the historical indoor environmental adjustment process. The present invention redetermines the index for the equipment to be adjusted, transmits the relevant equipment adjustment instructions through the central control system, thereby improving the accuracy of the transmitted data and improving the indoor comfort control ability of the environment.

[0008] Furthermore, the environmental data is analyzed to obtain current control indicators, specifically including: the environmental data includes a number of data points; the environmental data is segmented in time series to form multiple data segments; the data points in the data segments are analyzed to obtain the significance of fluctuations of the indoor and outdoor environmental data; based on the significance of fluctuations of the indoor and outdoor environmental data, the mean value of the environmental parameter data in the data segment and the optimal environmental parameter data for the human body, the possibility of adjusting the indoor environmental parameters is obtained; the adjustment possibility is analyzed in time series to obtain the current control indicators for adjusting the indoor environmental parameters.

[0009] Furthermore, the data points in the data segment are analyzed to obtain the significance of fluctuations in the indoor and outdoor environment data; specifically, the analysis includes: analyzing the data points in the data segment to obtain the data density of each data point; and analyzing the relationship between the data densities of all data points to obtain the significance of fluctuations in the indoor and outdoor environment data.

[0010] Furthermore, the data points in the data segment are analyzed to obtain the data density of each data point, specifically including: taking a single data segment as a whole, selecting a data point corresponding to a moment in the data segment, constructing a neighborhood with the data point, and counting the number of all data points in the neighborhood; taking the intersection of the neighborhood length and the overall length of the single data segment as the denominator, and taking the number of all data points in the neighborhood as the numerator, to obtain the data density of the data point; traversing all data points in the data segment to obtain the data density of each data point.

[0011] Furthermore, the relationship between the data densities of all data points is analyzed to obtain the significance of fluctuations in the indoor and outdoor environment data, specifically including: obtaining the significance of fluctuations in the indoor and outdoor environment data according to the standard deviation of the data parameters of all data points in the data segment, the average data density of the data points at the center of the data size, and the average data density of the data points at the boundary of the data size.

[0012] Furthermore, the method for obtaining the average data density of the data points located at the center position of the data size includes: calculating the mean of the data parameters of all data points in the data segment, constructing a neighborhood with a radius of k with the mean as the center, and the mean of the data density of all data points in the neighborhood is the average data density of the data points located at the center position of the data size.

[0013] Furthermore, the method for obtaining the average data density of data points located at the boundary position of the data size includes: obtaining the boundary of the data parameters in the data segment, calculating the distance from the data parameters of all data points in the data segment to the boundary, taking the data with a distance less than the boundary threshold as the boundary data, and calculating the data density mean of all boundary data, which is the average data density of the data points located at the boundary position of the data size.

[0014] Furthermore, the significance of fluctuations of the indoor and outdoor environmental data includes the significance of fluctuations of the indoor environmental data and the significance of fluctuations of the outdoor environmental data; the significance of fluctuations of the indoor environmental data is obtained based on the analysis of the indoor environmental data, and the significance of fluctuations of the outdoor environmental data is obtained based on the analysis of the outdoor environmental data.

[0015] Furthermore, based on the significance of fluctuations of indoor and outdoor environmental data, the mean value of environmental parameter data in the data segment and the optimal environmental parameter data for the human body, the possibility of adjusting the indoor environmental parameters is obtained; specifically, the method includes: analyzing the absolute value of a first difference between the mean value of environmental parameter data in the data segment and the optimal environmental parameter data for the human body; analyzing the absolute value of a second difference between the significance of fluctuations of outdoor environmental data and the significance of fluctuations of indoor environmental data; and obtaining the possibility of adjusting the indoor environmental parameters based on the absolute value of the first difference, the absolute value of the second difference and the significance of fluctuations of the indoor environmental data.

[0016] Furthermore, the adjustment possibility is analyzed in time series to obtain the current control index for regulating the indoor environmental parameters, specifically including: multiplying the mean of the order difference sequence of the adjustment possibilities of adjacent data segments in time series with the adjustment possibility of the most recent data segment in time series, taking the norm of the inverse of the product, and obtaining the current control index for regulating the indoor environmental parameters.

[0017] The present invention has the following beneficial effects:

[0018] Compared with the prior art that uses a certain parameter value of environmental data as the trigger control threshold of the device adjustment instruction, the present invention fully analyzes the fluctuation characteristics of the environmental data inside and outside the house, considers the impact of the fluctuation characteristics, and thus determines the current control index. After comparing the current control index with the adjustment threshold, the device adjustment instruction is generated, and the device adjustment instruction is transmitted to each device in the house through the Zigbee gateway, thereby realizing intelligent control. The present invention redefines the index for the device to be adjusted, transmits the relevant device adjustment instructions through the central control system, thereby improving the accuracy of the transmitted data and improving the indoor comfort control ability of the environment.

[0019] The present invention determines the adjustment possibility through the fluctuation characteristics of each section in the historical data, obtains the control index by combining the change trend characteristics of the adjustment possibility and the difference with the external environment, and uses the control index as the judgment standard for equipment adjustment to improve the accuracy of control of indoor smart devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 An Internet of Things data transmission method based on Zigbee is provided in one embodiment of the present invention;

[0022] Figure 2 Schematic diagram of environmental parameter data density in parameter space in one embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a ZigBee-based IoT data transmission method proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0024] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0025] The following is a detailed description of a ZigBee-based Internet of Things data transmission method provided by the present invention in conjunction with the accompanying drawings.

[0026] See also Figure 1 , which shows a flow chart of a zigbee-based IoT data transmission method provided by an embodiment of the present invention. The embodiment of the present invention no longer uses a certain parameter value of environmental data as the triggering control threshold of the device adjustment instruction, but fully analyzes the fluctuation characteristics of the environmental data inside and outside the house, considering the impact of the fluctuation characteristics, so as to determine the current control index. Then the current control index is compared with the adjustment threshold. When it is greater than or equal to the adjustment threshold, the device adjustment instruction is actually generated, and the device adjustment instruction is transmitted to each device in the house through the zigbee gateway, thereby realizing intelligent control. The embodiment of the present invention re-determines the index for the device to be adjusted, and transmits the relevant device adjustment instructions through the central control system, thereby improving the accuracy of the transmitted data and improving the indoor comfort control ability of the environment.

[0027] like Figure 1 As shown, a method for data transmission of the Internet of Things based on Zigbee, the method specifically includes:

[0028] The first step is to obtain the environmental data inside and outside the house in the Internet of Things, analyze the fluctuation characteristics of the environmental data, and obtain the current control indicators. The environmental data is composed of several scattered data points in time series. The environmental data is segmented in time series into several time series segments, each of which contains one or more data points. Of course, there may be no data points in a time series segment, and the time series segment is used as a data segment for subsequent analysis.

[0029] Analyze all data points in each data segment to obtain the data density of each data point. Consider a single data segment as a whole, select the data point corresponding to a certain moment in the data segment, construct a neighborhood with a radius of k based on the data point, and count the number of all data points in the k neighborhood; use the time of the intersection of the neighborhood time length and the overall time length of the single data segment as the denominator, and the number of all data points in the k neighborhood as the numerator to obtain the data density of the data point. In the same way, traverse all data points in the current data segment to obtain the data density of each data point in the data segment. Then traverse all data segments to obtain the data density of all data points in each data segment.

[0030] For each data segment, the relationship between the data densities of all data points is analyzed to obtain the significance of fluctuations in the indoor and outdoor environment data. The significance of fluctuations in the indoor and outdoor environment data is obtained based on the standard deviation of the data parameters of all data points in the data segment, the average data density of the data points at the center of the data size, and the average data density of the data points at the boundary of the data size.

[0031] Among them, the method for obtaining the average data density of the data points located at the center position of the data size includes: calculating the mean of the data parameters of all data points in the data segment, constructing a neighborhood with a radius of k with the mean as the center, and the mean of the data density of all data points in the neighborhood is the average data density of the data points located at the center position of the data size.

[0032] The method for obtaining the average data density of data points located at the boundary position of the data size includes: obtaining the boundary of the data parameter in the data segment, calculating the distance from the data parameter of all data points in the data segment to the boundary, taking the data with a distance less than the boundary threshold as the boundary data, and calculating the data density mean of all boundary data, that is, the average data density of the data points located at the boundary position of the data size. The boundary threshold here is generally constructed through the k field, that is, the data with a distance less than k is taken as the boundary data.

[0033] It is particularly noted that, in the embodiment of the present invention, the significance of fluctuations of indoor and outdoor environmental data includes the significance of fluctuations of indoor environmental data and the significance of fluctuations of outdoor environmental data; the significance of fluctuations of indoor environmental data is obtained based on the analysis of indoor environmental data, and the significance of fluctuations of outdoor environmental data is obtained based on the analysis of outdoor environmental data.

[0034] The second step is to obtain the possibility of adjusting the indoor environmental parameters according to the fluctuation significance of the indoor and outdoor environmental data, the mean value of the environmental parameter data in the data segment and the optimal environmental parameter data of the human body. The optimal environmental parameter of the human body mentioned here refers to the corresponding environmental parameter under the state of good physical comfort. Specifically, firstly, the absolute value of the first difference between the mean value of the environmental parameter data in the data segment and the optimal environmental parameter data of the human body is analyzed; then the absolute value of the second difference between the fluctuation significance of the outdoor environmental data and the fluctuation significance of the indoor environmental data is analyzed; finally, according to the absolute value of the first difference, the absolute value of the second difference and the fluctuation significance of the indoor environmental data, the possibility of adjusting the indoor environmental parameters is obtained.

[0035] The mean of the order difference sequence of the adjustment possibilities of adjacent data segments in time series is multiplied by the adjustment possibility of the most recent data segment in time series, and the reciprocal of the product is normed to obtain the current adjustment index for adjusting the indoor environmental parameters.

[0036] In the third step, if the current control index is greater than or equal to the control threshold, a device control instruction is generated according to the current control index, and the device control instruction is transmitted to each device in the house through the Zigbee gateway. The control threshold here is not a certain environmental parameter value, but is set according to the historical control index corresponding to the optimal environmental comfort during the indoor environment adjustment process.

[0037] In another possible embodiment of the present invention, compared with the prior art that uses fixed parameter values ​​as the basis for judgment, the embodiment of the present invention redefines the control index for adjusting the equipment, transmits useful equipment adjustment instructions through the central control system, thereby improving the accuracy of the transmitted data and the ability to control the comfort of the indoor environment. The possibility of adjustment is determined by the fluctuation characteristics of each segment in the historical data, and the control index is obtained by combining the change trend characteristics of the adjustment possibility and the difference with the external environment. The control index is used as a judgment standard for equipment adjustment to improve the accuracy of control of indoor smart devices. The transmission of smart device data is realized through the zigbee gateway, thereby realizing the control of smart home devices. By correcting the control conditions of smart home devices, the indoor environment can be made more comfortable.

[0038] The first step is to collect relevant environmental data through the environmental sensors of smart homes.

[0039] The smart home sensor collects the relevant environmental parameter data inside and outside the house, and transmits it to the smart control center through the ZigBee gateway, such as collecting temperature data through the temperature sensor. The collected historical environmental data is segmented in time series. In the embodiment of the present invention, it is divided into one segment every 3 minutes to complete the segmentation of environmental data and form multiple data segments.

[0040] The second step is to determine whether the indoor environment needs to be regulated.

[0041] The possibility of adjustment is determined by the fluctuation characteristics of each data segment in the historical data. The control index is obtained by combining the changing trend characteristics of the adjustment possibility and the difference with the external environment. The control index is used as the judgment standard for equipment adjustment.

[0042] First, determine the control index. Determine the possibility of adjustment through the fluctuation characteristics of each data segment in the historical data, and obtain the control index by combining the changes in the adjustment possibility. Because when the device adjusts the indoor environment comfort, the normal environmental parameter data does not remain unchanged in reality, but there is a normal flow and exchange between the indoor environment and the outdoor environment, and the outdoor environment is easily affected by external weather, such as humidity, wind speed, light and other factors, resulting in the outdoor environment not being stable, which in turn leads to the normal fluctuation characteristics of the environmental parameters monitored by the indoor smart home.

[0043] The fluctuation characteristics of the environmental parameter data monitored indoors are used to determine the normality of environmental fluctuations. Since the fluctuation characteristics of environmental parameters can reflect the comfort level of the indoor environment, the human body has a clear perception of parameters such as temperature in the environment. If environmental parameters such as temperature fluctuate significantly in a short period of time (represented by the above data segments), the human body needs to constantly adjust to adapt to the new environment, which in turn causes physiological discomfort.

[0044] Therefore, if the range of indoor environmental parameter data is divergent as a whole, the fluctuation characteristics of its environmental parameter data are more significant. However, this is easily disturbed by internal noise data, resulting in a larger fluctuation range of environmental parameter data due to the presence of noise. However, if the monitored noise data is not considered, the corresponding environmental parameter fluctuations are more concentrated, resulting in misjudgment of the significance of environmental parameter fluctuations. The noise data that produces the above-mentioned misjudgment interference should be at the boundary of the environmental parameter fluctuation range, which is significantly different from the concentrated distribution characteristics of the rest of the data, so the density characteristics of the environmental data are used to describe this difference.

[0045] The larger the fluctuation range of environmental data, the less obvious the correlation between the density of monitored data points and the location of data points. That is, if the data density at the data fluctuation boundary is not significantly different from the data density at the center point, it means that the fluctuation of the currently monitored environmental parameter data is more significant; and the smaller the average data density of the data as a whole, the worse the distribution concentration of the environmental parameter data is, and the more significant the corresponding data fluctuation is. Figure 2 Schematic diagram of environmental parameter data density in the parameter space shown.

[0046] Select the indoor environmental parameter data within 3 minutes (a data segment) as a whole, select a data point corresponding to one moment, build a neighborhood with a radius of k with this data point, calculate the number of data points in the neighborhood, and divide the number by the intersection of the length of the neighborhood and the length of the entire data within 3 minutes to represent the density of the environmental parameter data per unit length of the data point (referred to as data density). Select a data point, the formula for data density is as follows:

[0047]

[0048] n represents the number of data points in the neighborhood of the data point; N represents the size range of the neighborhood of the data point; D represents the size range of the overall data points within 3 minutes; ‖N∩D‖ represents the size of the intersection range; a represents the data density of the data point. Thus, the data density corresponding to each data point is obtained. In order to ensure that the denominator is not zero, a parameter adjustment coefficient is added to the denominator, ∈=0.01.

[0049] σ represents the standard deviation of the environmental parameters of the overall data points within 3 minutes, reflecting the fluctuation range of the data points; Ea j Indicates the average data density of the data points at the center of the data size, Ea i Represents the average data density of data points at the boundary of the data size; the difference between the two Ea j -Ea iIt reflects the relationship between data density and the location of data size. If the difference is small, it is irrelevant to the location of data size, so the data fluctuation is more significant. Ea represents the average data density of the overall data, reflecting the centrality of the distribution of environmental parameter data. The smaller the value, the smaller the centrality of data distribution, and the more significant the data fluctuation. b represents the significance of environmental data fluctuation. The larger the value, the more significant the data fluctuation characteristics.

[0050] Ea j The method of obtaining is as follows: calculate the mean of all environmental parameter data, build a neighborhood with a radius of k with the mean as the center, and the data density mean of all data points in the neighborhood is Ea j .

[0051] Ea i The method of obtaining is as follows: get the boundary of the environmental parameter, calculate the distance from all environmental parameter data to the boundary, regard the data with a distance less than k as the boundary data, and calculate the mean data density of all boundary data, which is Ea i .

[0052] If the fluctuation characteristics of the indoor environmental parameters are generally large, and the fluctuation characteristics of the indoor environmental parameters are highly similar to those of the outdoor environmental parameters, it means that the indoor smart home does not play a good role in adjusting the comfort level of the house environment. It is necessary to adjust the smart devices through Zigbee through the smart control center to achieve the adjustment of the indoor environmental comfort level. However, due to the current environment in the house, the indoor environmental comfort level may not need to be further adjusted. The difference between the indoor environmental parameters and the optimal environmental parameters for the human body is combined to determine whether the indoor environmental parameters need to be adjusted. The construction formula is as follows:

[0053]

[0054] b out Indicates the significance of fluctuation of outdoor environmental parameter data; b in Indicates the significance of fluctuation of indoor environmental parameter data within the last 3 minutes; v in Indicates the average value of the indoor environmental parameter data in the last 3 minutes; v inv Indicates the corresponding environmental parameters when the environmental parameters are in a good state of comfort, such as a temperature of 26 degrees Celsius; p indicates the possibility of adjusting the environmental parameters in the house through the control center. norm() is the norm function. In order to ensure that the denominator is not zero, the adjustment coefficient is added to the denominator, ∈=0.01. The difference in data fluctuations inside and outside the house |b out -b in|The closer it is, the greater the possibility of needing to adjust the indoor environmental comfort level; the difference between the indoor environmental parameters and the optimal environmental parameters for human environmental comfort |v in -v inv The larger the |, the greater the likelihood of adjustment.

[0055] However, the current indoor equipment may be in the process of adjusting the environmental comfort. Although the possibility of adjustment in the recent period of time is high, it is actually not necessary to issue a command to the equipment to adjust the indoor environmental comfort again. Therefore, it is necessary to consider the trend of indoor time series data changes to determine whether the indoor environmental comfort needs to be adjusted, so as to obtain the adjustment index for the current comfort adjustment.

[0056] If the indoor adjustment possibilities all show a downward trend, there is no need to transmit the control command; and if the indoor environmental parameters also show a downward trend in the recent period of time instead of remaining stable, there is no need to transmit the control command; on the contrary, if it remains stable, but the environmental parameters at this time are the optimal environmental parameters, there is no need to transmit the control command.

[0057] On the one hand, the adjustment indicators obtained in different time periods indoors show a downward trend, and the greater the difference with the outdoor environmental parameters, the more significant the downward trend. As the adjustment is gradually made towards the optimal environmental parameters, the significance of the decline in the adjustment indicators decreases. The more obvious this feature is in time series, the more it indicates that the current indoor environmental parameters are in the process of adjustment and no adjustment instructions need to be transmitted, and the corresponding control indicators are smaller.

[0058] On the other hand, if the environmental parameters remain stable during the current time period and there is no downward trend characteristic as mentioned above, it is considered that the equipment has stabilized the indoor environmental parameters at this time, and the closer the environmental parameters are to the optimal environmental parameters during the current time period, it means that although the environmental comfort adjustment work is performed in the relevant equipment, the indoor environment at this time still has a high comfort level, that is, the corresponding adjustment possibility p is smaller.

[0059] Calculate the adjustment possibility corresponding to each environmental parameter in the time series, make a difference between the adjustment possibilities of two adjacent sections, and get the first-order difference Δp, thereby getting the first-order difference sequence, and then make a difference on the first-order difference to get the second-order difference Δ 2 p, thus obtaining the second-order difference sequence, the construction formula is as follows:

[0060]

[0061] Δ 2 p represents the second-order difference corresponding to each section of the indoor environmental parameters, EΔ 2p represents the mean of the second-order difference sequence, reflecting that the downward trend of the indoor regulation index shows a characteristic of weakening in the regulation process. The larger the value, the more obvious the characteristic and the smaller the regulation index; p represents the regulation possibility corresponding to the most recent environmental parameter in the time series. The smaller the value, the more stable the environmental regulation is and the smaller the regulation index is. q represents the regulation index of the environmental parameter. norm() is the norm function. In order to ensure that the denominator is not zero, the adjustment coefficient is added to the denominator, ∈=0.01. At this point, the regulation index of the environmental parameter is determined.

[0062] Secondly, complete the regulation of the equipment. Use the regulation index as the criterion for judging whether the equipment needs to adjust the environmental parameters corresponding to the indoor environmental comfort level, avoid the interference caused by simply using the amplitude of environmental parameter changes as the regulation standard, calculate the regulation index q of the current time period (the last 3 minutes), and set the regulation threshold to 0.75. If the current regulation index is greater than or equal to 0.75, the control center needs to adjust the indoor environmental parameters; on the contrary, if it is less than 0.75, the current operating state of the equipment is maintained. The regulation threshold of 0.75 in the embodiment of the present invention is set according to the historical regulation index corresponding to the optimal environmental comfort level achieved during the indoor environmental adjustment process. In actual scenarios, different regulation thresholds are set according to different indoor environmental requirements.

[0063] At this point, the judgment on whether it is necessary to adjust the indoor environmental parameters of the device is completed.

[0064] The third step is to control the home through indicators and transmit data. The above-obtained control indicators are used as the sending switch of the device's adjustment instructions to complete the data transmission and control of home appliances. The obtained environmental parameter data is used to obtain the adjustment instructions, which are transmitted through the Zigbee gateway to each related device. The device completes the adjustment of the indoor environmental parameters according to the adjustment instructions, improves the accuracy of the transmitted data, and makes the indoor environmental comfort level give people a better experience.

[0065] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0066] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for transmitting data in the Internet of Things based on Zigbee, characterized in that: The method comprises: Obtaining the environmental data inside and outside the house in the Internet of Things, analyzing the fluctuation characteristics of the environmental data, and obtaining the current control index; If the current control index is greater than or equal to the control threshold, a device adjustment instruction is generated according to the current control index, and the device adjustment instruction is transmitted to each device in the house through the ZigBee gateway.

2. The method for transmitting data based on the Internet of Things (IoT) based on Zigbee according to claim 1, characterized in that: The fluctuation characteristics of the environmental data are analyzed to obtain the current control indicators, including: The environmental data includes a number of data points; Segmenting the environmental data in time sequence to form a plurality of data segments; Analyze the data points in the data segment to obtain the significance of fluctuations of indoor and outdoor environmental data; According to the fluctuation significance of indoor and outdoor environmental data, the mean value of environmental parameter data in the data segment and the optimal environmental parameter data of the human body, the possibility of adjusting the indoor environmental parameters is obtained; The adjustment possibilities are analyzed in time sequence to obtain current control indicators for controlling indoor environmental parameters.

3. The method for transmitting data based on the Internet of Things based on Zigbee according to claim 2, characterized in that: Analyze the data points in the data segment to obtain the significance of fluctuations in the indoor and outdoor environment data; specifically include: Analyze the data points in the data segment to obtain the data density of each data point; The relationship between the data density of all data points is analyzed to obtain the significance of fluctuations in indoor and outdoor environmental data.

4. The method for transmitting data based on the Internet of Things based on Zigbee according to claim 3, characterized in that: Analyzing the data points in the data segment to obtain the data density of each data point specifically includes: Taking a single data segment as a whole, selecting a data point corresponding to one moment in the data segment, constructing a neighborhood with the data point, and counting the number of all data points in the neighborhood; The intersection of the neighborhood length and the overall length of a single data segment is used as the denominator, and the number of all data points in the neighborhood is used as the numerator to obtain the data density of the data point; Traverse all data points in the data segment and obtain the data density of each data point.

5. The method for transmitting data based on the Internet of Things based on Zigbee according to claim 4, characterized in that: Analyze the relationship between the data density of all data points to obtain the significance of fluctuations in indoor and outdoor environmental data, including: The significance of fluctuation of the indoor and outdoor environment data is obtained according to the standard deviation of data parameters of all data points in the data segment, the average data density of data points at the center of the data size, and the average data density of data points at the boundary of the data size.

6. The method for transmitting data based on the Internet of Things based on Zigbee according to claim 5, characterized in that: The method for obtaining the average data density of the data point located at the center of the data size includes: Calculate the mean of the data parameters of all data points in the data segment, and construct a neighborhood with a radius of k with the mean as the center. The mean of the data density of all data points in the neighborhood is the average data density of the data points located at the center of the data size.

7. The method for transmitting data based on the Internet of Things based on Zigbee according to claim 5, characterized in that: The method for obtaining the average data density of the data points located at the boundary position of the data size includes: Get the boundary of the data parameter in the data segment, calculate the distance from the data parameter of all data points in the data segment to the boundary, take the data with a distance less than the boundary threshold as the boundary data, and calculate the data density mean of all boundary data, which is the average data density of the data points located at the boundary position of the data size.

8. The method for transmitting data based on the Internet of Things based on Zigbee according to claim 2, characterized in that: The fluctuation significance of the indoor and outdoor environmental data includes the fluctuation significance of the indoor environmental data and the fluctuation significance of the outdoor environmental data; the fluctuation significance of the indoor environmental data is obtained according to the analysis of the indoor environmental data, and the fluctuation significance of the outdoor environmental data is obtained according to the analysis of the outdoor environmental data.

9. The method for transmitting data based on the Internet of Things based on Zigbee according to claim 8, characterized in that: According to the significance of fluctuation of indoor and outdoor environmental data, the mean value of environmental parameter data in the data segment and the optimal environmental parameter data of the human body, the possibility of adjusting the indoor environmental parameters is obtained; specifically, it includes: Analyze the first absolute value of the difference between the mean value of the environmental parameter data in the data segment and the optimal environmental parameter data for the human body; Analyze the absolute value of the second difference between the significance of fluctuation of outdoor environmental data and the significance of fluctuation of indoor environmental data; The possibility of adjusting the indoor environmental parameter is obtained according to the first absolute value of the difference, the second absolute value of the difference and the significance of the fluctuation of the indoor environmental data.

10. The method for transmitting data in the Internet of Things based on Zigbee according to claim 2, characterized in that: The adjustment possibilities are analyzed in time sequence to obtain current control indicators for controlling indoor environmental parameters, including: The mean of the order difference sequence of the adjustment possibilities of adjacent data segments in time series is multiplied by the adjustment possibility of the most recent data segment in time series, and the reciprocal of the product is normed to obtain the current adjustment index for adjusting the indoor environmental parameters.

Citation Information

Patent Citations

  • Intelligent home management system

    CN113985747A

  • Cultural relic storage environment abnormity assessment method based on big data

    CN115600932A

  • Smart home adaptive control method and device based on Internet of Things technology

    CN116520718A

  • Donkey-hide gelatin cake storage environment monitoring method based on data analysis

    CN116659589A