CN107087057B - Data transmission system and method - Google Patents

Data transmission system and method Download PDF

Info

Publication number
CN107087057B
CN107087057B CN201710204469.0A CN201710204469A CN107087057B CN 107087057 B CN107087057 B CN 107087057B CN 201710204469 A CN201710204469 A CN 201710204469A CN 107087057 B CN107087057 B CN 107087057B
Authority
CN
China
Prior art keywords
application processor
timer
data packet
sent
mobile terminal
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
CN201710204469.0A
Other languages
Chinese (zh)
Other versions
CN107087057A (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.)
Xinyi Moore Network Technology Co., Ltd
Original Assignee
Xinyi Moore Network 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 Xinyi Moore Network Technology Co Ltd filed Critical Xinyi Moore Network Technology Co Ltd
Priority to CN201710204469.0A priority Critical patent/CN107087057B/en
Publication of CN107087057A publication Critical patent/CN107087057A/en
Application granted granted Critical
Publication of CN107087057B publication Critical patent/CN107087057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data

Landscapes

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

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, a first modem embedded with a virtual user identification card, a first timer and an entity user identification card, and the external device comprises a second application processor, a second modem and a second timer; when the second application processor in the awakening state detects a data sending instruction and detects that a data packet in the sending state does not exist in the preset interface, initializing a second timer; and when the value of the second timer is equal to or longer than the first preset time, the second 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 the double LTE communication function 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 a double LTE communication function 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, a first modem embedded with a virtual subscriber identity module, a first timer, and an entity subscriber identity module connected to the first modem, and the external device includes a second application processor, a second modem, and a second timer;
the second application processor is used for initializing the second timer when a data sending instruction is detected in an awakening state and a data packet in a sending state is detected not to exist in the preset interface; and when the value of the second timer is equal to or longer than a first preset time, sending a data packet to be sent to the first application processor in an awakening state through the preset interface.
Optionally, the second application processor is further configured to enter a wake-up state from the sleep state when the second application processor is in the sleep state and receives a data interaction request, send a probe packet to the first application processor through the preset interface, and initialize the second timer; and when the value of the second timer is equal to or greater than a second preset time, detecting whether a data sending command is detected.
Optionally, the first application processor is further configured to, when receiving the probe packet in a sleep state, enter the awake state from the sleep state according to the probe packet, and initialize the first timer; and when the value of the first timer is equal to or greater than the third preset time, receiving the data packet to be sent, and processing the data packet to be sent, wherein the difference value between the second preset time and the third preset time is equal to or less than a preset value.
Optionally, the first application processor is further configured to determine whether a value of the first timer is equal to or greater than a third preset time; and if the value of the first timer is less than the third preset time and the data packet to be sent is received, discarding the data packet to be sent.
Optionally, the second application processor is further configured to send the probe packet to the first application processor through the preset interface again after a preset time interval when the value of the second timer is smaller than the third preset time.
In addition, in order to achieve the above object, the present invention further provides a data transmission method, where the data transmission method is applied to a mobile terminal and an external device connected to the mobile terminal through a preset interface, the mobile terminal includes a first application processor, a first modem embedded with a virtual subscriber identity card, a first timer, and a physical subscriber identity card connected to the first modem, and the external device includes a second application processor, a second modem, and a second timer;
when the second application processor in the awakening state detects a data sending instruction and detects that a data packet in the sending state does not exist in the preset interface, initializing the second timer;
and when the value of the second timer is equal to or longer than a first preset time, the second application processor sends a data packet to be sent to the first application processor in an awakening state through the preset interface.
Optionally, before the step of initializing the second timer when the second application processor in the wake-up state detects that a data transmission instruction exists and detects that no data packet in the transmission state exists in the preset interface, the method further includes:
when the second application processor is in a dormant state and receives a data interaction request, the second application processor enters an awakening state from the dormant state, sends a detection packet to the first application processor through the preset interface, and initializes the second timer;
and when the value of the second timer is equal to or greater than a second preset time, the second application processor detects whether a data sending instruction is detected.
Optionally, after the steps of entering the wake-up state from the sleep state, sending a probe packet to the first application processor through the preset interface, and initializing the second timer, the method further includes:
when the first application processor in the dormant state receives the detection packet, the first application processor enters the awakening state from the dormant state according to the detection packet and initializes the first timer;
after the step of sending the data packet to be sent to the first application processor in the wake-up state through the preset interface by the second application processor, the method further includes:
and when the value of the first timer is equal to or greater than the third preset time, the first application processor receives the data packet to be sent and processes the data packet to be sent, wherein the difference value between the second preset time and the third preset time is equal to or less than a preset value.
Optionally, when the value of the first timer is equal to or greater than the third preset time, before the step of receiving the data packet to be sent by the first application processor and processing the data packet to be sent, the method further includes:
the first application processor judges whether the value of the first timer is equal to or greater than a third preset time;
and if the value of the first timer is less than the third preset time and the first application processor receives the data packet to be sent, the first application processor discards the data packet to be sent.
Optionally, after the steps of entering the wake-up state from the sleep state, sending a probe packet to the first application processor through the preset interface, and initializing the second timer, the method further includes:
and when the value of the second timer is less than the third preset time, the second application processor sends the detection packet to the first application processor again through the preset interface after a preset time interval.
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, a first modem embedded with a virtual user identification card, a first timer and an entity user identification card connected with the first modem, and the external device comprises a second application processor, a second modem and a second timer; when the second application processor in the awakening state detects a data sending instruction and detects that a data packet in the sending state does not exist in the preset interface, initializing the second timer; and when the value of the second timer is equal to or longer than a first preset time, the second application processor sends a data packet to be sent to the first application processor in an awakening state through the preset interface. In the process that the mobile terminal realizes the dual-LTE communication function 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 when the value of the second timer is equal to or longer than 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 diagram of an entity structure of the communication connection between the mobile terminal and the external device according to the embodiment of the present invention;
FIG. 4 is a first diagram illustrating data transmission between a first application processor and a second application processor according to an embodiment of the present invention;
FIG. 5 is a second diagram illustrating data transmission between a first application processor and a second application processor according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of data transmission between a first modem and a second modem in 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 third diagram illustrating data transmission between a first application processor and a second application processor in an embodiment of the invention;
fig. 10 is a flowchart illustrating a data transmission method according to a fourth embodiment of the 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 14, an RPM (Resource Power Manager) 15, and a first timer 16, wherein the first modem 11 is embedded with a virtual user identification card 13, and the physical user identification card 14 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, 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 application processors, for example, perform sleep, wake-up, synchronous control of the two application processors, control of a chip start 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 an embodiment of the present invention, the predetermined interface is a USB (Universal serial bus). The USB multiplexes three data channels, which are used for interaction of user data, signaling data, and SIM card authentication data 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, signaling data, and SIM card authentication 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 comprises, but is not limited to, control data for switching on and off flight modes, and control data for displaying status signals; the SIM card authentication data includes, but is not limited to, IMSI (International Mobile Subscriber identity Number) and Ki (key identifier).
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 can access the eNodeB 101 through SIM card parameters in the physical subscriber identity card 14 or the virtual subscriber identity card 13, and the second modem 21 can access the eNodeB 101 through SIM card parameters of the physical subscriber identity card 14 or the virtual subscriber identity card 13, 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, Synchronous time Division Multiple Access)/CDMA (Code Division Multiple Access )/EDGE (Enhanced Data Rate for GSM evolution technology). The mobile terminal 100 interacts with the operator network through a protocol, that is, data traffic internet access, volte (voice Over lte) call or CS (Circuit Switched) call is performed. The first modem 11 and the second modem 21 may also manage the SIM card, etc.
The first modem 11 is embedded with a Virtual subscriber identity card 13, the Virtual subscriber identity card 13 includes a storage module and a Virtual Chip Operating System (VCOS), the storage module may be an EFS (encryption File System), and the storage module is used for storing authentication data of the Virtual subscriber identity card 13.
The 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 14 is connected to the first modem 11. The physical subscriber identity card 14 and the virtual subscriber identity card 13 may store subscriber information associated with different or the same technical standards for providing related data required for mobile communication services (CS voice service, PS data service, and PS voice service), and store subscriber information, short messages, perform authentication algorithms, generate encryption keys, and the like therein. In a particular non-limiting example, the technology standard may be a 2G communication technology, e.g., GSM, EDGE, a 3G communication technology (e.g., WCDMA, TD-SCDMA), a 4G communication technology (e.g., LTE), or any other mobile communication technology (e.g., 4G, etc.).
When the virtual user identification card 13 needs to perform network registration, a download request containing service menu data is sent to a cloud server corresponding to the virtual user identification card 13 through a wireless fidelity (WIFI) network which is turned on, so as to obtain data information of the virtual user identification card 13 from the cloud server. When the data information of the virtual user identification card 13 is acquired, the data information is written into the storage module of the virtual user identification card 13, so as to realize network registration of the virtual user identification card 13. Wherein, the data information may include: IMSI, Ki (key identifier), iccid (integrated Circuit cardidentifier), 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 of the mobile terminal 100 use the set of radio frequency module in a time-sharing multiplexing relationship, and cannot occupy simultaneously. For example, when two subscriber identity cards are fully opened, one subscriber identity card only handles GSM calls, and the other subscriber identity card handles 4G network information, which subscriber identity card executes which network, 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, when the mobile terminal 100 registers a network, two subscriber identity cards support networks of different technical standards, one of which supports 2G or 3G, and the other supports 4G, so that the traffic speed of the mobile terminal 100 during the use process is slow. In the embodiment of the present invention, the mobile terminal 100 is connected to the external device 200 through the USB, and since the external device 200 includes the second modem 21 and the second radio frequency module 22, and the second radio frequency module 22 supports a 4G network, the mobile terminal 100 can 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 virtual subscriber identity card 13 and the physical subscriber identity card 14 are both LTE standards, and the radio access technology related to the first radio frequency module 12 and the second radio frequency module 22 is LTE).
In the embodiment of the present invention, the data transmission system includes the mobile terminal 100 and the external device 200, and the implementation process of the mobile terminal 100 having the dual LTE function through the external device 200 may be: the entity user identification card 14 supports LTE through the second modem 21, and the specific process is as follows: the first modem 11 sends data needing to access the LTE network in the entity user identification card 14 to the first application processor 10, the first application processor 10 sends the received data to the second application processor 20 of the external device 200 through USB, the second application processor 20 sends the received data to the second modem 21, the second modem 21 forwards the received data to the second radio frequency module 22, and the second radio frequency module 22 sends the received data out through the LTE network; the virtual subscriber identity card 13 supports LTE through the first modem 11 to enable the mobile terminal 100 to support dual LTE. The virtual subscriber identity module 13 supports LTE through the second modem 21, and the specific process is as follows: the first modem 11 sends the data needing to access the LTE network in the virtual subscriber identity module 13 to the first application processor 10, the first application processor 10 sends the received data to the second application processor 20 of the external device 200 through the USB, the second application processor 20 sends the received data to the second modem 21, the second modem 21 forwards the received data to the second radio frequency module 22, and the second radio frequency module 22 sends the received data out through the LTE network; the physical subscriber identity card 14 supports LTE through the first modem 11 to enable the mobile terminal 100 to support dual LTE.
When the mobile terminal 100 is not connected to the external device 200 through the USB, the technical standard corresponding to the physical subscriber identity module 14 is GSM for performing voice communication, and the virtual subscriber identity module 13 supports LTE through the first modem 11 for performing data access through the 4G network.
When the physical subscriber identity card 14 interacts with the mobile terminal 100, a signal for the mobile terminal 100 to detect the presence of the physical subscriber identity card 14 is generated only at the instant of power-on, and when the presence of the physical subscriber identity card 14 is not detected at power-on, the mobile terminal 100 will prompt "insert subscriber identity card". After the mobile terminal 100 is powered on, the mobile terminal 100 and the physical subscriber identity card 14 communicate once in 28 seconds, completing some fixed communication checks (e.g., whether the subscriber identity card is in place, etc.).
RPM15 is used to manage various resources including clock resources, bus resources, PMIC (Power Management IC, voltage of Power Management integrated circuit, i.e., individual chips), DDR (memory allocation), and interrupts to manage sleep wake-up of chips and deadlines to apply processor wake-up. Each subsystem of the mobile terminal 100 applies for resources from 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 sub-systems 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 probe packet to the second application processor 20 through USB to wake up the second application processor 20.
2. When the second modem 21 receives the user data, it wakes up the second application processor 20, and the second application processor 20 transmits the probe packet to the first application processor 10 through the USB to wake up the first application processor 10.
3. The second modem 21 periodically looks for a paging request to actively activate itself. If the paging request is received, the second modem 21 wakes up the second application processor 20, and the second application processor 20 sends a probe packet to the first application processor 10 through the USB to wake up the second application processor 20.
Furthermore, the second modem 21 may wake itself up periodically to perform handshake interaction with the base station when the mobile terminal 100 performs location update, without waking up the first application processor 10.
The first timer 16 and the second timer 26 are used for calculating time during interaction between the mobile terminal 100 and the external device 200, so as to control the first application processor 10, the first modem 11, the second application processor 20, and/or the second modem 21 to enter the awake state from the sleep state within a certain time, and control the first application processor 10, the first modem 11, the second application processor 20, and/or the second modem 21 to enter the sleep state from the awake state within 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 diagram illustrating an entity structure 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 above LTE network architecture diagram, the hardware structure diagrams of the mobile terminal 100 and the external device 200, and the entity structure diagrams, various 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 modem 11 embedded with a virtual subscriber identity module 13, a first timer 16, and a physical subscriber identity module 14 connected to the first modem 11, and the external device 200 includes a second application processor 20, a second radio frequency module 22, a second modem 21, and a second timer 26.
The second application processor 20 is configured to initialize a second timer 26 when the data sending instruction is detected in the awake state and it is detected that no data packet in the sending state exists in the preset interface; when the value of the second timer 26 is equal to or greater than the first preset time, the data packet to be sent is sent to the first application processor 10 in the wake-up state through the preset interface.
When the second application processor 20 in the wake-up state 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 predetermined interface, the second timer 26 is started, and the second timer 26 is initialized, so that the value of the second timer 26 is equal to zero. When the value of the second timer 26 is equal to or greater than the first preset time, the second 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 data packets to be sent to the first application processor 10. That is, the time interval for the second application processor 20 to send the data packet to be responded to the first application processor 10 is a 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. The preset interface is a USB. In other embodiments, the predetermined interface may be an interface having the same function as the USB.
Further, when the data transmission command is triggered by the second modem 21, the specific transmission process of the data packet to be transmitted is: the second modem 21 sends a data packet to be sent to the second application processor 20 through an smd (spare memory driver, smd) channel, the second application processor 20 sends the data packet to be sent to the first application processor 10 through a USB interface, 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 (at this time, it indicates that the data packet to be sent needs to be sent to the first modem 11, and if the data packet to be sent does not need to be sent to the first modem 11, the first application processor 10 does not send the data packet to be sent to the first modem 11).
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, the transmission queue still has no data packet to be transmitted, and 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 not yet to be sent in the sending 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 to implement the sleep of the application processor and the modem.
In the embodiment, when the second application processor 20 in the wake-up state detects a data transmission instruction and detects that no data packet in the transmission state exists in the preset interface, the second timer 26 is initialized; when the value of the second timer 26 is equal to or greater than the first preset time, the second 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. In the process that the mobile terminal 100 realizes the dual LTE communication function through the external device 200, when there is no data packet in a sending state in the preset interface and the value of the second timer 26 is equal to or greater than the first preset time, the second application processor 20 sends the data packet to be sent to the first application processor 10, which avoids the situation that the mobile terminal 100 and the external device 200 identify a plurality of data packets sent by the external device 200 as one data packet in the data packet transmission process, if the speed of transmitting the data packet to the mobile terminal 100 by the external device 200 is too fast, and improves the accuracy of identifying the data packet sent by the external device 200 by the mobile terminal 100.
Further, a second embodiment of the data transmission system of the present invention is presented.
The second embodiment of the data transmission system is different from the first embodiment of the data transmission system in that the second application processor 20 is further configured to enter an awake state from the sleep state when in the sleep state and receiving the data interaction request, send a probe packet to the first application processor 10 through the predetermined interface, and initialize the second timer 26.
The second application processor 20 is further configured to detect whether a data sending command is detected when the value of the second timer 26 is equal to or greater than a second preset time;
when the second application processor 20 is in the sleep state and the second application processor 20 receives the data interaction request, the second application processor 20 enters the wake state from the sleep state. When the second application processor 20 enters the wake-up state, the second application processor 20 sends a probe packet to the first application processor 10 and starts the second timer 26 to perform a timing operation. When the second timer 26 is started, the second timer 26 is initialized such that the value of the second timer 26 is equal to zero. The data interaction request received by the second 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 acquire data of the physical subscriber identity card 14 or the virtual subscriber identity card 13 in the mobile terminal 100, or the second application processor 20 has an authentication requirement, etc.
When the value of the second timer 26 is equal to or greater than a second predetermined time, the second application processor 20 detects whether a data transmission command is detected, where the data transmission command is a command for transmitting a data packet to be transmitted. The second preset time can be set according to specific needs, in this embodiment, the second preset time is set to 30ms, and in other embodiments, the second preset time can also be set to 34ms, or 40ms, etc.
It should be noted that the detection packet may be identified by a character with a fixed word length, and the detection packet is not a normal data packet, but is a field that does not appear in the normal data packet. As in the present embodiment, the probe packets may be represented by 0xF9F9, and in other embodiments, probe packets configured in other forms, such as 0xF3F3 and 0x3F3F, may be used.
In the embodiment, when the second application processor 20 in the sleep state receives the data interaction request, the second application processor actively enters the wake-up state from the sleep state, and sends the detection packet to the first application processor 10, so that the first application processor 10 enters the wake-up state from the sleep state according to the detection packet, so that the second application processor 20 and the first application processor 10 can perform normal data interaction.
Further, a third embodiment of the data transmission system of the present invention is presented.
The third embodiment of the data transmission system differs from the second embodiment of the data transmission system in that the first application processor 10 is further configured to enter an awake state from the sleep state according to the probe packet when the probe packet is received in the sleep state, and initialize the first timer 16.
Referring to fig. 9, when the first application processor 10 in the sleep state receives the probe packet, the first application processor 10 enters the wake-up state from the sleep state and starts the first timer 16 to perform a timing operation, and when the first timer 16 is started, the first timer 16 is initialized so that the value of the first timer 16 is equal to zero. The first application processor 10 determines whether the value of the first timer 16 is equal to or greater than a third preset time. The third preset time may be set according to specific needs, in this embodiment, the third preset time is set to 20ms, and in other embodiments, the third preset time may also be set to 25ms, 28ms, or the like.
It should be noted that, after the second application processor 20 sends the probe packet to the first application processor 10 through the USB, the MPM (interrupt detection module still alive in the deep sleep state of the terminal) detects data interrupt on the USB, the MPM wakes up the RPM, and the RPM wakes up the CPU of the corresponding subsystem according to the terminal signal source, so that the corresponding subsystem is immediately waked up to process the event. In this example there is a modem and application processor that needs to wake up.
The first application processor 10 is further configured to receive a data packet to be sent when the value of the first timer 16 is equal to or greater than a third preset time, and process the data packet to be sent, where a difference between the second preset time and the third preset time is equal to or less than a preset value.
When the value of the first timer 16 is equal to or greater than the third preset time, the first application processor 10 receives a data packet to be sent and processes the data packet to be sent. If the data packet to be sent needs to be responded by the first application processor 10, the first application processor 10 responds to the data packet to be sent; if the data packet to be sent needs to be sent to the first modem 11, the data packet to be sent is sent to the first modem 11. It is understood that the essence of the first application processor 10 processing the data packet to be sent is to send the data packet to be sent to the corresponding module or perform corresponding processing according to the attribute of the data packet to be sent.
In order to ensure that the mobile terminal 100 can normally receive the data packet to be sent by the external device 200, the second preset time should be greater than the third preset time, and a difference between the second preset time and the third preset time should be equal to or smaller than a preset value. It is understood that the time for the first application processor 10 to transition from the sleep state to the awake state should be less than or equal to a predetermined value. In the present embodiment, the preset value is set to 10ms, and in other embodiments, the preset value may be set to 8ms, or 9ms, etc.
As can be seen from comparing fig. 4 and fig. 5, the time for the first application processor 10 to transition from the sleep state to the wake state may be equal to the predetermined value (as shown in fig. 4), and at this time, the sum of the third predetermined time and the predetermined value is equal to the second predetermined time. The time for the first application processor 10 to transition from the sleep state to the awake state may be less than a predetermined value (as shown in fig. 5), and the sum of the third predetermined time and the predetermined value is less than the second predetermined time.
Further, the first application processor 10 is further configured to determine whether the value of the first timer 16 is equal to or greater than a third preset time; and if the value of the first timer is less than the third preset time and the data packet to be sent is received, discarding the data packet to be sent.
After the first application processor 10 transitions from the sleep state to the wake state, the first application processor 10 determines whether the value of the first timer 16 is equal to or greater than a third predetermined time. If the value of the first timer 16 is less than the third preset time and the first application processor 10 receives the data packet to be sent, the first application processor 10 discards the data packet to be sent and does not report the data packet to be sent to the upper layer.
Further, referring to fig. 6, when the probe packet is triggered by the second modem 21, the specific sending process of the probe packet is as follows: the second modem 21 sends the probe packet to the second application processor 20 through the smd (shared memory driver) channel, the second application processor 20 sends the probe packet to the first application processor 10 through the USB, and the first application processor 10 sends the received probe packet to the first modem 11 through the smd channel (at this time, it indicates that the first modem 11 needs to be woken up, and if the first modem 11 does not need to be woken up, the first application processor 10 does not send the received probe packet to the first modem 11). As can be seen from fig. 6, when the probe packet is triggered by the second modem 21, the wake-up mechanism and the data transmission mechanism of the second modem 21 and the first modem 11 are similar to the wake-up mechanism and the data transmission mechanism of the first application processor 10 and the second application processor 20, and are not described herein again.
The present embodiment wakes up the first application processor 10 by the second application processor 20 sending a probe packet to the first application processor 10 when the first application processor 10 is in a sleep state. And after the first application processor 10 enters the wake-up state, the time difference between the first timer 16 and the second timer 26 prevents the first application processor 10 from being in the incomplete wake-up state when the second application processor 20 sends the data packet to the first application processor 10, which results in the failure of the first application processor 10 to receive the data packet. In the process that the mobile terminal 100 realizes the dual LTE communication function through the external device 200, the success rate of data transmission between the external device 200 and the mobile terminal 100 is improved.
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 send the probe packet to the first application processor 10 again through the predetermined interface after a predetermined time interval when the value of the second timer 26 is less than the third predetermined time.
When the second application processor 20 sends the probe packet to the first application processor 10 through the predetermined interface and initializes the second timer 26, the second application processor 20 determines whether the value of the second timer 26 is less than a third predetermined time. When the value of the second timer 26 is less than the third preset time, the second application processor 20 sends the probe packet to the first application processor 10 again through the preset interface after the interval of the preset time length. In this embodiment, the preset time duration may be set according to specific needs, but in order to ensure that the first application processor 10 does not mistake the detection packet as a normal data packet sent by the second application processor 20, that is, mistake the detection packet as a data packet to be sent by the second application processor 20, the preset time duration should be less than the third preset time. For example, the preset time duration may be set to 4ms, 6ms, or 8 ms. When the third preset time is 20ms and the preset duration is 6ms, the second application processor 20 sends the probe packet to the first application processor 10 through the preset interface again after every 6ms interval, that is, the second application processor 20 sends the probe packet to the first application processor 10 three times in total.
In this embodiment, when the value of the second timer 26 is less than the third preset time, the second application processor 20 sends the detection packet to the first application processor 10 again through the preset interface after the interval preset time length, so as to prevent the first application processor 10 from entering the wake-up state from the sleep state when the second application processor 20 sends the detection packet to the first application processor 10, the detection packet is lost, or the detection packet is damaged, and the like.
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 modem 11 embedded with a virtual subscriber identity module 13, a first radio frequency module 12, a first timer 16, and a physical subscriber identity module 14 connected with the first modem 11, and the external device 200 includes a second application processor 20, a second radio frequency module 22, a second modem 21, and a second timer 26.
In step S10, when the second application processor 20 in the wake-up state detects a data transmission command and detects that no data packet in the transmission state exists in the predetermined interface, the second timer 26 is initialized.
In step S20, when the value of the second timer 26 is equal to or greater than the first preset time, the second application processor 20 sends the data packet to be sent to the first application processor 10 in the awake state through the preset interface.
When the second application processor 20 in the wake-up state 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 predetermined interface, the second timer 26 is started, and the second timer 26 is initialized, so that the value of the second timer 26 is equal to zero. When the value of the second timer 26 is equal to or greater than the first preset time, the second 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 data packets to be sent to the first application processor 10. That is, the time interval for the second application processor 20 to send the data packet to be responded to the first application processor 10 is a 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. The preset interface is a USB. In other embodiments, the predetermined interface may be an interface having the same function as the USB.
Further, when the data transmission command is triggered by the second modem 21, the specific transmission process of the data packet to be transmitted is: the second modem 21 sends a data packet to be sent to the second application processor 20 through an smd (spare memory driver, smd) channel, the second application processor 20 sends the data packet to be sent to the first application processor 10 through a USB interface, 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 (at this time, it indicates that the data packet to be sent needs to be sent to the first modem 11, and if the data packet to be sent does not need to be sent to the first modem 11, the first application processor 10 does not send the data packet to be sent to the first modem 11).
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, the transmission queue still has no data packet to be transmitted, and 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 not yet to be sent in the sending 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 to implement the sleep of the application processor and the modem.
In the embodiment, when the second application processor 20 in the wake-up state detects a data transmission instruction and detects that no data packet in the transmission state exists in the preset interface, the second timer 26 is initialized; when the value of the second timer 26 is equal to or greater than the first preset time, the second 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. In the process that the mobile terminal 100 realizes the dual LTE communication function through the external device 200, when there is no data packet in a sending state in the preset interface and the value of the second timer 26 is equal to or greater than the first preset time, the second application processor 20 sends the data packet to be sent to the first application processor 10, which avoids the situation that the mobile terminal 100 and the external device 200 identify a plurality of data packets sent by the external device 200 as one data packet in the data packet transmission process, if the speed of transmitting the data packet to the mobile terminal 100 by the external device 200 is too fast, and improves the accuracy of identifying the data packet sent by the external device 200 by the mobile terminal 100.
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 is in the sleep state and the second application processor 20 receives the data interaction request, the second application processor 20 enters the wake-up state from the sleep state, sends a probe packet to the first application processor 10 through the predetermined interface, and initializes the second timer 26.
In step S40, when the value of the second timer 26 is equal to or greater than the second predetermined time, the second application processor 20 detects whether a data sending command is detected.
When the second application processor 20 is in the sleep state and the second application processor 20 receives the data interaction request, the second application processor 20 enters the wake state from the sleep state. When the second application processor 20 enters the wake-up state, the second application processor 20 sends a probe packet to the first application processor 10 and starts the second timer 26 to perform a timing operation. When the second timer 26 is started, the second timer 26 is initialized such that the value of the second timer 26 is equal to zero. The data interaction request received by the second 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 acquire data of the physical subscriber identity card 14 or the virtual subscriber identity card 13 in the mobile terminal 100, or the second application processor 20 has an authentication requirement, etc.
When the value of the second timer 26 is equal to or greater than a second predetermined time, the second application processor 20 detects whether a data transmission command is detected, where the data transmission command is a command for transmitting a data packet to be transmitted. The second preset time can be set according to specific needs, in this embodiment, the second preset time is set to 30ms, and in other embodiments, the second preset time can also be set to 34ms, or 40ms, etc.
It should be noted that the detection packet may be identified by a character with a fixed word length, and the detection packet is not a normal data packet, but is a field that does not appear in the normal data packet. As in the present embodiment, the probe packets may be represented by 0xF9F9, and in other embodiments, probe packets configured in other forms, such as 0xF3F3 and 0x3F3F, may be used.
In the embodiment, when the second application processor 20 in the sleep state receives the data interaction request, the second application processor actively enters the wake-up state from the sleep state, and sends the detection packet to the first application processor 10, so that the first application processor 10 enters the wake-up state from the sleep state according to the detection packet, so that the second application processor 20 and the first application processor 10 can perform normal data interaction.
Further, a third embodiment of the data transmission method of the present invention is provided.
The third embodiment of the data transmission method differs from the second embodiment of the data transmission method in that the data transmission method further includes:
step a, when the first application processor 10 in the sleep state receives the detection packet, the first application processor 10 enters the wake-up state from the sleep state according to the detection packet, and initializes the first timer 16.
Referring to fig. 9, when the first application processor 10 in the sleep state receives the probe packet, the first application processor 10 enters the wake-up state from the sleep state and starts the first timer 16 to perform a timing operation, and when the first timer 16 is started, the first timer 16 is initialized so that the value of the first timer 16 is equal to zero. The first application processor 10 determines whether the value of the first timer 16 is equal to or greater than a third preset time. The third preset time may be set according to specific needs, in this embodiment, the third preset time is set to 20ms, and in other embodiments, the third preset time may also be set to 25ms, 28ms, or the like.
It should be noted that, after the second application processor 20 sends the probe packet to the first application processor 10 through the USB, the MPM (interrupt detection module still alive in the deep sleep state of the terminal) detects data interrupt on the USB, the MPM wakes up the RPM, and the RPM wakes up the CPU of the corresponding subsystem according to the terminal signal source, so that the corresponding subsystem is immediately waked up to process the event. In this example there is a modem and application processor that needs to wake up.
And b, when the value of the first timer 16 is equal to or greater than a third preset time, the first application processor 10 receives a data packet to be sent and processes the data packet to be sent, wherein a difference value between the second preset time and the third preset time is equal to or less than a preset value.
When the value of the first timer 16 is equal to or greater than the third preset time, the first application processor 10 receives a data packet to be sent and processes the data packet to be sent. If the data packet to be sent needs to be responded by the first application processor 10, the first application processor 10 responds to the data packet to be sent; if the data packet to be sent needs to be sent to the first modem 11, the data packet to be sent is sent to the first modem 11. It is understood that the essence of the first application processor 10 processing the data packet to be sent is to send the data packet to be sent to the corresponding module or perform corresponding processing according to the attribute of the data packet to be sent.
In order to ensure that the mobile terminal 100 can normally receive the data packet to be sent by the external device 200, the second preset time should be greater than the third preset time, and a difference between the second preset time and the third preset time should be equal to or smaller than a preset value. It is understood that the time for the first application processor 10 to transition from the sleep state to the awake state should be less than or equal to a predetermined value. In the present embodiment, the preset value is set to 10ms, and in other embodiments, the preset value may be set to 8ms, or 9ms, etc.
As can be seen from comparing fig. 4 and fig. 5, the time for the first application processor 10 to transition from the sleep state to the wake state may be equal to the predetermined value (as shown in fig. 4), and at this time, the sum of the third predetermined time and the predetermined value is equal to the second predetermined time. The time for the first application processor 10 to transition from the sleep state to the awake state may be less than a predetermined value (as shown in fig. 5), and the sum of the third predetermined time and the predetermined value is less than the second predetermined time.
Further, the data transmission method further comprises:
in step c, the first application processor 10 determines whether the value of the first timer 16 is equal to or greater than a third preset time.
And d, if the value of the first timer 16 is less than the third preset time and the first application processor 10 receives the data packet to be sent, the first application processor 10 discards the data packet to be sent.
After the first application processor 10 transitions from the sleep state to the wake state, the first application processor 10 determines whether the value of the first timer 16 is equal to or greater than a third predetermined time. If the value of the first timer 16 is less than the third preset time and the first application processor 10 receives the data packet to be sent, the first application processor 10 discards the data packet to be sent and does not report the data packet to be sent to the upper layer.
Further, referring to fig. 6, when the probe packet is triggered by the second modem 21, the specific sending process of the probe packet is as follows: the second modem 21 sends the probe packet to the second application processor 20 through the smd (shared memory driver) channel, the second application processor 20 sends the probe packet to the first application processor 10 through the USB, and the first application processor 10 sends the received probe packet to the first modem 11 through the smd channel (at this time, it indicates that the first modem 11 needs to be woken up, and if the first modem 11 does not need to be woken up, the first application processor 10 does not send the received probe packet to the first modem 11). As can be seen from fig. 6, when the probe packet is triggered by the second modem 21, the wake-up mechanism and the data transmission mechanism of the second modem 21 and the first modem 11 are similar to the wake-up mechanism and the data transmission mechanism of the first application processor 10 and the second application processor 20, and are not described herein again.
The present embodiment wakes up the first application processor 10 by the second application processor 20 sending a probe packet to the first application processor 10 when the first application processor 10 is in a sleep state. And after the first application processor 10 enters the wake-up state, the time difference between the first timer 16 and the second timer 26 prevents the first application processor 10 from being in the incomplete wake-up state when the second application processor 20 sends the data packet to the first application processor 10, which results in the failure of the first application processor 10 to receive the data packet. In the process that the mobile terminal 100 realizes the dual LTE communication function through the external device 200, the success rate of data transmission between the external device 200 and the mobile terminal 100 is improved.
Further, a fourth embodiment of the data transmission method of the present invention is provided.
The fourth embodiment of the data transmission method is different from the second embodiment of the data transmission method in that, referring to fig. 10, the data transmission method further includes:
in step S50, when the value of the second timer 26 is less than the third preset time, the second application processor 20 sends the probe packet to the first application processor 10 again through the preset interface after the interval of the preset time duration.
When the second application processor 20 sends the probe packet to the first application processor 10 through the predetermined interface and initializes the second timer 26, the second application processor 20 determines whether the value of the second timer 26 is less than a third predetermined time. When the value of the second timer 26 is less than the third preset time, the second application processor 20 sends the probe packet to the first application processor 10 again through the preset interface after the interval of the preset time length. In this embodiment, the preset time duration may be set according to specific needs, but in order to ensure that the first application processor 10 does not mistake the detection packet as a normal data packet sent by the second application processor 20, that is, mistake the detection packet as a data packet to be sent by the second application processor 20, the preset time duration should be less than the third preset time. For example, the preset time duration may be set to 4ms, 6ms, or 8 ms. When the third preset time is 20ms and the preset duration is 6ms, the second application processor 20 sends the probe packet to the first application processor 10 through the preset interface again after every 6ms interval, that is, the second application processor 20 sends the probe packet to the first application processor 10 three times in total.
In this embodiment, when the value of the second timer 26 is less than the third preset time, the second application processor 20 sends the detection packet to the first application processor 10 again through the preset interface after the interval preset time length, so as to prevent the first application processor 10 from entering the wake-up state from the sleep state when the second application processor 20 sends the detection packet to the first application processor 10, the detection packet is lost, or the detection packet is damaged, and the like.
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 (10)

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, a first modem embedded with a virtual user identification card, a first timer and an entity user identification card connected with the first modem, and the external device comprises a second application processor, a second modem and a second timer;
the second application processor is used for detecting whether a data packet to be sent exists in a sending queue or not when a data sending instruction is detected in an awakening state and a data packet in a sending state does not exist in the preset interface; if the data packet to be sent exists in the sending queue, initializing the second timer; when the value of the second timer is equal to or longer than a first preset time, sending a data packet to be sent to the first application processor in an awakening state through the preset interface; if the data packet to be sent does not exist in the sending queue and the value of the second timer after initialization is equal to or longer than first preset time, the second timer is initialized again when the data packet to be sent does not exist in the sending queue; if the value of the second timer is greater than or equal to the set time value and a data packet is not yet to be sent in the sending queue, calling a sleep function of a preset interface protocol to execute sleep operation of a preset interface, so that the sleep of the preset interface releases occupied clock resources, and realizing sleep of the first application processor and the second application processor;
the mobile terminal also comprises a Resource Power Manager (RPM), and the RPM determines the dormant state of a mobile terminal system, wherein the RPM is realized based on a voting mechanism of each subsystem of the mobile terminal, and when each subsystem casts a dormant ticket, the RPM enables the whole system of the mobile terminal to be dormant; when the mobile terminal has one or more subsystems to cast a ticket against the dormancy, the whole system of the mobile terminal cannot be dormant.
2. The data transmission system of claim 1, wherein the second application processor is further configured to enter an awake state from the sleep state when in the sleep state and receiving the data interaction request, send a probe packet to the first application processor through the preset interface, and initialize the second timer; and when the value of the second timer is equal to or greater than a second preset time, detecting whether a data sending command is detected.
3. The data transmission system of claim 2, wherein the first application processor is further configured to enter the awake state from the sleep state according to the probe packet and initialize the first timer when the probe packet is received in the sleep state; and when the value of the first timer is equal to or greater than a third preset time, receiving the data packet to be sent, and processing the data packet to be sent, wherein the difference value between the second preset time and the third preset time is equal to or less than a preset value.
4. The data transmission system of claim 3, wherein the first application processor is further configured to determine whether the value of the first timer is equal to or greater than a third predetermined time; and if the value of the first timer is less than the third preset time and the data packet to be sent is received, discarding the data packet to be sent.
5. The data transmission system according to claim 2, wherein the second application processor is further configured to send the probe packet to the first application processor again through the preset interface after a preset time interval when the value of the second timer is less than a third preset time.
6. 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, a first modem embedded with a virtual user identification card, a first timer and an entity user identification card connected with the first modem, and the external device comprises a second application processor, a second modem and a second timer;
when the second application processor in the awakening state detects a data sending instruction and detects that a data packet in a sending state does not exist in the preset interface, detecting whether a data packet to be sent exists in a sending queue;
if the data packet to be sent exists in the sending queue, initializing the second timer;
when the value of the second timer is equal to or longer than a first preset time, the second application processor sends a data packet to be sent to the first application processor in an awakening state through the preset interface;
if the data packet to be sent does not exist in the sending queue and the value of the second timer after initialization is equal to or longer than first preset time, the second timer is initialized again when the data packet to be sent does not exist in the sending queue;
if the value of the second timer is greater than or equal to the set time value and a data packet is not yet to be sent in the sending queue, calling a sleep function of a preset interface protocol to execute sleep operation of a preset interface, so that the sleep of the preset interface releases occupied clock resources, and realizing sleep of the first application processor and the second application processor;
the system comprises a mobile terminal, a Resource Power Manager (RPM) and a power supply management module (CPU), wherein the RPM determines the sleep state of a mobile terminal system, the RPM is realized based on a voting mechanism of each subsystem of the mobile terminal, and when each subsystem casts a sleep ticket, the RPM enables the whole system of the mobile terminal to sleep; when the mobile terminal has one or more subsystems to cast a ticket against the dormancy, the whole system of the mobile terminal cannot be dormant.
7. The data transmission method according to claim 6, wherein before the step of detecting whether the data packet to be transmitted exists in the transmission queue when the second application processor in the wake-up state detects that the data transmission instruction exists and detects that the data packet in the transmission state does not exist in the preset interface, the method further comprises:
when the second application processor is in a dormant state and receives a data interaction request, the second application processor enters an awakening state from the dormant state, sends a detection packet to the first application processor through the preset interface, and initializes the second timer;
and when the value of the second timer is equal to or greater than a second preset time, the second application processor detects whether a data sending instruction is detected.
8. The data transmission method according to claim 7, wherein after the steps of the second application processor entering an awake state from the sleep state, sending a probe packet to the first application processor through the predetermined interface, and initializing the second timer, the method further comprises:
when the first application processor in the dormant state receives the detection packet, the first application processor enters the awakening state from the dormant state according to the detection packet and initializes the first timer;
after the step of sending the data packet to be sent to the first application processor in the wake-up state through the preset interface by the second application processor, the method further includes:
and when the value of the first timer is equal to or greater than a third preset time, the first application processor receives the data packet to be sent and processes the data packet to be sent, wherein the difference value between the second preset time and the third preset time is equal to or less than a preset value.
9. The data transmission method according to claim 8, wherein before the step of receiving the data packet to be transmitted and processing the data packet to be transmitted by the first application processor when the value of the first timer is equal to or greater than a third preset time, the method further comprises:
the first application processor judges whether the value of the first timer is equal to or greater than a third preset time;
and if the value of the first timer is less than the third preset time and the first application processor receives the data packet to be sent, the first application processor discards the data packet to be sent.
10. The data transmission method according to claim 7, wherein after the steps of the second application processor entering an awake state from the sleep state, sending a probe packet to the first application processor through the predetermined interface, and initializing the second timer, the method further comprises:
and when the value of the second timer is less than a third preset time, the second application processor sends the detection packet to the first application processor again through the preset interface after a preset time interval.
CN201710204469.0A 2017-03-30 2017-03-30 Data transmission system and method Active CN107087057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710204469.0A CN107087057B (en) 2017-03-30 2017-03-30 Data transmission system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710204469.0A CN107087057B (en) 2017-03-30 2017-03-30 Data transmission system and method

Publications (2)

Publication Number Publication Date
CN107087057A CN107087057A (en) 2017-08-22
CN107087057B true CN107087057B (en) 2020-11-03

Family

ID=59615063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710204469.0A Active CN107087057B (en) 2017-03-30 2017-03-30 Data transmission system and method

Country Status (1)

Country Link
CN (1) CN107087057B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429290B (en) * 2017-08-23 2021-04-23 展讯通信(上海)有限公司 Data transmission control device and data flow control method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730270A (en) * 2009-11-23 2010-06-09 中国电信股份有限公司 Method for optimizing data transmission of mobile terminal and mobile terminal
CN101925160A (en) * 2009-06-11 2010-12-22 上海易狄欧电子科技有限公司 Wireless data transceiving method and system
CN202696911U (en) * 2012-05-25 2013-01-23 深圳市江波龙电子有限公司 Wireless communication system and wireless communication expansion device
CN102958042A (en) * 2011-08-17 2013-03-06 联发科技股份有限公司 Wireless communication device and service restoration method
CN106550352A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 A kind of method and terminal for realizing communication process

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6287119B2 (en) * 2013-11-28 2018-03-07 株式会社リコー Destination management apparatus, communication system, program, and destination management method
CN104702767A (en) * 2013-12-04 2015-06-10 中国电信股份有限公司 Method, subscriber identity module card and system used for sending messages
CN105960000A (en) * 2016-06-12 2016-09-21 努比亚技术有限公司 Dormancy awakening method and processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101925160A (en) * 2009-06-11 2010-12-22 上海易狄欧电子科技有限公司 Wireless data transceiving method and system
CN101730270A (en) * 2009-11-23 2010-06-09 中国电信股份有限公司 Method for optimizing data transmission of mobile terminal and mobile terminal
CN102958042A (en) * 2011-08-17 2013-03-06 联发科技股份有限公司 Wireless communication device and service restoration method
CN202696911U (en) * 2012-05-25 2013-01-23 深圳市江波龙电子有限公司 Wireless communication system and wireless communication expansion device
CN106550352A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 A kind of method and terminal for realizing communication process

Also Published As

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

Similar Documents

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

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201010

Address after: Room 158, block a, Gaoliu hi tech Industrial Park, Xinyi City, Xuzhou City, Jiangsu Province

Applicant after: Xinyi Moore Network Technology Co., Ltd

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

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

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