CN107086992A - Mobile terminal and packet identifying method - Google Patents

Mobile terminal and packet identifying method Download PDF

Info

Publication number
CN107086992A
CN107086992A CN201710207638.6A CN201710207638A CN107086992A CN 107086992 A CN107086992 A CN 107086992A CN 201710207638 A CN201710207638 A CN 201710207638A CN 107086992 A CN107086992 A CN 107086992A
Authority
CN
China
Prior art keywords
packet
packet header
chip
length
process chip
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
CN201710207638.6A
Other languages
Chinese (zh)
Other versions
CN107086992B (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.)
Nubia 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 CN201710207638.6A priority Critical patent/CN107086992B/en
Publication of CN107086992A publication Critical patent/CN107086992A/en
Application granted granted Critical
Publication of CN107086992B publication Critical patent/CN107086992B/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
    • 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 mobile terminal and packet identifying method, mobile terminal includes the first process chip connected based on preset interface and second processing chip, be connected with the first process chip the first radio-frequency module, the second radio-frequency module being connected with second processing chip, first process chip includes the first application processor, is embedded with the first modem of virtual user identifying card, and the entity user identification card being connected with the first modem, second processing chip include the second application processor and second modem;When first process chip is waken up, the packet that second processing chip is sent is received;The packet header of the packet of reception is identified, identified with determining whether packet header carries default packet header;Repeating transmission message is sent if not carrying and gives second processing chip, for second processing chip retransmission data bag.The present invention notifies second processing chip retransmission data bag in time when receiving residual bag, improves the accuracy of data transfer.

Description

Mobile terminal and packet identifying method
Technical field
The present invention relates to communication technical field, more particularly to a kind of mobile terminal and packet identifying 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 built-in two Individual process chip, one modem of each process chip correspondence, so that two SIM cards of mobile terminal connect different tune Modulator-demodulator, so as to realize double LTE communication functions.But, when two process chips built in mobile terminal, if at first Reason chip does not wake up also, and second process chip just sends packet, because first process chip does not wake up also completely, data The previously sent content of bag can lose, then the packet that first process chip is received is residual bag, cause first processing Chip cannot respond to the packet.
The content of the invention
It is a primary object of the present invention to propose a kind of mobile terminal and packet identifying method, it is intended to solve packet biography After defeated, lost if occurring packet content, the technical problem that packet cannot respond to easily occur.
To achieve the above object, a kind of mobile terminal that the present invention is provided, the mobile terminal includes being based on preset interface The first process chip and second processing chip of connection, the first radio-frequency module, the Yi Jiyu being connected with first process chip Second radio-frequency module of the second processing chip connection, first process chip includes the first application processor, is embedded with First modem of virtual user identifying card, and the entity user identification card being connected with the first modem, it is described Second processing chip includes the second application processor and second modem,
First process chip, during for being waken up, receives what second processing chip 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 the second processing chip, for described the Two process chips resend the packet to first process chip.
Alternatively, the packet header of the packet of described pair of reception is identified, to determine whether the packet header carries Default packet header mark is specifically included:
First process chip parses first byte in the packet header, with determine the packet header the first byte whether be Preset field;And/or second byte in the packet header and the length of the 3rd byte are calculated, and it is pre- to judge whether the length meets If 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 process chip, 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 process chip, if being additionally operable to the packet header carries default packet header mark, sends true Message is recognized to the second processing chip, so that the second processing chip continues to send other packets to the described first processing Chip.
In addition, to achieve the above object, the present invention also proposes a kind of packet identifying method, applied to mobile terminal, institute State the first process chip and second processing chip and first process chip that mobile terminal includes connecting based on preset interface First radio-frequency module of connection and the second radio-frequency module being connected with the second processing chip, first process chip Including the first application processor, be embedded with the first modem of virtual user identifying card, and with the first modem The entity user identification card of connection, the second processing chip includes the second application processor and second modem, described Method includes:
When first process chip is waken up, the packet that second processing chip is sent by the preset interface is received;
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 the second processing chip, for The second processing chip resends the packet to first process chip.
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 process chip parses first byte in the packet header, with determine the packet header the first byte whether be Preset field;And/or second byte in the packet header and the length of the 3rd byte are calculated, and it is pre- to judge whether the length meets If 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 process chip 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 process chip sends confirmation message to described the Two process chips, so that the second processing chip continues to send other packets to first process chip.
Mobile terminal and packet identifying method proposed by the present invention, the mobile terminal are included based on preset interface connection The first process chip and second processing chip, the first radio-frequency module for being connected with first process chip and with it is described Second radio-frequency module of second processing chip connection, first process chip includes the first application processor, is embedded with virtually First modem of Subscriber Identity Module, and the entity user identification card being connected with the first modem, described second Process chip includes the second application processor and second modem, and first process chip during for being waken up, is received The packet that second processing chip is sent by the preset interface;The packet header of the packet of reception is identified, with Determine whether the packet header carries default packet header mark;If the packet header does not carry default packet header mark, weight is sent Message is sent out to the second processing chip, so that the second processing chip resends the packet to the described first processing Chip.When the first process chip 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, second processing chip is notified to resend the packet, even if Packet content is lost, and the first process chip can also notify second processing chip to resend the packet in time, is rung in time Packet is answered, the accuracy of data transfer is improved.
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 hardware architecture diagram of mobile terminal in the embodiment of the present invention;
Fig. 3 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. 4, to determine whether the packet header carries The refinement schematic flow sheet of default packet header mark;
Fig. 5 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 schematic diagram of the LTE network framework of one embodiment of the invention.The LTE network framework of one embodiment of the invention Including:One or more mobile terminals (user equipment, UE) 100, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, the UMTS Terrestrial radio access network of evolution) (non-label in figure), evolution point Group core (EPC) (non-label in figure), home subscriber servers (HSS) 107, 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).
Fig. 2 is a kind of hardware architecture diagram of mobile terminal in the embodiment of the present invention.
In embodiments of the present invention, mobile terminal 1 00 includes the first process chip 001 and second processing chip 002, with institute The second radio frequency stated the first radio-frequency module 12 of the first process chip 001 connection and be connected with the second processing chip 002 Module 22.Wherein, the first process chip 001 and second processing chip 002 are connected by preset interface.The preset interface includes First preset interface and the second preset interface.First process chip 001 includes the first application processor (Application Processor, is represented with AP1) 10, be embedded with virtual user identifying card 11A the first modem 11 (modem1), entity Subscriber Identity Module 14 and RPM (Resource Power Manager, resource power supervisor) 15.Second processing chip 002 is wrapped Include the second application processor 20 and second modem (modem2) 21.
Wherein, virtual user identifying card 11A includes memory module and virtual chip operating system (Virtual Chip Operating System, VCOS), the memory module can be EFS (Encrypting File System, encryption file system System), memory module is used for the authorization data for storing virtual user identifying card 11A.Entity user identification card 14 is SIM (Subscriber Identity Module, subscriber identification module) blocks.
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 embodiments of the present invention, application processor refers to Android operations system System, and the various apk (Android Package, Android installation kit) based on Android operation system.
In an embodiment of the present invention, the first application processor 10 and the second application processor 20 pass through the first preset interface Connection is realized, interactive interface is provided the user, the operational order that user is inputted is (for example, what user was inputted by user interface Operational order about starting video calling) the first modem 11 or second modem 21 are transferred to, to realize two The definition and transmission of data between individual application processor, for example, carrying out the dormancy of two application processors, wake-up, synchronous control Control of chip boot sequence etc. when system, switching on and shutting down.Wherein, the first preset interface be USB (Universal Serial Bus, USB).It should be appreciated that in embodiments of the present invention, USB data line is multiplexed out two data passages, respectively For the interaction of user data and control signaling data between the first application processor 10 and the second application processor 20, i.e., first The data that the application processor 20 of application processor 10 and second is transmitted by USB data line include above two data.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.
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 virtual user identifying card 11A In SIM card parameter access eNodeB101, second modem 21 can be joined by the SIM card of entity user identification card 14 Count to access eNodeB 101;Or first modem 11 connect by the SIM card parameter in entity user identification card 14 Enter eNodeB 101, second modem 21 accesses eNodeB by virtual user identifying card 11A SIM card parameter 101.SIM card parameter includes but is not limited to SIM card authorization data.
First modem 11 and second modem 21 are connected by the second preset interface.In the embodiment of the present invention In, the second preset interface is UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receipts Send out transmitter).UART is used for the transmission of SIM card parameter between the first modem 11 and second modem 21.
Specifically:The SIM card data that second modem 21 receives base station transmission by the second radio-frequency module 22 are obtained When taking request, data acquisition request is sent in the first modem 11, by the feedback response of the first modem 11 SIM card data.
Wherein, the triggering mode of the SIM card data acquisition request includes two kinds:
A, the Active Registration LTE network of second modem 21, to trigger SIM card data acquisition request;
Whether B, base station side need authentication user legal, and authentication request is issued into second modem 21, are adjusted by second Modulator-demodulator 21 actively sends out SIM card data acquisition request.
Second modem 21 receives the SIM card data acquisition request that base station is sent by the second radio-frequency module 22 When, data acquisition request is sent in the first modem 11 by UART, by the first modem 11 according to data Obtain request and obtain data from virtual user identifying card 11A or entity user identification card 14, hereafter with the first modem 11 Data instance is obtained according to data acquisition request from virtual user identifying card 11A to be described in detail.
It is to be appreciated that include VCOS operating systems and memory module in virtual user identifying card 11A, wherein, institute VCOS operating systems are stated as the File Agent of memory module, please according to the data acquisition that first modem 11 is sent Ask and data are extracted from the memory module, the memory module is used for data storage.That is, in the embodiment of the present invention, first adjusts Modulator-demodulator 11 is can not to be interacted with the memory module inside virtual user identifying card 11A to obtain data, can only be passed through VCOS operating systems are obtained.Therefore, when first modem 11 sends data acquisition request to Virtual User During identification card 11A, the VCOS operating systems inside virtual user identifying card 11A parse the address letter of the data acquisition request Breath, then according to the address information, obtains the corresponding data of the address information from the memory module.As the VCOS Operating system is got from memory module after data, by the data feedback of acquisition to first modem 11.
First modem 11 is sent data by UART after the data of VCOS operating systems feedback are got To second modem 21, data are uploaded to base station by final second modem 21 by the second radio-frequency module 22, with Complete authentication.
COS (Chip Operating System, chip operating system) operating system that entity user identification card 14 is included And memory module, the mode of operation of acquisition data is consistent with the above from entity user identification card 14, and here is omitted.
It is understood that passing through the first preset interface and/or the second preset interface, you can the first process chip can be achieved Connection between 001 and second processing chip 002.
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 used for after the data processing of transmitting the first process chip 001 It is transmitted to eNodeB 101 (base station network), and for being transmitted to the first process chip after the data processing of transmitting eNodeB 101 001.Second radio-frequency module 22 is transmitted to (the base station nets of eNodeB 101 after being used for the data processing of transmitting second processing chip 002 Network), and for being transmitted to second processing chip 002 after the data processing of transmitting eNodeB 101.
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..
Virtual user identifying card 11A and entity user identification card 14 in mobile terminal 1 00 store different radio communications The associated user profile of standard.It should be appreciated that current mobile terminal only has two use inside a set of radio frequency, mobile terminal Family identification card can not be taken simultaneously using the relation that the set radio frequency is time-sharing multiplex.For example, in two Subscriber Identity Module standard-sized sheets When, a card can handle GSM calls, and another card can only handle the 4G network informations, and what which specific Subscriber Identity Module performs Network is planted, is not limited.Therefore current this framework of radio frequency double card time-sharing multiplex has only accomplished LTE+GSM (i.e. one user The corresponding technical standard of identification card 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 the first process chip 001 and second processing chip 002 by preset interface, because second processing chip 002 includes the Two modems 21 simultaneously connect the second radio-frequency module 22, and the second radio-frequency module 22 supports 4G networks.Therefore, mobile terminal 100 can possess double LTE functions by the first process chip 001 and second processing chip 002.
In the present embodiment, virtual user identifying card 11A and entity user identification card 14 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 14 is interacted with mobile terminal 1 00, mobile terminal 1 00 detect the Subscriber Identity Module exist with No signal is only in the instantaneous generation of start, and in the presence of start can't detect Subscriber Identity Module, mobile terminal 1 00 will be prompted to " insert Access customer identification card ".After mobile terminal 1 00 is started shooting, communication in 28 seconds is once, complete between mobile terminal 1 00 and Subscriber Identity Module Into the communication check (for example, Subscriber Identity Module whether in place etc.) of some fixations.
In an embodiment of the present invention, virtual user identifying card 11A and the carrying information of entity user identification card 14, 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 the first application chip 001 and the second application chip 002 are connected, Virtual User Identification card 11A can support LTE by the first modem 11 in mobile terminal 1 00, and entity user identification card 14 passes through Second modem 21 supports LTE;Or, virtual user identifying card 11A can support LTE by second modem 21, And entity user identification card 14 supports LTE by the first modem 11, to realize that mobile terminal 1 00 can support double LTE.
RPM15 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 RPM15, 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), RPM15 is used for determining the resting state of the system of mobile terminal 1 00, is specifically, Voting mechanisms of the RPM15 based on subsystems realizes that, when subsystems all throw dormancy ticket, RPM15 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, the Two process chips 002 can automatically wake up, but the first process chip 001 needs the first process chip 001 to wake up, to carry out data Transmission interaction.
In embodiments of the present invention, connected between the first process chip 001 and second processing chip 002 by preset interface In the case of, wake-up mode can be following three kinds:
1st, should to second by USB interface transmission detection bag when the first application processor 10 receives control signaling data With processor 20, to wake up the second application processor 20.
2nd, when second modem 21 receives user data, the second application processor 20 is waken up, by the second application Device 20 is managed by USB interface transmission detection bag to the first application processor 10, 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 processor by USB interface by the second application processor 20 10, 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.
In embodiments of the present invention, mobile terminal includes but is not limited to mobile phone, PC (Personal Computer, personal electricity Brain) or PAD (Personal Digital Assistant, personal digital assistant).
The hardware architecture diagram of Organization Chart and mobile terminal 1 00 based on above-mentioned LTE network, proposes the present invention's Each embodiment.
Reference picture 2, the present embodiment proposes a kind of mobile terminal, and the mobile terminal 1 00 is included based on preset interface connection The first process chip 001 and second processing chip 001, be connected with first process chip 001 the first radio-frequency module 12, And the second radio-frequency module 22 being connected with the second processing chip 002, first process chip 001 include first application Processor 10 is embedded with virtual user identifying card 11A the first modem 11, and is connected with the first modem 11 Entity user identification card 14, the second processing chip 002 include the second application processor 20 and second modem 21,
First process chip 001, during for being waken up, receiving second processing chip 002 and passing through the preset interface The packet of transmission;
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 the second processing chip 002, with The packet is resend to first process chip 001 for the second processing chip 002.
In the present embodiment, first process chip 001 is waken up, and is to receive second processing chip by preset interface 002 detection sent wraps to realize wake-up.Subsequently, identification of first process chip 001 to packet, is also to by default Interface to packet be identified.Because in the present embodiment, the first process chip 001 includes the first application processor 10 With the first modem 11, second processing chip 001 includes the second application processor 20 and second modem 21, and the Two application processors 20 and the first application processor 10 are connected by USB interface, the modulatedemodulate of second modem 21 and first Connected between tune device 11 by UART interface.Therefore, in the embodiment of the present invention, identification of first process chip 001 to packet, Two kinds can essentially be divided into:
1) number that 10 pair of second application processor 10 of the first application processor is sent by the first preset interface (USB interface) It is identified according to bag;
2) the first modem 11 is sent to second modem 21 by the second preset interface (UART interface) Packet is identified;
It is to be appreciated that the mode of two kinds of identification of data packets is consistent in the present invention, and follow-up acknowledgement mechanism feedback system Also consistent, only interface is different, illustrates infra for brief introduction, preferably the identification with the first application processor 10 to packet Exemplified by feedback.
Firstly, it is necessary to understand, the first process chip 001 in the mobile terminal 100 and second processing chip 002 are all After dormancy, if second processing chip 002 receives external signal by the second radio-frequency module 22, the second radio-frequency module 22 will be outer Portion's signal is transmitted into second modem 21 so that second modem 21 wakes up, and second modem 21 wakes up Afterwards, second modem 21 retransmits detection bag and wakes up the second application processor 20, so as to realize second processing chip 002 Wake-up.Now second modem 21 can also send detection bag by UART interface to wake up the first modem 11. After the wake-up of second processing chip 002, the second application processor 20 of second processing chip 002 can be sent by USB interface Detection wraps to wake up the first application processor 10 in the first process chip 001.
For the second application processor 20 of second processing chip 002, wrapped when sending detection to the first process chip After 001 the first application processor 10, the second application processor 20 thinks that the first application processor 10 has woken up, this When, and then the second application processor 20 can send first of the packet of user data or control signaling to mobile terminal 1 00 Application processor 10, to carry out follow-up data exchange process.
Similarly, for the second modem 21 of second processing chip 002, handled when sending detection bag to first After first modem 11 of chip 001, second modem 21 thinks that the first modem 11 has woken up, Now, second modem 21 understands the packet for and then sending SIM card authorization data to the first modem 11, to enter The follow-up data exchange process of row.
But in real process, after the second application processor 20 or the transmission detection bag of second modem 21, the One application processor 10 or the first modem 11 are not waken up at once, but need a period of time to be cut from resting state It is changed to wake-up states.Now, and if then the second application processor 20 or second modem 21 send packet, due to First application processor 10 or the first modem 11 do not wake up also completely, can cause in the packet that receives, front face Point contents lost, it is incomplete packet to cause the packet received, that is, residual bag.
To be best understood from, by taking application processor as an example, it is exemplified below:Second application processor of second processing chip 002 20 send packet to the first application processor 10 by USB interface, and the packet is 512 bytes, in preceding 36 bytes In transmission process, because the first application processor 10 of the first process chip 001 is not waken up also completely, in the 37th byte Real to wake up, now, the first application processor 10 can not receive preceding 36 bytes, then the first application processor 10 is received Packet be exactly residual bag, because the first application processor 10 is basic with regard to the None- identified packet, cause the first application processing Device 10 also cannot respond to the packet, causes the second application processor 20 slowly to reply, causes data transfer inaccurate.
Therefore, in the present embodiment, after the first process chip 001 is waken up, lead to if receiving second processing chip 002 The packet that the preset interface is sent is crossed, first the packet header of the packet of reception is identified, to determine the packet header Whether default packet header mark is carried.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 001 pair of first process chip is received is identified, and specially solves The packet is separated out, then the packet header of the packet to parsing is identified, to determine it is pre- whether the packet header carries If packet header mark, specific identification method is described in detail in embodiments below.
When the first process chip 001 identifies that packet header does not carry default packet header mark, send and retransmit message to described Second processing chip 002, so that the second processing chip 002 resends the packet to first process chip 001。
That is, when the first process chip 001 identifies that packet header does not carry default packet header mark, the number being currently received is illustrated Have occurred that contents lost according to bag, it is impossible to which the packet is identified, also can not feedback response packet, therefore, First process chip 001 is sent by preset interface retransmits message to the second processing chip 002, for described second Process chip 002 resends the packet to first process chip 001, is answered for example, the first process chip 001 is sent Message " err " is answered to second processing chip 002, the packet sent before informing second processing chip 002 is wrong, so as to second Process chip 002 resends the packet.In the present embodiment, the form of the message again is not limited, and can be one Short message such as " err " or " Retry " or a preset field, such as " 0001 ", set with specific reference to actual conditions.
Be the equal of when it is residual bag that the first process chip 001, which identifies packet, that is, to detect data in the present embodiment There is no carrying package labeling head in bag, now, a response err can be fed back to second processing chip 002, for example, at the first application Manage device 10 and response err is transmitted by the second application processor 20 by USB interface, now, the second application processor 20 is based on receiving The response err arrived, resends the packet to the first application processor 10, to complete the interaction of data by USB interface.
The mobile terminal that the present embodiment is proposed, the mobile terminal includes the first process chip connected based on preset interface The first radio-frequency module for being connected with second processing chip, with first process chip and connect with the second processing chip The second radio-frequency module connect, first process chip includes the first application processor, is embedded with the of virtual user identifying card One modem, and the entity user identification card being connected with the first modem, the second processing chip include the Two application processors and second modem, first process chip during for being waken up, receiving second processing chip and leading to Cross the packet that the preset interface is sent;The packet header of the packet of reception is identified, to determine that the packet header is It is no to carry default packet header mark;If the packet header does not carry default packet header mark, send and retransmit message to described the Two process chips, so that the second processing chip resends the packet to first process chip.This programme exists When the first process chip in mobile 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, second processing chip is notified to resend the packet, even if packet content is lost Lose, the first process chip can also notify second processing chip to resend the packet in time, timely respond to packet, improve The accuracy of data transfer.
Further, mobile terminal second embodiment of the present invention is proposed.
The difference of mobile terminal second embodiment and mobile terminal first embodiment is, first process chip 001 The packet header of the packet of reception is identified, to determine whether the packet header carries the default specific bag of packet header mark Include:
First process chip 001 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, the process chip 001 is received after packet, can use multithread analyzing The packet header of packet, i.e., parse first byte in packet header by thread, with determine the packet header the first byte whether be Preset field.Meanwhile, second byte in the packet header and the length of the 3rd byte are calculated by another thread, and judge described Whether length meets preparatory condition, and when first byte in the packet header is preset field, and the length meets preparatory condition, Determine 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, the process chip 001 is received after packet, first parses the first node in packet header, described to determine Whether first byte in packet header is preset field, when first byte in the packet header is preset field, just calculates the packet header The second byte and the 3rd byte length, and judge whether the length meets preparatory condition, and meet pre- in the length If condition, it is determined that the packet header carries default packet header mark.It should be noted that when the packet header the first byte not For preset field, now, the length of the second byte and the 3rd byte need not be just judged again, directly assert in packet header and do not carry packet header Mark.
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, mobile terminal 3rd embodiment of the present invention is proposed.
The difference of mobile terminal 3rd embodiment and mobile terminal first embodiment is, first process chip 001, It 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 process chip 001 receives packet after being waken up, the packet is first recognized Length, then obtain preset length value, the length of the packet of identification be compared with preset length value, with described in determining Whether the length of packet is more than preset length value, if the length of the packet is more than preset length value, first processing The packet header of the packet of reception is identified the ability of chip 001, if identifying that the length of the packet is less than or waited In 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 process chip 001 is waken up, first pass through packet length and judge the packet It is ack or data, if detecting, the packet is not greater than the corresponding length of 6 bytes, you can it is ack to confirm the packet, Now illustrate that second processing chip 002 does not send data also, therefore be not in above-mentioned packet drop, when detecting the data When wrapping length corresponding more than 6 bytes, the packet header of the packet can just be parsed.
It is appreciated that in the present embodiment, after reception of the data packet, the length of the first process chip 001 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, mobile terminal fourth embodiment of the present invention is proposed.
Mobile terminal fourth embodiment and the difference of mobile terminal first to 3rd embodiment are that described first handles core Piece 001, if being additionally operable to the packet header carries default packet header mark, sends confirmation message to the second processing chip 002, so that the second processing chip 002 continues to send other packets to first process chip 001.
I.e. in the present embodiment, if the first process chip 001 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 process chips 002 are fed back according to the first process chip 001, which is decided to continue with, gives out a contract for a project, and still resends number According to bag, specifically:
When it is effective packet that the first process chip 001, which identifies packet, that is, detect to take in packet Clocked with packet header, now, a response ok can be fed back to second processing chip 002, to notify second processing chip 002 to work as Before the packet that receives be complete packet, for example:First application processor 10 is transmitted response ok by USB data line To the second application processor 20, now, the response ok that the second application processor 20 feeds back according to the first application processor 10 passes through USB interface continues to send other packets to the first application processor 10, and operation is sent to complete packet.
In the present embodiment, identifying that the packet header carries default packet header mark, then sending confirmation message to described Second processing chip 002, so that the second processing chip 002 continues to send other packets to first process chip 001, so as to complete the transmitting procedure of data.
The present invention further provides a kind of packet identifying method.
Reference picture 3, Fig. 3 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, and the mobile terminal includes connecting based on preset interface The first process chip 001 and second processing chip 002 that connect, the first radio-frequency module being connected with first process chip 001 12 and the second radio-frequency module 22 for being connected with the second processing chip 002, first process chip 001 includes first Application processor 10, the first modem 11 for being embedded with virtual user identifying card 11A, and with the first modem 11 The entity user identification card 14 of connection, the second processing chip 002 includes the second application processor 20 and the second modulation /demodulation Device 21, methods described includes:
Step S10, when the first process chip 001 is waken up, receives second processing chip 002 and is sent out by the preset interface The packet sent;
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, sends and retransmits message to the second processing core Piece 002, so that the second processing chip 002 resends the packet to first process chip 001.
In the present embodiment, first process chip 001 is waken up, and is to receive second processing chip by preset interface 002 detection sent wraps to realize wake-up.Subsequently, identification of first process chip 001 to packet, is also to by default Interface to packet be identified.Because in the present embodiment, the first process chip 001 includes the first application processor 10 With the first modem 11, second processing chip 001 includes the second application processor 20 and second modem 21, and the Two application processors 20 and the first application processor 10 are connected by USB interface, the modulatedemodulate of second modem 21 and first Connected between tune device 11 by UART interface.Therefore, in the embodiment of the present invention, identification of first process chip 001 to packet, Two kinds can essentially be divided into:
1) number that 10 pair of second application processor 10 of the first application processor is sent by the first preset interface (USB interface) It is identified according to bag;
2) the first modem 11 is sent to second modem 21 by the second preset interface (UART interface) Packet is identified;
It is to be appreciated that the mode of two kinds of identification of data packets is consistent in the present invention, and follow-up acknowledgement mechanism feedback system Also consistent, only interface is different, illustrates infra for brief introduction, preferably the identification with the first application processor 10 to packet Exemplified by feedback.
Firstly, it is necessary to understand, the first process chip 001 in the mobile terminal 100 and second processing chip 002 are all After dormancy, if second processing chip 002 receives external signal by the second radio-frequency module 22, the second radio-frequency module 22 will be outer Portion's signal is transmitted into second modem 21 so that second modem 21 wakes up, and second modem 21 wakes up Afterwards, second modem 21 retransmits detection bag and wakes up the second application processor 20, so as to realize second processing chip 002 Wake-up.Now second modem 21 can also send detection bag by UART interface to wake up the first modem 11. After the wake-up of second processing chip 002, the second application processor 20 of second processing chip 002 can be sent by USB interface Detection wraps to wake up the first application processor 10 in the first process chip 001.
For the second application processor 20 of second processing chip 002, wrapped when sending detection to the first process chip After 001 the first application processor 10, the second application processor 20 thinks that the first application processor 10 has woken up, this When, and then the second application processor 20 can send first of the packet of user data or control signaling to mobile terminal 1 00 Application processor 10, to carry out follow-up data exchange process.
Similarly, for the second modem 21 of second processing chip 002, handled when sending detection bag to first After first modem 11 of chip 001, second modem 21 thinks that the first modem 11 has woken up, Now, second modem 21 understands the packet for and then sending SIM card authorization data to the first modem 11, to enter The follow-up data exchange process of row.
But in real process, after the second application processor 20 or the transmission detection bag of second modem 21, the One application processor 10 or the first modem 11 are not waken up at once, but need a period of time to be cut from resting state It is changed to wake-up states.Now, and if then the second application processor 20 or second modem 21 send packet, due to First application processor 10 or the first modem 11 do not wake up also completely, can cause in the packet that receives, front face Point contents lost, it is incomplete packet to cause the packet received, that is, residual bag.
To be best understood from, by taking application processor as an example, it is exemplified below:Second application processor of second processing chip 002 20 send packet to the first application processor 10 by USB interface, and the packet is 512 bytes, in preceding 36 bytes In transmission process, because the first application processor 10 of the first process chip 001 is not waken up also completely, in the 37th byte Real to wake up, now, the first application processor 10 can not receive preceding 36 bytes, then the first application processor 10 is received Packet be exactly residual bag, because the first application processor 10 is basic with regard to the None- identified packet, cause the first application processing Device 10 also cannot respond to the packet, causes the second application processor 20 slowly to reply, causes data transfer inaccurate.
Therefore, in the present embodiment, after the first process chip 001 is waken up, lead to if receiving second processing chip 002 The packet that the preset interface is sent is crossed, first the packet header of the packet of reception is identified, to determine the packet header Whether default packet header mark is carried.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 001 pair of first process chip is received is identified, and specially solves The packet is separated out, then the packet header of the packet to parsing is identified, to determine it is pre- whether the packet header carries If packet header mark, specific identification method is described in detail in embodiments below.
When the first process chip 001 identifies that packet header does not carry default packet header mark, send and retransmit message to described Second processing chip 002, so that the second processing chip 002 resends the packet to first process chip 001。
That is, when the first process chip 001 identifies that packet header does not carry default packet header mark, the number being currently received is illustrated Have occurred that contents lost according to bag, it is impossible to which the packet is identified, also can not feedback response packet, therefore, First process chip 001 is sent by preset interface retransmits message to the second processing chip 002, for described second Process chip 002 resends the packet to first process chip 001, is answered for example, the first process chip 001 is sent Message " err " is answered to second processing chip 002, the packet sent before informing second processing chip 002 is wrong, so as to second Process chip 002 resends the packet.In the present embodiment, the form of the message again is not limited, and can be one Short message such as " err " or " Retry " or a preset field, such as " 0001 ", set with specific reference to actual conditions.
Be the equal of when it is residual bag that the first process chip 001, which identifies packet, that is, to detect data in the present embodiment There is no carrying package labeling head in bag, now, a response err can be fed back to second processing chip 002, for example, at the first application Manage device 10 and response err is transmitted by the second application processor 20 by USB interface, now, the second application processor 20 is based on receiving The response err arrived, resends the packet to the first application processor 10, to complete the interaction of data by USB interface.
The packet identifying method that the present embodiment is proposed, when the first process chip is waken up, receives second processing chip and leads to Cross the packet that the preset interface is sent;The packet header of the packet of reception is identified, to determine that the packet header is It is no to carry default packet header mark;If the packet header does not carry default packet header mark, send and retransmit message to described the Two process chips, so that the second processing chip resends the packet to first process chip.This programme exists When the first process chip in mobile 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, second processing chip is notified to resend the packet, even if packet content is lost Lose, the first process chip can also notify second processing chip to resend the packet in time, timely respond to packet, improve The accuracy of data transfer.
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 4, The step S20 includes:
Step S21, first process chip 001 parses 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, the process chip 001 is received after packet, can use multithread analyzing The packet header of packet, i.e., parse first byte in packet header by thread, with determine the packet header the first byte whether be Preset field.Meanwhile, second byte in the packet header and the length of the 3rd byte are calculated by another thread, and judge described Whether length meets preparatory condition, and when first byte in the packet header is preset field, and the length meets preparatory condition, Determine 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, the process chip 001 is received after packet, first parses the first node in packet header, described to determine Whether first byte in packet header is preset field, when first byte in the packet header is preset field, just calculates the packet header The second byte and the 3rd byte length, and judge whether the length meets preparatory condition, and meet pre- in the length If condition, it is determined that the packet header carries default packet header mark.It should be noted that when the packet header the first byte not For preset field, now, the length of the second byte and the 3rd byte need not be just judged again, directly assert in packet header and do not carry packet header Mark.
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 process chip 001 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 process chip 001 receives packet after being waken up, the packet is first recognized Length, then obtain preset length value, the length of the packet of identification be compared with preset length value, with described in determining Whether the length of packet is more than preset length value, if the length of the packet is more than preset length value, first processing The packet header of the packet of reception is identified the ability of chip 001, if identifying that the length of the packet is less than or waited In 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 process chip 001 is waken up, first pass through packet length and judge the packet It is ack or data, if detecting, the packet is not greater than the corresponding length of 6 bytes, you can it is ack to confirm the packet, Now illustrate that second processing chip 002 does not send data also, therefore be not in above-mentioned packet drop, when detecting the data When wrapping length corresponding more than 6 bytes, the packet header of the packet can just be parsed.
It is appreciated that in the present embodiment, after reception of the data packet, the length of the first process chip 001 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. 5, after the step S20, methods described also includes:
Step S40, if the packet header carries default packet header mark, first process chip 001, which is sent, to be confirmed Message gives the second processing chip 002, so that the second processing chip 002 continues to send other packets to described first Process chip 001.
I.e. in the present embodiment, if the first process chip 001 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 process chips 002 are fed back according to the first process chip 001, which is decided to continue with, gives out a contract for a project, and still resends number According to bag, specifically:
When it is effective packet that the first process chip 001, which identifies packet, that is, detect to take in packet Clocked with packet header, now, a response ok can be fed back to second processing chip 002, to notify second processing chip 002 to work as Before the packet that receives be complete packet, for example:First application processor 10 is transmitted response ok by USB data line To the second application processor 20, now, the response ok that the second application processor 20 feeds back according to the first application processor 10 passes through USB interface continues to send other packets to the first application processor 10, and operation is sent to complete packet.
In the present embodiment, identifying that the packet header carries default packet header mark, then sending confirmation message to described Second processing chip 002, so that the second processing chip 002 continues to send other packets to first process chip 001, 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 mobile terminal, it is characterised in that the mobile terminal includes the first process chip connected based on preset interface The first radio-frequency module for being connected with second processing chip, with first process chip and connect with the second processing chip The second radio-frequency module connect, first process chip includes the first application processor, is embedded with the of virtual user identifying card One modem, and the entity user identification card being connected with the first modem, the second processing chip include the Two application processors and second modem,
First process chip, during for being waken up, receives the data that second processing chip is sent by the preset interface Bag;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, then sends and retransmit message to the second processing chip, at described second Reason chip resends the packet to first process chip.
2. mobile terminal as claimed in claim 1, it is characterised in that know in the packet header of the packet of described pair of reception Not, specifically included with determining whether the packet header carries default packet header mark:
Whether first process chip parses first byte in the packet header, be default with the first byte for determining the packet header Field;And/or second byte in the packet header and the length of the 3rd byte are calculated, and judge whether the length meets default bar Part;
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. mobile terminal as claimed in claim 2, it is characterised in that the preparatory condition is:The length is the data The length of bag and the difference of preset value.
4. mobile terminal as claimed in claim 1, it is characterised in that first process chip, is additionally operable to recognize the number According to the length of bag;
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 mobile terminal as described in claim any one of 1-4, it is characterised in that first process chip, if being additionally operable to The packet header carries default packet header mark, then confirmation message is sent to the second processing chip, at described second Manage chip and continue to send other packets to first process chip.
6. a kind of packet identifying method, it is characterised in that applied to mobile terminal, the mobile terminal includes connecing based on default The first process chip and second processing chip of mouthful connection, the first radio-frequency module for being connected with first process chip and The second radio-frequency module being connected with the second processing chip, first process chip includes the first application processor, embedded There are the first modem of virtual user identifying card, and the entity user identification card being connected with the first modem, institute Stating second processing chip includes the second application processor and second modem, and methods described includes:
When first process chip is waken up, the packet that second processing chip 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 the second processing chip, for described Second processing chip resends the packet to first process chip.
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 process chip parses first byte in the packet header, be default with the first byte for determining the packet header Field;And/or second byte in the packet header and the length of the 3rd byte are calculated, and judge whether the length meets default bar Part;
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 process chip 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 process chip sends confirmation message at described second Chip is managed, so that the second processing chip continues to send other packets to first process chip.
CN201710207638.6A 2017-03-30 2017-03-30 Mobile terminal and data packet identification method Active CN107086992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710207638.6A CN107086992B (en) 2017-03-30 2017-03-30 Mobile terminal and data packet identification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710207638.6A CN107086992B (en) 2017-03-30 2017-03-30 Mobile terminal and data packet identification method

Publications (2)

Publication Number Publication Date
CN107086992A true CN107086992A (en) 2017-08-22
CN107086992B CN107086992B (en) 2020-08-21

Family

ID=59614448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710207638.6A Active CN107086992B (en) 2017-03-30 2017-03-30 Mobile terminal and data packet identification method

Country Status (1)

Country Link
CN (1) CN107086992B (en)

Citations (7)

* 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
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 (7)

* 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
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
CN107086992B (en) 2020-08-21

Similar Documents

Publication Publication Date Title
CN107466070A (en) Data transmission system, method, external equipment and mobile terminal
CN107124737A (en) Mobile terminal and data pack transmission method
CN107087269A (en) Mobile terminal and its data transmission method
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
CN107086992A (en) Mobile terminal and packet identifying method
CN107086990A (en) Mobile terminal and packet identifying method
CN107086986A (en) Mobile terminal and packet identifying method
CN107071167A (en) Mobile terminal and packet identifying method
CN107087057A (en) Data transmission system and method
CN107086993A (en) Identification of data packets system and method
CN107182084A (en) Mobile terminal and data pack transmission method
CN107086989A (en) Identification of data packets system and method
CN107070904A (en) Identification of data packets system and method
CN107396400A (en) Data transmission system, method, external equipment and mobile terminal
CN107086988A (en) Identification of data packets system and method
CN107070903A (en) Identification of data packets system and method
CN107087062A (en) Data transmission system and method
CN107086994A (en) Identification of data packets system and method
CN107182087A (en) Data packet transmission system and method
CN106953984A (en) Data transmission system and method
CN106961438A (en) Identification of data packets system and method
CN107040529A (en) Identification of data packets system and method
CN107070598A (en) Identification of data packets 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
GR01 Patent grant
GR01 Patent grant