A management method and system of monitoring data, a storage medium and an electronic device

By using a data bridge, the monitoring data and environmental data of the electronic balance are wirelessly transmitted to the operating terminal or the cloud, which solves the problems of inconsistent data interfaces and the influence of environmental factors, realizes real-time data synchronization and environmental monitoring, and improves the convenience and flexibility of data management.

CN120568285BActive Publication Date: 2025-11-04释普信息科技(上海)有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511030335.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-25
Publication Date
2025-11-04
Estimated Expiration
2045-07-25

AI Technical Summary

Technical Problem

The data output interfaces of existing electronic balances are not standardized, making it difficult to achieve large-scale, standardized data integration. Environmental factors affect measurement accuracy, data transmission has poor mobility, and it is impossible to integrate the monitoring and recording of temperature and humidity in the balance's working environment.

Method used

A data bridge is used to acquire monitoring data and environmental data. The data is then transmitted to the operator or cloud via wireless communication and temporarily stored offline to enable automatic data retransmission. The alarm signal is generated by combining environmental data with preset thresholds.

Benefits of technology

It enables convenient wireless mobile operation, ensures real-time data synchronization to the cloud, avoids data loss due to connection interruption, supports balances of different brands and models, integrates monitoring and recording of environmental data, and improves the convenience and flexibility of data management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120568285B_ABST
    Figure CN120568285B_ABST
Patent Text Reader

Abstract

The application discloses a kind of management method of monitoring data, management system, storage medium and electronic equipment, belong to data management field, comprising: obtaining first data packet, second data packet and third data packet;The third data packet is sent to operating end;Monitoring whether connection is established with cloud, if not, first data packet and second data packet are offline temporarily stored;If yes, first data packet and second data packet are sent to cloud;Detect whether there is offline temporarily stored first data packet and second data packet;If yes, read offline temporarily stored first data packet and second data packet, and send to cloud according to time sequence;By data transmission to operating end or cloud, the convenient wireless mobile operation of realization, monitoring data and environmental data are handled and can be directly synchronized to cloud, it is convenient to carry out data management, cloud offline condition also can carry out data temporary storage and network recovery and automatically supplement transmission, avoid data loss when connection interruption.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of data transmission management, and in particular to a monitoring data management method, a management system, a storage medium and an electronic device. BACKGROUND

[0002] In laboratory, industrial production and other environments, electronic balance is a commonly used precision measuring equipment. Many electronic balances can provide accurate weighing data, but their data output interfaces are usually wired interfaces, and the output data format and protocol may vary depending on the manufacturer and model. The measurement accuracy of existing electronic balances, especially high-precision balances, is easily affected by environmental factors. Environmental conditions beyond the appropriate working range may cause measurement deviation or even error.

[0003] When collecting data, existing electronic balances transmit monitoring data by directly connecting to a computer, through a converter or a Bluetooth adapter. The direct connection scheme between the interface and the computer has poor mobility and is not flexible to deploy. A computer needs to be configured beside each balance, occupying space. Different brands or models of balances may still require different drivers or software modules, and the data format may not be unified. It is difficult to achieve large-scale, standardized data integration. Data is usually stored on the local computer hard disk, which is not easy to share and centrally manage, forming a data island, and the working environment temperature and humidity of the balance cannot be integrated monitored and recorded. Through the data converter, data can be read from the serial port of the balance, and then transmitted to the central operation terminal or designated computer through the wired network. Although data can be collected to the network, most data converters only perform data transmission or simple format conversion, lack of deep analysis and unified standardization capability for different balance complex protocols, and cannot integrate monitor and record the working environment temperature and humidity of the balance. Through the Bluetooth adapter, although the serial port data stream can be converted into Bluetooth signals to interact with the balance data in real time through a portable device (such as a mobile phone or tablet), it cannot solve the problem of different protocols for different balances. The receiving end still needs to develop analysis logic for each balance, and network interruption or Bluetooth connection problems may cause data loss. SUMMARY

[0004] The purpose of the present application is to solve the problems existing in the prior art and provide a monitoring data management method, a management system, a storage medium and an electronic device.

[0005] In order to achieve the above purpose, the present application adopts the following technical scheme: a monitoring data management method acting on a data bridge, comprising:

[0006] acquire a first data packet, a second data packet and a third data packet, wherein the first data packet is obtained by identifying valid monitoring data, the second data packet is obtained by processing environmental data meeting a preset threshold, and the third data packet is obtained by integrating the valid monitoring data and an environmental flag;

[0007] send the third data packet to an operation terminal;

[0008] monitor whether a connection with a cloud is established, if not, offline store the first data packet and the second data packet, and if yes, send the first data packet and the second data packet to the cloud;

[0009] detect whether there is the first data packet and the second data packet offline stored, if not, end, and if yes, read the first data packet and the second data packet offline stored, send them to the cloud in time sequence, and delete the first data packet and the second data packet offline stored.

[0010] As a further description of the above technical solution, the acquiring of the first data packet comprises:

[0011] acquire monitoring data monitored in real time, and identify valid monitoring data from the monitoring data;

[0012] convert the valid monitoring data into a format;

[0013] add device information to generate the first data packet, wherein the device information comprises timestamp information, a device identifier and a balance identifier.

[0014] As a further description of the above technical solution, the acquiring of the second data packet comprises:

[0015] according to a preset time interval, collect environmental data, wherein the environmental data comprises timestamp information, temperature information and humidity information;

[0016] determine whether the environmental data meets the preset threshold, if not, the environmental data is unqualified, and an alarm signal is generated, and if yes, the environmental data is qualified, and the device information is added to generate the second data packet.

[0017] Further, the application also provides a monitoring data management method, which is applied to a data bridge and comprises:

[0018] acquire a first data packet, a second data packet and a third data packet, wherein the first data packet is obtained by identifying valid monitoring data, the second data packet is obtained by processing environmental data meeting a preset threshold, and the third data packet is obtained by integrating the valid monitoring data and an environmental flag;

[0019] establishing a connection with the operation terminal, and sending the first data packet, the second data packet and the third data packet to the operation terminal;

[0020] monitoring whether the operation terminal establishes a connection with the cloud, and if not, temporarily storing the first data packet and the second data packet offline, and if yes, sending the first data packet and the second data packet to the cloud through the operation terminal;

[0021] detecting whether there are the first data packet and the second data packet temporarily stored offline, if not, ending, and if yes, reading the first data packet and the second data packet temporarily stored offline, sending them to the operation terminal in chronological order, and deleting the first data packet and the second data packet temporarily stored offline.

[0022] As a further description of the above technical solution, the cloud sends a first confirmation signal to the operation terminal, the operation terminal generates a second confirmation signal after receiving the first confirmation signal, and sends it to the data bridge, and the data bridge deletes the first data packet and the second data packet after receiving the second confirmation signal.

[0023] As a further description of the above technical solution, the monitoring data is updated, including:

[0024] receiving configuration information or a firmware file, wherein the configuration information is used to determine valid monitoring data, a preset time interval and a preset threshold;

[0025] identifying the received monitoring data and environmental data according to the configuration information to obtain the first data packet, the second data packet and the third data packet;

[0026] updating a socket used for data transmission according to the firmware file.

[0027] Further comprising a monitoring data management system, the management system is applicable to the management method of any one of the above technical solutions, comprising:

[0028] an interface module for obtaining monitoring data and environmental data;

[0029] a processing module for obtaining the first data packet, the second data packet and the third data packet according to the received configuration information;

[0030] a communication module including a wireless communication unit for short-range communication only, sending the third data packet to the operation terminal, monitoring whether a connection with the cloud is established, and if yes, sending the first data packet and the second data packet to the cloud;

[0031] a storage module, which stores the first data packet and the second data packet offline, reads the first data packet and the second data packet stored offline, sends the first data packet and the second data packet to the communication module in time sequence, and deletes the first data packet and the second data packet stored offline.

[0032] As a further description of the above technical solution, the data management system further comprises:

[0033] a warning module, which judges whether the environmental data meets a preset threshold, if not, the environmental data is unqualified, and generates an alarm signal;

[0034] a firmware management module, which receives a firmware file and sends the firmware file to the processing module.

[0035] Further comprising a computer readable storage medium storing a computer program for running the management method, wherein the computer program causes the computer to execute the management method according to any one of the above technical solutions.

[0036] Further comprising an electronic device comprising:

[0037] one or more processors; a memory; and

[0038] one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the programs comprise a program for executing the management method according to any one of the above technical solutions.

[0039] The above technical solution has the following advantages or beneficial effects:

[0040] 1. By transmitting data to an operation terminal or a cloud, convenient wireless mobile operation is realized, and monitoring data and environmental data can be directly synchronized to the cloud after processing, which facilitates data management, and data storage and automatic retransmission after network recovery can be performed in the case of cloud offline, thereby avoiding data loss when the connection is interrupted.

[0041] 2. By judging the monitoring environmental data against a preset threshold, an alarm signal is generated for warning if the data does not meet the threshold, and the environmental information is associated with the monitoring data, so that the monitoring data and the temperature and humidity information of the working environment can be transmitted in real time. BRIEF DESCRIPTION OF DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiment or prior art description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative labor.

[0043] Figure 1 The flow chart of the management method provided by the present application;

[0044] Figure 2 The flow chart of the method for obtaining the first data packet in the present application;

[0045] Figure 3 The flow chart of the method for obtaining the second data packet in the present application;

[0046] Figure 4 The right view of the updating method provided by the present application;

[0047] Figure 5 The structural schematic diagram of the management system provided by the present application;

[0048] Figure 6 The structural schematic diagram of the interface module in the present application;

[0049] Figure 7 The structural schematic diagram of the processing module in the present application;

[0050] Figure 8 The structural schematic diagram of the communication module in the present application;

[0051] Figure 9 The structural schematic diagram of the storage module in the present application;

[0052] Figure 10 The structural schematic diagram of the warning module in the present application. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0054] With reference to Figure 1 , the present application provides an embodiment: a management method of monitoring data, acting on a data bridge, comprising:

[0055] S1: obtaining a first data packet, a second data packet and a third data packet, wherein the first data packet is obtained by processing valid monitoring data through identification, the second data packet is obtained by processing environmental data meeting a preset threshold, and the third data packet is obtained by integrating the valid monitoring data and an environmental flag bit;

[0056] S2: sending the third data packet to an operation end;

[0057] S3: monitoring whether a connection with the cloud is established, if not, storing the first data packet and the second data packet offline; if yes, sending the first data packet and the second data packet to the cloud;

[0058] S4: detecting whether there are the first data packet and the second data packet stored offline, if not, ending; if yes, reading the first data packet and the second data packet stored offline, sending to the cloud in time sequence, and deleting the first data packet and the second data packet stored offline.

[0059] In the embodiment, the data bridge is used to connect the balance, PH tester or viscometer and the like, to identify valid monitoring data, to ensure that the first data packet is real and usable data information, including weighing information, acid-base information or viscosity information and the like, the second data packet contains preset threshold environmental data, and the third data packet contains valid monitoring data and environmental flag bit, the third data packet is sent to the operation end for local storage, and it is judged whether the data bridge is connected with the cloud, when the cloud connection is disconnected, the offline storage is automatically triggered, to avoid data loss due to transmission interruption, if connected with the cloud, the obtained first data packet and second data packet are sent first, and the offline cached first data packet and second data packet are sent, to ensure the real-time data transmission while avoiding data congestion, by transmitting the data to the operation end or the cloud, convenient wireless mobile operation is realized, the monitoring data and environmental data are processed and can be directly synchronized to the cloud, data management is facilitated, data storage and network recovery can be performed when the cloud is offline, and automatic retransmission is realized, to avoid data loss when the connection is interrupted.

[0060] The first data packet and the second data packet can be sent independently, and the data collected at different frequencies can be more accurately processed and analyzed.

[0061] Referring to Figure 2 , the first data packet includes:

[0062] S111: obtaining monitoring data of real-time monitoring, and identifying valid monitoring data in the monitoring data;

[0063] S112: format converting the valid monitoring data;

[0064] S113: adding device information to generate the first data packet, wherein the device information includes time stamp information, device identifier and balance identifier.

[0065] In the embodiment, the data bridge is connected with the electronic unit, taking the electronic balance as an example, real-time monitoring data is received, and valid monitoring data is identified, a plurality of different brands and models of traditional electronic balances are adapted, and unified standardized data is output, to solve the integration problem caused by device heterogeneity.

[0066] An electronic balance sends a "stable" signal or flag, such as a specific character, status bit, or value stop fluctuating significantly, through its data output protocol after the reading is stable. When parsing the monitoring data, this stable signal is sought. Only when the balance indicates that the reading has stabilized is the reading considered valid monitoring data, and the received monitoring data is parsed according to the selected or preset electronic balance communication protocol. If it does not conform to the protocol format, the monitoring data is considered invalid; the electronic balance outputs an error code or specific error information in certain cases (such as overload, underload, calibration error, etc.) instead of the weighing value, and such output is considered invalid weighing information.

[0067] Valid monitoring data is formatted and converted into a JSON structure, including the weighing value, unit, and stable state, and device information is added to generate the first data packet, including timestamp information, device identifier, and balance identifier, greatly enhancing the traceability and audit tracking ability of the data, which can be accurate to a specific electronic balance at a specific time; further, based on the valid monitoring data, the current internally stored environmental state flag (env_ok: true / false) is added, which indicates whether the current temperature and humidity are within the qualified range, to generate the third data packet.

[0068] Specifically, an example of the first data packet is as follows:

[0069] {

[0070] "type":"weight",

[0071] "sciBoxId":"SCIBOX-SN-12345",

[0072] "balanceId":"BALANCE-LAB1-01",

[0073] "timestamp":"2025-04-18T17:30:15.123Z", / / high-precision timestamp

[0074] "weight":{"value":18.901,"unit":"g","stable":true}

[0075] }。

[0076] An example of the third data packet is as follows:

[0077] {

[0078] "sciBoxId":"SCIBOX-SN-12345",

[0079] "balanceId":"BALANCE-LAB1-01",

[0080] "timestamp":"2025-04-18T17:30:15.123Z", / / timestamp of the weighing event

[0081] "value":18.901,

[0082] "unit":"g",

[0083] "stable":true,

[0084] "env_ok":false / / Determine the environment status flag based on the status of the most recent environment check.

[0085] }

[0086] Reference Figure 3 Obtaining the second data packet includes:

[0087] S121: Collect environmental data according to the preset time interval. The environmental data includes timestamp information, temperature information and humidity information.

[0088] S122: Determine whether the environmental data meets the preset threshold. If not, the environmental data is unqualified and an alarm signal is generated. If yes, the environmental data is qualified and device information is added to generate a second data packet.

[0089] In this embodiment, environmental data is collected by connecting an external temperature and humidity sensor. The temperature and humidity sensor needs to be placed close to the balance. The interface preferably uses a short-range, interference-resistant communication protocol, such as an I2C (Inter-Integrated Circuit) bus interface. Environmental data is collected periodically according to a time interval. The specific communication protocols from different models or brands of electronic balances are parsed. The preset time interval is 30 seconds. The measured values ​​of the temperature and humidity sensor are read, and the collected temperature and humidity values ​​are compared with preset thresholds issued through configuration information to determine whether the current environment is acceptable. The preset threshold is the acceptable temperature and humidity range for the current experiment. The parsed environmental data is used to create a JSON structure, which includes timestamp information, temperature information, and humidity information. Device information, including device identifier and balance identifier, is added, and a second data packet is generated.

[0090] An example of the second data packet is as follows:

[0091] {

[0092] "type":"environment",

[0093] "sciBoxId":"SCIBOX-SN-12345",

[0094] "balanceId":"BALANCE-LAB1-01",

[0095] "timestamp":"2025-04-18T17:30:00.000Z", / / environment collection timestamp

[0096] "environment":{

[0097] "temperature":{"value":26.5,"unit":"C"},

[0098] "humidity":{"value":65.0,"unit":"%RH"},

[0099] },

[0100] "config":{ / / configuration information can be selected to contain, or associated by the cloud

[0101] "temp_range":{"min":20.0,"max":25.0},

[0102] "hum_range":{"min":45,"max":60},

[0103] },

[0104] }。

[0105] In normal operation, the data bridge continuously listens to the interface to parse the monitoring data. At the same time, the value of the temperature and humidity sensor is read through the I2C bus every 30 seconds, and the read value is compared with the preset threshold range. If any value exceeds the range, an alarm signal is generated, the buzzer is controlled to alarm, and the state of the environment state indicator light is changed, and the internal environment state flag bit is updated.

[0106] Also includes a kind of monitoring data management method, act on data bridge, comprising:

[0107] obtain first data packet, second data packet and third data packet, wherein, first data packet is obtained by identifying valid monitoring data processing, second data packet is obtained by environment data processing in accordance with preset threshold value, third data packet is obtained by integrating valid monitoring data and environment flag bit;

[0108] establish connection with operating end, and send first data packet, second data packet and third data packet to operating end;

[0109] The operation end is monitored whether to establish a connection with the cloud, if not, the first data packet and the second data packet are offline stored, if yes, the first data packet and the second data packet are sent to the cloud through the operation end;

[0110] It is detected whether there are offline stored first data packets and second data packets, if not, the process is ended, if yes, the offline stored first data packets and second data packets are read and sent to the operation end in time sequence, and the offline stored first data packets and second data packets are deleted.

[0111] In the embodiment, the data bridge does not directly connect with the cloud, but first performs Bluetooth connection with the operation end, sends the obtained first data packet, second data packet and third data packet to the operation end, monitors whether the operation end establishes a connection with the cloud, if not, the first data packet and the second data packet are offline stored, if yes, the first data packet and the second data packet are sent to the operation end, and are sent to the cloud through the operation end, which can avoid processing a large amount of invalid data.

[0112] The cloud sends a first confirmation signal to the operation end, the operation end receives the first confirmation signal, generates a second confirmation signal and sends it to the data bridge, and the data bridge receives the second confirmation signal and deletes the first data packet and the second data packet.

[0113] In the embodiment, the first confirmation signal is sent to the operation end through the cloud for confirmation, and the second confirmation signal is sent to the data bridge from the operation end for confirmation, so that the data transmission management is more stable, and data loss caused by abnormal conditions such as flash-off or connection interruption of the operation end can be prevented.

[0114] Reference Figure 4 The application further relates to a data monitoring updating method, which acts on the data bridge and comprises the following steps:

[0115] A1: receiving configuration information or a firmware file, wherein the configuration information is used to determine valid monitoring data, a preset time interval and a preset threshold value;

[0116] A2: identifying the received monitoring data and environmental data according to the configuration information to obtain a first data packet, a second data packet and a third data packet;

[0117] A3: updating a socket used for data transmission according to the firmware file.

[0118] In the embodiment, the data bridge receives the configuration information sent by the operation terminal or the firmware file sent by the cloud, and the configuration information includes wireless connection, balance identifier, offline temporary storage strategy, and sets temperature qualified range, such as 20.0-25.0℃, humidity qualified range, such as 45-60%RH, and time interval. The configuration information can be sent to the data bridge through Bluetooth for storage. Wireless technology such as Bluetooth breaks the shackles of wired connection, and the operation terminal is a general smart phone, tablet computer and other mobile devices, which can conveniently obtain monitoring data in real time, and greatly improves the flexibility and convenience of operation.

[0119] The data bridge can receive the firmware file from the cloud and perform OTA firmware upgrade.

[0120] Reference Figures 5-9 The management system also includes a management system suitable for the management method of any of the above technical solutions, comprising:

[0121] The interface module 1 acquires monitoring data and environmental data;

[0122] The processing module 2 processes the acquired first data packet, second data packet and third data packet according to the received configuration information;

[0123] The communication module 3 includes a wireless communication unit for short-range communication only, sends the third data packet to the operation terminal, monitors whether to establish a connection with the cloud, and if so, sends the first data packet and the second data packet to the cloud;

[0124] The storage module 4 temporarily stores the first data packet and the second data packet offline, and reads the offline temporarily stored first data packet and second data packet, sends them to the communication module in time sequence, and deletes the offline temporarily stored first data packet and second data packet.

[0125] In the embodiment, the data bridge is connected with external devices through the interface module 1, which includes a data receiving unit 11 for receiving monitoring data through a wired interface, can adapt to various physical interfaces and communication protocols, a sensor interface unit 12 for connecting external temperature and humidity sensors and receiving environmental data from the temperature and humidity sensors, and a power supply unit 13 for providing power, using USB-C power supply and built-in large-capacity rechargeable battery, supporting long-time offline work, breaking the dependence on fixed power supply, and improving the deployment flexibility and use convenience of the device.

[0126] The processing module 2 includes a data processing unit 21 connected with the data receiving unit 11 and the sensor interface unit 12, which parses specific communication protocols from external devices of different models or brands, compares the collected temperature and humidity values with preset threshold values, judges whether the current environment is qualified, and performs data analysis, format conversion, environment judgment and other processing;

[0127] The control unit 22 is connected with the data processing unit 21, the wireless communication unit 31, the network communication unit 32, the offline temporary storage unit 41, the alarm module 5 and the firmware management module 6; used for managing configuration information, connection state, environment data collection, alarm triggering, offline temporary storage and OTA firmware upgrade, etc.

[0128] The control unit 22 receives data sent by the data processing unit 21 and sends control instructions to the data processing unit 21 for data processing;

[0129] The configuration information sent by the wireless communication unit 31 is received, and control signals are sent to the network communication unit 32 for connection detection and communication;

[0130] Control signals are sent to the offline temporary storage unit 41, and connection state information and detection of whether there are temporary first data packets and second data packets are received;

[0131] The control unit 22 controls the triggered control signal to be sent to the alarm module 5 to generate an alarm signal;

[0132] The firmware file sent by the firmware management module 6 is received and sent to the data processing unit 21 for OTA firmware upgrade.

[0133] The communication module 3 is responsible for data interaction with other devices or systems, including:

[0134] The wireless communication unit 31 is used for short-distance communication and transmits the third data packet and receives the configuration information through Bluetooth with the operation end;

[0135] The network communication unit 32 provides network connection;

[0136] The cloud data sending unit 33 packs the first data packet and the second data packet by using the network communication unit 32. The wireless communication unit 31 transmits the first data packet, the second data packet or the third data packet to the operation end between the data processing unit 21 and the control unit 22, and transmits the configuration information and the control signal. The cloud data sending unit 33 receives the first data packet and the second data packet sent by the data processing unit 21, packs them into a cloud data packet, and sends them to the network communication unit 32, and sends the cloud data packet to the cloud through the network communication unit 32. The network communication unit 32 receives the control signal of the control unit 22.

[0137] The communication module 3 further comprises a data export unit 34 for exporting offline data from the storage module 4.

[0138] The storage module 4 comprises an offline staging unit 41 for staging the first data packets and the second data packets to be uploaded to the cloud when the network is unavailable. The offline staging unit 41 transmits the first data packets and the second data packets to be uploaded and the first data packets and the second data packets that need to be retransmitted between the data processing unit 21 in a bidirectional manner, and interacts with the control unit 22 for control state.

[0139] Referring to Figure 10 , the data management system further comprises:

[0140] The warning module 5 judges whether the environmental data meets the preset threshold value. If not, the environmental data is unqualified, and an alarm signal is generated.

[0141] The firmware management module 6 receives the firmware file and sends the firmware file to the processing module.

[0142] In this embodiment, the warning module 5 comprises an alarm unit 51 and a state indication unit 52. The alarm unit 51 receives a control signal triggered by the control unit 22, generates an alarm signal, and the state indication unit 52 sets a plurality of indicator lights for directly displaying the device state, such as power, protocol analysis, Bluetooth connection, network connection / offline state and environmental state, and provides device state feedback.

[0143] The firmware management module 6 is responsible for the firmware update of the data bridge, receives the firmware file from the cloud and performs OTA upgrade, receives the firmware file through the network communication unit 32, and interacts with the control unit 22 in a bidirectional manner for control state.

[0144] In a specific embodiment, the data bridge comprises an RS232 interface chip, an integrated Bluetooth and Wi-Fi function microcontroller (MCU, such as ESP32), which has a real-time clock (RTC) function and has an I2C host interface, a 4G / 5G communication module, a built-in Flash memory chip, a USB-C interface for charging and data export, a lithium ion battery, a plurality of LED indicator lights and a patch type buzzer.

[0145] An external digital temperature and humidity sensor, such as SHT31, SHT41 or DHT22 I2C version, is connected through the I2C host interface. The sensor probe is placed near the electronic balance. When first used or when the configuration needs to be changed, the App is connected through Bluetooth pairing with the data bridge. The App provides a configuration interface, which can set temperature and humidity qualified ranges, time intervals, and generate corresponding configuration information. The configuration information is sent to the data bridge through Bluetooth for storage. The data bridge continuously monitors the RS232 interface to parse the weighing data. At the same time, the MCU reads the temperature and humidity sensor values through the I2C bus every 30 seconds, and compares the read values with the preset threshold range. If any value exceeds the range, the MCU generates an alarm signal, controls the buzzer to emit a short beep, and changes the state of the environment state indicator light, while updating the internal environment state flag bit.

[0146] When the data bridge receives and parses a valid monitoring data, it generates a first data packet and a second data packet, and sends them to the operation terminal through Bluetooth. It checks the network status of the cloud connection. If normal, it sends the first data packet and the second data packet to the cloud MQTT server; if the network is abnormal, it stores them in the Flash offline storage. Periodically check the network status of the cloud connection. When the network recovers from abnormal to normal, the control unit reads the first data packet and the second data packet stored in the Flash offline storage, sends them to the cloud MQTT server in timestamp order, and deletes them from the Flash or marks them as uploaded after successful sending.

[0147] The operation terminal receives the first data packet and the second data packet sent by Bluetooth. If the environment state flag bit env_ok is false, it displays a warning message on the interface, prompting the user that the current environment may not be suitable for accurate weighing. The cloud receives independent first data packet and second data packet, which can be more flexible in data processing and analysis.

[0148] Also includes a computer readable storage medium storing a computer program for running the management method, wherein the computer program causes the computer to execute the following steps:

[0149] S1: obtaining a first data packet, a second data packet and a third data packet, wherein the first data packet is obtained by identifying valid monitoring data, the second data packet is obtained by processing environment data conforming to a preset threshold, and the third data packet is obtained by integrating the valid monitoring data and the environment flag bit;

[0150] S2: sending the third data packet to the operation terminal;

[0151] S3: monitoring whether a connection with the cloud is established, if not, storing the first data packet and the second data packet offline; if yes, sending the first data packet and the second data packet to the cloud;

[0152] S4: detecting whether there are the first data packet and the second data packet stored offline, if not, ending; if yes, reading the first data packet and the second data packet stored offline, sending to the cloud in time sequence, and deleting the first data packet and the second data packet stored offline.

[0153] The computer readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates transfer of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general purpose or special purpose computer. For example, the computer readable storage medium can be coupled to the processor such that the processor can read information from, and write information to, the computer readable storage medium. Of course, the computer readable storage medium can be a component of the processor. Accordingly, the processor and the computer readable storage medium can be considered to be a specialized computer system configured to perform the functions described herein. Alternatively, the processor and the computer readable storage medium can be considered to be a specialized computer system configured to perform the functions described herein.

[0154] In particular, the computer readable storage medium can be realized by any type of volatile or non-volatile storage devices, or a combination thereof, such as static random access memory (SRAM), electrically-erasable programmable read-only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic or optical disks. The storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

[0155] Also included is an electronic device comprising:

[0156] one or more processors; a memory; and

[0157] One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for performing the following steps:

[0158] S1: obtaining a first data packet, a second data packet and a third data packet, wherein the first data packet is obtained by identifying valid monitoring data, the second data packet is obtained by processing environmental data meeting a preset threshold, and the third data packet is obtained by integrating the valid monitoring data and an environmental flag;

[0159] S2: sending the third data packet to an operation end;

[0160] S3: monitoring whether a connection with a cloud end is established, if not, offline storing the first data packet and the second data packet; if yes, sending the first data packet and the second data packet to the cloud end;

[0161] S4: detecting whether there are offline stored first data packets and second data packets, if not, ending; if yes, reading the offline stored first data packets and second data packets, sending them to the cloud end in chronological order, and deleting the offline stored first data packets and second data packets.

[0162] A memory for storing computer programs. The memory can include a high-speed random access memory (RAM), and can also include a non-volatile memory (NVM), such as at least one disk memory, and can also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0163] A processor for executing the computer programs stored in the memory. The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor, or the processor can also be any conventional processor, etc. The steps of the method disclosed in the application can be directly embodied as a hardware processor for execution, or executed by a combination of hardware and software modules in the processor.

[0164] Optionally, the memory can be independent or integrated with the processor.

[0165] When the memory is a device independent of the processor, the electronic device can further include a bus. The bus is used to connect the memory and the processor. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0166] It should be noted that, through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be realized by means of software and necessary universal hardware platforms. Based on such understanding, the above technical solutions can be embodied in the form of software products, which can be stored in a computer readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and include a number of instructions to make a computer device (which can be a personal computer, a terminal, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments. In this paper, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0167] Finally, it should be noted that: the above only describes the preferred embodiments of the present application, and is not intended to limit the present application. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some technical features, as long as they are within the spirit and principles of the present application. Any modification, equivalent replacement, improvement, etc. made shall be included in the protection scope of the present application.

Claims

1. A method for managing monitoring data, characterized in that, Acting on data bridges, including: Acquire a first data packet, a second data packet, and a third data packet, wherein the first data packet is obtained by processing valid monitoring data, the second data packet is obtained by processing environmental data that meets a preset threshold, and the third data packet is obtained by integrating the valid monitoring data with environmental flag bits; The third data packet is sent to the operating terminal; The system monitors whether a connection has been established with the cloud. If not, the first data packet and the second data packet are temporarily stored offline. If so, the first data packet and the second data packet are sent to the cloud. Check if there are offline temporary storage of the first data packet and the second data packet. If not, end; if yes, read the offline temporary storage of the first data packet and the second data packet, send them to the cloud in chronological order, and delete the offline temporary storage of the first data packet and the second data packet. The acquisition of the first data packet includes: Acquire real-time monitoring data, parse the monitoring data, and identify the valid monitoring data; Convert the effective monitoring data into the correct format; The first data packet is generated by adding device information, wherein the device information includes timestamp information, device identifier, and balance identifier.

2. The management method according to claim 1, characterized in that: The acquisition of the second data packet includes: Environmental data is collected according to a preset time interval, including timestamp information, temperature information, and humidity information. Determine whether the environmental data meets the preset threshold. If not, the environmental data is unqualified and an alarm signal is generated. If yes, the environmental data is qualified and the device information is added to generate a second data packet.

3. A method for managing monitoring data, characterized in that, Acting on data bridges, including: Acquire a first data packet, a second data packet, and a third data packet, wherein the first data packet is obtained by processing valid monitoring data, the second data packet is obtained by processing environmental data that meets a preset threshold, and the third data packet is obtained by integrating the valid monitoring data with environmental flag bits; Establish a connection with the operating terminal and send the first data packet, the second data packet, and the third data packet to the operating terminal; Monitor whether the operating terminal has established a connection with the cloud; if not, temporarily store the first data packet and the second data packet offline; if yes, use the operating terminal to send the first data packet and the second data packet to the cloud. Check if there are offline temporarily stored first data packets and second data packets. If not, end; if yes, read the offline temporarily stored first data packets and second data packets, send them to the operation terminal in chronological order, and delete the offline temporarily stored first data packets and second data packets. The deletion of the offline temporarily stored first data packet and second data packet includes: The cloud sends a first confirmation signal to the operating terminal. After receiving the first confirmation signal, the operating terminal generates a second confirmation signal and sends it to the data bridge. After receiving the second confirmation signal, the data bridge deletes the first data packet and the second data packet.

4. The management method according to claim 3, characterized in that: Updating the monitoring data includes: Receive configuration information or firmware file, wherein the configuration information is used to determine valid monitoring data, preset time intervals and preset thresholds; The received monitoring data and environmental data are identified based on the configuration information to obtain a first data packet, a second data packet, and a third data packet; Update the socket used for data transmission according to the firmware file.

5. A management system for monitoring data, characterized in that, The management system is applicable to the management method described in any one of claims 1-4, comprising: The interface module acquires monitoring data and environmental data; The processing module processes and acquires the first data packet, the second data packet, and the third data packet based on the received configuration information. The communication module includes a wireless communication unit for short-range communication only, which sends the third data packet to the operation terminal, monitors whether a connection is established with the cloud, and if so, sends the first data packet and the second data packet to the cloud. The storage module temporarily stores the first data packet and the second data packet offline, reads the temporarily stored first data packet and the second data packet, sends them to the communication module in chronological order, and deletes the temporarily stored first data packet and the second data packet.

6. The management system according to claim 5, characterized in that: The data management system also includes: The warning module determines whether the environmental data meets a preset threshold. If not, the environmental data is deemed unqualified, and an alarm signal is generated. The firmware management module receives the firmware file and sends the firmware file to the processing module.

7. A computer-readable storage medium, characterized in that, It stores a computer program for running a management method, wherein the computer program causes a computer to perform the management method as described in any one of claims 1-4.

8. An electronic device, characterized in that, include: One or more processors; Memory; as well as One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs including methods for performing the management methods as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Intelligent anomaly detection and early warning cloud weighing system

    CN119374706A

  • Wireless weighing transmission garbage can and data transmission method

    CN120288393A

  • Humidity control type electronic balance and data recording and sharing system

    CN209570263U