CN104468041A - Data processing device and method based on SWP data link - Google Patents

Data processing device and method based on SWP data link Download PDF

Info

Publication number
CN104468041A
CN104468041A CN201410723232.XA CN201410723232A CN104468041A CN 104468041 A CN104468041 A CN 104468041A CN 201410723232 A CN201410723232 A CN 201410723232A CN 104468041 A CN104468041 A CN 104468041A
Authority
CN
China
Prior art keywords
pointer
data
module
sliding window
data pointer
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.)
Granted
Application number
CN201410723232.XA
Other languages
Chinese (zh)
Other versions
CN104468041B (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.)
Shenzhen Bureau of Polytron Technologies Inc
Original Assignee
SHENZHEN ZHONGKE XUNLIAN 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 SHENZHEN ZHONGKE XUNLIAN TECHNOLOGY Co Ltd filed Critical SHENZHEN ZHONGKE XUNLIAN TECHNOLOGY Co Ltd
Priority to CN201410723232.XA priority Critical patent/CN104468041B/en
Publication of CN104468041A publication Critical patent/CN104468041A/en
Application granted granted Critical
Publication of CN104468041B publication Critical patent/CN104468041B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1832Details of sliding window management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/187Details of sliding window management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/27Evaluation or update of window size, e.g. using information derived from acknowledged [ACK] packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention belongs to the technical field of communication and particularly relates to a data processing device and method based on an SWP data link. The data processing device based on the SWP data link comprises a sending sliding window unit and a receiving sliding window unit. The sending sliding window unit is used for sending or resending data frames written into a sliding window. The receiving sliding window unit is used for receiving the data frames. According to the data processing device and method based on the SWP data link, through simultaneous work of the two sliding window units, the transmission efficiency of the SWP data link is guaranteed; the sending sliding window unit is divided into a data writing pointer module, a data sending pointer model and a data resending pointer module. The receiving sliding window unit is divided into a data receiving pointer unit and a data reading pointer module. According to the indication of the pointer of each pointer module, it is guaranteed that the data frames are sent and received correctly and orderly, transmission leakage and receiving leakage of data are avoided, traffic control over data transmission is achieved, and the problem of the jam of data transmission is solved.

Description

A kind of data processing equipment based on SWP data link and method
Technical field
The invention belongs to communication technical field, particularly relate to a kind of data processing equipment based on SWP data link and method.
Background technology
In recent years, mobile phone had been no longer simple means of communication, and it has become portable converter tools, was in the future expected to develop into the reliable means of payment, in fields such as consumption, shopping, traffic by mobile phone can more convenient, complete payment quickly.Based on the new demand of mobile phone, mobile payment is arisen at the historic moment, and becomes the hot issue of mobile operator, mobile-phone manufacturers and the research of SIM card manufacturer gradually.And NFC (Near Field Communication, short-range communication) phone solution, owing to solving the problem such as non-switched news and hair fastener flow process, be generally considered solution more perfect in mobile-phone payment.
SWP agreement (Single Wire Protocol, single-threaded agreement) standard defines communication interface between SIM card and NFC chip, transfer of data is realized by SHDLC (High-Level Data Link Control of the simplification) layer in SWP agreement, SHDLC layer is when full-duplex communication, and Frame will carry all frames guaranteeing data integrity.At present, in SWP data processing, the efficiency of transmission of SWP data link cannot be ensured, and the Frame transmitted exists, and leakage passes, leakage is received Frame and transmits the problems such as congested.
Summary of the invention
The invention provides a kind of data processing equipment based on SWP data link and method, be intended to solve the efficiency of transmission that existing SWP data processing technique cannot ensure SWP data link, and the Frame transmitted exists, and leakage passes, leakage is received Frame and transmits congested technical problem.
The present invention is achieved in that a kind of data processing equipment based on SWP data link, comprises and sends sliding window unit and receive sliding window unit; Described transmission sliding window unit sends the Frame of sliding window for sending or retransmit write, described reception sliding window unit is used for receiving data frames.
The technical scheme that the embodiment of the present invention is taked also comprises: described transmission sliding window unit comprises to be write data pointer module, send data pointer module and repeat transmission data pointer module; Before data send, write data pointer module, the pointer sending data pointer module and repeat to send data pointer module all point to the initial position sending sliding window unit, and the size of pointer value is all 0; Before data link starts to carry out data interaction, the pointed of write data pointer module sends first clear position of sliding window unit, the pointed of described transmission data pointer module sends first data frame position to be sent of sliding window unit, and the described pointed repeating to send data pointer module sends first data frame position waiting to repeat to send of sliding window unit.
The technical scheme that the embodiment of the present invention is taked also comprises: described transmission sliding window unit also comprises the first pointer judge module and the first pointer control module, described first pointer judge module is connected with the first pointer control module, and described first pointer judge module and the first pointer control module respectively with write data pointer module, send data pointer module and repeat to send data pointer model calling.
The technical scheme that the embodiment of the present invention is taked also comprises: when data link starts to carry out data interaction, judge whether the pointer size writing data pointer module is less than sliding window size by described first pointer judge module, if the pointer size writing data pointer module is less than sliding window size, then write frame data to first clear position sending sliding window unit, and add 1 by the pointer value that data pointer module is write in described first pointer control module control; Whether the pointer size of described first pointer judge module also for judging to send data pointer module is less than the pointer size sending sliding window size and write data pointer module, and whether pointed Frame is do not send Frame, if the pointer size sending data pointer module is less than the pointer size sending sliding window size and write data pointer module, and pointed Frame does not send Frame, then send this frame data by sending data pointer module, and add 1 by the pointer value of the first pointer control module control transmission data pointer module.
The technical scheme that the embodiment of the present invention is taked also comprises: described reception sliding window unit comprises reception data pointer module, read data pointer module, the second pointer judge module and the second pointer control module, described second pointer judge module is connected with the second pointer control module, and described second pointer judge module and the second pointer control module are connected with reception data pointer module and read data pointer module respectively; Before data receiver, the pointer of described reception data pointer module and read data pointer module all points to the initial position receiving sliding window unit, and the size of pointer value is all 0; When data link starts to carry out data interaction, the pointed of described reception data pointer module receives first clear position of sliding window unit, last data frame position received of the pointed of described read data pointer module.
The technical scheme that the embodiment of the present invention is taked also comprises: when described second pointer judge module judges that the pointer size of reception data pointer module is less than sliding window size, receive data, often receive frame data, the pointer value controlling to receive data pointer module by the second pointer control module adds 1, and judge whether the pointer size of read data pointer module is less than sliding window size by described second pointer judge module, and whether the pointer size of read data pointer module equals the pointer size receiving data pointer module, if the pointer size of read data pointer module is less than sliding window size, and the pointer of read data pointer module differs in size in the pointer size receiving data pointer module, from reception sliding window, read data by read data pointer module and dissection process is carried out to data, and add 1 by the pointer value of the second pointer control module control read data pointer module, if the pointer size of read data pointer module equals the pointer size receiving data pointer module, then control read data pointer module by the second pointer control module and make zero with the pointer value receiving data pointer module simultaneously.
The technical scheme that the embodiment of the present invention is taked also comprises: if the data that described read data pointer module is resolved to are request repeat Frames, then by the first pointer control module, transmission data pointer module and the pointer repeating to send data pointer module are placed in the position of the Frame that will retransmit, when the condition of satisfied transmission Frame, retransmit this Frame, and respectively add 1 by the first pointer control module control transmission data pointer module with the pointer value repeating to send data pointer module; When writing data pointer module, send data pointer module and repeat the size of the pointer value sending data pointer module all equal time, the pointer value controlling to write data pointer module by the first pointer control module, send data pointer module and repeat to send data pointer module makes zero simultaneously.
Another technical scheme that the embodiment of the present invention is taked is: a kind of data processing method based on SWP data link, comprising:
Step a: to transmission sliding window unit write Frame;
Step b: send or retransmission data frame by sending sliding window unit;
Step c: by receiving sliding window unit receiving data frames.
The technical scheme that the embodiment of the present invention is taked also comprises: described step a also comprises: be divided into by transmission sliding window unit and write data pointer module, send data pointer module, repeat to send data pointer module, and reception sliding window unit is divided into reception data pointer module and read data pointer module; Start to send or receive before data, write data pointer module, the pointer sending data pointer module and repeat to send data pointer module all point to the initial position sending sliding window, and the size of pointer value is all 0; The pointer of described reception data pointer module and read data pointer module all points to the initial position receiving sliding window, and the size of pointer value is all 0.
The technical scheme that the embodiment of the present invention is taked also comprises:
In described step a, after writing frame data to described transmission sliding window unit, the pointer value of write data pointer module adds 1;
In described step b, sent by the first frame data that write sends sliding window, the pointer value of described transmission data pointer module adds 1;
In described step c, often receive frame data, the pointer value of described reception data pointer module adds 1; Described read data pointer module reads data and carries out dissection process to data from reception sliding window, and the pointer value of read data pointer module is added 1; If the pointer size of read data pointer module equals the pointer size receiving data pointer module, then the pointer value of read data pointer module and reception data pointer module is made zero simultaneously;
If the data that read data pointer module is resolved to are request repeat Frames, then transmission data pointer module and the pointer repeating to send data pointer module are placed in the position of the Frame that will retransmit, and retransmit this Frame, often repeating transmission one frame data, respectively adding 1 by sending data pointer module with the pointer value repeating to send data pointer module; When writing data pointer module, send data pointer module and repeat to send the pointer size of data pointer module all equal time, by writing data pointer module, the pointer value that sends data pointer module and repeat to send data pointer module makes zero simultaneously.
The data processing equipment based on SWP data link of the embodiment of the present invention and method send and retransmission data frame by sending sliding window unit, by receiving sliding window unit receiving data frames, two sliding window unit work simultaneously, ensure the efficiency of transmission of SWP data link; And transmission sliding window unit is divided into writes data pointer module, send data pointer module, repeat to send data pointer module, reception sliding window unit is divided into and receives data pointer module and read data pointer module, pointer according to each pointer module indicates, guarantee the transmission that Frame is correct, orderly and reception, avoid Lou passing or missing data, realize the flow control of transfer of data, solve the congestion problems of transfer of data.
Accompanying drawing explanation
Fig. 1 is the structural representation of the data processing equipment based on SWP data link of the embodiment of the present invention;
Fig. 2 is the transmission sliding window unit of the embodiment of the present invention and the initial position structural representation of respective pointer thereof;
Fig. 3 is after sliding window writes frame data to transmission of the embodiment of the present invention, sends the size structure schematic diagram of sliding window and pointer thereof;
Fig. 4 is the reception sliding window unit of the embodiment of the present invention and the initial position structural representation of respective pointer thereof;
Fig. 5 is after the reception sliding window of the embodiment of the present invention receives frame data, receives the size structure schematic diagram of sliding window and pointer thereof;
Fig. 6 is the operating diagram of the transmission sliding window of the embodiment of the present invention;
Fig. 7 is the flow chart of the data processing method based on SWP data link of the embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Referring to Fig. 1, is the structural representation of the data processing equipment based on SWP data link of the embodiment of the present invention.The data processing equipment based on SWP data link of the embodiment of the present invention comprises transmission sliding window unit and receives sliding window unit; Sending sliding window unit for sending Frame and retransmission data frame, receiving sliding window unit and being used for receiving data frames; Two sliding window unit work simultaneously, ensure the efficiency of transmission of SWP data link, solve the congestion problems of transfer of data, and can not leak biography, leakage receipts Frame; The size sending sliding window unit and receive sliding window unit when SWP data link setup by supporting that the master-slave equipment of SWP agreement (if NFC mobile phone is as main frame, supporting that the SIM card of SWP agreement is as from machine) is consulted to determine.Particularly:
Send sliding window unit to comprise and write data pointer module, send data pointer module, repeat to send data pointer module, the first pointer judge module and the first pointer control module; First pointer judge module is connected with the first pointer control module, and the first pointer judge module and the first pointer control module respectively with write data pointer module, send data pointer module and repeat to send data pointer model calling; Before data send, the pointer write data pointer module, send data pointer module and repeat to send data pointer module all points to the initial position sending sliding window unit, the size of pointer value is all 0, as shown in Figure 2, be the transmission sliding window unit of the embodiment of the present invention and the initial position structural representation of respective pointer thereof, wherein, A is for writing data pointer module, B is for sending data pointer module, and data pointer module is sent in C recurrence of attaching most importance to;
Write data pointer module: before data link starts to carry out data interaction, the pointed writing data pointer module sends first clear position of sliding window unit, when data link starts to carry out data interaction, judge whether the pointer size writing data pointer module is less than sliding window size by the first pointer judge module, if the pointer size writing data pointer module is less than sliding window size, then write frame data to first clear position sending sliding window unit, and add 1 by the pointer value that the first pointer control module controls to write data pointer module, as shown in Figure 3, after sliding window writes frame data to transmission of the embodiment of the present invention, send the size structure schematic diagram of sliding window and pointer thereof, wherein, A is for writing data pointer module, B is for sending data pointer module, data pointer module is sent in C recurrence of attaching most importance to,
The pointed sending data pointer module sends first data frame position to be sent of sliding window unit, whether the pointer size judging to send data pointer module by the first pointer judge module is less than the pointer size sending sliding window size and write data pointer module, and whether pointed Frame is do not send Frame, if the pointer size sending data pointer module is less than the pointer size sending sliding window size and write data pointer module, and pointed Frame does not send Frame, then send this frame data by sending data pointer module, and add 1 by the pointer value of the first pointer control module control transmission data pointer module,
The pointed repeating to send data pointer module sends first data frame position waiting to repeat to send of sliding window unit.
Receive sliding window unit and comprise reception data pointer module, read data pointer module, the second pointer judge module and the second pointer control module, second pointer judge module is connected with the second pointer control module, and the second pointer judge module and the second pointer control module are connected with reception data pointer module and read data pointer module respectively; Before data receiver, the pointer receiving data pointer module and read data pointer module all points to the initial position receiving sliding window unit, and the size of pointer value is all 0; As shown in Figure 4, be the reception sliding window unit of the embodiment of the present invention and the initial position structural representation of respective pointer thereof, wherein, D is for receiving data pointer module, and E is read data pointer module; When data link starts to carry out data interaction:
The pointed receiving data pointer module receives first clear position of sliding window unit; Judge whether the pointer size receiving data pointer module is less than sliding window size by the second pointer judge module, if the pointer size receiving data pointer module is less than sliding window size, by receiving data pointer module receiving data frames, receive data pointer module and often receive frame data, the pointer value controlling to receive data pointer module by the second pointer control module adds 1; Concrete as shown in Figure 5, be that after the reception sliding window of the embodiment of the present invention receives frame data, receive the size structure schematic diagram of sliding window and pointer thereof, wherein, D is for receiving data pointer module, and E is read data pointer module;
Last data frame position received of the pointed of read data pointer module, judge whether the pointer size of read data pointer module is less than sliding window size by the second pointer judge module, and whether the pointer size of read data pointer module equals the pointer size receiving data pointer module, if the pointer size of read data pointer module is less than sliding window size, and the pointer of read data pointer module differs in size in the pointer size receiving data pointer module, from reception sliding window, read data by read data pointer module and dissection process is carried out to data, and add 1 by the pointer value of the second pointer control module control read data pointer module, if the pointer size of read data pointer module equals the pointer size receiving data pointer module, then made zero (namely pointing to the initial position receiving sliding window unit) by the pointer value of the second pointer control module control read data pointer module and reception data pointer module simultaneously, reach maximal efficiency to allow reception sliding window,
If the data that read data pointer module is resolved to are request repeat Frames, then by the first pointer control module, transmission data pointer module and the pointer repeating to send data pointer module are placed in the position of the Frame that will retransmit, when the condition of satisfied transmission Frame, retransmit this Frame, often repeat transmission one frame data, control to send data pointer module by the first pointer control module and respectively add 1 with the pointer value repeating to send data pointer module; When writing data pointer module, send data pointer module and repeat to send the pointer value of data pointer module all equal time, the pointer value controlling to write data pointer module by the first pointer control module, send data pointer module and repeat to send data pointer module makes zero (namely pointing to the initial position sending sliding window unit) simultaneously, sends sliding window reach maximal efficiency to allow.
In order to clearly demonstrate the operation principle of the transmission sliding window of the embodiment of the present invention, seeing also Fig. 6, is the operating diagram of the transmission sliding window of the embodiment of the present invention, wherein, A is for writing data pointer module, and B is for sending data pointer module, and data pointer module is sent in C recurrence of attaching most importance to.The pointer before starting to send data, write data pointer module, send data pointer module and repeat to send data pointer module all points to the initial position sending sliding window, and the size of pointer value is all 0; After writing frame data to transmission sliding window unit, the pointer value writing data pointer module adds 1; Sent by the first frame data that write sends sliding window, the pointer value sending data pointer module adds 1; Receive sliding window reception data and also resolve the data received, if the data be resolved to are request repeat first frames, then adjust to the pointer repeating to send data pointer module the data frame position will retransmitted and send by sending data pointer module simultaneously, when the condition of satisfied transmission Frame, send Frame, and transmission data pointer module respectively adds 1 with the pointer value repeating to send data pointer module; The pointer value now write data pointer module, send data pointer module and repeat to send data pointer module is all 1, the pointer value of three pointer modules is equal, in order to realize the maximal efficiency sending sliding window, when writing data pointer module, send data pointer module and repeat the size of the pointer value sending data pointer module all equal time, the pointer value of three pointer modules is all made zero, makes them be in the initial position sending sliding window.
Referring to Fig. 7, is the flow chart of the data processing method based on SWP data link of the embodiment of the present invention.The data processing method based on SWP data link of the embodiment of the present invention comprises the following steps:
Step 100: transmission sliding window unit is divided into and writes data pointer module, send data pointer module, repeat to send data pointer module, and reception sliding window unit is divided into reception data pointer module and read data pointer module;
In step 100, before data send, the pointed write data pointer module, send data pointer module and repeat to send data pointer module sends the initial position of sliding window unit, and the size of pointer value is all 0; Before data receiver, the pointed receiving data pointer module and read data pointer module receives the initial position of sliding window unit, and the size of pointer value is all 0; The size sending sliding window unit and receive sliding window unit when SWP data link setup by supporting that the master-slave equipment of SWP agreement (if NFC mobile phone is as main frame, supporting that the SIM card of SWP agreement is as from machine) is consulted to determine.
Step 200: write frame data to first clear position sending sliding window unit, and the pointer value writing data pointer module is added 1;
In step 200, before data link starts to carry out data interaction, the pointed writing data pointer module sends first clear position of sliding window unit.
Step 300: whether the pointer size judging to send data pointer module is less than the pointer size sending sliding window size and write data pointer module, and whether pointed Frame is do not send Frame, if the pointer size sending data pointer module is less than the pointer size sending sliding window size and write data pointer module, and pointed Frame does not send Frame, perform step 400;
Step 400: send this frame data, and the pointer value sending data pointer module is added 1;
Step 500: judge whether the pointer size receiving data pointer module is less than sliding window size, if the pointer size receiving data pointer module is less than sliding window size, performs step 600;
Step 600: by receiving data pointer module receiving data frames, and add 1 by the pointer value of the second pointer control module control reception data pointer module;
In step 600, when data link starts to carry out data interaction, the pointed receiving data pointer module receives first clear position of sliding window unit.
Step 700: judge whether the pointer size of read data pointer module is less than sliding window size, and whether the pointer size of read data pointer module equals the pointer size receiving data pointer module, if the pointer size of read data pointer module is less than sliding window size, and the pointer of read data pointer module differs in size in the pointer size receiving data pointer module, performs step 800; If the pointer size of read data pointer module equals the pointer size receiving data pointer module, perform step 900;
In step 700, when data link starts to carry out data interaction, last data frame position received of the pointed of read data pointer module.
Step 800: read data by read data pointer module from reception sliding window, dissection process is carried out to data, the pointer value of read data pointer module is added 1, and performs step 1000;
Step 900: the pointer value of read data pointer module and reception data pointer module simultaneously made zero, makes the pointer of read data pointer module and reception data pointer module be in the initial position receiving sliding window unit;
Step 1000: judge whether the Frame of resolving is request repeat Frame, if the Frame request repeat Frame of resolving, performs step 1100;
Step 1100: position transmission data pointer module and the pointer repeating to send data pointer module being placed in the Frame that will retransmit, when the condition of satisfied transmission Frame, retransmit this Frame, and respectively add 1 by sending data pointer module with the pointer value repeating to send data pointer module;
Step 1200: when writing data pointer module, send data pointer module and repeat the size of the pointer value sending data pointer module all equal time, by writing data pointer module, the pointer value that sends data pointer module and repeat to send data pointer module makes zero simultaneously, and the pointer making to write data pointer module, send data pointer module and repeat to send data pointer module is in the initial position sending sliding window unit.
The data processing equipment based on SWP data link of the embodiment of the present invention and method send and retransmission data frame by sending sliding window unit, by receiving sliding window unit receiving data frames, two sliding window unit work simultaneously, ensure the efficiency of transmission of SWP data link; And transmission sliding window unit is divided into writes data pointer module, send data pointer module, repeat to send data pointer module, reception sliding window unit is divided into and receives data pointer module and read data pointer module, pointer according to each pointer module indicates, guarantee the transmission that Frame is correct, orderly and reception, avoid Lou passing or missing data, realize the flow control of transfer of data, solve the congestion problems of transfer of data.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. based on a data processing equipment for SWP data link, it is characterized in that: comprise and send sliding window unit and receive sliding window unit; Described transmission sliding window unit sends the Frame of sliding window for sending or retransmit write, described reception sliding window unit is used for receiving data frames.
2. the data processing equipment based on SWP data link according to claim 1, is characterized in that, described transmission sliding window unit comprises to be write data pointer module, send data pointer module and repeat transmission data pointer module; Before data send, write data pointer module, the pointer sending data pointer module and repeat to send data pointer module all point to the initial position sending sliding window unit, and the size of pointer value is all 0; Before data link starts to carry out data interaction, the pointed of write data pointer module sends first clear position of sliding window unit, the pointed of described transmission data pointer module sends first data frame position to be sent of sliding window unit, and the described pointed repeating to send data pointer module sends first data frame position waiting to repeat to send of sliding window unit.
3. the data processing equipment based on SWP data link according to claim 2, it is characterized in that, described transmission sliding window unit also comprises the first pointer judge module and the first pointer control module, described first pointer judge module is connected with the first pointer control module, and described first pointer judge module and the first pointer control module respectively with write data pointer module, send data pointer module and repeat to send data pointer model calling.
4. the data processing equipment based on SWP data link according to claim 3, it is characterized in that, when data link starts to carry out data interaction, judge whether the pointer size writing data pointer module is less than sliding window size by described first pointer judge module, if the pointer size writing data pointer module is less than sliding window size, then write frame data to first clear position sending sliding window unit, and add 1 by the pointer value that data pointer module is write in described first pointer control module control; Whether the pointer size of described first pointer judge module also for judging to send data pointer module is less than the pointer size sending sliding window size and write data pointer module, and whether pointed Frame is do not send Frame, if the pointer size sending data pointer module is less than the pointer size sending sliding window size and write data pointer module, and pointed Frame does not send Frame, then send this frame data by sending data pointer module, and add 1 by the pointer value of the first pointer control module control transmission data pointer module.
5. the data processing equipment based on SWP data link according to claim 1, it is characterized in that, described reception sliding window unit comprises reception data pointer module, read data pointer module, the second pointer judge module and the second pointer control module, described second pointer judge module is connected with the second pointer control module, and described second pointer judge module and the second pointer control module are connected with reception data pointer module and read data pointer module respectively; Before data receiver, the pointer of described reception data pointer module and read data pointer module all points to the initial position receiving sliding window unit, and the size of pointer value is all 0; When data link starts to carry out data interaction, the pointed of described reception data pointer module receives first clear position of sliding window unit, last data frame position received of the pointed of described read data pointer module.
6. the data processing equipment based on SWP data link according to claim 5, it is characterized in that, when described second pointer judge module judges that the pointer size of reception data pointer module is less than sliding window size, receive data, often receive frame data, the pointer value controlling to receive data pointer module by the second pointer control module adds 1, and judge whether the pointer size of read data pointer module is less than sliding window size by described second pointer judge module, and whether the pointer size of read data pointer module equals the pointer size receiving data pointer module, if the pointer size of read data pointer module is less than sliding window size, and the pointer of read data pointer module differs in size in the pointer size receiving data pointer module, from reception sliding window, read data by read data pointer module and dissection process is carried out to data, and add 1 by the pointer value of the second pointer control module control read data pointer module, if the pointer size of read data pointer module equals the pointer size receiving data pointer module, then control read data pointer module by the second pointer control module and make zero with the pointer value receiving data pointer module simultaneously.
7. the data processing equipment based on SWP data link according to claim 6, it is characterized in that, if the data that described read data pointer module is resolved to are request repeat Frames, then by the first pointer control module, transmission data pointer module and the pointer repeating to send data pointer module are placed in the position of the Frame that will retransmit, when the condition of satisfied transmission Frame, retransmit this Frame, and respectively add 1 by the first pointer control module control transmission data pointer module with the pointer value repeating to send data pointer module; When writing data pointer module, send data pointer module and repeat the size of the pointer value sending data pointer module all equal time, the pointer value controlling to write data pointer module by the first pointer control module, send data pointer module and repeat to send data pointer module makes zero simultaneously.
8., based on a data processing method for SWP data link, comprising:
Step a: to transmission sliding window unit write Frame;
Step b: send or retransmission data frame by sending sliding window unit;
Step c: by receiving sliding window unit receiving data frames.
9. the data processing method based on SWP data link according to claim 8, it is characterized in that, described step a also comprises: be divided into by transmission sliding window unit and write data pointer module, send data pointer module, repeat to send data pointer module, and reception sliding window unit is divided into reception data pointer module and read data pointer module; Start to send or receive before data, write data pointer module, the pointer sending data pointer module and repeat to send data pointer module all point to the initial position sending sliding window, and the size of pointer value is all 0; The pointer of described reception data pointer module and read data pointer module all points to the initial position receiving sliding window, and the size of pointer value is all 0.
10. the data processing method based on SWP data link according to claim 9, is characterized in that:
In described step a, after writing frame data to described transmission sliding window unit, the pointer value of write data pointer module adds 1;
In described step b, sent by the first frame data that write sends sliding window, the pointer value of described transmission data pointer module adds 1;
In described step c, often receive frame data, the pointer value of described reception data pointer module adds 1; Described read data pointer module reads data and carries out dissection process to data from reception sliding window, and the pointer value of read data pointer module is added 1; If the pointer size of read data pointer module equals the pointer size receiving data pointer module, then the pointer value of read data pointer module and reception data pointer module is made zero simultaneously;
If the data that read data pointer module is resolved to are request repeat Frames, then transmission data pointer module and the pointer repeating to send data pointer module are placed in the position of the Frame that will retransmit, and retransmit this Frame, often repeating transmission one frame data, respectively adding 1 by sending data pointer module with the pointer value repeating to send data pointer module; When writing data pointer module, send data pointer module and repeat to send the pointer size of data pointer module all equal time, by writing data pointer module, the pointer value that sends data pointer module and repeat to send data pointer module makes zero simultaneously.
CN201410723232.XA 2014-12-02 2014-12-02 A kind of data processing equipment and method based on SWP data link Active CN104468041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410723232.XA CN104468041B (en) 2014-12-02 2014-12-02 A kind of data processing equipment and method based on SWP data link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410723232.XA CN104468041B (en) 2014-12-02 2014-12-02 A kind of data processing equipment and method based on SWP data link

Publications (2)

Publication Number Publication Date
CN104468041A true CN104468041A (en) 2015-03-25
CN104468041B CN104468041B (en) 2018-01-09

Family

ID=52913484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410723232.XA Active CN104468041B (en) 2014-12-02 2014-12-02 A kind of data processing equipment and method based on SWP data link

Country Status (1)

Country Link
CN (1) CN104468041B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110299970A (en) * 2018-03-23 2019-10-01 天地融科技股份有限公司 A kind of data message sending method and device
CN110299972A (en) * 2018-03-23 2019-10-01 天地融科技股份有限公司 A kind of data transmission method for uplink and device
CN112367269A (en) * 2020-10-30 2021-02-12 深圳壹账通智能科技有限公司 Double-pointer-based sliding window current limiting method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1734997A (en) * 2004-08-11 2006-02-15 华为技术有限公司 Data transmission method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1734997A (en) * 2004-08-11 2006-02-15 华为技术有限公司 Data transmission method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩丽英: "基于NFC***的SWP接口设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110299970A (en) * 2018-03-23 2019-10-01 天地融科技股份有限公司 A kind of data message sending method and device
CN110299972A (en) * 2018-03-23 2019-10-01 天地融科技股份有限公司 A kind of data transmission method for uplink and device
CN110299970B (en) * 2018-03-23 2022-04-05 天地融科技股份有限公司 Data message sending method and device
CN112367269A (en) * 2020-10-30 2021-02-12 深圳壹账通智能科技有限公司 Double-pointer-based sliding window current limiting method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN104468041B (en) 2018-01-09

Similar Documents

Publication Publication Date Title
CN102761905B (en) Message treatment method, equipment and system
CN104717762A (en) Pairing method, primary terminal and slave terminal of wireless communication device
CN103701843A (en) Information synchronization data transmission method and system
EP2852101A1 (en) Method and device for data transmission in wireless local area network
CN104954476A (en) APP (application) balance car control device and remote network control system
CN104834617A (en) Data transmission method
CN103916852A (en) Data transmission method and mobile terminal
CN103401898A (en) Method for transmitting data between mobile terminals and mobile terminals
CN104468041A (en) Data processing device and method based on SWP data link
EP2905938A1 (en) Method for acquiring locating information, terminal and mobile broadband interface model (mbim) device
CN103326749A (en) NFC radio frequency communication control method, device and system
CN204089848U (en) A kind of television teaching system based on NFC
CN202035051U (en) Connection module for data exchange between common log format (CLF) and multiple searching engines (SE) of mobile communication terminal
JP5931224B2 (en) Data access method and apparatus
CN105024945A (en) Mode of information interaction among multiple processors
CN104703291A (en) MiFi-based communication method and relevant MiFi
CN104254062A (en) Direct connection link communication method and related equipment and system
CN105866798A (en) Vehicle-mounted terminal IOT (Internet of Things) method based on Beidou communication
CN103187991A (en) Data transmission system and data transmission method
CN104616407A (en) Method for communicating POS machine with remote server, POS machine and mobile terminal
CN104836650A (en) Terminal
CN105264808A (en) Information transmission method and device
CN103987073B (en) Control method based on wireless protocols extension
CN106209326A (en) Method for transmitting uplink data and device
CN103501527A (en) Automatic connection system based on wifi-direct

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518055 1407 floor, 14 floor, Fuguang business building, 1 Nanshan District Road, Taoyuan, Shenzhen, Guangdong

Patentee after: Shenzhen Bureau of Polytron Technologies Inc

Address before: 301, building six, building B, No.1 building, No.1 Industrial Road, Nanshan District, Guangdong, Shenzhen, 518067

Patentee before: Shenzhen Zhongke Xunlian Technology Co., Ltd

CP03 Change of name, title or address