CN107087269B - Mobile terminal and data transmission method thereof - Google Patents

Mobile terminal and data transmission method thereof Download PDF

Info

Publication number
CN107087269B
CN107087269B CN201710206683.XA CN201710206683A CN107087269B CN 107087269 B CN107087269 B CN 107087269B CN 201710206683 A CN201710206683 A CN 201710206683A CN 107087269 B CN107087269 B CN 107087269B
Authority
CN
China
Prior art keywords
processing chip
timer
data packet
mobile terminal
value
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
CN201710206683.XA
Other languages
Chinese (zh)
Other versions
CN107087269A (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 CN201710206683.XA priority Critical patent/CN107087269B/en
Publication of CN107087269A publication Critical patent/CN107087269A/en
Application granted granted Critical
Publication of CN107087269B publication Critical patent/CN107087269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04W8/205Transfer to or from user equipment or user record carrier
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a mobile terminal and a data transmission method thereof, wherein the mobile terminal comprises a first processing chip and a second processing chip which are connected through a preset interface, the first processing chip comprises a first application processor embedded with a virtual user identification card, a first modem connected with an entity user identification card and a first timer, and the second processing chip comprises a second application processor, a second timer and a second modem; when the second processing chip in the awakening state detects a data sending instruction and detects that a data packet in the sending state does not exist in the preset interface, initializing a second timer; and when the value of the second timer is equal to or longer than the first preset time, the second processing chip sends the data packet to be sent to the first processing chip in the awakening state through the preset interface. The invention improves the accuracy of identifying the received data packet by the two processing chips of the mobile terminal in the data transmission process.

Description

Mobile terminal and data transmission method thereof
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a mobile terminal and a data transmission method thereof.
Background
With the development of mobile communication technology, more and more mobile terminals such as smart phones have a dual-card dual-pass function, so that a user can establish a data service link while realizing the standby of a voice service. An existing Mobile terminal may implement two SIM (Subscriber Identity Module) cards to access the internet at the same time, but if one SIM card is provided with 4G (the 4th Generation Mobile Communication Technology, fourth Generation Mobile Communication Technology), such as LTE (Long Term Evolution), the other SIM card can only be provided with 3G (3rd Generation, third Generation Mobile Communication Technology) network or 2G (2-Generation wireless telephone Technology, second Generation Mobile Communication Technology specification), that is, the two SIM cards cannot simultaneously use the 4G network. When two cards in the mobile terminal are fully opened, only one card can use the 4G network, and the other card can only use the 2G or 3G network, so that the efficiency of data transmission in the mobile terminal is low. If two SIM cards are to use the 4G network simultaneously, two modems are required, and only one modem is present in the mobile terminal.
Therefore, in order to enable the two SIM cards in the mobile terminal to simultaneously support dual LTE, so as to improve data transmission efficiency, two processing chips are built in the mobile terminal, each processing chip has a corresponding modem, so that the two SIM cards of the mobile terminal can correspond to different modems, thereby implementing dual LTE communication functions.
However, when two processing chips are built in the mobile terminal, if the speed of transmitting the data packet between the two processing chips is too fast, one of the processing chips will recognize a plurality of data packets sent by the other processing chip as one data packet, resulting in a situation that a recognition error occurs in data interaction between the two processing chips of the mobile terminal.
Disclosure of Invention
The invention mainly aims to provide a mobile terminal and a data transmission method thereof, and aims to solve the technical problem that identification errors occur in data interaction between two processing chips of the mobile terminal in the process that the mobile terminal realizes a double LTE communication function through the two processing chips.
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 via a predetermined interface, wherein the first processing chip includes a first application processor embedded with a virtual subscriber identity card, a first modem connected to a physical subscriber identity card, and a first timer, and the second processing chip includes a second application processor, a second timer, and a second modem;
the second processing chip is used for initializing the second timer when a data sending instruction is detected in an awakening state and a data packet in a sending state is detected not to exist in the preset interface; and when the value of the second timer is equal to or longer than a first preset time, sending a data packet to be sent to the first processing chip in an awakening state through the preset interface.
Optionally, the second processing chip is further configured to enter an awake state from the sleep state when the second processing chip is in the sleep state and receives a data interaction request, send a detection packet to the first processing chip through the preset interface, and initialize the second timer; and when the value of the second timer is equal to or greater than a second preset time, detecting whether a data sending command is detected.
Optionally, the first processing chip is further configured to, when receiving the probe packet in a sleep state, enter the wake-up state from the sleep state according to the probe packet, and initialize the first timer; and when the value of the first timer is equal to or greater than the third preset time, receiving the data packet to be sent, and processing the data packet to be sent, wherein the difference value between the second preset time and the third preset time is equal to or less than a preset value.
Optionally, the first processing chip is further configured to determine whether a value of the first timer is equal to or greater than a third preset time; and if the value of the first timer is less than the third preset time and the data packet to be sent is received, discarding the data packet to be sent.
Optionally, the second processing chip is further configured to send the detection packet to the first processing chip through the preset interface again after a preset time interval when the value of the second timer is smaller than the third preset time.
In addition, in order to achieve the above object, the present invention further provides a data transmission method, where the data transmission method is applied to a mobile terminal, the mobile terminal includes a first processing chip and a second processing chip connected through a preset interface, the first processing chip includes a first application processor embedded with a virtual subscriber identity card, a first modem connected with a physical subscriber identity card, and a first timer, and the second processing chip includes a second application processor, a second timer, and a second modem;
when the second processing chip in the awakening state detects a data sending instruction and detects that a data packet in the sending state does not exist in the preset interface, initializing the second timer;
and when the value of the second timer is equal to or longer than a first preset time, the second processing chip sends a data packet to be sent to the first processing chip in an awakening state through the preset interface.
Optionally, before the step of initializing the second timer when the second processing chip in the wake-up state detects that a data transmission instruction exists in the preset interface and detects that no data packet in the transmission state exists in the preset interface, the method further includes:
when the second processing chip is in a dormant state and receives a data interaction request, the second processing chip enters an awakening state from the dormant state, sends a detection packet to the first processing chip through the preset interface, and initializes the second timer;
and when the value of the second timer is equal to or greater than a second preset time, the second processing chip detects whether a data sending instruction is detected.
Optionally, after the steps of the second processing chip entering the wake-up state from the sleep state, sending a detection packet to the first processing chip through the preset interface, and initializing the second timer, the method further includes:
when the first processing chip in the dormant state receives the detection packet, the first processing chip enters the awakening state from the dormant state according to the detection packet and initializes the first timer;
after the step of sending the data packet to be sent to the first processing chip in the wake-up state through the preset interface by the second processing chip, the method further includes:
and when the value of the first timer is equal to or greater than the third preset time, the first processing chip receives the data packet to be sent and processes the data packet to be sent, wherein the difference value between the second preset time and the third preset time is equal to or less than a preset value.
Optionally, when the value of the first timer is equal to or greater than the third preset time, before the step of receiving the data packet to be sent by the first processing chip and processing the data packet to be sent, the method further includes:
the first processing chip judges whether the value of the first timer is equal to or longer than a third preset time;
and if the value of the first timer is less than the third preset time and the first processing chip receives the data packet to be sent, the first processing chip discards the data packet to be sent.
Optionally, after the steps of the second processing chip entering the wake-up state from the sleep state, sending a detection packet to the first processing chip through the preset interface, and initializing the second timer, the method further includes:
and when the value of the second timer is less than the third preset time, the second processing chip sends the detection packet to the first processing chip again through the preset interface after the interval of the preset time length.
The invention provides a mobile terminal and a data transmission method thereof, wherein the data transmission method is applied to the mobile terminal, the mobile terminal comprises a first processing chip and a second processing chip which are connected through a preset interface, the first processing chip comprises a first application processor embedded with a virtual user identification card, a first modem connected with an entity user identification card and a first timer, and the second processing chip comprises a second application processor, a second timer and a second modem; when the second processing chip in the awakening state detects a data sending instruction and detects that a data packet in the sending state does not exist in the preset interface, initializing the second timer; and when the value of the second timer is equal to or longer than a first preset time, the second processing chip sends a data packet to be sent to the first processing chip in an awakening state through the preset interface. When the mobile terminal realizes the double LTE communication function through the two processing chips, when the data packet in the sending state does not exist in the preset interface, the second processing chip sends the data packet to be sent to the first processing chip only when the value of the second timer is equal to or longer than the first preset time. The situation that the first processing chip can identify a plurality of data packets sent by the second processing chip as one data packet if the second processing chip transmits the data packet to the first processing chip is too fast in the data packet transmission process of the two processing chips of the mobile terminal is avoided, and the accuracy of identifying the received data packet in the data transmission process of the two processing chips is improved.
Drawings
Fig. 1 is a schematic diagram of an LTE network architecture according to an embodiment of the present 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 first schematic diagram of data transmission between a first processing chip and a second processing chip according to an embodiment of the invention;
FIG. 4 is a second schematic diagram of data transmission between a first processing chip and a second processing chip according to an embodiment of the invention;
FIG. 5 is a third schematic diagram of data transmission between a first processing chip and a second processing chip according to an embodiment of the invention;
FIG. 6 is a flowchart illustrating a data transmission method according to a first embodiment of the present invention;
FIG. 7 is a flowchart illustrating a data transmission method according to a second embodiment of the present invention;
fig. 8 is a flowchart illustrating a data transmission method according to a fourth embodiment of 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.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
Fig. 1 is a schematic diagram of an LTE network architecture according to an embodiment of the present invention. The LTE network architecture of an embodiment of the invention comprises: one or more mobile terminals (UEs) 100, an E-UTRAN (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 a mobile terminal 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, a second processing chip 002, a first rf module 12 and a second rf module 22, wherein the first processing chip 001 is connected to the first rf module 12, and the second processing chip 002 is connected to the second rf module 22. The first processing chip 001 includes a first application processor (ApplicationProcessor)10 having a virtual subscriber identity card 13 embedded therein, a first modem 11(modem1) connected to a physical subscriber identity card 14, an RPM (resource power Manager) 15, and a first timer 16. The second processing chip 002 includes a second application processor 20, a second modem (modem2)21, and a second timer 26. 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.
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 related to starting a video call input by the user through the user interface) 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 control of hibernation, wakeup, synchronization, chip start-up sequence when the two application processors are turned on and off, and the like.
In an embodiment of the present invention, the first predetermined interface is a Universal Serial Bus (USB). USB multiplexes two data channels for user data and signaling data interaction between the first application processor 10 and the second application processor 20. That is, the first application processor 10 and the second application processor 20 transmit user data and signaling data through the USB. The user data includes but is not limited to data generated by surfing the internet, pictures and chatting information data; the signaling data includes, but is not limited to, control data for switching on and off flight modes, and control data for display status signals.
Specifically, The first application processor 10 and The second application processor 20 perform data interaction through 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 13, 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 13. SIM card parameters include, but are not limited to, 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/Transmitter). The UART is used for the transmission of SIM card parameters between the first modem 11 and the second modem 21.
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, and the protocol stacks include protocol codes specified in Communication standards such as LTE/WCDMA (Wideband Code Division Multiple Access)/GSM (Global System for Mobile Communication)/TD-SCDMA (time Division-Synchronous Code Division Multiple Access, Synchronous time Division Multiple Access)/CDMA (Code Division Multiple Access )/EDGE (Enhanced Data Rate for GSM evolution technology). The mobile terminal 100 interacts with the operator network through a protocol, that is, data traffic internet access, volte (voice Over lte) call or CS (Circuit Switched) call is performed. The first modem 11 and the second modem 21 may also manage the SIM card, etc.
The first rf module 12 is configured to process data transmitted by the first processing chip 001 and transmit the processed data to an 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 LTE, GSM, GPRS (General Packet Radio Service), CDMA, EDGE, WLAN (Wireless Local Area network), CDMA-2000, TD-SCDMA, WCDMA, WIFI (Wireless Fidelity), and the like.
The virtual subscriber identity card 13 is embedded in the first application processor 10 in software. The Virtual subscriber identity card 13 includes a storage module and a Virtual Chip Operating System (VCOS), the storage module may be an EFS (encryption File System), and the storage module is used for storing authentication data of the Virtual subscriber identity card 13. The authentication data includes, but is not limited to, IMSI (International Mobile subscriber identification Number) and KI (Key identifier).
When the virtual user identification card 13 needs to perform network registration, a download request containing service menu data is sent to a cloud server corresponding to the virtual user identification card 13 through a wireless fidelity (WIFI) network which is turned on, so as to obtain data information of the virtual user identification card 13 from the cloud server. When the data information of the virtual user identification card 13 is acquired, the data information is written into the storage module of the virtual user identification card 13, so as to realize network registration of the virtual user identification card 13. Wherein, the data information may include: IMSI, KI, ICCID (Integrated Circuit Card Identifier), PIN (personal identification Number), puk (PIN unlock key). It can be understood that card number resources of each operator are stored in the cloud server.
The physical subscriber identity card 14 is connected to the first modem 11. The virtual subscriber identity card 13 and the physical subscriber identity card 14 can carry information, return corresponding card parameters according to external requests, and perform authentication operation on the network. Among them, the virtual subscriber identity card 13 and the physical subscriber identity card 14 may store subscriber information associated with different or the same technical standards for providing related data required for mobile communication services (CS voice service, PS data service, and PS voice service), and store the subscriber information, short messages, perform authentication algorithms, generate encryption keys, and the like therein. In a particular non-limiting example, the technology standard may be a 2G communication technology, e.g., GSM, EDGE, a 3G communication technology (e.g., WCDMA, TD-SCDMA), a 4G communication technology (e.g., LTE), or any other mobile communication technology (e.g., 4G, etc.).
Because the current mobile terminal 100 only has one set of radio frequency module, when the mobile terminal 100 has two subscriber identity modules, the two subscriber identity modules of the mobile terminal 100 use the set of radio frequency module in a time-sharing multiplexing relationship, and cannot occupy simultaneously. For example, when two subscriber identity cards are fully opened, one subscriber identity card only handles GSM calls, and the other subscriber identity card handles 4G network information, which subscriber identity card executes which network, which is not limited herein. Therefore, the current architecture of the radio frequency module with dual cards for time division multiplexing only achieves LTE + GSM (that is, the technical standard corresponding to one subscriber identity module is LTE, and the technical standard corresponding to the other subscriber identity module is GSM).
It can be understood that although the conventional mobile terminal 100 may support a dual-subscriber identity card, when the mobile terminal 100 registers a network, two subscriber identity cards support networks of different technical standards, one of which supports 2G or 3G, and the other supports 4G, so that the traffic speed of the mobile terminal 100 during the use process is slow. In the embodiment of the present invention, the mobile terminal 100 includes a first processing chip 001 and a second processing chip 002 connected via a predetermined interface, and the second processing chip 002 includes a second modem 21 and a second rf module 22, and the second rf module 22 supports a 4G network. Therefore, the mobile terminal 100 can have dual LTE functions through the first processing chip 001 and the second processing chip 002 (in this case, the technical standards managed by the virtual subscriber identity card 13 and the physical subscriber identity card 14 are both LTE standards, and the radio access technologies related to the first radio frequency module 12 and the second radio frequency module 22 are LTE, that is, the first modem 11 can support LTE through the virtual subscriber identity card 13 and the second modem 21 can support LTE through the physical subscriber identity card 14, or the first modem 11 can support LTE through the physical subscriber identity card 14 and the second modem 21 can support LTE through the virtual subscriber identity card 13).
When the second processing chip 002 connected to the first processing chip 001 does not exist in the mobile terminal 100, the technology standard corresponding to the virtual subscriber identity card 13 or the physical subscriber identity card 14 is GSM for performing voice communication, or LTE is supported by the first modem 11 for performing data access through the 4G network.
When the physical subscriber identity card 14 interacts with the mobile terminal 100, a signal for the mobile terminal 100 to detect whether the physical subscriber identity card 14 exists is generated only at the instant of power-on, and when the mobile terminal 100 does not detect that the physical subscriber identity card 14 exists at the time of power-on, an 'access to the subscriber identity card' is prompted in a display screen of the mobile terminal 100. After the mobile terminal 100 is powered on, the mobile terminal 100 and the physical subscriber identity card 14 communicate once in 28 seconds, completing some fixed communication checks (e.g., whether the subscriber identity card is in place, etc.).
RPM15 is used to manage various resources including clock resources, bus resources, PMIC (Power Management IC, voltage of Power Management integrated circuit, i.e., individual chips), DDR (memory allocation), and interrupts to manage sleep wake-up of chips and deadlines to apply processor wake-up. Each subsystem of the mobile terminal 100 applies for resources from the RPM15 when the resources are needed, each subsystem includes the first application processor 10, the first modem 11, PRONTO (WIFI/bluetooth, NFC (Near Field Communication, etc.), LPASS (Low power audio subsystem), and the RPM15 is used to determine a sleep state of the mobile terminal 100 system, specifically, the RPM15 is implemented based on a voting mechanism of each subsystem, and when each subsystem throws a sleep ticket, the RPM15 can make the entire system of the mobile terminal 100 sleep. When the mobile terminal 100 has one or more sub-systems casting a vote against hibernation, the whole system of the mobile terminal 100 cannot be hibernated.
Under the condition that the first processing chip 001 and the second processing chip 002 are connected through the preset interface, the waking mode can be three types as follows:
1. when the first application processor 10 receives the signaling data, it sends a probe packet to the second application processor 20 through USB 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 to wake up the first application processor 10.
3. The second modem 21 periodically looks for a paging request to actively activate itself. If the paging request is received, the second modem 21 wakes up the second application processor 20, and the second application processor 20 sends a probe packet to the first application processor 10 through the USB 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.
The first timer 16 and the second timer 26 are used for calculating time during the interaction between the first processing chip 001 and the second processing chip 002, so as to control the first application processor 10, the first modem 11, the second application processor 20 and/or the second modem 21 to enter the wake-up state from the sleep state within a certain time, and control the first application processor 10, the first modem 11, the second application processor 20 and/or the second modem 21 to enter the sleep state from the wake-up state within a certain time. In the embodiment of the present invention, the number of the timers in the first processing chip 001 and the second processing chip 002 may be one or more.
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).
Based on the above LTE network architecture diagram and the hardware structure diagram of the mobile terminal 100, various embodiments of the present invention are provided.
The embodiment proposes a mobile terminal 100, the mobile terminal 100 includes a first processing chip 001 and a second processing chip 002 connected through a preset interface, the first processing chip 001 includes a first application processor 10 embedded with a virtual subscriber identity card 13, a first modem 11 connected with a physical subscriber identity card 14, and a first timer 16, and the second processing chip 002 includes a second application processor 20, a second timer 26, and a second modem 21.
The second processing chip 002 is configured to initialize the second timer 26 when the data sending instruction is detected in the awake state and it is detected that no data packet in the sending state exists in the preset interface; when the value of the second timer 26 is equal to or greater than the first preset time, the data packet to be sent is sent to the first processing chip 001 in the wake-up state through the preset interface.
When the second processing chip 002 in the wake-up state detects a data transmission instruction, the second processing chip 002 detects whether a data packet in the transmission state exists in the preset interface, that is, whether a data packet which is not transmitted completely exists in the preset interface. If there is no data packet in the transmission state in the predetermined interface, the second timer 26 is started, and the second timer 26 is initialized, so that the value of the second timer 26 is equal to zero. When the value of the second timer 26 is equal to or greater than the first preset time, the second processing chip 002 sends the data packet to be sent to the first processing chip 001 in the wake-up state through the preset interface.
When the value of the second timer 26 is less than the first preset time, the second processing chip 002 suspends sending the data packet to be sent to the first processing chip 001. That is, the time interval for the second processing chip 002 to send the data packet to be responded to the first processing chip 001 is the first preset time. In the present embodiment, the first preset time is set to 3ms, and in other embodiments, the first preset time may also be set to 4ms, 5ms, or the like.
It is understood that, when the first application processor 10 in the first processing chip 001 performs data transmission (including transmission of a probe packet, a data packet to be transmitted, and the like) with the second application processor 20 in the second processing chip 002, the predetermined interface is the first predetermined interface. In the embodiment of the present invention, the first predetermined interface is a USB. In other embodiments, the first predetermined interface may be an interface having the same function as the USB. When the first modem 11 in the first processing chip 001 performs data transmission (including transmission of a probe packet, a data packet to be transmitted, and the like) with the second modem 21 in the second processing chip 002, the predetermined interface is a second predetermined interface. In an embodiment of the present invention, the second predetermined interface is a UART. In other embodiments, the second predetermined interface may be an interface having the same function as the UART.
Further, when there is a data packet in the transmission state in the preset interface, the second processing chip 002 waits for the data packet in the transmission state in the preset interface to be completely transmitted to the first processing chip 001.
Further, when the second processing chip 002 detects that there is no data packet in the sending state in the preset interface, the second processing chip 002 detects whether there is a data packet to be sent in the sending queue. If the data packet to be sent exists in the sending queue, the second timer 26 is initialized, and when the value of the second timer 26 is equal to or greater than the first preset time, the data packet to be sent is sent to the first processing chip 001 through the preset interface. If the data packet to be sent does not exist in the sending queue, the second timer 26 is initialized, and when the value of the second timer 26 is equal to or greater than the first preset time, the data packet to be sent does not exist in the sending queue, and the second processing chip 002 initializes the second timer 26 again. When the value of the second timer 26 is greater than or equal to the set time value, the data packet is still not yet to be transmitted in the transmission queue, and the second processing chip 002 enters the sleep state from the awake state. The setting time value can be set according to specific needs, and in the embodiment, the setting time value can be set to be 500ms, 550ms or the like. It will be appreciated that the transmit queue is a memory space that stores the data packets to be transmitted. It should be noted that, when the value of the second timer 26 is greater than or equal to the set time value and a data packet is not yet to be sent in the sending queue, a sleep function of a preset interface protocol is called to perform a sleep operation of the preset interface, and the sleep of the preset interface releases occupied clock resources to implement the sleep of the first processing chip 001 and the second processing chip 002, that is, to implement the sleep of the application processor and/or the modem.
In this embodiment, when the second processing chip 002 in the wake-up state detects a data sending instruction and detects that no data packet in the sending state exists in the preset interface, the second timer 26 is initialized; when the value of the second timer 26 is equal to or greater than the first preset time, the second processing chip 002 sends the data packet to be sent to the first processing chip 001 in the wake-up state through the preset interface. In the process that the mobile terminal 100 implements the dual LTE communication function through the two processing chips, when there is no data packet in a transmission state in the preset interface, the second processing chip 002 sends the data packet to be sent to the first processing chip 001 only when the value of the second timer 26 is equal to or longer than the first preset time. The situation that the first processing chip 001 recognizes a plurality of data packets sent by the second processing chip 002 as one data packet if the second processing chip 002 is too fast in the data packet transmission process by the two processing chips of the mobile terminal 100 is avoided, and the accuracy of recognizing the received data packet by the two processing chips in the data transmission process is improved.
Further, a second embodiment of the mobile terminal 100 of the present invention is presented.
The second embodiment of the mobile terminal 100 is different from the first embodiment of the mobile terminal 100 in that the second processing chip 002 is further configured to enter an awake state from the sleep state when in the sleep state and receiving the data interaction request, send a probe packet to the first processing chip 001 through the predetermined interface, and initialize the second timer 26.
The second processing chip 002 is further configured to detect whether a data sending command is detected when the value of the second timer 26 is equal to or greater than a second predetermined time.
When the second processing chip 002 is in the sleep state and the second processing chip 002 receives the data interaction request, the second processing chip 002 enters the wake-up state from the sleep state. When the second processing chip 002 enters the wake-up state, the second processing chip 002 sends the probe packet to the first processing chip 001, and starts the second timer 26 to execute the timing operation. When the second timer 26 is started, the second timer 26 is initialized such that the value of the second timer 26 is equal to zero. The data interaction request received by the second processing chip 002 may be a data request received by the second processing chip 002 from the eNodeB101, or the second processing chip 002 needs to access a 2G, 3G, or 4G network.
When the value of the second timer 26 is equal to or greater than the second preset time, the second processing chip 002 detects whether a data sending command is detected, where the data sending command is a command for sending a data packet to be sent. The second preset time can be set according to specific needs, in this embodiment, the second preset time is set to 30ms, and in other embodiments, the second preset time can also be set to 34ms, or 40ms, etc.
It should be noted that the detection packet may be identified by a character with a fixed word length, and the detection packet is not a normal data packet, but is a field that does not appear in the normal data packet. As in the present embodiment, the probe packets may be represented by 0xF9F9, and in other embodiments, probe packets configured in other forms, such as 0xF3F3 and 0x3F3F, may be used.
In this embodiment, when the second processing chip 002 in the sleep state receives the data interaction request, the second processing chip 002 actively enters the wake-up state from the sleep state, and sends the detection packet to the first processing chip 001, so that the first processing chip 001 enters the wake-up state from the sleep state according to the detection packet, and the second processing chip 002 and the first processing chip 001 can perform normal data interaction.
Further, a third embodiment of the mobile terminal 100 of the present invention is presented.
The third embodiment of the mobile terminal 100 is different from the second embodiment of the mobile terminal 100 in that the first processing chip 001 is further configured to enter an awake state from a sleep state according to a probe packet when the probe packet is received in the sleep state, and initialize the first timer 16.
Referring to fig. 3, when the first processing chip 001 in the sleep state receives the probe packet, the first processing chip 001 enters the wake-up state from the sleep state and starts the first timer 16 to perform a timing operation, and when the first timer 16 is started, the first timer 16 is initialized so that the value of the first timer 16 is equal to zero. The first processing chip 001 determines whether the value of the first timer 16 is equal to or greater than a third preset time. The third preset time may be set according to specific needs, in this embodiment, the third preset time is set to 20ms, and in other embodiments, the third preset time may also be set to 25ms, 28ms, or the like.
It should be noted that, after the second processing chip 002 sends the probe packet to the first processing chip 001 through the preset interface, the MPM (interrupt detection module still alive in the deep sleep state of the terminal) detects data interrupt on the preset interface, the MPM wakes up the RPM, and the RPM wakes up the CPU of the corresponding subsystem according to the terminal signal source, so that the corresponding subsystem is immediately waked up to process the event.
The first processing chip 001 is further configured to receive a data packet to be sent and process the data packet to be sent when the value of the first timer 16 is equal to or greater than a third preset time, where a difference between the second preset time and the third preset time is equal to or less than a preset value.
When the value of the first timer 16 is equal to or greater than the third preset time, the first processing chip 001 receives the data packet to be transmitted and processes the data packet to be transmitted. If the data packet to be sent needs to be responded by the first processing chip 001, the first processing chip 001 responds to the data packet to be sent. It can be understood that the essence of the first processing chip 001 processing the data packet to be sent is to send the data packet to be sent to a corresponding module or perform corresponding processing according to the attribute of the data packet to be sent.
In order to ensure that the first processing chip 001 can normally receive the data packet to be sent by the second processing chip 002, the second preset time should be longer than the third preset time, and a difference between the second preset time and the third preset time should be equal to or smaller than a preset value. It is understood that the time for the first processing chip 001 to transition from the sleep state to the wake state should be less than or equal to a preset value. In the present embodiment, the preset value is set to 10ms, and in other embodiments, the preset value may be set to 8ms, or 9ms, etc.
As can be seen from a comparison between fig. 4 and fig. 5, the time for the first processing chip 001 to transition from the sleep state to the wake state may be equal to a predetermined value (as shown in fig. 4), and at this time, the sum of the third predetermined time and the predetermined value is equal to the second predetermined time. The time for the first processing chip 001 to transition from the sleep state to the wake state may be less than a preset value (as shown in fig. 5), and at this time, the sum of the third preset time and the preset value is less than the second preset time.
Further, the first processing chip 001 is further configured to determine whether the value of the first timer 16 is equal to or greater than a third preset time; and if the value of the first timer is less than the third preset time and the data packet to be sent is received, discarding the data packet to be sent.
When the first processing chip 001 transitions from the sleep state to the wake-up state, the first processing chip 001 determines whether the value of the first timer 16 is equal to or greater than a third preset time. If the value of the first timer 16 is less than the third preset time and the first processing chip 001 receives the data packet to be sent, the first processing chip 001 discards the data packet to be sent and does not report the data packet to be sent to the upper layer.
In this embodiment, when the first processing chip 001 is in the sleep state, the second processing chip 002 sends the detection packet to the first processing chip 001 to wake up the first processing chip 001. And after the first processing chip 001 enters the wake-up state, the situation that the first processing chip 001 fails to receive the data packet due to the first processing chip 001 being in the incomplete wake-up state when the second processing chip 002 sends the data packet to the first processing chip 001 is avoided through the time difference between the first timer 16 and the second timer 26. In the process that the mobile terminal 100 realizes the dual LTE communication function through the first processing chip 001 and the second processing chip 002, the success rate of data transmission between the first processing chip 001 and the second processing chip 002 is improved.
Further, a fourth embodiment of the mobile terminal 100 of the present invention is presented.
The fourth embodiment of the mobile terminal 100 is different from the second embodiment of the mobile terminal 100 in that the second processing chip 002 is further configured to send the probe packet to the first processing chip 001 again through the preset interface after a preset time interval when the value of the second timer 26 is less than the third preset time.
When the second processing chip 002 sends the detection packet to the first processing chip 001 through the preset interface and initializes the second timer 26, the second processing chip 002 determines whether the value of the second timer 26 is less than a third preset time. When the value of the second timer 26 is smaller than the third preset time, the second processing chip 002 sends the probe packet to the first processing chip 001 through the preset interface again after the interval of the preset time length. In this embodiment, the preset time duration may be set according to specific needs, but in order to ensure that the first processing chip 001 does not mistake the detection packet as a normal data packet sent by the second processing chip 002, that is, mistake the detection packet as a data packet to be sent by the second processing chip 002, the preset time duration should be less than a third preset time. For example, the preset time duration may be set to 4ms, 6ms, or 8 ms. When the third preset time is 20ms and the preset duration is 6ms, the second processing chip 002 sends the detection packet to the first processing chip 001 through the preset interface again after every 6ms, that is, the second processing chip 002 sends the detection packet to the first processing chip 001 three times in total.
In this embodiment, when the value of the second timer 26 is less than the third preset time, the second processing chip 002 sends the detection packet to the first processing chip 001 through the preset interface again after the interval is preset for a long time, so as to prevent the second processing chip 002 from losing the detection packet or damaging the detection packet in the process of sending the detection packet to the first processing chip 001, so that the first processing chip 001 cannot receive the detection packet and enters the wake-up state from the sleep state.
The invention also provides a data transmission method.
Referring to fig. 6, fig. 6 is a flowchart illustrating a data transmission method according to a first embodiment of the present invention.
While the present embodiment provides an embodiment of a data transmission 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.
The data transmission method is applied to a mobile terminal 100, the mobile terminal 100 comprises a first processing chip 001 and a second processing chip 002 which are connected through a preset interface, the first processing chip 001 comprises a first application processor 10 embedded with a virtual subscriber identity card 13, a first modem 11 connected with a physical subscriber identity card 14 and a first timer 16, and the second processing chip 002 comprises a second application processor 20, a second timer 26 and a second modem 21.
In step S10, when the second processing chip 002 in the wake-up state detects a data transmission command and detects that there is no data packet in the transmission state in the predetermined interface, the second timer 26 is initialized.
In step S20, when the value of the second timer 26 is equal to or greater than the first preset time, the second processing chip 002 sends the data packet to be sent to the first processing chip 001 in the wake-up state through the preset interface.
When the second processing chip 002 in the wake-up state detects a data transmission instruction, the second processing chip 002 detects whether a data packet in the transmission state exists in the preset interface, that is, whether a data packet which is not transmitted completely exists in the preset interface. If there is no data packet in the transmission state in the predetermined interface, the second timer 26 is started, and the second timer 26 is initialized, so that the value of the second timer 26 is equal to zero. When the value of the second timer 26 is equal to or greater than the first preset time, the second processing chip 002 sends the data packet to be sent to the first processing chip 001 in the wake-up state through the preset interface.
When the value of the second timer 26 is less than the first preset time, the second processing chip 002 suspends sending the data packet to be sent to the first processing chip 001. That is, the time interval for the second processing chip 002 to send the data packet to be responded to the first processing chip 001 is the first preset time. In the present embodiment, the first preset time is set to 3ms, and in other embodiments, the first preset time may also be set to 4ms, 5ms, or the like.
It is understood that, when the first application processor 10 in the first processing chip 001 performs data transmission (including transmission of a probe packet, a data packet to be transmitted, and the like) with the second application processor 20 in the second processing chip 002, the predetermined interface is the first predetermined interface. In the embodiment of the present invention, the first predetermined interface is a USB. In other embodiments, the first predetermined interface may be an interface having the same function as the USB. When the first modem 11 in the first processing chip 001 performs data transmission (including transmission of a probe packet, a data packet to be transmitted, and the like) with the second modem 21 in the second processing chip 002, the predetermined interface is a second predetermined interface. In an embodiment of the present invention, the second predetermined interface is a UART. In other embodiments, the second predetermined interface may be an interface having the same function as the UART.
Further, when there is a data packet in the transmission state in the preset interface, the second processing chip 002 waits for the data packet in the transmission state in the preset interface to be completely transmitted to the first processing chip 001.
Further, when the second processing chip 002 detects that there is no data packet in the sending state in the preset interface, the second processing chip 002 detects whether there is a data packet to be sent in the sending queue. If the data packet to be sent exists in the sending queue, the second timer 26 is initialized, and when the value of the second timer 26 is equal to or greater than the first preset time, the data packet to be sent is sent to the first processing chip 001 through the preset interface. If the data packet to be sent does not exist in the sending queue, the second timer 26 is initialized, and when the value of the second timer 26 is equal to or greater than the first preset time, the data packet to be sent does not exist in the sending queue, and the second processing chip 002 initializes the second timer 26 again. When the value of the second timer 26 is greater than or equal to the set time value, the data packet is still not yet to be transmitted in the transmission queue, and the second processing chip 002 enters the sleep state from the awake state. The setting time value can be set according to specific needs, and in the embodiment, the setting time value can be set to be 500ms, 550ms or the like. It will be appreciated that the transmit queue is a memory space that stores the data packets to be transmitted. It should be noted that, when the value of the second timer 26 is greater than or equal to the set time value and a data packet is not yet to be sent in the sending queue, a sleep function of a preset interface protocol is called to perform a sleep operation of the preset interface, and the sleep of the preset interface releases occupied clock resources to implement the sleep of the first processing chip 001 and the second processing chip 002, that is, to implement the sleep of the application processor and/or the modem.
In this embodiment, when the second processing chip 002 in the wake-up state detects a data sending instruction and detects that no data packet in the sending state exists in the preset interface, the second timer 26 is initialized; when the value of the second timer 26 is equal to or greater than the first preset time, the second processing chip 002 sends the data packet to be sent to the first processing chip 001 in the wake-up state through the preset interface. In the process that the mobile terminal 100 implements the dual LTE communication function through the two processing chips, when there is no data packet in a transmission state in the preset interface, the second processing chip 002 sends the data packet to be sent to the first processing chip 001 only when the value of the second timer 26 is equal to or longer than the first preset time. The situation that the first processing chip 001 recognizes a plurality of data packets sent by the second processing chip 002 as one data packet if the second processing chip 002 is too fast in the data packet transmission process by the two processing chips of the mobile terminal 100 is avoided, and the accuracy of recognizing the received data packet by the two processing chips in the data transmission process is improved.
Further, a second embodiment of the data transmission method of the present invention is provided.
The second embodiment of the data transmission method differs from the first embodiment of the data transmission method in that, referring to fig. 7, the data transmission method further includes:
in step S30, when the second processing chip 002 is in the sleep state and the second processing chip 002 receives the data interaction request, the second processing chip 002 enters the wake-up state from the sleep state, sends the probe packet to the first processing chip 001 through the predetermined interface, and initializes the second timer 26.
In step S40, when the value of the second timer 26 is equal to or greater than the second predetermined time, the second processing chip 002 detects whether the data sending command is detected.
When the second processing chip 002 is in the sleep state and the second processing chip 002 receives the data interaction request, the second processing chip 002 enters the wake-up state from the sleep state. When the second processing chip 002 enters the wake-up state, the second processing chip 002 sends the probe packet to the first processing chip 001, and starts the second timer 26 to execute the timing operation. When the second timer 26 is started, the second timer 26 is initialized such that the value of the second timer 26 is equal to zero. The data interaction request received by the second processing chip 002 may be a data request received by the second processing chip 002 from the eNodeB101, or the second processing chip 002 needs to access a 2G, 3G, or 4G network, or the second processing chip 002 has an authentication requirement.
When the value of the second timer 26 is equal to or greater than the second preset time, the second processing chip 002 detects whether a data sending command is detected, where the data sending command is a command for sending a data packet to be sent. The second preset time can be set according to specific needs, in this embodiment, the second preset time is set to 30ms, and in other embodiments, the second preset time can also be set to 34ms, or 40ms, etc.
It should be noted that the detection packet may be identified by a character with a fixed word length, and the detection packet is not a normal data packet, but is a field that does not appear in the normal data packet. As in the present embodiment, the probe packets may be represented by 0xF9F9, and in other embodiments, probe packets configured in other forms, such as 0xF3F3 and 0x3F3F, may be used.
In this embodiment, when the second processing chip 002 in the sleep state receives the data interaction request, the second processing chip 002 actively enters the wake-up state from the sleep state, and sends the detection packet to the first processing chip 001, so that the first processing chip 001 enters the wake-up state from the sleep state according to the detection packet, and the second processing chip 002 and the first processing chip 001 can perform normal data interaction.
Further, a third embodiment of the data transmission method of the present invention is provided.
The third embodiment of the data transmission method differs from the second embodiment of the data transmission method in that the data transmission method further includes:
in step a, when the first processing chip 001 in the sleep state receives the detection packet, the first processing chip 001 enters the wake-up state from the sleep state according to the detection packet, and initializes the first timer 16.
Referring to fig. 3, when the first processing chip 001 in the sleep state receives the probe packet, the first processing chip 001 enters the wake-up state from the sleep state and starts the first timer 16 to perform a timing operation, and when the first timer 16 is started, the first timer 16 is initialized so that the value of the first timer 16 is equal to zero. The first processing chip 001 determines whether the value of the first timer 16 is equal to or greater than a third preset time. The third preset time may be set according to specific needs, in this embodiment, the third preset time is set to 20ms, and in other embodiments, the third preset time may also be set to 25ms, 28ms, or the like.
It should be noted that, after the second processing chip 002 sends the probe packet to the first processing chip 001 through the preset interface, the MPM (interrupt detection module still alive in the deep sleep state of the terminal) detects data interrupt on the preset interface, the MPM wakes up the RPM, and the RPM wakes up the CPU of the corresponding subsystem according to the terminal signal source, so that the corresponding subsystem is immediately waked up to process the event.
And b, when the value of the first timer 16 is equal to or greater than a third preset time, the first processing chip 001 receives a data packet to be sent and processes the data packet to be sent, wherein the difference value between the second preset time and the third preset time is equal to or less than a preset value.
When the value of the first timer 16 is equal to or greater than the third preset time, the first processing chip 001 receives the data packet to be transmitted and processes the data packet to be transmitted. If the data packet to be sent needs to be responded by the first processing chip 001, the first processing chip 001 responds to the data packet to be sent. It can be understood that the essence of the first processing chip 001 processing the data packet to be sent is to send the data packet to be sent to a corresponding module or perform corresponding processing according to the attribute of the data packet to be sent.
In order to ensure that the first processing chip 001 can normally receive the data packet to be sent by the second processing chip 002, the second preset time should be longer than the third preset time, and a difference between the second preset time and the third preset time should be equal to or smaller than a preset value. It is understood that the time for the first processing chip 001 to transition from the sleep state to the wake state should be less than or equal to a preset value. In the present embodiment, the preset value is set to 10ms, and in other embodiments, the preset value may be set to 8ms, or 9ms, etc.
As can be seen from a comparison between fig. 4 and fig. 5, the time for the first processing chip 001 to transition from the sleep state to the wake state may be equal to a predetermined value (as shown in fig. 4), and at this time, the sum of the third predetermined time and the predetermined value is equal to the second predetermined time. The time for the first processing chip 001 to transition from the sleep state to the wake state may be less than a preset value (as shown in fig. 5), and at this time, the sum of the third preset time and the preset value is less than the second preset time.
Further, the data transmission method further comprises:
in step c, the first processing chip 001 determines whether the value of the first timer 16 is equal to or greater than a third preset time.
And d, if the value of the first timer 16 is less than the third preset time and the first processing chip 001 receives the data packet to be sent, the first processing chip 001 discards the data packet to be sent.
When the first processing chip 001 transitions from the sleep state to the wake-up state, the first processing chip 001 determines whether the value of the first timer 16 is equal to or greater than a third preset time. If the value of the first timer 16 is less than the third preset time and the first processing chip 001 receives the data packet to be sent, the first processing chip 001 discards the data packet to be sent and does not report the data packet to be sent to the upper layer.
In this embodiment, when the first processing chip 001 is in the sleep state, the second processing chip 002 sends the detection packet to the first processing chip 001 to wake up the first processing chip 001. And after the first processing chip 001 enters the wake-up state, the situation that the first processing chip 001 fails to receive the data packet due to the first processing chip 001 being in the incomplete wake-up state when the second processing chip 002 sends the data packet to the first processing chip 001 is avoided through the time difference between the first timer 16 and the second timer 26. In the process that the mobile terminal 100 realizes the dual LTE communication function through the first processing chip 001 and the second processing chip 002, the success rate of data transmission between the first processing chip 001 and the second processing chip 002 is improved.
Further, a fourth embodiment of the data transmission method of the present invention is provided.
The fourth embodiment of the data transmission method is different from the second embodiment of the data transmission method in that, referring to fig. 8, the data transmission method further includes:
in step S50, when the value of the second timer 26 is smaller than the third preset time, the second processing chip 002 sends the probe packet to the first processing chip 001 through the preset interface again after the interval of the preset time duration.
When the second processing chip 002 sends the detection packet to the first processing chip 001 through the preset interface and initializes the second timer 26, the second processing chip 002 determines whether the value of the second timer 26 is less than a third preset time. When the value of the second timer 26 is smaller than the third preset time, the second processing chip 002 sends the probe packet to the first processing chip 001 through the preset interface again after the interval of the preset time length. In this embodiment, the preset time duration may be set according to specific needs, but in order to ensure that the first processing chip 001 does not mistake the detection packet as a normal data packet sent by the second processing chip 002, that is, mistake the detection packet as a data packet to be sent by the second processing chip 002, the preset time duration should be less than a third preset time. For example, the preset time duration may be set to 4ms, 6ms, or 8 ms. When the third preset time is 20ms and the preset duration is 6ms, the second processing chip 002 sends the detection packet to the first processing chip 001 through the preset interface again after every 6ms, that is, the second processing chip 002 sends the detection packet to the first processing chip 001 three times in total.
In this embodiment, when the value of the second timer 26 is less than the third preset time, the second processing chip 002 sends the detection packet to the first processing chip 001 through the preset interface again after the interval is preset for a long time, so as to prevent the second processing chip 002 from losing the detection packet or damaging the detection packet in the process of sending the detection packet to the first processing chip 001, so that the first processing chip 001 cannot receive the detection packet and enters the wake-up state from the sleep state.
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 (8)

1. A mobile terminal is characterized in that the mobile terminal comprises a first processing chip and a second processing chip which are connected through a preset interface, wherein the first processing chip comprises a first application processor embedded with a virtual user identification card, a first modem connected with a physical user identification card and a first timer, and the second processing chip comprises a second application processor, a second timer and a second modem;
the second processing chip is used for detecting whether a data packet to be sent exists in a sending queue or not when a data sending instruction is detected in an awakening state and a data packet in a sending state does not exist in the preset interface; if the data packet to be sent exists in the sending queue, initializing the second timer; when the value of the second timer is equal to or longer than a first preset time, sending a data packet to be sent to the first processing chip in an awakening state through the preset interface; if the data packet to be sent does not exist in the sending queue and the value of the second timer after initialization is equal to or longer than first preset time, the second timer is initialized again when the data packet to be sent does not exist in the sending queue; if the value of the second timer is greater than or equal to the set time value and a data packet is not yet to be sent in the sending queue, calling a sleep function of a preset interface protocol to execute sleep operation of a preset interface, so that the sleep of the preset interface releases occupied clock resources, and the sleep of the first processing chip and the second processing chip is realized;
the second processing chip is further configured to enter an awake state from the sleep state when the second processing chip is in the sleep state and receives a data interaction request, send a detection packet to the first processing chip through the preset interface, and initialize the second timer; when the value of the second timer is equal to or greater than a second preset time, detecting whether a data sending instruction is detected;
after the second application processor sends a detection data packet to the first application processor, an interruption detection module which survives in a deep sleep state of the mobile terminal detects data interruption on a preset interface so as to awaken a resource power supply manager (RPM) in the mobile terminal, and the RPM awakens a CPU of a corresponding subsystem according to a mobile terminal signal source; the RPM determines the dormant state of the mobile terminal system, and when each subsystem of the mobile terminal throws a dormant ticket, the RPM enables the whole system of the mobile terminal to be dormant; when the mobile terminal has one or more subsystems to cast a ticket against the dormancy, the whole system of the mobile terminal cannot be dormant.
2. The mobile terminal of claim 1, wherein the first processing chip is further configured to, when receiving the probe packet in a sleep state, enter the awake state from the sleep state according to the probe packet, and initialize the first timer; and when the value of the first timer is equal to or greater than the third preset time, receiving the data packet to be sent, and processing the data packet to be sent, wherein the difference value between the second preset time and the third preset time is equal to or less than a preset value.
3. The mobile terminal of claim 2, wherein the first processing chip is further configured to determine whether a value of the first timer is equal to or greater than a third preset time; and if the value of the first timer is less than the third preset time and the data packet to be sent is received, discarding the data packet to be sent.
4. The mobile terminal of claim 1, wherein the second processing chip is further configured to send the probe packet to the first processing chip again through the preset interface after a preset duration when the value of the second timer is less than the third preset time.
5. A data transmission method is applied to a mobile terminal, the mobile terminal comprises a first processing chip and a second processing chip which are connected through a preset interface, the first processing chip comprises a first application processor embedded with a virtual user identification card, a first modem connected with a physical user identification card and a first timer, and the second processing chip comprises a second application processor, a second timer and a second modem;
when the second processing chip is in a dormant state and receives a data interaction request, the second processing chip enters an awakening state from the dormant state, sends a detection packet to the first processing chip through the preset interface and initializes the second timer, wherein after the second application processor sends the detection packet to the first application processor, an interruption detection module which survives in a deep dormant state of the mobile terminal detects data interruption on the preset interface so as to awaken a Resource Power Manager (RPM) in the mobile terminal, and the RPM awakens a Central Processing Unit (CPU) of a corresponding subsystem according to a mobile terminal signal source; the RPM determines the dormant state of the mobile terminal system, and when each subsystem of the mobile terminal throws a dormant ticket, the RPM enables the whole system of the mobile terminal to be dormant; when the mobile terminal has one or more subsystems to cast a ticket against dormancy, the whole system of the mobile terminal cannot be dormant;
when the value of the second timer is equal to or greater than a second preset time, the second processing chip detects whether a data sending instruction is detected;
when the second processing chip in the awakening state detects a data sending instruction and detects that a data packet in a sending state does not exist in the preset interface, detecting whether a data packet to be sent exists in a sending queue;
if the data packet to be sent exists in the sending queue, initializing the second timer;
when the value of the second timer is equal to or longer than a first preset time, the second processing chip sends a data packet to be sent to the first processing chip in an awakening state through the preset interface;
if the data packet to be sent does not exist in the sending queue and the value of the second timer after initialization is equal to or longer than first preset time, the second timer is initialized again when the data packet to be sent does not exist in the sending queue;
if the value of the second timer is greater than or equal to the set time value and the data packet is not yet to be sent in the sending queue, calling a sleep function of a preset interface protocol to execute sleep operation of the preset interface, so that the sleep of the preset interface releases occupied clock resources, and the sleep of the first processing chip and the second processing chip is realized.
6. The data transmission method according to claim 5, wherein after the steps of entering the wake-up state from the sleep state, sending a probe packet to the first processing chip through the predetermined interface, and initializing the second timer, the method further comprises:
when the first processing chip in the dormant state receives the detection packet, the first processing chip enters the awakening state from the dormant state according to the detection packet and initializes the first timer;
after the step of sending the data packet to be sent to the first processing chip in the wake-up state through the preset interface by the second processing chip, the method further includes:
and when the value of the first timer is equal to or greater than the third preset time, the first processing chip receives the data packet to be sent and processes the data packet to be sent, wherein the difference value between the second preset time and the third preset time is equal to or less than a preset value.
7. The data transmission method according to claim 6, wherein before the step of receiving the data packet to be transmitted by the first processing chip and processing the data packet to be transmitted when the value of the first timer is equal to or greater than the third preset time, the method further comprises:
the first processing chip judges whether the value of the first timer is equal to or longer than a third preset time;
and if the value of the first timer is less than the third preset time and the first processing chip receives the data packet to be sent, the first processing chip discards the data packet to be sent.
8. The data transmission method according to claim 5, wherein after the steps of entering the wake-up state from the sleep state, sending a probe packet to the first processing chip through the predetermined interface, and initializing the second timer, the method further comprises:
and when the value of the second timer is less than the third preset time, the second processing chip sends the detection packet to the first processing chip again through the preset interface after the interval of the preset time length.
CN201710206683.XA 2017-03-30 2017-03-30 Mobile terminal and data transmission method thereof Active CN107087269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710206683.XA CN107087269B (en) 2017-03-30 2017-03-30 Mobile terminal and data transmission method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710206683.XA CN107087269B (en) 2017-03-30 2017-03-30 Mobile terminal and data transmission method thereof

Publications (2)

Publication Number Publication Date
CN107087269A CN107087269A (en) 2017-08-22
CN107087269B true CN107087269B (en) 2020-08-21

Family

ID=59614631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710206683.XA Active CN107087269B (en) 2017-03-30 2017-03-30 Mobile terminal and data transmission method thereof

Country Status (1)

Country Link
CN (1) CN107087269B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069223B (en) * 2018-01-23 2023-04-18 上海济丽信息技术有限公司 Intelligent large screen splicing display unit based on Android system
EP3726340B1 (en) * 2019-04-15 2022-08-10 NXP USA, Inc. Wake-up circuit and methodology for reducing false wake-up events

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730270A (en) * 2009-11-23 2010-06-09 中国电信股份有限公司 Method for optimizing data transmission of mobile terminal and mobile terminal
CN104702767A (en) * 2013-12-04 2015-06-10 中国电信股份有限公司 Method, subscriber identity module card and system used for sending messages
CN105960000A (en) * 2016-06-12 2016-09-21 努比亚技术有限公司 Dormancy awakening method and processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730270A (en) * 2009-11-23 2010-06-09 中国电信股份有限公司 Method for optimizing data transmission of mobile terminal and mobile terminal
CN104702767A (en) * 2013-12-04 2015-06-10 中国电信股份有限公司 Method, subscriber identity module card and system used for sending messages
CN105960000A (en) * 2016-06-12 2016-09-21 努比亚技术有限公司 Dormancy awakening method and processor

Also Published As

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

Similar Documents

Publication Publication Date Title
CN107277907B (en) Mobile terminal and control method thereof
CN107087269B (en) Mobile terminal and data transmission method thereof
CN107087062B (en) Data transmission system and method
CN107087057B (en) Data transmission system and method
CN106953984B (en) Data transmission system and method
CN106900049B (en) Mobile terminal and data transmission method thereof
CN106961718B (en) Data transmission system and method
CN107087059B (en) Data transmission system and method
CN106900044B (en) Mobile terminal and dormancy control method thereof
CN106900048B (en) Data transmission system and method
CN106900046B (en) Data transmission system and method
CN107087063B (en) Data transmission system and method
CN106900043B (en) Dormancy control system and dormancy control method thereof
CN107087064B (en) Mobile terminal and data transmission method thereof
CN107094317B (en) Data transmission system and method
CN107071165B (en) Data transmission system and method
CN107018560B (en) Data transmission system and method
CN106961719B (en) Data transmission system and method
CN107094316B (en) Mobile terminal and data transmission method thereof
CN106953983B (en) Data transmission system and method
CN107087061B (en) Data transmission system and method
CN107070598B (en) Data packet identification system and method
CN107086994B (en) Data packet identification system and method
CN107086992B (en) Mobile terminal and data packet identification method
CN107086989B (en) Data packet identification 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