CN112398564B - Random uploading method of equipment data - Google Patents

Random uploading method of equipment data Download PDF

Info

Publication number
CN112398564B
CN112398564B CN202011213374.3A CN202011213374A CN112398564B CN 112398564 B CN112398564 B CN 112398564B CN 202011213374 A CN202011213374 A CN 202011213374A CN 112398564 B CN112398564 B CN 112398564B
Authority
CN
China
Prior art keywords
time
random
equipment
data
reporting period
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.)
Active
Application number
CN202011213374.3A
Other languages
Chinese (zh)
Other versions
CN112398564A (en
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 Zhixin Yida Technology Co ltd
Guangdong Yuanyuan Technology Co ltd
Original Assignee
Beijing Zhixin Yida Technology Co ltd
Guangdong Yuanyuan 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 Beijing Zhixin Yida Technology Co ltd, Guangdong Yuanyuan Technology Co ltd filed Critical Beijing Zhixin Yida Technology Co ltd
Priority to CN202011213374.3A priority Critical patent/CN112398564B/en
Publication of CN112398564A publication Critical patent/CN112398564A/en
Application granted granted Critical
Publication of CN112398564B publication Critical patent/CN112398564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • 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]

Abstract

A random uploading method of equipment data comprises an NTP synchronization step for NTP synchronization of equipment and a random reporting period calculation step for calculating a random reporting period value; after NTP synchronization is carried out on the equipment, effective data are collected, cached and sorted at the same time, and finally the effective data are uploaded in the random reporting period, so that random uploading of the equipment data is realized; the random reporting period is calculated in the following steps: generating a plurality of groups of data reporting period values positioned in a reporting period interval by acquiring an equipment SN number as a random seed and according to the quantity of the random seed, and then taking out the period values as the random reporting period by using the last three bits of the equipment SN as index values; by optimizing the processing of the internal reporting period of the equipment, staggering the reporting time, avoiding centralized reporting and collecting data by using the whole time, the processing efficiency of cloud data is optimized, and the contrast and effectiveness are improved.

Description

Random uploading method of equipment data
Technical Field
The invention relates to the field of network application, in particular to a random uploading method of equipment data.
Background
With the development of the internet of things equipment, more and more equipment is added into the internet of things camp, especially in a mode of networking through 2G/3G/4G/5G communication base stations of mobile operators, if the equipment deployment is concentrated, a large amount of data transmission is carried out on all the equipment, so that not little pressure is caused on the load of the base stations, and even a base station server is down, and other base station resources are influenced.
Disclosure of Invention
In order to solve the problem generated when an area with higher equipment deployment density reports in a data set, the invention provides a random uploading method of equipment data, which uploads the data randomly by setting a random reporting period, improves the transmission efficiency and reduces the load pressure of a base station, and the specific technical content is as follows:
a random uploading method of equipment data, including NTP synchronization step used for NTP synchronization to the apparatus, and report the periodic calculation step at random for calculating and reporting the periodic value at random; and after the NTP synchronization is carried out on the equipment, effective data are collected, cached and sorted at the point time, and finally the effective data are uploaded in the random reporting period.
In one or more embodiments of the present invention, the method for randomly uploading device data includes a data acquisition and sorting stage for acquiring, caching, and sorting valid data at a certain time, and a data uploading stage for performing NTP synchronization and random reporting period calculation on the device data, and uploading the valid data in the random reporting period after the data acquisition and sorting stage.
In one or more embodiments of the present invention, the data collecting and sorting stage includes a step of calculating a difference between a current time and a next hour, and then performing effective data collection when the hour is reached.
In one or more embodiments of the present invention, the step of calculating the difference between the current time and the next hour time comprises: the method comprises the steps of firstly obtaining a time stamp of current equipment and calculating a time stamp of next integral point time, and then calculating a difference value between the current equipment and the next integral point time.
In one or more embodiments of the present invention, the effective data collection comprises the steps of: and after the difference between the current equipment and the next hour is calculated, a timer is used for counting down the difference, and after the counting down is finished, the effective data is collected, cached and sorted.
In one or more embodiments of the present invention, the step of calculating the timestamp of the next hour comprises: firstly, a minute value of the time of the current equipment and a minute value of the time of the next integral point are obtained, a minute difference value is calculated, then the integral time of the current equipment is added to obtain an integral time point of the time of the next integral point, then the second number is set to be 0, and finally the integral time point is converted into a time stamp of the next integral point.
In one or more embodiments of the present invention, the integer time is set as one integer time in units of 5 minutes per time interval, such as 5 minutes, 10 minutes, 15 minutes, and the like, and the time is 0 second of the integer minute.
In one or more embodiments of the present invention, the step of calculating the random reporting period includes: the method comprises the steps of generating a plurality of groups of data reporting period values positioned in a reporting period interval by acquiring an equipment SN number as a random seed according to the number of the random seeds, and taking the period values of the equipment SN as the random reporting period by using the last three bits of the equipment SN as index values.
In one or more embodiments of the present invention, the reporting period interval is set according to a time from when data is uploaded to when the data is uploaded after the device data sorting is completed.
In one or more embodiments of the present invention, the NTP synchronization is performed by first obtaining the current time of the device, comparing the current time with the network time, and correcting the device time to synchronize the device time with the network time if the current time is inconsistent with the network time.
The beneficial effects of the invention are: through the processing optimization of the reporting period inside the equipment, the occupation of large batches of equipment on base station resources, circuit occupation and high load brought by centralized deployment are avoided, then a random uploading mode is realized, the internet of things equipment staggers reporting peaks, and meanwhile, the processing efficiency of cloud data is optimized through a whole-time data acquisition mode, so that the data of different equipment at the same time are highly consistent, the contrast and the effectiveness are improved, the difference of environmental data is highlighted, and the data is more valuable and meaningful.
Drawings
Fig. 1 is a schematic flow chart of the data acquisition and sorting stage of the present invention.
Fig. 2 is a schematic flow chart of random reporting period calculation according to the present invention.
Detailed Description
The scheme of the application is further described as follows:
a random uploading method of equipment data comprises an NTP synchronization step for NTP synchronization of equipment and a random reporting period calculation step for calculating a random reporting period value; after NTP synchronization is carried out on the equipment, effective data are collected, cached and sorted at the same time, and finally the effective data are uploaded in the random reporting period; the random uploading method of the equipment data comprises a data acquisition and arrangement stage for acquiring, caching and arranging effective data at the same time, and a data uploading stage for executing equipment NTP synchronization and random reporting period calculation and uploading the effective data in the random reporting period after the data acquisition and arrangement stage; the data acquisition and sorting stage comprises the steps of firstly calculating the difference value between the current time and the next integral point time, and then acquiring effective data when the integral point time is reached; by optimizing the processing of the internal reporting period of the equipment, staggering the reporting time, avoiding centralized reporting and collecting data by using the whole time, the processing efficiency of cloud data is optimized, and the contrast and effectiveness are improved.
Referring to fig. 1, the NTP synchronization steps of the apparatus are: firstly, acquiring the current time of equipment, comparing the current time with the network time, correcting the equipment time when the current time is inconsistent with the network time to ensure that the equipment time is synchronous with the network time, ensuring the time accuracy of reported data, and simultaneously providing data support for the effective data acquisition cache for the whole time;
the step of calculating the difference between the current time and the next hour is: firstly, acquiring a time stamp of current equipment and calculating a time stamp of next integral point time, and then calculating a difference value between the current equipment and the next integral point time; preparing for caching data at the next integral point time;
the effective data acquisition steps are as follows: after the difference between the current equipment and the next hour is calculated, a timer is used for counting down the difference, and after the counting down is finished, the effective data acquisition, caching and sorting operations are carried out to wait for uploading; the data are collected at the same time, so that the processing efficiency of cloud data is optimized, the data of different devices at the same time are highly consistent, and the contrast and effectiveness are improved;
the time stamp of the next integral point time is calculated as follows: firstly, obtaining a minute value of the time of the current equipment and a minute value of the time of the next integral point, calculating a minute difference value, adding the complete time of the current equipment to obtain a complete time point of the time of the next integral point, then setting the second number to 0, and finally converting the complete time point into a time stamp of the next integral point, for example: the current time is 09 minutes, 08 seconds, a minute value is extracted, the minute value of the next integral point is 10, the minute difference value between the current time and the minute value is 2, the difference value 2 is added with the current complete time to obtain 09 minutes, 10 minutes and 12 seconds, then the number of seconds is set to be 0, the next complete time point is obtained, the 09 minutes, 10 minutes and 0 seconds, the integral point time is accurately kept at the integral minutes, zero seconds, and finally the time is converted into a time stamp to facilitate comparison and calculation;
the integer time is set as one integer time with 5 minutes as a unit in each time interval, such as 5 minutes, 10 minutes, 15 minutes, and the like, and the time is 0 second of the integer minute, in this embodiment, 5 minutes, 10 minutes, 15 minutes, and the like are used as one integer time in each time interval, that is, the first integer time is 5 minutes, the second integer time is 10 minutes, and the third integer time is 15 minutes, and so on, which is more convenient for data comparison.
Referring to fig. 2, the step of calculating the random reporting period is as follows: by acquiring an equipment SN number as a random seed, generating a plurality of groups of data reporting period values in a reporting period interval according to the number of the random seeds, then using the last three bits of the equipment SN as index values, taking out the period values as the random reporting periods, setting the number of the reporting period values to be from 1 to 1000, generating at least 1 reporting period value on a side, generating 1000 reporting period values at most, and if the number of the equipment is 50, generating 50 reporting period values, and by acquiring the equipment SN number as the random seed, avoiding the number collision of the random seed and better distinguishing the same batch of equipment, and by optimizing the processing of the internal reporting period of the equipment, staggering the reporting time, and avoiding the occupation of large batches of equipment on base station resources caused by centralized reporting;
the reporting period interval is set according to the time from the start of data uploading to the completion of data uploading after the completion of the device data arrangement, in this embodiment, the time from the start of data uploading to the completion of data uploading is within 90 minutes, and the time from the start of data uploading to the completion of data uploading is within 120 minutes, so that the reporting period is set from 90 minutes to 120 minutes, and the reporting period interval is set, which is more favorable for the calculation of the reporting period value.
The above preferred embodiments should be considered as examples of the embodiments of the present application, and technical deductions, substitutions, improvements and the like similar to, similar to or based on the embodiments of the present application should be considered as the protection scope of the present patent.

Claims (7)

1. A random uploading method of equipment data is characterized in that: the method comprises an NTP synchronization step for carrying out NTP synchronization on equipment and a random reporting period calculation step for calculating a random reporting period value; after NTP synchronization is carried out on the equipment, effective data are collected, cached and sorted at the same time, and finally the effective data are uploaded in the random reporting period;
the method comprises a data acquisition and sorting stage for acquiring, caching and sorting effective data at the same time, and a data uploading stage for executing equipment NTP synchronization and random reporting period calculation and uploading effective data in the random reporting period after the data acquisition and sorting stage;
the random reporting period is calculated in the following steps: acquiring an SN (device SN) number as a random seed, generating a plurality of groups of data reporting period values positioned in a reporting period interval according to the number of the random seeds, and taking the period values of the SN number as the random reporting period by using the last three bits of the SN number as index values;
and the reporting period interval is set according to the time from the start of data uploading to the completion of data uploading after the finishing of the equipment data arrangement.
2. The random uploading method of device data according to claim 1, wherein: the data acquisition and sorting stage comprises the steps of firstly calculating the difference value between the current time and the next integral point time, and then acquiring effective data when the integral point time is reached.
3. The random uploading method of device data according to claim 2, wherein: the step of calculating the difference between the current time and the next hour is: the method comprises the steps of firstly obtaining a time stamp of current equipment and calculating a time stamp of next integral point time, and then calculating a difference value between the current equipment and the next integral point time.
4. The random uploading method of device data according to claim 2, wherein: the effective data acquisition steps are as follows: and after calculating the difference between the current equipment and the next hour, performing difference countdown by using a timer, and performing effective data acquisition, caching and sorting operation after countdown is finished.
5. The random uploading method of device data according to claim 3, wherein: the step of calculating the timestamp of the next hour is as follows: firstly, a minute value of the time of the current equipment and a minute value of the time of the next integral point are obtained, a minute difference value is calculated, then the integral time of the current equipment is added to obtain an integral time point of the time of the next integral point, then the second number is set to be 0, and finally the integral time point is converted into a time stamp of the next integral point.
6. The random uploading method of device data according to claim 5, wherein: the integral time is set as one integral time in units of 5 minutes, such as 5 minutes, 10 minutes, 15 minutes and the like, for each time interval, and the time is 0 second of the integral minute.
7. The random uploading method of device data according to claim 1, wherein: and the equipment NTP synchronization is to firstly acquire the current time of the equipment, then compare the current time with the network time, and correct the equipment time when the current time is inconsistent with the network time so as to synchronize the equipment time with the network time.
CN202011213374.3A 2020-11-04 2020-11-04 Random uploading method of equipment data Active CN112398564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011213374.3A CN112398564B (en) 2020-11-04 2020-11-04 Random uploading method of equipment data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011213374.3A CN112398564B (en) 2020-11-04 2020-11-04 Random uploading method of equipment data

Publications (2)

Publication Number Publication Date
CN112398564A CN112398564A (en) 2021-02-23
CN112398564B true CN112398564B (en) 2023-03-31

Family

ID=74598065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011213374.3A Active CN112398564B (en) 2020-11-04 2020-11-04 Random uploading method of equipment data

Country Status (1)

Country Link
CN (1) CN112398564B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018010763A1 (en) * 2016-07-11 2018-01-18 Huawei Technologies Co., Ltd. Secure device location detection mechanism by pseudo-random sequences
CN109561400A (en) * 2015-05-29 2019-04-02 Oppo广东移动通信有限公司 Method, base station and the terminal of machine type communication
CN110913496A (en) * 2018-09-14 2020-03-24 电信科学技术研究院有限公司 Information reporting method, information acquisition method, terminal and network equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9154249B2 (en) * 2012-06-13 2015-10-06 Simmonds Precision Products, Inc. System and method for synchronizing wireless devices without sending timestamp data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561400A (en) * 2015-05-29 2019-04-02 Oppo广东移动通信有限公司 Method, base station and the terminal of machine type communication
WO2018010763A1 (en) * 2016-07-11 2018-01-18 Huawei Technologies Co., Ltd. Secure device location detection mechanism by pseudo-random sequences
CN110913496A (en) * 2018-09-14 2020-03-24 电信科学技术研究院有限公司 Information reporting method, information acquisition method, terminal and network equipment

Also Published As

Publication number Publication date
CN112398564A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN100346591C (en) Initial cell search algorithm
CN109391629B (en) Data processing method of rail transit comprehensive monitoring system
CN102014172B (en) Method for automatically searching electric meter address below collector
CN109982361B (en) Signal interference analysis method, device, equipment and medium
CN111372209A (en) Signaling data processing method, device, equipment and medium
CN111178587A (en) Spark framework-based short-term power load rapid prediction method
CN112398564B (en) Random uploading method of equipment data
CN111008245A (en) WAMS data sharing method for scheduling mechanism above provincial level based on regulation cloud
CN113780398A (en) Wireless network link quality prediction method and system
CN111339211A (en) Method, device, equipment and medium for analyzing network problems
CA2242504A1 (en) Network information searching apparatus and network information searching method
CN116644136A (en) Data acquisition method, device, equipment and medium for increment and full data
CN112800140B (en) High-reliability data acquisition method based on blockchain predictor
CN1898983A (en) Mobile communication system and control device
CN113194011B (en) Automatic establishment method and device for radio electromagnetic signal environment
CN112234995A (en) Signaling compression method and system based on space-time coding
CN113115107A (en) Handheld video acquisition terminal system based on 5G network
CN111065125A (en) Diagnostic analysis method for short residence in network
CN111832805A (en) Economic early warning analysis system and method based on electric power big data
CN114286203B (en) Electric meter nuclear data distribution processing system and method based on big data
CN112235825B (en) Method for analyzing random MAC (media access control) by WIFI (wireless fidelity) probe equipment based on Internet of things
CN116112985A (en) 5G network slicing system based on intelligent power grid
CN114530943A (en) Novel voltage sag layered traceability monitoring and analyzing system
CN116962392A (en) Transmission method of photovoltaic intelligent operation and maintenance data
CN108398641B (en) Battery data processing method and battery data server

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
TA01 Transfer of patent application right

Effective date of registration: 20210312

Address after: 518000 Tangtou community, Shiyan street, Bao'an District, Shenzhen City, Guangdong Province

Applicant after: Guangdong Yuanyuan Technology Co.,Ltd.

Applicant after: Beijing Zhixin Yida Technology Co.,Ltd.

Address before: 518000 Tangtou community, Shiyan street, Bao'an District, Shenzhen City, Guangdong Province

Applicant before: Guangdong Yuanyuan Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant