CN107018560B - Data transmission system and method - Google Patents

Data transmission system and method Download PDF

Info

Publication number
CN107018560B
CN107018560B CN201710206715.6A CN201710206715A CN107018560B CN 107018560 B CN107018560 B CN 107018560B CN 201710206715 A CN201710206715 A CN 201710206715A CN 107018560 B CN107018560 B CN 107018560B
Authority
CN
China
Prior art keywords
application processor
state
handshake
data
sending
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
CN201710206715.6A
Other languages
Chinese (zh)
Other versions
CN107018560A (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 CN201710206715.6A priority Critical patent/CN107018560B/en
Publication of CN107018560A publication Critical patent/CN107018560A/en
Application granted granted Critical
Publication of CN107018560B publication Critical patent/CN107018560B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • 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
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a data transmission system and a method, the method is applied to a mobile terminal and an external device connected with the mobile terminal through a preset interface, the mobile terminal comprises a first application processor and a first modem connected with an entity user identification card, and the external device comprises a second application processor and a second modem connected with an embedded user identification card; when a second application processor entering an awakening state from a dormant state through a handshake keyword detects a data sending instruction, detecting whether a data packet in a sending state exists in a preset interface; if the data packet in the sending state does not exist in the preset interface, after the first preset time, the second application processor sends the data packet to be sent to the first application processor in the awakening state through the preset interface. The invention realizes that the accuracy of the mobile terminal for identifying the data packet sent by the external equipment is improved in the process that the mobile terminal realizes double LTE communication through the external equipment.

Description

Data transmission system and method
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission system and method.
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, the mobile terminal may be connected to an external device (a modem is disposed in the external device), so that the two SIM cards of the mobile terminal correspond to different modems, thereby implementing a dual LTE communication function.
However, in the process of data packet transmission between the mobile terminal and the external device, if the speed of transmitting the data packet to the mobile terminal by the external device is too fast, the mobile terminal may identify a plurality of data packets sent by the external device as one data packet, which may cause a situation of an identification error in data interaction between the mobile terminal and the external device.
Disclosure of Invention
The invention mainly aims to provide a data transmission system and a data transmission method, and aims to solve the technical problem that data interaction between a mobile terminal and external equipment causes identification errors in the process that the mobile terminal realizes double LTE communication through the external equipment.
In order to achieve the above object, the data transmission system provided by the present invention includes a mobile terminal and an external device, wherein the mobile terminal is connected to the external device through a preset interface, the mobile terminal includes a first application processor and a first modem connected to an entity user identification card, and the external device includes a second application processor and a second modem connected to an embedded user identification card;
the second application processor is used for detecting whether a data packet in a sending state exists in the preset interface or not when a data sending instruction is detected after the data sending instruction enters an awakening state from a dormant state through a handshake keyword;
and the second application processor is further configured to send a data packet to be sent to the first application processor in the wake-up state through the preset interface after a first preset time elapses if the data packet in the send state does not exist in the preset interface.
Optionally, the second application processor is further configured to send a first handshake keyword to the first application processor when receiving the first data interaction request in the dormant state, and enter a first sending state from the dormant state;
and the second application processor is further used for entering an awakening state from the first sending state according to the second handshake keyword when the second handshake keyword corresponding to the first handshake keyword fed back by the first application processor is received within a second preset time.
Optionally, the first application processor is configured to, when receiving the first handshake keyword sent by the second application processor in a sleep state, detect whether the first handshake keyword is a residual packet;
the first application processor is further configured to enter a second sending state if the first handshake keyword is not a residual packet, and feed back the second handshake keyword to the second application processor;
and the first application processor is also used for entering a wake-up state from a second sending state after the second handshake keyword is fed back to the second application processor.
Optionally, the second application processor is further configured to, if the second handshake keyword is not received within the second preset time, resend the first handshake keyword to the first application processor;
the second application processor is further configured to enter a sleep state if the second handshake keyword is not received within the second preset time after the first handshake keyword is retransmitted to the first application processor.
Optionally, the first application processor is further configured to detect whether a second data interaction request is received within a third preset time when the data packet to be sent is received in an awake state;
the first application processor is further configured to enter a sleep state from a wake-up state if the second data interaction request is not received within 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 and an external device connected to the mobile terminal through a preset interface, the mobile terminal includes a first application processor and a first modem connected to an entity user identification card, and the external device includes a second application processor and a second modem connected to an embedded user identification card;
when the second application processor entering the awakening state from the dormant state through the handshake keywords detects a data sending instruction, detecting whether a data packet in the sending state exists in the preset interface or not;
if the data packet in the sending state does not exist in the preset interface, after a first preset time, the second application processor sends the data packet to be sent to the first application processor in the awakening state through the preset interface.
Optionally, before the step of detecting whether there is a data packet in a sending state in the preset interface when the second application processor entering the wake-up state from the sleep state through the handshake key detects a data sending instruction, the method further includes:
when the second application processor in the dormant state receives a first data interaction request, a first handshake keyword is sent to the first application processor, and the second application processor enters a first sending state from the dormant state;
and when a second handshake keyword corresponding to the first handshake keyword, which is fed back by the first application processor, is received within a second preset time, the second application processor enters an awakening state from the first sending state according to the second handshake keyword.
Optionally, the data transmission method further includes:
when the first application processor in the dormant state receives the first handshake keyword sent by the second application processor, the first application processor detects whether the first handshake keyword is a residual packet;
if the first handshake keyword is not a residual packet, the first application processor enters a second sending state and feeds back the second handshake keyword to the second application processor;
and after the second handshake keyword is fed back to the second application processor, the first application processor enters an awakening state from a second sending state.
Optionally, the sending a first handshake keyword to the first application processor when the second application processor in the sleep state receives a first data interaction request, and after the step of the second application processor entering the first sending state from the sleep state, the method further includes:
if the second application processor does not receive the second handshake keyword within the second preset time, resending the first handshake keyword to the first application processor;
and if the second application processor does not receive the second handshake keyword within the second preset time after the first handshake keyword is retransmitted to the first application processor, entering a dormant state.
Optionally, if there is no data packet in the sending state in the preset interface, after the step of sending, by the second application processor, the data packet to be sent to the first application processor in the awake state through the preset interface after a first preset time elapses, the method further includes:
when the first application processor in the awakening state receives the data packet to be sent, detecting whether a second data interaction request is received within a third preset time;
and if the second data interaction request is not received within the third preset time, the first application processor enters a dormant state from a wakeup state.
The invention provides a data transmission system and a method, wherein the data transmission method is applied to a mobile terminal and an external device connected with the mobile terminal through a preset interface, the mobile terminal comprises a first application processor and a first modem connected with an entity user identification card, and the external device comprises a second application processor and a second modem connected with an embedded user identification card; when the second application processor entering the awakening state from the dormant state through the handshake keywords detects a data sending instruction, detecting whether a data packet in the sending state exists in the preset interface or not; if the data packet in the sending state does not exist in the preset interface, after a first preset time, the second application processor sends the data packet to be sent to the first application processor in the awakening state through the preset interface. In the process that the mobile terminal realizes dual-LTE communication through the external equipment, when the data packet in the sending state does not exist in the preset interface, the second application processor sends the data packet to be sent to the first application processor only after the first preset time. The situation that the mobile terminal can identify a plurality of data packets sent by the external equipment as one data packet if the speed of the external equipment for transmitting the data packet to the mobile terminal is too high in the data packet transmission process of the mobile terminal and the external equipment is avoided, and the accuracy of identifying the data packet sent by the external equipment by the mobile terminal 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 communication connection between a mobile terminal and an external device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an entity of communication connection between a mobile terminal and an external device according to an embodiment of the present invention;
FIG. 4 is a first diagram illustrating a first application processor and a second application processor entering an awake state from a sleep state according to an embodiment of the present invention;
FIG. 5 is a second diagram illustrating a first application processor and a second application processor entering an awake state from a sleep state according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a first application processor and a second application processor entering a sleep state from a wake state according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a data transmission method according to a first embodiment of the present invention;
FIG. 8 is a flowchart illustrating a data transmission method according to a second embodiment of the present invention;
FIG. 9 is a flowchart illustrating a data transmission method according to a third embodiment of the present invention;
FIG. 10 is a flowchart illustrating a data transmission method according to a fourth embodiment of the present invention;
fig. 11 is a flowchart illustrating a data transmission method according to a fifth 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 eNodeB 101 provides protocol terminations towards the user plane and the control plane of the mobile terminal 100. eNodeB 101 may be connected to other enodebs via an X2 interface. The eNodeB 101 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 eNodeB 101 provides an access point for the mobile terminal 100 to the EPC.
eNodeB 101 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 communication connection between a mobile terminal and an external device according to an embodiment of the present invention. In the embodiment of the present invention, the mobile terminal 100 is connected to the external device 200 through a predetermined interface. The mobile terminal 100 includes a first processing chip 001 and a first radio frequency module 12 connected to the first processing chip 001. The first processing chip 001 includes a first Application Processor (Application Processor)10, a first modem 11(modem1) connected to a physical user identification card 13, an RPM (Resource Power Manager) 15, and a first timer 16, where the physical user identification card 13 is a SIM card. The external device 200 includes a second processing chip 002 and a second rf module 22 connected to the second processing chip 002. Wherein the second processing chip 002 includes a second application processor 20, a second modem (modem2)21 connected to the embedded subscriber identity card 23, and a second timer 26.
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 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 processors, for example, perform sleep, wake-up, synchronous control of the two application processors, control of a chip start-up sequence during startup and shutdown, and the like.
The first application processor 10 is connected with the second application processor 20 through a preset interface to realize the connection between the mobile terminal 100 and the external device 200. In the embodiment of the present invention, the 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. In the embodiment of the present invention, since the first modem 11 is connected with the physical subscriber identity card 13 and the second modem 21 is connected with the embedded subscriber identity card 23, the USB does not transmit the SIM card authentication data.
Specifically, The first application processor 10 and The second application processor 20 perform data interaction through an OTG (On-The-Go) technology. With OTG technology, the first modem 11 in the mobile terminal 100 may access the eNodeB 101 through SIM card parameters in the physical subscriber identity card 13, and the second modem 21 may access the eNodeB 101 through SIM card parameters of the embedded subscriber identity card 23, including but not limited to SIM card authentication data.
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)/CDMA (Code Division Multiple Access )/EDGE (Enhanced Data Rate for GSM Evolution). 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 are also used for management of SIM cards and the like.
The first radio frequency module 12 is configured to process data transmitted by the mobile terminal 100 and transmit the processed data to an eNodeB 101 (base station network), and is configured to process data transmitted by the eNodeB 101 and transmit the processed data to the mobile terminal 100. The second rf module 22 is configured to process data transmitted by the external device 200 and transmit the processed data to the eNodeB 101 (base station network), and is configured to process data transmitted by the eNodeB 101 and transmit the processed data to the external device 200.
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 physical subscriber identity card 13 is connected to the first modem 11. The embedded subscriber identity card 23 is connected to the second modem 21. The embedded Subscriber Identity card 23 is an ESIM (embedded Subscriber Identity module) card, and related card parameters are directly written into the ESIM card, and the ESIM card contains a programmable SIM card chip; the embedded subscriber identity module 23 includes a storage module and a Chip Operating System (COS), the storage module may be an EFS (encryption File System), and the storage module is used for storing authentication data of the embedded subscriber identity module 23.
The physical user identification card 13 and the embedded user identification card 23 may store user 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 user 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.).
When the embedded subscriber identity module 23 needs to perform network registration, a download request including service menu data is sent to a cloud server corresponding to the embedded subscriber identity module 23 through an open wireless fidelity (WIFI) network, so as to obtain data information of the embedded subscriber identity module 23 from the cloud server. When the data information of the embedded subscriber identity module card 23 is acquired, the data information is written into the storage module of the embedded subscriber identity module card 23, so as to realize the network registration of the embedded subscriber identity module card 23. Wherein, the data information may include: IMSI, Ki (key identifier), 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.
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 using the set of radio frequency module are 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, and 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, because the two subscriber identity cards support networks of different technical standards, one of the two subscriber identity cards supports 2G or 3G and the other supports 4G, when the mobile terminal 100 is registered in a network, the internet traffic speed is slow during the use of the mobile terminal 100. In the embodiment of the present invention, the mobile terminal 100 is connected to the external device 200 through the USB, since the external device 200 includes the second modem 21 connected to the embedded subscriber identity module 23 and the second rf module 22, and the second rf module 22 supports a 4G network. Therefore, the mobile terminal 100 may interact with the external device 200 through the USB, so that the mobile terminal 100 has a dual LTE function (at this time, the technical standards managed by the embedded subscriber identity card 23 and the physical subscriber identity card 13 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 physical subscriber identity card 13 may support LTE through the first modem 11 in the mobile terminal 100, and the embedded subscriber identity card 23 supports LTE through the second modem 21 in the external device).
When the mobile terminal 100 is not connected to the external device 200 through the USB, the technical standard corresponding to the physical user identification card 13 is GSM, which is used 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 13 interacts with the mobile terminal 100, a signal for the mobile terminal 100 to detect whether the physical subscriber identity card 13 exists is generated only at the moment of power-on, and when the physical subscriber identity card 13 does not exist at the moment of power-on detection, the mobile terminal 100 prompts 'insertion of the subscriber identity card' in a display screen thereof. After the mobile terminal 100 is powered on, the mobile terminal 100 and the physical subscriber identity card 13 are communicated once in 28 seconds, and some fixed communication checks (e.g., whether the subscriber identity card is in place, etc.) are completed.
It should be noted that, since the first modem 11 of the mobile terminal 100 is connected to the physical subscriber identity card 13 and the second modem 21 of the external device 200 is connected to the embedded subscriber identity card 23, the first modem 11 and the second modem 21 are independent of each other, and the second modem 21 does not wake up the first modem 11.
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 RPM15 when the resources are needed, each subsystem includes a first application processor 10, a first modem 11, a PRONTO (WIFI/bluetooth, NFC (Near Field Communication, etc.), an LPASS (Low power audio subsystem), and an RPM15, where RPM 3526 is used to determine a sleep state of the mobile terminal 100 system, specifically, RPM15 is implemented based on a voting mechanism of each subsystem, and when each subsystem casts a sleep ticket, RPM15 may enable the entire system of the mobile terminal 100 to sleep. When the mobile terminal 100 has one or more subsystems casting a vote against hibernation, the whole system of the mobile terminal 100 cannot be hibernated.
In the case that the mobile terminal 100 and the external device 200 are connected through USB communication, the wake-up mode may be the following three types:
1. when the first application processor 10 receives the signaling data, it sends a handshake key 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 handshake key 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 a paging request is received, the second modem 21 wakes up the second application processor 20, and the second application processor 20 sends a handshake key to the first application processor 10 through 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 interaction between the mobile terminal 100 and the external device 200, 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 awake state from the sleep state for a certain time, and 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 sleep state from the awake state for a certain time. In the embodiment of the present invention, the number of the timers in the mobile terminal 100 and the external device 200 may be one or more.
Referring to fig. 3, fig. 3 is a schematic structural diagram of the entity of the communication connection between the mobile terminal 100 and the external device 200 according to the present invention. The mobile terminal 100 is in communication connection with the external device 200 through a USB, wherein the mobile terminal includes, but is not limited to, a mobile phone, a PC (Personal Computer) or a PAD (Personal Digital Assistant), and the external device 200 includes, but is not limited to, a wireless internet card and a data card. It should be noted that the connection position of the mobile terminal 100 and the external device 200 through the USB is not limited to that shown in fig. 3, and the connection position of the mobile terminal 100 and the external device 200 through the USB may be set according to specific needs.
Based on the LTE network architecture diagram, the hardware structure diagram and the entity structure diagram of the communication connection between the mobile terminal 100 and the external device 200, the embodiments of the present invention are provided.
The embodiment provides a data transmission system, which includes a mobile terminal 100 and an external device 200, wherein the mobile terminal 100 is connected to the external device 200 through a preset interface, the mobile terminal 100 includes a first application processor 10, a first radio frequency module 12, a first timer 16 and a first modem 11 connected to an entity user identification card 13, and the external device 200 includes a second application processor 20, a second radio frequency module 22, a second timer 26 and a second modem 21 connected to an embedded user identification card 23.
The second application processor 20 is configured to detect whether a data packet in a sending state exists in a preset interface when a data sending instruction is detected after entering an awake state from a sleep state through a handshake keyword;
the second application processor 20 is further configured to send, if there is no data packet in a sending state in the preset interface, the data packet to be sent to the first application processor 10 in the wake-up state through the preset interface after a first preset time elapses.
When the second application processor 20 entering the awake state from the sleep state through the handshake keyword detects a data transmission instruction, the second application processor 20 detects whether a data packet in the transmission state exists in the preset interface, that is, whether a data packet that has not been transmitted exists in the preset interface. If there is no data packet in the transmission state in the preset interface, the second timer 26 is started, and the second timer 26 is initialized, so that the value of the second timer 26 is zero. When the value of the second timer 26 is equal to or greater than the first preset time, that is, after the first preset time elapses, the second application processor 20 sends the data packet to be sent to the first application processor 10 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 application processor 20 suspends sending the data packet to be sent to the first application processor 10, i.e. the time interval for the second application processor 20 to send the data packet to be responded to the first application processor 10 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. In this embodiment, the predetermined interface is a USB, and in other embodiments, the predetermined interface may be an interface having the same function as the USB.
Further, when the data sending command is triggered by the second modem 21, the predetermined interface is USB, and the data packet to be sent needs to be sent to the first modem, a transmission process of the data packet to be sent between the mobile terminal 100 and the external device 200 specifically includes: the second modem 21 sends the data packet to be sent to the second application processor 20 through an smd (shared memory driver) channel, the second application processor 20 sends the data packet to be sent to the first application processor 10 through a USB interface, and the first application processor 10 receives the data packet to be sent and sends the data packet to be sent to the first modem 11 through the smd channel.
Further, when there is a data packet in the transmission state in the predetermined interface, the second application processor 20 waits for the data packet in the transmission state in the predetermined interface to be completely transmitted to the first application processor 10.
Further, when the second application processor 20 detects that there is no data packet in the sending state in the preset interface, the second application processor 20 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 application processor 10 through the preset interface. If there is no data packet to be sent in the transmission 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, there is no data packet to be sent in the transmission queue, and the second application processor 20 initializes the second timer 26 again. When the value of the second timer 26 is greater than or equal to the set time value, and there is no data packet waiting to be sent in the sending queue, the second application processor 20 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 still not yet to be transmitted in the transmission queue, a sleep function of the USB interface protocol itself is called to perform a sleep operation of the USB, and the USB sleep releases the occupied clock resource, so as to implement sleep of the application processor and the modem in the mobile terminal 100 and the external device 200.
In this embodiment, when the second application processor 20 entering the wake-up state from the sleep state through the handshake key detects a data transmission instruction, it detects whether a data packet in the transmission state exists in the preset interface; if the data packet in the sending state does not exist in the preset interface, after the first preset time elapses, the second application processor 20 sends the data packet to be sent to the first application processor 10 in the awake state through the preset interface. In the process that the mobile terminal 100 implements dual LTE communication through the external device 200, when there is no data packet in a transmission state in a preset interface, the second application processor 20 transmits the data packet to be transmitted to the first application processor 10 only after a first preset time elapses. The situation that the mobile terminal 100 recognizes a plurality of data packets sent by the external device 200 as one data packet if the speed of transmitting the data packet to the mobile terminal 100 by the external device 200 is too fast in the data packet transmission process of the mobile terminal 100 and the external device 200 is avoided, and the accuracy of recognizing the data packet sent by the external device 200 by the mobile terminal 100 is improved.
Further, a second embodiment of the data transmission system of the present invention is presented.
The second embodiment of the data transmission system differs from the first embodiment of the data transmission system in that the second application processor 20 is further configured to send a first handshake keyword to the first application processor 10 when receiving a first data interaction request in the sleep state, and enter a first sending state from the sleep state;
the second application processor 20 is further configured to enter the wake-up state from the first sending state according to the second handshake keyword when the second handshake keyword corresponding to the first handshake keyword fed back by the first application processor 10 is received within a second preset time.
In the present embodiment, the first handshake key and the second handshake key are not normal packets, but are signaling data for controlling the first application processor 10 and the second application processor 20 to enter the other state from the sleep state. The first handshake keyword and the second handshake keyword may be identified by characters of a fixed word length, which are fields that do not occur in normal data packets. As in the present embodiment, the first handshake key may be represented by 0xF9F9, and the second handshake key may be represented by 0x9F9F, and in other embodiments, other handshake keys may be used, such as 0xF3F3 and 0x3F 3F.
The first handshake key indicates a request to enter a wake-up state and the second handshake key indicates a request to enter a wake-up state. The first application processor 10 and the second application processor 20 receive the normal data packet only when they are in the wake-up state. Therefore, in the present embodiment, the normal data transmitted between the first application processor 10 and the second application processor 20 does not include a data packet having the same content and the same length as the first handshake key and the second handshake key. If the data packet exists, the first application processor 10 and the second application processor 20 discard the data packet with the same length and content as the first handshake key and the second handshake key.
Referring to fig. 4, the specific process of the second application processor 20 entering the wake-up state from the sleep state through the handshake key is as follows: when the second application processor 20 in the sleep state receives the first data interaction request, a first handshake keyword is sent to the first application processor 10, and the first application processor 10 is required to enter the wake state. After the second application processor 20 sends the first handshake key to the first application processor 10, the first sending state of sending the handshake key is entered from the sleep state, and the second timer 26 is started, the second timer 26 is initialized, the initial value of the second timer 26 is equal to zero, and the timing is started. The detection mechanism for the second handshake key is triggered at the same time as the second timer 26 starts counting. If the value of the second timer 26 is less than or equal to the second preset time, the second application processor 20 receives the second handshake keyword corresponding to the first handshake keyword fed back by the first application processor 10, and the second application processor 20 requests to enter the awake state, that is, when the second application processor 20 receives the second handshake keyword within the second preset time, the second application processor 20 enters the awake state from the first sending state according to the second handshake keyword.
It should be noted that the first data interaction request received by the second application processor 20 may be a data request received by the second application processor 20 from the eNodeB 101, or the second application processor 20 needs to access a 2G, 3G, or 4G network, or the second application processor 20 has an authentication requirement, etc. It will be appreciated that the first sending state is an intermediate state in which the second application processor 20 enters the wake-up state from the sleep state.
Further, the external device 200 further includes a third timer. Referring to fig. 6, the specific process of the second application processor 20 entering the sleep state from the wake state is as follows: when the second application processor 20 enters the wake-up state, the third timer is initialized to have an initial value of zero, and starts timing. If the second application processor 20 does not receive the first data interaction request when the value of the third timer is greater than or equal to the preset time length, the second application processor 20 enters the sleep state from the wake state.
In this embodiment, the second preset time is 10ms, and the preset time duration is 500 ms. In other embodiments, the preset time period and the second preset time may be set to other values, for example, the second preset time may be set to 12ms or 15ms, and the preset time period may be set to 550ms or 480 ms.
In this embodiment, when the second application processor 20 in the dormant state receives the first data interaction request, the wake-up state is performed from the dormant state through the handshake keyword, so as to ensure that the first application processor 10 and the second application processor 20 are in the complete wake-up state in the data interaction process between the second application processor 20 and the first application processor 10, so that the mobile terminal 100 and the external device 200 can normally communicate in the process of implementing the dual LTE communication through the external device 200.
Further, a third embodiment of the data transmission system of the present invention is presented.
The third embodiment of the data transmission system is different from the second embodiment of the data transmission system in that the first application processor 10 is configured to detect whether the first handshake keyword is a residual packet when receiving the first handshake keyword sent by the second application processor 20 in a sleep state;
the first application processor 10 is further configured to enter a second sending state if the first handshake keyword is not a residual packet, and feed back the second handshake keyword to the second application processor 20;
the first application processor 10 is further configured to enter the wake-up state from the second sending state after feeding back the second handshake key to the second application processor 20.
Referring to fig. 4, the specific process of the first application processor 10 entering the wake-up state from the sleep state is as follows: when the first application processor 10 in the sleep state receives the first handshake key transmitted by the second application processor 20, the first application processor 10 detects whether the first handshake key is a residual packet. If the first handshake keyword is a normal packet, the first application processor 10 enters the second sending state, and feeds back the second handshake keyword corresponding to the first handshake keyword to the second application processor 20. After the first application processor 10 feeds back the second handshake key to the second application processor 20, the first application processor 10 enters the wake-up state from the second sending state. It will be appreciated that the second sending state is an intermediate state in which the first application processor 10 enters the wake-up state from the sleep state. Further, after the first application processor 10 feeds back the second handshake keyword to the second application processor 20, the first application processor 10 may enter the awake state from the second sending state after receiving the data packet to be sent by the second application processor 20.
Further, the specific process of the first application processor 10 detecting whether the first handshake keyword is a incomplete packet is as follows: when the first application processor 10 receives the first handshake keyword, the first application processor 10 determines whether the word length of the first handshake keyword is equal to the fixed word length. If the word length of the first handshake keyword is equal to the fixed word length, determining that the first handshake keyword is not a residual packet; and if the word length of the first handshake keyword is not equal to the fixed word length, determining that the first handshake keyword is a residual packet. It is understood that the method for the first application processor 10 to detect whether the first handshake key is a residual packet is not limited to the method described in this embodiment, for example, when the first handshake key contains a watermark, the first application processor 10 may also detect whether the first handshake key is a residual packet by determining whether the watermark in the first handshake key is complete and whether the watermark is tampered.
Further, when the first handshake key is a residual packet, the first application processor 10 does not send the second handshake key to the second application processor 20, and waits for the second application processor 20 to send the first handshake key again.
In this embodiment, the first application processor 10 in the sleep state enters the wake-up state from the sleep state through the received first handshake keyword, so as to ensure that the first application processor 10 and the second application processor 20 are in the complete wake-up state during the data interaction process between the second application processor 20 and the first application processor 10, so that the mobile terminal 100 and the external device 200 can normally communicate during the dual LTE communication process of the mobile terminal 100 through the external device 200.
Further, a fourth embodiment of the data transmission system of the present invention is presented.
The fourth embodiment of the data transmission system is different from the second embodiment of the data transmission system in that the second application processor 20 is further configured to resend the first handshake keyword to the first application processor 10 if the second handshake keyword is not received within a second preset time;
the second application processor 20 is further configured to enter a sleep state if the second handshake keyword is not received within a second preset time after the first handshake keyword is retransmitted to the first application processor 10.
Referring to fig. 5, if the second application processor 20 does not receive the second handshake key within the second preset time, the second application processor 20 enters the third sending state, resends the first handshake key to the first application processor 10, and initializes the second timer 26 again, so that the initial value of the second timer 26 is equal to zero, and starts timing. The detection mechanism for the second handshake key is triggered at the same time as the second timer 26 starts counting. If the second application processor 20 does not receive the second handshake keyword within the second preset time after resending the first handshake keyword to the first application processor 10, the second application processor 20 enters the sleep state from the third sending state, that is, when the value of the second timer 20 is equal to or greater than the second preset time, the second application processor 20 does not receive the second handshake keyword, and the sleep state is entered. If the second handshake keyword is received within the second preset time, the second application processor 20 enters the wake-up state from the third sending state. It will be appreciated that the third transmit state is an intermediate state in which the second application processor 20 enters the awake state from the sleep state. It is to be understood that the number of times the second application processor 20 retransmits the first handshake key when the second application processor 20 does not receive the second handshake key within the second preset time may be set as needed.
In this embodiment, the second application processor 20 does not receive the second handshake key within the second preset time, and the second application processor 20 retransmits the first handshake key to the first application processor 10, so as to prevent the first application processor 10 from being in the incomplete wake state when the second application processor 20 transmits the data packet to be transmitted to the first application processor 10.
Further, a fifth embodiment of the data transmission system of the present invention is presented.
The fifth embodiment of the data transmission system is different from the first embodiment of the data transmission system in that the first application processor 10 is further configured to detect whether a second data interaction request is received within a third preset time when receiving a data packet to be sent in an awake state;
the first application processor 10 is further configured to enter a sleep state from the wake state if the second data interaction request is not received within a third preset time.
Referring to fig. 6, the specific process of the first application processor 10 entering the sleep state from the wake state is as follows: after the first application processor 10 enters the wake-up state, it is detected whether a second data interaction request is received within a third preset time. When the first application processor 10 does not receive the second data interaction request within the third preset time, the first application processor 10 enters the sleep state from the wake state; when the first application processor 10 receives the second data interaction request within the third preset time, the first application processor 10 continues to maintain the wake-up state.
Specifically, the first application processor 10 may be clocked by the first timer 16. When the first application processor 10 enters the wake-up state, the first timer 16 is started, and the first timer 16 is initialized to have an initial value of zero in the first timer 16. When the value of the first timer 16 is greater than or equal to the third preset time and the first application processor 10 does not receive the second data interaction request, the first application processor 10 enters the sleep state from the wake state.
In the present embodiment, the third preset time is 500 ms. In other embodiments, the third preset time may be set to other values, for example, the third preset time may be set to 550ms, or set to 490ms, etc. The second data interaction request received by the first application processor 10 may be a data request received by the first application processor 10 from the eNodeB 101, or the first application processor 10 needs to access a 2G, 3G, or 4G network, or the first application processor 10 needs to interact data with the second application processor 20, etc.
In this embodiment, when the first application processor 10 in the wake-up state does not receive the second data interaction request within the third preset time, the first application processor 10 enters the sleep state from the wake-up state, so that the first application processor 10 enters the sleep state when data interaction is not required within a certain time, thereby reducing power consumption of the mobile terminal 100.
The invention also provides a data transmission method.
Referring to fig. 7, fig. 7 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 connected with an external device 200 through a preset interface, the mobile terminal 100 includes a first application processor 10, a first radio frequency module 12, a first timer 16 and a first modem 11 connected with an entity user identification card 13, and the external device 200 includes a second application processor 20, a second radio frequency module 22, a second timer 26 and a second modem 21 connected with an embedded user identification card 23.
In step S10, when the second application processor 20 entering the wake-up state from the sleep state through the handshake key detects a data transmission instruction, it is detected whether a data packet in the transmission state exists in the predetermined interface.
In step S20, if there is no data packet in the transmission state in the preset interface, after the first preset time elapses, the second application processor 20 transmits the data packet to be transmitted to the first application processor 10 in the wake-up state through the preset interface.
When the second application processor 20 entering the awake state from the sleep state through the handshake keyword detects a data transmission instruction, the second application processor 20 detects whether a data packet in the transmission state exists in the preset interface, that is, whether a data packet that has not been transmitted exists in the preset interface. If there is no data packet in the transmission state in the preset interface, the second timer 26 is started, and the second timer 26 is initialized, so that the value of the second timer 26 is zero. When the value of the second timer 26 is equal to or greater than the first preset time, that is, after the first preset time elapses, the second application processor 20 sends the data packet to be sent to the first application processor 10 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 application processor 20 suspends sending the data packet to be sent to the first application processor 10, i.e. the time interval for the second application processor 20 to send the data packet to be responded to the first application processor 10 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. In this embodiment, the predetermined interface is a USB, and in other embodiments, the predetermined interface may be an interface having the same function as the USB.
Further, when the data sending command is triggered by the second modem 21, the predetermined interface is USB, and the data packet to be sent needs to be sent to the first modem, a transmission process of the data packet to be sent between the mobile terminal 100 and the external device 200 specifically includes: the second modem 21 sends the data packet to be sent to the second application processor 20 through an smd (shared memory driver) channel, the second application processor 20 sends the data packet to be sent to the first application processor 10 through a USB interface, and the first application processor 10 receives the data packet to be sent and sends the data packet to be sent to the first modem 11 through the smd channel.
Further, when there is a data packet in the transmission state in the predetermined interface, the second application processor 20 waits for the data packet in the transmission state in the predetermined interface to be completely transmitted to the first application processor 10.
Further, when the second application processor 20 detects that there is no data packet in the sending state in the preset interface, the second application processor 20 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 application processor 10 through the preset interface. If there is no data packet to be sent in the transmission 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, there is no data packet to be sent in the transmission queue, and the second application processor 20 initializes the second timer 26 again. When the value of the second timer 26 is greater than or equal to the set time value, and there is no data packet waiting to be sent in the sending queue, the second application processor 20 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 still not yet to be transmitted in the transmission queue, a sleep function of the USB interface protocol itself is called to perform a sleep operation of the USB, and the USB sleep releases the occupied clock resource, so as to implement sleep of the application processor and the modem in the mobile terminal 100 and the external device 200.
In this embodiment, when the second application processor 20 entering the wake-up state from the sleep state through the handshake key detects a data transmission instruction, it detects whether a data packet in the transmission state exists in the preset interface; if the data packet in the sending state does not exist in the preset interface, after the first preset time elapses, the second application processor 20 sends the data packet to be sent to the first application processor 10 in the awake state through the preset interface. In the process that the mobile terminal 100 implements dual LTE communication through the external device 200, when there is no data packet in a transmission state in a preset interface, the second application processor 20 transmits the data packet to be transmitted to the first application processor 10 only after a first preset time elapses. The situation that the mobile terminal 100 recognizes a plurality of data packets sent by the external device 200 as one data packet if the speed of transmitting the data packet to the mobile terminal 100 by the external device 200 is too fast in the data packet transmission process of the mobile terminal 100 and the external device 200 is avoided, and the accuracy of recognizing the data packet sent by the external device 200 by the mobile terminal 100 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. 8, the data transmission method further includes:
in step S30, when the second application processor 20 in the sleep state receives the first data interaction request, the first handshake keyword is sent to the first application processor 10, and the second application processor 20 enters the first sending state from the sleep state.
In step S40, when receiving the second handshake keyword corresponding to the first handshake keyword fed back by the first application processor 10 within the second preset time, the second application processor 20 enters the wake-up state from the first sending state according to the second handshake keyword.
In the present embodiment, the first handshake key and the second handshake key are not normal packets, but are signaling data for controlling the first application processor 10 and the second application processor 20 to enter the other state from the sleep state. The first handshake keyword and the second handshake keyword may be identified by characters of a fixed word length, which are fields that do not occur in normal data packets. As in the present embodiment, the first handshake key may be represented by 0xF9F9, and the second handshake key may be represented by 0x9F9F, and in other embodiments, other handshake keys may be used, such as 0xF3F3 and 0x3F 3F.
The first handshake key indicates a request to enter a wake-up state and the second handshake key indicates a request to enter a wake-up state. The first application processor 10 and the second application processor 20 receive the normal data packet only when they are in the wake-up state. Therefore, in the present embodiment, the normal data transmitted between the first application processor 10 and the second application processor 20 does not include a data packet having the same content and the same length as the first handshake key and the second handshake key. If the data packet exists, the first application processor 10 and the second application processor 20 discard the data packet with the same length and content as the first handshake key and the second handshake key.
Referring to fig. 4, the specific process of the second application processor 20 entering the wake-up state from the sleep state through the handshake key is as follows: when the second application processor 20 in the sleep state receives the first data interaction request, a first handshake keyword is sent to the first application processor 10, and the first application processor 10 is required to enter the wake state. After the second application processor 20 sends the first handshake key to the first application processor 10, the first sending state of sending the handshake key is entered from the sleep state, and the second timer 26 is started, the second timer 26 is initialized, the initial value of the second timer 26 is equal to zero, and the timing is started. The detection mechanism for the second handshake key is triggered at the same time as the second timer 26 starts counting. If the value of the second timer 26 is less than or equal to the second preset time, the second application processor 20 receives the second handshake keyword corresponding to the first handshake keyword fed back by the first application processor 10, and the second application processor 20 requests to enter the awake state, that is, when the second application processor 20 receives the second handshake keyword within the second preset time, the second application processor 20 enters the awake state from the first sending state according to the second handshake keyword.
It should be noted that the first data interaction request received by the second application processor 20 may be a data request received by the second application processor 20 from the eNodeB 101, or the second application processor 20 needs to access a 2G, 3G, or 4G network, or the second application processor 20 has an authentication requirement, etc. It will be appreciated that the first sending state is an intermediate state in which the second application processor 20 enters the wake-up state from the sleep state.
Further, the external device 200 further includes a third timer. Referring to fig. 6, the specific process of the second application processor 20 entering the sleep state from the wake state is as follows: when the second application processor 20 enters the wake-up state, the third timer is initialized to have an initial value of zero, and starts timing. If the second application processor 20 does not receive the first data interaction request when the value of the third timer is greater than or equal to the preset time length, the second application processor 20 enters the sleep state from the wake state.
In this embodiment, the second preset time is 10ms, and the preset time duration is 500 ms. In other embodiments, the preset time period and the second preset time may be set to other values, for example, the second preset time may be set to 12ms or 15ms, and the preset time period may be set to 550ms or 480 ms.
In this embodiment, when the second application processor 20 in the dormant state receives the first data interaction request, the wake-up state is performed from the dormant state through the handshake keyword, so as to ensure that the first application processor 10 and the second application processor 20 are in the complete wake-up state in the data interaction process between the second application processor 20 and the first application processor 10, so that the mobile terminal 100 and the external device 200 can normally communicate in the process of implementing the dual LTE communication through the external device 200.
Further, a third embodiment of the data transmission method of the present invention is provided.
The third embodiment of the data transmission method is different from the second embodiment of the data transmission method in that, referring to fig. 9, the data transmission method further includes:
in step S50, when the first application processor 10 in the sleep state receives the first handshake keyword sent by the second application processor 20, the first application processor 10 detects whether the first handshake keyword is a incomplete packet.
In step S60, if the first handshake keyword is not a residual packet, the first application processor 10 enters a second sending state, and feeds back the second handshake keyword to the second application processor 20.
In step S70, after feeding back the second handshake key to the second application processor 20, the first application processor 10 enters the wake-up state from the second sending state.
Referring to fig. 4, the specific process of the first application processor 10 entering the wake-up state from the sleep state is as follows: when the first application processor 10 in the sleep state receives the first handshake key transmitted by the second application processor 20, the first application processor 10 detects whether the first handshake key is a residual packet. If the first handshake keyword is a normal packet, the first application processor 10 enters the second sending state, and feeds back the second handshake keyword corresponding to the first handshake keyword to the second application processor 20. After the first application processor 10 feeds back the second handshake key to the second application processor 20, the first application processor 10 enters the wake-up state from the second sending state. It will be appreciated that the second sending state is an intermediate state in which the first application processor 10 enters the wake-up state from the sleep state. Further, after the first application processor 10 feeds back the second handshake keyword to the second application processor 20, the first application processor 10 may enter the awake state from the second sending state after receiving the data packet to be sent by the second application processor 20.
Further, the specific process of the first application processor 10 detecting whether the first handshake keyword is a incomplete packet is as follows: when the first application processor 10 receives the first handshake keyword, the first application processor 10 determines whether the word length of the first handshake keyword is equal to the fixed word length. If the word length of the first handshake keyword is equal to the fixed word length, determining that the first handshake keyword is not a residual packet; and if the word length of the first handshake keyword is not equal to the fixed word length, determining that the first handshake keyword is a residual packet. It is understood that the method for the first application processor 10 to detect whether the first handshake key is a residual packet is not limited to the method described in this embodiment, for example, when the first handshake key contains a watermark, the first application processor 10 may also detect whether the first handshake key is a residual packet by determining whether the watermark in the first handshake key is complete and whether the watermark is tampered.
Further, when the first handshake key is a residual packet, the first application processor 10 does not send the second handshake key to the second application processor 20, and waits for the second application processor 20 to send the first handshake key again.
In this embodiment, the first application processor 10 in the sleep state enters the wake-up state from the sleep state through the received first handshake keyword, so as to ensure that the first application processor 10 and the second application processor 20 are in the complete wake-up state during the data interaction process between the second application processor 20 and the first application processor 10, so that the mobile terminal 100 and the external device 200 can normally communicate during the dual LTE communication process of the mobile terminal 100 through the external device 200.
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. 10, the data transmission method further includes:
in step S80, if the second application processor 20 does not receive the second handshake key within the second predetermined time, the first handshake key is re-sent to the first application processor 10.
In step S90, if the second application processor 20 has not received the second handshake keyword within the second preset time after resending the first handshake keyword to the first application processor 10, the second application processor enters the sleep state.
Referring to fig. 5, if the second application processor 20 does not receive the second handshake key within the second preset time, the second application processor 20 enters the third sending state, resends the first handshake key to the first application processor 10, and initializes the second timer 26 again, so that the initial value of the second timer 26 is equal to zero, and starts timing. The detection mechanism for the second handshake key is triggered at the same time as the second timer 26 starts counting. If the second application processor 20 does not receive the second handshake keyword within the second preset time after resending the first handshake keyword to the first application processor 10, the second application processor 20 enters the sleep state from the third sending state, that is, when the value of the second timer 20 is equal to or greater than the second preset time, the second application processor 20 does not receive the second handshake keyword, and the sleep state is entered. If the second handshake keyword is received within the second preset time, the second application processor 20 enters the wake-up state from the third sending state. It will be appreciated that the third transmit state is an intermediate state in which the second application processor 20 enters the awake state from the sleep state. It is to be understood that the number of times the second application processor 20 retransmits the first handshake key when the second application processor 20 does not receive the second handshake key within the second preset time may be set as needed.
In this embodiment, the second application processor 20 does not receive the second handshake key within the second preset time, and the second application processor 20 retransmits the first handshake key to the first application processor 10, so as to prevent the first application processor 10 from being in the incomplete wake state when the second application processor 20 transmits the data packet to be transmitted to the first application processor 10.
Further, a fifth embodiment of the data transmission method of the present invention is provided.
The fourth embodiment of the data transmission method differs from the first embodiment of the data transmission method in that, referring to fig. 11, the data transmission method further includes:
step S110, when the first application processor 10 in the wake-up state receives a data packet to be sent, detecting whether a second data interaction request is received within a third preset time.
In step S120, if the second data interaction request is not received within the third preset time, the first application processor 10 enters the sleep state from the wake state.
Referring to fig. 6, the specific process of the first application processor 10 entering the sleep state from the wake state is as follows: after the first application processor 10 enters the wake-up state, it is detected whether a second data interaction request is received within a third preset time. When the first application processor 10 does not receive the second data interaction request within the third preset time, the first application processor 10 enters the sleep state from the wake state; when the first application processor 10 receives the second data interaction request within the third preset time, the first application processor 10 continues to maintain the wake-up state.
Specifically, the first application processor 10 may be clocked by the first timer 16. When the first application processor 10 enters the wake-up state, the first timer 16 is started, and the first timer 16 is initialized to have an initial value of zero in the first timer 16. When the value of the first timer 16 is greater than or equal to the third preset time and the first application processor 10 does not receive the second data interaction request, the first application processor 10 enters the sleep state from the wake state.
In the present embodiment, the third preset time is 500 ms. In other embodiments, the third preset time may be set to other values, for example, the third preset time may be set to 550ms, or set to 490ms, etc. The second data interaction request received by the first application processor 10 may be a data request received by the first application processor 10 from the eNodeB 101, or the first application processor 10 needs to access a 2G, 3G, or 4G network, or the first application processor 10 needs to interact data with the second application processor 20, etc.
In this embodiment, when the first application processor 10 in the wake-up state does not receive the second data interaction request within the third preset time, the first application processor 10 enters the sleep state from the wake-up state, so that the first application processor 10 enters the sleep state when data interaction is not required within a certain time, thereby reducing power consumption of the mobile terminal 100.
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 data transmission system is characterized in that the data transmission system comprises a mobile terminal and an external device, the mobile terminal is connected with the external device through a preset interface, the mobile terminal comprises a first application processor and a first modem connected with an entity user identification card, and the external device comprises a second application processor and a second modem connected with an embedded user identification card;
the second application processor is also used for sending a first handshake keyword to the first application processor when receiving a first data interaction request in a dormant state, and entering a first sending state from the dormant state;
the second application processor is further configured to enter an awake state from the first sending state according to a second handshake keyword when the second handshake keyword corresponding to the first handshake keyword, which is fed back by the first application processor, is received within a second preset time;
the second application processor is used for detecting whether a data packet in a sending state exists in the preset interface or not when a data sending instruction is detected after the data sending instruction enters an awakening state from a dormant state through a handshake keyword;
and the second application processor is further configured to send a data packet to be sent to the first application processor in the wake-up state through the preset interface after a first preset time elapses if the data packet in the send state does not exist in the preset interface.
2. The data transmission system according to claim 1, wherein the first application processor is configured to detect whether the first handshake keyword is a residual packet when the first handshake keyword sent by the second application processor is received in a sleep state;
the first application processor is further configured to enter a second sending state if the first handshake keyword is not a residual packet, and feed back the second handshake keyword to the second application processor;
and the first application processor is also used for entering a wake-up state from a second sending state after the second handshake keyword is fed back to the second application processor.
3. The data transmission system of claim 1, wherein the second application processor is further configured to resend the first handshake key to the first application processor if the second handshake key is not received within the second predetermined time;
the second application processor is further configured to enter a sleep state if the second handshake keyword is not received within the second preset time after the first handshake keyword is retransmitted to the first application processor.
4. The data transmission system according to any one of claims 1 to 3, wherein the first application processor is further configured to detect whether a second data interaction request is received within a third preset time when the data packet to be transmitted is received in an awake state;
and the first application processor is further used for entering a sleep state from the wake-up state if the second data interaction request is not received within a third preset time.
5. A data transmission method is characterized in that the data transmission method is applied to a mobile terminal and an external device connected with the mobile terminal through a preset interface, the mobile terminal comprises a first application processor and a first modem connected with an entity user identification card, and the external device comprises a second application processor and a second modem connected with an embedded user identification card;
when the second application processor in the dormant state receives a first data interaction request, a first handshake keyword is sent to the first application processor, and the second application processor enters a first sending state from the dormant state;
when a second handshake keyword corresponding to the first handshake keyword, which is fed back by the first application processor, is received within a second preset time, the second application processor enters an awakening state from the first sending state according to the second handshake keyword;
when the second application processor entering the awakening state from the dormant state through the handshake keywords detects a data sending instruction, detecting whether a data packet in the sending state exists in the preset interface or not;
if the data packet in the sending state does not exist in the preset interface, after a first preset time, the second application processor sends the data packet to be sent to the first application processor in the awakening state through the preset interface.
6. The data transmission method of claim 5, wherein the data transmission method further comprises:
when the first application processor in the dormant state receives the first handshake keyword sent by the second application processor, the first application processor detects whether the first handshake keyword is a residual packet;
if the first handshake keyword is not a residual packet, the first application processor enters a second sending state and feeds back the second handshake keyword to the second application processor;
and after the second handshake keyword is fed back to the second application processor, the first application processor enters an awakening state from a second sending state.
7. The data transmission method according to claim 5, wherein the step of sending a first handshake key to the first application processor when the second application processor in the sleep state receives a first data interaction request, and the second application processor entering the first sending state from the sleep state further comprises:
if the second application processor does not receive the second handshake keyword within the second preset time, resending the first handshake keyword to the first application processor;
and if the second application processor does not receive the second handshake keyword within the second preset time after the first handshake keyword is retransmitted to the first application processor, entering a dormant state.
8. The data transmission method according to any one of claims 5 to 7, wherein, after the step of sending, by the second application processor, the data packet to be sent to the first application processor in the awake state through the preset interface after a first preset time elapses if there is no data packet in the send state in the preset interface, the method further includes:
when the first application processor in the awakening state receives the data packet to be sent, detecting whether a second data interaction request is received within a third preset time;
and if the second data interaction request is not received within third preset time, the first application processor enters a dormant state from a wakeup state.
CN201710206715.6A 2017-03-30 2017-03-30 Data transmission system and method Active CN107018560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710206715.6A CN107018560B (en) 2017-03-30 2017-03-30 Data transmission system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710206715.6A CN107018560B (en) 2017-03-30 2017-03-30 Data transmission system and method

Publications (2)

Publication Number Publication Date
CN107018560A CN107018560A (en) 2017-08-04
CN107018560B true CN107018560B (en) 2020-11-17

Family

ID=59444899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710206715.6A Active CN107018560B (en) 2017-03-30 2017-03-30 Data transmission system and method

Country Status (1)

Country Link
CN (1) CN107018560B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730270B (en) * 2009-11-23 2012-04-18 中国电信股份有限公司 Method for optimizing data transmission of mobile terminal and mobile terminal
KR20130131959A (en) * 2012-05-25 2013-12-04 삼성전자주식회사 Method and apparatus for controlling dormancy mode in portable terminal
CN202696911U (en) * 2012-05-25 2013-01-23 深圳市江波龙电子有限公司 Wireless communication system and wireless communication expansion device
CN104702767A (en) * 2013-12-04 2015-06-10 中国电信股份有限公司 Method, subscriber identity module card and system used for sending messages
CN203745958U (en) * 2013-12-30 2014-07-30 比亚迪股份有限公司 SIM card extension device and mobile terminal extension system with same
JP2016131312A (en) * 2015-01-14 2016-07-21 国立大学法人京都大学 Communication control method and communication apparatus
CN105960000A (en) * 2016-06-12 2016-09-21 努比亚技术有限公司 Dormancy awakening method and processor
CN106372012B (en) * 2016-08-25 2018-12-25 长沙丰灼通讯科技有限公司 A kind of serial ports wake-up system and serial port communication method without using control line of shaking hands

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Performance improvements of Universal Mobile Telecommunications System enhanced uplink using mitigation scheme in single Tx and dual Rx dual-SIM dual-active devices;G. Jung等;《IEEE》;20151217;全文 *
无线传感器网络GPRS功能开发中的双向数据传输;严晨哲等;《数据通信》;20130228;全文 *

Also Published As

Publication number Publication date
CN107018560A (en) 2017-08-04

Similar Documents

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