CN111555833A - Data transmission processing method based on wireless module - Google Patents

Data transmission processing method based on wireless module Download PDF

Info

Publication number
CN111555833A
CN111555833A CN202010331505.1A CN202010331505A CN111555833A CN 111555833 A CN111555833 A CN 111555833A CN 202010331505 A CN202010331505 A CN 202010331505A CN 111555833 A CN111555833 A CN 111555833A
Authority
CN
China
Prior art keywords
data packet
wireless module
timestamp
difference
difference value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010331505.1A
Other languages
Chinese (zh)
Inventor
陶广全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Glory Travel Shenzhen Technology Co ltd
Original Assignee
Glory Travel Shenzhen 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 Glory Travel Shenzhen Technology Co ltd filed Critical Glory Travel Shenzhen Technology Co ltd
Priority to CN202010331505.1A priority Critical patent/CN111555833A/en
Publication of CN111555833A publication Critical patent/CN111555833A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a data transmission processing method based on a wireless module, which relates to the technical field of networks, and comprises the steps of simultaneously receiving data packets which are sent by a server at the same time point and carry a first time stamp by utilizing a first wireless module and a second wireless module to obtain the first data packet and the second data packet, obtaining the time of receiving the data packets by the first wireless module, generating a second time stamp, obtaining the time of receiving the data packets by the second wireless module, generating a third time stamp, respectively calculating the difference values of the second time stamp and the third time stamp and the first time stamp to obtain a first difference value and a second difference value, respectively judging whether the first difference value and the second difference value are larger than a set threshold value and according to the judgment result, the first data packet and the second data packet are processed, so that normal communication of the mobile equipment is guaranteed, communication requirements of various mobile equipment can be met, and the cost is low.

Description

Data transmission processing method based on wireless module
Technical Field
The invention relates to the technical field of networks, in particular to a data transmission processing method based on a wireless module.
Background
The coverage range of the wireless AP is limited, when a scene is large, in order to provide a good network for a mobile device, enough wireless APs must be arranged in the scene, the mobile device must be involved in roaming when moving, namely when switching from one wireless AP to another wireless AP, Wi-Fi connection on the mobile device is disconnected briefly during switching, the disconnection time is different from tens of milliseconds to hundreds of milliseconds, communication delay is increased due to short-time load increase, and the requirement of the mobile device (mobile robot) with high data real-time requirement cannot be met.
Disclosure of Invention
In order to solve the defects of the prior art, an embodiment of the present invention provides a data transmission processing method based on a wireless module, including the following steps:
the method comprises the steps that a first wireless module and a second wireless module are used for simultaneously receiving data packets which are sent by a server at the same time point and carry first timestamps, and a first data packet and a second data packet are obtained, wherein the first timestamps are the sending time of the data packets;
acquiring the time when the first wireless module receives the data packet, and generating a second timestamp;
acquiring the time when the second wireless module receives the data packet, and generating a third timestamp;
calculating the difference values of the second timestamp, the third timestamp and the first timestamp respectively to obtain a first difference value and a second difference value;
and respectively judging whether the first difference value and the second difference value are larger than a set threshold value or not, and processing the first data packet and the second data packet according to the judgment result.
Preferably, according to the determination result, the processing the first data packet and the second data packet includes:
when the first difference value and the second difference value are both smaller than a set threshold value, comparing the sizes of the second timestamp and the third timestamp, and if the second timestamp is smaller than the third timestamp, saving the first data packet and discarding the second data packet; and if the second timestamp is greater than the third timestamp, saving the second data packet and discarding the first data packet.
Preferably, according to the judgment result, the processing the first data packet and the second data packet further includes:
and when the first difference is larger than a set threshold value and the second difference is smaller than the threshold value, saving the second data packet and discarding the first data packet.
Preferably, according to the judgment result, the processing the first data packet and the second data packet further includes:
and when the first difference is smaller than a set threshold value and the second difference is larger than the threshold value, saving the first data packet and discarding the second data packet.
Preferably, according to the judgment result, the processing the first data packet and the second data packet further includes:
and when the first difference value and the second difference value are both larger than a set threshold value, discarding the first data packet and the second data packet.
Preferably, the data packet further comprises:
data identification and valid data.
Preferably, the first wireless module is a WIFI module.
Preferably, the second wireless module is a 433m wireless module.
The data transmission processing method based on the wireless module provided by the embodiment of the invention has the following beneficial effects:
through setting up first wireless module and second wireless module, establish main and auxiliary network system, under the condition that main network delay is higher or the line falls, auxiliary network can take effect immediately for data does not lose the packet, has guaranteed mobile device's normal communication, can satisfy various mobile device's communication demand and cost are lower.
Detailed Description
The present invention will be described in detail with reference to the following embodiments.
The data transmission processing method based on the wireless module provided by the embodiment of the invention comprises the following steps:
s101, a first wireless module and a second wireless module are used for simultaneously receiving data packets which are sent by a server at the same time point and carry a first time stamp, and a first data packet and a second data packet are obtained, wherein the first time stamp is the sending time of the data packets.
S102, acquiring the time of the first wireless module receiving the data packet, and generating a second time stamp.
And S103, acquiring the time of the second wireless module receiving the data packet, and generating a third time stamp.
And S104, respectively calculating the difference values of the second time stamp and the third time stamp with the first time stamp to obtain a first difference value and a second difference value.
And S105, respectively judging whether the first difference value and the second difference value are larger than a set threshold value, and processing the first data packet and the second data packet according to the judgment result.
Optionally, processing the first data packet and the second data packet according to the determination result includes:
when the first difference and the second difference are both smaller than a set threshold value, comparing the second timestamp with the third timestamp, and if the second timestamp is smaller than the third timestamp, saving the first data packet and discarding the second data packet; and if the second timestamp is greater than the third timestamp, saving the second data packet and discarding the first data packet.
Optionally, processing the first data packet and the second data packet according to the determination result further includes:
and when the first difference is larger than a set threshold and the second difference is smaller than the threshold, saving the second data packet and discarding the first data packet.
Optionally, processing the first data packet and the second data packet according to the determination result further includes:
and when the first difference is smaller than the set threshold and the second difference is larger than the threshold, saving the first data packet and abandoning the second data packet.
As a specific example, when the first timestamp is "2020/1/920: 18: 00.456", the second timestamp is "2020/1/920: 18: 00.475", the third timestamp is "2020/1/920: 18: 00.486", and the set threshold is 20 milliseconds, the first difference is 19 milliseconds, the second difference is 30 milliseconds, and since 20 milliseconds are less than 30 milliseconds and greater than 19, the first data packet is included and the second data packet is discarded. Only one of the packets with the same identification will be executed.
Optionally, processing the first data packet and the second data packet according to the determination result further includes:
and when the first difference value and the second difference value are both larger than the set threshold value, discarding the first data packet and the second data packet.
Optionally, the data packet further includes:
data identification and valid data.
Optionally, the first wireless module is a WIFI module.
Optionally, the second radio module is a 433m radio module.
According to the data transmission processing method based on the wireless module, the first wireless module and the second wireless module are used for simultaneously receiving the data packet which is sent by the server at the same time point and carries the first time stamp, the first data packet and the second data packet are obtained, the time of the first wireless module for receiving the data packet is obtained, the second time stamp is generated, the time of the second wireless module for receiving the data packet is obtained, the third time stamp is generated, the difference values of the second time stamp and the first time stamp and the difference values of the third time stamp and the first time stamp are respectively calculated, the first difference value and the second difference value are obtained, whether the first difference value and the second difference value are larger than the set threshold value is respectively judged, the first data packet and the second data packet are processed according to the judgment result, the normal communication of the mobile device is guaranteed, the communication requirements of various mobile devices can be met, and the cost is low.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It should also be noted that 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 the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (8)

1. A data transmission processing method based on a wireless module is characterized by comprising the following steps:
the method comprises the steps that a first wireless module and a second wireless module are used for simultaneously receiving data packets which are sent by a server at the same time point and carry first timestamps, and a first data packet and a second data packet are obtained, wherein the first timestamps are the sending time of the data packets;
acquiring the time when the first wireless module receives the data packet, and generating a second timestamp;
acquiring the time when the second wireless module receives the data packet, and generating a third timestamp;
calculating the difference values of the second timestamp, the third timestamp and the first timestamp respectively to obtain a first difference value and a second difference value;
and respectively judging whether the first difference value and the second difference value are larger than a set threshold value or not, and processing the first data packet and the second data packet according to the judgment result.
2. The method as claimed in claim 1, wherein the processing the first and second packets according to the determination result comprises:
when the first difference value and the second difference value are both smaller than a set threshold value, comparing the sizes of the second timestamp and the third timestamp, and if the second timestamp is smaller than the third timestamp, saving the first data packet and discarding the second data packet; and if the second timestamp is greater than the third timestamp, saving the second data packet and discarding the first data packet.
3. The method as claimed in claim 1, wherein processing the first and second packets according to the determination result further comprises:
and when the first difference is larger than a set threshold value and the second difference is smaller than the threshold value, saving the second data packet and discarding the first data packet.
4. The method as claimed in claim 1, wherein processing the first and second packets according to the determination result further comprises:
and when the first difference is smaller than a set threshold value and the second difference is larger than the threshold value, saving the first data packet and discarding the second data packet.
5. The method as claimed in claim 1, wherein processing the first and second packets according to the determination result further comprises:
and when the first difference value and the second difference value are both larger than a set threshold value, discarding the first data packet and the second data packet.
6. The method of claim 1, wherein the data packet further comprises:
data identification and valid data.
7. The data transmission processing method based on the wireless module as claimed in claim 1, wherein the first wireless module is a WIFI module.
8. The method of claim 1, wherein the second radio module is a 433m radio module.
CN202010331505.1A 2020-04-24 2020-04-24 Data transmission processing method based on wireless module Pending CN111555833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010331505.1A CN111555833A (en) 2020-04-24 2020-04-24 Data transmission processing method based on wireless module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010331505.1A CN111555833A (en) 2020-04-24 2020-04-24 Data transmission processing method based on wireless module

Publications (1)

Publication Number Publication Date
CN111555833A true CN111555833A (en) 2020-08-18

Family

ID=72007625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010331505.1A Pending CN111555833A (en) 2020-04-24 2020-04-24 Data transmission processing method based on wireless module

Country Status (1)

Country Link
CN (1) CN111555833A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355319A (en) * 2011-08-17 2012-02-15 中国科学院深圳先进技术研究院 Time synchronization method and system for wireless sensor network
CN108964822A (en) * 2018-06-29 2018-12-07 四川斐讯信息技术有限公司 A kind of multi-scheme obtains the method and system of network time parallel
CN110798869A (en) * 2018-08-02 2020-02-14 华为技术有限公司 Network switching method, electronic equipment and chip subsystem

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355319A (en) * 2011-08-17 2012-02-15 中国科学院深圳先进技术研究院 Time synchronization method and system for wireless sensor network
CN108964822A (en) * 2018-06-29 2018-12-07 四川斐讯信息技术有限公司 A kind of multi-scheme obtains the method and system of network time parallel
CN110798869A (en) * 2018-08-02 2020-02-14 华为技术有限公司 Network switching method, electronic equipment and chip subsystem

Similar Documents

Publication Publication Date Title
US7782769B2 (en) Access control device, wireless device, and network
JP3104514B2 (en) Delivery procedure for mobile wireless station
CN111867073B (en) Time information processing method, timing advance determining method and related equipment
US8131299B2 (en) Location registration area assigning method and wireless communication system
US20060033746A1 (en) Data transfer system and data transfer method
CN1774872A (en) Method and system for integrating resource allocation between time division duplex and frequency division duplex in wireless communication systems
US10362549B2 (en) Method and apparatus for setting up interface between access points
WO2008018151A1 (en) Communication system using multi-radio mode, monitor node apparatus, control node apparatus and base station apparatus
US8554227B2 (en) Cell selection based on priority factors in overlapping cells using different frequencies
CN106304047A (en) A kind of smart machine method of network entry and configuration system
CN114026926A (en) Time delay compensation method, time delay compensation equipment and storage medium
CN103841605B (en) A kind of method and apparatus for realizing multiple BBU equipment rooms baseband signal collaboration processing
US7848467B2 (en) Signal processing system in wireless mobile communication system
US20050014498A1 (en) Mobile communication system, extension transmission/reception server, extension transmission/reception controller, base station, radio network controller, mobile station and communication method
US8918097B2 (en) Managing service in an access network for wireless communication
CN104869621A (en) Method and device for network awareness
US10117143B2 (en) Communications processing system, communications processing method, communications control device, and control method and control program for these
CN111555833A (en) Data transmission processing method based on wireless module
CN111328069B (en) Resource allocation mode configuration method, terminal and network equipment
CN111132317B (en) Resource allocation method, terminal and communication equipment
JP4148272B2 (en) Wireless access control device
CN110167014A (en) The solution and system of double card bilateral mobile terminal down going channel failure
CN106612545B (en) Paging method, P-CSCF, S-GW and paging network system
US20090296682A1 (en) Wireless communication system, wireless terminal, management apparatus, and session control method
US7088707B2 (en) Method for setting a R-P link in mobile communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200818