CN114430412A - Real-time data uploading method of Internet of things based on polling numerical detection - Google Patents

Real-time data uploading method of Internet of things based on polling numerical detection Download PDF

Info

Publication number
CN114430412A
CN114430412A CN202011184114.8A CN202011184114A CN114430412A CN 114430412 A CN114430412 A CN 114430412A CN 202011184114 A CN202011184114 A CN 202011184114A CN 114430412 A CN114430412 A CN 114430412A
Authority
CN
China
Prior art keywords
real
polling
time data
data
internet
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
CN202011184114.8A
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.)
Foshan Diandu Wulian Technology Co ltd
Original Assignee
Foshan Diandu Wulian Technology 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 Foshan Diandu Wulian Technology Co ltd filed Critical Foshan Diandu Wulian Technology Co ltd
Priority to CN202011184114.8A priority Critical patent/CN114430412A/en
Publication of CN114430412A publication Critical patent/CN114430412A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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]
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things

Abstract

The invention belongs to the technical field of Internet of things real-time data uploading, and particularly relates to a polling numerical detection-based Internet of things real-time data uploading method, which comprises the following steps: s1, initializing the cache of the last collection, S2, executing polling once, and reading the implementation data of the equipment; the invention reduces the pressure of the server by using the edge algorithm to the utmost extent. In the master-slave mode, the gateway can continuously send reading instructions to the equipment, the equipment can continuously return real-time data, the continuous and cyclic action is called polling, after the real-time data are obtained through polling, the data are not uploaded immediately, an edge algorithm is used for detecting the real-time data, whether the value is changed or not is detected, if the value is changed, the data are uploaded, and if the value is not changed, the data are not uploaded. Real-time data uploading based on polling numerical detection can greatly reduce delay of the real-time data without increasing pressure of a server, and maintenance cost of the server is reduced.

Description

Real-time data uploading method of Internet of things based on polling numerical detection
Technical Field
The invention belongs to the technical field of Internet of things real-time data uploading, and particularly relates to a polling numerical detection-based Internet of things real-time data uploading method.
Background
Currently, the internet of things is in a rapid development stage, and monitoring of real-time data is a necessary function of the internet of things. In the monitoring of real-time data, one of the most important links is to collect real-time data. Most bottom layer data acquisition protocols on the market are in a master-slave mode, namely, a gateway actively sends an instruction to equipment, and the equipment passively returns real-time data. Due to the mechanism of the master-slave mode, after the value of the device is changed, the gateway cannot know the value change of the device in real time, so that the displayed real-time data is delayed and has no real-time property. In order to solve the problem, the gateway may increase the frequency of acquiring data to reduce the display delay of real-time data, but increasing the frequency of acquiring data means increasing the frequency of uploading data, and an excessively high frequency of uploading data may increase the processing frequency of the server, resulting in an increase in server pressure, a waste of a large amount of server resources, and a consumption of a large amount of broadband traffic, which may increase the maintenance cost of the server.
Disclosure of Invention
To solve the problems set forth in the background art described above. The invention provides a real-time data uploading method of the Internet of things based on polling numerical detection, which has the characteristics of reducing the delay of real-time data and the maintenance cost of a server.
In order to achieve the purpose, the invention provides the following technical scheme: the method for uploading the real-time data of the Internet of things based on polling numerical detection comprises the following steps:
s1, initializing the cache of the last acquisition;
s2, executing one polling and reading the implementation data of the equipment;
s3, comparing the real-time data with the cache acquired last time;
s4, judging whether the numerical values are equal;
s5, uploading the latest real-time data;
and S6, setting a waiting polling interval timer.
Preferably, if the values of S4 are equal, it indicates that it is not necessary to upload data, and directly complete a value check, and directly jump to S6, when the timer completes timing, jump to S3 to continue polling value check, and if the values are not equal, indicate that the data has changed, and need to upload to the server, jump to S5
Preferably, after the cache is opened in S1, the opened cache is initialized, all real-time data are marked as not-acquired, and when the first polling is performed, all the acquired data are immediately uploaded once.
Preferably, the S3 uploads the latest real-time data to the server, and then updates the cached data are needed, and overwrites the latest real-time data in the cache of the last acquisition, so as to facilitate the detection of the change of the value acquired next time, and then the process jumps to S6.
Preferably, in S6, after the timer is finished, the process jumps to S3 to continue polling value detection.
Preferably, the time length of the upload period in S5 is a variable fixed value, and the time length of the upload period is related to the network condition and the amount of data.
Compared with the prior art, the invention has the beneficial effects that:
the invention reduces the pressure of the server by using the edge algorithm to the utmost extent. In the master-slave mode, the gateway can continuously send reading instructions to the equipment, the equipment can continuously return real-time data, the continuous and cyclic action is called polling, after the real-time data are obtained through polling, the data are not uploaded immediately, an edge algorithm is used for detecting the real-time data, whether the value is changed or not is detected, if the value is changed, the data are uploaded, and if the value is not changed, the data are not uploaded. Real-time data uploading based on polling numerical detection can greatly reduce delay of the real-time data without increasing pressure of a server, and maintenance cost of the server is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic flow diagram of the system of the present invention;
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
Referring to fig. 1, the present invention provides the following technical solutions: the method for uploading the real-time data of the Internet of things based on polling numerical detection comprises the following steps:
s1, initializing the last acquired cache, opening up an acquisition cache after the gateway enters the acquisition state for storing the last acquired data, initializing the opened cache after opening up the cache, marking all real-time data as the non-acquisition state, and uploading all the acquired data once when executing the first polling;
s2, executing one polling, reading the implementation data of the equipment, and acquiring the real-time data of the equipment through S2;
s3, comparing the real-time data with the cache acquired last time;
s4, judging whether the numerical values are equal, if so, indicating that data uploading is not necessary, directly finishing one-time numerical value detection, directly jumping to S6, after the timer finishes timing, jumping to S3 to continue polling numerical value detection, if not, indicating that the data is changed, needing to be uploaded to a server, and jumping to S5;
s5, uploading the latest real-time data to a server, then updating the cached data, covering the latest real-time data in the last acquired cache, facilitating the change detection of the value acquired next time, and then jumping to S6;
and S6, setting a waiting polling interval timer, and jumping to S3 to continue polling numerical value detection after the timer finishes timing.
Specifically, the time length of the upload period in S5 is a changeable fixed value, and the time length of the upload period is related to the network condition and the amount of data.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. The real-time data uploading method of the Internet of things based on polling numerical detection is characterized by comprising the following steps: the method comprises the following steps:
s1, initializing the last acquired cache, and opening up an acquisition cache after the gateway enters an acquisition state to store the last acquired data;
s2, executing one polling, reading the device implementation data, and acquiring the real-time data of the device in the step;
s3, comparing the real-time data with the cache acquired last time;
s4, judging whether the numerical values are equal;
s5, uploading the latest real-time data;
and S6, setting a waiting polling interval timer.
2. The internet of things real-time data uploading method based on polling numerical detection as claimed in claim 1, wherein: if the values of the S4 are equal, the data do not need to be uploaded, the numerical value detection is directly finished once, the step is directly switched to S6, when the timer finishes timing, the step is switched to S3 to continue polling numerical value detection, and if the values are not equal, the step is switched to S5, the data are changed, the data need to be uploaded to a server.
3. The internet of things real-time data uploading method based on polling numerical detection as claimed in claim 1, wherein: after the S1 opens the cache, the opened cache is initialized, all real-time data are marked to be in an unrecovered state, and when the first polling is executed, all the acquired data are uploaded once.
4. The internet of things real-time data uploading method based on polling numerical detection as claimed in claim 1, wherein: the S3 uploads the latest real-time data to the server, and then the cached data needs to be updated, and the latest real-time data is overwritten into the cache acquired last time, so that the value change detection acquired next time is facilitated, and then the process jumps to S6.
5. The internet of things real-time data uploading method based on polling numerical detection as claimed in claim 1, wherein: and in the step S6, after the timer finishes counting, the process jumps to the step S3, and the polling numerical value detection is continued.
6. The internet of things real-time data uploading method based on polling numerical detection as claimed in claim 1, wherein: the time length of the upload period in S5 is a changeable fixed value, and the time length of the upload period is related to the network condition and the amount of data.
CN202011184114.8A 2020-10-29 2020-10-29 Real-time data uploading method of Internet of things based on polling numerical detection Pending CN114430412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011184114.8A CN114430412A (en) 2020-10-29 2020-10-29 Real-time data uploading method of Internet of things based on polling numerical detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011184114.8A CN114430412A (en) 2020-10-29 2020-10-29 Real-time data uploading method of Internet of things based on polling numerical detection

Publications (1)

Publication Number Publication Date
CN114430412A true CN114430412A (en) 2022-05-03

Family

ID=81309581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011184114.8A Pending CN114430412A (en) 2020-10-29 2020-10-29 Real-time data uploading method of Internet of things based on polling numerical detection

Country Status (1)

Country Link
CN (1) CN114430412A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120170569A1 (en) * 2011-01-04 2012-07-05 Apple Inc. Adaptive timers for polling in a mobile wireless device
CN102724291A (en) * 2012-05-23 2012-10-10 北京经纬恒润科技有限公司 Vehicle network data acquisition method, unit and system
CN109962980A (en) * 2019-03-20 2019-07-02 北京易沃特科技有限公司 A kind of data uploading method based on Internet of Things, device, equipment and medium
CN110324420A (en) * 2019-07-02 2019-10-11 广东华咨圣泰科技有限公司 A kind of high efficient data capture transmission control protocol
CN110958190A (en) * 2019-11-28 2020-04-03 上海上实龙创智慧能源科技股份有限公司 Industrial Internet of things data real-time uploading method based on edge computing gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120170569A1 (en) * 2011-01-04 2012-07-05 Apple Inc. Adaptive timers for polling in a mobile wireless device
CN102724291A (en) * 2012-05-23 2012-10-10 北京经纬恒润科技有限公司 Vehicle network data acquisition method, unit and system
CN109962980A (en) * 2019-03-20 2019-07-02 北京易沃特科技有限公司 A kind of data uploading method based on Internet of Things, device, equipment and medium
CN110324420A (en) * 2019-07-02 2019-10-11 广东华咨圣泰科技有限公司 A kind of high efficient data capture transmission control protocol
CN110958190A (en) * 2019-11-28 2020-04-03 上海上实龙创智慧能源科技股份有限公司 Industrial Internet of things data real-time uploading method based on edge computing gateway

Similar Documents

Publication Publication Date Title
US10187470B2 (en) Gateway device and sensor data collection system
WO2021129086A1 (en) Traffic prediction method, device, and storage medium
CN103780445B (en) A kind of network flow monitoring system and method for threshold adaptive amendment
CN106197468B (en) The method and system of pedometer step number renewal
CN109246210B (en) Internet of things communication method and device
CN102999500A (en) Statistical method and system for click rate
CN101441629A (en) Automatic acquiring method of non-structured web page information
CN110890998A (en) Method and device for determining threshold
CN112257947A (en) Method, device and equipment for predicting temperature and humidity of cigarette making environment
CN112255951A (en) Plant growth management and control method, device and storage medium
CN115755564A (en) Alarm clock control method based on sleep stage prediction, radar and storage medium
CN114282721A (en) Pollutant forecast model training method and device, electronic equipment and storage medium
CN114430412A (en) Real-time data uploading method of Internet of things based on polling numerical detection
CN116980958B (en) Radio equipment electric fault monitoring method and system based on data identification
CN107948288B (en) Data acquisition and complement method capable of saving flow
CN113123955B (en) Plunger pump abnormity detection method and device, storage medium and electronic equipment
CN113537160B (en) Ball mill load measuring method, ball mill load measuring device, electronic equipment and medium
CN204347567U (en) A kind of intelligent sensor of intelligent acquisition agricultural production data
CN113709582B (en) Bandwidth measurement method and device
CN107545065B (en) User interest calibration method and system and personalized recommendation system
US20220222573A1 (en) Running tests in data digest machine-learning model
CN111327825B (en) Image initialization method based on user scene and camera
AU2021204794A1 (en) Systems and methods for associating website visitors with a sticky dynamic internet protocol (ip) address
US11431601B2 (en) System and methods for providing waveforms over wireless systems from power monitors
CN108694357A (en) Method, apparatus and computer storage media for In vivo detection

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20220503

WD01 Invention patent application deemed withdrawn after publication