CN107086987A - Identification of data packets system and method - Google Patents

Identification of data packets system and method Download PDF

Info

Publication number
CN107086987A
CN107086987A CN201710204556.6A CN201710204556A CN107086987A CN 107086987 A CN107086987 A CN 107086987A CN 201710204556 A CN201710204556 A CN 201710204556A CN 107086987 A CN107086987 A CN 107086987A
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
Application number
CN201710204556.6A
Other languages
Chinese (zh)
Other versions
CN107086987B (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.)
Nanjing Youxin Technology Co.,Ltd.
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710204556.6A priority Critical patent/CN107086987B/en
Publication of CN107086987A publication Critical patent/CN107086987A/en
Application granted granted Critical
Publication of CN107086987B publication Critical patent/CN107086987B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The invention discloses a kind of identification of data packets system and method, the system includes:Mobile terminal and external equipment, the first modem and the first radio-frequency module that mobile terminal includes the first application processor, is connected with entity user identification card, second modem and the second radio-frequency module that external equipment includes the second application processor, is connected with embedded user identification card;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 resends the packet.The present invention is notified the second application processor retransmission data bag in time when receiving residual bag, is timely responded to packet, improve the accuracy of data transfer by the identification to residual bag.

Description

Identification of data packets system and method
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 The first modem and the first radio-frequency module being connected with processor, with entity user identification card, the external equipment include Second application processor, the second modem being connected with embedded user identification card and the second radio-frequency module;
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, used with entity The first modem and the first radio-frequency module of family identification card connection, the external equipment include the second application processor, with The second modem and the second radio-frequency module of embedded user identification card connection, methods described include:
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 and real The first modem and the first radio-frequency module of body Subscriber Identity Module connection, the external equipment include the second application processing Device, the second modem being connected with embedded user identification card and the second radio-frequency module, the first application processor quilt During wake-up, the packet that is sent by the preset interface of the second application processor is received, and to the packet of reception Packet header is identified, and is identified with determining whether the packet header carries default packet header, if the packet header does not carry default bag Leader is known, then sends and retransmit message to second application processor, for second application processor resend it is described Packet is to first application processor.When the first application processor of this programme in the terminal is waken up, first dock The packet header of the packet received is identified, and when recognizing that the packet header does not carry default packet header mark, notifies the second application Processor resends the packet, even if packet content is lost, and the first application processor can also notify that second should in time Thought highly of with processing and newly send the packet, timely respond to packet, improve 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 entity user identification card 13 Manager, resource power supervisor) 14, the entity user identification card 13 is 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, recognized with embedded user The second modem (modem2) 21 of the connection of card 23.
Wherein, the embedded user identification card 23 is connected by serial ports with second modem 21, serial ports include but Universal asynchronous receiving-transmitting transmitter (UART) is not limited to, it is necessary to which explanation, embedded user identification card 23 is ESIM (Embedded Subscriber Identity Module) to block, associated card parameter writes direct the ESIM cards, and the ESIM cards are comprising programmable SIM card chip;The embedded user identification card 23 includes memory module and chip operating system (Chip Operating System, COS), the memory module can be EFS (Encrypting File System, encrypted file system), and memory module is used In the authorization data of storage embedded user identification card 23.
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 application processor 20 of processor 10 and second includes user data and control signaling data by the data of USB transmission.Wherein, use User data includes the data that online is produced, picture and chat message data;Control signaling data include the control data of switching on and shutting down, Switch the control data of offline mode, the control data of dispaly state signal.Due in the embodiment of the present invention, mobile terminal 1 00 The first modem 11 connection entity user identification card 13, the second modem 21 of external equipment 200 is connected with insertion Formula Subscriber Identity Module 23, therefore, USB data line without SIM card authorization data interaction.
In the present invention, the first application processor 10 and the second application processor 20 are carried out by OTG (On-The-Go) technology Data interaction.By OTG technologies, the first modem 11 in mobile terminal 1 00 can be by entity user identification card 13 SIM card parameter can be known to access the second modem 21 in eNodeB 101, external equipment 200 by embedded user SIM card parameter that Ka be in 23 accesses 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 (Wideband Code Division Multiple Access, WCDMA)/GSM (Global System for Mobile Communication, the whole world GSM)/TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, synchronous time division CDMA)/CDMA (Code Division Multiple Access, CDMA)/EDGE Inside communication standards such as (Enhanced Data Rate for GSM Evolution, strong type Data for GSM Evolution) Defined protocol code.Mobile terminal 1 00 is interacted by agreement with carrier network, that is, carry out data traffic online, VOLTE (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 entity user it should be noted that know Do not block 13, the second modem 21 of external equipment 200 is connected with embedded user identification card 23, therefore, the first modulatedemodulate Tune device 11 and second modem 21 are separate, and second modem 21 does not wake up the first modem 11.
The embedded user identification card 23 in entity user identification card 13 and external equipment 200 in mobile terminal 1 00 is deposited The associated user profile of the different wireless communication standard of storage.It should be appreciated that current mobile terminal only has a set of radio frequency, it is mobile Two Subscriber Identity Modules of terminal inner are the relation of time-sharing multiplex using the set radio frequency, can not be taken simultaneously.For example, two During Subscriber Identity Module standard-sized sheet, a card can handle GSM calls, and another card can only handle the 4G network informations, it is specific which Which kind of network Subscriber Identity Module performs, and does not limit.Therefore current this framework of radio frequency double card time-sharing multiplex has only accomplished LTE (the corresponding technical standard of i.e. one Subscriber Identity Module is LTE to+GSM, 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 line 300, because external equipment 200 includes the second radio-frequency module 22 and embedded user Identification card 23, and the second radio-frequency module 22 supports 4G networks, therefore, mobile terminal 1 00 can pass through USB line 300 and external equipment 200 interactions, so that mobile terminal 1 00 possesses double LTE functions.
In the present embodiment, embedded user identification card 23 and entity user identification card 13 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 entity user identification card 13 is interacted with mobile terminal 1 00, mobile terminal 1 00 detects the entity user identification card 13 The signal of presence or absence only in the instantaneous generation of start, exists when the start of mobile terminal 1 00 can't detect entity user identification card 13 When, point out " accessing user's identification card " in the display screen of mobile terminal 1 00.After mobile terminal 1 00 is started shooting, mobile terminal Communication in 28 seconds once, completes the communication check of some fixations (for example, Subscriber Identity Module between 100 and entity user identification card 13 It is whether in place etc.).
It should be noted that when embedded user identification card 23 needs to carry out network registry, passing through the wireless guarantor of unlatching Very (WIFI) network is sent downloads request to the corresponding cloud server of embedded user identification card comprising service menu data, To obtain the data message of embedded user identification card from cloud server.When the data for getting embedded user identification card 23 During information, in the memory module that data message is write to embedded user identification card 23, to realize embedded user identification card Network registry.Wherein, data message can include:IMSI, Ki (key identifier, KI), ICCID (Integrated Circuit Card Identifier), PIN (personal identification number, Personal Identification Number)、PUK(PIN Unlocking Key).It is understood that storing the card of each operator in cloud server Number resource.
In an embodiment of the present invention, embedded user identification card 23 and the carrying information of entity user identification card 13, and Correspondence card parameter is returned to according to external world's request, and authentication computing, the first radio-frequency module 12 and the second radio frequency mould are carried out to network Wireless access technology involved by block 22 is LTE.When mobile terminal 1 00 is connected by USB with external equipment 200, entity is used Family identification card 13 supports LTE by the first modem 11 in mobile terminal 1 00, and embedded user identification card 23 can lead to The second modem 21 crossed in external device 200 supports LTE, and to realize that mobile terminal 1 00 connects the feelings of external equipment 200 Double LTE can be supported under condition.
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, to RPM14 apply resource, subsystems respectively include the first application processor 10, the first modem 11, PRONTO (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, specifically It is that voting mechanisms of the RPM14 based on subsystems realizes that, when subsystems all throw dormancy ticket, RPM14 can just make shifting The dynamic 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 and the first radio-frequency module 12 for being connected with entity user identification card 13, it is described External equipment 200 include the second application processor 20, the second modem 21 that is connected with embedded user identification card 23 and Second radio-frequency module 22;
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, used with entity The first modem and the first radio-frequency module of family identification card connection, the external equipment include the second application processor, with The second modem and the second radio-frequency module of embedded user identification card connection, first application processor are waken up When, receive the packet that the second application processor is sent by the preset interface, and the packet header of the packet to reception It is identified, is identified with determining whether the packet header carries default packet header, if the packet header does not carry default packet header Know, then send and retransmit message to second application processor, so that second application processor resends the data Wrap to first application processor.When the first application processor of this programme in the terminal is waken up, first to receiving Packet header of packet be identified, when recognizing that the packet header does not carry default packet header mark, notify the second application processing Device resends the packet, even if packet content is lost, and the first application processor can also be notified at the second application in time Reason device resends the packet, timely responds to packet, improves 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 the mobile terminal being connected by preset interface with external equipment 200 100, it is the first modulation /demodulation that the mobile terminal 1 00, which includes the first application processor 10, is connected with entity user identification card 13, The radio-frequency module 12 of device 11 and first, the external equipment 200 includes the second application processor 20 and embedded user identification card 23 The radio-frequency module 22 of second modem 21 and second of connection, 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 and entity user Identification card connection the first modem and the first radio-frequency module, the external equipment include the second application processor, with it is embedding Enter the second modem and the second radio-frequency module of formula Subscriber Identity Module connection;
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 first modulation that the mobile terminal includes the first application processor, is connected with entity user identification card Demodulator and the first radio-frequency module, the external equipment include the second application processor, are connected with embedded user identification card Second modem and the second radio-frequency module, methods described include:
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.
CN201710204556.6A 2017-03-30 2017-03-30 Data packet identification system and method Active CN107086987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710204556.6A CN107086987B (en) 2017-03-30 2017-03-30 Data packet identification system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710204556.6A CN107086987B (en) 2017-03-30 2017-03-30 Data packet identification system and method

Publications (2)

Publication Number Publication Date
CN107086987A true CN107086987A (en) 2017-08-22
CN107086987B CN107086987B (en) 2020-08-07

Family

ID=59615068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710204556.6A Active CN107086987B (en) 2017-03-30 2017-03-30 Data packet identification system and method

Country Status (1)

Country Link
CN (1) CN107086987B (en)

Citations (8)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
吴瑞红等: "国外知名企业最新宽带无线通信产品与方案", 《中国安防》 *

Also Published As

Publication number Publication date
CN107086987B (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN107466070A (en) Data transmission system, method, external equipment and mobile terminal
CN107094308A (en) Data packet transmission system and method
CN107094152A (en) Data packet transmission system and method
CN107124738A (en) Mobile terminal and data pack transmission method
CN107071832A (en) Data packet transmission system and method
CN107086987A (en) Identification of data packets system and method
CN106961438A (en) Identification of data packets system and method
CN107070904A (en) Identification of data packets system and method
CN107070598A (en) Identification of data packets system and method
CN107086994A (en) Identification of data packets system and method
CN107086989A (en) Identification of data packets system and method
CN107040529A (en) Identification of data packets system and method
CN107086993A (en) Identification of data packets system and method
CN107086988A (en) Identification of data packets system and method
CN107070903A (en) Identification of data packets system and method
CN107086991A (en) Identification of data packets system and method
CN107086986A (en) Mobile terminal and packet identifying method
CN107182087A (en) Data packet transmission system and method
CN107086990A (en) Mobile terminal and packet identifying method
CN106953984A (en) Data transmission system and method
CN107396400A (en) Data transmission system, method, external equipment and mobile terminal
CN107087057A (en) Data transmission system and method
CN107086992A (en) Mobile terminal and packet identifying method
CN107087062A (en) Data transmission system and method
CN106982461A (en) Data transmission system and 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
TA01 Transfer of patent application right

Effective date of registration: 20200706

Address after: 210013, Gu Ping Gang 4, Gulou District, Jiangsu, Nanjing

Applicant after: Nanjing Qingyou Information Technology Co.,Ltd.

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220302

Address after: 210003 Block C, No. 4 gupinggang, Gulou District, Nanjing, Jiangsu Province

Patentee after: Nanjing edge intelligent technology partnership (L.P.)

Address before: 210013 gulping 4, Gulou District, Nanjing, Jiangsu

Patentee before: Nanjing Qingyou Information Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221122

Address after: Room 115-2, Block C, No. 4, Gupinggang, Gulou District, Nanjing, Jiangsu 210003

Patentee after: Nanjing Youxin Technology Co.,Ltd.

Address before: 210003 Block C, No. 4 gupinggang, Gulou District, Nanjing, Jiangsu Province

Patentee before: Nanjing edge intelligent technology partnership (L.P.)

TR01 Transfer of patent right