CN106851686B - Method and system for realizing wireless MAC protocol with time compensation data acquisition - Google Patents

Method and system for realizing wireless MAC protocol with time compensation data acquisition Download PDF

Info

Publication number
CN106851686B
CN106851686B CN201710053369.2A CN201710053369A CN106851686B CN 106851686 B CN106851686 B CN 106851686B CN 201710053369 A CN201710053369 A CN 201710053369A CN 106851686 B CN106851686 B CN 106851686B
Authority
CN
China
Prior art keywords
data
information
time
delay information
delay
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
CN201710053369.2A
Other languages
Chinese (zh)
Other versions
CN106851686A (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.)
Zhengzhou Xingong Intelligent System Co Ltd
Original Assignee
Zhengzhou Xingong Intelligent System 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 Zhengzhou Xingong Intelligent System Co Ltd filed Critical Zhengzhou Xingong Intelligent System Co Ltd
Priority to CN201710053369.2A priority Critical patent/CN106851686B/en
Publication of CN106851686A publication Critical patent/CN106851686A/en
Application granted granted Critical
Publication of CN106851686B publication Critical patent/CN106851686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/02Data link layer protocols

Abstract

The invention provides a method and a system for realizing a data acquisition wireless MAC protocol with time compensation, which relate to the technical field of communication protocols. The invention can improve the time accuracy of data acquisition of the sensing node.

Description

Method and system for realizing wireless MAC protocol with time compensation data acquisition
Technical Field
The invention relates to the technical field of communication protocols, in particular to a method and a system for realizing a wireless MAC protocol with time compensation data acquisition.
Background
The internet of things is a new industry, sensors are the basis of the internet of things, wireless network sensors are the most basic industry of the internet of things, and the technical level of the wireless network sensors is also a key factor influencing the application and popularization of the internet of things. The wireless sensor network comprises a sensing node and a network relay. The sensing node is a network sensor and is responsible for data acquisition, processing and transmission. The network relay is responsible for collecting data of the sensing nodes, and then packaging and sending the data to the data service center. The data collected by the sensing nodes has time, otherwise, the collected data has no meaning. The general method is as follows: the sensor node is equipped with a GPS (Global positioning system) to obtain time from the GPS. In addition, the sensing node collects data and then sends the data to the network relay, the time for collecting the data is not marked, and the network relay sends the received data to the data service center at the current time. If the acquisition time is long or network blockage occurs, the acquired data has a large time delay, so that the data loses meaning and even has serious consequences.
Disclosure of Invention
In view of this, the present invention provides a method and a system for implementing a wireless MAC protocol with time compensation data acquisition, so as to improve the time accuracy of data acquisition by a sensing node.
In a first aspect, an embodiment of the present invention provides a method for implementing a wireless MAC protocol with time compensation data acquisition, where the method includes:
acquiring first data information, and acquiring data delay information according to the first data information;
time marking is carried out on the data frame of the first data information according to the data time delay information, and frame tail information is obtained;
acquiring time information through a Global Positioning System (GPS), and calculating according to the time information and the frame tail information to obtain data acquisition time information;
and packaging the data acquisition time information and the first data information to obtain second data information, and sending the second data information to a data service center.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the method further includes:
judging whether the first data information is correct or not;
and if the first data information is correct, generating a confirmation data packet, feeding the confirmation data packet back to the sensor node, and obtaining feedback time delay information according to the confirmation data packet.
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 first data information includes a first data frame length, and the obtaining data delay information according to the first data information includes:
acquiring third data information, and calculating according to the third data information to obtain parameters and the feedback time delay information;
acquiring first time delay information according to the parameters and the length of the first data frame;
acquiring first sending confirmation time delay information, and calculating to obtain second time delay information by combining the first time delay information and the feedback time delay information;
and obtaining the data delay information according to the first delay information and the second delay information.
With reference to the second 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 third data information includes a second data frame length and a third data frame length, and the calculating parameters and the feedback delay information according to the third data information includes:
acquiring the length of the second data frame through first debugging, and measuring second sending confirmation time delay information;
acquiring the length of the third data frame through second debugging, and measuring third sending confirmation time delay information;
and calculating to obtain the parameter and the feedback time delay information according to the second data frame length, the third data frame length, the second sending confirmation time delay information and the third sending confirmation time delay information.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the obtaining the data delay information according to the first delay information and the second delay information includes:
calculating the data delay information according to the following formula:
T=aX+m
wherein, T is the data delay information, a is the length of the first data frame, X is the parameter, and m is the second delay information.
In a second aspect, an embodiment of the present invention further provides a system for implementing a wireless MAC protocol with time compensation data acquisition, where the system includes:
the data delay acquisition unit is used for acquiring first data information and acquiring data delay information according to the first data information;
the marking unit is used for carrying out time marking on the data frame of the first data information according to the data time delay information to obtain frame tail information;
the data acquisition time acquisition unit is used for acquiring time information through a GPS (global positioning system) and calculating to obtain data acquisition time information according to the time information and the frame tail information;
and the sending unit is used for packaging the data acquisition time information and the first data information to obtain second data information and sending the second data information to a data service center.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the method further includes:
and the judging unit is used for judging whether the first data information is correct or not, generating a confirmation data packet under the condition that the first data information is correct, feeding the confirmation data packet back to the sensor node, and obtaining feedback delay information according to the confirmation data packet.
With reference to the first possible implementation manner of the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the first data information includes a first data frame length, and the data delay obtaining unit is further configured to:
acquiring third data information, and calculating according to the third data information to obtain parameters and the feedback time delay information;
acquiring first time delay information according to the parameters and the length of the first data frame;
acquiring first sending confirmation time delay information, and calculating to obtain second time delay information by combining the first time delay information and the feedback time delay information;
and obtaining the data delay information according to the first delay information and the second delay information.
With reference to the second possible implementation manner of the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, where the third data information includes a second data frame length and a third data frame length, and the calculating parameters and the feedback delay information according to the third data information includes:
acquiring the length of the second data frame through first debugging, and measuring second sending confirmation time delay information;
acquiring the length of the third data frame through second debugging, and measuring third sending confirmation time delay information;
and calculating to obtain the parameter and the feedback time delay information according to the second data frame length, the third data frame length, the second sending confirmation time delay information and the third sending confirmation time delay information.
With reference to the second possible implementation manner of the second aspect, an embodiment of the present invention provides a fourth possible implementation manner of the second aspect, where the obtaining the data delay information according to the first delay information and the second delay information includes:
calculating the data delay information according to the following formula:
T=aX+m
wherein, T is the data delay information, a is the length of the first data frame, X is the parameter, and m is the second delay information.
The invention provides a method and a system for realizing a wireless MAC (Multiple Access Control) protocol, which are characterized in that first data information is acquired, data delay information is acquired according to the first data information, a data frame of the first data information is time-stamped according to the data delay information to acquire frame tail information, time information is acquired through a Global Positioning System (GPS), data acquisition time information is calculated according to the time information and the frame tail information to acquire data acquisition time information, the data acquisition time information and the first data information are packaged to acquire second data information, and the second data information is sent to a data service center. The invention can improve the time accuracy of data acquisition of the sensing node.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention 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 an implementation method of a wireless MAC protocol with time compensation data acquisition according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for implementing another wireless MAC protocol with time compensation data acquisition according to an embodiment of the present invention;
fig. 3 is a flowchart of a data delay information obtaining method according to an embodiment of the present invention;
fig. 4 is a flowchart of step S310 in the data delay information obtaining method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an implementation system of a wireless MAC protocol with time compensation data acquisition according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a wireless sensor network according to a second embodiment of the present invention.
Icon:
100-a data delay acquisition unit; 200-a marker cell; 300-a data acquisition time acquisition unit; 400-a transmitting unit.
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.
The wireless sensor network comprises a sensing node and a network relay. The data service center is responsible for receiving, storing, analyzing and presenting the data sent by the network relay to a user. In the process of data acquisition and transmission, if the acquisition time is long or network blockage occurs, the acquired data has great time delay, so that the data loses significance and even has serious consequences.
Based on this, the implementation method and system for the wireless MAC protocol with time compensation data acquisition provided by the embodiment of the invention can improve the time accuracy of data acquisition of the sensing node.
To facilitate understanding of the embodiment, a detailed description is first given to an implementation method of the wireless MAC protocol with time compensation data acquisition disclosed in the embodiment of the present invention.
The first embodiment is as follows:
fig. 1 is a flowchart of an implementation method of a wireless MAC protocol with time compensation data acquisition according to an embodiment of the present invention.
Referring to fig. 1, the method for implementing the wireless MAC protocol with time compensation data acquisition includes the following steps:
step S110, collecting first data information, and obtaining data delay information according to the first data information;
step S120, time marking is carried out on the data frame of the first data information according to the data time delay information, and frame tail information is obtained;
step S130, acquiring time information through a GPS system, and calculating according to the time information and frame tail information to obtain data acquisition time information;
and step S140, packaging the data acquisition time information and the first data information to obtain second data information, and sending the second data information to a data service center.
Specifically, the time between the beginning of collecting the first data information from the sensing node and the successful receiving of the network relay is called data delay. More specifically, the data delay includes acquisition delay, transmission delay, propagation delay, and processing delay. The data delay is the sum of the acquisition delay, the transmission delay, the propagation delay and the processing delay. The acquisition time delay refers to the time from the beginning of data acquisition to the beginning of data transmission; the transmission delay refers to the time from the beginning of data transmission to the completion of data transmission; the propagation delay refers to the time from the data transmission of the sensing node to the data reception of the network relay, and the propagation delay can be ignored because the propagation rate of the electromagnetic wave in the free space is the speed of light; the processing delay refers to the arbitration from the time of receiving the data, and comprises data unpacking, data decoding, CRC checking and the like.
The transmission delay and the processing delay are numbers related to the length of the data frame, and the transmission delay and the processing delay are used as first delay information. Assuming that the data frame length of the first data information is a, the first delay information is aX, where X is an unknown parameter. And acquiring time delay as second time delay information, and setting m as an unknown constant.
Fig. 2 is a flowchart of a method for implementing another wireless MAC protocol with time compensation data acquisition according to an embodiment of the present invention.
Referring to fig. 2, the method for implementing the wireless MAC protocol with time compensation data acquisition further includes the following steps:
step S210, judging whether the first data information is correct, if so, executing step S221; if the first data information is not correct, performing step S222 and step S230;
step S221, generating a confirmation data packet, feeding back the confirmation data packet to the sensor node, and obtaining feedback time delay information according to the confirmation data packet;
step S222; discarding the first data information;
step S230, resending the first data information.
Specifically, the network relay arbitrates the first data information, and under the condition that the first data information is correct, on one hand, the first data information is sent to the data server, and on the other hand, a confirmation data packet is fed back to the sensing node; the time from when the network relay arbitrates to when the sensor node receives an acknowledgement packet is set to n, the acknowledgement packet is of a fixed length, and n is an unknown constant associated with the acknowledgement packet.
And under the condition that the first data information is wrong, the network relay discards the first data information, the sensing node automatically resends the first data information to the network relay if the sensing node cannot receive the feedback confirmation data packet within a certain time, and the network relay judges the resent first data information again.
According to an exemplary embodiment of the present invention, the first data information includes a first data frame length, and referring to fig. 3, obtaining the data delay information according to the first data information includes the steps of:
step S310, acquiring third data information, and calculating to obtain parameters and feedback time delay information according to the third data information;
specifically, the third data information includes a length of the second data frame and a length of the third data frame, and referring to fig. 4, this step is specifically realized by steps S410 to S430:
step S410, acquiring the length of a second data frame through first debugging, and measuring second sending confirmation time delay information;
step S420, obtaining the length of a third data frame through second debugging, and measuring third sending confirmation time delay information;
step S430, calculating parameters and feedback delay information according to the second data frame length, the third data frame length, the second transmission acknowledgement delay information, and the third transmission acknowledgement delay information.
The time from the data acquisition of the sensing node to the reception of the acknowledgement data packet sent by the network relay is defined as the sending of the acknowledgement time delay, and the sending of the acknowledgement time delay is represented by K.
Through debugging, the sensing node only sends data but not collects the data, the third data information is manually modified, and the length b of the second data frame is set; starting a timer for timing when the sensing node starts to send the third data information, stopping timing until a data confirmation packet fed back by the network relay is received, calculating a second sending confirmation time delay K2 by checking the timer, and having a formula (1):
bX+n=K2 (1)
similarly, through debugging, the sensing node only sends data but does not collect data, and when the third data information is manually modified and the length c of the third data frame is set, the formula (2) is provided:
cX+n=K3 (2)
where K3 is the third transmission acknowledgement delay.
And calculating a parameter X and a feedback time delay n according to the formula (1) and the formula (2).
Step S320, obtaining first time delay information according to the parameter and the length of the first data frame;
specifically, the length of the first data frame is a, which is a known number, and the first delay information is the sum of the transmission delay and the processing delay, which is aX.
Step S330, acquiring first sending confirmation time delay information, and calculating to obtain second time delay information by combining the first time delay information and the feedback time delay information;
specifically, when the sensing node collects data, there is a first transmission confirmation delay K1, as shown in formula (3):
m+aX+n=K1 (3)
the first sending confirmation delay information K1 in the formula (3) can be checked through the timer timing, the parameter X and the feedback delay n are brought into the formula (3), the acquisition delay m can be calculated, and the second delay information is the acquisition delay.
Step S340, obtaining data delay information according to the first delay information and the second delay information.
Specifically, since the propagation delay is ignored, the data delay information only includes the first delay information and the second delay information, as represented by formula (4):
T=aX+m (4)
wherein, T is data delay information, aX is first delay information, i.e. the sum of transmission delay and processing delay, and m is acquisition delay.
When the sensing network finishes acquiring the first data information and needs to send, writing the data delay information T into the end of the data bit of the data frame for marking to obtain frame tail information, when the network relay receives the first data information, analyzing according to the frame tail information to obtain the data delay information, and calculating specific data acquisition time information by combining with time information obtained by the network relay through a GPS, for example: assuming that the time information is 15:30 and the data delay information is 15 minutes, the data acquisition time information is 15:15 by pushing the time information 15:30 forward for 15 minutes. And packaging the data acquisition time information and the first data information to obtain second data information, and sending the second data information to a data service center.
The invention provides a method for realizing a wireless MAC protocol with time compensation data acquisition, which acquires first data information, acquires data delay information according to the first data information, time-stamps a data frame of the first data information according to the data delay information to acquire frame tail information, acquires time information through a Global Positioning System (GPS), calculates the time information and the frame tail information to acquire data acquisition time information, packs the data acquisition time information and the first data information to acquire second data information, and sends the second data information to a data service center. The invention can improve the time accuracy of data acquisition of the sensing node.
Example two:
fig. 5 is a schematic diagram of an implementation system of a wireless MAC protocol with time compensation data acquisition according to a second embodiment of the present invention.
Referring to fig. 5, the system for implementing the wireless MAC protocol with time compensation data acquisition includes:
a data delay obtaining unit 100, configured to collect first data information and obtain data delay information according to the first data information;
a marking unit 200, configured to time-mark a data frame of the first data information according to the data delay information to obtain frame tail information;
the data acquisition time acquisition unit 300 is configured to acquire time information through a GPS and calculate data acquisition time information according to the time information and frame end information;
the sending unit 400 is configured to package the data acquisition time information and the first data information to obtain second data information, and send the second data information to the data service center.
According to an exemplary embodiment of the present invention, the system for implementing a wireless MAC protocol with time compensation data acquisition further comprises:
and the judging unit is used for judging whether the first data information is correct or not, generating a confirmation data packet under the condition that the first data information is correct, feeding the confirmation data packet back to the sensor node, and obtaining feedback delay information according to the confirmation data packet.
According to an exemplary embodiment of the present invention, the first data information includes a first data frame length, and the data delay obtaining unit 100 is further configured to:
acquiring third data information, and calculating according to the third data information to obtain parameters and feedback time delay information;
acquiring first time delay information according to the parameters and the length of the first data frame;
acquiring first sending confirmation time delay information, and calculating to obtain second time delay information by combining the first time delay information and the feedback time delay information;
and obtaining data delay information according to the first delay information and the second delay information.
According to an exemplary embodiment of the present invention, the third data information includes a length of a second data frame and a length of a third data frame, and the calculating the parameter and the feedback delay information according to the third data information includes:
acquiring the length of a second data frame through first debugging, and measuring second sending confirmation time delay information;
acquiring the length of a third data frame through second debugging, and measuring third sending confirmation time delay information;
and calculating to obtain parameters and feedback time delay information according to the length of the second data frame, the length of the third data frame, the second sending confirmation time delay information and the third sending confirmation time delay information.
Fig. 6 is a schematic structural diagram of a wireless sensor network according to a second embodiment of the present invention.
Referring to fig. 6, the wireless sensor network includes sensing nodes, network relays, and a data service center. The sensing nodes are widely distributed, have larger coverage area and are responsible for data acquisition, processing and transmission; the network relay is responsible for collecting data of the sensing nodes and packaging and sending the data to the data service center; the data service center is responsible for storing and analyzing the data and presenting the data to the user.
The data frame format according to the present invention is an 802.11MAC data frame format.
The system for realizing the wireless MAC protocol with the time compensation data acquisition acquires first data information, acquires data delay information according to the first data information, time marks data frames of the first data information according to the data delay information to obtain frame tail information, acquires time information through a Global Positioning System (GPS), calculates according to the time information and the frame tail information to obtain data acquisition time information, packs the data acquisition time information and the first data information to obtain second data information, and sends the second data information to a data service center. The invention can improve the time accuracy of data acquisition of the sensing node.
The method and the system for implementing the wireless MAC protocol with time compensation data acquisition according to the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to implement the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
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.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
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.
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 claims.

Claims (10)

1. A method for realizing a wireless MAC protocol with time compensation data acquisition is characterized by comprising the following steps:
acquiring first data information, and acquiring data delay information according to the first data information; the data delay is the time from the beginning of collecting the first data information by the sensing node to the successful receiving of the network relay;
time marking is carried out on the data frame of the first data information according to the data time delay information, and frame tail information is obtained; when the sensing network finishes collecting the first data information and needs to send the first data information, writing the data delay information into the end of a data bit of a data frame for marking to obtain frame tail information;
acquiring time information through a Global Positioning System (GPS), and calculating according to the time information and the frame tail information to obtain data acquisition time information; when the network relay receives the first data information, the data delay information is obtained through analysis according to the frame tail information, and the data acquisition time information is calculated by combining the time information obtained through the GPS by the network relay;
and packaging the data acquisition time information and the first data information to obtain second data information, and sending the second data information to a data service center.
2. The method for implementing a wireless MAC protocol with time-compensated data acquisition as claimed in claim 1, further comprising:
judging whether the first data information is correct or not;
and if the first data information is correct, generating a confirmation data packet, feeding the confirmation data packet back to the sensor node, and obtaining feedback time delay information according to the confirmation data packet.
3. The method of claim 2, wherein the first data information comprises a first data frame length, and the obtaining data delay information according to the first data information comprises:
acquiring third data information, and calculating according to the third data information to obtain parameters and the feedback time delay information;
acquiring first time delay information according to the parameters and the length of the first data frame;
acquiring first sending confirmation time delay information, and calculating to obtain second time delay information by combining the first time delay information and the feedback time delay information;
and obtaining the data delay information according to the first delay information and the second delay information.
4. The method of claim 3, wherein the third data information includes a second data frame length and a third data frame length, and the calculating the parameter and the feedback delay information according to the third data information includes:
acquiring the length of the second data frame through first debugging, and measuring second sending confirmation time delay information;
acquiring the length of the third data frame through second debugging, and measuring third sending confirmation time delay information;
and calculating to obtain the parameter and the feedback time delay information according to the second data frame length, the third data frame length, the second sending confirmation time delay information and the third sending confirmation time delay information.
5. The method of claim 3, wherein obtaining the data delay information according to the first delay information and the second delay information comprises:
calculating the data delay information according to the following formula:
T=aX+m
wherein, T is the data delay information, a is the length of the first data frame, X is the parameter, and m is the second delay information.
6. A system for implementing a wireless MAC protocol with time compensation data acquisition, comprising:
the data delay acquisition unit is used for acquiring first data information and acquiring data delay information according to the first data information; the data delay is the time from the beginning of collecting the first data information by the sensing node to the successful receiving of the network relay;
the marking unit is used for carrying out time marking on the data frame of the first data information according to the data time delay information to obtain frame tail information; when the sensing network finishes collecting the first data information and needs to send the first data information, writing the data delay information into the end of a data bit of a data frame for marking to obtain frame tail information;
the data acquisition time acquisition unit is used for acquiring time information through a GPS (global positioning system) and calculating to obtain data acquisition time information according to the time information and the frame tail information; when the network relay receives the first data information, the data delay information is obtained through analysis according to the frame tail information, and the data acquisition time information is calculated by combining the time information obtained through the GPS by the network relay;
and the sending unit is used for packaging the data acquisition time information and the first data information to obtain second data information and sending the second data information to a data service center.
7. The system for implementing a wireless MAC protocol with time-compensated data acquisition of claim 6, further comprising:
and the judging unit is used for judging whether the first data information is correct or not, generating a confirmation data packet under the condition that the first data information is correct, feeding the confirmation data packet back to the sensor node, and obtaining feedback delay information according to the confirmation data packet.
8. The system for implementing a wireless MAC protocol with time compensation data acquisition of claim 7, wherein the first data information includes a first data frame length, and the data delay obtaining unit is further configured to:
acquiring third data information, and calculating according to the third data information to obtain parameters and the feedback time delay information;
acquiring first time delay information according to the parameters and the length of the first data frame;
acquiring first sending confirmation time delay information, and calculating to obtain second time delay information by combining the first time delay information and the feedback time delay information;
and obtaining the data delay information according to the first delay information and the second delay information.
9. The system of claim 8, wherein the third data information includes a second data frame length and a third data frame length, and the calculating the parameter and the feedback delay information according to the third data information includes:
acquiring the length of the second data frame through first debugging, and measuring second sending confirmation time delay information;
acquiring the length of the third data frame through second debugging, and measuring third sending confirmation time delay information;
and calculating to obtain the parameter and the feedback time delay information according to the second data frame length, the third data frame length, the second sending confirmation time delay information and the third sending confirmation time delay information.
10. The system for implementing a wireless MAC protocol with time compensation for data acquisition of claim 8, wherein the obtaining the data delay information according to the first delay information and the second delay information comprises:
calculating the data delay information according to the following formula:
T=aX+m
wherein, T is the data delay information, a is the length of the first data frame, X is the parameter, and m is the second delay information.
CN201710053369.2A 2017-01-22 2017-01-22 Method and system for realizing wireless MAC protocol with time compensation data acquisition Active CN106851686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710053369.2A CN106851686B (en) 2017-01-22 2017-01-22 Method and system for realizing wireless MAC protocol with time compensation data acquisition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710053369.2A CN106851686B (en) 2017-01-22 2017-01-22 Method and system for realizing wireless MAC protocol with time compensation data acquisition

Publications (2)

Publication Number Publication Date
CN106851686A CN106851686A (en) 2017-06-13
CN106851686B true CN106851686B (en) 2020-03-31

Family

ID=59120395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710053369.2A Active CN106851686B (en) 2017-01-22 2017-01-22 Method and system for realizing wireless MAC protocol with time compensation data acquisition

Country Status (1)

Country Link
CN (1) CN106851686B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5940399A (en) * 1996-06-20 1999-08-17 Mrv Communications, Inc. Methods of collision control in CSMA local area network
CN101958813A (en) * 2010-09-14 2011-01-26 中兴通讯股份有限公司 Method for delaying data acquisition and device thereof
CN102088335A (en) * 2010-12-23 2011-06-08 中兴通讯股份有限公司 Method and device for determining time delay of data service
CN102572706A (en) * 2010-12-28 2012-07-11 上海贝尔股份有限公司 Method, equipment and system for detecting transmission time delays in wireless multi-cast system
CN102668468A (en) * 2009-11-03 2012-09-12 英特尔公司 Frame structure for support of large delay spread deployment scenarios
CN103138873A (en) * 2011-11-23 2013-06-05 中兴通讯股份有限公司 Obtaining method and device for two-layer data package time delay
CN103701847A (en) * 2013-10-28 2014-04-02 陕西高新实业有限公司 Onboard network data acquisition and synchronous transmission system
CN103929263A (en) * 2014-04-30 2014-07-16 北京华力创通科技股份有限公司 Network communication method, network communication delay determining method and network communication local time synchronizing method
CN104012025A (en) * 2011-11-07 2014-08-27 维特赛半导体公司 Physical layer processing of timestamps and MAC security

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5940399A (en) * 1996-06-20 1999-08-17 Mrv Communications, Inc. Methods of collision control in CSMA local area network
CN102668468A (en) * 2009-11-03 2012-09-12 英特尔公司 Frame structure for support of large delay spread deployment scenarios
CN101958813A (en) * 2010-09-14 2011-01-26 中兴通讯股份有限公司 Method for delaying data acquisition and device thereof
CN102088335A (en) * 2010-12-23 2011-06-08 中兴通讯股份有限公司 Method and device for determining time delay of data service
CN102572706A (en) * 2010-12-28 2012-07-11 上海贝尔股份有限公司 Method, equipment and system for detecting transmission time delays in wireless multi-cast system
CN104012025A (en) * 2011-11-07 2014-08-27 维特赛半导体公司 Physical layer processing of timestamps and MAC security
CN103138873A (en) * 2011-11-23 2013-06-05 中兴通讯股份有限公司 Obtaining method and device for two-layer data package time delay
CN103701847A (en) * 2013-10-28 2014-04-02 陕西高新实业有限公司 Onboard network data acquisition and synchronous transmission system
CN103929263A (en) * 2014-04-30 2014-07-16 北京华力创通科技股份有限公司 Network communication method, network communication delay determining method and network communication local time synchronizing method

Also Published As

Publication number Publication date
CN106851686A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
US9918245B2 (en) Wireless terminal device, measurement control method, control method, measurement control program, and recording medium
US20160109554A1 (en) ADAPTIVE OPTIMIZATION OF TIME OF FLIGHT (ToF) EXCHANGE
JP2018501717A5 (en)
CN113992297A (en) Method and device for determining network time delay, electronic equipment and storage medium
EP3393085B1 (en) Method and device for time sequence data detection
JP6251886B2 (en) Relay device and control method of relay device
CN106851686B (en) Method and system for realizing wireless MAC protocol with time compensation data acquisition
CA2981712C (en) Techniques for optimizing network event timers
CN112367146B (en) Method and device for delivering edge side message and electronic equipment
JP2003198563A (en) Radio communication device, method therefor, radio communication program and computer readable recording medium recorded with the same program
CN112312456B (en) Wireless link monitoring method and communication equipment
JP2017152930A (en) Communication system, and communication optimization device
CN113985854A (en) Data processing method and device and electronic equipment
US20220376741A1 (en) Data transmission methods, electronic tag and electronic device
CN111200790B (en) Private mesh forwarding control method, system and equipment thereof
JP6965290B2 (en) Wireless communication equipment, wireless communication methods, and wireless communication systems
KR101055898B1 (en) Distance measuring device and method in wireless communication system
CN111371641B (en) Network detection method and related product
KR101442485B1 (en) System and method for transmitting data
JP6197697B2 (en) Communication quality measurement method, communication quality measurement program, and communication apparatus
CN112887354B (en) Performance information acquisition method and device
JP2015097328A (en) Server, information collection system and information collection method
CN112671476B (en) Wireless pulse-per-second transmission method and system with fixed time delay
JP2003283472A (en) Data transfer control method
CN109995556B (en) Message format correction method and device

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