Nothing Special   »   [go: up one dir, main page]

CN113423080A - Internet of things gateway data uploading method - Google Patents

Internet of things gateway data uploading method Download PDF

Info

Publication number
CN113423080A
CN113423080A CN202110677977.7A CN202110677977A CN113423080A CN 113423080 A CN113423080 A CN 113423080A CN 202110677977 A CN202110677977 A CN 202110677977A CN 113423080 A CN113423080 A CN 113423080A
Authority
CN
China
Prior art keywords
data
uploading
internet
message queue
cloud server
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
CN202110677977.7A
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.)
Beijing Jinher Software Co Ltd
Original Assignee
Beijing Jinher Software Co Ltd
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 Beijing Jinher Software Co Ltd filed Critical Beijing Jinher Software Co Ltd
Priority to CN202110677977.7A priority Critical patent/CN113423080A/en
Publication of CN113423080A publication Critical patent/CN113423080A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0268Traffic management, e.g. flow control or congestion control using specific QoS parameters for wireless networks, e.g. QoS class identifier [QCI] or guaranteed bit rate [GBR]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0278Traffic management, e.g. flow control or congestion control using buffer status reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/90Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Emergency Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Public Health (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method for uploading data of an internet of things gateway, which belongs to the field of internet of things gateways, and is characterized in that after data collected by internet of things sensing equipment is obtained, whether the data exceeds an early warning threshold value is judged, if yes, the data is directly uploaded to a cloud server, so that the data is conveniently and quickly processed, and the timeliness of uploading emergency data is improved; if the data does not exceed the early warning threshold value, the data is put into a message queue to wait for uploading to a cloud server, the data which does not exceed the early warning threshold value is not required to be sent immediately, and the requirement on the performance of uploading the data at the same time of the logistics gateway is not high. By the method, timeliness and data concurrency capability of uploading data by the logistics gateway are greatly improved, and timely uploading of the data is guaranteed.

Description

Internet of things gateway data uploading method
Technical Field
The invention relates to an internet of things gateway technology, in particular to an internet of things gateway data uploading method.
Background
The thing allies oneself with perception equipment: the system is used for collecting real-time data of the current environment, such as smoke concentration and combustible gas concentration; data of equipment operation, such as real-time temperature of disinfection of the disinfection cabinet, real-time intensity of ultraviolet disinfection, real-time temperature and humidity of the refrigerator, real-time temperature and humidity of a room, real-time pressure of a fire-fighting pipeline, real-time temperature of an electric wire and the like.
The gateway of the Internet of things: data collected by the internet of things sensing equipment are transmitted to the internet of things gateway through an LoRa protocol, the internet of things gateway processes the data, and the processed data are transmitted to the cloud server through a honeycomb (2G/3G/4G/5G), Wi-Fi or an Ethernet.
A plurality of thing allies oneself with perception equipment can be connected to the thing allies oneself with the gateway, but if the quantity of thing allies oneself with perception equipment is too much, when the data that the thing allies oneself with the gateway needs to be uploaded is too much, if upload simultaneously, too high to the requirement of the concurrent data of thing allies oneself with the gateway, if upload simultaneously, in case the emergency takes place, the thing allies oneself with the gateway can't in time upload data.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a method for uploading data of an internet of things gateway.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a method for uploading data of an Internet of things gateway comprises the following steps:
acquiring data acquired by an internet of things sensing device;
judging whether the data exceeds an early warning threshold value;
if yes, directly uploading to a cloud server; and if not, putting the message into a message queue to wait for uploading to the cloud server.
Further, before determining whether the data exceeds an early warning threshold, the method further includes:
acquiring a preset priority of the Internet of things sensing equipment;
if the preset priority of the internet of things sensing equipment is urgent, the data are directly uploaded to a cloud server; and if the preset priority of the Internet of things sensing equipment is not urgent, judging whether the data exceeds an early warning threshold value.
Further, the determining whether the data exceeds an early warning threshold includes:
and judging whether the data exceeds an early warning threshold value by adopting edge calculation.
Further, the placing the message queue to wait for uploading to the cloud server includes:
acquiring the data length in the message queue;
and when the data length exceeds a preset length, uploading all data in the message queue.
Further, still include:
when the data length does not exceed the preset length, acquiring the interval time from the last time of uploading the data in the message queue to the current time;
and if the interval time is greater than or equal to the preset time, uploading all the data in the message queue.
Further, the uploading all data in the message queue includes:
and compressing and sending all data in the message queue to the cloud server.
Further, the cloud server analyzes the data at regular time and optimizes the preset time and the preset length.
This application adopts above technical scheme, possesses following beneficial effect at least:
the technical scheme of the application provides a method for uploading data of an internet of things gateway, and the method comprises the steps of judging whether the data exceeds an early warning threshold value or not after the data collected by internet of things sensing equipment is obtained, and if the data exceeds the early warning threshold value, directly uploading the data to a cloud server, so that the data is conveniently and quickly processed, and the timeliness of uploading emergency data is improved; if the data does not exceed the early warning threshold value, the data is put into a message queue to wait for uploading to a cloud server, the data which does not exceed the early warning threshold value is not required to be sent immediately, and the requirement on the performance of uploading the data at the same time of the logistics gateway is not high. By the method, timeliness and data concurrency capability of uploading data by the logistics gateway are greatly improved, and timely uploading of the data is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for uploading data of an internet of things gateway according to an embodiment of the present invention;
fig. 2 is a flowchart of a specific method for uploading data of an internet of things gateway according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following detailed description of the technical solutions of the present invention is provided with reference to the accompanying drawings and examples. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, an embodiment of the present invention provides an internet of things gateway data uploading method, including the following steps:
acquiring data acquired by an internet of things sensing device;
judging whether the data exceeds an early warning threshold value;
if yes, directly uploading to a cloud server; and if not, putting the message into a message queue to wait for uploading to the cloud server.
According to the method for uploading the data of the internet of things gateway provided by the embodiment of the invention, after the data collected by the internet of things sensing equipment is obtained, whether the data exceeds an early warning threshold value is judged, if yes, the data is directly uploaded to a cloud server, so that the data is conveniently and quickly processed, and the timeliness of uploading the emergency data is improved; if the data does not exceed the early warning threshold value, the data is put into a message queue to wait for uploading to a cloud server, the data which does not exceed the early warning threshold value is not required to be sent immediately, and the requirement on the performance of uploading the data at the same time of the logistics gateway is not high. By the method, timeliness and data concurrency capability of uploading data by the logistics gateway are greatly improved, and timely uploading of the data is guaranteed.
Fig. 2 provides a specific method for uploading data of an internet of things gateway, which is a supplementary description of the above embodiment of the present invention, where before determining whether the data exceeds an early warning threshold, the method further includes:
acquiring a preset priority of the Internet of things sensing equipment; if the preset priority of the internet of things sensing equipment is urgent, the data are directly uploaded to a cloud server; and if the preset priority of the Internet of things sensing equipment is not urgent, judging whether the data exceeds an early warning threshold value. It can be understood that, the sensing factors of the internet of things sensing device are different, and different processing needs to be performed, for example, the temperature and humidity can be sensed by the internet of things sensing device sensing some factors such as temperature and humidity, and most of the acquired data is the temperature and humidity under normal conditions, so the preset priority of the internet of things sensing device is non-urgent; and the thing allies oneself with perception equipment of wanting to perceive factors such as coal gas, once perceiving the data, just need to report immediately, need not to judge whether this moment exceeds the threshold value. As soon as data is detected, it is reported immediately.
And adopting edge calculation to judge whether the data exceeds an early warning threshold value when judging whether the data exceeds the early warning threshold value. And (4) calculating and judging are carried out without adopting other equipment, and the calculation and the judgment can be directly carried out in the gateway of the Internet of things.
As an optional implementation manner of the embodiment of the present invention, the placing the message queue to wait for uploading to the cloud server includes:
acquiring the data length in the message queue; and when the data length exceeds a preset length, uploading all data in the message queue. When the data length does not exceed the preset length, acquiring the interval time from the last time of uploading the data in the message queue to the current time;
and if the interval time is greater than or equal to the preset time, uploading all the data in the message queue.
Optionally, the uploading all the data in the message queue further includes:
and compressing and sending all data in the message queue to the cloud server.
In the actual application process, after the cloud server receives the data, the data is analyzed at regular time, and the preset time and the preset length are optimized. Specifically, the cloud server receives feedback of different users on data uploading, screens descriptions of long or short uploading time from the feedback, counts the number of the feedbacks, and appropriately adjusts the preset time and the preset length according to the proportion of the number of the feedbacks of the long uploading time and the short uploading time. For example, if the ratio is 3: 2, the feedback upload time is more, and then will predetermine time and predetermine length and shorten one fifth, and concrete adjustment proportion can set up according to actual conditions certainly.
In order to more clearly illustrate the scheme of the present invention, an example of uploading the internet of things gateway in the practical application process is provided below.
The implementation steps are as follows:
s1: setting an early warning threshold value of each type of internet of things sensing equipment at a cloud server end, wherein the temperature threshold value of a refrigerator is 0-8 degrees;
s2: the method comprises the steps that the maximum delay uploading time of normal data of the internet of things sensing equipment and the maximum length of a message queue are set at a cloud server side;
s3: the cloud server transmits the set early warning threshold value, the length of the message queue and the maximum delay uploading time to a network gateway through a cellular (2G/3G/4G/5G), Wi-Fi or Ethernet;
s4: caching a network gateway local relation early warning threshold value, a message queue length and maximum delay uploading time;
s5: the Internet of things sensing equipment collects data in real time and uploads the data to the Internet of things gateway through LoRa;
s6: after receiving the data collected by the Internet of things sensing equipment, the Internet of things gateway carries out edge calculation and judges whether the data exceeds a threshold value;
s7: if the threshold value is exceeded, no waiting is performed, and the data is directly uploaded to a cloud server;
s8: if the threshold value is not exceeded, inserting the message into a message waiting queue;
s9: the method comprises the steps that the Internet of things gateway is started and scheduled at regular time, and whether the actual uploading time of the cloud server from the last uploading exceeds the maximum delay uploading time or not is judged;
s10: if the maximum delay uploading time is exceeded, all data in the message queue are taken out, integrated and compressed, uploaded to a cloud server, and updated in the last time;
s11: if the maximum delay uploading time is not exceeded, judging whether the data in the message queue exceeds the set maximum length of the message queue;
s12: if the number of the data in the message queue exceeds the preset value, all the data in the message queue are taken out, integrated and compressed, uploaded to a cloud server, and updated according to the last uploading time;
s13: the cloud server periodically analyzes the type of the data triggered and uploaded by each Internet of things gateway, and optimizes the maximum delay uploading time and the maximum length of the message queue;
s14: the loop S3-S13 continues.
According to the method provided by the embodiment of the invention, the threshold value of the data acquired by the internet of things sensing equipment and the strategy of processing the data by the internet of things gateway are preset, the urgent data are uploaded to the cloud server without blocking, the non-urgent data are inserted into the message queue, the data in the message queue are consumed regularly, the data are merged, compressed and processed, and the data are uploaded to the cloud server, so that the timeliness of uploading the data with high priority is ensured to the maximum extent, and the high concurrency processing capability of the internet of things gateway is also ensured to the maximum extent.
The cloud server regularly analyzes and triggers the category of the uploaded data, self-learning optimization is carried out, the optimization result is issued to the gateway equipment of the Internet of things, and the gateway equipment of the Internet of things executes the latest processing strategy, so that the performance is more and more excellent along with the time.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware associated with program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (7)

1. A method for uploading data of an Internet of things gateway is characterized by comprising the following steps:
acquiring data acquired by an internet of things sensing device;
judging whether the data exceeds an early warning threshold value;
if yes, directly uploading to a cloud server; and if not, putting the message into a message queue to wait for uploading to the cloud server.
2. The method of claim 1, wherein: before judging whether the data exceeds an early warning threshold value, the method further comprises the following steps:
acquiring a preset priority of the Internet of things sensing equipment;
if the preset priority of the internet of things sensing equipment is urgent, the data are directly uploaded to a cloud server; and if the preset priority of the Internet of things sensing equipment is not urgent, judging whether the data exceeds an early warning threshold value.
3. The method of claim 1, wherein: the determining whether the data exceeds an early warning threshold comprises:
and judging whether the data exceeds an early warning threshold value by adopting edge calculation.
4. The method of claim 1, wherein: the putting into the message queue waiting to be uploaded to the cloud server comprises:
acquiring the data length in the message queue;
and when the data length exceeds a preset length, uploading all data in the message queue.
5. The method of claim 4, further comprising:
when the data length does not exceed the preset length, acquiring the interval time from the last time of uploading the data in the message queue to the current time;
and if the interval time is greater than or equal to the preset time, uploading all the data in the message queue.
6. The method according to claim 4 or 5, characterized in that: the uploading all data in the message queue comprises:
and compressing and sending all data in the message queue to the cloud server.
7. The method of claim 6, wherein: and the cloud server analyzes the data at regular time and optimizes the preset time and the preset length.
CN202110677977.7A 2021-06-18 2021-06-18 Internet of things gateway data uploading method Pending CN113423080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110677977.7A CN113423080A (en) 2021-06-18 2021-06-18 Internet of things gateway data uploading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110677977.7A CN113423080A (en) 2021-06-18 2021-06-18 Internet of things gateway data uploading method

Publications (1)

Publication Number Publication Date
CN113423080A true CN113423080A (en) 2021-09-21

Family

ID=77789092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110677977.7A Pending CN113423080A (en) 2021-06-18 2021-06-18 Internet of things gateway data uploading method

Country Status (1)

Country Link
CN (1) CN113423080A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819432A (en) * 2010-03-23 2010-09-01 浙江大学 Beam pumping unit remote monitoring method and system based on wireless sensor network and TD-SCDMA (Time Division-Synchronization Code Division Multiple Access)
CN103929490A (en) * 2014-04-28 2014-07-16 中国科学院微电子研究所 Data transmission method of body area network system
CN105471958A (en) * 2015-08-03 2016-04-06 汉柏科技有限公司 Data processing system and method of internet of things
CN107204094A (en) * 2017-06-02 2017-09-26 武汉智在家科技有限责任公司 A kind of security alarm help system and method
WO2020019662A1 (en) * 2018-07-25 2020-01-30 北京小米移动软件有限公司 Information reporting method and apparatus, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819432A (en) * 2010-03-23 2010-09-01 浙江大学 Beam pumping unit remote monitoring method and system based on wireless sensor network and TD-SCDMA (Time Division-Synchronization Code Division Multiple Access)
CN103929490A (en) * 2014-04-28 2014-07-16 中国科学院微电子研究所 Data transmission method of body area network system
CN105471958A (en) * 2015-08-03 2016-04-06 汉柏科技有限公司 Data processing system and method of internet of things
CN107204094A (en) * 2017-06-02 2017-09-26 武汉智在家科技有限责任公司 A kind of security alarm help system and method
WO2020019662A1 (en) * 2018-07-25 2020-01-30 北京小米移动软件有限公司 Information reporting method and apparatus, and storage medium

Similar Documents

Publication Publication Date Title
JP4839152B2 (en) Sensor network system and sensor network data processing method
CN107040415B (en) Terminal, data reporting method, server and data receiving method
CN109460339B (en) Log streaming computing system
US11131972B2 (en) Performance optimization in a building automation system
CN102625349A (en) Method for processing data under alarm storm
CN111585837B (en) Internet of things data link monitoring method and device, computer equipment and storage medium
CN115173567A (en) Monitoring method, device, server and medium for intelligent power distribution room
CN102609532A (en) Method and device for monitoring file directory
CN103440190A (en) Equipment failure warning method, device and CIM system
CN110445682B (en) Method, server, equipment and system for monitoring survival state of networking node
JP5884812B2 (en) Communication apparatus and wireless communication system
CN113423080A (en) Internet of things gateway data uploading method
CN113592451B (en) Civil engineering sporadic state monitoring data acquisition method, storage medium, gateway and system
JP2009253403A (en) Log level collecting device and log level collection method
CN116489019B (en) Intelligent visual signaling channel management method, system and medium
WO2024060657A1 (en) Method and apparatus for monitoring whole-house air environment, and device and storage medium
CN111263120A (en) Video equipment online time counting method and device based on stream calculation and terminal
CN117578740A (en) Digital intelligent electricity management system and method
CN110838760A (en) Power grid fault data collection method and device
CN114003379A (en) Method and device for improving data acquisition continuity of Internet of things
CN104158830A (en) Power environment monitoring system, and message sensing method and device
US20170127356A1 (en) Method and apparatus for prolonging lasting time of inactive mode
JP2014216764A (en) Gateway device and program
US20150163113A1 (en) Communication control apparatus
CN111726822A (en) Trap message processing method and data synchronization management device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210921