CN109246210B - Internet of things communication method and device - Google Patents

Internet of things communication method and device Download PDF

Info

Publication number
CN109246210B
CN109246210B CN201811000474.0A CN201811000474A CN109246210B CN 109246210 B CN109246210 B CN 109246210B CN 201811000474 A CN201811000474 A CN 201811000474A CN 109246210 B CN109246210 B CN 109246210B
Authority
CN
China
Prior art keywords
parameter
data
internet
real
things
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
CN201811000474.0A
Other languages
Chinese (zh)
Other versions
CN109246210A (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.)
Shandong Wangzhi Internet Of Things Technology Co ltd
Original Assignee
Shandong Wangzhi Internet Of Things 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 Shandong Wangzhi Internet Of Things Technology Co ltd filed Critical Shandong Wangzhi Internet Of Things Technology Co ltd
Priority to CN201811000474.0A priority Critical patent/CN109246210B/en
Publication of CN109246210A publication Critical patent/CN109246210A/en
Application granted granted Critical
Publication of CN109246210B publication Critical patent/CN109246210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a communication method and a device of the Internet of things, which relate to the technical field of the communication of the Internet of things, and the method comprises the steps of initializing reference data of parameters of acquisition equipment; acquiring real-time data of the parameter; calculating the variable quantity of the parameter according to the real-time data and the reference data; comparing the variable quantity of the parameter with a preset variable quantity threshold value, and identifying the parameter with the variable quantity larger than the variable quantity threshold value as a first parameter; and uploading the real-time data corresponding to the first parameter. The communication method and device of the Internet of things can improve the data transmission efficiency and solve the problems of data accumulation, untimely transmission and high processing pressure of a server side in mass data transmission of an Internet of things gateway or a data acquisition terminal.

Description

Internet of things communication method and device
Technical Field
The invention relates to the technical field of communication of the Internet of things, in particular to a communication method and device of the Internet of things.
Background
With the rapid development of the technology of the internet of things and the modern communication technology, the application of the internet of things in various industrial fields is also a leap forward.
Taking the power industry as an example, in an actual project, the types and the quantity of equipment needing data acquisition are large, and the equipment acquisition period is short according to the real-time requirement, so that the data acquired by the data acquisition terminal and the data gathered by the gateway of the internet of things are massive. However, in the existing communication process of the internet of things, only the collected data is packaged and processed, and uploaded according to the existing standard communication protocol or the enterprise private protocol, and the collected mass data is not processed by an algorithm. Therefore, even if the physical configuration and performance of the gateway of the internet of things or the data acquisition terminal are high, the following serious problems still occur:
firstly, a large amount of accumulated data can be generated in a cache due to the fact that collected data cannot be uploaded in time, and finally equipment downtime is caused;
secondly, the real-time performance of system data updating cannot be guaranteed, especially some remote signaling data and alarm data, if updating cannot be uploaded in time, disastrous results may be brought;
thirdly, the high concurrency and data processing pressure of the server (data receiving end) is huge, which easily causes the resource exhaustion of the server to cause 'false death' or downtime.
No effective solution to the above-mentioned data transmission problem has been proposed at present.
Disclosure of Invention
In view of the above, the present invention aims to provide a method and a device for communicating with the internet of things, which can improve data transmission efficiency and alleviate the problems of data accumulation, untimely transmission and high processing pressure of a server side in mass data transmission of an internet of things gateway or a data acquisition terminal.
In a first aspect, an embodiment of the present invention provides an internet of things communication method, including: initializing reference data of parameters of acquisition equipment; acquiring real-time data of the parameter; calculating the variable quantity of the parameter according to the real-time data and the reference data; comparing the variable quantity of the parameter with a preset variable quantity threshold value, and identifying the parameter with the variable quantity larger than the variable quantity threshold value as a first parameter; and uploading the real-time data corresponding to the first parameter.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the identifying, as the first parameter, the parameter whose variation is greater than the variation threshold includes: setting an information object address field, a parameter change indication field and a change parameter data field in a data structure of a transmitted message; the information object address field is used for storing the address of the acquisition equipment; the change parameter data field is used for storing the data of the parameter with the change amount larger than the change amount threshold; the parameter change indication field comprises a plurality of indication bits, and each parameter corresponds to one indication bit; and when the variation of the parameter is larger than the variation threshold, assigning the indicator bit corresponding to the parameter as a first value to identify the parameter as a first parameter.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the method further includes: and sequentially filling the data of the first parameter into the data field of the change parameter according to the big-end bit sequence.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the information object address field is disposed in a link layer, and the parameter change indication field and the change parameter data field are disposed in an application layer.
With reference to the first aspect and one of the first to third possible implementation manners of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the step of calculating the variation of the parameter according to the real-time data and the reference data includes: calculating the variable quantity of the parameter by a least square method according to the real-time data and the reference data; the above formula for calculating the variation of the parameter by the least square method is: Δ ═ U (U)a'-Ua)2Wherein Δ is the amount of change in the parameter, U'aAs real-time data of parameters, UaIs the reference data.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the step of initializing reference data of parameters of the acquisition device includes: acquiring initial data of parameters of acquisition equipment in a first acquisition period; the initial data is set as reference data.
With reference to the fifth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the step of setting the initial data as the reference data includes: denoising the initial data to obtain denoised data; the de-noised data is set as reference data.
With reference to the fifth or sixth possible implementation manner of the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the method further includes: setting a reference data updating period; and when the timing reaches the reference data updating period, acquiring real-time data of each parameter of the acquisition equipment in the current acquisition period, and updating the real-time data to cover the reference data.
In a second aspect, an embodiment of the present invention further provides an internet of things communication device, including: the initialization module is used for initializing the reference data of the parameters of the acquisition equipment; the real-time data acquisition module is used for acquiring real-time data of the parameters; the parameter variable quantity calculating module is used for calculating the variable quantity of the parameter according to the real-time data and the reference data; the comparison module is used for comparing the variable quantity of the parameter with a preset variable quantity threshold value and identifying the parameter with the variable quantity larger than the variable quantity threshold value as a first parameter; and the uploading module is used for uploading the real-time data corresponding to the first parameter.
In a third aspect, an embodiment of the present invention further provides an internet of things communication device, where the device includes a processor, a memory, a bus, and a communication interface, where the processor, the communication interface, and the memory are connected through the bus; the memory is used for storing programs; the processor is configured to invoke the program stored in the memory through the bus, and execute the communication method of the internet of things provided in the first embodiment and one of the possible implementation manners.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a communication method and a device of the Internet of things, wherein the method comprises the steps of initializing reference data of parameters of acquisition equipment; acquiring real-time data of the parameter; calculating the variable quantity of the parameter according to the real-time data and the reference data; comparing the variable quantity of the parameter with a preset variable quantity threshold value, and identifying the parameter with the variable quantity larger than the variable quantity threshold value as a first parameter; and uploading the real-time data corresponding to the first parameter. According to the Internet of things communication method provided by the embodiment of the invention, the acquired mass data is subjected to algorithm processing in advance, the data of the parameter which changes over the threshold value in the acquisition period is uploaded in time, and the data of the parameter which changes in the threshold value range is not uploaded, so that the total amount of data which needs to be uploaded is greatly reduced, the problem of large data accumulation at the acquisition end or the gateway side is solved, the data processing pressure of the service end is correspondingly reduced, the efficiency of data transmission at each time is improved after the data amount which needs to be uploaded is reduced, and the real-time performance of the data is ensured.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a communication method of the internet of things according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a communication protocol data structure of the internet of things according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an information element set data structure according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a data structure of a parameter change indicator field according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an example of sending data according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an internet of things communication device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another communication device of the internet of things according to an embodiment of the present invention.
Icon:
61-an initialization module; 62-a real-time data acquisition module; 63-parameter variation calculating module; 64-a comparison module; 65-upload Module.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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.
At present, the existing internet of things communication only packages and uploads collected data, does not process collected mass data in an algorithm mode, and also has the problems of data accumulation, untimely uploading, high concurrency and downtime of a server and the like. Based on the above, the communication method and device for the internet of things provided by the embodiment of the invention can improve the data transmission efficiency, and solve the problems of data accumulation, untimely transmission and high processing pressure of a server side in mass data transmission of an internet of things gateway or a data acquisition terminal.
In order to facilitate understanding of the embodiment, a detailed description is first given of the communication method of the internet of things disclosed in the embodiment of the present invention.
As shown in fig. 1, which is a flowchart of a communication method of the internet of things according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102: reference data of parameters of the acquisition equipment are initialized.
Here, the reference data of the parameters is stored in the in-memory database.
In at least one possible embodiment, initial data of the parameters of the acquisition device in the first acquisition cycle is first acquired, and then the initial data is set as reference data.
In order to ensure the reliability of the reference data, the initial data may be denoised to obtain denoised data, the denoised data is set as the reference data, and the reference data is stored in the memory database. For the parameters considered as noise during the denoising process, the parameters need to be replenished to the corresponding positions of the in-memory database during the subsequent acquisition cycle.
Step S104: real-time data of the parameter is obtained.
In communication of the internet of things, various parameters of equipment, such as current, voltage, temperature and the like, are collected, and are usually collected periodically to obtain real-time data of the various parameters.
Step S106: and calculating the variation of the parameter according to the real-time data and the reference data.
Here, the calculation formula for calculating the variation of each parameter by the least square method is:
Δ=(Ua'-Ua)2
wherein Delta is the variable quantity of the parameter, U'aAs real-time data of parameters, UaIs the reference data of the parameter.
Step S108: and comparing the variable quantity of the parameter with a preset variable quantity threshold value, and identifying the parameter with the variable quantity larger than the variable quantity threshold value as a first parameter.
In actual operation, data of certain parameters generally do not change much in adjacent acquisition periods, a threshold value is set, variation obtained by calculating the data of the parameters in the current acquisition period and reference data is compared with a preset threshold value, and the parameters with the variation larger than the variation threshold value in the acquisition period are focused. The part of parameters are distinguished by identification.
Step S110: and uploading the real-time data corresponding to the first parameter.
In a single acquisition period, for the parameters with the variation within the variation threshold range, the data of the parameters with the variation exceeding the variation threshold are uploaded without uploading the data of the parameters within the acquisition period.
In another possible embodiment, a reference data updating period is further set, the duration of the updating period is longer than the acquisition period, when the updating period is timed up, the real-time data of each parameter of the acquisition equipment in the next acquisition period is acquired, and the real-time data is updated to cover the reference data. In this way, by setting the update cycle of the reference data, the current reference data is overwritten by the real-time data of each parameter at intervals of time, for example, 30 minutes, so that the authenticity and reliability of the data are ensured.
In this embodiment, by setting the datum data, the variation of each parameter in the acquisition period is calculated by a least square method, the data of the parameter with the variation larger than the variation threshold is uploaded, and the data with the variation in the variation threshold range does not need to be uploaded in the current acquisition period, so that the data volume needing to be uploaded is greatly reduced, the problem of data accumulation at the acquisition end or the gateway side is solved, the data processing pressure of the server end is correspondingly reduced, the efficiency of data transmission at each time is improved after the data volume needing to be uploaded is reduced, and the real-time performance of the data is ensured.
The communication method of the Internet of things provided by the embodiment of the invention comprises the steps of initializing reference data of parameters of acquisition equipment; acquiring real-time data of the parameter; calculating the variable quantity of the parameter according to the real-time data and the reference data; comparing the variable quantity of the parameter with a preset variable quantity threshold value, and identifying the parameter with the variable quantity larger than the variable quantity threshold value as a first parameter; uploading real-time data corresponding to the first parameter; the data transmission efficiency can be improved, and the problems of data accumulation, untimely transmission and high processing pressure of a server side in mass data transmission of the Internet of things gateway or the data acquisition terminal are solved.
On the basis of fig. 1, an embodiment of the present invention provides another communication method for the internet of things, and in this embodiment, identification of the first parameter is implemented by improving a message data structure.
For this embodiment, an information object address field, a parameter change indication field, and a change parameter data field are set in a data structure of a transmitted packet. Here, the information object address field is provided at a link layer, and the parameter change indication field and the change parameter data field are provided at an application layer.
Wherein, the information object address field is used for storing the address of the acquisition equipment; the change parameter data field is used for storing data of parameters with the variable quantity larger than the variable quantity threshold; the parameter change indication field comprises a plurality of indication bits, and each parameter corresponds to one indication bit; when the variation of the parameter is larger than the variation threshold, assigning the indicator bit corresponding to the parameter as a first value to identify the parameter as a first parameter. In at least one embodiment, the first value may be "1" in binary, and when the variation of the parameter is smaller than the variation threshold, the indication bit corresponding to the parameter is assigned to "0".
In at least one possible implementation manner, after assigning values to each indication bit in the parameter change indication field following the variation of each parameter in the current acquisition period, the method further includes sequentially filling data of the first parameter into the change parameter data field according to a big-end bit order. That is, data of the parameter having the variation larger than the threshold is sequentially stored from the upper bit to the lower bit according to the indication bit corresponding to the parameter having the variation larger than the threshold.
Therefore, for each parameter in the current acquisition period, the variable quantity is within the threshold range, the data of the parameter is not uploaded, and when the variable quantity exceeds the threshold, the parameter can be distinguished in the parameter change indication field according to the assignment condition of each indication bit, namely the first parameter, and the data of each parameter can be correspondingly found in the change parameter data field according to the storage sequence.
In actual operation, data of part of parameters in adjacent acquisition periods do not change greatly, and a lot of repeated or similar data are uploaded to occupy unnecessary resources. Therefore, according to the internet-of-things communication method provided by this embodiment, by improving the message structure, the parameter change indication field and the change parameter data field are set in the data structure of the message, data of the parameter that changes over the threshold value in the acquisition period is uploaded in time, and for the parameter that changes within the threshold value range, the data is not uploaded, so that the total amount of data that needs to be uploaded is greatly reduced, the problem of a large amount of data accumulation at the acquisition end or the gateway side is alleviated, the data processing pressure at the service end is correspondingly reduced, and the efficiency of data transmission each time is improved after the amount of data that needs to be uploaded each time is reduced, and the real-time performance of the data is ensured.
The embodiment of the invention introduces an application example to more clearly understand the application of communication optimization in a mode of improving a message data structure in the communication method of the internet of things.
Referring to fig. 2, a schematic diagram of an internet of things communication protocol data structure provided in an embodiment of the present invention is an improvement of a message data structure in the present invention, where a parameter change indication field is added behind each information object address field in an information element set in an application service data unit in an application layer, and the field indicates whether a certain parameter of a device changes, if so, an indication bit where the parameter is located is assigned to be "1", otherwise, the indication bit is assigned to be "0". And adding parameters with changed values in sequence from the high order to the low order of the field after the parameter change indication field. Namely: and assigning the corresponding parameters of '1' in the parameter change indication field, and filling the corresponding parameters in the following data information according to the big-end bit sequence.
Referring to fig. 3, which is a schematic diagram of an information element set data structure provided by an embodiment of the present invention, in the implementation shown in fig. 3, a parameter change indication field is two bytes, and parameter data with a change larger than a threshold is arranged behind the parameter change indication field, which are both two bytes.
Take electric power industry electricity distribution room data acquisition as an example, wherein, information object address refers to the link address of data acquisition equipment at data acquisition terminal, and acquisition equipment includes: the intelligent electric meter, the comprehensive protection device, the direct current screen, the temperature and humidity sensor, the smoke sensor and the like, and the address field of the information object is two bytes. The parameter change indication refers to whether the parameter value of each intelligent device or sensor changes in the next acquisition cycle, and the parameter change indication field is two bytes. In this embodiment, the parameter change indication field is formed by sequentially arranging the parameter indication bits that have changed in the parameter change indication field from the higher order to the lower order.
Here, the acquisition device takes a smart meter as an example, where the link address of the smart meter is 0X4008 (the start address of the telemetry data is 0X 4001). Fig. 4 is a schematic diagram of a data structure of a parameter change indication field, where the parameter change indication field is two bytes and includes 16 indication bits, each bit represents a change of a certain parameter and actually includes 15 parameters of the smart meter, which indicates that the parameter change indication field can indicate a change of the 15 parameters.
In this embodiment, if a certain parameter is changed by the least square calculation, it is set to "1" at its corresponding indication position, and otherwise, it is set to "0". For example, line voltage UabAnd if the sum frequency F changes and other parameters do not change, the value of the parameter change indicator bit is as follows: 0000001000000100B.
Numerical line voltage U with variable parametersab365V and frequency F49.869 Hz, the transmission data of the first information object in the information element set is: 40080204019D C2 CD, the format of its transmission data is shown in fig. 5 as an example of the transmission data.
The embodiment of the invention introduces an application example of a communication method of the Internet of things.
Here, taking a smart meter as an example of the collecting device, the method includes the following steps:
the first step is as follows: setting a reference data updating period of the parameters;
the second step is that: preprocessing the data acquired in the first acquisition cycle, directly transferring the remote signaling data to an uploading buffer area, and immediately uploading; the telemetering data is set as reference data after noise is removed, the reference data is stored in a memory database, and parameters considered as noise need to be supplemented to corresponding positions of the memory database in the acquisition process of a subsequent acquisition period;
the third step: uploading the remote signaling data of the next acquisition period immediately, and performing classification calculation on the remote signaling data and the reference data in the memory database by adopting a least square method, wherein the parameter change indication field data structure of the intelligent electric meter is shown in figure 3, and the calculation steps comprise:
(1) taking the phase voltage as an example, the variation of the same kind of parameters is calculated by using a least square method:
Δ=(U'a-Ua)2+(U'b-Ub)2+(U'c-Uc)2
wherein Delta is the variation of phase voltage, U'a、Ub'、Uc' real-time data of A-phase voltage, B-phase voltage and C-phase voltage, Ua、Ub、UcReference data of the a-phase voltage, the B-phase voltage, and the C-phase voltage are provided.
(2) Comparing the delta value of the calculation result of the least square method with a variation threshold value, and assuming that the variation threshold value of the phase voltage is 0.01;
if Δ < 0.01, the corresponding parameter change indicator bit D15、D14And D13Is set to be 0;
if the delta is larger than 0.01, comparing the single term voltage calculation result delta with a set single term threshold value, and setting the single term threshold value to be 0.005;
a) if the A phase voltage is delta1Less than 0.005, the corresponding parameter change indicator bit D15Setting '0' or '1' otherwise;
b) if the B-phase voltage is delta2Less than 0.005, the corresponding parameter change indicator bit D14Setting '0' or '1' otherwise;
c) if the C phase voltage is delta3Less than 0.005, the corresponding parameter change indicator bit D13Setting '0' or '1' otherwise;
(3) after calculation, filling the changed parameter data into the changed parameter data fields in sequence according to a big-end bit sequence;
(4) continuously calculating the residual parameters;
if the parameters are not calculated, turning to the step (1);
and if all the parameters are calculated, uploading the message generated in the current acquisition period, and carrying out the next step.
The fourth step: judging whether a reference data updating period is reached;
if the counting time is up, updating the data acquired in the next period to the memory database, uploading all the data, and counting again in the reference data updating period;
if the counting time is not up, the third step is continued.
Therefore, through the circulation of the first step to the fourth step, the uploading of the communication data is realized, the total amount of the data needing to be uploaded is greatly reduced, and the transmission efficiency is effectively improved.
An embodiment of the present invention further provides an internet of things communication device, which is a schematic structural diagram of the internet of things communication device, referring to fig. 6, wherein the device includes an initialization module 61, a real-time data acquisition module 62, a parameter variation calculation module 63, a comparison module 64, and an upload module 65, which are connected in sequence. The functions of each module are as follows:
the initialization module 61 is used for initializing the reference data of the parameters of the acquisition equipment;
a real-time data acquisition module 62 for acquiring real-time data of the parameter;
a parameter variation calculating module 63, configured to calculate a variation of the parameter according to the real-time data and the reference data;
a comparing module 64, configured to compare the variation of the parameter with a preset variation threshold, and identify a parameter with the variation larger than the variation threshold as a first parameter;
and an uploading module 65, configured to upload the real-time data corresponding to the first parameter.
The implementation principle and the generated technical effect of the communication device of the internet of things provided by the embodiment of the invention are the same as those of the method embodiment, and for the sake of brief description, no part of the embodiment of the device is mentioned, and reference may be made to the corresponding contents in the method embodiment.
Referring to fig. 7, an embodiment of the present invention further provides an internet of things communication apparatus 700, including: the processor 70, the memory 71, the bus 72 and the communication interface 73, wherein the processor 70, the communication interface 73 and the memory 71 are connected through the bus 72; the processor 70 is arranged to execute executable modules, such as computer programs, stored in the memory 71.
The Memory 71 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 73 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 72 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
The memory 71 is used for storing a program, and the processor 70 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 70, or implemented by the processor 70.
The processor 70 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 70. The Processor 70 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 71, and the processor 70 reads the information in the memory 71 and completes the steps of the method in combination with the hardware thereof.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
In all examples shown and described herein, any particular value should be construed as merely exemplary, and not as a limitation, and thus other examples of example embodiments may have different values.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The computer program product for performing the communication method of the internet of things provided by the embodiment of the present invention includes a computer-readable storage medium storing a nonvolatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and will not be described herein again.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. An internet of things communication method is characterized by comprising the following steps:
initializing reference data of parameters of acquisition equipment;
acquiring real-time data of the parameters;
calculating the variable quantity of the parameter according to the real-time data and the reference data;
comparing the variable quantity of the parameter with a preset variable quantity threshold value, and setting an information object address field, a parameter change indication field and a change parameter data field in a data structure of the sent message;
the information object address field is used for storing the address of the acquisition equipment;
the change parameter data field is used for storing data of the parameter with the change amount larger than the change amount threshold;
the parameter change indication field comprises a plurality of indication bits, and each parameter corresponds to one indication bit;
when the variation of the parameter is larger than the variation threshold, assigning the indicator bit corresponding to the parameter as a first value to identify the parameter as a first parameter;
and uploading the real-time data corresponding to the first parameter.
2. The internet of things communication method of claim 1, further comprising:
and sequentially filling the data of the first parameter into the variable parameter data field according to a big-end bit sequence.
3. The communication method of the internet of things as claimed in claim 1, wherein the information object address field is disposed at a link layer, and the parameter change indication field and the change parameter data field are disposed at an application layer.
4. The communication method of the internet of things according to any one of claims 1 to 3, wherein the step of calculating the variation of the parameter according to the real-time data and the reference data comprises:
calculating the variable quantity of the parameters by a least square method according to the real-time data and the reference data;
the calculation formula for calculating the variation of the parameter by the least square method is as follows:
Δ=(U'a-Ua)2
wherein Delta is the variable quantity of the parameter, U'aAs real-time data of parameters, UaIs the reference data.
5. The communication method of the internet of things according to claim 1, wherein the step of initializing the reference data of the parameters of the acquisition device comprises:
acquiring initial data of parameters of acquisition equipment in a first acquisition period;
setting the initial data as reference data.
6. The communication method of the internet of things as claimed in claim 5, wherein the step of setting the initial data as reference data comprises:
denoising the initial data to obtain denoised data;
setting the de-noised data as reference data.
7. The internet of things communication method of any one of claims 5 to 6, further comprising:
setting a reference data updating period;
and when the timing reaches the reference data updating period, acquiring real-time data of each parameter of the acquisition equipment in the current acquisition period, and updating the real-time data to cover the reference data.
8. An internet of things communication device, comprising:
the initialization module is used for initializing the reference data of the parameters of the acquisition equipment;
the real-time data acquisition module is used for acquiring real-time data of the parameters;
the parameter variable quantity calculation module is used for calculating the variable quantity of the parameter according to the real-time data and the reference data;
the comparison module is used for comparing the variable quantity of the parameter with a preset variable quantity threshold value and setting an information object address field, a parameter change indication field and a change parameter data field in a data structure of the sent message; the information object address field is used for storing the address of the acquisition equipment; the change parameter data field is used for storing data of the parameter with the change amount larger than the change amount threshold; the parameter change indication field comprises a plurality of indication bits, and each parameter corresponds to one indication bit; when the variation of the parameter is larger than the variation threshold, assigning the indicator bit corresponding to the parameter as a first value to identify the parameter as a first parameter;
and the uploading module is used for uploading the real-time data corresponding to the first parameter.
9. The communication device of the Internet of things is characterized by comprising a processor, a memory, a bus and a communication interface, wherein the processor, the communication interface and the memory are connected through the bus;
the memory is used for storing programs;
the processor is used for calling a program stored in the memory through the bus and executing the method of any one of claims 1 to 7.
CN201811000474.0A 2018-08-29 2018-08-29 Internet of things communication method and device Active CN109246210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811000474.0A CN109246210B (en) 2018-08-29 2018-08-29 Internet of things communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811000474.0A CN109246210B (en) 2018-08-29 2018-08-29 Internet of things communication method and device

Publications (2)

Publication Number Publication Date
CN109246210A CN109246210A (en) 2019-01-18
CN109246210B true CN109246210B (en) 2021-05-04

Family

ID=65069862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811000474.0A Active CN109246210B (en) 2018-08-29 2018-08-29 Internet of things communication method and device

Country Status (1)

Country Link
CN (1) CN109246210B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650098B (en) * 2019-09-20 2022-12-27 新奥数能科技有限公司 Variable frequency acquisition method and device for data of Internet of things
CN111953779A (en) * 2020-08-13 2020-11-17 拉扎斯网络科技(上海)有限公司 Data transmission method and device, computer equipment and computer readable storage medium
CN112565015B (en) * 2020-12-03 2021-08-17 深圳华制智能制造技术有限公司 Internet of things communication method and device, computer equipment and storage medium
CN114267166B (en) * 2021-12-27 2023-01-24 南京惠然测控技术有限公司 Intelligent meter reading processing method and system
CN114979828B (en) * 2022-05-18 2023-03-10 成都安讯智服科技有限公司 Internet of things communication module flow control method and system based on Modbus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113892A (en) * 2014-08-06 2014-10-22 中国联合网络通信集团有限公司 Management method and management system for sensor nodes in sensor network and gateway
CN107404483A (en) * 2017-07-31 2017-11-28 北京中科金马科技股份有限公司 Data processing method, device and data collecting system
WO2018098721A1 (en) * 2016-11-30 2018-06-07 深圳益强信息科技有限公司 Environment data monitoring method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101893865B (en) * 2009-05-19 2013-12-11 北京时代凌宇科技有限公司 Data transmission method for industrial detection system
CN103065471A (en) * 2012-12-21 2013-04-24 福建工程学院 Floating car information collection and optimization method based on active information reporting
TWI587110B (en) * 2015-07-03 2017-06-11 元智大學 Real time monitoring system and mothod thereof of optical film manufacturing process
CN107689990A (en) * 2017-08-24 2018-02-13 云上米度(贵州)科技有限公司 A kind of data reporting method of monitoring terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113892A (en) * 2014-08-06 2014-10-22 中国联合网络通信集团有限公司 Management method and management system for sensor nodes in sensor network and gateway
WO2018098721A1 (en) * 2016-11-30 2018-06-07 深圳益强信息科技有限公司 Environment data monitoring method and system
CN107404483A (en) * 2017-07-31 2017-11-28 北京中科金马科技股份有限公司 Data processing method, device and data collecting system

Also Published As

Publication number Publication date
CN109246210A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109246210B (en) Internet of things communication method and device
CN108737453B (en) Telemetry data organization method and device for communication of Internet of things
WO2020134867A1 (en) Method and device for detecting abnormal data of power terminal
CN111552246B (en) Equipment production line scheduling method applied to smart park and cloud computing server
CN109271363B (en) File storage method and device
CN111092865B (en) Security event analysis method and system
CN111813638B (en) Alarm information processing method and device and terminal equipment
CN115988038B (en) Data management method and system based on Internet of things platform
CN110971488A (en) Data processing method, device, server and storage medium
CN107562426B (en) Method and system for collecting and analyzing Trace of browser in non-embedded cloud
CN115038088A (en) Intelligent network security detection early warning system and method
CN108984703A (en) A kind of uniform resource position mark URL De-weight method and device
JP2019102974A (en) Data collection system, controller, control program, gateway unit, and gateway program
CN108650134B (en) Network fault positioning method and device and electronic equipment
CN113641676A (en) Time sequence processing method and device
CN107357740B (en) A kind of serializing device method of automatic configuration, device and distributed cache system
CN108460044A (en) The treating method and apparatus of data
CN109270885B (en) Data communication method, device and equipment for monitoring PLC system and storage medium
CN108306865B (en) Modbus packet-sticking processing method and device based on Netty framework
CN113835961B (en) Alarm information monitoring method, device, server and storage medium
CN111324600A (en) Data cleaning method and device
CN114398348A (en) Smart grid abnormal data processing method, gateway, electronic device and storage medium
CN112953723B (en) Vehicle-mounted intrusion detection method and device
CN111667190A (en) Electric power construction grounding monitoring method and device and server
CN111970374B (en) Data node grouping method, system and medium based on machine learning

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
GR01 Patent grant
GR01 Patent grant