CN107809487B - Sensor data transmission method, system and medium - Google Patents

Sensor data transmission method, system and medium Download PDF

Info

Publication number
CN107809487B
CN107809487B CN201711084602.XA CN201711084602A CN107809487B CN 107809487 B CN107809487 B CN 107809487B CN 201711084602 A CN201711084602 A CN 201711084602A CN 107809487 B CN107809487 B CN 107809487B
Authority
CN
China
Prior art keywords
storing
area
storage
data
sub
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
CN201711084602.XA
Other languages
Chinese (zh)
Other versions
CN107809487A (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.)
Putian Eastcom Communications Group Co ltd
Eastcompeace Technology Co Ltd
Original Assignee
Putian Eastcom Communications Group Co ltd
Eastcompeace 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 Putian Eastcom Communications Group Co ltd, Eastcompeace Technology Co Ltd filed Critical Putian Eastcom Communications Group Co ltd
Priority to CN201711084602.XA priority Critical patent/CN107809487B/en
Publication of CN107809487A publication Critical patent/CN107809487A/en
Application granted granted Critical
Publication of CN107809487B publication Critical patent/CN107809487B/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
    • 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

Abstract

The application discloses a sensor data transmission method, which is applied to a low-speed Internet of things platform, and comprises the following steps: acquiring data of a sensor; wherein, the data comprises load control, battery attribute, recording time and frame load; reconstructing the data according to a preset data frame format to obtain reconstructed data; transmitting the reconstruction data to a server which establishes communication connection with the low-speed Internet of things platform; the data frame format is sequentially provided with a first storage area for storing load control, a second storage area for storing battery attributes, a third storage area for storing recording time and a fourth storage area for storing frame loads according to a position sequence. By the method, the data transmission formats of the sensors can be unified, and the development efficiency of the Internet of things cloud platform is improved. Correspondingly, the invention also discloses a sensor data transmission system and a medium, which also have the beneficial effects.

Description

Sensor data transmission method, system and medium
Technical Field
The present invention relates to the field of software communications, and in particular, to a method, a system, and a medium for transmitting sensor data.
Background
At present, the application range of the technology of the internet of things is increasingly wide, and the internet of things is a network which extends and expands a user side between objects on the basis of the internet, so that information exchange and communication can be carried out between the objects. The sensor is used as a main sensing device in the Internet of things and also enters commercial application in a large scale. Obviously, the sensor, as a detection device capable of sensing the measured object, can convert the detected data information into an electrical signal or other form of data format according to a certain rule and transmit the electrical signal or other form of data format to the target object. In the prior art, each platform or industry company has respective sensor transmission specifications, has no uniform data transmission format, and can only aim at vertical industries, so that many developers have to repeatedly develop when accessing a new data transmission occasion. Moreover, each transmission specification has low pertinence and long data format, and is not suitable for the low-speed internet of things industry, so that how to better transmit data in the sensor is a problem to be solved by technical personnel in the field.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, a system, and a medium for transmitting sensor data, so as to unify transmission formats of sensor data of sensor equipment suppliers and improve development efficiency when a sensor equipment accesses an internet of things platform. The specific scheme is as follows:
a sensor data transmission method is applied to a low-rate Internet of things platform and comprises the following steps:
acquiring data of a sensor; wherein, the data comprises load control, battery attribute, recording time and frame load;
reconstructing the data according to a preset data frame format to obtain reconstructed data;
transmitting the reconstruction data to a server which establishes communication connection with the low-speed Internet of things platform; and a first storage area for storing the load control, a second storage area for storing the battery attribute, a third storage area for storing the recording time and a fourth storage area for storing the frame load are sequentially arranged in the data frame format according to a position sequence.
Preferably, the number of bytes occupied by the first storage area is 1 byte; the first storage area is sequentially provided with a first storage sub-area, a second storage sub-area, a third storage sub-area, a fourth storage sub-area, a fifth storage sub-area and a sixth storage sub-area, wherein the first storage sub-area is used for storing the version number of the sensor and is 3 bits, the second storage sub-area is used for storing the reservation and is 1bit, the third storage sub-area is used for storing the uplink and downlink configuration and is 1bit, the fourth storage sub-area is used for storing whether the first attribute exists or not, the fifth storage sub-area is used for storing the first attribute exists or not and the sixth storage sub-area is used for storing the second attribute exists or not.
Preferably, the number of bytes occupied by the second storage area is 0/1 bytes; the second storage area is sequentially provided with a seventh storage sub-area used for storing the RFU and an eighth storage sub-area used for storing the battery power, wherein the seventh storage sub-area is 4 bits and the eighth storage sub-area is 4 bits.
Preferably, the number of bytes occupied by the third storage area is 4 bytes.
Preferably, the number of bytes occupied by the fourth storage area is 2 to nbyte.
Preferably, the fourth memory area includes a ninth memory sub-area for storing a single data frame load and/or a tenth memory sub-area for storing a plurality of data frame loads.
Preferably, the ninth storage sub-region is sequentially provided with N1-byte first storage units for storing the sensor identifier and 1-nbbyte second storage units for storing the sensor data in a position sequence order.
Preferably, the tenth storage sub-region is sequentially provided with a third storage unit of 1byte for storing the sensor identifier, a fourth storage unit of 4 bytes for storing the recording start time, a fifth storage unit of 2 bytes for storing the recording time step, a sixth storage unit of 1byte for storing the data amount, and a seventh storage unit of 1 to nbbytes for storing the sensor data, in order of position sequence.
Preferably, the frame payload is a TV structure.
Correspondingly, the invention also discloses a sensor data transmission system, which is applied to the low-speed Internet of things platform, and the data transmission system comprises:
the data acquisition module is used for acquiring data of the sensor; wherein, the data comprises load control, battery attribute, recording time and frame load;
the data reconstruction module is used for reconstructing data according to a preset data frame format to obtain reconstructed data;
the data transmission module is used for transmitting the reconstruction data to a server which establishes communication connection with the low-rate Internet of things platform; and a first storage area for storing the load control, a second storage area for storing the battery attribute, a third storage area for storing the recording time and a fourth storage area for storing the frame load are sequentially arranged in the data frame format according to a position sequence.
Accordingly, the present invention also discloses a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the sensor data transmission method steps as disclosed in the foregoing.
In the invention, a sensor data transmission method is applied to a low-speed Internet of things platform, and the data transmission method comprises the following steps: acquiring data of a sensor; wherein, the data comprises load control, battery attribute, recording time and frame load; reconstructing the data according to a preset data frame format to obtain reconstructed data; transmitting the reconstruction data to a server which establishes communication connection with the low-speed Internet of things platform; the data frame format is sequentially provided with a first storage area for storing load control, a second storage area for storing battery attributes, a third storage area for storing recording time and a fourth storage area for storing frame loads according to a position sequence. Therefore, by the method, the transmission data of the sensor is reconstructed through the preset data transmission format, the transmission data of different sensors can be transmitted in a uniform format, the coupling between an upstream application developer and a downstream equipment developer of the Internet of things can be effectively reduced, and the repeated development is reduced. Moreover, the sensor data transmission format in the invention can realize the sharing of sensor equipment resources, and an upstream developer can quickly join the Internet of things platform as long as the upstream developer can meet the transmission protocol, thereby realizing the cooperative win-win.
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, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a sensor data transmission method according to an embodiment of the present invention;
fig. 2 is a structural diagram of a sensor data transmission system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a sensor data transmission method, which comprises the following steps of:
step S11: acquiring data of a sensor; wherein the data includes load control, battery attributes, recording time, and frame load.
Step S12: and reconstructing the data according to a preset data frame format to obtain reconstructed data.
Step S13: transmitting the reconstruction data to a server which establishes communication connection with the low-speed Internet of things platform; the data frame format is sequentially provided with a first storage area for storing load control, a second storage area for storing battery attributes, a third storage area for storing recording time and a fourth storage area for storing frame loads according to a position sequence.
It can be understood that, in the prior art, each internet of things platform or each industry company has its own industry standard, and there is no unified standard, and each standard has low pertinence and long data format, and is not suitable for the internet of things industry with low speed, and when a new internet of things platform is accessed, a large amount of repeated development work can be generated, thereby resulting in lower work efficiency. Therefore, in the present invention, the acquired sensor data is reconstructed in a preset data transmission format, so that the transmission data of the sensors are unified, and the format of the reconstructed sensor data is specifically shown in table 1.
TABLE 1
Figure BDA0001459768470000041
As can be obtained from table 1, the planned minimum byte of the data packet is 3 bytes, and the maximum byte is specifically adjusted according to the protocol requirements corresponding to the wireless transmission technology of the internet of things. Therefore, by the method, the transmission data of the sensor is reconstructed through the preset data transmission format, the transmission data of different sensors can be transmitted in a uniform format, the coupling between an upstream application developer and a downstream equipment developer of the Internet of things can be effectively reduced, and the repeated development is reduced. Moreover, the sensor data transmission format in the invention can realize the sharing of sensor equipment resources, and an upstream developer can quickly join the Internet of things platform as long as the upstream developer can meet the transmission protocol, thereby realizing the cooperative win-win.
The second embodiment of the invention discloses a specific sensor data transmission method, and compared with the first embodiment, the second embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:
on the basis of the first embodiment, the number of bytes occupied by the first storage area is 1 byte; the first storage area is sequentially provided with a first storage sub-area with 3 bits for storing a version number identifier of the sensor, a second storage sub-area with 1bit for storing a reserved identifier, a third storage sub-area with 1bit for storing an uplink configuration identifier and a downlink configuration identifier, a fourth storage sub-area with 1bit for storing whether the first storage sub-area is single data, a fifth storage sub-area with 1bit for storing a first attribute identifier, and a sixth storage sub-area with 1bit for storing a second attribute identifier according to a position sequence order, which is specifically shown in table 2.
TABLE 2
Figure BDA0001459768470000051
Specifically, in this embodiment, the number of bytes occupied by the second storage area is 0/1 bytes; the second storage area is sequentially provided with a seventh storage sub-area for storing RFUs with 4 bits and an eighth storage sub-area for storing battery power with 2 bits according to the position sequence, which is specifically shown in table 3.
TABLE 3
Figure BDA0001459768470000052
Specifically, the byte count of the third storage area is 4 bytes, and the byte count of the fourth storage area is 2 to nbyte. Also, the fourth memory region includes a ninth memory sub-region for storing a single data frame payload and/or a tenth memory sub-region for storing a plurality of data frame payloads. The ninth storage sub-region is sequentially provided with N first storage units of 1byte for storing the sensor identifier and 1 to nbbyte second storage units for storing the sensor data according to the position sequence, which is specifically shown in table 4.
It should be noted that, in this embodiment, in order to meet the requirements of multiple sensors of the detection module, the frame load is specifically a TV structure, that is, multiple sensor data can be uploaded through such a structure. During the process of uploading a plurality of pieces of sensor data at one time, a plurality of pieces of uniform sensor data are uploaded at one time in the most economical format.
TABLE 4
Figure BDA0001459768470000061
The storage format of the frame load data of the plurality of pieces of data is shown in table 5, that is, the tenth storage sub-region is sequentially provided with a third storage unit of 1byte for storing the sensor identifier, a fourth storage unit of 4 bytes for storing the recording start time, a fifth storage unit of 2 bytes for storing the recording time step, a sixth storage unit of 1byte for storing the data amount, and a seventh storage unit of 1 to nbyte for storing the sensor data in a position sequence order.
TABLE 5
Figure BDA0001459768470000062
As can be seen from tables 2 to 5, the sensor data transmission method of the present invention can not only achieve the adjustability of data length, but also easily achieve the upgrading and compatibility of the sensor version, and can flexibly select whether a battery is required or not and record time or not by selecting and configuring parameter values.
It should be noted that the preset uplink TAG value is shown in table 6, where the preset uplink TAG value includes various operation information of the sensor, such as an operation abnormal state, a switching value, a remaining power percentage, a temperature value, a relative humidity, a length, a percentage, a ten-thousandth fraction, and the like of the sensor. In order to make the meaning of each parameter value more clear, in this embodiment, table 6 and table 7 explain and explain the TAG value, type, data length, and value of each preset uplink, and specific contents may refer to the contents in table 6, which is not described herein again.
TABLE 6
Figure BDA0001459768470000071
TABLE 7
0x0 Nanometer (nm)
0x1 Micron (um)
0x2 Millimeter (mm)
0x3 Centimeter (cm)
0x4 Decimeter (dm)
0x5 Rice (m)
0x6 Kilometer (Km)
Accordingly, the preset downlink TAG values are shown in table 8. From table 8, various pieces of information about the operation of the sensor included in the preset downlink TAG value can be obtained. In order to make the meaning of each parameter value more clear, in table 8, the TAG value, the type, the data length, and the value of each predetermined uplink are explained and illustrated, and specific contents may refer to the contents in table 8, which is not described herein again.
TABLE 8
Figure BDA0001459768470000081
Correspondingly, the present invention also discloses a sensor data transmission system, as shown in fig. 2, the system includes:
a data acquisition module 21, configured to acquire data of the sensor; wherein the data includes load control, battery attributes, recording time, and frame load.
And the data reconstruction module 22 is configured to reconstruct the data according to a preset data frame format to obtain reconstructed data.
The data transmission module 23 is configured to transmit the reconstructed data to a server that establishes a communication connection with the low-rate internet of things platform; the data frame format is sequentially provided with a first storage area for storing load control, a second storage area for storing battery attributes, a third storage area for storing recording time and a fourth storage area for storing frame loads according to a position sequence.
Accordingly, the present invention also discloses a computer readable storage medium having a computer program stored thereon, which, when being executed by a processor, implements the steps of the sensor data transmission method as disclosed in the foregoing.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The sensor data transmission method, system and medium provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained herein by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (7)

1. A sensor data transmission method is applied to a low-rate Internet of things platform, and comprises the following steps:
acquiring data of a sensor; wherein, the data comprises load control, battery attribute, recording time and frame load;
reconstructing the data according to a preset data frame format to obtain reconstructed data;
transmitting the reconstruction data to a server which establishes communication connection with the low-speed Internet of things platform; a first storage area for storing the load control, a second storage area for storing the battery attribute, a third storage area for storing the recording time and a fourth storage area for storing the frame load are sequentially arranged in the data frame format according to a position sequence; the frame load is a TV structure; the fourth memory area comprises a ninth memory sub-area for storing a single data frame load and/or a tenth memory sub-area for storing a plurality of data frame loads; the ninth storage sub-region is sequentially provided with N first storage units of 1byte for storing the sensor identifier and 1-nbbyte second storage units for storing sensor data according to the position sequence order; the tenth storage sub-region is sequentially provided with a third storage unit of 1byte for storing the sensor identifier, a fourth storage unit of 4 bytes for storing the recording start time, a fifth storage unit of 2 bytes for storing the recording time step, a sixth storage unit of 1byte for storing the data quantity, and a seventh storage unit of 1-nbbyte for storing the sensor data according to the position sequence order.
2. The method of claim 1, wherein the first storage area occupies 1 byte; the first storage area is sequentially provided with a first storage sub-area, a second storage sub-area, a third storage sub-area, a fourth storage sub-area, a fifth storage sub-area and a sixth storage sub-area, wherein the first storage sub-area is used for storing the version number of the sensor and is 3 bits, the second storage sub-area is used for storing the reservation and is 1bit, the third storage sub-area is used for storing the uplink and downlink configuration and is 1bit, the fourth storage sub-area is used for storing whether the first attribute exists or not, the fifth storage sub-area is used for storing the first attribute exists or not and the sixth storage sub-area is used for storing the second attribute exists or not.
3. The method of claim 1, wherein the second storage area is 0/1 bytes; the second storage area is sequentially provided with a seventh storage sub-area used for storing the RFU and an eighth storage sub-area used for storing the battery power, wherein the seventh storage sub-area is 4 bits and the eighth storage sub-area is 4 bits.
4. The method of claim 1, wherein the third storage area is 4 bytes.
5. The method of claim 1, wherein the fourth storage area is 2 to nbyte in bytes.
6. A sensor data transmission system is applied to a low-rate Internet of things platform, and comprises:
the data acquisition module is used for acquiring data of the sensor; wherein, the data comprises load control, battery attribute, recording time and frame load;
the data reconstruction module is used for reconstructing data according to a preset data frame format to obtain reconstructed data;
the data transmission module is used for transmitting the reconstruction data to a server which establishes communication connection with the low-rate Internet of things platform; a first storage area for storing the load control, a second storage area for storing the battery attribute, a third storage area for storing the recording time and a fourth storage area for storing the frame load are sequentially arranged in the data frame format according to a position sequence; the frame load is a TV structure; the fourth memory area comprises a ninth memory sub-area for storing a single data frame load and/or a tenth memory sub-area for storing a plurality of data frame loads; the ninth storage sub-region is sequentially provided with N first storage units of 1byte for storing the sensor identifier and 1-nbbyte second storage units for storing sensor data according to the position sequence order; the tenth storage sub-region is sequentially provided with a third storage unit of 1byte for storing the sensor identifier, a fourth storage unit of 4 bytes for storing the recording start time, a fifth storage unit of 2 bytes for storing the recording time step, a sixth storage unit of 1byte for storing the data quantity, and a seventh storage unit of 1-nbbyte for storing the sensor data according to the position sequence order.
7. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the sensor data transmission method steps of any one of claims 1 to 5.
CN201711084602.XA 2017-11-07 2017-11-07 Sensor data transmission method, system and medium Active CN107809487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711084602.XA CN107809487B (en) 2017-11-07 2017-11-07 Sensor data transmission method, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711084602.XA CN107809487B (en) 2017-11-07 2017-11-07 Sensor data transmission method, system and medium

Publications (2)

Publication Number Publication Date
CN107809487A CN107809487A (en) 2018-03-16
CN107809487B true CN107809487B (en) 2021-10-01

Family

ID=61591697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711084602.XA Active CN107809487B (en) 2017-11-07 2017-11-07 Sensor data transmission method, system and medium

Country Status (1)

Country Link
CN (1) CN107809487B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429820A (en) * 2018-05-23 2018-08-21 深圳远征技术有限公司 A kind of communication means of internet of things application layer, system and terminal device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6188685B1 (en) * 1995-12-07 2001-02-13 Alcatel Synchronous digital transmission system
CN106502934A (en) * 2016-11-09 2017-03-15 上海微小卫星工程中心 The spaceborne data management system of high-speed integratedization

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6370198B1 (en) * 1997-04-07 2002-04-09 Kinya Washino Wide-band multi-format audio/video production system with frame-rate conversion
CN103686848B (en) * 2012-09-18 2017-01-25 中国移动通信集团公司 Method, gateway, platform and system for processing messages of family Internet of Things
JP6065642B2 (en) * 2013-02-25 2017-01-25 富士通株式会社 Storage control program, storage control device, storage system, and storage control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6188685B1 (en) * 1995-12-07 2001-02-13 Alcatel Synchronous digital transmission system
CN106502934A (en) * 2016-11-09 2017-03-15 上海微小卫星工程中心 The spaceborne data management system of high-speed integratedization

Also Published As

Publication number Publication date
CN107809487A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
US11071013B2 (en) Method and system for group communication, group server, and group member device
US11368522B2 (en) Lightweight IoT information model
JP6563439B2 (en) Semantic naming model
US11799735B2 (en) Information processing method in M2M and apparatus
CN108476236B (en) Semantic-based content specification of internet of things data
CN108063775B (en) Communication protocol compatible method, device and system
CN105722040A (en) Service message transmission method, apparatus and system
CN107809487B (en) Sensor data transmission method, system and medium
WO2021147319A1 (en) Data processing method, apparatus, device, and medium
CN109032693A (en) Method and device for loading display information, electronic equipment and readable storage medium
JP6951380B2 (en) Gateway device, communication method and program
JP2013540388A5 (en)
CN107566154B (en) Electric quantity control method and device
CN107547208B (en) Energy saving method and device
US20190306073A1 (en) Method and device for enhancing the throughput between smart meter and server
CN116527439B (en) Data communication method, device, computer equipment and computer readable storage medium
CN115243286B (en) Data processing method, device and storage medium
CN117376454A (en) Device management method, device and storage medium

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