CN107086990B - Mobile terminal and data packet identification method - Google Patents

Mobile terminal and data packet identification method Download PDF

Info

Publication number
CN107086990B
CN107086990B CN201710206712.2A CN201710206712A CN107086990B CN 107086990 B CN107086990 B CN 107086990B CN 201710206712 A CN201710206712 A CN 201710206712A CN 107086990 B CN107086990 B CN 107086990B
Authority
CN
China
Prior art keywords
processing chip
preset
packet
data packet
packet header
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.)
Active
Application number
CN201710206712.2A
Other languages
Chinese (zh)
Other versions
CN107086990A (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 Boya blockchain Research Institute Co.,Ltd.
Original Assignee
Nanjing Boya Blockchain Research Institute 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 Nanjing Boya Blockchain Research Institute Co ltd filed Critical Nanjing Boya Blockchain Research Institute Co ltd
Priority to CN201710206712.2A priority Critical patent/CN107086990B/en
Publication of CN107086990A publication Critical patent/CN107086990A/en
Application granted granted Critical
Publication of CN107086990B publication Critical patent/CN107086990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • 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 mobile terminal and a data packet identification method, wherein the mobile terminal comprises a first processing chip and a second processing chip which are connected based on a preset interface, a first radio frequency module connected with the first processing chip and a second radio frequency module connected with the second processing chip, the first processing chip comprises a first application processor embedded with a virtual user identification card and a first modem connected with an entity user identification card, and the second processing chip comprises a second application processor and a second modem; when the first processing chip is awakened, receiving a data packet sent by the second processing chip; identifying a packet header of a received data packet to determine whether the packet header carries a preset packet header identifier; and if not, sending a retransmission message to the second processing chip for the second processing chip to resend the data packet. The invention informs the second processing chip to retransmit the data packet in time when receiving the residual packet, and responds to the data packet in time, thereby improving the accuracy of data transmission.

Description

Mobile terminal and data packet identification method
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a mobile terminal and a data packet identification method.
Background
With the development of Mobile communication technology, more and more Mobile terminals such as smart phones have dual-card dual-pass functions, so that users can establish data service connection while implementing standby of voice service, and Mobile terminals generally have two subscriber identity cards and modems connected to the two subscriber identity cards, respectively, one subscriber identity card (SIM1) can use 4G (the 4 Generation Mobile communication technology, fourth Generation Mobile communication technology), such as L TE (L on Term Evolution, long Term Evolution) network, and the other subscriber identity card (SIM2) can use only 2G (2-Generation wireless telephone technology, second Generation Mobile communication specification) or 3G (3 Generation, third Generation Mobile communication technology) network, and the reason why SIM2 cannot use 4G is mainly two pieces of Mobile terminals when the two pieces of Mobile terminals use only one set of radio frequency, the set of radio frequency cards is used, the relationship of the two pieces of Mobile phones is simultaneously, and the Mobile terminals can use only one piece of data transmission network, and the Mobile terminals cannot use only one piece of data transmission network because of the two pieces of Mobile terminals can use only 2G (2G) or one Mobile terminal.
However, when the two processing chips are arranged in the mobile terminal, if the first processing chip is not awakened yet, the second processing chip sends a data packet, and because the first processing chip is not completely awakened yet, the content sent in front of the data packet is lost, the data packet received by the first processing chip is a residual packet, so that the first processing chip cannot respond to the data packet.
Disclosure of Invention
The invention mainly aims to provide a mobile terminal and a data packet identification method, and aims to solve the technical problem that a data packet cannot respond easily if the content of the data packet is lost after the data packet is transmitted.
In order to achieve the above object, the present invention provides a mobile terminal, which includes a first processing chip and a second processing chip connected based on a predetermined interface, a first rf module connected to the first processing chip, and a second rf module connected to the second processing chip, wherein the first processing chip includes a first application processor embedded with a virtual subscriber identity card and a first modem connected to a physical subscriber identity card, the second processing chip includes a second application processor and a second modem,
the first processing chip is used for receiving a data packet sent by the second processing chip through the preset interface when being awakened; identifying the packet header of the received data packet to determine whether the packet header carries a preset packet header identifier; and if the packet header does not carry a preset packet header identifier, sending a retransmission message to the second processing chip so that the second processing chip can resend the data packet to the first processing chip.
Optionally, the identifying the received packet header of the data packet to determine whether the packet header carries a preset packet header identifier specifically includes:
the first processing chip analyzes the first byte of the packet header to determine whether the first byte of the packet header is a preset field; and/or calculating the lengths of a second byte and a third byte of the packet header, and judging whether the lengths meet preset conditions or not;
and if the first byte of the packet header is a preset field and/or the length meets a preset condition, determining that the packet header carries a preset packet header identifier.
Optionally, the preset conditions are: the length is the difference between the length of the data packet and a preset value.
Optionally, the first processing chip is further configured to identify a length of the data packet;
and when the length of the data packet is greater than a preset length value, identifying the received packet header of the data packet.
Optionally, the first processing chip is further configured to send a confirmation message to the second processing chip if the packet header carries a preset packet header identifier, so that the second processing chip continues to send other data packets to the first processing chip.
In addition, to achieve the above object, the present invention further provides a data packet identification method applied to a mobile terminal, where the mobile terminal includes a first processing chip and a second processing chip connected based on a preset interface, a first radio frequency module connected to the first processing chip, and a second radio frequency module connected to the second processing chip, the first processing chip includes a first application processor embedded with a virtual subscriber identity card and a first modem connected to a physical subscriber identity card, and the second processing chip includes a second application processor and a second modem, and the method includes:
when the first processing chip is awakened, receiving a data packet sent by the second processing chip through the preset interface;
identifying the packet header of the received data packet to determine whether the packet header carries a preset packet header identifier;
and if the packet header does not carry a preset packet header identifier, sending a retransmission message to the second processing chip so that the second processing chip can resend the data packet to the first processing chip.
Optionally, the step of identifying the header of the received data packet to determine whether the header carries a preset header identifier includes:
the first processing chip analyzes the first byte of the packet header to determine whether the first byte of the packet header is a preset field; and/or calculating the lengths of a second byte and a third byte of the packet header, and judging whether the lengths meet preset conditions or not;
and if the first byte of the packet header is a preset field and/or the length meets a preset condition, determining that the packet header carries a preset packet header identifier.
Optionally, the preset conditions are: the length is the difference between the length of the data packet and a preset value.
Optionally, before the step of identifying the header of the received data packet to determine whether the header carries a preset header identifier, the method further includes:
the first processing chip identifies the length of the data packet;
and when the length of the data packet is greater than a preset length value, executing the step of identifying the header of the received data packet.
Optionally, after the step of identifying the header of the received data packet to determine whether the header carries a preset header identifier, the method further includes:
and if the packet header carries a preset packet header identifier, the first processing chip sends a confirmation message to the second processing chip so that the second processing chip can continue to send other data packets to the first processing chip.
The mobile terminal comprises a first processing chip and a second processing chip which are connected based on a preset interface, a first radio frequency module connected with the first processing chip, and a second radio frequency module connected with the second processing chip, wherein the first processing chip comprises a first application processor embedded with a virtual user identification card and a first modem connected with a physical user identification card, the second processing chip comprises a second application processor and a second modem, and the first processing chip is used for receiving a data packet sent by the second processing chip through the preset interface when being awakened; identifying the packet header of the received data packet to determine whether the packet header carries a preset packet header identifier; and if the packet header does not carry a preset packet header identifier, sending a retransmission message to the second processing chip so that the second processing chip can resend the data packet to the first processing chip. According to the scheme, when the first processing chip in the mobile terminal is awakened, the packet header of the received data packet is firstly identified, and when the packet header is identified not to carry the preset packet header identification, the second processing chip is informed to resend the data packet, so that even if the content of the data packet is lost, the first processing chip can timely inform the second processing chip to resend the data packet, the data packet is responded in time, and the accuracy of data transmission is improved.
Drawings
Fig. 1 is a diagram illustrating an L TE network architecture according to an embodiment of the invention;
fig. 2 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a first embodiment of a packet identification method according to the present invention;
fig. 4 is a schematic view of a detailed flow of identifying a packet header of a received data packet to determine whether the packet header carries a preset packet header identifier according to the present invention;
fig. 5 is a flowchart illustrating a fourth embodiment of a data packet identification method according to the present invention.
The implementation, functional features and advantages of the present invention will be described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should be noted that the embodiments and features of the embodiments of the present invention may be arbitrarily combined with each other without conflict.
For a more clear understanding of the technical features, objects and effects of the present invention, embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
Fig. 1 is a diagram of an L TE Network architecture according to an embodiment of the invention, the L TE Network architecture according to an embodiment of the invention includes one or more mobile terminals (UE) 100, an Evolved UMTS terrestrial Radio Access Network (Evolved UMTS terrestrial Radio Access Network) (not numbered), an Evolved Packet Core (EPC) (not numbered), a Home Subscriber Server (HSS)107, a Network (e.g., the internet) (not numbered), and a circuit switched system (not numbered).
The E-UTRAN includes evolved node Bs (eNodeBs) 101 and other eNodeBs 102. The eNodeB101 provides protocol terminations towards the user plane and the control plane of the mobile terminal 100. eNodeB101 may be connected to other enodebs via an X2 interface. The eNodeB101 may also be referred to as a base station, a base transceiver station, a radio base station, a radio transceiver, a transceiver function, a basic service set, an extended service set, or some other suitable terminology. The eNodeB101 provides an access point for the mobile terminal 100 to the EPC.
eNodeB101 connects to the EPC through the S1 interface. The EPC includes a mobility management entity (EEM)104, other mobility management entities 106, a serving gateway 103, and a Packet Data Network (PDN) gateway 105. The mobility management entity 104 is a control node that handles signaling between the mobile terminal 100 and the EPC. The mobility management entity 104 provides bearer and connection management. All user IP packets are passed through the serving gateway 103, the serving gateway 103 itself being connected to the PDN gateway 105. The PDN gateway 105 provides UE IP address allocation as well as other functions. The PDN gateway 105 is connected to a network, e.g. the internet.
The circuit switched system includes an interactive solution module (IWS)108, a Mobile Switching Center (MSC)109, a base station 110, and a mobile station 111. In one aspect, the circuit switched System may communicate with an EPS (Evolved Packet System) through an IWS and an MME (Mobility management entity).
Fig. 2 is a schematic diagram of a hardware structure of the mobile terminal 100 according to an embodiment of the present invention.
In the embodiment of the present invention, the mobile terminal 100 includes a first processing chip 001 and a second processing chip 002, a first rf module 12 connected to the first processing chip 001, and a second rf module 22 connected to the second processing chip 002. The first processing chip 001 and the second processing chip 002 are connected through a preset interface. The preset interface comprises a first preset interface and a second preset interface. The first processing chip 001 includes a first Application Processor (Application Processor, denoted by AP 1) 10 in which a virtual user identification card 10A is embedded, a first modem 11(modem1), a physical user identification card 14, and an RPM (Resource Power Manager) 15. The second processing chip 002 includes a second application processor 20 and a second modem (modem2) 21.
The Virtual subscriber identity card 10A includes a storage module and a Virtual Chip Operating System (VCOS), where the storage module may be an EFS (encryption File System), and the storage module is used to store authentication data of the Virtual subscriber identity card 10A. The physical Subscriber Identity card 14 is a SIM (Subscriber Identity Module) card.
The internal framework of the first application processor 10 and the second application processor 20 includes an application layer, a framework layer, and the like, and can handle complex logical operations and perform task allocation, and the like. In the embodiment of the present invention, the application processor refers to an Android operating system and various apks (Android packages) based on the Android operating system.
In the embodiment of the present invention, the first application processor 10 and the second application processor 20 are connected through a first preset interface, provide an interactive interface for a user, and transmit an operation instruction input by the user (for example, an operation instruction input by the user through the user interface and related to starting a video call) to the first modem 11 or the second modem 21, so as to define and transfer data between the two application processors, for example, perform sleep, wake-up, synchronous control of the two application processors, control of a chip start-up sequence during power on and power off, and the like. The first predetermined interface is a Universal Serial Bus (USB). It should be understood that in the embodiment of the present invention, the USB data line multiplexes two data channels, which are respectively used for the interaction between the user data and the control signaling data between the first application processor 10 and the second application processor 20, that is, the data transmitted by the first application processor 10 and the second application processor 20 through the USB data line includes the above two data. The user data comprises data generated by surfing the Internet, pictures and chatting information data; the control signaling data comprises control data of startup and shutdown, control data of flight mode of the switch and control data of display state signals.
In this embodiment, The first application processor 10 and The second application processor 20 perform data interaction by using an OTG (On-The-Go) technology. Through the OTG technology, the first modem 11 in the mobile terminal 100 can access the eNodeB101 through the SIM card parameters in the virtual subscriber identity card 10A, and the second modem 21 can access the eNodeB101 through the SIM card parameters of the physical subscriber identity card 14; or the first modem 11 accesses the eNodeB101 through the SIM card parameters in the physical subscriber identity card 14 and the second modem 21 accesses the eNodeB101 through the SIM card parameters of the virtual subscriber identity card 10A. The SIM card parameters include, but are not limited to, SIM card authentication data.
The first modem 11 and the second modem 21 are connected through a second preset interface. In the embodiment of the present invention, the second predetermined interface is a UART (Universal Asynchronous Receiver/Transmitter). The UART is used for the transmission of SIM card parameters between the first modem 11 and the second modem 21.
Specifically, the method comprises the following steps: when the second modem 21 receives a SIM card data acquisition request sent by the base station through the second radio frequency module 22, the data acquisition request is transmitted to the first modem 11, and the first modem 11 feeds back the response SIM card data.
The triggering mode of the SIM card data acquisition request comprises two modes:
A. the second modem 21 actively registers L the TE network to trigger a SIM card data acquisition request;
B. the base station side needs to authenticate whether the user is legal or not, and sends an authentication request to the second modem 21, and the second modem 21 actively sends an SIM card data acquisition request.
When the second modem 21 receives a SIM card data acquisition request sent by the base station through the second rf module 22, the data acquisition request is transmitted to the first modem 11 through the UART, and the first modem 11 acquires data from the virtual subscriber identity card 10A or the physical subscriber identity card 14 according to the data acquisition request, which will be described in detail below by taking an example that the first modem 11 acquires data from the virtual subscriber identity card 10A according to the data acquisition request.
It should be understood that the virtual subscriber identity card 10A includes a VCOS operating system and a file system, wherein the VCOS operating system acts as a file agent of a memory module from which data is extracted according to a data acquisition request sent by the first modem 11, and the memory module is used for storing data. That is, in the embodiment of the present invention, the first modem 11 cannot interact with the memory module inside the virtual subscriber identity card 10A to obtain data, and can only obtain data through the VCOS operating system. Therefore, when the first modem 11 sends a data acquisition request to the virtual subscriber identity card 10A, the VCOS operating system inside the virtual subscriber identity card 10A parses out the address information of the data acquisition request, and then acquires the data corresponding to the address information from the storage module according to the address information. After the VCOS operating system acquires data from the memory module, the acquired data is fed back to the first modem 11.
After acquiring the data fed back by the VCOS operating system, the first modem 11 sends the data to the second modem 21 through the UART, and finally the second modem 21 uploads the data to the base station through the second rf module 22 to complete authentication.
The operation mode of acquiring data from the entity user identification card 14 by using the COS (Chip Operating System) Operating System and the storage module included in the entity user identification card 14 is the same as described above, and details thereof are omitted here.
It is understood that the connection between the first processing chip 001 and the second processing chip 002 can be realized through the first preset interface and/or the second preset interface.
The first modem 11 and the second modem 21 include protocol stacks of various network systems for network interaction, where the protocol stacks include protocol codes specified in Communication standards such as L TE (L ong Term Evolution), long Term Evolution (lte)/WCDMA (W ideal and Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA)/GSM (Global system for Mobile Communication), Global system for Mobile Communication (GSM)/TD-SCDMA (Time Division on-Synchronous Code Division Multiple Access, Synchronous Code Division Multiple Access), CDMA (C Code Division Multiple Access, Code Division Multiple Access)/EDGE (Enhanced Data Rate for G SM Evolution, Enhanced Data Rate GSM Evolution), and the like, and the Mobile terminal 100 interacts with an operator network through a protocol, i.e., performs Data traffic, Access to internet, a Voice L TE (Voice L) call, or a Circuit for a CS (Circuit) call, and the like, and is used for the second modem 21 to call the second modem 21 and the second modem 21 to further perform Data exchange.
In the embodiment of the present invention, the first rf module 12 is configured to process data transmitted by the first processing chip 001 and transmit the processed data to the eNodeB101 (base station network), and is configured to process data transmitted by the eNodeB101 and transmit the processed data to the first processing chip 001. The second rf module 22 is configured to process data transmitted by the second processing chip 002 and then transmit the processed data to the eNodeB101 (base station network), and is configured to process data transmitted by the eNodeB101 and then transmit the processed data to the second processing chip 002.
The Radio access technologies related to the first Radio frequency module 12 and the second Radio frequency module 22 may include L TE, GSM, GPRS (General Packet Radio Service), CDMA, EDGE, W L AN (Wireless L environmental Area Networks, Wireless local Area Networks), CDMA-2000, TD-SCDMA, WCDMA, WIFI (Wireless fidelity), and so on.
For example, when two subscriber identification cards are fully opened, one card can process a GSM call, the other card can only process 4G network information, and specifically which subscriber identification card executes which network, without limitation, the current architecture of radio frequency dual card time division multiplexing only achieves L TE + GSM (that is, the technical standard corresponding to one subscriber identification card is L TE, and the technical standard corresponding to the other subscriber identification card is GSM).
That is to say, although the conventional mobile terminal 100 can support a dual-user identification card, when the mobile terminal 100 registers a network, two user identification cards support networks with different technical standards, one supports 2G or 3G, and the other supports 4G, so that the internet traffic speed is slower during the use of the mobile terminal 100, in the present invention, the mobile terminal 100 is connected to the first processing chip 001 and the second processing chip 002 through a preset interface, and the second processing chip 002 includes the second modem 21 and is connected to the second rf module 22, and the second rf module 22 supports a 4G network, so the mobile terminal 100 can have dual L TE functions through the first processing chip 001 and the second processing chip 002.
In the present embodiment, the virtual subscriber identity card 10A and the physical subscriber identity card 14 are used to provide relevant data required for mobile communication services (CS voice service, PS data service, and PS voice service), and store subscriber information, short messages, perform authentication algorithms, generate encryption keys, and the like therein.
When the physical subscriber identity card 14 interacts with the mobile terminal 100, a signal for the mobile terminal 100 to detect the presence of the subscriber identity card is generated only at the instant of power-on, and when the presence of the subscriber identity card is not detected at power-on, the mobile terminal 100 prompts "insert subscriber identity card". After the mobile terminal 100 is powered on, the mobile terminal 100 and the subscriber identity card are communicated once in 28 seconds, completing some fixed communication checks (e.g., whether the subscriber identity card is in place, etc.).
In the embodiment of the present invention, the virtual subscriber identity card 10A and the physical subscriber identity card 14 carry information, and return corresponding card parameters according to an external request, and perform authentication operation on the network, the radio access technology involved in the first radio frequency module 12 and the second radio frequency module 22 is L TE., when the first application chip 001 and the second application chip 002 are connected, the virtual subscriber identity card 10A can support L TE through the first modem 11 in the mobile terminal 100, and the physical subscriber identity card 14 can support L TE through the second modem 21, or the virtual subscriber identity card 10A can support L TE through the second modem 21, and the physical subscriber identity card 14 can support L TE through the first modem 11, so that the mobile terminal 100 can support dual L TE.
RPM15 in mobile terminal 100 is used to manage various resources, including clock resources, bus resources, PMIC (PowerManagement IC, power management integrated circuit, i.e. voltage of each chip), DDR (memory allocation), and interrupt of sleep wake-up of management chip and expiration time of application processor wake-up, each subsystem of mobile terminal 100 applies for resources to RPM15 when resources are needed, each subsystem includes first application processor 10, first modem 11, PRONTO (WIFI/bluetooth, NFC (Near Field Communication, etc.), L PASS (L power audio subsystem), RPM15 is used to determine sleep state of mobile terminal 100 system, specifically, RPM15 is implemented based on a voting mechanism of each subsystem, RPM15 may make the entire system of mobile terminal 100 sleep when each subsystem throws a sleep ticket, after the entire system of mobile terminal 100, the sleep process is restarted, but the second RPM wake-up process may be executed automatically by transmitting data to the second chip 002, and the second chip is executed as the second chip is required to perform an interactive data transmission.
In the embodiment of the present invention, when the first processing chip 001 and the second processing chip 002 are connected to each other through the predetermined interface, the wake-up mode may be as follows:
1. when the first application processor 10 receives the control signaling data, it transmits a probe packet to the second application processor 20 through the USB interface to wake up the second application processor 20.
2. When the second modem 21 receives the user data, it wakes up the second application processor 20, and the second application processor 20 transmits the probe packet to the first application processor 10 through the USB interface to wake up the first application processor 10.
3. The second modem 21 periodically searches for a paging request to actively activate itself, wakes up the second application processor 20 if the paging request is received, and sends a probe packet to the first application processor 10 through the USB interface by the second application processor 20 to wake up the second application processor 20.
Furthermore, the second modem 21 may wake itself up periodically to perform handshake interaction with the base station when the mobile terminal 100 performs location update, without waking up the first application processor 10.
In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a PC (Personal Computer), or a PAD (Personal Digital Assistant).
Various embodiments of the present invention are presented based on the L TE network architecture diagram and the hardware architecture diagram of the mobile terminal 100.
Referring to fig. 2, the present embodiment provides a mobile terminal, where the mobile terminal 100 includes a first processing chip 001 and a second processing chip 001 connected based on a preset interface, a first rf module 12 connected to the first processing chip 001, and a second rf module 22 connected to the second processing chip 002, the first processing chip 001 includes a first application processor 10 embedded with a virtual subscriber identity card 10A and a first modem 11 connected to a physical subscriber identity card 14, the second processing chip 002 includes a second application processor 20 and a second modem 21,
the first processing chip 001 is configured to receive a data packet sent by the second processing chip 002 through the preset interface when being awakened;
identifying the packet header of the received data packet to determine whether the packet header carries a preset packet header identifier;
if the packet header does not carry a preset packet header identifier, a retransmission message is sent to the second processing chip 002, so that the second processing chip 002 resends the data packet to the first processing chip 001.
In this embodiment, the first processing chip 001 is awakened by receiving the probe packet sent by the second processing chip 002 through the preset interface to implement awakening. Subsequently, the first processing chip 001 identifies the data packet, and also identifies the data packet received through the preset interface. In this embodiment, the first processing chip 001 includes the first application processor 10 and the first modem 11, the second processing chip 001 includes the second application processor 20 and the second modem 21, and the second application processor 20 and the first application processor 10 are connected through the USB interface, and the second modem 21 and the first modem 11 are connected through the UART interface. Therefore, in the embodiment of the present invention, the identification of the data packet by the first processing chip 001 may be actually divided into two types:
1) the first application processor 10 identifies a data packet sent by the second application processor 10 through a first preset interface (USB interface);
2) the first modem 11 identifies a data packet sent by the second modem 21 through a second preset interface (UART interface);
it should be noted that, in the present invention, two data packet identification manners are consistent, and the subsequent response mechanism feedback manner is also consistent, which is only different interfaces, and for the sake of brief description, it is preferable to take the identification and feedback of the data packet by the first application processor 10 as an example.
First, it should be understood that, after the first processing chip 001 and the second processing chip 002 in the mobile terminal 100 are both in sleep, if the second processing chip 002 receives an external signal through the second rf module 22, the second rf module 22 transmits the external signal to the second modem 21, so that the second modem 21 wakes up, and after the second modem 21 wakes up, the second modem 21 sends a probe packet to wake up the second application processor 20, so as to wake up the second processing chip 002. The second modem 21 also sends a probe packet to wake up the first modem 11 through the UART interface. After the second processing chip 002 wakes up, the second application processor 20 of the second processing chip 002 sends a probe packet through the USB interface to wake up the first application processor 10 in the first processing chip 001.
For the second application processor 20 of the second processing chip 002, after sending the probe packet to the first application processor 10 of the first processing chip 001, the second application processor 20 considers that the first application processor 10 has been woken up, and at this time, the second application processor 20 will send the data packet of the user data or the control signaling to the first application processor 10 of the mobile terminal 100 for the subsequent data interaction process.
Similarly, for the second modem 21 of the second processing chip 002, after sending the probe packet to the first modem 11 of the first processing chip 001, the second modem 21 considers that the first modem 11 has been woken up, and then the second modem 21 sends the data packet of the SIM card authentication data to the first modem 11 for the subsequent data exchange process.
However, in practice, after the second application processor 20 or the second modem 21 sends the probe packet, the first application processor 10 or the first modem 11 does not wake up immediately, but needs a period of time to switch from the sleep state to the wake-up state. At this time, if the second application processor 20 or the second modem 21 sends a data packet next, since the first application processor 10 or the first modem 11 has not yet been completely woken up, the content of the previous part in the received data packet is lost, so that the received data packet is an incomplete data packet, that is, a residual packet.
For better understanding, taking an application processor as an example, the following is exemplified: the second application processor 20 of the second processing chip 002 sends a data packet to the first application processor 10 through the USB interface, where the data packet is 512 bytes, and in the sending process of the first 36 bytes, because the first application processor 10 of the first processing chip 001 is not yet completely woken up, the data packet is really woken up at the 37 th byte, at this time, the first application processor 10 cannot receive the first 36 bytes, and thus the data packet received by the first application processor 10 is a residual packet, and because the first application processor 10 cannot recognize the data packet at all, the first application processor 10 cannot respond to the data packet, so that the second application processor 20 cannot reply at a later time, and the data transmission is inaccurate.
Therefore, in this embodiment, after the first processing chip 001 is awakened, if a data packet sent by the second processing chip 002 through the preset interface is received, the header of the received data packet is first identified to determine whether the header carries a preset header identifier. It should be understood that the packet header carries a plurality of bytes, and the specific number is not limited.
In this embodiment, the first processing chip 001 identifies the packet header of the received data packet, specifically, parses the data packet, and then identifies the packet header of the parsed data packet to determine whether the packet header carries a preset packet header identifier, where a specific identification manner is described in detail in the following embodiments.
When the first processing chip 001 recognizes that the packet header does not carry a preset packet header identifier, a retransmission message is sent to the second processing chip 002, so that the second processing chip 002 resends the data packet to the first processing chip 001.
That is, when the first processing chip 001 recognizes that the packet header does not carry the preset packet header identifier, it indicates that the content of the currently received data packet is lost, the data packet cannot be recognized, and a data packet that is responded to cannot be fed back, so the first processing chip 001 sends a retransmission message to the second processing chip 002 through the preset interface, so that the second processing chip 002 resends the data packet to the first processing chip 001, for example, the first processing chip 001 sends a response message "err" to the second processing chip 002, and informs the second processing chip 002 that the previously sent data packet has an error, so that the second processing chip 002 resends the data packet. In this embodiment, the form of the re-message is not limited, and may be a short message such as "err" or "Retry", or may be a preset field such as "0001", which is specifically set according to the actual situation.
In this embodiment, when the first processing chip 001 recognizes that the data packet is a residual packet, that is, it is detected that the data packet does not carry the packet header flag, at this time, a response err is fed back to the second processing chip 002, for example, the first application processor 10 transmits the response err to the second application processor 20 through the USB interface, and at this time, the second application processor 20 retransmits the data packet to the first application processor 10 through the USB interface based on the received response err, so as to complete data interaction.
The mobile terminal comprises a first processing chip and a second processing chip which are connected based on a preset interface, a first radio frequency module connected with the first processing chip, and a second radio frequency module connected with the second processing chip, wherein the first processing chip comprises a first application processor embedded with a virtual user identification card and a first modem connected with a physical user identification card, the second processing chip comprises a second application processor and a second modem, and the first processing chip is used for receiving a data packet sent by the second processing chip through the preset interface when being awakened; identifying the packet header of the received data packet to determine whether the packet header carries a preset packet header identifier; and if the packet header does not carry a preset packet header identifier, sending a retransmission message to the second processing chip so that the second processing chip can resend the data packet to the first processing chip. According to the scheme, when the first processing chip in the mobile terminal is awakened, the packet header of the received data packet is firstly identified, and when the packet header is identified not to carry the preset packet header identification, the second processing chip is informed to resend the data packet, so that even if the content of the data packet is lost, the first processing chip can timely inform the second processing chip to resend the data packet, the data packet is responded in time, and the accuracy of data transmission is improved.
Further, a second embodiment of the mobile terminal of the present invention is presented.
The difference between the second embodiment of the mobile terminal and the first embodiment of the mobile terminal is that the identifying, by the first processing chip 001, the packet header of the received data packet to determine whether the packet header carries a preset packet header identifier specifically includes:
the first processing chip 001 analyzes the first byte of the packet header to determine whether the first byte of the packet header is a preset field; and/or calculating the lengths of a second byte and a third byte of the packet header, and judging whether the lengths meet preset conditions or not;
and if the first byte of the packet header is a preset field and/or the length meets a preset condition, determining that the packet header carries a preset packet header identifier.
In this embodiment, the preset condition is preferably: the length is the difference between the length of the data packet and a preset value. That is, after calculating the lengths of the second byte and the third byte of the packet header, determining whether the lengths satisfy a preset condition, specifically: calculating the length of the data packet, subtracting a preset value from the length of the data packet to obtain a difference value between the length of the data packet and the preset value, wherein the preset value is not limited, for example, 1, after the difference value is obtained, comparing the lengths of the second byte and the third byte with the difference value to determine whether the lengths are equal to the difference value, and if so, indicating that the lengths of the second byte and the third byte meet the condition.
Generally, the first byte of the data packet corresponding to the user data or the control signaling data is a preset field, the preset field is not limited, for example, the field "0X 01", and the 2 nd byte and the 3rd byte together represent a length, and the value is the length of the entire data packet minus a preset value, for example, the preset value is 1. Therefore, the first application processor 10 identifies the header of the received data packet to determine whether the header carries a preset header identifier, which is actually to determine whether the first byte of the header is a preset field and whether the length of the 2 nd and 3rd bytes is a length minus a preset value of the entire data packet. If the first byte of the packet header is identified as the preset field 0X01, and the values of the 2 nd and 3rd bytes are the length of the entire data packet minus 1, at this time, the first application processor 10 considers that the data packet carries the packet header mark, and considers that the data packet is a valid data packet.
In this embodiment, three embodiments are included:
1) analyzing a first byte of the packet header to determine whether the first byte of the packet header is a preset field; and if the first byte of the packet header is a preset field, determining that the packet header carries a preset packet header identifier.
2) Calculating the lengths of a second byte and a third byte of the packet header, and judging whether the lengths meet preset conditions; and if the length meets a preset condition, determining that the packet header carries a preset packet header identifier.
3) Analyzing a first byte of the packet header to determine whether the first byte of the packet header is a preset field; calculating the lengths of a second byte and a third byte of the packet header, and judging whether the lengths meet preset conditions or not; and if the first byte of the packet header is a preset field and the length meets a preset condition, determining that the packet header carries a preset packet header identifier.
In the embodiment of the present invention, any one of the three manners described above may be set according to specific needs, but in order to improve the accuracy of packet identification, it is preferable to adopt the third manner.
In the third embodiment, after the processing chip 001 receives the data packet, the packet header of the data packet may be analyzed in multiple threads, that is, the first byte of the packet header is analyzed by one thread, so as to determine whether the first byte of the packet header is the preset field. Meanwhile, calculating the lengths of a second byte and a third byte of the packet header through another thread, judging whether the lengths meet preset conditions, and determining that the packet header carries a preset packet header identifier when the first byte of the packet header is a preset field and the lengths meet the preset conditions.
It should be understood that, the parallel analysis is performed on each byte in the packet header by adopting multiple threads, and the analysis does not need to be performed one by one, thereby shortening the analysis time and improving the analysis efficiency.
Or after the processing chip 001 receives the data packet, the first node of the packet header is analyzed to determine whether the first byte of the packet header is a preset field, when the first byte of the packet header is the preset field, the lengths of the second byte and the third byte of the packet header are calculated, whether the lengths meet a preset condition is determined, and if the lengths meet the preset condition, the packet header is determined to carry a preset packet header identifier. It should be noted that, when the first byte of the packet header is not a preset field, it is not necessary to determine the lengths of the second byte and the third byte again, and it is only necessary to directly determine that the packet header does not carry the packet header identifier.
It can be understood that by the front and back judgment mode, the second byte and the third byte can be judged again under the condition that the first byte meets the requirement, and the situation that the first byte does not meet the requirement is prevented, resources are also spent for judgment, so that the intelligence of data packet analysis is improved, and the waste of resources is also avoided.
Further, a third embodiment of the mobile terminal of the present invention is provided.
The mobile terminal third embodiment differs from the mobile terminal first embodiment in that the first processing chip 001 is further configured to identify the length of the data packet;
and when the length of the data packet is greater than a preset length value, identifying the received packet header of the data packet.
In this embodiment, when the first processing chip 001 is awakened and receives a data packet, the length of the data packet is identified first, then a preset length value is obtained, the identified length of the data packet is compared with the preset length value to determine whether the length of the data packet is greater than the preset length value, if the length of the data packet is greater than the preset length value, the first processing chip 001 identifies the received packet header of the data packet, and if the length of the data packet is identified to be less than or equal to the preset length value, the received packet header of the data packet may not be identified.
It should be noted here that the length of the data packet (data) corresponding to the user data or the control signaling data is generally greater than the length corresponding to 6 bytes, and the length of the data packet (ack) corresponding to the response message is generally 4 or 6 bytes.
Therefore, when the first processing chip 001 wakes up and receives a data packet, it first determines whether the data packet is ack or data according to the packet length, and if it is detected that the data packet is not longer than the length corresponding to 6 bytes, it can be determined that the data packet is ack, and at this time, it is described that the second processing chip 002 has not transmitted data yet, so that the above-mentioned packet loss situation does not occur, and when it is detected that the data packet is longer than the length corresponding to 6 bytes, the packet header of the data packet is analyzed.
It can be understood that, in this embodiment, after receiving the data packet, the first processing chip 001 analyzes the length of the data packet to determine the type of the data packet, so as to determine whether to analyze the packet header of the data packet, and prevent all the data packets from being analyzed, thereby improving the intelligence of data packet identification.
Further, a fourth embodiment of the mobile terminal of the present invention is provided.
The difference between the fourth embodiment of the mobile terminal and the first to third embodiments of the mobile terminal is that the first processing chip 001 is further configured to send an acknowledgement message to the second processing chip 002 if the packet header carries a preset packet header identifier, so that the second processing chip 002 continues to send other data packets to the first processing chip 001.
That is, in this embodiment, if the first processing chip 001 recognizes that the packet header does not have the packet header identifier, at this time, the data packet is considered to be a residual packet, and after the data packet is detected to be a residual packet, the data response mechanism is adopted for feedback, so that the second processing chip 002 determines to continue to send the packet or resend the data packet according to the data response mechanism fed back by the first processing chip 001, specifically:
when the first processing chip 001 identifies that the data packet is a valid data packet, that is, when it is detected that the data packet carries the header mark, at this time, a response ok is fed back to the second processing chip 002 to notify the second processing chip 002 that the currently received data packet is a complete data packet, for example: the first application processor 10 transmits the response ok to the second application processor 20 through the USB data line, and at this time, the second application processor 20 continues to transmit other data packets to the first application processor 10 through the USB interface according to the response ok fed back by the first application processor 10, so as to complete the data packet transmission operation.
In this embodiment, when recognizing that the packet header carries a preset packet header identifier, a confirmation message is sent to the second processing chip 002, so that the second processing chip 002 continues to send other data packets to the first processing chip 001, thereby completing the data transmission process.
The invention further provides a data packet identification method.
Referring to fig. 3, fig. 3 is a flowchart illustrating a packet identification method according to a preferred embodiment of the invention.
While the present embodiment provides an embodiment of a packet identification method, it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown.
In the present invention, a data packet identification method is applied to a mobile terminal, the mobile terminal includes a first processing chip 001 and a second processing chip 002 connected based on a preset interface, a first radio frequency module 12 connected to the first processing chip 001, and a second radio frequency module 22 connected to the second processing chip 002, the first processing chip 001 includes a first application processor 10 embedded with a virtual subscriber identity card 10A and a first modem 11 connected to a physical subscriber identity card 14, the second processing chip 002 includes a second application processor 20 and a second modem 21, the method includes:
step S10, when the first processing chip 001 is awakened, receiving a data packet sent by the second processing chip 002 through the preset interface;
step S20, identifying the header of the received data packet to determine whether the header carries a preset header identifier;
in step S30, if the packet header does not carry a preset packet header identifier, a retransmission message is sent to the second processing chip 002, so that the second processing chip 002 resends the data packet to the first processing chip 001.
In this embodiment, the first processing chip 001 is awakened by receiving the probe packet sent by the second processing chip 002 through the preset interface to implement awakening. Subsequently, the first processing chip 001 identifies the data packet, and also identifies the data packet received through the preset interface. In this embodiment, the first processing chip 001 includes the first application processor 10 and the first modem 11, the second processing chip 001 includes the second application processor 20 and the second modem 21, and the second application processor 20 and the first application processor 10 are connected through the USB interface, and the second modem 21 and the first modem 11 are connected through the UART interface. Therefore, in the embodiment of the present invention, the identification of the data packet by the first processing chip 001 may be actually divided into two types:
1) the first application processor 10 identifies a data packet sent by the second application processor 10 through a first preset interface (USB interface);
2) the first modem 11 identifies a data packet sent by the second modem 21 through a second preset interface (UART interface);
it should be noted that, in the present invention, two data packet identification manners are consistent, and the subsequent response mechanism feedback manner is also consistent, which is only different interfaces, and for the sake of brief description, it is preferable to take the identification and feedback of the data packet by the first application processor 10 as an example.
First, it should be understood that, after the first processing chip 001 and the second processing chip 002 in the mobile terminal 100 are both in sleep, if the second processing chip 002 receives an external signal through the second rf module 22, the second rf module 22 transmits the external signal to the second modem 21, so that the second modem 21 wakes up, and after the second modem 21 wakes up, the second modem 21 sends a probe packet to wake up the second application processor 20, so as to wake up the second processing chip 002. The second modem 21 also sends a probe packet to wake up the first modem 11 through the UART interface. After the second processing chip 002 wakes up, the second application processor 20 of the second processing chip 002 sends a probe packet through the USB interface to wake up the first application processor 10 in the first processing chip 001.
For the second application processor 20 of the second processing chip 002, after sending the probe packet to the first application processor 10 of the first processing chip 001, the second application processor 20 considers that the first application processor 10 has been woken up, and at this time, the second application processor 20 will send the data packet of the user data or the control signaling to the first application processor 10 of the mobile terminal 100 for the subsequent data interaction process.
Similarly, for the second modem 21 of the second processing chip 002, after sending the probe packet to the first modem 11 of the first processing chip 001, the second modem 21 considers that the first modem 11 has been woken up, and then the second modem 21 sends the data packet of the SIM card authentication data to the first modem 11 for the subsequent data exchange process.
However, in practice, after the second application processor 20 or the second modem 21 sends the probe packet, the first application processor 10 or the first modem 11 does not wake up immediately, but needs a period of time to switch from the sleep state to the wake-up state. At this time, if the second application processor 20 or the second modem 21 sends a data packet next, since the first application processor 10 or the first modem 11 has not yet been completely woken up, the content of the previous part in the received data packet is lost, so that the received data packet is an incomplete data packet, that is, a residual packet.
For better understanding, taking an application processor as an example, the following is exemplified: the second application processor 20 of the second processing chip 002 sends a data packet to the first application processor 10 through the USB interface, where the data packet is 512 bytes, and in the sending process of the first 36 bytes, because the first application processor 10 of the first processing chip 001 is not yet completely woken up, the data packet is really woken up at the 37 th byte, at this time, the first application processor 10 cannot receive the first 36 bytes, and thus the data packet received by the first application processor 10 is a residual packet, and because the first application processor 10 cannot recognize the data packet at all, the first application processor 10 cannot respond to the data packet, so that the second application processor 20 cannot reply at a later time, and the data transmission is inaccurate.
Therefore, in this embodiment, after the first processing chip 001 is awakened, if a data packet sent by the second processing chip 002 through the preset interface is received, the header of the received data packet is first identified to determine whether the header carries a preset header identifier. It should be understood that the packet header carries a plurality of bytes, and the specific number is not limited.
In this embodiment, the first processing chip 001 identifies the packet header of the received data packet, specifically, parses the data packet, and then identifies the packet header of the parsed data packet to determine whether the packet header carries a preset packet header identifier, where a specific identification manner is described in detail in the following embodiments.
When the first processing chip 001 recognizes that the packet header does not carry a preset packet header identifier, a retransmission message is sent to the second processing chip 002, so that the second processing chip 002 resends the data packet to the first processing chip 001.
That is, when the first processing chip 001 recognizes that the packet header does not carry the preset packet header identifier, it indicates that the content of the currently received data packet is lost, the data packet cannot be recognized, and a data packet that is responded to cannot be fed back, so the first processing chip 001 sends a retransmission message to the second processing chip 002 through the preset interface, so that the second processing chip 002 resends the data packet to the first processing chip 001, for example, the first processing chip 001 sends a response message "err" to the second processing chip 002, and informs the second processing chip 002 that the previously sent data packet has an error, so that the second processing chip 002 resends the data packet. In this embodiment, the form of the re-message is not limited, and may be a short message such as "err" or "Retry", or may be a preset field such as "0001", which is specifically set according to the actual situation.
In this embodiment, when the first processing chip 001 recognizes that the data packet is a residual packet, that is, it is detected that the data packet does not carry the packet header flag, at this time, a response err is fed back to the second processing chip 002, for example, the first application processor 10 transmits the response err to the second application processor 20 through the USB interface, and at this time, the second application processor 20 retransmits the data packet to the first application processor 10 through the USB interface based on the received response err, so as to complete data interaction.
According to the data packet identification method provided by the invention, when the first processing chip is awakened, the data packet sent by the second processing chip through the preset interface is received; identifying the packet header of the received data packet to determine whether the packet header carries a preset packet header identifier; and if the packet header does not carry a preset packet header identifier, sending a retransmission message to the second processing chip so that the second processing chip can resend the data packet to the first processing chip. According to the scheme, when the first processing chip in the mobile terminal is awakened, the packet header of the received data packet is firstly identified, and when the packet header is identified not to carry the preset packet header identification, the second processing chip is informed to resend the data packet, so that even if the content of the data packet is lost, the first processing chip can timely inform the second processing chip to resend the data packet, the data packet is responded in time, and the accuracy of data transmission is improved.
Further, a second embodiment of the packet identification method of the present invention is provided.
The second embodiment of the packet identifying method is different from the first embodiment of the packet identifying method in that, referring to fig. 4, the step S20 includes:
step S21, the first processing chip 001 parses the first byte of the packet header to determine whether the first byte of the packet header is a preset field; and/or calculating the lengths of a second byte and a third byte of the packet header, and judging whether the lengths meet preset conditions or not;
step S22, if the first byte of the packet header is a preset field and/or the length meets a preset condition, determining that the packet header carries a preset packet header identifier.
In this embodiment, the preset condition is preferably: the length is the difference between the length of the data packet and a preset value. That is, after calculating the lengths of the second byte and the third byte of the packet header, determining whether the lengths satisfy a preset condition, specifically: calculating the length of the data packet, subtracting a preset value from the length of the data packet to obtain a difference value between the length of the data packet and the preset value, wherein the preset value is not limited, for example, 1, after the difference value is obtained, comparing the lengths of the second byte and the third byte with the difference value to determine whether the lengths are equal to the difference value, and if so, indicating that the lengths of the second byte and the third byte meet the condition.
Generally, the first byte of the data packet corresponding to the user data or the control signaling data is a preset field, the preset field is not limited, for example, the field "0X 01", and the 2 nd byte and the 3rd byte together represent a length, and the value is the length of the entire data packet minus a preset value, for example, the preset value is 1. Therefore, the first application processor 10 identifies the header of the received data packet to determine whether the header carries a preset header identifier, which is actually to determine whether the first byte of the header is a preset field and whether the length of the 2 nd and 3rd bytes is a length minus a preset value of the entire data packet. If the first byte of the packet header is identified as the preset field 0X01, and the values of the 2 nd and 3rd bytes are the length of the entire data packet minus 1, at this time, the first application processor 10 considers that the data packet carries the packet header mark, and considers that the data packet is a valid data packet.
In this embodiment, three embodiments are included:
1) analyzing a first byte of the packet header to determine whether the first byte of the packet header is a preset field; and if the first byte of the packet header is a preset field, determining that the packet header carries a preset packet header identifier.
2) Calculating the lengths of a second byte and a third byte of the packet header, and judging whether the lengths meet preset conditions; and if the length meets a preset condition, determining that the packet header carries a preset packet header identifier.
3) Analyzing a first byte of the packet header to determine whether the first byte of the packet header is a preset field; calculating the lengths of a second byte and a third byte of the packet header, and judging whether the lengths meet preset conditions or not; and if the first byte of the packet header is a preset field and the length meets a preset condition, determining that the packet header carries a preset packet header identifier.
In the embodiment of the present invention, any one of the three manners described above may be set according to specific needs, but in order to improve the accuracy of packet identification, it is preferable to adopt the third manner.
In the third embodiment, after the processing chip 001 receives the data packet, the packet header of the data packet may be analyzed in multiple threads, that is, the first byte of the packet header is analyzed by one thread, so as to determine whether the first byte of the packet header is the preset field. Meanwhile, calculating the lengths of a second byte and a third byte of the packet header through another thread, judging whether the lengths meet preset conditions, and determining that the packet header carries a preset packet header identifier when the first byte of the packet header is a preset field and the lengths meet the preset conditions.
It should be understood that, the parallel analysis is performed on each byte in the packet header by adopting multiple threads, and the analysis does not need to be performed one by one, thereby shortening the analysis time and improving the analysis efficiency.
Or after the processing chip 001 receives the data packet, the first node of the packet header is analyzed to determine whether the first byte of the packet header is a preset field, when the first byte of the packet header is the preset field, the lengths of the second byte and the third byte of the packet header are calculated, whether the lengths meet a preset condition is determined, and if the lengths meet the preset condition, the packet header is determined to carry a preset packet header identifier. It should be noted that, when the first byte of the packet header is not a preset field, it is not necessary to determine the lengths of the second byte and the third byte again, and it is only necessary to directly determine that the packet header does not carry the packet header identifier.
It can be understood that by the front and back judgment mode, the second byte and the third byte can be judged again under the condition that the first byte meets the requirement, and the situation that the first byte does not meet the requirement is prevented, resources are also spent for judgment, so that the intelligence of data packet analysis is improved, and the waste of resources is also avoided.
Further, a third embodiment of the packet identification method of the present invention is provided.
The third embodiment of the packet identifying method differs from the first embodiment of the packet identifying method in that, before the step S20, the method further includes:
step a, the first processing chip 001 identifies the length of the data packet;
and B, when the length of the data packet is greater than a preset length value, the step of identifying the packet header of the received data packet is executed.
In this embodiment, when the first processing chip 001 is awakened and receives a data packet, the length of the data packet is identified first, then a preset length value is obtained, the identified length of the data packet is compared with the preset length value to determine whether the length of the data packet is greater than the preset length value, if the length of the data packet is greater than the preset length value, the first processing chip 001 identifies the received packet header of the data packet, and if the length of the data packet is identified to be less than or equal to the preset length value, the received packet header of the data packet may not be identified.
It should be noted here that the length of the data packet (data) corresponding to the user data or the control signaling data is generally greater than the length corresponding to 6 bytes, and the length of the data packet (ack) corresponding to the response message is generally 4 or 6 bytes.
Therefore, when the first processing chip 001 wakes up and receives a data packet, it first determines whether the data packet is ack or data according to the packet length, and if it is detected that the data packet is not longer than the length corresponding to 6 bytes, it can be determined that the data packet is ack, and at this time, it is described that the second processing chip 002 has not transmitted data yet, so that the above-mentioned packet loss situation does not occur, and when it is detected that the data packet is longer than the length corresponding to 6 bytes, the packet header of the data packet is analyzed.
It can be understood that, in this embodiment, after receiving the data packet, the first processing chip 001 analyzes the length of the data packet to determine the type of the data packet, so as to determine whether to analyze the packet header of the data packet, and prevent all the data packets from being analyzed, thereby improving the intelligence of data packet identification.
Further, a fourth embodiment of the packet identification method of the present invention is provided.
The fourth embodiment of the packet identifying method differs from the first to third embodiments of the packet identifying method in that, referring to fig. 5, after the step S20, the method further includes:
step S40, if the packet header carries a preset packet header identifier, the first processing chip 001 sends an acknowledgement message to the second processing chip 002, so that the second processing chip 002 continues to send other data packets to the first processing chip 001.
That is, in this embodiment, if the first processing chip 001 recognizes that the packet header does not have the packet header identifier, at this time, the data packet is considered to be a residual packet, and after the data packet is detected to be a residual packet, the data response mechanism is adopted for feedback, so that the second processing chip 002 determines to continue to send the packet or resend the data packet according to the data response mechanism fed back by the first processing chip 001, specifically:
when the first processing chip 001 identifies that the data packet is a valid data packet, that is, when it is detected that the data packet carries the header mark, at this time, a response ok is fed back to the second processing chip 002 to notify the second processing chip 002 that the currently received data packet is a complete data packet, for example: the first application processor 10 transmits the response ok to the second application processor 20 through the USB data line, and at this time, the second application processor 20 continues to transmit other data packets to the first application processor 10 through the USB interface according to the response ok fed back by the first application processor 10, so as to complete the data packet transmission operation.
In this embodiment, when recognizing that the packet header carries a preset packet header identifier, a confirmation message is sent to the second processing chip 002, so that the second processing chip 002 continues to send other data packets to the first processing chip 001, thereby completing the data transmission process.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A mobile terminal is characterized in that the mobile terminal comprises a first processing chip and a second processing chip which are connected based on a preset interface, a first radio frequency module connected with the first processing chip, and a second radio frequency module connected with the second processing chip, the first processing chip comprises a first application processor embedded with a virtual user identification card and a first modem connected with a physical user identification card, the second processing chip comprises a second application processor and a second modem,
the first processing chip is awakened when receiving the detection packet sent by the second processing chip through the preset interface, and receives the data packet sent by the second processing chip through the preset interface; the first processing chip analyzes a first byte of a packet header to determine whether the first byte of the packet header is a preset field, and/or calculates the lengths of a second byte and a third byte of the packet header, and judges whether the lengths meet a preset condition; if the first byte of the packet header is a preset field and/or the length meets a preset condition, determining that the packet header carries a preset packet header identifier, wherein the preset condition is that the length is a difference value between the length of the data packet and a preset value; and if the packet header does not carry a preset packet header identifier, sending a retransmission message to the second processing chip so that the second processing chip can resend the data packet to the first processing chip.
2. The mobile terminal of claim 1, wherein the first processing chip is further configured to identify a length of the data packet;
and when the length of the data packet is greater than a preset length value, identifying the received packet header of the data packet.
3. The mobile terminal of any of claims 1-2, wherein the first processing chip is further configured to send an acknowledgement message to the second processing chip if the packet header carries a preset packet header identifier, so that the second processing chip continues to send other data packets to the first processing chip.
4. A data packet identification method is applied to a mobile terminal, the mobile terminal comprises a first processing chip and a second processing chip which are connected based on a preset interface, a first radio frequency module connected with the first processing chip, and a second radio frequency module connected with the second processing chip, the first processing chip comprises a first application processor embedded with a virtual user identification card and a first modem connected with a physical user identification card, and the second processing chip comprises a second application processor and a second modem, the method comprises the following steps:
when receiving a detection packet sent by the second processing chip through the preset interface, the first processing chip is awakened, and a data packet sent by the second processing chip through the preset interface is received;
the first processing chip analyzes a first byte of a packet header to determine whether the first byte of the packet header is a preset field; and/or calculating the lengths of a second byte and a third byte of the packet header, and judging whether the lengths meet preset conditions or not;
if the first byte of the packet header is a preset field and/or the length meets a preset condition, determining that the packet header carries a preset packet header identifier, wherein the preset condition is that the length is a difference value between the length of the data packet and a preset value;
and if the packet header does not carry a preset packet header identifier, sending a retransmission message to the second processing chip so that the second processing chip can resend the data packet to the first processing chip.
5. The method as claimed in claim 4, wherein before the step of identifying the header of the received data packet to determine whether the header carries a preset header identifier, the method further comprises:
the first processing chip identifies the length of the data packet;
and when the length of the data packet is greater than a preset length value, executing the step of identifying the header of the received data packet.
6. The method according to any one of claims 4 to 5, wherein after the step of identifying the header of the received data packet to determine whether the header carries a preset header identifier, the method further comprises:
and if the packet header carries a preset packet header identifier, the first processing chip sends a confirmation message to the second processing chip so that the second processing chip can continue to send other data packets to the first processing chip.
CN201710206712.2A 2017-03-30 2017-03-30 Mobile terminal and data packet identification method Active CN107086990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710206712.2A CN107086990B (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
CN201710206712.2A CN107086990B (en) 2017-03-30 2017-03-30 Mobile terminal and data packet identification method

Publications (2)

Publication Number Publication Date
CN107086990A CN107086990A (en) 2017-08-22
CN107086990B true CN107086990B (en) 2020-08-07

Family

ID=59615053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710206712.2A Active CN107086990B (en) 2017-03-30 2017-03-30 Mobile terminal and data packet identification method

Country Status (1)

Country Link
CN (1) CN107086990B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532668A (en) * 2013-10-12 2014-01-22 成都阜特科技股份有限公司 Method for ensuring integrity and correctness of TCP (transmission control protocol) communication data
CN105893304A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Terminal supporting dual network data transmission and realization method thereof

Family Cites Families (5)

* 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
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
US9706377B2 (en) * 2015-09-22 2017-07-11 Qualcomm Incorporated Emergency message support with dynamic priorities in dual subscriber identity module dual standby devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532668A (en) * 2013-10-12 2014-01-22 成都阜特科技股份有限公司 Method for ensuring integrity and correctness of TCP (transmission control protocol) communication data
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
国外知名企业最新宽带无线通信产品与方案;吴瑞红等;《中国安防》;20130801;全文 *

Also Published As

Publication number Publication date
CN107086990A (en) 2017-08-22

Similar Documents

Publication Publication Date Title
CN107087269B (en) Mobile terminal and data transmission method thereof
CN107086990B (en) Mobile terminal and data packet identification method
CN107071167B (en) Mobile terminal and data packet identification method
CN107086992B (en) Mobile terminal and data packet identification method
CN107086986B (en) Mobile terminal and data packet identification method
CN106961438B (en) Data packet identification system and method
CN107070904B (en) Data packet identification system and method
CN107086989B (en) Data packet identification system and method
CN107086994B (en) Data packet identification system and method
CN107070598B (en) Data packet identification system and method
CN107086993B (en) Data packet identification system and method
CN107086987B (en) Data packet identification system and method
CN107040529B (en) Data packet identification system and method
CN107086988B (en) Data packet identification system and method
CN107070903B (en) Data packet identification system and method
CN106953984B (en) Data transmission system and method
CN107086991B (en) Data packet identification system and method
CN107087062B (en) Data transmission system and method
CN107087057B (en) Data transmission system and method
CN107094317B (en) Data transmission system and method
CN107087064B (en) Mobile terminal and data transmission method thereof
CN107094316B (en) Mobile terminal and data transmission method thereof
CN107018560B (en) Data transmission system and method
CN106961719B (en) Data transmission system and method
CN106900044B (en) Mobile terminal and dormancy control method thereof

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: 210036, 301 Hanzhoung Avenue, Gulou District, Jiangsu, Nanjing

Applicant after: Nanjing Boya blockchain Research Institute 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