Environment data transmission processing method, device and equipment

By classifying and judging abnormal data, Beidou communication is used to transmit abnormal data and the latest data, the data accumulation problem existing in the environmental data acquisition device during the data transmission process is solved, and the efficiency and timeliness of data transmission are achieved.

CN119997219AActive Publication Date: 2025-05-13SHENZHEN ANCHUAN IOT TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510449432.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-11
Publication Date
2025-05-13
Estimated Expiration
2045-04-11

AI Technical Summary

Technical Problem

The environmental data acquisition device has a problem of data accumulation during data transmission, mainly because the Beidou communication method has weak transmission capabilities.

Method used

By classifying the generated environmental data, the data fluctuation range of each category is determined, and whether abnormal data exists within each preset period is determined. If abnormal data exists, the abnormal data packet will be sent immediately; if there is no abnormal data, the latest environmental data packet will be sent over a long period of time, and the data fluctuation range will be updated according to the duration of the abnormal data.

Benefits of technology

It effectively reduces the amount of data that needs to be sent, avoids the problem of data accumulation, and ensures timely processing and transmission of abnormal data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119997219A_ABST
    Figure CN119997219A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to an environmental data transmission processing method, device and equipment. The method comprises the following steps: classifying generated environment data; respectively determining a data fluctuation range of each category; after each first preset period, whether abnormal data exist in each category or not is judged according to the data fluctuation range of each category, and if yes, the emergency level of each category A generating the abnormal data is determined; according to the emergency level of each category A and the data transmission condition of the data sending port, selecting environment data containing abnormal data from all categories to form a data packet, and sending the data packet; if not, cyclically selecting all types of latest environment data to form a data packet every time after a second preset period, and sending the data packet; and updating the fluctuation ranges of all types of data according to the duration of the abnormal data. According to the invention, the problem of data accumulation in the data transmission process of the environment data acquisition device is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device and equipment for processing environmental data transmission. Background Art

[0002] Beidou communication is one of the special features of the Beidou Navigation Satellite System (BDS), which allows users to send and receive short messages via Beidou satellites to achieve point-to-point or group communication.

[0003] At present, there are environmental monitoring systems that use Beidou communication to transmit data, such as hydrological environment monitoring systems. The environmental monitoring system operates in such a way that the environmental data acquisition device in the environmental monitoring system transmits the collected environmental data to the processing terminal in the environmental monitoring system through Beidou communication. The processing terminal processes the data and generates results to inform the user.

[0004] Since the Beidou communication method is adopted, the data transmission capability is weaker than the traditional network communication, so the data generated by the environmental data acquisition device is accumulated. There is a problem of data accumulation in the process of data transmission of the environmental data acquisition device. Summary of the invention

[0005] Based on this, it is necessary to provide an environmental data transmission processing method, device and equipment to address the above-mentioned problems.

[0006] The embodiment of the present invention is implemented as follows: a method for processing environmental data transmission, the method comprising: S101, classifying the generated environmental data to obtain several categories of environmental data; S102, determining the data fluctuation range of each category according to the preset value of each category of environmental data; S103, after each first preset period, determine whether each category has abnormal data according to the data fluctuation range of each category, and if so, for each category A that generates abnormal data, determine the deviation amount and growth rate of the abnormal data of category A, and determine the emergency level of category A according to the deviation amount and growth rate of the abnormal data of category A; S104, selecting environmental data including abnormal data from all categories according to the emergency level of each category A and the data transmission status of the data transmission port to form a data packet and sending the data packet; S105, if there is no abnormal data in each category, then after each second preset period, the latest environmental data of all categories are cyclically selected to form a data packet and the data packet is sent; S106, updating the data fluctuation range of all categories according to the duration of the abnormal data.

[0007] In one embodiment, the present invention provides an environment data transmission processing device, the environment data transmission processing device comprising: A data classification module, used to classify the generated environmental data to obtain several categories of environmental data; A range determination module is used to determine the data fluctuation range of each category according to the preset value of each category of environmental data; A determination quantification module is used to determine whether each category has abnormal data according to the data fluctuation range of each category after each first preset period, and if so, for each category A that generates abnormal data, determine the deviation amount and growth rate of the abnormal data of category A, and determine the emergency level of category A according to the deviation amount and growth rate of the abnormal data of category A; A first sending module, used for selecting environmental data including abnormal data in all categories to form a data packet and sending the data packet according to the emergency level of each category A and the data transmission status of the data transmission port; A second sending module, for selecting the latest environmental data of all categories to form a data packet and sending the data packet every second preset period if there is no abnormal data in each category; The update range module is used to update the data fluctuation range of all categories according to the duration of abnormal data.

[0008] In one embodiment, the present invention provides an environmental data transmission processing device, the environmental data transmission processing device comprising: a housing, and a sensor module and a control module disposed in the housing; The sensor module is connected to the control module and is used to detect the environment to generate environmental data; The control module is used to execute the steps of the above-mentioned environmental data transmission processing method.

[0009] An environmental data transmission processing method provided by an embodiment of the present invention obtains several categories of environmental data by classifying the generated environmental data; determines the data fluctuation range of each category according to the preset value of the environmental data of each category; after each first preset cycle, judges whether each category has abnormal data according to the data fluctuation range of each category, and if so, for each category A that generates abnormal data, determines the deviation and growth rate of the abnormal data of category A, and determines the emergency level of category A according to the deviation and growth rate of the abnormal data of category A; selects environmental data containing abnormal data from all categories to form a data packet according to the emergency level of each category A and the data transmission status of the data sending port; if there is no abnormal data in each category, selects the latest environmental data of all categories to form a data packet after each second preset cycle; sends the data packet; and updates the data fluctuation range of all categories according to the duration of the existence of the abnormal data. In this way, the generated environmental data is judged. If abnormal data is generated, the abnormal data is sent after each first preset period according to the emergency level of the category of the abnormal data and the data transmission status of the data sending port. If no abnormal data is generated, the latest environmental data is sent once every second preset period, which greatly reduces the amount of data that needs to be sent and solves the problem of data accumulation in the environmental data acquisition device during data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A flowchart of an environmental data transmission processing method in one embodiment; Figure 2 A logic diagram of an environmental data transmission processing method in one embodiment; Figure 3 It is a structural block diagram of an environment data transmission processing device in one embodiment; Figure 4 FIG. 4 is a block diagram of the internal structure of a control module in an embodiment. DETAILED DESCRIPTION

[0011] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0012] It is understood that the terms "first", "second", etc. used in the present invention may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script without departing from the scope of the present invention.

[0013] like Figure 1 , Figure 2 As shown, in one embodiment, a method for processing environmental data transmission is proposed, which may specifically include the following steps: S101, classifying the generated environmental data to obtain several categories of environmental data; S102, determining the data fluctuation range of each category according to the preset value of each category of environmental data; S103, after each first preset period, determine whether each category has abnormal data according to the data fluctuation range of each category, and if so, for each category A that generates abnormal data, determine the deviation amount and growth rate of the abnormal data of category A, and determine the emergency level of category A according to the deviation amount and growth rate of the abnormal data of category A; S104, selecting environmental data including abnormal data from all categories according to the emergency level of each category A and the data transmission status of the data transmission port to form a data packet and sending the data packet; S105, if there is no abnormal data in each category, then after each second preset period, the latest environmental data of all categories are cyclically selected to form a data packet and the data packet is sent; S106, updating the data fluctuation range of all categories according to the duration of the abnormal data.

[0014] In this embodiment, the present invention is applied to a control module of an environmental data transmission and processing device.

[0015] In this embodiment, the environmental data is generated by a sensor. There are many types of sensors, such as water level sensors, temperature sensors, humidity sensors, pressure sensors, etc. Therefore, the generated environmental data has different types. The generated environmental data can be classified into several categories according to the type of sensor that generates the environmental data. The generation of environmental data is related to the detection frequency of the sensor. Generally speaking, the detection frequency is less than 1s.

[0016] In this embodiment, the preset value of each category of environmental data can be determined by the historical environmental data of the location where the environmental data transmission and processing device is installed. For example, if the device is installed on the bank of a river, the preset value of the environmental data of the water level category can be determined based on the historical water level conditions of the river. Of course, different preset values ​​can also be obtained according to different seasons, and the choice of preset values ​​can change according to seasonal changes.

[0017] In this embodiment, the first preset period is a period for determining whether abnormal data is generated, so the period cannot be too long. The first preset period can be set to any value between 5 and 10 seconds.

[0018] In this embodiment, whether there is abnormal data in each category is determined only for the environmental data within the latest first preset period. The first preset period before this has been judged. If abnormal data exists, it has formed a data packet. If no abnormal data exists, there is no need to repeat the judgment.

[0019] In this embodiment, the data transmission port refers to the data transmission port of the environmental data transmission processing device. If the environmental data transmission processing device adopts the Beidou communication method, then this data transmission port is a wireless port.

[0020] In this embodiment, the data transmission status of the data transmission port includes the current data transmission rate of the data transmission port and the data volume of the data packet to be uploaded at the data transmission port.

[0021] In this embodiment, in S104, the environmental data including abnormal data is composed into a data packet and the data packet is sent. The environmental data including normal data may not be sent, which is determined according to the emergency level of each category A and the data transmission status of the data transmission port.

[0022] In this embodiment, the second preset period is a period for sending normal environmental data when no abnormal data is generated continuously, and can be set to be relatively long, and the second preset period can be 30 minutes or even longer. If abnormal data appears in a second preset period, the step of selecting the latest environmental data of all categories to form a data packet and sending the data packet after each second preset period will not be performed until it is re-determined that there is no abnormal data in each category.

[0023] In this embodiment, S103 - S106 are executed once every first preset period.

[0024] In this embodiment, for example, the ambient temperature has a data fluctuation range of 19-20°C. If it suddenly drops to 15°C, 15°C is abnormal data, and abnormal data with a value of 15°C needs to be sent. If 15°C continues for a period of time and remains constant, the data fluctuation range needs to be updated. If the temperature rises to 19°C after the data fluctuation range is updated, 19°C becomes abnormal data.

[0025] An environmental data transmission processing method provided by an embodiment of the present invention obtains several categories of environmental data by classifying the generated environmental data; determines the data fluctuation range of each category according to the preset value of the environmental data of each category; after each first preset cycle, judges whether each category has abnormal data according to the data fluctuation range of each category, and if so, for each category A that generates abnormal data, determines the deviation and growth rate of the abnormal data of category A, and determines the emergency level of category A according to the deviation and growth rate of the abnormal data of category A; selects environmental data containing abnormal data from all categories to form a data packet according to the emergency level of each category A and the data transmission status of the data sending port; if there is no abnormal data in each category, selects the latest environmental data of all categories to form a data packet after each second preset cycle; sends the data packet; and updates the data fluctuation range of all categories according to the duration of the existence of the abnormal data. In this way, the generated environmental data is judged. If abnormal data is generated, the abnormal data is sent after each first preset period according to the emergency level of the category of the abnormal data and the data transmission status of the data sending port. If no abnormal data is generated, the latest environmental data is sent once every second preset period, which greatly reduces the amount of data that needs to be sent and solves the problem of data accumulation in the environmental data acquisition device during data transmission.

[0026] In one embodiment, determining the data fluctuation range of each category according to the preset value of each category of environmental data includes: For each category, obtain all environmental data B of the category within a first preset period; For each environmental data B, determine whether the difference between the environmental data B and the preset value of the environmental data of the category is within a preset range, and if so, determine the environmental data B as normal data; Depend on Get the average value y of the data in this category; Depend on Get the data deviation value s of this category; Depend on Determine the upper limit of the data fluctuation range for this category; Depend on Determine the lower limit of the data fluctuation range for this category; Among them, n is the number of normal data of this category, i is the sequence number of normal data of this category, and x i is the value of the i-th normal data of this category.

[0027] In this embodiment, for the first first preset period, there is no data fluctuation range for each category, so the abnormal data of the first first preset period is directly obtained from the environmental data in the first first preset period. The difference between the environmental data B and the preset value of the environmental data of this category may be a positive value or a negative value, so the preset range can be set to within plus or minus 20% of the preset value.

[0028] In one embodiment, judging whether there is abnormal data in each category according to the data fluctuation range of each category includes: For each category, obtain the environmental data C of the category in the most recently passed first preset period; For each environmental data C, determine whether the environmental data C is within the data fluctuation range of the category. If not, record the environmental data C as data to be determined; It is determined whether the amount of the data to be determined is greater than a first preset amount. If so, it is determined that abnormal data exists in the category and the data to be determined is recorded as abnormal data.

[0029] In this embodiment, the most recently passed first preset period is counted from the second first preset period.

[0030] In this embodiment, the first preset number is set to reduce the chance of accidents, and can be set to any integer between 2 and 5. It is not 1 in order to determine that the generation of abnormal data is continuous. The setting of the first preset number is related to the first preset period. The first preset number is less than the number of environmental data of a certain category obtained in the first preset period. Of course, if the last environmental data in the first preset period is abnormal data, it can be excluded, but continuous abnormal data will be detected in the next first preset period, so it does not matter even if one abnormal data is discarded.

[0031] In one embodiment, determining the deviation amount and growth rate of abnormal data of category A includes: Obtain abnormal data of category A within the latest first preset period; For each abnormal data of category A in the latest first preset period, The deviation of the abnormal data is obtained by Get the growth rate of the abnormal data; The largest deviation is selected from all the deviations and recorded as the deviation of abnormal data of category A in the latest first preset period; The largest growth rate is selected from all growth rates and recorded as the growth rate of abnormal data of category A in the latest first preset period; Where j is the sequence number of abnormal data of category A in the latest first preset period, b jis the value of the jth abnormal data of category A in the latest first preset cycle, a max is the upper limit of the data fluctuation range of category A, a min It is the lower limit of the data fluctuation range of category A.

[0032] In this embodiment, the average value of the deviation amount may be selected as the deviation amount of abnormal data of category A in the latest first preset period, or the average value of the growth rate may be selected as the growth rate of abnormal data of category A in the latest first preset period.

[0033] In this embodiment, the deviation amount and the growth rate are two different indicators and are not related.

[0034] In this embodiment, since j starts from 1 and the growth rate is the ratio of the increment to the base period, there is a b 0 , here b 0 It is the value of the last abnormal data in the previous first preset cycle.

[0035] In one embodiment, determining the emergency level of category A according to the deviation amount and growth rate of abnormal data of category A includes: Determine whether the growth rate of abnormal data of category A is greater than a first preset growth rate. If so, set the first weight of category A to 3. If not, determine whether the growth rate of abnormal data of category A is greater than a second preset growth rate. If the growth rate of abnormal data of category A is greater than the second preset growth rate, the first weight of category A is set to 2; If the growth rate of abnormal data of category A is less than or equal to the second preset growth rate, the first weight of category A is set to 1; Determine whether the deviation of abnormal data of category A is greater than a first preset deviation. If so, set the second weight of category A to 3. If not, determine whether the deviation of abnormal data of category A is greater than a second preset deviation. If the deviation of the abnormal data of category A is greater than the second preset deviation, the second weight of category A is set to 2; If the deviation of abnormal data of category A is less than or equal to the second preset deviation, the second weight of category A is set to 1; Depend on Get an emergency level of Category A; Among them, q 1 is the first weight, q 2 is the second weight.

[0036] In this embodiment, the first preset growth rate and the second preset growth rate divide the growth rate into three levels, so the first weight is set to 1, 2, and 3. The larger the first weight is, the higher the emergency level is. Similarly, the first preset deviation and the second preset deviation divide the deviation into three levels, so the second weight is set to 1, 2, and 3. The larger the second weight is, the higher the emergency level is. Therefore, the emergency level of category A is the product of the first weight and the second weight. Even if one of the values ​​has the lowest emergency level, as long as the other value has a high emergency level, the final product result is high. It is set to 1, 2, and 3 here to correspond to the first, second, and third levels. Of course, it can also be set to other parameters, and the values ​​of each level of the first weight and the second weight must be consistent.

[0037] In this embodiment, the first preset growth rate is greater than the second preset growth rate, the second preset growth rate can be set to 20%, and the first preset growth rate can be set to 40%. The first preset deviation is greater than the second preset deviation, and the first preset deviation can be set to , the second preset deviation can be set to .

[0038] In one embodiment, the step of selecting environmental data including abnormal data from all categories to form a data packet and sending the data packet according to the emergency level of each category A and the data transmission status of the data transmission port includes: Obtain the current data transmission rate of the data transmission port and the data volume of the data packet to be uploaded; Determine whether the data volume of the data packet to be uploaded is less than the preset data volume, if not, determine the current communication quality as level 2, if so, determine whether the current data transmission rate of the data transmission port is greater than the preset transmission rate; If the current data transmission rate of the data transmission port is greater than the preset transmission rate, the current communication quality is determined to be level one; If the current data transmission rate of the data transmission port is less than or equal to the preset transmission rate, the current communication quality is determined to be level 2; Determine whether there is a category A whose emergency level is greater than or equal to the preset emergency level. If so, set the data urgency level to level one; if not, set the data urgency level to level two; According to the current communication quality and data urgency, environmental data including abnormal data is selected from all categories to form a data packet and send the data packet.

[0039] In this embodiment, the preset data volume is related to the preset transmission rate. For example, if the preset transmission rate is 5M / s, the preset data volume can be set to 5M. The preset transmission rate can be set to the rated transmission rate. The rated transmission rate is not the maximum transmission rate. The current data transmission rate of the sending port can be greater than the preset transmission rate. The communication quality of level one represents that the transmission capacity of the channel is sufficient, and level two represents that the transmission capacity of the channel is limited. Only when the data volume of the data packet to be uploaded is less than the preset data volume and the current data transmission rate of the sending port is greater than the preset transmission rate, can the data transmission capacity be guaranteed to be greater than the data generation speed of the last data packet to be uploaded, which indicates that the transmission capacity of the channel is still sufficient.

[0040] In this embodiment, if the levels of the first weight and the second weight are 1, 2, and 3, then the emergency level may be 1, 2, 3, 4, 6, and 9, and the preset emergency level may be 3, that is, the preset emergency level is the value corresponding to the highest level of the first weight or the second weight. In this way, when one of the first weight or the second weight is the highest level, the emergency level must be greater than or equal to the preset emergency level, and the data urgency must be level 1. A data urgency level of level 1 means that the data needs to be uploaded urgently, and a data urgency level of level 2 means that the data can be uploaded slowly.

[0041] In one embodiment, the step of selecting environmental data including abnormal data from all categories according to the current communication quality and data urgency to form a data packet and sending the data packet includes: For each category D that does not generate abnormal data, Get the number M of environmental data of category D that needs to be uploaded and select M environmental data in category D; If the current communication quality is level 1 and the data urgency is level 1, each abnormal data of category A is separately formed into a data packet corresponding to category A and the data packets corresponding to category A are sent in order from large to small according to the urgency level of each category A, and the M environmental data selected from each category D are separately formed into a data packet corresponding to category D and the data packets corresponding to category D are sent in order after the data packets corresponding to category A are sent; If the current communication quality is level 2 and the data urgency is level 1, each abnormal data of category A is separately grouped into a data packet corresponding to category A and the data packets corresponding to category A are sent in order from the highest to the lowest urgency level of each category A; If the current communication quality is level 1 and the data urgency is level 2, all abnormal data of category A are combined into a data packet corresponding to all categories A and sent, and all M environmental data selected from category D are combined into a data packet and sent after all data packets corresponding to category A are sent; If the current communication quality is level 1 and the data urgency is level 2, all abnormal data of category A are combined into one data packet and sent; Wherein, k is a preset coefficient, and m is the number of abnormal data of category A with the highest emergency level.

[0042] In this embodiment, the value, quantity and data volume of the environmental data are three different concepts, and the same is true for abnormal data. For example, the value of the environmental data is 5; the quantity is 3, that is, 3 5s; the data volume is the number of bytes required to transmit the value 5.

[0043] In this embodiment, k can be set to 0.5. If M is not an integer, the integer closest to M should be selected to replace M.

[0044] In this embodiment, if the data urgency is level one, each abnormal data of category A is separately composed of a data packet corresponding to category A, and these data packets are all small data packets, so that the data receiving terminal can quickly and frequently receive the abnormal data and receive the abnormal data in time. If the data urgency is level two, then all abnormal data of category A are composed of a data packet corresponding to all categories A and sent. At this time, there is only one data packet, and it is a large data packet. The transmission time is longer, but the transmission frequency is only once. If the communication quality is level one, the data packet corresponding to category D is also sent. If the communication quality is level two, the data packet of category D is not sent.

[0045] In this embodiment, the M environmental data selected in category D are generally selected from the environmental data generated at a time after the time when the abnormal data is generated. They can be selected arbitrarily or evenly according to a certain interval.

[0046] In this embodiment, if there are some categories A with the same emergency level, the categories A with the same emergency level are sorted according to the first letter or sensor order. The data packets corresponding to the category D can be sent in sequence according to the first letter or sensor order.

[0047] In this embodiment, the data packet is sent from the data sending port of the environmental data transmission and processing device to the data receiving terminal through Beidou communication. The data receiving terminal may be a monitoring system such as a hydrological monitoring platform.

[0048] In one embodiment, updating the data fluctuation ranges of all categories according to the duration of the abnormal data includes: Determine whether an update signal is received, and if so, update the data fluctuation ranges of all categories according to the latest environmental data in the first preset range; If no update signal is received, determine whether the number of first preset cycles of continuous abnormal data is greater than a second preset number. If so, update the data fluctuation ranges of all categories according to the latest environmental data within the first preset range; if not, do not update.

[0049] In this embodiment, the update signal is sent by the data receiving terminal. When the user confirms the abnormal data, the update signal can be sent, which means that the user feels that the continuous abnormal data now represents normal data, and the original data fluctuation range needs to be updated. For example, due to the abnormal data caused by the rising water level due to rain, after the user confirms the abnormal data, it is judged that the value of the abnormal data does not fluctuate much after the water level rises. At this time, the user feels that the new water level measurement value is the normal data, and the data receiving terminal can be controlled to send an update signal, so that the environmental data of the water level category is updated. After the update, the original abnormal data becomes normal data, and the original abnormal data will not be sent at this time. Wait until the water level drops, and the environmental data caused by the water level drop will be identified as abnormal data and sent to the data receiving terminal.

[0050] In this embodiment, the second preset number is related to the setting of the first preset period. For example, if the first preset period is 5s, and the abnormal data lasts for 2 hours, then the original data fluctuation range may need to be updated, and the second preset number is set to 1440. For example, if the environmental data is temperature, and the temperature rises and then tends to be stable, then the original data fluctuation range needs to be updated. At this time, the update needs to synchronously update the preset value of each category of environmental data that generates abnormal data. The average value of the abnormal data can be used as the new preset value, and the abnormal data with the most occurrences can be used as the new preset value.

[0051] like Figure 3 As shown, in one embodiment, an environment data transmission processing device is provided, which may specifically include: A data classification module, used to classify the generated environmental data to obtain several categories of environmental data; A range determination module is used to determine the data fluctuation range of each category according to the preset value of each category of environmental data; A determination quantification module is used to determine whether each category has abnormal data according to the data fluctuation range of each category after each first preset period, and if so, for each category A that generates abnormal data, determine the deviation amount and growth rate of the abnormal data of category A, and determine the emergency level of category A according to the deviation amount and growth rate of the abnormal data of category A; A first sending module, used for selecting environmental data including abnormal data in all categories to form a data packet and sending the data packet according to the emergency level of each category A and the data transmission status of the data transmission port; A second sending module, for selecting the latest environmental data of all categories to form a data packet and sending the data packet every second preset period if there is no abnormal data in each category; The update range module is used to update the data fluctuation range of all categories according to the duration of abnormal data.

[0052] In this embodiment, the various modules of the environmental data transmission processing device are modularized in the method part of the present invention. For the specific explanation of each module, please refer to the corresponding content of the method part of the present invention, and the embodiment of the present invention will not be repeated here.

[0053] In one embodiment, an environment data transmission processing device is provided, which may specifically include: A housing and a sensor module and a control module disposed in the housing; The sensor module is connected to the control module and is used to detect the environment to generate environmental data; The control module is used to execute the steps of the above-mentioned environmental data transmission processing method.

[0054] In this embodiment, there are many types of sensor modules, such as a water level sensor, a temperature sensor, a humidity sensor, etc. Water level, temperature, humidity, etc. are all types of environmental data.

[0055] In this embodiment, the environmental data transmission processing equipment also includes a power module, a communication module, etc. The power module is used to provide power to the control module, the communication module and other modules, and the communication module is used to perform Beidou communication with the Beidou satellite to transmit data to the data receiving terminal.

[0056] An environmental data transmission processing device provided by an embodiment of the present invention obtains several categories of environmental data by classifying the generated environmental data; determines the data fluctuation range of each category according to the preset value of the environmental data of each category; after each first preset cycle, judges whether each category has abnormal data according to the data fluctuation range of each category, and if so, for each category A that generates abnormal data, determines the deviation and growth rate of the abnormal data of category A, and determines the emergency level of category A according to the deviation and growth rate of the abnormal data of category A; selects environmental data containing abnormal data from all categories to form a data packet according to the emergency level of each category A and the data transmission status of the data sending port; if there is no abnormal data in each category, selects the latest environmental data from all categories to form a data packet after each second preset cycle; sends the data packet; and updates the data fluctuation range of all categories according to the duration of the existence of the abnormal data. In this way, the generated environmental data is judged. If abnormal data is generated, the abnormal data is sent after each first preset period according to the emergency level of the category of the abnormal data and the data transmission status of the data sending port. If no abnormal data is generated, the latest environmental data is sent once every second preset period, which greatly reduces the amount of data that needs to be sent and solves the problem of data accumulation in the environmental data acquisition device during data transmission.

[0057] Figure 4 FIG. 2 shows an internal structure diagram of a control module in an embodiment. Figure 4 As shown, the control module includes a processor, a memory, and a network interface connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the control module stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement an environmental data transmission processing method provided by an embodiment of the present invention. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute an environmental data transmission processing method provided by an embodiment of the present invention.

[0058] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the control module to which the scheme of the present invention is applied. The specific control module may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0059] In one embodiment, an environment data transmission processing device provided by an embodiment of the present invention can be implemented in the form of a computer program. The computer program can be Figure 4The memory of the control module can store various program modules constituting the environment data transmission processing device, for example, Figure 3 The data classification module, the range determination module, the quantification determination module, the first sending module, the second sending module and the update range module shown in the figure. The computer program composed of each program module enables the processor to execute the steps of an environmental data transmission processing method of each embodiment of the present invention described in this specification.

[0060] For example, Figure 4 The control module shown can be Figure 3 The data classification module in the environmental data transmission processing device shown executes step S101; the control module can execute step S102 by determining the range module; the control module can execute step S103 by determining the quantification module; the control module can execute step S104 by the first sending module; the control module can execute step S105 by the second sending module; the control module can execute step S106 by updating the range module.

[0061] In one embodiment, a control module is provided, the control module comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: S101, classifying the generated environmental data to obtain several categories of environmental data; S102, determining the data fluctuation range of each category according to the preset value of each category of environmental data; S103, after each first preset period, determine whether each category has abnormal data according to the data fluctuation range of each category, and if so, for each category A that generates abnormal data, determine the deviation amount and growth rate of the abnormal data of category A, and determine the emergency level of category A according to the deviation amount and growth rate of the abnormal data of category A; S104, selecting environmental data including abnormal data from all categories according to the emergency level of each category A and the data transmission status of the data transmission port to form a data packet and sending the data packet; S105, if there is no abnormal data in each category, then after each second preset period, the latest environmental data of all categories are cyclically selected to form a data packet and the data packet is sent; S106, updating the data fluctuation range of all categories according to the duration of the abnormal data.

[0062] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps: S101, classifying the generated environmental data to obtain several categories of environmental data; S102, determining the data fluctuation range of each category according to the preset value of each category of environmental data; S103, after each first preset period, determine whether each category has abnormal data according to the data fluctuation range of each category, and if so, for each category A that generates abnormal data, determine the deviation amount and growth rate of the abnormal data of category A, and determine the emergency level of category A according to the deviation amount and growth rate of the abnormal data of category A; S104, selecting environmental data including abnormal data from all categories according to the emergency level of each category A and the data transmission status of the data transmission port to form a data packet and sending the data packet; S105, if there is no abnormal data in each category, then after each second preset period, the latest environmental data of all categories are cyclically selected to form a data packet and the data packet is sent; S106, updating the data fluctuation range of all categories according to the duration of the abnormal data.

[0063] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps. A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0064] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0065] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A method for processing environmental data transmission, characterized in that: The environmental data transmission processing method comprises: S101, classifying the generated environmental data to obtain several categories of environmental data; S102, determining the data fluctuation range of each category according to the preset value of each category of environmental data; S103, after each first preset period, determine whether each category has abnormal data according to the data fluctuation range of each category, and if so, for each category A that generates abnormal data, determine the deviation amount and growth rate of the abnormal data of category A, and determine the emergency level of category A according to the deviation amount and growth rate of the abnormal data of category A; S104, selecting environmental data including abnormal data from all categories according to the emergency level of each category A and the data transmission status of the data transmission port to form a data packet and sending the data packet; S105, if there is no abnormal data in each category, then after each second preset period, the latest environmental data of all categories are cyclically selected to form a data packet and the data packet is sent; S106, updating the data fluctuation range of all categories according to the duration of the abnormal data.

2. The environmental data transmission processing method according to claim 1, characterized in that: Determining the data fluctuation range of each category according to the preset value of each category of environmental data includes: For each category, obtain all environmental data B of the category within a first preset period; For each environmental data B, determine whether the difference between the environmental data B and the preset value of the environmental data of the category is within a preset range, and if so, determine the environmental data B as normal data; Depend on Get the average value y of the data in this category; Depend on Get the data deviation value s of this category; Depend on Determine the upper limit of the data fluctuation range for this category; Depend on Determine the lower limit of the data fluctuation range for this category; Among them, n is the number of normal data of this category, i is the sequence number of normal data of this category, and x i is the value of the i-th normal data of this category.

3. The environmental data transmission processing method according to claim 1, characterized in that: The step of judging whether each category has abnormal data according to the data fluctuation range of each category includes: For each category, obtain the environmental data C of the category in the most recently passed first preset period; For each environmental data C, determine whether the environmental data C is within the data fluctuation range of the category. If not, record the environmental data C as data to be determined; It is determined whether the amount of the data to be determined is greater than a first preset amount. If so, it is determined that abnormal data exists in the category and the data to be determined is recorded as abnormal data.

4. The environmental data transmission processing method according to claim 1, characterized in that: The step of determining the deviation amount and growth rate of abnormal data of category A includes: Obtain abnormal data of category A within the latest first preset period; For each abnormal data of category A in the latest first preset period, The deviation of the abnormal data is obtained by Get the growth rate of the abnormal data; The largest deviation is selected from all the deviations and recorded as the deviation of abnormal data of category A in the latest first preset period; The largest growth rate is selected from all growth rates and recorded as the growth rate of abnormal data of category A in the latest first preset period; Where j is the sequence number of abnormal data of category A in the latest first preset period, b j is the value of the jth abnormal data of category A in the latest first preset cycle, a max is the upper limit of the data fluctuation range of category A, a min It is the lower limit of the data fluctuation range of category A.

5. The environmental data transmission processing method according to claim 1, characterized in that: Determining the emergency level of category A according to the deviation amount and growth rate of abnormal data of category A includes: Determine whether the growth rate of abnormal data of category A is greater than a first preset growth rate. If so, set the first weight of category A to 3. If not, determine whether the growth rate of abnormal data of category A is greater than a second preset growth rate. If the growth rate of abnormal data of category A is greater than the second preset growth rate, the first weight of category A is set to 2; If the growth rate of abnormal data of category A is less than or equal to the second preset growth rate, the first weight of category A is set to 1; Determine whether the deviation of abnormal data of category A is greater than a first preset deviation. If so, set the second weight of category A to 3. If not, determine whether the deviation of abnormal data of category A is greater than a second preset deviation. If the deviation of the abnormal data of category A is greater than the second preset deviation, the second weight of category A is set to 2; If the deviation of abnormal data of category A is less than or equal to the second preset deviation, the second weight of category A is set to 1; Depend on Get an emergency level of Category A; Among them, q1 is the first weight and q2 is the second weight.

6. The environmental data transmission processing method according to claim 1, characterized in that: The step of selecting environmental data including abnormal data in all categories to form a data packet and sending the data packet according to the emergency level of each category A and the data transmission status of the data transmission port includes: Obtain the current data transmission rate of the data transmission port and the data volume of the data packet to be uploaded; Determine whether the data volume of the data packet to be uploaded is less than the preset data volume, if not, determine the current communication quality as level 2, if so, determine whether the current data transmission rate of the data transmission port is greater than the preset transmission rate; If the current data transmission rate of the data transmission port is greater than the preset transmission rate, the current communication quality is determined to be level one; If the current data transmission rate of the data transmission port is less than or equal to the preset transmission rate, the current communication quality is determined to be level 2; Determine whether there is a category A whose emergency level is greater than or equal to the preset emergency level. If so, set the data urgency level to level one; if not, set the data urgency level to level two; According to the current communication quality and data urgency, environmental data including abnormal data is selected from all categories to form a data packet and send the data packet.

7. The environmental data transmission processing method according to claim 6, characterized in that: The method of selecting environmental data including abnormal data in all categories according to the current communication quality and data urgency to form a data packet and sending the data packet includes: For each category D that does not generate abnormal data, Get the number M of environmental data of category D that needs to be uploaded and select M environmental data in category D; If the current communication quality is level 1 and the data urgency is level 1, each abnormal data of category A is separately formed into a data packet corresponding to category A and the data packets corresponding to category A are sent in order from large to small according to the urgency level of each category A, and the M environmental data selected from each category D are separately formed into a data packet corresponding to category D and the data packets corresponding to category D are sent in order after the data packets corresponding to category A are sent; If the current communication quality is level 2 and the data urgency is level 1, each abnormal data of category A is separately grouped into a data packet corresponding to category A and the data packets corresponding to category A are sent in order from the highest to the lowest urgency level of each category A; If the current communication quality is level 1 and the data urgency is level 2, all abnormal data of category A are combined into a data packet corresponding to all categories A and sent, and all M environmental data selected from category D are combined into a data packet and sent after all data packets corresponding to category A are sent; If the current communication quality is level 1 and the data urgency is level 2, all abnormal data of category A are combined into one data packet and sent; Wherein, k is a preset coefficient, and m is the number of abnormal data of category A with the highest emergency level.

8. The environmental data transmission processing method according to claim 1, characterized in that: The updating of the data fluctuation range of all categories according to the duration of the abnormal data includes: Determine whether an update signal is received, and if so, update the data fluctuation ranges of all categories according to the latest environmental data in the first preset range; If no update signal is received, determine whether the number of first preset cycles of continuous abnormal data is greater than a second preset number. If so, update the data fluctuation ranges of all categories according to the latest environmental data within the first preset range; if not, do not update.

9. An environmental data transmission and processing device, characterized in that: The environmental data transmission processing device comprises: A data classification module, used to classify the generated environmental data to obtain several categories of environmental data; A range determination module is used to determine the data fluctuation range of each category according to the preset value of each category of environmental data; A determination quantification module is used to determine whether each category has abnormal data according to the data fluctuation range of each category after each first preset period, and if so, for each category A that generates abnormal data, determine the deviation amount and growth rate of the abnormal data of category A, and determine the emergency level of category A according to the deviation amount and growth rate of the abnormal data of category A; A first sending module, used for selecting environmental data including abnormal data in all categories to form a data packet and sending the data packet according to the emergency level of each category A and the data transmission status of the data transmission port; A second sending module, for selecting the latest environmental data of all categories to form a data packet and sending the data packet every second preset period if there is no abnormal data in each category; The update range module is used to update the data fluctuation range of all categories according to the duration of abnormal data.

10. An environmental data transmission and processing device, characterized in that: The environmental data transmission processing device comprises: a housing, a sensor module and a control module arranged in the housing; The sensor module is connected to the control module and is used to detect the environment to generate environmental data; The control module is used to execute the steps of the environmental data transmission processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Device recommendation system and method

    CN109839889A

  • ZigBee-based indoor environment data optimization monitoring and acquisition method

    CN116916464A

  • Wireless sensor network communication method based on reverse link scheduling communication protocol

    CN119383633A

  • Data transmission method and device and storage medium

    WO2023103160A1

  • Information transmission control method and apparatus, and communication device and storage medium

    WO2024092678A1