CN109962980A - A kind of data uploading method based on Internet of Things, device, equipment and medium - Google Patents

A kind of data uploading method based on Internet of Things, device, equipment and medium Download PDF

Info

Publication number
CN109962980A
CN109962980A CN201910213614.0A CN201910213614A CN109962980A CN 109962980 A CN109962980 A CN 109962980A CN 201910213614 A CN201910213614 A CN 201910213614A CN 109962980 A CN109962980 A CN 109962980A
Authority
CN
China
Prior art keywords
data
persistant
transmitted
collection point
predetermined 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.)
Pending
Application number
CN201910213614.0A
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 Easy Voight Technology Co Ltd
Original Assignee
Beijing Easy Voight 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 Easy Voight Technology Co Ltd filed Critical Beijing Easy Voight Technology Co Ltd
Priority to CN201910213614.0A priority Critical patent/CN109962980A/en
Publication of CN109962980A publication Critical patent/CN109962980A/en
Pending legal-status Critical Current

Links

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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The present invention provides a kind of data uploading methods based on Internet of Things, it is compared by real-time collection value and the collection value of last moment of the initial configuration file to each collection point, it can determine changed collection point and not changed collection point, by uploading the corresponding data of collection point all properties of data variation occur and the collection point of data variation does not occur mark and data mode, the size for uploading data packet can be reduced, to reduce transmission quantity, the treatment effeciency for promoting server, cuts operating costs.Also, by the data stored in above-mentioned predetermined period, the delta data at moment each in a cycle can be uploaded to management platform server, user is made to obtain more comprehensive collection value.

Description

A kind of data uploading method based on Internet of Things, device, equipment and medium
Technical field
The present invention relates to data uploading file fields, and in particular to a kind of data uploading method based on Internet of Things, device, Equipment and medium.
Background technique
In the prior art, in data upload process, the data for needing to upload are serialized with the data structure of xml or json To be transmitted to server by http agreement or Transmission Control Protocol after byte stream with different data transfer modes, server is received Data are deserialized as data object after data, carry out business processing or storage.
1.1 data transfer mode
It periodically uploads, the data of setting internet-of-things terminal equipment upload the period, in each period by current latest data It is sent to server.
Subscribing manner, server subscribe to data variation to internet-of-things terminal equipment, then will be newest once data send variation Data be sent to server.
1.2 data structure
XML: extending mark language (Extensible Markup Language, XML), for marking electronic document to make it With structural markup language, flag data can be used to, define data type, be a kind of label for allowing user to oneself The original language that language is defined.XML carrys out tissue number using DTD (document type definition) document type definition According to;Uniform format, cross-platform and language early have become industry the recognized standard.
XML is the subset of standard generalized markup language (SGML), is very suitable to Web transmission.XML provides unified method Description and exchange are independently of application program or the structural data of supplier.
A kind of JSON:JSON (JavaScript Object Notation) data interchange format of lightweight has good Good readable and convenient for quickly writing characteristic.Data exchange can be carried out between different platform.JSON is very high using compatibility , be totally independent of language text format, while also have similar to C language habit (including C, C++, C#, Java, JavaScript, Perl, Python etc.) system behavior.These characteristics make JSON become ideal data interchange language.
JSON is based on JavaScript Programming Language, Standard ECMA-262 3rd The a subset of Edition-December 1999.
1.3 Data Transport Protocol
The transmission of http agreement: HTTP is the contracting of Hyper Text Transfer Protocol (hypertext transfer protocol) It writes.Its development is world wide web association (World Wide Web Consortium) and Internet work group IETF (Internet Engineering Task Force) result of the joint efforts, (they) have finally issued a series of RFC, RFC 1945 define HTTP/1.0 version.Wherein foremost is exactly RFC 2616.RFC 2616 defines what today generally used One version --- HTTP 1.1.
Http protocol (HyperText Transfer Protocol, hypertext transfer protocol) is for from www server Transportation protocol of the transmission hypertext to local browser.It can make browser more efficient, reduce network transmission.It is not only Guarantee that computer correctly rapidly transmits hypertext document, which part in transferring documents, and any partial content also determined Show (such as text is prior to figure) first.
HTTP is an application layer protocol, is the client-server model of a standard by requesting and response is constituted. HTTP is a stateless agreement.
Transmission Control Protocol transmission: TCP (Transmission Control Protocol transmission control protocol) be it is a kind of towards Connection, reliable, the transport layer communication protocol based on byte stream, is defined by the RFC793 of IETF.
The shortcomings that transmission mode in the prior art are as follows:
A) variation of data can not upload in period, each period is only capable of uploading the data at a moment.
B) repeat upload data, data variation and infrequently when, same part data can be uploaded to server always.
The shortcomings that subscribing manner:
A) data frequently change, then can frequently send data to server, server load is caused to increase, data traffic Increase, operation cost ramps.
B) it can not accurately judge that any variation both of these case does not occur for equipment fault and data.
Summary of the invention
For the defects in the prior art, the present invention provides a kind of data uploading method based on Internet of Things, device, equipment And medium, the size for uploading data packet can be reduced, to reduce transmission quantity, promote the treatment effeciency of server, reduce operation at This.
In a first aspect, the present invention provides a kind of data uploading methods based on Internet of Things, comprising:
Initialization procedure:
Connection management Platform Server;Latest configuration file is requested to the management platform server;According to described newest Configuration file updates local profile;Updated local profile is initialized, initial configuration file is obtained;
Preprocessing process:
Data cached table and persistant data table are established according to the attribute of each collection point;
The current collection value is updated to the data cached table by the current collection value for acquiring each collection point in real time In first list in;The collection value of last moment is cached into the second list of the data cached table;
According to the initial configuration file, in real time to the data and described second in the first list of same collection point Data in list compare;
If data change, the corresponding data of corresponding collection point all properties are cached to the persistant data table Lattice;If data update the data mode of corresponding collection point there is no variation, and by the mark of corresponding collection point and data shape State is cached to the persistant data table;
Based on predetermined period, sequence is carried out to the data in the predetermined period stored in the persistant data table Change, obtains data to be transmitted;
Data upload process:
The data to be transmitted is uploaded to the management platform server.
Optionally, after the step of connection management Platform Server during initialization, further includes:
Judge whether successful connection;
If connection failure loads local profile;The local profile is initialized, acquisition is initially matched Set file;
If successful connection, execute described to management platform server request latest configuration Files step;Judgement is It is no to request successfully;If requesting successfully, to execute the step of updating local profile according to the latest configuration file;
If request failure, loads local profile;The local profile is initialized, acquisition is initially matched Set file.
Optionally, it is based on predetermined period described, in the predetermined period stored in the persistant data table After the step of data are serialized, and data to be transmitted is obtained, further includes:
The data to be transmitted is stored to persistent storage space;
It is described that the data to be transmitted is uploaded to the management platform server, comprising:
From the persistent storage space, the data to be transmitted is uploaded to the management platform server.
Optionally, it is based on predetermined period described, in the predetermined period stored in the persistant data table Before the step of data are serialized, and data to be transmitted is obtained, further includes:
Based on predetermined period, the data category in the predetermined period stored in the persistant data table is carried out Classification storage;
The standard time of the persistant data table is set;
According to the standard time, calculate the timestamp corresponding time difference of each data in each classification, with it is described when Between difference record the acquisition times of each data, obtain new persistant data table;
It is described to be based on predetermined period, sequence is carried out to the data in the predetermined period stored in the persistant data table Columnization obtain data to be transmitted, comprising:
The new persistant data table is serialized, data to be transmitted is obtained.
Optionally, the initial configuration file, comprising: initially matching for parameter setting is compared to part or all of data Set file.
Optionally, it after the described the step of data to be transmitted is uploaded to the management platform server, also wraps It includes:
Judge whether to receive the reception successful information that the management platform server returns;
If so, deleting the data to be transmitted;
If it is not, then continuing to upload the data to be transmitted in next cycle.
Optionally, in preprocessing process, the data of initial time acquisition, it is changed for being defaulted as data.
Second aspect, the present invention provides a kind of data uploading devices based on Internet of Things, comprising: initialization module, pre- Processing module and uploading module;
The initialization module, comprising:
Connection unit is used for connection management Platform Server;
File request unit, for requesting latest configuration file to the management platform server;
File updating unit, for updating local profile according to the latest configuration file;
Initialization unit obtains initial configuration file for initializing to updated local profile;
The preprocessing module, comprising:
Table establishes unit, for establishing data cached table and persistant data table according to the attribute of each collection point;
Data acquisition unit updates the current collection value for acquiring the current collection value of each collection point in real time Into the first list in the data cached table;The collection value of last moment is cached to the of the data cached table In two lists;
Data comparison unit is used for according to the initial configuration file, in real time to the first list of same collection point In data compared with the data in the second list;
Delta data cache unit is used for the changed collection point all properties of data in the data comparison unit Corresponding data are cached to the persistant data table;Update data adopting there is no variation in the data comparison unit Collect the data mode of point, and by the mark of corresponding collection point and data state cache to the persistant data table;
Serialization unit, for being based on predetermined period, in the predetermined period stored in the persistant data table Data serialized, obtain data to be transmitted;
The uploading module, for the data to be transmitted to be uploaded to the management platform server.
The third aspect, the data uploading device based on Internet of Things that the present invention provides a kind of, including processor, input are set Standby, output equipment and memory, the processor, input equipment, output equipment and memory are connected with each other, wherein described to deposit For reservoir for storing computer program, the computer program includes program instruction, and the processor is configured for calling institute Program instruction is stated, a kind of data uploading method based on Internet of Things provided such as first aspect is provided.
Fourth aspect, the present invention provides a kind of computer readable storage medium, the computer readable storage medium is deposited Computer program is contained, the computer program includes program instruction, and described program instruction makes described when being executed by a processor Processor executes a kind of data uploading method based on Internet of Things provided such as first aspect.
The present invention is carried out by real-time collection value and the collection value of last moment of the initial configuration file to each collection point Comparison, can determine changed collection point and not changed collection point, and the acquisition of data variation occurs by uploading The mark and data mode of point all properties corresponding data and the collection point that data variation does not occur, can reduce upload data The size of packet promotes the treatment effeciency of server, cuts operating costs to reduce transmission quantity.Also, pass through above-mentioned predetermined period The delta data at moment each in a cycle can be uploaded to management platform server, make user by the data of interior storage Obtain more comprehensive collection value.
A kind of data uploading device based on Internet of Things, a kind of computer readable storage medium and one kind provided by the invention Data uploading device based on Internet of Things, with it is above-mentioned it is a kind of based on the data uploading method of Internet of Things for identical invention structure Think, beneficial effect having the same.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described.In all the appended drawings, similar element Or part is generally identified by similar appended drawing reference.In attached drawing, each element or part might not be drawn according to actual ratio.
Fig. 1 is a kind of flow chart of the data uploading method based on Internet of Things provided in an embodiment of the present invention;
Fig. 2 is a kind of pretreatment mechanism process of the data uploading method based on Internet of Things provided in an embodiment of the present invention Figure;
Fig. 3 is a kind of schematic diagram of the data uploading device based on Internet of Things provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of the data uploading device based on Internet of Things provided in an embodiment of the present invention.
Specific embodiment
It is described in detail below in conjunction with embodiment of the attached drawing to technical solution of the present invention.Following embodiment is only used for Clearly illustrate technical solution of the present invention, therefore be intended only as example, and cannot be used as a limitation and limit protection of the invention Range.
It should be noted that unless otherwise indicated, technical term or scientific term used in this application should be this hair The ordinary meaning that bright one of ordinary skill in the art are understood.
The present invention provides a kind of data uploading method based on Internet of Things, device, equipment and media.With reference to the accompanying drawing The embodiment of the present invention is illustrated.
Referring to FIG. 1, Fig. 1 is a kind of stream for data uploading method based on Internet of Things that the specific embodiment of the invention provides Cheng Tu, a kind of data uploading method based on Internet of Things provided in this embodiment, comprising:
Step S1: initialization procedure:
Step S11: connection management Platform Server;S12: Xiang Suoshu management platform server of step requests latest configuration text Part;Step S13: local profile is updated according to the latest configuration file;Step S14: text is locally configured to updated Part is initialized, and initial configuration file is obtained.
With the rapid development of Internet of Things, Internet of Things application be widely used in agricultural, traffic, medical treatment, logistics, industry, The fields such as security protection, household.And countless internet-of-things terminal equipment, collected data (sensor generate data, equipment fortune Row information, etc.), it requires to send data to server by network.
Executing subject of the invention is internet-of-things terminal equipment, after internet-of-things terminal equipment collects acquisition point data, It needs that the data are uploaded to management platform server by internet.Before upload, connection management Platform Server is needed, Then, then judge whether successful connection;If connection failure loads local profile;The local profile is carried out Initialization obtains initial configuration file.
If successful connection, latest configuration file is requested to the management platform server;Judge whether to request successfully;If It requests successfully, then local profile is updated according to the latest configuration file;If text is locally configured in request failure, load Part;The local profile is initialized, initial configuration file is obtained.
It is unsuccessful when connection management Platform Server is unsuccessful, or to management platform server request latest configuration file When, subsequent processing is carried out using the local profile being locally stored, can guarantee that data are handled in time, and then upload in time.
By requesting latest configuration file, the latest configuration text of internet-of-things terminal equipment real-time synchronization server end can be made Part, can be applied to current data immediately, and timeliness is higher.
Step S2: preprocessing process:
It after initialization, needs to pre-process data, pretreated detailed process are as follows:
Step S21: data cached table and persistant data table are established according to the attribute of each collection point.
Collection point refers to fixed a kind of value.For example, the collection points such as temperature, pressure.
The attribute of collection point may include: mark, current collection value, data mode, last moment collection value and timestamp Deng.
Data cached table refers to the data form updated at the time of caching in memory.
Persistant data table refers to the data form of the time cycle cached in memory.
Step S22: acquiring the current collection value of each collection point in real time, and the current collection value is updated to the caching In first list in data form;The collection value of last moment is cached into the second list of the data cached table.
Data cached table includes: acquisition point identification, the collection value of last moment, current collection value, timestamp, data shape The data of the dimensions such as state.
After collecting newest data, the data of last acquisition, only retained current collection value and upper a period of time in deletion The collection value at quarter can reduce memory space in this way.
Step S23: according to the initial configuration file, real-time same collection point in the first list data with Data in the second list compare.
Data in first list are the current collection value of each collection point, and the data in second list are last moment Collection value.The collection value of current collection value and last moment is compared, judges whether data change.Wherein, right Than when, can be compared according to initial configuration file.
Comparison rule is stored in initial configuration file, comparison rule defines: all collection points for needing to compare Mark, the difference range of data, there is no conditions of variation etc. for data.
If the difference range of data refers to that the difference of two data is more than difference range, show that data change;If no More than the difference range, then show that data do not change.Different collection points can be set different difference ranges.
If there is no the conditions of variation may is that data do not change within a certain period of time for data, then it represents that this is adopted Data variation does not occur for collection point.For example, if not changing in 5 seconds, then it represents that data variation does not occur for the collection point.
When latest configuration file is arranged in the server, administrative staff be can according to need in setting latest configuration file Comparison rule, in this way, can be with flexible setting comparing rule, and can refine to and personalization is carried out to individual data point set It sets, to reach reduction transmission quantity, promotes server process efficiency, cut operating costs.
Step S24: if data change, the corresponding data of corresponding collection point all properties is cached to described and are held Long data form;If data update the data mode of corresponding collection point there is no variation, and by the mark of corresponding collection point With data state cache to the persistant data table.
Persistant data table includes: acquisition point identification, the collection value of last moment, current collection value, timestamp, data shape The data of the dimensions such as state.It is stored in persistant data table: changed data and not changed data.For not having There are changed data, needs to update the data mode of corresponding collection point.
Changed data include collection point mark, the collection value of last moment, current collection value, timestamp, data The data of all dimensions such as state;And not changed data include: acquisition point identification, data mode, timestamp three dimensions The data of degree.The size for uploading data packet can be reduced in this way.For not changed data, the period can be passed through To determine whether changing, the period is provided by initial configuration file.
For example, being that not changed data carry out to state in delta data and latest data point list at interval of 1s Serializing, state is the point that data variation does not occur, only serializes to the mark of data in serializing, reduces transmission Amount.
For the data of initial time acquisition, since the collection value of the last moment in the data cached table of initial time is Sky, therefore, it is changed for defaulting the collection value of initial time.This rule can be set in initial configuration file It is fixed.In such manner, it is possible to save the collection value of initial time.
Since data cached table is real-time update, and persistant data table is stored with the data in a cycle, because This, when intensively acquisition data, the other variation of the Millisecond that data generate still can completely be recorded in persistant data table In, the observation convenient for staff to data.
Step S25: be based on predetermined period, to the data in the predetermined period stored in the persistant data table into Row serializing, obtains data to be transmitted.
Before being serialized to data, further includes: arranged to data, the process of arrangement are as follows: based on default week Phase carries out classification storage to the data category in the predetermined period stored in the persistant data table;Described in setting The standard time of persistant data table;According to the standard time, the timestamp for calculating each data in each classification is corresponding Time difference records the acquisition time of each data with the time difference, obtains new persistant data table.
Wherein, category progress classification storage, which refers to, carries out classification storage by collection point.For example, the data of pressure acquisition point It is stored together, the data of temperature acquisition point are stored together.
The standard time of persistant data table in the period is set, according to the standard time, it is corresponding to calculate each timestamp Time difference, the acquisition time of each data is recorded with the time difference, in this way, to server upload data when, can reduce on The data package size of biography, transfer efficiency in raising.
In upload procedure, uploads data packet and need to carry the standard time, so that server is anti-according to the standard time Release timestamp.
It since data are in upload procedure, needs to be uploaded with certain format, therefore, it is necessary to new persistant data table It is serialized, obtains the data to be transmitted for meeting uploaded format.For example, by the way of google protocol buffer Data sequence is turned into byte arrays.
In the present invention, the data in the predetermined period stored in the persistant data table serialize Later, further includes: store the data to be transmitted to persistent storage space;It is described that the data to be transmitted is uploaded to institute State management platform server, comprising: from the persistent storage space, the data to be transmitted is uploaded to the management platform Server.
At the end of a cycle, data to be transmitted is stored to persistent storage space.Persistent storage space can be Hard disk etc..By storing data to be transmitted to persistent storage space, it can guarantee that the greatest extent data are not lost.Example Such as, the data of millisecond variation are saved.
Data to be transmitted is stored to persistant data table, so that it may be deleted in persistant data table from memory Data carry out the data storage in next cycle.
Step S3: data upload process:
Step S31: the data to be transmitted is uploaded to the management platform server.
After data to be transmitted is successfully uploaded to management platform server, management platform server can be sent out to client Reception successful information is sent, therefore, after upload, the reception for needing to judge whether to receive management platform server return is successfully believed Breath, if so, showing to upload the data to be transmitted successfully deleted and be locally stored;If it is not, then showing to upload failure, then next A period continues to upload the data to be transmitted.
When uploading data, it can specify that the size for uploading data packet every time is therefrom randomly selected if being more than the size Data are uploaded, if being not above, are all uploaded.
The method provided through the invention can reach following effect:
1, volume of transmitted data is rationally reduced, the occupancy to bandwidth is rationally reduced.
2, the actively reasonable request reduced to server, promotes the treatment effeciency of server.
3, millisecond data are provided and acquires method for uploading.
4, loss of data risk is reduced.
5, the security capabilities in data transmission procedure is promoted.
Present invention could apply to following scenes: industry spot needs creation data being sent to server end, for management Platform provides production management data.The relevant data such as n instrument are acquired, and the Network status at scene is poor.But it needs Reduction as far as possible requests transmitted data volume to the request of server, reasonable reduce every time, and accurately will be industrial existing The value of field data changed every time is all transmitted to server.
It is corresponding based on inventive concept identical with a kind of above-mentioned data uploading method based on Internet of Things, this Inventive embodiments additionally provide a kind of data uploading device based on Internet of Things, as shown in Figure 3.Due to the basic phase of Installation practice Like and embodiment of the method, so describing fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
A kind of data uploading device based on Internet of Things provided by the invention, comprising: initialization module 100, pretreatment mould Block 200 and uploading module 300;
The initialization module 100, comprising:
Connection unit 101 is used for connection management Platform Server;
File request unit 102, for requesting latest configuration file to the management platform server;
File updating unit 103, for updating local profile according to the latest configuration file;
Initialization unit 104 obtains initial configuration file for initializing to updated local profile;
The preprocessing module 200, comprising:
Table establishes unit 201, for establishing data cached table and persistant data table according to the attribute of each collection point Lattice;
Data acquisition unit 202, for acquiring the current collection value of each collection point in real time, more by the current collection value In the new first list in the data cached table;The collection value of last moment is cached to the data cached table In second list;
Data comparison unit 203, for according to the initial configuration file, real-time same collection point to the first row Data in table are compared with the data in the second list;
Delta data cache unit 204, for owning the changed collection point of data in the data comparison unit The corresponding data of attribute are cached to the persistant data table;Updating data in the data comparison unit, there is no variations Collection point data mode, and by the mark of corresponding collection point and data state cache to the persistant data table;
Serialization unit 205, for being based on predetermined period, to the predetermined period stored in the persistant data table Interior data are serialized, and data to be transmitted is obtained;
The uploading module 300, comprising:
Uploading unit 301, for the data to be transmitted to be uploaded to the management platform server.
In a specific embodiment provided by the invention, the initialization module 100, further includes:
Connection judgment unit, for judging whether successful connection;
Local loading unit is connection failure for the result when the connection judgment unit judges, then loads local match Set file;
Local initialization unit obtains initial configuration file for initializing to the local profile;
When the connection judgment unit judges result be successful connection, then execute the mistake of the file request unit 103 Journey;
Judging unit is requested, is requested successfully for judging whether;
When the judging result of the request judging unit are as follows: request successfully, then execute the process of file updating unit 103;
When the judging result of the request judging unit are as follows: request failure then executes local loading unit and local initial Change the process of unit.
In a specific embodiment provided by the invention, preprocessing module 200, further includes:
Persistence unit, for storing the data to be transmitted to persistent storage space;
The uploading module 300, is specifically used for:
From the persistent storage space, the data to be transmitted is uploaded to the management platform server.
In a specific embodiment provided by the invention, preprocessing module 200, further includes:
Classification storage unit, for being based on predetermined period, to the predetermined period stored in the persistant data table Interior data category carries out classification storage;
Standard time setting unit, for the standard time of the persistant data table to be arranged;
Time difference calculating unit, for calculating the timestamp pair of each data in each classification according to the standard time The time difference answered records the acquisition time of each data with the time difference, obtains new persistant data table;
The serialization unit 205, is specifically used for:
The new persistant data table is serialized, data to be transmitted is obtained.
In a specific embodiment provided by the invention, the initial configuration file, comprising: to part or all of data Compare the initial configuration file of parameter setting.
In a specific embodiment provided by the invention, uploading module 300, further includes:
Judging unit is uploaded, the reception successful information returned for judging whether to receive the management platform server;
Unit is deleted, for being to receive successfully when the judging result for uploading judging unit, is then deleted described to be transmitted Data;
Again uploading unit, for being reception failure when the judging result for uploading judging unit, then in next week Phase continues to upload the data to be transmitted.
In a specific embodiment provided by the invention, in preprocessing process, the data of initial time acquisition, default It is changed for data.
More than, it is a kind of data uploading device based on Internet of Things provided by the invention.
Further, a kind of basis of data uploading method and device based on Internet of Things provided by above-described embodiment On, the data uploading device based on Internet of Things that the embodiment of the invention also provides a kind of.As shown in figure 4, the equipment may include: One or more processors 401, one or more input equipments 402, one or more output equipments 403 and memory 404, on Processor 401, input equipment 402, output equipment 403 and memory 404 is stated to be connected with each other by bus 405.Memory 404 is used In storage computer program, the computer program includes program instruction, and the processor 401 is configured for calling the journey The method of sequence instruction execution above method embodiment part.
It should be appreciated that in embodiments of the present invention, alleged processor 401 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
Input equipment 402 may include keyboard etc., and output equipment 403 may include display (LCD etc.), loudspeaker etc..
The memory 404 may include read-only memory and random access memory, and to processor 201 provide instruction and Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited Store up the information of device type.
In the specific implementation, processor 401 described in the embodiment of the present invention, input equipment 402, output equipment 403 can Implementation described in a kind of embodiment of data uploading method based on Internet of Things provided in an embodiment of the present invention is executed, Details are not described herein.
Correspondingly, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Matter is stored with computer program, and the computer program includes program instruction, and described program instructs realization when being executed by processor: The above-mentioned data uploading method based on Internet of Things.
The computer readable storage medium can be the internal storage unit of system described in aforementioned any embodiment, example Such as the hard disk or memory of system.The computer readable storage medium is also possible to the External memory equipment of the system, such as The plug-in type hard disk being equipped in the system, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both The internal storage unit for including the system also includes External memory equipment.The computer readable storage medium is described for storing Other programs and data needed for computer program and the system.The computer readable storage medium can be also used for temporarily When store the data that has exported or will export.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.In addition, shown or discussed phase Mutually between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication of device or unit Connection is also possible to electricity, mechanical or other form connections.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of data uploading method based on Internet of Things characterized by comprising
Initialization procedure:
Connection management Platform Server;Latest configuration file is requested to the management platform server;According to the latest configuration File updates local profile;Updated local profile is initialized, initial configuration file is obtained;
Preprocessing process:
Data cached table and persistant data table are established according to the attribute of each collection point;
The current collection value is updated in the data cached table by the current collection value for acquiring each collection point in real time In first list;The collection value of last moment is cached into the second list of the data cached table;
According to the initial configuration file, in real time to the data and the second list in the first list of same collection point In data compare;
If data change, the corresponding data of corresponding collection point all properties are cached to the persistant data table; If data update the data mode of corresponding collection point there is no variation, and by the mark and data mode of corresponding collection point It caches to the persistant data table;
Based on predetermined period, the data in the predetermined period stored in the persistant data table are serialized, are obtained Obtain data to be transmitted;
Data upload process:
The data to be transmitted is uploaded to the management platform server.
2. the method according to claim 1, wherein connection management Platform Server during initialization After step, further includes:
Judge whether successful connection;
If connection failure loads local profile;The local profile is initialized, initial configuration text is obtained Part;
If successful connection, execute described to management platform server request latest configuration Files step;Judge whether to ask Hope for success function;If requesting successfully, to execute the step of updating local profile according to the latest configuration file;
If request failure, loads local profile;The local profile is initialized, initial configuration text is obtained Part.
3. the method according to claim 1, wherein predetermined period is based on described, to the persistant data table After the step of data in the predetermined period stored in lattice are serialized, and data to be transmitted is obtained, further includes:
The data to be transmitted is stored to persistent storage space;
It is described that the data to be transmitted is uploaded to the management platform server, comprising:
From the persistent storage space, the data to be transmitted is uploaded to the management platform server.
4. the method according to claim 1, wherein predetermined period is based on described, to the persistant data table Before the step of data in the predetermined period stored in lattice are serialized, and data to be transmitted is obtained, further includes:
Based on predetermined period, classify to the data category in the predetermined period stored in the persistant data table Storage;
The standard time of the persistant data table is set;
According to the standard time, the timestamp corresponding time difference of each data in each classification is calculated, with the time difference The acquisition time for recording each data obtains new persistant data table;
It is described to be based on predetermined period, sequence is carried out to the data in the predetermined period stored in the persistant data table Change, obtain data to be transmitted, comprising:
The new persistant data table is serialized, data to be transmitted is obtained.
5. the method according to claim 1, wherein the initial configuration file, comprising: to part or all of number According to the initial configuration file for comparing parameter setting.
6. the method according to claim 1, wherein the data to be transmitted is uploaded to the management described After the step of Platform Server, further includes:
Judge whether to receive the reception successful information that the management platform server returns;
If so, deleting the data to be transmitted;
If it is not, then continuing to upload the data to be transmitted in next cycle.
7. the method according to claim 1, wherein in preprocessing process, the data of initial time acquisition are write from memory Think that data are changed.
8. a kind of data uploading device based on Internet of Things characterized by comprising initialization module, preprocessing module and on Transmission module;
The initialization module, comprising:
Connection unit is used for connection management Platform Server;
File request unit, for requesting latest configuration file to the management platform server;
File updating unit, for updating local profile according to the latest configuration file;
Initialization unit obtains initial configuration file for initializing to updated local profile;
The preprocessing module, comprising:
Table establishes unit, for establishing data cached table and persistant data table according to the attribute of each collection point;
The current collection value is updated to institute for acquiring the current collection value of each collection point in real time by data acquisition unit It states in the first list in data cached table;The collection value of last moment is cached to the secondary series of the data cached table In table;
Data comparison unit is used for according to the initial configuration file, in real time in the first list of same collection point Data are compared with the data in the second list;
Delta data cache unit, for the changed collection point all properties of data in the data comparison unit are corresponding Data cache to the persistant data table;Update in the data comparison unit that there is no the collection points of variation for data Data mode, and by the mark of corresponding collection point and data state cache to the persistant data table;
Serialization unit, for being based on predetermined period, to the number in the predetermined period stored in the persistant data table According to being serialized, data to be transmitted is obtained;
The uploading module, for the data to be transmitted to be uploaded to the management platform server.
9. a kind of data uploading device based on Internet of Things, which is characterized in that including processor, input equipment, output equipment and Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is based on storing Calculation machine program, the computer program include program instruction, and the processor is configured for calling described program instruction, are executed The method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program include program instruction, and described program instruction executes the processor such as The described in any item methods of claim 1-7.
CN201910213614.0A 2019-03-20 2019-03-20 A kind of data uploading method based on Internet of Things, device, equipment and medium Pending CN109962980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910213614.0A CN109962980A (en) 2019-03-20 2019-03-20 A kind of data uploading method based on Internet of Things, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910213614.0A CN109962980A (en) 2019-03-20 2019-03-20 A kind of data uploading method based on Internet of Things, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN109962980A true CN109962980A (en) 2019-07-02

Family

ID=67024692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910213614.0A Pending CN109962980A (en) 2019-03-20 2019-03-20 A kind of data uploading method based on Internet of Things, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN109962980A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944065A (en) * 2019-12-13 2020-03-31 李炳勇 Sensor data transmission method and system based on Internet of things
CN111752918A (en) * 2020-05-15 2020-10-09 南京国电南自维美德自动化有限公司 Historical data interaction system and configuration method thereof
CN111918230A (en) * 2020-05-29 2020-11-10 北京寄云鼎城科技有限公司 Data acquisition method, data transmission method, gateway, equipment and storage medium
CN112559813A (en) * 2021-01-29 2021-03-26 广州技象科技有限公司 Internet of things gateway data processing method and device based on instruction association pushing
CN112750435A (en) * 2020-12-28 2021-05-04 苏州思必驰信息科技有限公司 Smart home equipment synchronization method and device
CN112769882A (en) * 2019-11-01 2021-05-07 科美诊断技术股份有限公司 Medical data uploading method and device
CN112804293A (en) * 2020-12-24 2021-05-14 湖北华威科智能股份有限公司 Electric power equipment monitoring data transmission method based on cyclic marks
CN113010614A (en) * 2021-03-18 2021-06-22 山东高速满易物流科技有限公司 Logistics data storage method and system
CN113192233A (en) * 2021-04-29 2021-07-30 北京车和家信息技术有限公司 Data acquisition method, device, equipment and medium
CN113328523A (en) * 2021-05-31 2021-08-31 广东电网有限责任公司 Power switch management method, device, equipment and storage medium
CN113328521A (en) * 2021-05-31 2021-08-31 广东电网有限责任公司 Edge processing method, device and equipment for power switch state and storage medium
CN113328522A (en) * 2021-05-31 2021-08-31 广东电网有限责任公司 Power switch monitoring method, device, equipment and storage medium
CN114268636A (en) * 2021-11-10 2022-04-01 华人运通(上海)云计算科技有限公司 TBOX data updating method, device, equipment and medium for automobile
CN114430412A (en) * 2020-10-29 2022-05-03 佛山点度物联科技有限公司 Real-time data uploading method of Internet of things based on polling numerical detection
CN114500673A (en) * 2022-02-15 2022-05-13 江苏提米智能科技有限公司 Encoding method and decoding method based on time series data transmission, device, electronic equipment and storage medium
CN114817200A (en) * 2022-05-06 2022-07-29 安徽森江人力资源服务有限公司 Document data cloud management method and system based on Internet of things and storage medium
WO2023035892A1 (en) * 2021-09-09 2023-03-16 青岛海尔洗衣机有限公司 Data processing method and apparatus, server, and storage medium
CN117056419A (en) * 2023-07-20 2023-11-14 安徽国科检测科技有限公司 Laboratory detection data sharing system based on local area network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163308A (en) * 2011-04-18 2011-08-24 中国科学院计算技术研究所 Flow service data uploading system and method
CN102724291A (en) * 2012-05-23 2012-10-10 北京经纬恒润科技有限公司 Vehicle network data acquisition method, unit and system
CN102981933A (en) * 2012-12-18 2013-03-20 武汉邮电科学研究院 Method and system for data increment backup of sensing layer of Internet of Things
CN103002010A (en) * 2012-10-29 2013-03-27 北京奇虎科技有限公司 Method, device and system for updating data based on incremental data
CN106789904A (en) * 2016-11-23 2017-05-31 北京邮电大学 Internet of things intrusion detection method and device
EP3373557A1 (en) * 2017-03-10 2018-09-12 Symphony Communication Services Holdings, LLC Secure information retrieval and update
CN105656722B (en) * 2016-01-29 2019-02-05 广州能迪云服务科技有限公司 A kind of data uploading method and its system based on industrial Internet of Things

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163308A (en) * 2011-04-18 2011-08-24 中国科学院计算技术研究所 Flow service data uploading system and method
CN102724291A (en) * 2012-05-23 2012-10-10 北京经纬恒润科技有限公司 Vehicle network data acquisition method, unit and system
CN103002010A (en) * 2012-10-29 2013-03-27 北京奇虎科技有限公司 Method, device and system for updating data based on incremental data
CN102981933A (en) * 2012-12-18 2013-03-20 武汉邮电科学研究院 Method and system for data increment backup of sensing layer of Internet of Things
CN105656722B (en) * 2016-01-29 2019-02-05 广州能迪云服务科技有限公司 A kind of data uploading method and its system based on industrial Internet of Things
CN106789904A (en) * 2016-11-23 2017-05-31 北京邮电大学 Internet of things intrusion detection method and device
EP3373557A1 (en) * 2017-03-10 2018-09-12 Symphony Communication Services Holdings, LLC Secure information retrieval and update

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769882A (en) * 2019-11-01 2021-05-07 科美诊断技术股份有限公司 Medical data uploading method and device
CN110944065A (en) * 2019-12-13 2020-03-31 李炳勇 Sensor data transmission method and system based on Internet of things
CN110944065B (en) * 2019-12-13 2023-03-24 湖南半岛医疗科技有限公司 Sensor data transmission method and system based on Internet of things
CN111752918B (en) * 2020-05-15 2023-12-22 南京国电南自维美德自动化有限公司 Historical data interaction system and configuration method thereof
CN111752918A (en) * 2020-05-15 2020-10-09 南京国电南自维美德自动化有限公司 Historical data interaction system and configuration method thereof
CN111918230A (en) * 2020-05-29 2020-11-10 北京寄云鼎城科技有限公司 Data acquisition method, data transmission method, gateway, equipment and storage medium
CN111918230B (en) * 2020-05-29 2022-09-09 北京寄云鼎城科技有限公司 Data acquisition method, data transmission method, gateway, equipment and storage medium
CN114430412A (en) * 2020-10-29 2022-05-03 佛山点度物联科技有限公司 Real-time data uploading method of Internet of things based on polling numerical detection
CN112804293A (en) * 2020-12-24 2021-05-14 湖北华威科智能股份有限公司 Electric power equipment monitoring data transmission method based on cyclic marks
CN112804293B (en) * 2020-12-24 2023-03-24 湖北华威科智能股份有限公司 Electric power equipment monitoring data transmission method based on cyclic marks
CN112750435A (en) * 2020-12-28 2021-05-04 苏州思必驰信息科技有限公司 Smart home equipment synchronization method and device
CN112750435B (en) * 2020-12-28 2022-07-26 思必驰科技股份有限公司 Smart home equipment synchronization method and device
CN112559813A (en) * 2021-01-29 2021-03-26 广州技象科技有限公司 Internet of things gateway data processing method and device based on instruction association pushing
CN113010614A (en) * 2021-03-18 2021-06-22 山东高速满易物流科技有限公司 Logistics data storage method and system
CN113192233A (en) * 2021-04-29 2021-07-30 北京车和家信息技术有限公司 Data acquisition method, device, equipment and medium
CN113328522A (en) * 2021-05-31 2021-08-31 广东电网有限责任公司 Power switch monitoring method, device, equipment and storage medium
CN113328521A (en) * 2021-05-31 2021-08-31 广东电网有限责任公司 Edge processing method, device and equipment for power switch state and storage medium
CN113328523A (en) * 2021-05-31 2021-08-31 广东电网有限责任公司 Power switch management method, device, equipment and storage medium
WO2023035892A1 (en) * 2021-09-09 2023-03-16 青岛海尔洗衣机有限公司 Data processing method and apparatus, server, and storage medium
CN114268636A (en) * 2021-11-10 2022-04-01 华人运通(上海)云计算科技有限公司 TBOX data updating method, device, equipment and medium for automobile
CN114268636B (en) * 2021-11-10 2024-04-12 华人运通(上海)云计算科技有限公司 TBOX data updating method, device, equipment and medium for automobile
CN114500673A (en) * 2022-02-15 2022-05-13 江苏提米智能科技有限公司 Encoding method and decoding method based on time series data transmission, device, electronic equipment and storage medium
CN114817200A (en) * 2022-05-06 2022-07-29 安徽森江人力资源服务有限公司 Document data cloud management method and system based on Internet of things and storage medium
CN114817200B (en) * 2022-05-06 2024-04-05 新疆利丰智能科技股份有限公司 Internet of things-based document data cloud management method, system and storage medium
CN117056419A (en) * 2023-07-20 2023-11-14 安徽国科检测科技有限公司 Laboratory detection data sharing system based on local area network
CN117056419B (en) * 2023-07-20 2024-03-15 安徽国科检测科技有限公司 Laboratory detection data sharing system based on local area network

Similar Documents

Publication Publication Date Title
CN109962980A (en) A kind of data uploading method based on Internet of Things, device, equipment and medium
CN103002010B (en) A kind of data-updating method based on incremental data, device and system
CN107092552A (en) A kind of blog management method and device
CN105022832B (en) Method, mobile terminal and the download server that APP application securities are downloaded
WO2020019943A1 (en) Method and device for transmitting data, and method and apparatus for receiving data
US20080249994A1 (en) System and process for server side stateless data interchange
CN112711612B (en) Data processing method, device, storage medium and electronic device
CN111611129B (en) Performance monitoring method and device of PaaS cloud platform
CN102567339A (en) Method, device and system for acquiring start page
CN105208004B (en) A kind of data storage method based on OBD equipment
CN111314480A (en) Load self-adaptive cross-platform file transfer protocol and distributed service implementation method thereof
CN110688596A (en) Static webpage updating method and device, computer equipment and storage medium
CN103401926A (en) Method and device for improving network resource access speed
CN103248636B (en) The system and method downloaded offline
CN100534084C (en) Long-distance XML data updating method and system
CN106161623A (en) Caching server, renewal server and data-updating method
CN104615597B (en) The methods, devices and systems of cache file are removed in browser
CN111367685A (en) Interface calling method and device, computer equipment and storage medium
CN108881493A (en) A kind of Task Progress information-pushing method, device and equipment
CN111314478B (en) File transmission method and device and computer equipment
Xiao-Hong Research and development of web of things system based on rest architecture
US11823240B2 (en) Efficient updates of biometric data for remotely connected devices
CN101388863A (en) Implementing method and system for WAP gateway extraction service
CN108337280A (en) A kind of resource regeneration method and device
CN115858853A (en) Video image data and structured information management method based on cloud edge cooperation

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

Application publication date: 20190702

RJ01 Rejection of invention patent application after publication