CN106900046B - Data transmission system and method - Google Patents

Data transmission system and method Download PDF

Info

Publication number
CN106900046B
CN106900046B CN201710206575.2A CN201710206575A CN106900046B CN 106900046 B CN106900046 B CN 106900046B CN 201710206575 A CN201710206575 A CN 201710206575A CN 106900046 B CN106900046 B CN 106900046B
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
CN201710206575.2A
Other languages
Chinese (zh)
Other versions
CN106900046A (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.)
Shandong yunshang big data Co., Ltd
Original Assignee
Shandong Yunshang Big Data 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 Shandong Yunshang Big Data Co Ltd filed Critical Shandong Yunshang Big Data Co Ltd
Priority to CN201710206575.2A priority Critical patent/CN106900046B/en
Publication of CN106900046A publication Critical patent/CN106900046A/en
Application granted granted Critical
Publication of CN106900046B publication Critical patent/CN106900046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a data transmission system and a method, the method is applied to a mobile terminal and an external device connected with the mobile terminal through a preset interface, the mobile terminal comprises a first modem connected with a first user identification card and a second user identification card, a first application processor and a first timer, and the external device comprises a second application processor, a second timer and a second modem; 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 modem, a first application processor and a first timer, the first modem is connected to a first subscriber identity module card and a second subscriber identity module card, respectively, and the external device includes a second application processor, a second timer and a second modem;
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 modem, a first application processor, and a first timer, the first modem is connected to a first subscriber identity module card and a second subscriber identity module card, respectively, and the external device includes a second application processor, a second timer, and a second modem;
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 modem and a first timer, the first modem is respectively connected with a first user identification card and a second user identification card, and the external device comprises a second timer and a second modem; 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 structural diagram of an entity of communication connection between a mobile terminal and an external device according to an embodiment of the present invention;
FIG. 4 is a first diagram illustrating 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 third diagram illustrating data transmission between a first application processor and a second application processor according to an embodiment of the present invention;
fig. 7 is a schematic diagram of data transmission between a first modem and a second modem in an embodiment of the present invention;
FIG. 8 is a flowchart illustrating a data transmission method according to a first embodiment of the present invention;
FIG. 9 is a flowchart illustrating a data transmission method according to a second embodiment of the present 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 first user identification card 13 and a second user identification card 14, an RPM (Resource Power Manager) 15, and a first timer 16, where the first user identification card 13 and the second user identification card 14 are SIM cards. The external device 200 includes a second processing chip 002 and a second rf module 22 connected to the second processing chip 002. 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 one embodiment, the application processor refers to the Android operating system, and various apks (Android Package) based on the Android operating system. In the embodiment of the present invention, the first application processor 10 and the second application processor 20 are connected through a preset interface, provide an interactive interface for a user, and transmit an operation instruction input by the user (for example, an operation instruction input by the user through the user interface and related to starting a video call) to the first modem 11 or the second modem 21, so as to define and transfer data between the two processors, for example, perform sleep, wake-up, synchronous control of the two application processors, control of a chip start-up sequence during power on and power off, and the like.
In the embodiment of the present invention, the default interface is 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 first subscriber identity card 13 or the second subscriber identity card 14, and the second modem 21 can access the eNodeB 101 through SIM card parameters of the first subscriber identity card 13 or the second subscriber identity card 14, 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 are also used for management of SIM cards and the like.
In the embodiment of the present invention, the first radio frequency module 12 is configured to process data transmitted by the mobile terminal 100 and then transmit the processed data to the eNodeB 101 (base station network), and is configured to process data transmitted by the eNodeB 101 and then 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 first subscriber identification card 13 and the second subscriber identification card 14 are connected to the first modem 11 for providing relevant data required for mobile communication services (CS voice service, PS data service, and PS voice service), and store subscriber information, short messages, perform authentication algorithms, generate encryption keys, and the like therein. The first subscriber identification card 13 and the second subscriber identification card 14 may store subscriber information associated with different or the same technical standards. In a particular non-limiting example, the technology standard may be a 2G communication technology, e.g., GSM, EDGE, a 3G communication technology (e.g., WCDMA, TD-SCDMA), a 4G communication technology (e.g., LTE), or any other mobile communication technology (e.g., 4G, etc.).
Because the current mobile terminal 100 only has one set of radio frequency module, when the mobile terminal 100 has two subscriber identity modules, the two subscriber identity modules of the mobile terminal 100 use the set of radio frequency in a time division 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 radio frequency dual-card time division multiplexing only achieves LTE + GSM (that is, the technical standard corresponding to one subscriber identity card is LTE, and the technical standard corresponding to the other subscriber identity card is GSM).
It can be understood that although the conventional mobile terminal 100 may support a dual-subscriber identity card, because the two subscriber identity cards support networks of different technical standards, one of the two subscriber identity cards supports 2G or 3G and the other supports 4G, when the mobile terminal 100 is registered in a network, the internet traffic speed is slow during the use of the mobile terminal 100. In the embodiment of the present invention, the mobile terminal 100 is connected to the external device 200 through the USB, 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 first subscriber identity card 13 and the second 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).
When the first subscriber identity card 13 and/or the second subscriber identity card 14 interact with the mobile terminal 100, a signal for detecting the presence or absence of the subscriber identity card by the mobile terminal 100 is generated only at the instant of power-on, and when the presence of the subscriber identity card is not detected at power-on, a prompt of "inserting the subscriber identity card" is given. After the mobile terminal 100 is powered on, the mobile terminal 100 and the subscriber identity card are communicated once in 28 seconds, completing some fixed communication checks (e.g., whether the subscriber identity card is in place, etc.).
In the embodiment of the present invention, the technical standards managed by the first subscriber identity card 13 and the second 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. When the mobile terminal 100 is not connected to the external device 200 through the USB, the first subscriber identity module 13 corresponds to the GSM technology standard for performing voice communication, and the second subscriber identity module 14 supports LTE through the first modem 11 for performing data access through the 4G network. When the mobile terminal 100 is connected to the external device 200 through the USB, the first subscriber identity card 13 may support LTE through the second modem 21 in the external device 200, and the second subscriber identity card 14 supports LTE through the first modem 11, so that the mobile terminal 100 may support dual LTE.
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 structural diagram of the entity of the communication connection between the mobile terminal 100 and the external device 200 according to the present invention. The mobile terminal 100 is communicatively connected to the external device 200 through the USB 300, 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 300 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 300 may be set according to specific needs.
Based on the above LTE network architecture diagram, the hardware structure diagram and the entity structure diagram of the mobile terminal 100 and the external device 200, various embodiments of the present invention are proposed.
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 modem 11, a first radio frequency module 12, and a first timer 16, the first modem 11 is connected to a first subscriber identity module card and a second subscriber identity module card, respectively, and the external device 200 includes a second application processor 20, a second radio frequency module 22, a second timer 26, and a second modem 21.
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 preset interface, the second timer 26 is started, and the second timer 26 is initialized, so that the value of the second timer 26 is 0. 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 default interface is USB (Universal Serial Bus). 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 and the predetermined interface is USB, the specific process of transmitting the data packet to be transmitted is as follows: the second modem 21 sends the data packet to be sent to the second application processor 20 through an smd (small 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, and the first application processor 10 receives the data packet to be sent and sends the data packet to be sent to the first modem 11 through the smd channel.
Further, when there is a data packet in the transmission state in the predetermined interface, the second application processor 20 waits for the data packet in the transmission state in the predetermined interface to be completely transmitted to the first application processor 10.
Further, when the second application processor 20 detects that there is no data packet in the sending state in the preset interface, the second application processor 20 detects whether there is a data packet to be sent in the sending queue. If the data packet to be sent exists in the sending queue, the second timer 26 is initialized, and when the value of the second timer 26 is equal to or greater than the first preset time, the data packet to be sent is sent to the first application processor 10 through the preset interface. If there is no data packet to be sent in the transmission queue, the second timer 26 is initialized, and when the value of the second timer 26 is equal to or greater than the first preset time, there is no data packet to be sent in the transmission queue, and the second application processor 20 initializes the second timer 26 again. When the value of the second timer 26 is greater than or equal to the set time value, 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 still 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, so as to implement 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 so that the value of the second timer 26 is 0. 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 a data request that the second application processor 20 needs to acquire the first subscriber identity card or the second subscriber identity card in the first application processor 10, 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, wherein 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. 4, 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 0. 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, when the preset interface is a USB, after the second application processor 20 sends a 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 wakes up the CPU of the corresponding subsystem according to the terminal signal source by the RPM, so that the corresponding subsystem is 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 subscriber identity card 13, the data packet to be sent is sent to the first subscriber identity card 13. 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 a comparison between fig. 5 and fig. 6, the time for the first application processor 10 to transition from the sleep state to the wake state may be equal to a predetermined value (as shown in fig. 5), 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. 6), 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. 7, when the probe packet is triggered by the second modem 21 and the predetermined interface is USB, the specific process of sending 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. As can be seen from fig. 7, 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. 8, fig. 8 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 modem 11, a first radio frequency module 12, a first application processor 10 and a first timer 16, the first modem 11 is connected with a first subscriber identity module card and a second subscriber identity module card respectively, and the external device 200 includes a second application processor 20, a second radio frequency module 22, a second timer 26 and a second modem 21.
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 preset interface, the second timer 26 is started, and the second timer 26 is initialized, so that the value of the second timer 26 is 0. 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 default interface is USB (Universal Serial Bus). 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 and the predetermined interface is USB, the specific process of transmitting the data packet to be transmitted is as follows: the second modem 21 sends the data packet to be sent to the second application processor 20 through an smd (small 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, and the first application processor 10 receives the data packet to be sent and sends the data packet to be sent to the first modem 11 through the smd channel.
Further, when there is a data packet in the transmission state in the predetermined interface, the second application processor 20 waits for the data packet in the transmission state in the predetermined interface to be completely transmitted to the first application processor 10.
Further, when the second application processor 20 detects that there is no data packet in the sending state in the preset interface, the second application processor 20 detects whether there is a data packet to be sent in the sending queue. If the data packet to be sent exists in the sending queue, the second timer 26 is initialized, and when the value of the second timer 26 is equal to or greater than the first preset time, the data packet to be sent is sent to the first application processor 10 through the preset interface. If there is no data packet to be sent in the transmission queue, the second timer 26 is initialized, and when the value of the second timer 26 is equal to or greater than the first preset time, there is no data packet to be sent in the transmission queue, and the second application processor 20 initializes the second timer 26 again. When the value of the second timer 26 is greater than or equal to the set time value, 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 still 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, so as to implement 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. 9, 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 so that the value of the second timer 26 is 0. 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 a data request that the second application processor 20 needs to acquire the first subscriber identity card or the second subscriber identity card in the first application processor 10, 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, wherein 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. 4, 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 0. 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, when the preset interface is a USB, after the second application processor 20 sends a 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 wakes up the CPU of the corresponding subsystem according to the terminal signal source by the RPM, so that the corresponding subsystem is 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 subscriber identity card 13, the data packet to be sent is sent to the first subscriber identity card 13. 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 a comparison between fig. 5 and fig. 6, the time for the first application processor 10 to transition from the sleep state to the wake state may be equal to a predetermined value (as shown in fig. 5), 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. 6), 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. 7, when the probe packet is triggered by the second modem 21 and the predetermined interface is USB, the specific process of sending 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. As can be seen from fig. 7, 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 modem, a first application processor and a first timer, the first modem is connected with a first user identification card and a second user identification card respectively, and the external device comprises a second application processor, a second timer and a second modem;
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 the mobile terminal system, wherein the RPM determines the dormant state of the mobile terminal system based on a voting mechanism of each subsystem of the mobile terminal, and when each subsystem throws a dormant ticket, the RPM enables the whole system of the mobile terminal to be dormant; when one sub-system or a plurality of sub-systems throw 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 modem, a first application processor and a first timer, the first modem is connected with a first user identification card and a second user identification card respectively, and the external device comprises a second application processor, a second timer and a second modem;
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 mobile terminal also comprises a Resource Power Manager (RPM), and the RPM determines the dormant state of the mobile terminal system, wherein the RPM determines the dormant state of the mobile terminal system based on a voting mechanism of each subsystem of the mobile terminal, and when each subsystem throws a dormant ticket, the RPM enables the whole system of the mobile terminal to be dormant; when one sub-system or a plurality of sub-systems throw 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.
CN201710206575.2A 2017-03-30 2017-03-30 Data transmission system and method Active CN106900046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710206575.2A CN106900046B (en) 2017-03-30 2017-03-30 Data transmission system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710206575.2A CN106900046B (en) 2017-03-30 2017-03-30 Data transmission system and method

Publications (2)

Publication Number Publication Date
CN106900046A CN106900046A (en) 2017-06-27
CN106900046B true CN106900046B (en) 2020-10-09

Family

ID=59192962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710206575.2A Active CN106900046B (en) 2017-03-30 2017-03-30 Data transmission system and method

Country Status (1)

Country Link
CN (1) CN106900046B (en)

Family Cites Families (9)

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

Non-Patent Citations (2)

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

Also Published As

Publication number Publication date
CN106900046A (en) 2017-06-27

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
CN106900046B (en) Data transmission system and method
CN107087063B (en) Data transmission system and method
CN106961718B (en) Data transmission system and method
CN106900048B (en) Data transmission system and method
CN106900043B (en) Dormancy control system and dormancy control method thereof
CN107087059B (en) Data transmission system and method
CN106900049B (en) Mobile terminal and data transmission method thereof
CN106900044B (en) Mobile terminal and dormancy control method thereof
CN107018560B (en) Data transmission system and method
CN107071165B (en) Data transmission system and method
CN107094317B (en) Data transmission system and method
CN106961719B (en) Data transmission system and method
CN106953983B (en) Data transmission system and method
CN107087061B (en) Data transmission system and method
CN106900045A (en) Data transmission system and method
CN107087064B (en) Mobile terminal and data transmission method thereof
CN107094316B (en) Mobile terminal and data transmission method thereof
CN107086988B (en) Data packet identification system and method
CN107086993B (en) Data packet identification system and method
CN107086994B (en) Data packet identification system and method

Legal Events

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

Effective date of registration: 20200908

Address after: Room 601, 6 / F, office building, No.7, Huajian 1st block, hi tech Zone, Liaocheng City, Shandong Province

Applicant after: Shandong yunshang big data 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.

GR01 Patent grant
GR01 Patent grant