CN107070903A - Identification of data packets system and method - Google Patents
Identification of data packets system and method Download PDFInfo
- Publication number
- CN107070903A CN107070903A CN201710204468.6A CN201710204468A CN107070903A CN 107070903 A CN107070903 A CN 107070903A CN 201710204468 A CN201710204468 A CN 201710204468A CN 107070903 A CN107070903 A CN 107070903A
- Authority
- CN
- China
- Prior art keywords
- packet
- packet header
- application processor
- length
- byte
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000012790 confirmation Methods 0.000 claims description 7
- 238000012546 transfer Methods 0.000 abstract description 6
- 238000004891 communication Methods 0.000 description 21
- 238000012545 processing Methods 0.000 description 18
- 230000004044 response Effects 0.000 description 16
- 230000005540 biological transmission Effects 0.000 description 14
- 238000001514 detection method Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 11
- 230000011664 signaling Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 10
- 230000003993 interaction Effects 0.000 description 8
- 230000005059 dormancy Effects 0.000 description 7
- 238000010295 mobile communication Methods 0.000 description 7
- 230000007774 longterm Effects 0.000 description 6
- 230000007246 mechanism Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000000284 resting effect Effects 0.000 description 3
- 238000002372 labelling Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000002146 bilateral effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 229940018489 pronto Drugs 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of identification of data packets system and method, the system includes:Mobile terminal and external equipment, mobile terminal includes the first application processor, the first modem, the first radio-frequency module and the first Subscriber Identity Module being connected with the first modem, external equipment includes the second application processor, second modem, the second radio-frequency module, and the second user identification card being connected with second modem;When first application processor is waken up, the packet that the second application processor is sent is received;And the packet header of the packet of reception is identified, identified with determining whether the packet header carries default packet header;If packet header does not carry default packet header mark, send and retransmit message to the second application processor, so that the second application processor retransmits the packet.The present invention notifies the second application processor retransmission data bag in time when receiving residual bag, timely responds to packet, improves the accuracy of data transfer.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of identification of data packets system and method.
Background technology
With the development of mobile communication technology, increasing mobile terminal such as smart mobile phone has the work(of double card bilateral
Can so that user realize speech business it is standby simultaneously, can set up data service connection.Mobile terminal generally has two use
Family identification card and the modem being connected respectively with described two Subscriber Identity Modules, during two Subscriber Identity Module standard-sized sheets, one
Individual Subscriber Identity Module (SIM1) can use 4G (the 4th Generation Mobile Communication
Technology, forth generation mobile communication technology), such as LTE (Long Term Evolution, Long Term Evolution) network,
Another Subscriber Identity Module (SIM2) be only capable of using 2G (2-Generation wireless telephone technology,
Second generation mobile communication technical specification) or 3G (3rd Generation, 3rd generation mobile communication technology) network, SIM2 can not on
The reason for 4G, is mainly:Mobile terminal only has a set of radio frequency, and two cards are the relation of time-sharing multiplex using the set radio frequency, can not
Take simultaneously, during due to two card standard-sized sheets, only one card can use 4G networks, and another card can only use 2G or 3G nets
Network, causes the less efficient of data in mobile terminal transmission.
Therefore, in order that mobile terminal can support double LTE, to improve data transmission efficiency, mobile terminal can with it is external
Equipment connects (being provided with modem in the external equipment), to realize double LTE communication functions.But, current mobile terminal
Carried out with external equipment in transmission of data packets, if mobile device does not wake up also, external equipment just sends packet, due to
Mobile terminal does not wake up also completely, and the previously sent content of packet can lose, then the packet that mobile device is received is just
For residual bag, mobile device is caused to cannot respond to the packet.
The content of the invention
It is a primary object of the present invention to propose a kind of identification of data packets system and method, it is intended to solve packet and transmit it
Afterwards, lost if occurring packet content, the technical problem that packet cannot respond to easily occur.
To achieve the above object, a kind of identification of data packets system that the present invention is provided, the identification of data packets system includes
Mobile terminal, and the external equipment being connected by preset interface with the mobile terminal, the mobile terminal includes first should
Known with processor, the first modem, the first radio-frequency module and the first user for being connected with first modem
Do not block, the external equipment includes the second application processor, second modem, the second radio-frequency module, and with described the
The second user identification card of two modems connection;
First application processor, during for being waken up, receiving the second application processor and being sent out by the preset interface
The packet sent;The packet header of the packet of reception is identified, to determine whether the packet header carries default bag
Leader is known;If the packet header does not carry default packet header mark, send and retransmit message to second application processor, for
Second application processor resends the packet to first application processor.
Alternatively, the packet header of the packet of reception is identified first application processor, described to determine
Whether packet header, which carries default packet header mark, specifically includes:
First byte in the packet header is parsed, whether is preset field with the first byte for determining the packet header;And/or meter
Second byte in the packet header and the length of the 3rd byte are calculated, and judges whether the length meets preparatory condition;
If first byte in the packet header is preset field, and/or the length meets preparatory condition, it is determined that the bag
Head carries default packet header mark.
Alternatively, the preparatory condition is:The length is the length of the packet and the difference of preset value.
Alternatively, first application processor, is additionally operable to recognize the length of the packet;
It is more than preset length value in the length of the packet, just the packet header of the packet of reception is identified.
Alternatively, first application processor, if being additionally operable to the packet header carries default packet header mark, sends
Confirmation message gives second application processor, so that second application processor continues to send other packets to described the
One application processor.
In addition, to achieve the above object, the present invention also proposes a kind of packet identifying method, applied to mobile terminal and
The external equipment being connected by preset interface with mobile terminal, the mobile terminal includes the first application processor, the first modulation
Demodulator, the first radio-frequency module and the first Subscriber Identity Module being connected with first modem, the external equipment
Including the second application processor, second modem, the second radio-frequency module, and be connected with the second modem
Second user identification card, methods described includes:
When first application processor is waken up, the data that the second application processor is sent by the preset interface are received
Bag;
The packet header of the packet of reception is identified, to determine whether the packet header carries default packet header
Know;
If the packet header does not carry default packet header mark, send and retransmit message to second application processor, with
The packet is resend to first application processor for second application processor.
Alternatively, the packet header of the packet of described pair of reception is identified, to determine whether the packet header carries
The step of default packet header is identified includes:
First application processor parses first byte in the packet header, with determine the packet header the first byte whether
For preset field;And/or second byte in the packet header and the length of the 3rd byte are calculated, and judge whether the length meets
Preparatory condition;
If first byte in the packet header is preset field, and/or the length meets preparatory condition, it is determined that the bag
Head carries default packet header mark.
Alternatively, the preparatory condition is:The length is the length of the packet and the difference of preset value.
Alternatively, the packet header of the packet of described pair of reception is identified, to determine whether the packet header carries
Before the step of default packet header is identified, methods described also includes:
First application processor recognizes the length of the packet;
It is more than preset length value in the length of the packet, the packet header for just performing the packet of described pair of reception is entered
The step of row identification.
Alternatively, the packet header of the packet of described pair of reception is identified, to determine whether the packet header carries
After the step of default packet header is identified, methods described also includes:
If the packet header carries default packet header mark, first application processor sends confirmation message to described
Second application processor, so that second application processor continues to send other packets to first application processor.
Identification of data packets system and method proposed by the present invention, the identification of data packets system includes mobile terminal, and
The external equipment being connected by preset interface with the mobile terminal, the mobile terminal includes the first application processor, first
Modem, the first radio-frequency module and the first Subscriber Identity Module being connected with first modem, it is described external
Equipment includes the second application processor, second modem, the second radio-frequency module, and connects with the second modem
The second user identification card connect;When first application processor is waken up, receives the second application processor and pass through described preset
The packet that interface is sent, and the packet header of the packet of reception is identified, to determine whether the packet header carries
Default packet header mark, if the packet header does not carry default packet header mark, transmission repeating transmission message is to described second at
Device is managed, so that second application processor resends the packet to first application processor.This programme is being moved
When the first application processor in dynamic terminal is waken up, first the packet header of the packet to receiving is identified, described in identification
When packet header does not carry default packet header mark, the second application processor is notified to resend the packet, even if packet content
Lose, the first application processor can also notify the second application processor to resend the packet in time, timely respond to data
Bag, improves the accuracy of data transfer.
Brief description of the drawings
Fig. 1 is the schematic diagram of the LTE network framework of one embodiment of the invention;
Fig. 2 is a kind of entity signal of communication connection of mobile terminal and external equipment communication connection in the embodiment of the present invention
Figure;
Fig. 3 is mobile terminal and a kind of hardware architecture diagram of external equipment communication connection in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of packet identifying method first embodiment of the present invention;
The packet header of the packet of reception is identified for the present invention by Fig. 5, to determine whether the packet header carries
The refinement schematic flow sheet of default packet header mark;
Fig. 6 is the schematic flow sheet of packet identifying method fourth embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be explained referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
It should be noted that in the case where not conflicting, the embodiment in the present invention and the feature in embodiment mutually can be tied arbitrarily
Close.
In order to which technical characteristic, purpose and effect to the present invention are more clearly understood from, now compare accompanying drawing and describe in detail
The embodiment of the present invention.
Fig. 1 is the signal of LTE (Long Term Evolution, Long Term Evolution) network architecture of one embodiment of the invention
Figure.The LTE network framework of one embodiment of the invention includes:One or more mobile terminals (user equipment, UE) 100,
External equipment 200, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, the UMTS of evolution
Land radio access web) (non-label in figure), evolution block core (EPC) (non-label in figure), home subscriber servers (HSS)
107th, network (for example, internet) (non-label in figure) and circuit switching system (non-label in figure).
E-UTRAN includes evolution B node (eNodeB) 101 and other eNodeB 102.ENodeB 101 is provided towards shifting
The user plane of dynamic terminal 100 and the protocol terminations of chain of command.ENodeB 101 can be connected to other eNodeB via X2 interface.
ENodeB 101 is alternatively referred to as base station, base transceiver station, radio base station, wireless set, transceiver function, basic service
Collection, extended service set or some other suitable terms.ENodeB 101 is that mobile terminal 1 00 provides the access for going to EPC
Point.
ENodeB 101 is connected to EPC by S1 interfaces.EPC includes mobile management entity (EEM) 104, other moving tubes
Manage entity 106, gateway 103, and packet data network (PDN) gateway 105.Mobile management entity 104 is processing movement
The control node of signaling between terminal 100 and EPC.Mobile management entity 104 provides carrying and connection management.All User IPs
Packet is transmitted by gateway 103, and gateway 103 is itself coupled to PDN Gateway 105.PDN Gateway 105 provides UE IP
Address is distributed and other functions.PDN Gateway 105 is connected to network, for example, internet.
Circuit switching system includes interaction solution module (IWS) 108, mobile switching centre (MSC) 109, base station 110
With movement station 111.In one aspect, circuit switching system can pass through IWS and MME (Mobility Management
Entity, mobile management entity) communicated with EPS (Evolved Packet System, the grouping system of evolution).
Mobile terminal 1 00 passes through USB (Universal Serial Bus, USB) data wires and external equipment
200 communication connections.
Fig. 2 is the entity schematic diagram of mobile terminal 1 00 of the present invention and the communication connection of external equipment 200.
As shown in Fig. 2 mobile terminal 1 00 is connected by USB data line 300 with the communication of external equipment 200, wherein, it is described
Mobile terminal includes but is not limited to mobile phone, PC (Personal Computer, PC) or PAD (Personal Digital
Assistant, personal digital assistant), the external equipment 200 is chosen as wireless Internet card or data card.
Fig. 3 is the structural representation of mobile terminal 1 00 of the present invention and the communication connection of external equipment 200.
The mobile terminal 1 00 of the embodiment of the present invention is connected by USB data line 300 with the communication of external equipment 200, based on shifting
Dynamic terminal 100 and the basis of the communication connection of external equipment 200, mobile terminal 1 00 can support double LTE.Specifically:
Mobile terminal 1 00 includes the first process chip 001, and first be connected with first process chip 001 is penetrated
Frequency module 12, wherein, the first process chip 001 includes the first application processor, and (Application Processor use AP1 tables
Show) 10, the first modem 11 (modem1), RPM (the Resource Power that are connected with the first Subscriber Identity Module 13
Manager, resource power supervisor) 14, first Subscriber Identity Module 13 be SIM (Subscriber Identity
Module, subscriber identification module) card.
External equipment 200 includes second processing chip 002, and second be connected with the second processing chip 002 is penetrated
Frequency module 22, wherein, second processing chip 002 includes the second application processor (being represented with AP2) 20 and second user identification card
The second modem (modem2) 21 of 23 connections, the second user identification card 23 is similarly SIM card.
The inner frame of first application processor 10 and the second application processor 20 includes application layer, ccf layer etc., can locate
Manage the logical operation of complexity and carry out task distribution etc..In one embodiment, application processor refers to Android operations system
System, and the various apk (Android Package, Android installation kit) based on Android operation system.In the reality of the present invention
Apply in example, the first application processor 10 and the second application processor 20 realize communication connection by USB data line 300, are user
Interactive interface is provided, the operational order that user is inputted is (for example, the relevant startup video calling that user is inputted by user interface
Operational order) be transferred to the first modem 11 or second modem 21, to realize between two application processors
The definition and transmission of data, for example, chip is opened when carrying out the dormancy of two application processors, wake-up, synchronous control, switching on and shutting down
Control of dynamic order etc..
It should be appreciated that in embodiments of the present invention, USB data line 300 is multiplexed out two data passages, is respectively used to
The interaction of user data or control signaling data between first application processor 10 and the second application processor 20, i.e., the first application
The data that the application processor 20 of processor 10 and second is transmitted by USB data line 300 include user data and control signaling number
According to.Wherein, user data includes the data that online is produced, picture and chat message data;Control signaling data include switching on and shutting down
Control data, switch offline mode control data, the control data of dispaly state signal.Due in the embodiment of the present invention,
Mobile terminal 1 00 and external equipment 200 are all connected with Subscriber Identity Module, therefore, and USB data line 300 is without SIM card authentication number
According to interaction.
In the present embodiment, the first application processor 10 and the second application processor 20 are entered by OTG (On-The-Go) technology
Row data interaction.By OTG technologies, the first modem 11 in mobile terminal 1 00 can pass through the first Subscriber Identity Module 13
In SIM card parameter can be recognized come the second modem 21 accessed in eNodeB 101, external equipment by second user
SIM card parameter in card 23 is come access eNodeB 101, and the SIM card parameter includes but is not limited to SIM card authorization data.
The protocol stack of the network formats of first modem 11 and second modem 21 comprising various network interactions,
Protocol stack includes LTE (Long Term Evolution, Long Term Evolution)/WCDMA (W ideband Code Division
Multiple Access, WCDMA) and/GSM (Global Syste m for Mobile Communication, entirely
Ball GSM)/TD-SCDMA (Time Divisi on-Synchronous Code Division Multiple
Access, synchronous time division CDMA)/CDMA (C ode Division Multiple Access, CDMA)/EDGE
Inside communication standards such as (Enhanced Data Rate for G SM Evolution, strong type Data for GSM Evolution)
Defined protocol code.Mobile terminal 1 00 is interacted by agreement with carrier network, that is, carries out data traffic online, V
OLTE (Voice Over LTE) is made a phone call or CS (Circuit Switched, circuit switching) domain is made a phone call.First modulation
Demodulator 11 and second modem 21 are additionally operable to management and control to SIM card etc..
In embodiments of the present invention, the first radio-frequency module 12 is transmitted to after being used for the data processing of transmitting mobile terminal 1 00
ENodeB 101 (base station network), and for being transmitted to mobile terminal 1 00 after the data processing of transmitting eNodeB 101.Second
Radio-frequency module 22 is transmitted to eNodeB 101 (base station network) after being used for the data processing of transmitting external equipment 200, and is used for
External equipment 200 is transmitted to after the data processing that eNodeB 101 is transmitted.
Wireless access technology involved by first radio-frequency module 12 and the second radio-frequency module 22 can include LTE, GSM,
GPRS (General Packet Radio Service, general packet radio service), CDMA, EDGE, WLAN (Wireless
Local Area Networks, WLAN), CDMA-2000, TD-SCDMA, WCDMA, WIFI (Wireless
Fidelity, Wireless Fidelity) etc..
The present invention because the first modem 11 of mobile terminal 1 00 is connected with the first user it should be noted that know
Do not block 13, the second modem 21 of external equipment 200 is connected with second user identification card 23, therefore, the first modulation /demodulation
Device 11 and second modem 21 are separate, and second modem 21 does not wake up the first modem 11.
The second user identification card 23 in the first Subscriber Identity Module 13 and external equipment 200 in mobile terminal 1 00 is stored
The associated user profile of different wireless communication standards.It should be appreciated that current mobile terminal only has a set of radio frequency, it is mobile whole
Two Subscriber Identity Modules inside end are the relation of time-sharing multiplex using the set radio frequency, can not be taken simultaneously.For example, at two
During Subscriber Identity Module standard-sized sheet, a card can handle GSM calls, and another card can only handle the 4G network informations, which specific use
Which kind of network family identification card performs, and does not limit.Therefore current this framework of radio frequency double card time-sharing multiplex has only accomplished LTE+
GSM (the corresponding technical standard of i.e. one Subscriber Identity Module is LTE, and the corresponding technical standard of another Subscriber Identity Module is GSM).
That is, although existing mobile terminal 1 00 can support Dual-user identification card, mobile terminal 1 00 exists
In the case of registered network, what two Subscriber Identity Modules were supported is the network of different technologies standard, and one is supported 2G or 3G, another
Individual support 4G, can cause during the use of mobile terminal 1 00, surfing flow speed is slower, therefore in the present invention, mobile terminal
100 connect external equipment 200 by USB data line 300, and because external equipment 200 includes the second radio-frequency module 22, and second penetrates
Frequency module 22 supports 4G networks, and therefore, mobile terminal 1 00 can be interacted by USB line 300 with external equipment 200, so that moving
Dynamic terminal 100 possesses double LTE functions.
In the present embodiment, the first Subscriber Identity Module 13 and second user identification card 23 are used to provide mobile communication business
Related data needed for (CS speech businesses, PS data services and PS speech businesses), and in its storage inside user profile, short disappear
Breath, execution authentication arithmetic and generation cryptographic keys etc..
When first Subscriber Identity Module 13 is interacted with mobile terminal 1 00, mobile terminal 1 00 detects first Subscriber Identity Module 13
The signal of presence or absence is only in the instantaneous generation of start, in the presence of start can't detect the first Subscriber Identity Module 13, mobile terminal
100 will be prompted to " insertion Subscriber Identity Module ".Mobile terminal 1 00 start shooting after, the Subscriber Identity Module 13 of mobile terminal 1 00 and first it
Between communication in 28 seconds once, complete the communication check (for example, Subscriber Identity Module whether in place etc.) of some fixations.
In an embodiment of the present invention, the first Subscriber Identity Module 13 and the carrying information of second user identification card 23, and root
Correspondence card parameter is returned according to external world's request, and authentication computing, the first radio-frequency module 12 and the second radio-frequency module are carried out to network
Wireless access technology involved by 22 is LTE.When mobile terminal 1 00 is not connected by USB data line 300 with external equipment 200
When, the technical standard corresponding to the first Subscriber Identity Module 13 is used to carry out speech communication for GSM, or passes through the first modulation /demodulation
Device 11 supports LTE to be used to carry out data access by 4G networks.When mobile terminal 1 00 passes through USB data line 300 and external equipment
During 200 connection, the first Subscriber Identity Module 13 can support LTE by the first modem 11 in mobile terminal 1 00, and second
Subscriber Identity Module 23 supports LTE by second modem 21, to realize that mobile terminal 1 00 connects the situation of external equipment 200
Under can support double LTE.
RPM14 in mobile terminal 1 00 is used for the various resources of management and control, including clock sources, bus resource, PMIC (Power
Management IC, the voltage of power management integrated circuit, i.e. each chip), DDR (Memory Allocation), and managing chip
The deadline that the interruption of dormancy awakening and application processor wake up.The subsystems of mobile terminal 1 00, are needing resource
When, apply for resource to RPM14, subsystems include the first application processor 10, the first modem 11, PRONTO respectively
(WIFI/ bluetooths, NFC (Near Field Communication, near-field communication) etc.), LPASS (Low power audio
Subsystem, low-power consumption audio subsystem), RPM14 is used for determining the resting state of the system of mobile terminal 1 00, is specifically,
Voting mechanisms of the RPM14 based on subsystems realizes that, when subsystems all throw dormancy ticket, RPM14 can just make movement
The whole system of terminal 100 carries out dormancy.
After the whole system dormancy of mobile terminal 1 00, if to restart operation, it is necessary to wake up at the first application
Reason device 10 is interacted with the transmission for carrying out data.
In the case where mobile terminal 1 00 and external equipment 200 are by USB communication connections, wake-up mode includes three kinds:
1st, when the first application processor 10 receives control signaling data, by the transmission detection bag of USB data line 300 to the
Two application processors 20, to wake up the second application processor 20.
2nd, when the second modem 21 of external equipment 200 receives user data, the second application processor 20 is waken up,
Detection bag is transmitted to the first application processor 10 by USB data line 300 by the second application processor 20, to wake up the first application
Processor 10.
3rd, second modem 21 periodically searches paging request, with active activation oneself, if receiving paging request,
The second application processor 20 is waken up, detection bag is sent to the first application by USB data line 300 by the second application processor 20
Device 10 is managed, to wake up the second application processor 20.
In addition, second modem 21 can be with periodic wakeup oneself, to carry out location updating in mobile terminal 1 00
When, interaction of shaking hands is carried out with base station, the first application processor 10 need not be now waken up.
The structure of Organization Chart and mobile terminal 1 00 and the communication connection of external equipment 200 based on above-mentioned LTE network is shown
It is intended to, proposes each embodiment of the present invention.
Reference picture 3, the present embodiment proposes a kind of identification of data packets system, and the identification of data packets system includes mobile terminal
100, and the external equipment 200 being connected by preset interface with the mobile terminal 1 00, the mobile terminal 1 00 includes the
One application processor 10, the first modem 11, the first radio-frequency module 12, and be connected with first modem 11
The first Subscriber Identity Module 13, the external equipment 200 include the second application processor 20, second modem 21, second
Radio-frequency module 22, and the second user identification card 23 being connected with the second modem 21;
First application processor 10, during for being waken up, receiving the second application processor 20 and being connect by described preset
The packet that mouth is sent;
The packet header of the packet of reception is identified, to determine whether the packet header carries default packet header
Know;
If the packet header does not carry default packet header mark, send and retransmit message to second application processor 20,
So that second application processor 20 resends the packet to first application processor 10.
In the present embodiment, first application processor 10 is waken up, and is to be received by preset interface at the second application
The detection that reason device 20 is sent wraps to realize wake-up.Subsequently, identification of first application processor 10 to packet, is also to passing through
The packet that preset interface is received is identified.Wherein, the preset interface is USB interface.
Firstly, it is necessary to explanation, after mobile terminal 1 00 and all dormancy of external equipment 200, if external equipment 200
External signal is received by the second radio-frequency module 22, the second radio-frequency module 22 of external equipment 200 by external signal transmit to
In second modem 21 so that second modem 21 wakes up, after second modem 21 wakes up, then the is waken up
Two application processors 20, so as to realize the wake-up of external equipment 200.After the wake-up of external equipment 200, external equipment 200
The first application that second application processor 20 can send detection bag to wake up in mobile terminal 1 00 by USB data line 300 is handled
Device 10, should to the first of mobile terminal 1 00 when sending detection bag for the second application processor 20 of external equipment 200
After processor 10, the second application processor 20 thinks that the first application processor 10 has woken up, now, at the second application
And then manage device 20 can send first application processor 10 of the packet of user data or control signaling to mobile terminal 1 00,
To carry out follow-up data exchange process.
But in real process, after the first application processor 10 sends detection bag to the first application processor 10, the
One application processor 10 is not waken up at once, but needs a period of time to switch to wake-up states from resting state.Now,
And if then the second application processor 20 sends packet, because the first application processor 10 does not wake up also completely, it can cause
In the packet that first application processor 10 is received, previous section contents lost, it is imperfect to cause the packet received
Packet, that is, residual bag.
To be best understood from, it is exemplified below:Second application processor 20 of external equipment 200 is sent by USB data line 300
Packet gives the first application processor 10, and the packet is 512 bytes, in the transmission process of preceding 36 bytes, due to moving
First application processor 10 of dynamic terminal 100 is not waken up also completely, is just really waken up in the 37th byte, now, and first should
Preceding 36 bytes can not be received with processor 10, then the packet that mobile terminal 1 00 is received is exactly residual bag, due to movement
Terminal 100 is basic with regard to the None- identified packet, causes mobile terminal 1 00 also to cannot respond to the packet, causes external equipment
200 cannot slowly reply, and cause data transfer inaccurate.
Therefore, in the present embodiment, after the first application processor 10 is waken up, if receiving the second application processor 20
The packet sent by the preset interface, first the packet header of the packet of reception is identified, to determine the bag
Whether head carries default packet header mark.It should be appreciated that carrying multiple bytes in packet header, specific number is not limited.
In the present embodiment, the packet header for the packet that 10 pairs of first application processor is received is identified, and is specially
The packet is parsed, then the packet header of the packet to parsing is identified, to determine whether the packet header carries
Default packet header mark, specific identification method is described in detail in embodiments below.
When the first application processor 10 identifies that packet header does not carry default packet header mark, send and retransmit message to described
Second application processor 20, so that second application processor 20 resends the packet to the described first application processing
Device 10.
That is, when the first application processor 10 identifies that packet header does not carry default packet header mark, illustrate what is be currently received
Packet has occurred that contents lost, it is impossible to which the packet is identified, also can not feedback response packet, because
This, first application processor 10 is sent by the USB data line 300 retransmits message to second application processor
20, so that second application processor 20 resends the packet to first application processor 10, for example, first
Application processor 10 sends response message " err " to the second application processor 20, is sent before informing the second application processor 20
Packet it is wrong, so that the second application processor 20 resends the packet.In the present embodiment, the shape of the message again
Formula is not limited, and can be a short message such as " err " or " Retry " or a preset field, such as " 0001 ", tool
Body is set according to actual conditions.
Be the equal of when it is residual bag that the first application processor 10, which identifies packet, that is, to detect number in the present embodiment
According to there is no carrying package labeling head in bag, now, a response err, the first application processing can be fed back to the second application processor 20
Device 10 sends response err to by USB data line 300 second application processor 20 of external equipment 200, now, and second should
With processor 20 based on the response err received, the packet is resend by USB data line 300 and handled to the first application
Device 10, to complete the interaction of data.
The identification of data packets system that the present embodiment is proposed, the identification of data packets system includes mobile terminal, and passes through
The external equipment that preset interface is connected with the mobile terminal, the mobile terminal includes the first application processor, the first modulation
Demodulator, the first radio-frequency module and the first Subscriber Identity Module being connected with first modem, the external equipment
Including the second application processor, second modem, the second radio-frequency module, and be connected with the second modem
Second user identification card;When first application processor is waken up, receives the second application processor and pass through the preset interface
The packet of transmission, and the packet header of the packet of reception is identified, to determine it is default whether the packet header carries
Packet header mark, if the packet header does not carry default packet header mark, send and retransmit message to second application processor,
So that second application processor resends the packet to first application processor.This programme is in mobile terminal
In the first application processor when being waken up, first the packet header of the packet to receiving is identified, and is recognizing the packet header not
When carrying default packet header mark, the second application processor is notified to resend the packet, even if packet content is lost, the
One application processor can also notify the second application processor to resend the packet in time, timely respond to packet, improve
The accuracy of data transfer.
Further, identification of data packets system second embodiment of the present invention is proposed.
The difference of identification of data packets system second embodiment and identification of data packets system first embodiment is, described first
The packet header of the packet of 10 pairs of receptions of application processor is identified, to determine whether the packet header carries default bag
Leader, which is known, to be specifically included:
First application processor 10 parses first byte in the packet header, is with the first byte for determining the packet header
No is preset field;And/or second byte in the packet header and the length of the 3rd byte are calculated, and judge whether the length is full
Sufficient preparatory condition;
If first byte in the packet header is preset field, and/or the length meets preparatory condition, it is determined that the bag
Head carries default packet header mark.
In the present embodiment, the preparatory condition is preferably:The length is the length and preset value of the packet
Difference.That is, calculate after second byte in the packet header and the length of the 3rd byte, judge whether the length meets default bar
Part, be specifically:The length of packet is calculated, the length of packet is then subtracted into preset value, to obtain the length of the packet
Degree and the difference of preset value, wherein, the preset value is not limited, and for example, 1, after difference is obtained, then by the second byte
It is compared with the length of the 3rd byte with the difference, to determine whether the length is equal with the difference, if equal, says
The length of bright second byte and the 3rd byte meets condition.
Generally, the first byte of user data or the corresponding packet of control signaling data is preset field, described
Preset field is not limited, for example field " 0X01 ", and the characterized length of the 2nd, 3 bytes, is worth for whole packet
Length subtracts preset value, and such as preset value is 1.Therefore, the first application processor 10 enters in the packet header of the packet to reception
Row identification, is identified, actually whether the first byte in determination packet header with determining whether the packet header carries default packet header
For preset field, and whether the length of the 2nd, 3 bytes is that the length of whole packet subtracts preset value.If identifying the head in packet header
Byte is preset field 0X01, and the value of the 2nd, 3 bytes subtracts 1 for the length of whole packet, now, the first application processor 10
Think to carry packet header mark in packet, it is believed that the bag is effective packet.
In the present embodiment, including three kinds of embodiments:
1) whether mode one, first byte in the parsing packet header, be predetermined word with the first byte for determining the packet header
Section;If first byte in the packet header is preset field, it is determined that the packet header carries default packet header mark.
2) length of mode two, second byte in the calculating packet header and the 3rd byte, and judge whether the length is full
Sufficient preparatory condition;If the length meets preparatory condition, it is determined that the packet header carries default packet header mark.
3) whether mode three, first byte in the parsing packet header, be predetermined word with the first byte for determining the packet header
Section;And second byte in the packet header and the length of the 3rd byte are calculated, and judge whether the length meets preparatory condition;
If first byte in the packet header is preset field, and the length meets preparatory condition, it is determined that the packet header carries pre-
If packet header mark.
In the embodiment of the present invention, any one of above-mentioned three kinds of modes can be set according to specific needs, but in order to carry
The accuracy of high identification of data packets, it is preferred to use mode three.
In the case of employing mode three, first application processor 10 is received after packet, can be used multi-thread
The packet header of journey analyze data bag, i.e., parse first byte in packet header, to determine first byte in the packet header by a thread
Whether it is preset field.Meanwhile, second byte in the packet header and the length of the 3rd byte are calculated by another thread, and sentence
Whether the length of breaking meets preparatory condition, when first byte in the packet header is preset field, and the length meets default
Condition, just determines that the packet header carries default packet header mark.
It should be appreciated that parallel parsing is carried out to each byte in packet header using multithreading, without first post analysis one by one,
The time of analysis is shortened, the efficiency of analysis is improved.
Or, first application processor 10 is received after packet, first parses the first node in packet header, to determine
Whether first byte in the packet header is preset field, when first byte in the packet header is preset field, is just calculated described
Second byte in packet header and the length of the 3rd byte, and judge whether the length meets preparatory condition, and it is full in the length
Sufficient preparatory condition, it is determined that the packet header carries default packet header mark.It should be noted that when first word in the packet header
Section is not preset field, now, and the length of the second byte and the 3rd byte need not be just judged again, directly assert and is not carried in packet header
Packet header is identified.
It is appreciated that by way of this front and rear judgement, can be further continued in the case where the first byte meets the requirements
Judge the second byte and the 3rd byte, in the case of preventing that the first byte is unsatisfactory for requirement, also spend resource to go to be judged, from
And the intelligent of data packet analysis is improved, it also avoid the waste of resource.
Further, identification of data packets system 3rd embodiment of the present invention is proposed.
The difference of identification of data packets system 3rd embodiment and identification of data packets system first embodiment is, described first
Application processor 10, is additionally operable to recognize the length of the packet;
It is more than preset length value in the length of the packet, just the packet header of the packet of reception is identified.
In the present embodiment, when first application processor 10 receives packet after being waken up, the data are first recognized
The length of bag, then obtains preset length value, the length of the packet of identification is compared with preset length value, to determine
Whether the length for stating packet is more than preset length value, if the length of the packet is more than preset length value, described first should
The packet header of the packet of reception is identified with the ability of processor 10, if identify the packet length be less than or
Equal to preset length value, the packet header of the packet of reception can not be now identified.
Herein it should be noted that the length of user data or the corresponding packet of control signaling data (data) is typically big
In the corresponding length of 6 bytes, and the length of the corresponding packet of response message (ack) is usually 4 or 6 bytes.
Therefore, when receiving packet after the first application processor 10 is waken up, first pass through packet length and judge the data
Bag is ack or data, if detecting, the packet is not greater than the corresponding length of 6 bytes, you can confirm that the packet is
Ack, now illustrates that the second application processor 20 of external equipment 200 does not send data also, therefore be not in above-mentioned packet loss
Situation, when detecting that the packet is more than the corresponding length of 6 bytes, can just be parsed to the packet header of the packet.
It is appreciated that in the present embodiment, after reception of the data packet, the length of the first application processor 10 first to packet
Degree is parsed, and to determine the type of the packet, so as to decide whether to parse the packet header of the packet, prevents owning
Packet all carry out header parser, so as to improve the intelligent of identification of data packets.
Further, identification of data packets system fourth embodiment of the present invention is proposed.
The difference of identification of data packets system fourth embodiment and identification of data packets system first to 3rd embodiment is, institute
The first application processor 10 is stated, if being additionally operable to the packet header carries default packet header mark, confirmation message is sent to described
Second application processor 20, so that second application processor 20 continues to send other packets to the described first application processing
Device 10.
I.e. in the present embodiment, if the first application processor 10 identifies that packet header does not have above-mentioned packet header mark, now, recognize
It is residual bag for the packet, after verifying that the packet is residual bag, can be fed back using data answering mechanism, for the
The data answering mechanism that two application processors 20 feed back according to the first application processor 10, which is decided to continue with, gives out a contract for a project, and still resends
Packet, specifically:
When it is effective packet that the first application processor 10, which identifies packet, that is, detect to take in packet
Clocked with packet header, now, a response ok can be fed back to the second application processor 20, to notify the second application processor 20
The packet being currently received is complete packet, specifically:First application processor 10 should by USB data line 300
The second application processor 20 that ok sends external equipment 200 to is answered, now, the second application processor 20 is handled according to the first application
The response ok that device 10 feeds back, continues to send other packets to the first application processor 10, with complete by USB data line 300
Send and operate into packet.
In the present embodiment, identifying that the packet header carries default packet header mark, then sending confirmation message to described
Second application processor 20, so that second application processor 20 continues to send other packets to the described first application processing
Device 10, so as to complete the transmitting procedure of data.
The present invention further provides a kind of packet identifying method.
Reference picture 4, Fig. 4 is the schematic flow sheet of packet identifying method preferred embodiment of the present invention.
The present embodiment proposes a kind of packet identifying method, and there is provided the reality of packet identifying method in the present embodiment
Example is applied, it is necessary to which explanation is, although show logical order in flow charts, but in some cases, can with different from
Order herein performs shown or described step.
In the present invention, packet identifying method is applied to mobile terminal 1 00 and passes through preset interface and mobile terminal 1 00
The external equipment 200 of connection, the mobile terminal 1 00 is penetrated including the first application processor 10, the first modem 11, first
Frequency module 12, and the first Subscriber Identity Module 13 being connected with first modem 11, the external equipment 200 include
Second application processor 20, second modem 21, the second radio-frequency module 22, and connect with the second modem 21
The second user identification card 23 connect, methods described includes:
Step S10, when the first application processor 10 is waken up, receives the second application processor 20 and passes through the preset interface
The packet of transmission;
Step S20, the packet header of the packet of reception is identified, to determine it is default whether the packet header carries
Packet header mark;
Step S30, if the packet header does not carry default packet header mark, transmission repeating transmission message is to described second at
Device 20 is managed, so that second application processor 20 resends the packet to first application processor 10.
In the present embodiment, first application processor 10 is waken up, and is to be received by preset interface at the second application
The detection that reason device 20 is sent wraps to realize wake-up.Subsequently, identification of first application processor 10 to packet, is also to passing through
The packet that preset interface is received is identified.Wherein, the preset interface is USB interface.
Firstly, it is necessary to explanation, after mobile terminal 1 00 and all dormancy of external equipment 200, if external equipment 200
External signal is received by the second radio-frequency module 22, the second radio-frequency module 22 of external equipment 200 by external signal transmit to
In second modem 21 so that second modem 21 wakes up, after second modem 21 wakes up, then the is waken up
Two application processors 20, so as to realize the wake-up of external equipment 200.After the wake-up of external equipment 200, external equipment 200
The first application that second application processor 20 can send detection bag to wake up in mobile terminal 1 00 by USB data line 300 is handled
Device 10, should to the first of mobile terminal 1 00 when sending detection bag for the second application processor 20 of external equipment 200
After processor 10, the second application processor 20 thinks that the first application processor 10 has woken up, now, at the second application
And then manage device 20 can send first application processor 10 of the packet of user data or control signaling to mobile terminal 1 00,
To carry out follow-up data exchange process.
But in real process, after the first application processor 10 sends detection bag to the first application processor 10, the
One application processor 10 is not waken up at once, but needs a period of time to switch to wake-up states from resting state.Now,
And if then the second application processor 20 sends packet, because the first application processor 10 does not wake up also completely, it can cause
In the packet that first application processor 10 is received, previous section contents lost, it is imperfect to cause the packet received
Packet, that is, residual bag.
To be best understood from, it is exemplified below:Second application processor 20 of external equipment 200 is sent by USB data line 300
Packet gives the first application processor 10, and the packet is 512 bytes, in the transmission process of preceding 36 bytes, due to moving
First application processor 10 of dynamic terminal 100 is not waken up also completely, is just really waken up in the 37th byte, now, and first should
Preceding 36 bytes can not be received with processor 10, then the packet that mobile terminal 1 00 is received is exactly residual bag, due to movement
Terminal 100 is basic with regard to the None- identified packet, causes mobile terminal 1 00 also to cannot respond to the packet, causes external equipment
200 cannot slowly reply, and cause data transfer inaccurate.
Therefore, in the present embodiment, after the first application processor 10 is waken up, if receiving the second application processor 20
The packet sent by the preset interface, first the packet header of the packet of reception is identified, to determine the bag
Whether head carries default packet header mark.It should be appreciated that carrying multiple bytes in packet header, specific number is not limited.
In the present embodiment, the packet header for the packet that 10 pairs of first application processor is received is identified, and is specially
The packet is parsed, then the packet header of the packet to parsing is identified, to determine whether the packet header carries
Default packet header mark, specific identification method is described in detail in embodiments below.
When the first application processor 10 identifies that packet header does not carry default packet header mark, send and retransmit message to described
Second application processor 20, so that second application processor 20 resends the packet to the described first application processing
Device 10.
That is, when the first application processor 10 identifies that packet header does not carry default packet header mark, illustrate what is be currently received
Packet has occurred that contents lost, it is impossible to which the packet is identified, also can not feedback response packet, because
This, first application processor 10 is sent by the USB data line 300 retransmits message to second application processor
20, so that second application processor 20 resends the packet to first application processor 10, for example, first
Application processor 10 sends response message " err " to the second application processor 20, is sent before informing the second application processor 20
Packet it is wrong, so that the second application processor 20 resends the packet.In the present embodiment, the shape of the message again
Formula is not limited, and can be a short message such as " err " or " Retry " or a preset field, such as " 0001 ", tool
Body is set according to actual conditions.
Be the equal of when it is residual bag that the first application processor 10, which identifies packet, that is, to detect number in the present embodiment
According to there is no carrying package labeling head in bag, now, a response err, the first application processing can be fed back to the second application processor 20
Device 10 sends response err to by USB data line 300 second application processor 20 of external equipment 200, now, and second should
With processor 20 based on the response err received, the packet is resend by USB data line 300 and handled to the first application
Device 10, to complete the interaction of data.
The packet identifying method that the present embodiment is proposed, when the first application processor is waken up, receives the second application processing
The packet that device is sent by the preset interface, and the packet header of the packet of reception is identified, it is described to determine
Whether packet header carries default packet header mark, if the packet header does not carry default packet header mark, send retransmit message to
Second application processor, so that second application processor resends the packet to the described first application processing
Device.When the first application processor of this programme in the terminal is waken up, first the packet header of the packet to receiving is known
Not, when recognizing that the packet header does not carry default packet header mark, the second application processor is notified to resend the packet, i.e.,
Lose packet content, the first application processor can also notify the second application processor to resend the packet in time,
Packet is timely responded to, the accuracy of data transfer is improved.
Further, packet identifying method second embodiment of the present invention is proposed.
The difference of packet identifying method second embodiment and packet identifying method first embodiment is, reference picture 5,
The step S20 includes:
Step S21, the first application 10 devices of processing parse first byte in the packet header, to determine the of the packet header
Whether one byte is preset field;And/or second byte in the packet header and the length of the 3rd byte are calculated, and judge the length
Whether degree meets preparatory condition;
Step S22, if first byte in the packet header is preset field, and/or the length meets preparatory condition, then really
The fixed packet header carries default packet header mark.
In the present embodiment, the preparatory condition is preferably:The length is the length and preset value of the packet
Difference.That is, calculate after second byte in the packet header and the length of the 3rd byte, judge whether the length meets default bar
Part, be specifically:The length of packet is calculated, the length of packet is then subtracted into preset value, to obtain the length of the packet
Degree and the difference of preset value, wherein, the preset value is not limited, and for example, 1, after difference is obtained, then by the second byte
It is compared with the length of the 3rd byte with the difference, to determine whether the length is equal with the difference, if equal, says
The length of bright second byte and the 3rd byte meets condition.
Generally, the first byte of user data or the corresponding packet of control signaling data is preset field, described
Preset field is not limited, for example field " 0X01 ", and the characterized length of the 2nd, 3 bytes, is worth for whole packet
Length subtracts preset value, and such as preset value is 1.Therefore, the first application processor 10 enters in the packet header of the packet to reception
Row identification, is identified, actually whether the first byte in determination packet header with determining whether the packet header carries default packet header
For preset field, and whether the length of the 2nd, 3 bytes is that the length of whole packet subtracts preset value.If identifying the head in packet header
Byte is preset field 0X01, and the value of the 2nd, 3 bytes subtracts 1 for the length of whole packet, now, the first application processor 10
Think to carry packet header mark in packet, it is believed that the bag is effective packet.
In the present embodiment, including three kinds of embodiments:
1) whether mode one, first byte in the parsing packet header, be predetermined word with the first byte for determining the packet header
Section;If first byte in the packet header is preset field, it is determined that the packet header carries default packet header mark.
2) length of mode two, second byte in the calculating packet header and the 3rd byte, and judge whether the length is full
Sufficient preparatory condition;If the length meets preparatory condition, it is determined that the packet header carries default packet header mark.
3) whether mode three, first byte in the parsing packet header, be predetermined word with the first byte for determining the packet header
Section;And second byte in the packet header and the length of the 3rd byte are calculated, and judge whether the length meets preparatory condition;
If first byte in the packet header is preset field, and the length meets preparatory condition, it is determined that the packet header carries pre-
If packet header mark.
In the embodiment of the present invention, any one of above-mentioned three kinds of modes can be set according to specific needs, but in order to carry
The accuracy of high identification of data packets, it is preferred to use mode three.
In the case of employing mode three, first application processor 10 is received after packet, can be used multi-thread
The packet header of journey analyze data bag, i.e., parse first byte in packet header, to determine first byte in the packet header by a thread
Whether it is preset field.Meanwhile, second byte in the packet header and the length of the 3rd byte are calculated by another thread, and sentence
Whether the length of breaking meets preparatory condition, when first byte in the packet header is preset field, and the length meets default
Condition, just determines that the packet header carries default packet header mark.
It should be appreciated that parallel parsing is carried out to each byte in packet header using multithreading, without first post analysis one by one,
The time of analysis is shortened, the efficiency of analysis is improved.
Or, first application processor 10 is received after packet, first parses the first node in packet header, to determine
Whether first byte in the packet header is preset field, when first byte in the packet header is preset field, is just calculated described
Second byte in packet header and the length of the 3rd byte, and judge whether the length meets preparatory condition, and it is full in the length
Sufficient preparatory condition, it is determined that the packet header carries default packet header mark.It should be noted that when first word in the packet header
Section is not preset field, now, and the length of the second byte and the 3rd byte need not be just judged again, directly assert and is not carried in packet header
Packet header is identified.
It is appreciated that by way of this front and rear judgement, can be further continued in the case where the first byte meets the requirements
Judge the second byte and the 3rd byte, in the case of preventing that the first byte is unsatisfactory for requirement, also spend resource to go to be judged, from
And the intelligent of data packet analysis is improved, it also avoid the waste of resource.
Further, packet identifying method 3rd embodiment of the present invention is proposed.
The difference of packet identifying method 3rd embodiment and packet identifying method first embodiment is, the step
Before S20, methods described also includes:
Step A, first application processor 10 recognizes the length of the packet;
Step B, is more than preset length value in the length of the packet, just performs the packet of described pair of reception
The step of packet header is identified.
In the present embodiment, when first application processor 10 receives packet after being waken up, the data are first recognized
The length of bag, then obtains preset length value, the length of the packet of identification is compared with preset length value, to determine
Whether the length for stating packet is more than preset length value, if the length of the packet is more than preset length value, described first should
The packet header of the packet of reception is identified with the ability of processor 10, if identify the packet length be less than or
Equal to preset length value, the packet header of the packet of reception can not be now identified.
Herein it should be noted that the length of user data or the corresponding packet of control signaling data (data) is typically big
In the corresponding length of 6 bytes, and the length of the corresponding packet of response message (ack) is usually 4 or 6 bytes.
Therefore, when receiving packet after the first application processor 10 is waken up, first pass through packet length and judge the data
Bag is ack or data, if detecting, the packet is not greater than the corresponding length of 6 bytes, you can confirm that the packet is
Ack, now illustrates that the second application processor 20 of external equipment 200 does not send data also, therefore be not in above-mentioned packet loss
Situation, when detecting that the packet is more than the corresponding length of 6 bytes, can just be parsed to the packet header of the packet.
It is appreciated that in the present embodiment, after reception of the data packet, the length of the first application processor 10 first to packet
Degree is parsed, and to determine the type of the packet, so as to decide whether to parse the packet header of the packet, prevents owning
Packet all carry out header parser, so as to improve the intelligent of identification of data packets.
Further, packet identifying method fourth embodiment of the present invention is proposed.
Packet identifying method fourth embodiment and the difference of packet identifying method first to 3rd embodiment are, join
According to Fig. 6, after the step S20, methods described also includes:
Step S40, if the packet header carries default packet header mark, first application processor 10, which is sent, to be confirmed
Message gives second application processor 20, so that second application processor 20 continues to send other packets to described the
One application processor 10.
I.e. in the present embodiment, if the first application processor 10 identifies that packet header does not have above-mentioned packet header mark, now, recognize
It is residual bag for the packet, after verifying that the packet is residual bag, can be fed back using data answering mechanism, for the
The data answering mechanism that two application processors 20 feed back according to the first application processor 10, which is decided to continue with, gives out a contract for a project, and still resends
Packet, specifically:
When it is effective packet that the first application processor 10, which identifies packet, that is, detect to take in packet
Clocked with packet header, now, a response ok can be fed back to the second application processor 20, to notify the second application processor 20
The packet being currently received is complete packet, specifically:First application processor 10 should by USB data line 300
The second application processor 20 that ok sends external equipment 200 to is answered, now, the second application processor 20 is handled according to the first application
The response ok that device 10 feeds back, continues to send other packets to the first application processor 10, with complete by USB data line 300
Send and operate into packet.
In the present embodiment, identifying that the packet header carries default packet header mark, then sending confirmation message to described
Second application processor 20, so that second application processor 20 continues to send other packets to the described first application processing
Device 10, so as to complete the transmitting procedure of data.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or system including a series of key elements not only include those key elements, and
And also including the other key elements being not expressly set out, or also include for this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the system of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes
It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of identification of data packets system, it is characterised in that the identification of data packets system includes mobile terminal, and by pre-
If the external equipment that interface is connected with the mobile terminal, the mobile terminal includes the first application processor, the first modulatedemodulate
Adjust device, the first radio-frequency module and the first Subscriber Identity Module being connected with first modem, the external equipment bag
Include the second application processor, second modem, the second radio-frequency module, and be connected with the second modem
Two Subscriber Identity Modules;
First application processor, during for being waken up, receives what the second application processor was sent by the preset interface
Packet;The packet header of the packet of reception is identified, to determine whether the packet header carries default packet header
Know;If the packet header does not carry default packet header mark, send and retransmit message to second application processor, for described
Second application processor resends the packet to first application processor.
2. identification of data packets system as claimed in claim 1, it is characterised in that institute of first application processor to reception
The packet header for stating packet is identified, and is specifically included with determining whether the packet header carries default packet header mark:
First byte in the packet header is parsed, whether is preset field with the first byte for determining the packet header;And/or calculate institute
Second byte in packet header and the length of the 3rd byte are stated, and judges whether the length meets preparatory condition;
If first byte in the packet header is preset field, and/or the length meets preparatory condition, it is determined that take in the packet header
With default packet header mark.
3. identification of data packets system as claimed in claim 2, it is characterised in that the preparatory condition is:The length is institute
State the length of packet and the difference of preset value.
4. identification of data packets system as claimed in claim 1, it is characterised in that first application processor, is additionally operable to know
The length of not described packet;
It is more than preset length value in the length of the packet, just the packet header of the packet of reception is identified.
5. the identification of data packets system as described in claim any one of 1-4, it is characterised in that first application processor,
If being additionally operable to the packet header carries default packet header mark, confirmation message is sent to second application processor, for
Second application processor continues to send other packets to first application processor.
6. a kind of packet identifying method, it is characterised in that applied to mobile terminal and pass through preset interface and mobile terminal
The external equipment of connection, the mobile terminal include the first application processor, the first modem, the first radio-frequency module, with
And the first Subscriber Identity Module being connected with first modem, the external equipment includes the second application processor, the
Two modems, the second radio-frequency module, and the second user identification card being connected with the second modem, the side
Method includes:
When first application processor is waken up, the packet that the second application processor is sent by the preset interface is received;
The packet header of the packet of reception is identified, identified with determining whether the packet header carries default packet header;
If the packet header does not carry default packet header mark, send and retransmit message to second application processor, for institute
State the second application processor and resend the packet to first application processor.
7. packet identifying method as claimed in claim 6, it is characterised in that the packet header of the packet of described pair of reception
It is identified, is included with determining whether the packet header carries the step of default packet header is identified:
Whether first application processor parses first byte in the packet header, be pre- with the first byte for determining the packet header
If field;And/or second byte in the packet header and the length of the 3rd byte are calculated, and it is default to judge whether the length meets
Condition;
If first byte in the packet header is preset field, and/or the length meets preparatory condition, it is determined that take in the packet header
With default packet header mark.
8. packet identifying method as claimed in claim 7, it is characterised in that the preparatory condition is:The length is institute
State the length of packet and the difference of preset value.
9. packet identifying method as claimed in claim 6, it is characterised in that the packet header of the packet of described pair of reception
It is identified, so that before determining whether the packet header carries the step of default packet header is identified, methods described also includes:
First application processor recognizes the length of the packet;
It is more than preset length value in the length of the packet, the packet header for just performing the packet of described pair of reception is known
Other step.
10. the packet identifying method as described in claim any one of 6-9, it is characterised in that the number of described pair of reception
It is identified according to the packet header of bag, after determining whether the packet header carries the step of default packet header is identified, methods described
Also include:
If the packet header carries default packet header mark, first application processor sends confirmation message to described second
Application processor, so that second application processor continues to send other packets to first application processor.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710204468.6A CN107070903B (en) | 2017-03-30 | 2017-03-30 | Data packet identification system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710204468.6A CN107070903B (en) | 2017-03-30 | 2017-03-30 | Data packet identification system and method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107070903A true CN107070903A (en) | 2017-08-18 |
| CN107070903B CN107070903B (en) | 2020-08-21 |
Family
ID=59602461
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710204468.6A Active CN107070903B (en) | 2017-03-30 | 2017-03-30 | Data packet identification system and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107070903B (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN202696911U (en) * | 2012-05-25 | 2013-01-23 | 深圳市江波龙电子有限公司 | Wireless communication system and wireless communication expansion device |
| WO2013032139A2 (en) * | 2011-08-27 | 2013-03-07 | Lg Electronics Inc. | Method and apparatus of transmitting paging frame and wakeup frame |
| CN103052131A (en) * | 2013-01-04 | 2013-04-17 | 无锡儒安科技有限公司 | Energy consumption control method under delay constraint in wireless sensor network |
| CN103532668A (en) * | 2013-10-12 | 2014-01-22 | 成都阜特科技股份有限公司 | Method for ensuring integrity and correctness of TCP (transmission control protocol) communication data |
| CN204119532U (en) * | 2014-07-15 | 2015-01-21 | 宽兆科技(深圳)有限公司 | A kind of LTE mobile terminal supporting public wireless network and dedicated network |
| US20160077573A1 (en) * | 2014-09-16 | 2016-03-17 | Samsung Electronics Co., Ltd. | Transmission apparatus and reception apparatus for transmission and reception of wake-up packet, and wake-up system and method |
| CN105893304A (en) * | 2016-03-28 | 2016-08-24 | 努比亚技术有限公司 | Terminal supporting dual network data transmission and realization method thereof |
| US20170086046A1 (en) * | 2015-09-22 | 2017-03-23 | Qualcomm Incorporated | Emergency message support with dynamic priorities in dual subscriber identity module dual standby devices |
-
2017
- 2017-03-30 CN CN201710204468.6A patent/CN107070903B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013032139A2 (en) * | 2011-08-27 | 2013-03-07 | Lg Electronics Inc. | Method and apparatus of transmitting paging frame and wakeup frame |
| CN202696911U (en) * | 2012-05-25 | 2013-01-23 | 深圳市江波龙电子有限公司 | Wireless communication system and wireless communication expansion device |
| CN103052131A (en) * | 2013-01-04 | 2013-04-17 | 无锡儒安科技有限公司 | Energy consumption control method under delay constraint in wireless sensor network |
| CN103532668A (en) * | 2013-10-12 | 2014-01-22 | 成都阜特科技股份有限公司 | Method for ensuring integrity and correctness of TCP (transmission control protocol) communication data |
| CN204119532U (en) * | 2014-07-15 | 2015-01-21 | 宽兆科技(深圳)有限公司 | A kind of LTE mobile terminal supporting public wireless network and dedicated network |
| US20160077573A1 (en) * | 2014-09-16 | 2016-03-17 | Samsung Electronics Co., Ltd. | Transmission apparatus and reception apparatus for transmission and reception of wake-up packet, and wake-up system and method |
| US20170086046A1 (en) * | 2015-09-22 | 2017-03-23 | Qualcomm Incorporated | Emergency message support with dynamic priorities in dual subscriber identity module dual standby devices |
| CN105893304A (en) * | 2016-03-28 | 2016-08-24 | 努比亚技术有限公司 | Terminal supporting dual network data transmission and realization method thereof |
Non-Patent Citations (1)
| Title |
|---|
| 吴瑞红等: "国外知名企业最新宽带无线通信产品与方案", 《中国安防》 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107070903B (en) | 2020-08-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107466070A (en) | Data transmission system, method, external equipment and mobile terminal | |
| CN107094152A (en) | Data packet transmission system and method | |
| CN107124738A (en) | Mobile terminal and data pack transmission method | |
| CN107094308A (en) | Data packet transmission system and method | |
| CN107070903A (en) | Identification of data packets system and method | |
| CN106900045A (en) | Data transmission system and method | |
| CN107086993A (en) | Identification of data packets system and method | |
| CN107086991A (en) | Identification of data packets system and method | |
| CN107086989A (en) | Identification of data packets system and method | |
| CN107070598A (en) | Identification of data packets system and method | |
| CN107070904A (en) | Identification of data packets system and method | |
| CN107086987A (en) | Identification of data packets system and method | |
| CN107040529A (en) | Identification of data packets system and method | |
| CN106961438A (en) | Identification of data packets system and method | |
| CN107086986A (en) | Mobile terminal and packet identifying method | |
| CN107071167A (en) | Mobile terminal and packet identifying method | |
| CN107086990A (en) | Mobile terminal and packet identifying method | |
| CN107086992A (en) | Mobile terminal and packet identifying method | |
| CN107086988B (en) | Data packet identification system and method | |
| CN107182087A (en) | Data packet transmission system and method | |
| CN107087057A (en) | Data transmission system and method | |
| CN107086994B (en) | Data packet identification system and method | |
| CN107087062A (en) | Data transmission system and method | |
| CN106953984A (en) | Data transmission system and method | |
| CN107087064A (en) | Mobile terminal and its data transmission method |
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 |