CN107087063B - Data transmission system and method - Google Patents
Data transmission system and method Download PDFInfo
- Publication number
- CN107087063B CN107087063B CN201710207585.8A CN201710207585A CN107087063B CN 107087063 B CN107087063 B CN 107087063B CN 201710207585 A CN201710207585 A CN 201710207585A CN 107087063 B CN107087063 B CN 107087063B
- Authority
- CN
- China
- Prior art keywords
- application processor
- timer
- data packet
- mobile terminal
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing 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 connected with a first user identification card and a first timer, and the external device comprises a second application processor, a second modem connected with a second user identification card 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. According to the invention, in the process that the mobile terminal realizes the double LTE communication function through the external equipment, the accuracy of identifying the data packet sent by the external equipment by the mobile terminal is improved.
Description
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 connected to a first user identification card, and a first timer, and the external device includes a second application processor, a second modem connected to a second user identification card, 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 connected to a first user identification card, and a first timer, and the external device includes a second application processor, a second modem connected to a second user identification card, 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 connected with a first user identification card and a first timer, and the external device comprises a second application processor, a second modem connected with a second user identification card 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 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 flowchart illustrating a data transmission method according to a first embodiment of the present invention;
FIG. 7 is a flowchart illustrating a data transmission method according to a second embodiment of the present invention;
FIG. 8 is a third exemplary diagram illustrating data transmission between a first application processor and a second application processor in accordance with an embodiment of the present invention;
fig. 9 is a flowchart illustrating a data transmission method according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
Fig. 1 is a schematic diagram of an LTE network architecture according to an embodiment of the present invention. The LTE network architecture of an embodiment of the invention comprises: one or more mobile terminals (UEs) 100, an E-UTRAN (Evolved UMTS terrestrial Radio Access Network) (not numbered), an Evolved Packet Core (EPC) (not numbered), a Home Subscriber Server (HSS)107, a Network (e.g., the internet) (not numbered), and a circuit switched system (not numbered).
The E-UTRAN includes evolved node Bs (eNodeBs) 101 and other eNodeBs 102. The 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 subscriber identity card 13, an RPM (Resource Power Manager) 15, and a first timer 16. The external device 200 includes a second processing chip 002 and a second rf module 22 connected to the second processing chip 002. Wherein the second processing chip 002 includes a second application processor 20, a second modem (modem2)21 connected to the second subscriber identity card 23, and a second timer 26. The first subscriber identity card 13 and the second subscriber identity card 23 are SIM cards.
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 modems, control of a chip start-up sequence during startup and shutdown, and the like.
The first application processor 10 is connected with the second application processor 20 through a preset interface to realize the connection between the mobile terminal 100 and the external device 200. In an embodiment of the present invention, the predetermined interface is a USB (Universal serial bus). USB multiplexes two data channels for user data and signaling data interaction between the first application processor 10 and the second application processor 20. That is, the first application processor 10 and the second application processor 20 transmit user data and signaling data through the USB. The user data includes but is not limited to data generated by surfing the internet, pictures and chatting information data; the signaling data includes, but is not limited to, control data for switching on and off flight modes, and control data for display status signals. In the embodiment of the present invention, since the first modem 11 is connected to the first subscriber identity card 13 and the second modem 21 is connected to the second subscriber identity card 23, the USB does not transmit SIM card authentication data.
Specifically, The first application processor 10 and The second application processor 20 perform data interaction through an OTG (On-The-Go) technology. With OTG technology, the first modem 11 in the mobile terminal 100 may access the eNodeB 101 through SIM card parameters in the first subscriber identity card 13, and the second modem 21 may access the eNodeB 101 through SIM card parameters of the second subscriber identity card 23, including but not limited to SIM card authentication data.
The first modem 11 and the second modem 21 include protocol stacks of various network systems for network interaction, and the protocol stacks include protocol codes specified in Communication standards such as LTE/WCDMA (Wideband Code Division Multiple Access)/GSM (Global System for Mobile Communication)/TD-SCDMA (time Division-Synchronous Code Division Multiple Access, 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 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 first subscriber identity card 13 is connected to the first modem 11 and the second subscriber identity card 23 is connected to the second modem 21. The first and second subscriber identification cards 13 and 23 may store subscriber information associated with different or the same technical standards 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. 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 two subscriber identity modules are in the mobile terminal 100, the two subscriber identity modules are in a time-sharing multiplexing relationship with each other 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, since the external device 200 includes the second modem 21, the second rf module 22 and the second subscriber identity module 23, and the second rf module 22 supports a 4G network. Therefore, the mobile terminal 100 may interact with the external device 200 through the USB, so that the mobile terminal 100 has a dual LTE function (at this time, the technical standards managed by the first subscriber identity card 13 and the second subscriber identity card 23 are both LTE standards, and the radio access technologies related to the first radio frequency module 12 and the second radio frequency module 22 are LTE, that is, the first subscriber identity card 13 may support LTE through the first modem 11 in the mobile terminal 100, and the second subscriber identity card 23 supports LTE through the second modem 21 in the external device).
When the mobile terminal 100 is not connected to the external device 200 through the USB, the first subscriber identity module 13 corresponds to the GSM technology standard for performing voice communication, or supports the LTE technology through the first modem 11 for performing data access through the 4G network.
When the first subscriber identity card 13 interacts with the mobile terminal 100, the signal for the mobile terminal 100 to detect the presence of the first subscriber identity card 13 is generated only at the instant of power-on, and when the presence of the first subscriber identity card 13 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 first subscriber identity card 13 communicate once in 28 seconds, completing some fixed communication checks (e.g., whether the subscriber identity card is in place, etc.).
It should be noted that, since the first modem 11 of the mobile terminal 100 is connected to the first subscriber identity card 13 and the second modem 21 of the external device 200 is connected to the second subscriber identity card 23, the first modem 11 and the second modem 21 are independent of each other, and the second modem 21 does not wake up the first modem 11.
RPM15 is used to manage various resources including clock resources, bus resources, PMIC (Power Management IC, voltage of Power Management integrated circuit, i.e., individual chips), DDR (memory allocation), and interrupts to manage sleep wake-up of chips and deadlines to apply processor wake-up. Each subsystem of the mobile terminal 100 applies for resources from RPM15 when the resources are needed, each subsystem includes a first application processor 10, a first modem 11, a PRONTO (WIFI/bluetooth, NFC (Near Field Communication, etc.), an LPASS (Low power audio subsystem), and an RPM15, where RPM 3526 is used to determine a sleep state of the mobile terminal 100 system, specifically, RPM15 is implemented based on a voting mechanism of each subsystem, and when each subsystem casts a sleep ticket, RPM15 may enable the entire system of the mobile terminal 100 to sleep. When the mobile terminal 100 has one or more 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 proposes 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 connected to a first subscriber identity module 13, and a first timer 16, and the external device 200 includes a second application processor 20, a second modem 21 connected to a second subscriber identity module 23, 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 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 predetermined 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 access a 2G, 3G, or 4G network, 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. 8, 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.
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 first application processor 10 is required to respond to the data packet to be sent, the first application processor 10 responds to the data packet to be sent. 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.
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. 6, fig. 6 is a flowchart illustrating a data transmission method according to a first embodiment of the present invention.
While the present embodiment provides an embodiment of a data transmission method, it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown.
The data transmission method is applied to a mobile terminal 100 connected with an external device 200 through a preset interface, the mobile terminal 100 includes a first application processor 10, a first modem 11 connected with a first subscriber identity card 13, and a first timer 16, and the external device 200 includes a second application processor 20, a second modem 21 connected with a second subscriber identity card 23, 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 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. 7, 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 access a 2G, 3G, or 4G network, 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. 8, 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.
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 first application processor 10 is required to respond to the data packet to be sent, the first application processor 10 responds to the data packet to be sent. 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.
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. 9, 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 connected with a first user identification card and a first timer, and the external device comprises a second application processor, a second modem connected with a second user identification card 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 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 application processor, a first modem connected with a first user identification card and a first timer, and the external device comprises a second application processor, a second modem connected with a second user identification card 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 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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710207585.8A CN107087063B (en) | 2017-03-30 | 2017-03-30 | Data transmission system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710207585.8A CN107087063B (en) | 2017-03-30 | 2017-03-30 | Data transmission system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107087063A CN107087063A (en) | 2017-08-22 |
CN107087063B true CN107087063B (en) | 2020-11-03 |
Family
ID=59614650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710207585.8A Expired - Fee Related CN107087063B (en) | 2017-03-30 | 2017-03-30 | Data transmission system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107087063B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101730270B (en) * | 2009-11-23 | 2012-04-18 | 中国电信股份有限公司 | Mobile terminal data transmission optimization method and mobile terminal |
US9197324B1 (en) * | 2012-04-09 | 2015-11-24 | Inphi Corporation | Method and system for transmitter optimization of an optical PAM serdes based on receiver feedback |
CN104702767A (en) * | 2013-12-04 | 2015-06-10 | 中国电信股份有限公司 | Method, subscriber identity module card and system used for sending messages |
CN105119825A (en) * | 2015-07-10 | 2015-12-02 | 努比亚技术有限公司 | Data transmission device and data transmission method |
CN105960000A (en) * | 2016-06-12 | 2016-09-21 | 努比亚技术有限公司 | Dormancy awakening method and processor |
-
2017
- 2017-03-30 CN CN201710207585.8A patent/CN107087063B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN107087063A (en) | 2017-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107277907B (en) | Mobile terminal and control method thereof | |
CN107087269B (en) | Mobile terminal and data transmission method thereof | |
CN107087057B (en) | Data transmission system and method | |
CN107087062B (en) | Data transmission system and method | |
CN106953984B (en) | Data transmission system and method | |
CN107087063B (en) | Data transmission system and method | |
CN106900046B (en) | Data transmission system and method | |
CN106961718B (en) | Data transmission system and method | |
CN106900048B (en) | Data transmission system and method | |
CN107087059B (en) | Data transmission system and method | |
CN106900049B (en) | Mobile terminal and data transmission method thereof | |
CN106900043B (en) | Dormancy control system and dormancy control method thereof | |
CN106900044B (en) | Mobile terminal and dormancy control method thereof | |
CN106953983B (en) | Data transmission system and method | |
CN107018560B (en) | Data transmission system and method | |
CN107094317B (en) | Data transmission system and method | |
CN107071165B (en) | Data transmission system and method | |
CN106961719B (en) | Data transmission system and method | |
CN107087061B (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 | |
CN107086991B (en) | Data packet identification system and method | |
CN107070903B (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 |
Effective date of registration: 20201012 Address after: 315020 1-16, No.118 Zhengda Road, Jiangbei District, Ningbo City, Zhejiang Province Applicant after: E-Net Digital Logistics (Ningbo) 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201103 |
|
CF01 | Termination of patent right due to non-payment of annual fee |