CN117156605A - Air quality monitoring data transmission method, system, storage medium and electronic equipment - Google Patents

Air quality monitoring data transmission method, system, storage medium and electronic equipment Download PDF

Info

Publication number
CN117156605A
CN117156605A CN202311125709.XA CN202311125709A CN117156605A CN 117156605 A CN117156605 A CN 117156605A CN 202311125709 A CN202311125709 A CN 202311125709A CN 117156605 A CN117156605 A CN 117156605A
Authority
CN
China
Prior art keywords
mobile terminal
monitoring data
data
communication connection
cloud platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311125709.XA
Other languages
Chinese (zh)
Inventor
郗晓言
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tongdy Sensing Technology Corp
Original Assignee
Tongdy Sensing Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tongdy Sensing Technology Corp filed Critical Tongdy Sensing Technology Corp
Priority to CN202311125709.XA priority Critical patent/CN117156605A/en
Publication of CN117156605A publication Critical patent/CN117156605A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides an air quality monitoring data transmission method, an air quality monitoring data transmission system, a storage medium and electronic equipment, and relates to the technical field of data transmission, wherein the method comprises the following steps: monitoring air quality in real time, and generating monitoring data; judging whether communication connection can be established with the cloud platform server; if the communication connection with the cloud platform server can be established, uploading the monitoring data to the cloud platform server through a network communication interface; if the communication connection with the cloud platform server cannot be established, the communication connection with the mobile terminal is established through Bluetooth, and monitoring data are transmitted to the mobile terminal. According to the method provided by the application, when the communication connection between the monitor and the cloud platform cannot be established, the communication connection between the monitor and the mobile terminal is established through Bluetooth so as to meet the requirement of a user for acquiring the monitoring data, and thus the experience of the user for acquiring the monitoring data is improved.

Description

Air quality monitoring data transmission method, system, storage medium and electronic equipment
Technical Field
The application relates to the technical field of data transmission, in particular to an air quality monitoring data transmission method, an air quality monitoring data transmission system, a storage medium and electronic equipment.
Background
An air quality monitor (hereinafter monitor) is an instrument device for measuring and monitoring the quality of air in an environment. The air quality condition is estimated and monitored by measuring and analyzing various pollutants, gas concentration and environmental parameters in the air, so that the air quality monitoring device is widely applied to various scenes such as urban environments, industrial areas, traffic trunk lines, indoor air and the like.
In the related art, when a user wants to know the monitoring condition of a scene monitored by a monitor, the user needs to acquire monitoring data acquired by the monitor. The monitoring data is transmitted to the cloud platform server through a network, and the user downloads the monitoring data from the cloud platform server. However, as most of application scenes of the monitor are outdoor monitoring scenes or important space scenes, connection construction between the monitor and a server of a cloud platform in a pre-project middle stage is not mature enough, so that the server or a network is easy to fail, and the experience of acquiring monitoring data by a user is poor.
Disclosure of Invention
The application provides an air quality monitoring data transmission method, an air quality monitoring data transmission system, a storage medium and electronic equipment.
In a first aspect, the present application provides a method for transmitting air quality monitoring data, applied to a monitor, the method comprising:
monitoring air quality in real time, and generating monitoring data;
judging whether communication connection can be established with the cloud platform server;
if the communication connection with the cloud platform server can be established, uploading the monitoring data to the cloud platform server through a network communication interface;
if communication connection cannot be established with the cloud platform server, communication connection is established with the mobile terminal through Bluetooth, and the monitoring data is transmitted to the mobile terminal.
Through adopting above-mentioned technical scheme, when monitor and cloud platform can't establish communication connection, establish monitor and mobile terminal's communication connection through bluetooth to satisfy the demand that the user obtained monitoring data, thereby improve the experience that the user obtained monitoring data.
Optionally, after the monitoring data is generated, the method further includes:
and temporarily storing the monitoring data in a storage space of the monitor.
By adopting the technical scheme, when the connection construction of the monitor and the cloud platform server is not mature enough, the monitoring data is temporarily stored in the storage space of the monitor, so that the risk in the data transmission process can be reduced, and the safety of the data is ensured.
Optionally, before the monitoring data is temporarily stored in the storage space of the monitor, the method further includes:
acquiring the residual memory capacity of the memory space;
judging whether the residual memory capacity of the memory space is smaller than a preset memory threshold value or not;
and if the residual storage amount of the storage space is smaller than a preset storage threshold value, deleting the data stored in the storage space first until the residual storage amount of the storage space is larger than or equal to the storage threshold value.
By adopting the technical scheme, the storage capacity of the storage space of the monitor can be ensured to be sufficient, and the situation that new monitoring data cannot be stored due to insufficient residual storage capacity of the storage space is avoided. Meanwhile, by deleting the data stored in the storage space at first, the latest monitoring data can be always stored in the storage space.
Optionally, the transmitting the monitoring data to the mobile terminal includes:
and responding to a data transmission request sent by the mobile terminal, compressing the monitoring data into target data, and transmitting the target data to the mobile terminal.
By adopting the technical scheme, the data volume to be transmitted can be reduced through data compression, and the transmission rate is improved so as to reduce the time of data transmission, thereby reducing the signal interference problem in the transmission process.
Optionally, after the monitoring data is compressed into the target data in response to the data transmission request sent by the mobile terminal, the method further includes:
the binary data generated in the compression process is used as check bits to be added to the tail end of the target data, so that check data are obtained;
the transmitting the target data to the mobile terminal comprises the following steps:
and transmitting the check data to the mobile terminal.
By adopting the technical scheme, whether the data is wrong or damaged in the transmission process can be detected by adding the check bit and checking, and the integrity of the data transmission can be ensured.
Optionally, after the verification data is transmitted to the mobile terminal, the method further includes:
responding to a feedback signal sent by the mobile terminal, wherein the feedback signal is generated by the mobile terminal after judging that the check data is damaged;
and sending the check data to the mobile terminal again.
By adopting the technical scheme, the error data can be rapidly detected and processed by responding to the feedback signal of the mobile terminal and retransmitting the check data, so that the stability of communication is improved
Optionally, after the communication connection is established with the mobile terminal through bluetooth, the method further includes:
responding to the parameter configuration information sent by the mobile terminal, setting a connectable time period of which Bluetooth is in an on state, and establishing communication connection with the mobile terminal in the connectable time period;
or alternatively, the first and second heat exchangers may be,
and responding to the parameter configuration information sent by the mobile terminal, setting the Bluetooth to be in an allowed on state temporarily, and establishing communication connection with the mobile terminal when the Bluetooth is in the allowed on state.
By adopting the technical scheme, the Bluetooth power consumption can be effectively controlled by setting the connectable time period of the Bluetooth in the on state, and meanwhile, the data leakage caused by the access of unauthorized equipment can be avoided. And the mobile terminal enters a temporary permission starting state when sending the parameter configuration information, so that the flexibility of the monitor can be improved.
In a second aspect, the present application provides an air quality monitoring data transmission system, the system comprising:
the monitoring module is used for monitoring the air quality in real time and generating monitoring data;
the connection state judging module is used for judging whether communication connection can be established with the cloud platform server or not;
the network transmission module is used for uploading the monitoring data to the cloud platform server through a network communication interface if communication connection can be established with the cloud platform server;
and the Bluetooth transmission module is used for establishing communication connection with the mobile terminal through Bluetooth if communication connection with the cloud platform server cannot be established, and transmitting the monitoring data to the mobile terminal.
In a third aspect, the present application provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform any of the methods described above.
In a fourth aspect, the present application provides an electronic device comprising a processor, a memory for storing instructions, and a transceiver for communicating with other devices, the processor for executing instructions stored in the memory to cause the electronic device to perform a method as in any one of the above.
In summary, the technical scheme of the application has the following beneficial effects:
when the monitor and the cloud platform cannot be in communication connection, the communication connection between the monitor and the mobile terminal is established through Bluetooth, so that the requirement of a user for acquiring monitoring data is met, and the experience of the user for acquiring the monitoring data is improved.
Drawings
Fig. 1 is a schematic diagram of a scenario of air quality detection data transmission provided in an embodiment of the present application;
FIG. 2 is a flow chart of a method for transmitting air quality monitoring data according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an air quality monitoring data transmission system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals illustrate: 301. a monitoring module; 302. a connection state judging module; 303. a network transmission module; 304. a Bluetooth transmission module; 400. an electronic device; 401. a processor; 402. a communication bus; 403. a user interface; 404. a network interface; 405. a memory.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments.
In describing embodiments of the present application, words such as "exemplary," "such as" or "for example" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "illustrative," "such as" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "illustratively," "such as" or "for example," etc., is intended to present related concepts in a concrete fashion.
In the description of embodiments of the application, the term "plurality" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating an indicated technical feature. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Fig. 1 is a schematic diagram of a scenario of air quality detection data transmission according to an embodiment of the present application.
The monitor can monitor air quality in real time and generate monitoring data. Monitors typically include sensors to monitor air quality indicators such as carbon dioxide, temperature and humidity, carbon monoxide, volatile organics, and the like.
The cloud platform server can store the monitoring data sent by the monitor and store the monitoring data to the cloud, so that a user can remotely acquire the monitoring data. Meanwhile, the cloud platform server can store monitoring data of a plurality of monitors and label different monitors, so that a user can obtain the monitoring data of a certain monitor in a directional manner after identity verification.
The mobile terminal is mobile communication equipment used at the user side, and the mobile terminal can realize the transmission of the monitoring data through the communication connection with the monitor, so that the user can acquire the monitoring data.
Referring to fig. 2, a flow chart of an air quality monitoring data transmission method according to an embodiment of the present application is provided, and the method may be implemented by a computer program, may be implemented by a single chip microcomputer, or may be run on an air quality monitoring data transmission system based on von neumann system. The computer program may be integrated in the application or may run as a stand-alone tool class application. The specific steps of the air quality monitoring data transmission method will be described in detail below:
s201, monitoring air quality in real time and generating monitoring data.
Specifically, the air quality may include air quality indicators such as carbon dioxide, temperature and humidity, carbon monoxide, and volatile organic compounds. The user can select corresponding air quality indexes according to project demands, and corresponding sensors are configured for the monitors according to the selected air quality indexes so as to realize real-time monitoring of air quality. The monitoring data are obtained by real-time monitoring of the air quality by the monitor.
In an alternative embodiment, the monitoring data is temporarily stored in the storage space of the monitor.
Specifically, the storage space may be a memory or a hard disk with a storage function in the monitor, and the monitoring data can be temporarily stored in the storage space. The system can also be a removable storage medium such as a flash memory card, and can carry out offline transmission or backup on the removable storage medium storing the monitoring data when the monitoring data needs to be protected.
Further, before temporarily storing the monitoring data in the storage space of the monitor, the method further comprises the following steps:
acquiring the residual memory capacity of a memory space; judging whether the residual memory capacity of the memory space is smaller than a preset memory threshold value or not; if the residual memory capacity of the memory space is smaller than the preset memory threshold, deleting the data stored in the memory space first until the residual memory capacity of the memory space is larger than or equal to the memory threshold.
The monitor may calculate the remaining storage amount of the storage space by acquiring the storage directory of the storage space, or may acquire the remaining storage amount by using a storage algorithm of the storage space itself, which is not limited herein.
The preset storage threshold is a threshold set in the storage space, and is used to determine whether the remaining storage amount of the storage space reaches or falls below a preset minimum value. The specific value of the preset storage threshold value is set according to actual conditions and requirements. Different application scenes and storage systems may need different storage thresholds, and for the distance, the indexes monitored by different monitors are different, and the real-time data volume is also different, so that the preset storage thresholds need to be flexibly set.
And comparing the residual memory with a preset memory threshold, and if the residual memory is smaller than the preset memory threshold, sorting according to the time stamp according to the data structure of the specific memory space, finding out the data stored first, and deleting the data. And stopping the process of deleting the data stored in the storage space first when the residual storage amount is greater than or equal to the preset storage threshold value.
S202, judging whether communication connection with the cloud platform server can be established.
It will be appreciated that the communication connection herein requires verification of several factors.
First, it is verified whether the monitor is in the presence of a network connection, including a wired network or a wireless network.
And secondly, verifying whether the network configuration between the monitor and the cloud platform server is correct or not, wherein the verification content comprises the configuration of network parameters such as an IP address, a sub-gateway mask, a network manager and the like.
And then checking firewall or port settings between the monitor and the cloud platform server to determine whether the firewall or router has set specific rules or port restrictions.
Finally, when the monitor accesses the cloud platform server, the monitor needs to increase corresponding credentials (such as an API key or a certificate) for identity verification and access control.
If all the four factors are verified successfully, the monitor can establish communication connection with the cloud platform server, so that a basis is provided for monitoring data transmission. The specific communication connection may employ different protocols and techniques, such as TCP/IP protocol, HTTP/HTTPS protocol, MQTT protocol, etc. Through these communication connections, the monitor may upload collected monitoring data to the cloud platform server, or obtain instructions and configuration updates from the server. Meanwhile, the server can also send notification, alarm and control instructions to the monitor, so that bidirectional communication interaction is realized.
And S203, if the communication connection with the cloud platform server can be established, uploading the monitoring data to the cloud platform server through a network communication interface.
A connection is established with the cloud platform server according to a communication protocol using a suitable network communication library or framework. A network interface (e.g., a network card) is used to communicate with the cloud platform server. According to the requirements of the cloud platform server, the monitoring data are converted into a proper format, such as JSON, XML and the like. And sending the packaged monitoring data to the cloud platform server through a network by using the method for sending the data provided by the network interface.
And S204, if the communication connection with the cloud platform server cannot be established, establishing the communication connection with the mobile terminal through Bluetooth, and transmitting the monitoring data to the mobile terminal.
A bluetooth protocol, such as Bluetooth Classic or Bluetooth Low Energy (BLE), is first determined for the monitor to communicate with the mobile terminal. And integrating a Bluetooth module supporting a corresponding Bluetooth protocol in the monitor, and establishing Bluetooth communication connection with the mobile terminal through the Bluetooth module. And sending the collected monitoring data to the mobile terminal through Bluetooth connection.
In one implementation, in response to a data transmission request sent by the mobile terminal, the monitoring data is compressed into target data and the target data is transmitted to the mobile terminal.
And selecting a proper compression algorithm according to the requirements, wherein the compression algorithm can be gzip, zlib and other algorithms, and compressing the monitoring data by using the selected compression algorithm to generate target data.
Specifically, huffman Coding (Huffman Coding) can be adopted to compress the JSON-format monitoring data.
Firstly, counting the occurrence frequency of each character in a character string of the monitoring data in the JSON format, constructing a character frequency table, and recording each character and the corresponding frequency. And constructing a Huffman tree according to the character frequency table. And using the frequency as a weight to construct nodes of the Huffman tree. Traversing the Huffman tree to generate a corresponding Huffman code for each character. The characters and corresponding huffman codes are recorded in a code table. And replacing each character in the character string of the monitoring data in the JSON format according to the coding table, and replacing the character string with a corresponding Huffman code. And connecting the replaced Huffman code strings to generate compressed target data.
Optionally, binary data generated in the compression process is used as check bits to be added to the tail end of the target data, so as to obtain check data; transmitting the target data to the mobile terminal, comprising: and transmitting the verification data to the mobile terminal.
And (3) recording binary data generated in the compression process of the target data generated by compressing the monitoring data by using Huffman coding or other compression algorithms. And adding the generated binary data to the tail end of the target data to obtain check data with check bits. The data integrity and accurate transmission can be ensured by checking the data to transmit the monitoring data.
Further, responding to a feedback signal sent by the mobile terminal, wherein the feedback signal is generated by the mobile terminal after judging that the check data is damaged; and sending the check data to the mobile terminal again.
After the mobile terminal receives the monitoring data, extracting target data and check bits from the received check data, compressing the extracted target data by the mobile terminal by using the same compression algorithm to obtain a new check bit, and comparing the calculated new check bit with the received check bit by the mobile terminal.
If the two check bits are equal, the check data is not damaged in the transmission process, and the check data is complete. If the two check bits are not equal, the check data is damaged in the transmission process, and the check data may be tampered or an error occurs in the transmission process.
In one implementation, a connectable period of time in which bluetooth is in an on state is set in response to parameter configuration information transmitted by the mobile terminal, so as to establish a communication connection with the mobile terminal during the connectable period of time.
The mobile terminal sends parameter configuration information to the monitor, including relevant parameters for setting the bluetooth connectable period. And the monitor sets a connectable time period of the Bluetooth module in an on state according to the received parameter configuration information. This may be achieved by setting the operating mode of the bluetooth module and related parameters, such as the start time and end time of the connectable time period. And in the set connectable time period, the Bluetooth equipment is in an on state and waits for a connection request of the mobile terminal.
In one implementation, in response to parameter configuration information sent by the mobile terminal, bluetooth is set to be temporarily in an allowed on state, so that a communication connection is established with the mobile terminal when the on state is allowed.
After receiving parameter configuration information sent by the mobile terminal, the Bluetooth module of the monitor analyzes the parameter configuration information, and sets the Bluetooth to be in an allowed on state temporarily by calling a corresponding Bluetooth on API, and establishes communication connection with the mobile terminal in the allowed on state.
The following are system embodiments of the present application that may be used to perform method embodiments of the present application. For details not disclosed in the system embodiments of the present application, please refer to the application method embodiments.
Referring to fig. 3, a schematic diagram of an air quality monitoring data transmission system according to an exemplary embodiment of the present application is shown. The apparatus may be implemented as all or part of a system by software, hardware, or a combination of both. The system comprises a monitoring module 301, a connection state judging module 302, a network transmission module 303 and a Bluetooth transmission module 304.
The monitoring module 301 is configured to monitor air quality in real time and generate monitoring data;
the connection state judging module 302 is configured to judge whether communication connection can be established with the cloud platform server;
the network transmission module 303 is configured to upload the monitoring data to the cloud platform server through the network communication interface if the communication connection can be established with the cloud platform server;
and the bluetooth transmission module 304 is configured to establish communication connection with the mobile terminal through bluetooth if communication connection with the cloud platform server cannot be established, and transmit the monitoring data to the mobile terminal.
Optionally, the monitoring module 301 further includes a temporary storage unit and a remaining storage management unit.
And the temporary storage unit is used for temporarily storing the monitoring data in the storage space of the monitor.
A remaining memory management unit, configured to obtain a remaining memory of the memory space; judging whether the residual memory capacity of the memory space is smaller than a preset memory threshold value or not; if the residual memory capacity of the memory space is smaller than the preset memory threshold, deleting the data stored in the memory space first until the residual memory capacity of the memory space is larger than or equal to the memory threshold.
Optionally, the bluetooth transmission module 304 further includes a data compression unit, a verification unit, a feedback unit, and a connectable period configuration unit.
And the data compression unit is used for responding to the data transmission request sent by the mobile terminal, compressing the monitoring data into target data and transmitting the target data to the mobile terminal.
The verification unit is used for adding binary data generated in the compression process to the tail end of the target data as verification bits to obtain verification data; transmitting the target data to the mobile terminal, comprising: and transmitting the verification data to the mobile terminal.
The feedback unit is used for responding to a feedback signal sent by the mobile terminal, and the feedback signal is generated by the mobile terminal after judging that the check data is damaged; and sending the check data to the mobile terminal again.
A connectable period configuration unit, configured to set a connectable period in which bluetooth is in an on state in response to parameter configuration information sent by the mobile terminal, so as to establish communication connection with the mobile terminal in the connectable period; or, in response to the parameter configuration information sent by the mobile terminal, setting the Bluetooth to be in an allowed on state temporarily so as to establish communication connection with the mobile terminal when the Bluetooth is in the allowed on state.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are adapted to be loaded and executed by a processor, where the specific implementation process may be referred to in the specific description of the embodiment shown in fig. 1-2, where the specific implementation process is not described herein.
Referring to fig. 4, a schematic structural diagram of an electronic device is provided in an embodiment of the present application. As shown in fig. 4, the electronic device 400 may include: at least one processor 401, at least one network interface 404, a user interface 403, a memory 405, and at least one communication bus 402.
Wherein communication bus 402 is used to enable connected communications between these components.
The user interface 403 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 403 may further include a standard wired interface and a standard wireless interface.
The network interface 404 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 401 may include one or more processing cores. The processor 401 connects the various parts within the entire server using various interfaces and lines, performs various functions of the server and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 405, and invoking data stored in the memory 405. Alternatively, the processor 401 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 401 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 401 and may be implemented by a single chip.
The Memory 405 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 405 may be used to store instructions, programs, code sets, or instruction sets. The memory 405 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like involved in the above respective method embodiments. The memory 405 may also optionally be at least one storage device located remotely from the aforementioned processor 401. As shown in fig. 4, an operating system, a network communication module, a user interface module, and an application program of an air quality monitoring data transmission method may be included in the memory 405 as a computer storage medium.
In the electronic device 400 shown in fig. 4, the user interface 403 is mainly used as an interface for providing input for a user, and obtains data input by the user; and processor 401 may be used to invoke an application program in memory 405 that stores a method of air quality monitoring data transmission, which when executed by one or more processors, causes the electronic device to perform the method as in one or more of the embodiments described above.
An electronic device readable storage medium storing instructions. The method of one or more of the above embodiments is performed by one or more processors, which when executed by an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, such as a division of units, merely a division of logic functions, and there may be additional divisions in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in whole or in part in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method of the various embodiments of the present application. And the aforementioned memory includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a magnetic disk or an optical disk.
The above are merely exemplary embodiments of the present disclosure and are not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.

Claims (10)

1. A method of air quality monitoring data transmission, for use with a monitor, the method comprising:
monitoring air quality in real time, and generating monitoring data;
judging whether communication connection can be established with the cloud platform server;
if the communication connection with the cloud platform server can be established, uploading the monitoring data to the cloud platform server through a network communication interface;
if communication connection cannot be established with the cloud platform server, communication connection is established with the mobile terminal through Bluetooth, and the monitoring data is transmitted to the mobile terminal.
2. The method of claim 1, wherein the real-time monitoring of air quality, after generating the monitoring data, further comprises:
and temporarily storing the monitoring data in a storage space of the monitor.
3. The method of claim 2, wherein prior to temporarily storing the monitoring data in the storage space of the monitor, further comprising:
acquiring the residual memory capacity of the memory space;
judging whether the residual memory capacity of the memory space is smaller than a preset memory threshold value or not;
and if the residual storage amount of the storage space is smaller than a preset storage threshold value, deleting the data stored in the storage space first until the residual storage amount of the storage space is larger than or equal to the storage threshold value.
4. The method of claim 1, wherein said transmitting the monitoring data to the mobile terminal comprises:
and responding to a data transmission request sent by the mobile terminal, compressing the monitoring data into target data, and transmitting the target data to the mobile terminal.
5. The method according to claim 4, wherein after compressing the monitoring data into the target data in response to the data transmission request sent by the mobile terminal, further comprising:
the binary data generated in the compression process is used as check bits to be added to the tail end of the target data, so that check data are obtained;
the transmitting the target data to the mobile terminal comprises the following steps:
and transmitting the check data to the mobile terminal.
6. The method of claim 5, wherein after transmitting the verification data to the mobile terminal, further comprising:
responding to a feedback signal sent by the mobile terminal, wherein the feedback signal is generated by the mobile terminal after judging that the check data is damaged;
and sending the check data to the mobile terminal again.
7. The method of claim 1, further comprising, after the establishing a communication connection with the mobile terminal via bluetooth:
responding to the parameter configuration information sent by the mobile terminal, setting a connectable time period of which Bluetooth is in an on state, and establishing communication connection with the mobile terminal in the connectable time period;
or alternatively, the first and second heat exchangers may be,
and responding to the parameter configuration information sent by the mobile terminal, setting the Bluetooth to be in an allowed on state temporarily, and establishing communication connection with the mobile terminal when the Bluetooth is in the allowed on state.
8. An air quality monitoring data transmission system, the system comprising:
the monitoring module is used for monitoring the air quality in real time and generating monitoring data;
the connection state judging module is used for judging whether communication connection can be established with the cloud platform server or not;
the network transmission module is used for uploading the monitoring data to the cloud platform server through a network communication interface if communication connection can be established with the cloud platform server;
and the Bluetooth transmission module is used for establishing communication connection with the mobile terminal through Bluetooth if communication connection with the cloud platform server cannot be established, and transmitting the monitoring data to the mobile terminal.
9. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a processor, a memory and a transceiver, the memory configured to store instructions, the transceiver configured to communicate with other devices, the processor configured to execute the instructions stored in the memory, to cause the electronic device to perform the method of any one of claims 1-7.
CN202311125709.XA 2023-09-01 2023-09-01 Air quality monitoring data transmission method, system, storage medium and electronic equipment Pending CN117156605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311125709.XA CN117156605A (en) 2023-09-01 2023-09-01 Air quality monitoring data transmission method, system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311125709.XA CN117156605A (en) 2023-09-01 2023-09-01 Air quality monitoring data transmission method, system, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117156605A true CN117156605A (en) 2023-12-01

Family

ID=88907603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311125709.XA Pending CN117156605A (en) 2023-09-01 2023-09-01 Air quality monitoring data transmission method, system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117156605A (en)

Similar Documents

Publication Publication Date Title
CN110427785B (en) Equipment fingerprint acquisition method and device, storage medium and electronic device
US11115307B2 (en) Systems and methods for changing the frequency of monitoring data
CN110636075A (en) Operation and maintenance management and control and operation and maintenance analysis method and device
CN110347694B (en) Equipment monitoring method, device and system based on Internet of things
CN111611129B (en) Performance monitoring method and device of PaaS cloud platform
CN112685248A (en) Intelligent network card monitoring log obtaining method and device, electronic equipment and storage medium
CN112988485A (en) Simulation test method and device for power Internet of things equipment
CN111611573A (en) Data processing method for realizing terminal equipment switching, related equipment and medium
CN108877188B (en) Environment-friendly data concurrent acquisition and multi-network publishing method and device
CN107729209A (en) For the information monitoring method of server, device, equipment and storage medium
KR20230000927A (en) Scene detection method and device, electronic device, computer storage medium
CN109788251B (en) Video processing method, device and storage medium
CN115242894A (en) Data processing method, data processing device, storage medium and computer equipment
CN106992893A (en) The management method and device of router
CN112600703B (en) Network equipment remote access fault positioning method and device
CN110572383A (en) Big data monitoring method
JP6042243B2 (en) Monitoring system, monitoring server, and monitoring method
CN116032691B (en) Shooting range interconnection method, electronic equipment and readable storage medium
CN117156605A (en) Air quality monitoring data transmission method, system, storage medium and electronic equipment
CN111737084A (en) Information monitoring method and device, intelligent equipment, computer equipment and medium
US10516594B2 (en) Systems and methods for changing the frequency of monitoring data
CN115348333A (en) Data transmission method, system and equipment based on UDP (user Datagram protocol) double-end communication interaction
JP6341212B2 (en) Information collection system, server device, edge device, control method, and program
CN114827967A (en) Software updating method, Bluetooth device and storage medium
CN108334424B (en) Method for filtering redundant data of network communication management platform based on LPWAN technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination