CN107396342A - Data transmission system, method, external equipment and mobile terminal - Google Patents

Data transmission system, method, external equipment and mobile terminal Download PDF

Info

Publication number
CN107396342A
CN107396342A CN201710644785.XA CN201710644785A CN107396342A CN 107396342 A CN107396342 A CN 107396342A CN 201710644785 A CN201710644785 A CN 201710644785A CN 107396342 A CN107396342 A CN 107396342A
Authority
CN
China
Prior art keywords
data
extra buffer
transmitted bag
transmitted
bag
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.)
Withdrawn
Application number
CN201710644785.XA
Other languages
Chinese (zh)
Inventor
李隽�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710644785.XA priority Critical patent/CN107396342A/en
Publication of CN107396342A publication Critical patent/CN107396342A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

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

Abstract

The invention discloses a kind of data transmission system, method, external equipment and mobile terminal, this method is applied to mobile terminal and external equipment, transmitted between external equipment and mobile terminal in data to be transmitted packet procedures, increase each component (the second data transmitting server in external equipment and external equipment, second data forwarding client, second reading and writing data forwarding module, first reading and writing data forwarding module, first data transmitting server and the first data forwarding client) in extra buffer capability value, the capability value of extra buffer in each component is set to be more than or equal to the size of data to be transmitted bag.During carrying out data transmission in external equipment and mobile terminal, by the packet transmitted is excessive, the situation of packet bust this is caused to occur.

Description

Data transmission system, method, external equipment and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of data transmission system, method, external equipment and movement are eventually End.
Background technology
With the development of mobile communication technology, mobile terminal has become user and carried with, and essential electronics is set It is standby.Led in operator and major OEM (Original Equipment Manufacturer, original equipment manufacturer) manufacturer Under head, 3G (3rd Generation, 3rd generation mobile communication technology), 4G (the 4th Generation Mobile Communication Technology, fourth generation mobile communication technology), CA (Carrier Aggregation, using carrier wave Polymerization technique) and newest 5G (5th-Generation, the 5th third-generation mobile communication technology) arise at the historic moment, the mesh of these technologies Be to improve the online bandwidth of user.Under such a background, a kind of mode for improving user's online bandwidth is also quietly given birth to, Mobile terminal connects two modems, and each modem has corresponding SIM (Subscriber Identification Module) card, and each modem can independently surf the Net, and then access user on upper strata Network the network speeds of two data networks carried out according to actual conditions be superimposed, so as to reach the purpose for improving online bandwidth.Due to Monopolization and limitation of the operator to legacy user's online bandwidth, manufacturer terminal can pass through the network speed superimposing technique scheme and increase use Family online bandwidth, effectively incorporates the online resource of two SIM cards in mobile terminal, and realize true DSDA (Dual SIM Dual active, double card bilateral), and the double LTE (Long Term Evolution, Long Term Evolution) of double card are standby.
Therefore, in order that mobile terminal connects two modems, by mobile terminal with it is outer containing modem Connect the connection of equipment.But during carrying out data transmission between mobile terminal and external equipment, when external equipment and movement When the packet transmitted between terminal is excessive, the situation of packet bust this can be caused to occur.
The content of the invention
It is a primary object of the present invention to propose a kind of data transmission system, method, external equipment and mobile terminal, it is intended to Solve the data during mobile terminal realizes double LTE communications by external equipment, transmitted between external equipment and mobile terminal Wrap excessive, cause the technical problem of packet bust this.
To achieve the above object, a kind of data transmission system provided by the invention, the data transmission system include movement Terminal and external equipment, the mobile terminal include the first application processor, and first be connected with entity user identification card Modem, being embedded with first modem of virtual user identifying card includes the first data transmitting server, institute Stating the first data transmitting server includes the first reception extra buffer, and first application processor includes the first reading and writing data Forwarding module and the first data forwarding client being connected with first data transmitting server, the first data forwarding visitor Family end includes first and sends extra buffer;The external equipment includes the second application processor and second modem, institute Stating second modem includes the second data transmitting server, and second data transmitting server includes second and sent temporarily Buffering area, second application processor include the second reading and writing data forwarding module and connected with second data transmitting server The the second data forwarding client connect, the second data forwarding client include second and receive extra buffer;
Second data transmitting server, for when detect send data to be transmitted bag data transfer instruction when, Data to be transmitted bag is obtained according to the data transfer instruction;The data to be transmitted bag is cached to described second and sent temporarily In buffering area;
Second application processor, for obtaining the data to be transmitted from the described second reception extra buffer Bag, the first reading and writing data forwarding module is sent to by the data to be transmitted bag by preset interface;
The first reading and writing data forwarding module, for when the number to be transmitted for receiving the second application processor transmission During according to bag, the classification logotype in the data to be transmitted bag is obtained;If the data to be transmitted is determined according to the classification logotype Wrap as data to be forwarded bag, then the data to be transmitted bag is transmitted to the first data forwarding client;
The first data forwarding client, interim delay is sent for the data to be transmitted bag to be cached to described first Rush in area;
First data transmitting server, for obtaining the number to be transmitted from the described first reception extra buffer According to bag;
Wherein, the second transmission extra buffer and the described second capability value for receiving extra buffer are synchronous changes , the capability value of the second transmission extra buffer and the second reception extra buffer is equal to the first default value and first Increment value sum, and first default value is more than or equal to the data to be transmitted bag with the first increment value sum Size;
The capability value of the first transmission extra buffer and the first reception extra buffer synchronously changes, institute State the first transmission extra buffer and the described first capability value for receiving extra buffer is equal to the second default value and the second increase It is worth sum, and second default value is more than or equal to the big of the data to be transmitted bag with the second increment value sum It is small.
Alternatively, second data transmitting server is additionally operable to calculate the size of the data to be transmitted bag, and judges Whether the size of the data to be transmitted bag is more than first default value;If the size of the data to be transmitted bag is more than described First default value, then the difference between the size of the data to be transmitted bag and first default value is calculated, according to the difference Value determines first increment value;If the size of the data to be transmitted bag is less than or equal to first default value, by institute Data to be transmitted bag is stated to cache to capability value as in the second transmission extra buffer of the first default value;
Second application processor is additionally operable to receive extra buffer from capability value for described the second of the first default value It is middle to obtain the data to be transmitted bag, the data to be transmitted bag is sent to first reading and writing data by preset interface and turned Send out module.
Alternatively, second data transmitting server is additionally operable to when second application processor receives from described second When the data to be transmitted bag is got in extra buffer, reduce described second and send the capability value of extra buffer to described First default value.
In addition, to achieve the above object, the present invention also proposes a kind of data transmission method, the data transmission method application In external equipment, the external equipment includes the second application processor and second modem, the second modem Including the second data transmitting server being connected with second application processor, second data transmitting server includes the Two send extra buffer, and the data transmission method includes:
When second data transmitting server detects the data transfer instruction for sending data to be transmitted bag, according to institute State data transfer instruction and obtain data to be transmitted bag;
The data to be transmitted bag is cached to described second and sent in extra buffer, for the described second application processing Device obtains the data to be transmitted bag from the second reception extra buffer corresponding with the described second transmission extra buffer, will The data to be transmitted bag is sent to mobile terminal by preset interface;
Wherein, the second transmission extra buffer and the described second capability value for receiving extra buffer are synchronous changes , the capability value of the second transmission extra buffer and the second reception extra buffer is equal to the first default value and first Increment value sum, and first default value is more than or equal to the data to be transmitted bag with the first increment value sum Size.
Alternatively, it is described by the data to be transmitted bag cache to described second send extra buffer in step it Before, in addition to:
The size of the data to be transmitted bag is calculated, and judges whether the size of the data to be transmitted bag is more than described the One default value;
If the size of the data to be transmitted bag is more than first default value, the big of the data to be transmitted bag is calculated Difference between small and described first default value, first increment value is determined according to the difference;
If the size of the data to be transmitted bag is less than or equal to first default value, by the data to be transmitted bag Cache to capability value and sent for described the second of the first default value in extra buffer, so that second application processor is calm Value is obtains the data to be transmitted bag in the second reception extra buffer of the first default value, by the number to be transmitted Mobile terminal is sent to by preset interface according to bag.
Alternatively, it is described by the data to be transmitted bag cache to described second send extra buffer in step it Afterwards, in addition to:
When second application processor gets the data to be transmitted bag from the described second reception extra buffer When, second data transmitting server reduces described second and sends the capability value of extra buffer to first default value.
Alternatively, it is described by the data to be transmitted bag cache to described second send extra buffer in step it Afterwards, in addition to:
When second application processor gets the data to be transmitted bag from the described second reception extra buffer, Second data transmitting server deletes the data to be transmitted bag cached in the second transmission extra buffer.
In addition, to achieve the above object, the present invention also proposes a kind of data transmission method, the data transmission method application In mobile terminal, the mobile terminal includes the first application processor, and the first modulation being connected with entity user identification card Demodulator, being embedded with first modem of virtual user identifying card includes the first data transmitting server, and described One data transmitting server includes first and receives extra buffer, and first application processor forwards including the first reading and writing data Module and the first data forwarding client being connected with first data transmitting server, the first data forwarding client Extra buffer is sent including first, the data transmission method includes:
When the first reading and writing data forwarding module receives the number to be transmitted of the application processor of external equipment second transmission During according to bag, the classification logotype in the data to be transmitted bag is obtained;
If determine that the data to be transmitted bag is data to be forwarded bag according to the classification logotype, by the number to be transmitted The first data forwarding client is transmitted to according to bag, so that the first data forwarding client is by the data to be transmitted bag Caching receives interim buffering into the described first transmission extra buffer, by first data transmitting server from described first The data to be transmitted bag is obtained in area;
Wherein, the first transmission extra buffer and the described first capability value for receiving extra buffer are synchronous changes , the capability value of the first transmission extra buffer and the first reception extra buffer is equal to the second default value and second Increment value sum, and second default value is more than or equal to the data to be transmitted bag with the second increment value sum Size.
In addition, to achieve the above object, the present invention also proposes a kind of external equipment, the external equipment includes the second application Processor and second modem, the second modem include the second data transmitting server, second application Processor includes the second reading and writing data forwarding module and the second data forwarding being connected with second data transmitting server visitor Family end, the second data forwarding client include second and receive extra buffer;The external equipment is applied to as described above The data transmission method applied to external equipment.
In addition, to achieve the above object, the present invention also proposes a kind of mobile terminal, the mobile terminal includes the first application Processor, and the first modem being connected with entity user identification card, it is embedded with described the of virtual user identifying card One modem includes the first data transmitting server, and first data transmitting server includes first and receives interim buffering Area, first application processor include the first reading and writing data forwarding module and are connected with first data transmitting server First data forwarding client, the first data forwarding client include first and send extra buffer;The mobile terminal Applied to the data transmission method as described above for being applied to mobile terminal.
The present invention provides a kind of data transmission system, method, external equipment and mobile terminal, whole in external equipment and movement Transmitted between end in data to be transmitted packet procedures, increasing each component in external equipment and external equipment, (the second data forwarding takes Device, the second data forwarding client, the second reading and writing data forwarding module, the first reading and writing data forwarding module, the first data of being engaged in turn Send out server and the first data forwarding client) in extra buffer capability value, make the appearance of extra buffer in each component Value is more than or equal to the size of data to be transmitted bag, avoids and carries out data transmission process in external equipment and mobile terminal In, by the packet transmitted is excessive, cause the situation of packet bust this to occur.
Brief description of the drawings
Fig. 1 is the schematic diagram of the LTE network framework of one embodiment of the invention;
Fig. 2 is mobile terminal and a kind of hardware architecture diagram of external equipment communication connection in the embodiment of the present invention;
Fig. 3 is mobile terminal and a kind of entity structure schematic diagram of external equipment communication connection in the embodiment of the present invention;
Fig. 4 is mobile terminal and another structural representation of external equipment communication connection in the embodiment of the present invention;
Fig. 5 is the schematic flow sheet for the data transmission method first embodiment for being applied to external equipment in the present invention;
Fig. 6 is the schematic flow sheet for the data transmission method second embodiment for being applied to external equipment in the present invention;
Fig. 7 is the schematic flow sheet for the data transmission method 3rd embodiment for being applied to external equipment in the present invention;
Fig. 8 is the schematic flow sheet for the data transmission method preferred embodiment for being applied to mobile terminal in the present invention.
The realization, functional characteristics and advantage of the object of the invention will explain referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the present invention referring now to accompanying drawing.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for be advantageous to the present invention explanation, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Fig. 1 is the schematic diagram of the LTE network framework of one embodiment of the invention.The LTE network framework of one embodiment of the invention Including:One or more mobile terminals (user equipment, UE) 100, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, the UMTS Terrestrial radio access network of evolution) (non-label in figure), evolution point Group core (EPC) (non-label in figure), home subscriber servers (HSS) 107, network (for example, internet) (non-label in figure) And circuit switching system (non-label in figure).
E-UTRAN includes evolution B node (eNodeB) 101 and other eNodeB 102.ENodeB 101 is provided towards shifting The user plane of dynamic terminal 100 and the protocol terminations of chain of command.ENodeB 101 can be connected to other eNodeB via X2 interface. ENodeB 101 is alternatively referred to as base station, base transceiver station, radio base station, wireless set, transceiver function, basic service Collection, extended service set or some other suitable terms.ENodeB 101 is that mobile terminal 100 provides the access for going to EPC Point.
ENodeB 101 is connected to EPC by S1 interfaces.EPC includes mobile management entity (EEM) 104, other moving tubes Manage entity 106, gateway 103, and packet data network (PDN) gateway 105.Mobile management entity 104 is processing movement The control node of signaling between terminal 100 and EPC.Mobile management entity 104 provides carrying and connection management.All User IPs Packet is transmitted by gateway 103, and gateway 103 is itself coupled to PDN Gateway 105.PDN Gateway 105 provides UE IP Address is distributed and other functions.PDN Gateway 105 is connected to network, for example, internet.
Circuit switching system includes interaction solution module (IWS) 108, mobile switching centre (MSC) 109, base station 110 With movement station 111.In one aspect, circuit switching system can pass through IWS and MME (Mobility Management Entity, mobile management entity) communicated with EPS (Evolved Packet System, the grouping system of evolution).
Fig. 2 is mobile terminal and a kind of hardware architecture diagram of external equipment communication connection in the embodiment of the present invention. In the embodiment of the present invention, mobile terminal 100 is connected by preset interface with external equipment 200.Mobile terminal 100 is included at first Reason chip 001 and the first radio-frequency module 12 being connected with the first process chip 001.Wherein, the first process chip 001 includes first Application processor (Application Processor) 10, the first modem 11 being connected with entity user identification card 14 (modem1) and RPM (Resource Power Manager, resource power supervisor) 15, wherein, the first modem 11 It is embedded with virtual user identifying card 13.External equipment 200 includes second processing chip 002 and is connected with second processing chip 002 The second radio-frequency module 22.Wherein, second processing chip 002 includes the second application processor 20 and second modem (modem2)21.Subscriber Identity Module is SIM card.
The inner frame of first application processor 10 and the second application processor 20 includes application layer, ccf layer etc., can locate Manage complicated logical operation and carry out task distribution etc..In embodiments of the present invention, application processor refers to Android operations system System, and the various apk (Android Package, Android installation kit) based on Android operation system.First application processing The application processor 20 of device 10 and second is realized by USB and connected, and provides the user interactive interface, the operational order that user is inputted (for example, the operational order for the relevant startup video calling that user is inputted by user interface) is transferred to the first modem 11 Or second modem 21, to realize the definition and transmission of data between two processors, for example, carrying out two application processing Control of chip boot sequence the etc. when dormancy of device, wake-up, the control of synchronization, switching on and shutting down.
First application processor 10 is connected by preset interface with the second application processor 20, to realize mobile terminal 100 With the connection between external equipment 200.In embodiments of the present invention, preset interface USB, USB are multiplexed out three data passages, It is respectively used to user data, signaling data and SIM card authentication number between the first application processor 10 and the second application processor 20 According to interaction.That is the first application processor 10 and the second application processor 20 by USB transmission user data, signaling data and SIM card authorization data.Wherein, user data includes but is not limited to caused data of surfing the Net, picture and chat message data;Signaling Data include but is not limited to the control data of switching on and shutting down, switch the control data of offline mode, the control number of dispaly state signal According to;SIM card authorization data includes but is not limited to IMSI (International Mobile Subscriber Identification Number, international mobile subscriber identity) and Ki (key identifier, KI).
Specifically, the first application processor 10 and the second application processor 20 enter line number by OTG (On-The-Go) technology According to interaction.By OTG technologies, the first modem 11 in mobile terminal 100 can pass through entity user identification card 14 or void Intend the SIM card parameter in Subscriber Identity Module 13 to access eNodeB 101, second modem 21 can be known by entity user Not Ka 14 or the SIM card parameter of virtual user identifying card 13 access eNodeB 101, SIM card parameter includes but is not limited to SIM Card authorization data.
First modem 11 and second modem 21 include the protocol stack of the network formats of various network interactions, Protocol stack includes LTE/WCDMA (Wideband Code Division Multiple Access, WCDMA)/GSM (Global System for Mobile Communication, global system for mobile communications)/TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, synchronous time division CDMA)/CDMA (Code Division Multiple Access, CDMA)/EDGE (Enhanced Data Rate for GSM Evolution, strong type Data for GSM Evolution) etc. protocol code as defined in inside communication standard.Mobile terminal 100 is logical Agreement is crossed to interact with carrier network, that is, carry out data traffic online, VOLTE (Voice Over LTE) makes a phone call or Make a phone call in CS (Circuit Switched, circuit switching) domain.First modem 11 and second modem 21 are also used In management and control to SIM card etc..
In embodiments of the present invention, it is transmitted to after the data processing that the first radio-frequency module 12 is used to transmit mobile terminal 100 Mobile terminal 100 is transmitted to after eNodeB 101 (base station network), and the data processing for eNodeB 101 to be transmitted.Second ENodeB 101 (base station network) is transmitted to after the data processing that radio-frequency module 22 is used to transmit external equipment 200, and is used for External equipment 200 is transmitted to after the data processing that eNodeB 101 is transmitted.
Wireless access technology involved by first radio-frequency module 12 and the second radio-frequency module 22 can include LTE, GSM, GPRS (General Packet Radio Service, general packet radio service), CDMA, EDGE, WLAN (Wireless Local Area Networks, WLAN), CDMA-2000, TD-SCDMA, WCDMA, WIFI (Wireless Fidelity, Wireless Fidelity) etc..
Virtual user identifying card 13 in the form of software embed with the first modem 11 in, virtual user identifying card 13 Including memory module and virtual chip operating system (VCOS, Virtual Chip Operating System), the memory module Can be EFS (Encrypting File System, encrypted file system), memory module is used to store virtual user identifying card 13 Authorization data.
Entity user identification card 14 is connected with the first modem 11.Entity user identification card 14 and Virtual User identification Card 13 can store the user profile associated with similar and different technical standard, for providing mobile communication business (CS voices Business, PS data services and PS speech businesses) needed for related data, and in its storage inside user profile, short message, execution Authentication arithmetic and generation cryptographic keys etc..In specific non-limiting examples, technical standard can be the 2G communication technologys, for example, GSM, EDGE), the 3G communication technologys (for example, WCDMA, TD-SCDMA), the 4G communication technologys (for example, LTE), or any other movement The communication technology (for example, 4G etc.).
When virtual user identifying card 13 needs to carry out network registry, sent by Wireless Fidelity (WIFI) network of unlatching Cloud server corresponding to virtual user identifying card 13 is downloaded request to comprising service menu data, to be obtained from cloud server Take the data message of virtual user identifying card 13.When getting the data message of virtual user identifying card 13, by data message Write in the memory module of virtual user identifying card 13, to realize the network registry of virtual user identifying card 13.Wherein, data are believed Breath can include:IMSI, Ki (key identifier, KI), ICCID (Integrated Circuit Card Identifier), PIN (personal identification number, Personal Identification Number), PUK (PIN Unlocking Key).It is understood that the card number resource of each operator is stored in cloud server.
Because current mobile terminal 100 only has a set of radio-frequency module, when mobile terminal 100 has two Subscriber Identity Modules When, two Subscriber Identity Modules of mobile terminal 100 are the relation of time-sharing multiplex using the set radio frequency, can not be taken simultaneously.Example Such as, in two Subscriber Identity Module standard-sized sheets, conversed wherein a Subscriber Identity Module only handles GSM, and another Subscriber Identity Module The 4G network informations are handled, which kind of network performed, is not limited herein for which specific Subscriber Identity Module.Therefore current radio frequency double card This framework of time-sharing multiplex has only accomplished that (technical standard is LTE to LTE+GSM i.e. corresponding to a Subscriber Identity Module, another use Technical standard corresponding to the identification card of family is GSM).
It is understood that although existing mobile terminal 100 can support Dual-user identification card, due to mobile terminal 100 in the case of registered network, and what two Subscriber Identity Modules were supported is the network of different technologies standard, one support 2G or 3G, another support 4G, during causing the use of mobile terminal 100, surfing flow speed is slower.In the embodiment of the present invention In, mobile terminal 100 is by USB connections external equipment 200, because external equipment 200 includes second modem 21 and the Two radio-frequency modules 22, and the second radio-frequency module 22 supports 4G networks, therefore, mobile terminal 100 can pass through USB and external equipment 200 interactions, so that mobile terminal 100 possesses double LTE functions (now virtual user identifying card 13 and entity user identification card The technical standards of 14 management are LTE standard, the wireless access skill involved by the first radio-frequency module 12 and the second radio-frequency module 22 Art is LTE).
In embodiments of the present invention, data transmission system includes mobile terminal 100 and external equipment 200, mobile terminal 100 The implementation process for possessing double LTE functions by external equipment 200 can be:1. entity user identification card 14 passes through the second modulation /demodulation Device 21 supports LTE, and detailed process is:First modem 11 will need to access LTE network in entity user identification card 14 Data are sent to the first application processor 10, and received data is sent to external set by the first application processor 10 by USB Received data is sent to second modem 21 by standby 200 the second application processor 20, the second application processor 20, Second radio-frequency module 22 is transmitted to by second modem 21, received data is passed through LTE nets by the second radio-frequency module 22 Network is sent;Virtual user identifying card 13 supports LTE by the first modem 11, to realize that mobile terminal 100 can prop up Hold double LTE.2. virtual user identifying card 13 supports LTE by second modem 21, detailed process is:First application processing Device 10 will need the data for accessing LTE network to be sent to the second of external equipment 200 by USB in virtual user identifying card 13 should With processor 20, received data is sent to second modem 21 by the second application processor 20, by the second modulatedemodulate Device 21 is adjusted to be transmitted to the second radio-frequency module 22, the second radio-frequency module 22 sends received data by LTE network;It is real Body Subscriber Identity Module 14 supports LTE by the first modem 11, to realize that mobile terminal 100 can support double LTE.
When mobile terminal 100 is not connected by USB with external equipment 200, the skill corresponding to entity user identification card 14 Art standard is GSM, and for carrying out speech communication, virtual user identifying card 13 is supported LTE by the first modem 11, is used for Data access is carried out by 4G networks.
For entity user identification card 14 when being interacted with mobile terminal 100, mobile terminal 100 detects entity user identification card 14 The signal of presence or absence is only in the instantaneous generation of start, in the presence of start can't detect entity user identification card 14, mobile terminal 100 will be prompted to " insertion Subscriber Identity Module ".After mobile terminal 100 is started shooting, mobile terminal 100 and entity user identification card 14 it Between communication in 28 seconds once, complete the communication check (for example, Subscriber Identity Module whether in place etc.) of some fixations.
The RPM15 of mobile terminal 100 is used for the various resources of management and control, including clock sources, bus resource, PMIC (Power Management IC, power management integrated circuit, i.e., the voltage of each chip), DDR (Memory Allocation), and managing chip The deadline that the interruption of dormancy awakening and application processor wake up.The subsystems of mobile terminal 100, needing resource When, apply for resource to RPM15, subsystems include the first application processor 10, the first modem 11, PRONTO respectively (WIFI/ bluetooths, NFC (Near Field Communication, near-field communication) etc.), LPASS (Low power audio Subsystem, low-power consumption audio subsystem), RPM15 is used for determining the resting state of the system of mobile terminal 100, is specifically, Voting mechanisms of the RPM15 based on subsystems realizes that, when subsystems all throw dormancy ticket, RPM15 can just make movement The whole system of terminal 100 carries out dormancy.And working as mobile terminal 100 has a sub or multiple subsystems to throw the ticket for opposing dormancy, The whole system of mobile terminal 100 all can not dormancy.
After the whole system dormancy of mobile terminal 100, if to restart operation, it is necessary to wake up at the first application Reason device 10 is interacted with carrying out the transmission of data.
In the case where mobile terminal 100 and external equipment 200 are by USB communication connections, wake-up mode can be following three Kind:
1st, when the first application processor 10 receives signaling data, by USB send shake hands keyword to second application at Device 20 is managed, to wake up the second application processor 20.
2nd, when second modem 21 receives user data, the second application processor 20 is waken up, by the second application Reason device 20 shakes hands keyword to the first application processor 10 by USB transmission, to wake up the first application processor 10.
3rd, second modem 21 periodically searches paging request, with active activation oneself.If receiving paging request, Second modem 21 then wakes up the second application processor 20, and key of shaking hands is sent by USB by the second application processor 20 Word gives the first application processor 10, to wake up the second application processor 20.
It should be noted that keyword of shaking hands can use the character mark of fixed word length, it is to be not in normal data packet Field.Such as available 0xF9F9F9 or 0x9F9F9F represents keyword of shaking hands, and can be waken up in sleep by keyword of shaking hands The first application processor 10 or the second application processor 20 of state.
In addition, second modem 21 can be with periodic wakeup oneself, to carry out location updating in mobile terminal 100 When, interaction of shaking hands is carried out with base station, need not now wake up the first application processor 10.
Reference picture 3, Fig. 3 are mobile terminal 100 of the present invention and the entity structure schematic diagram of the communication connection of external equipment 200. Mobile terminal 100 is connected by USB and the communication of external equipment 200, wherein, mobile terminal includes but is not limited to mobile phone, PC (Personal Computer, PC) or PAD (Personal Digital Assistant, personal digital assistant), outside Connect equipment 200 and include but is not limited to wireless Internet card and data card.It should be noted that mobile terminal 100 by USB with it is external The link position of equipment 200 is not limited to shown in Fig. 3, and mobile terminal 100 can be set to be set by USB with external according to specific needs Standby 200 link position.
Reference picture 4, as shown in Figure 4, the first modem 11 drive including UIM (User Identity Module) 112nd, the first SIM card module agency 113, remote sim data access server114, the first blocking module 115 and the first data turn Send out server 116 (data forwarding server1).First application processor 10 includes the first data forwarding client 011, and (data turn Send out client1) and the first reading and writing data forwarding module 012.Second modem 21 include modem Non-Access Stratums part 212, Second SIM card module agency 213, remote sim data access client214, the second blocking module 215 and the second data forwarding clothes Business device 216 (data forwarding server2), the second application processor 20 include the second reading and writing data forwarding module 022 and the second number According to forwarding client 021 (data forwarding client2).
Wherein, UIM drivings 112 store the access necessary data of network, such as UIM ID, authorization data AKY values, IMSI number Deng.
Remote sim data access server114 and remote sim data access client214 is used to realize the first modulatedemodulate Adjust the transmission of SIM card data between device 11 and second modem 21.
First blocking module 115 is used to intercept the SIM card data transmitted needed for remote sim data access server114; Second blocking module 215 is used to intercept the SIM card data transmitted needed for remote sim data access client214.Pass through first The blocking module 215 of blocking module 115 and second realizes remote sim data access server114 and remote sim data access The interaction of SIM card data in client214.
Second data transmitting server 216 and the second data forwarding client 021 are corresponding, for realizing the second modulatedemodulate Adjust the data transfer between the application processor 20 of device 21 and second;First data transmitting server 116 and the first data forwarding visitor Family end 011 is corresponding, for realizing the data transfer between the first modem 11 and the first application processor 10.
First reading and writing data forwarding module 012 and the second reading and writing data forwarding module 022 are used to realize that second should by USB With the data transfer between the application processor 10 of processor 20 and first.
Hardware configuration based on the communication connection of above-mentioned LTE network framework figure, mobile terminal 100 and external equipment 200 shows The problem of intention, entity structure schematic diagram and prior art are present, propose each embodiment of the present invention.
It should be noted that the data transmission method in the present embodiment is for transmitting terminal with external equipment 200, mobile terminal 100 be to illustrate the data transmission procedure between external equipment 200 and mobile terminal 100 exemplified by receiving terminal.In other embodiments In, external equipment 200 and movement can also be illustrated as receiving terminal using mobile terminal 100 as transmitting terminal, external equipment 200 Data transmission procedure between terminal 100.It is understood that mobile terminal 100 is used as transmitting terminal, the conduct of external equipment 200 Receiving terminal is used as receiving terminal with mobile terminal 100, and external equipment 200 is consistent as the data transmission principle of transmitting terminal, herein not Repeat again.
It is proposed a kind of first embodiment of data transmission system of the present invention.In the present embodiment, data transmission system includes Mobile terminal 100 and external equipment 200, mobile terminal 100 include the first application processor 10, and with entity user identification card First modem 11 of 14 connections, being embedded with the first modem 11 of virtual user identifying card 13 includes the first data Forwarding server 116, the first data transmitting server 116 include first and receive extra buffer, and the first application processor 10 wraps Include the first reading and writing data forwarding module 012 and the first data forwarding client being connected with the first data transmitting server 116 011, the first data forwarding client 011 includes first and sends extra buffer;External equipment 200 includes the second application processor 20 and second modem 21, second modem 21 includes the second data transmitting server 216, the second data forwarding clothes Be engaged in device 216 include second send extra buffer, the second application processor 20 include the second reading and writing data forwarding module 022 and with Second data forwarding client 021 of the second data transmitting server 216 connection, the second data forwarding client 021 include the Two receive extra buffer.
Second data transmitting server 216, for when detect send data to be transmitted bag data transfer instruction when, root Data to be transmitted bag is obtained according to data transfer instruction.
When the second data transmitting server 216 of external equipment 200 detects data transfer instruction, the second data forwarding clothes Device 216 be engaged according to data transfer instruction acquisition data to be transmitted bag.Wherein, data transfer instruction can be the second data forwarding service Device 216 receives what is triggered during eNodeB 101 request of data, or to need to obtain Virtual User in mobile terminal 100 Triggered during the data of identification card 13 or the grade of entity user identification card 14.Therefore, data to be transmitted Bao Kewei obtains data Data request data bag, or response data packet of the response packet of mobile terminal 100 etc..
Second data transmitting server 216 is additionally operable to cache data to be transmitted bag to second and sent in extra buffer.
Second application processor 20, data to be transmitted bag is obtained in extra buffer for being received from second, will be to be transmitted Packet is sent to the first reading and writing data forwarding module 012 by preset interface.
Wherein, the capability value of the second transmission extra buffer and the second reception extra buffer synchronously changes, and second The capability value for sending extra buffer and the second reception extra buffer is equal to the first default value and the first increment value sum, and the One default value and the first increment value sum are more than or equal to the size of data to be transmitted bag.
When the second data transmitting server 216 gets data to be transmitted bag, data to be transmitted bag is cached to second Send in extra buffer, it is interim from being sent with second for the second data forwarding client 021 of the second application processor 20 Second receives extra buffer acquisition data to be transmitted bag corresponding to buffering area, and data to be transmitted bag is sent into the second data reads Forwarding module 022 is write, the first reading and writing data for being sent to mobile terminal 100 by preset interface by the forwarding of the second reading and writing data turns Send out module 012.
In embodiments of the present invention, preset interface USB, in other embodiments, preset interface can be other can be achieved The interface of data transfer.Second send extra buffer and second receive extra buffer capability value be equal to the first default value with First increment value sum.It is to be passed between the second data transmitting server 216 and the second data forwarding client 021 in order to ensure Transmission of data bag can whole Successful transmissions, the first default value and the first increment value sum are more than or equal to data to be transmitted bag Size.Such as when the size of maximum data to be transmitted bag is 124 byte, the first increment value and the first default value sum should be greater than or Person is equal to 124 bytes.It is understood that the first default value is the second data transmitting server 216 and second under regular situation The default capability value of extra buffer in data forwarding client 021, the first increment value are the He of the second data transmitting server 216 The increment value of the capacity of second data forwarding client 021.
When the second data forwarding client 021 in the second application processor 20 obtains from the second reception extra buffer During to data to be transmitted bag, the second reading and writing data forwarding module 022 is transmitted to by acquired.When the second reading and writing data forwarding module 022 when receiving data to be transmitted bag, and data to be transmitted bag is sent into the first reading and writing data forwarding module 012 by USB.Need It is noted that include the second extra buffer in the second reading and writing data forwarding module 022, the first reading and writing data forwarding module Include the first extra buffer in 012.In the second reading and writing data forwarding module 022 and the first reading and writing data forwarding module 012 Before transmitting data, first increase the capability value of the first extra buffer and the second extra buffer.First extra buffer and The amplitude of two extra buffer capability values increase forwards mould for the second reading and writing data forwarding module 022 of guarantee and the first reading and writing data Can be with all data to be transmitted bags of Successful transmissions between block 012.First extra buffer and the second extra buffer correspond to Same physical address, by the physical address, it can control the state and appearance of the first extra buffer and the second extra buffer Value is synchronous change.Therefore, when the second reading and writing data forwarding module 022 caches data to be transmitted bag to the second interim buffering Qu Shi, the first reading and writing data forwarding module 012 can get the data to be transmitted bag in the first extra buffer.
In the present embodiment, can when the second data transmitting server 216 detects data transfer instruction first, call with Second sends driving interface corresponding to extra buffer, and increase second sends the capability value of extra buffer.It should be noted that Because the second reception extra buffer and the second transmission extra buffer correspond to same physical address, therefore when the second data When the increase of forwarding server 216 second sends the capability value of extra buffer, the capability value of the second reception extra buffer is also same Step increase.In the present embodiment, when the second data transmitting server 216 transmits data to be transmitted bag first, the hair of increase second Extra buffer and second is sent to receive the capability value of extra buffer, and second sends extra buffer and the second reception is interim slow After rushing the capability value increase in area, it is changeless, will not changes again.
In embodiments of the present invention, the second transmission extra buffer and the second reception extra buffer need to take external set Standby 200 memory headroom, such as when the capability value of the second transmission extra buffer is 50 bytes, the memory headroom of external equipment 200 For 1024 byte when, second transmission extra buffer 512 bytes need take the memory headroom of external equipment 200 in 50 words Section.
First reading and writing data forwarding module 012, for when the data to be transmitted for receiving the transmission of the second application processor 20 Bao Shi, obtain the classification logotype in data to be transmitted bag;If determine that data to be transmitted bag is data to be forwarded according to classification logotype Bag, then be transmitted to the first data forwarding client 011 by data to be transmitted bag.
First data forwarding client 011, sent for data to be transmitted bag to be cached to first in extra buffer.
First data transmitting server 116, data to be transmitted bag is obtained in extra buffer for being received from first.
Wherein, the capability value of the first transmission extra buffer and the first reception extra buffer synchronously changes, and first The capability value for sending extra buffer and the first reception extra buffer is equal to the second default value and the second increment value sum, and the Two default values and the second increment value sum are more than or equal to the size of data to be transmitted bag.
When the first reading and writing data forwarding module 012 of mobile terminal 100 receives the application processor of external equipment 200 second During the data to be transmitted bag of 20 transmissions, the classification logotype in data to be transmitted bag is obtained, is determined according to acquired classification logotype The type of data to be transmitted bag.If determine that data to be transmitted bag is data to be forwarded bag according to classification logotype, the first reading and writing data Data to be transmitted bag is then transmitted to the first data forwarding client 011 by forwarding module 012.When the first data forwarding client 011 when receiving data to be transmitted bag, and data to be transmitted bag is cached to first and sent in extra buffer.When the first data turn Hair client 011, which successfully caches data to be transmitted bag to first, to be sent in extra buffer, the second data transmitting server 216 Received from second and data to be transmitted bag is extracted in extra buffer.
First, which sends extra buffer and first, receives the capability value of extra buffer equal to the second default value and the second increasing Big value sum, the second default value and the second increment value sum are more than or equal to the size of data to be transmitted bag.Specifically, can be When first data forwarding client 011 detects data transfer instruction first, call corresponding with the first transmission extra buffer Driving interface, increase first send the capability value of extra buffer.It should be noted that due to first receive extra buffer and First transmission extra buffer correspond to same physical address, therefore the first transmission extra buffer and first receives interim delay The capability value for rushing area synchronously changes, i.e., when the first data forwarding service end increase first sends the capability value of extra buffer When, the capability value of the first reception extra buffer also synchronously increases.In the present embodiment, first extra buffer and first is sent After the capability value increase for receiving extra buffer, it is changeless, will not changes again.
In embodiments of the present invention, in order to ensure the first data transmitting server 116 and the first data forwarding client 011 Between data to be transmitted bag can whole Successful transmissions, the second increment value and the second default value sum should be greater than or equal to The size for the maximum data to be transmitted bag that one data transmitting server 116 and the first data forwarding client 011 are transmitted.
Further, if determining that data to be transmitted bag is pending data bag according to classification logotype, the first reading and writing data turns Hair module 012 then performs operation corresponding with data to be transmitted bag, such as shows the signal intensity of external equipment 200, or display Electricity of external equipment 200 etc..
It should be noted that classification logotype is used for the type for distinguishing data to be transmitted bag.In the present embodiment, number to be transmitted According to bag type include two kinds, it is a kind of be need not be sent to the first data transmitting server 116, it is necessary to the first reading and writing data The pending data bag that forwarding module 012 is handled, another kind are to need to be sent to the first data transmitting server 116 to wait to turn Send out packet.Classification logotype can be set according to specific needs, such as when classification logotype is 00, show data to be transmitted bag to treat Processing data bag;When classification logotype is 01, it is data to be forwarded bag to show data to be transmitted bag.
Further, when the first data transmitting server 116 receives data to be transmitted bag, data to be transmitted bag is led to Cross the first blocking module 115, remote sim data access server114 and the first SIM card module agency 113 and be sent to UIM drivings 112, UIM driving 112 obtained according to data to be transmitted bag from entity user identification card 14 corresponding to data respond data to be transmitted Bag, met with a response packet, and response data packet is pressed into backtracking to external equipment 200.UIM drivings 112 are according to be transmitted Packet obtains corresponding data from entity user identification card 14 and responded in the data to be transmitted packet procedures, and UIM drivings 112 will not Directly interacted with the file storage module in entity user identification card 14, but the first COS into entity user identification card 14 (Chip Operating System, chip operating system) operating system sends data acquisition request, and then entity user identifies The COS operating systems of card 14 obtain data based on the data acquisition request in file storage module, then by the data of acquisition UIM drivings 112 are transmitted further to, to realize the response of data to be transmitted bag.
UIM driving 112 obtained according to data to be transmitted bag from virtual user identifying card 13 corresponding to data respond it is to be transmitted Packet, the principle for the packet that meets with a response and the original that data response data to be transmitted bag is obtained from entity user identification card 14 Reason is consistent, will not be repeated here.
The present embodiment between external equipment 200 and mobile terminal 100 by transmitting in data to be transmitted packet procedures, increase Each component (the second data transmitting server 216, the second data forwarding client in external equipment 200 and external equipment 200 021st, the second reading and writing data forwarding module 022, the first reading and writing data forwarding module 012, the first data transmitting server 116 and One data forwarding client 011) in extra buffer capability value, make the capability value of extra buffer in each component be more than or Person is equal to the size of data to be transmitted bag, avoids during external equipment 200 and mobile terminal 100 carry out data transmission, By the packet transmitted is excessive, the situation of packet bust this is caused to occur.
Further, by increasing the capability value of extra buffer in each component, the big slight of data to be transmitted bag is made In or equal to extra buffer capability value, realize and carry out data transmission process in mobile terminal 100 and external equipment 200 In, when the size of the data to be transmitted bag transmitted is more than the default value of extra buffer, it is not necessary to split data to be transmitted Bag, can directly transmit a complete data to be transmitted bag, data to be transmitted bag efficiency of transmission be improved, simultaneously as being not required to Data to be transmitted bag is split, therefore is avoided after data to be transmitted bag is split, split a certain data to be transmitted bag is lost Lose, or in data to be transmitted inclusion during, the situation for synthesizing failure occurs, and improves data to be transmitted bag transmission success Rate.
Further, the second embodiment of data transmission system is proposed.The second embodiment of data transmission system and first The difference of embodiment is:
Second data transmitting server 216 is additionally operable to calculate the size of data to be transmitted bag, and judges data to be transmitted bag Size whether be more than the first default value;If the size of data to be transmitted bag is more than the first default value, data to be transmitted is calculated Difference between the size of bag and the first default value, the first increment value is determined according to difference.
When the second data transmitting server 216 gets data to be transmitted bag, the second data transmitting server 216 calculates The size of data to be transmitted bag, and judge whether the size of data to be transmitted bag is more than the first default value.If data to be transmitted bag Size be more than the first default value, the second data transmitting server 216 then calculates the size and the first acquiescence of data to be transmitted bag Difference between value, the first increment value is determined according to the difference for calculating gained.Specifically, the first increment value can be with calculating gained Difference is equal, also greater than calculate gained difference, such as can by the first increment value be dimensioned to be more than one word of the difference Section.When it is determined that after the first increment value, the second data transmitting server 216 sends interim buffering according to the first increment value increase second The capability value in area so that the second capability value for sending extra buffer is equal to the first increment value and the first default value sum.Meanwhile Second data forwarding client 021 calls driving interface corresponding with the second reception extra buffer, is increased according to the first increment value Big second receives the capability value of extra buffer, so that second receives the capacity of extra buffer and the second transmission extra buffer The synchronous change of value.
Further, the detailed process of the second data transmitting server 216 calculating data to be transmitted bag size is:Parsing is treated Transmission packet, the packet header of data to be transmitted bag is obtained, the size of data to be transmitted bag is obtained from packet header.Wherein, it is to be transmitted Packet is TLV forms, and TLV forms are one kind of BER (Basic Encoding Rules, BER Basic Encoding Rules) codings, entirely Referred to as Type (type), Length (length), Value (value), T fields represent the type of data to be transmitted bag, and L field represents to treat The size of the length of transmission packet, i.e. packet, V fields are used for depositing the content of data to be transmitted bag.
If the size that the second data transmitting server 216 is additionally operable to data to be transmitted bag is less than or equal to the first acquiescence Value, data to be transmitted bag is cached to capability value and sent for the second of the first default value in extra buffer.
Second application processor 20 is additionally operable to receive in extra buffer for the second of the first default value from capability value and obtained Data to be transmitted bag, data to be transmitted bag is sent to the first reading and writing data forwarding module 012 by preset interface.
If the size of data to be transmitted bag is less than or equal to the first default value, the second data transmitting server 216 then changes Become the second capability value for sending extra buffer, directly cache data to be transmitted bag to second that capability value is the first default value Send in extra buffer.It is the first acquiescence when the second data transmitting server 216 caches data to be transmitted bag to capability value When the second of value sends extra buffer, the second data forwarding client 021 of the second application processor 20 from capability value be the The second of one default value, which receives, obtains data to be transmitted bag in extra buffer, acquired data to be transmitted bag is transmitted into the Two reading and writing data forwarding modules 022, data to be transmitted bag is sent to by shifting by USB by the second reading and writing data forwarding module 022 First reading and writing data forwarding module 012 of dynamic terminal 100.
When the first data forwarding service termination receives the data to be transmitted bag of the first reading and writing data forwarding module 012 transmission When, the first data forwarding client 011 can adjust first according to the size dynamic of data to be transmitted bag and send extra buffer Capability value, the first data forwarding client 011 adjust first according to the size dynamic of data to be transmitted bag and send extra buffer Capability value and the second data transmitting server 216 adjust second according to the size of data to be transmitted bag dynamic and send interim buffering The capability value process in area is similar, will not be repeated here.
Further, the second data transmitting server 216 is additionally operable to when the second application processor 20 receives temporarily from second When data to be transmitted bag is got in buffering area, reduce second and send the capability value of extra buffer to the first default value.
When the second data forwarding client 021 in the second application processor 20 is equal to the first default value and the from capability value When successfully getting data to be transmitted bag in the second reception extra buffer of one increment value sum, the second data transmitting server 216 call driving interface corresponding with the second transmission extra buffer, and the capability value of the second transmission extra buffer is decreased to First default value, i.e., the capability value of extra buffer is sent from equal to the first default value and the reduction of the first increment value sum by second To the first default value.The second data transmitting server 216 reduce second send extra buffer capability value to first acquiescence During value, the second data forwarding client 021 also calls driving interface corresponding with the second reception extra buffer, by second The capability value for receiving extra buffer is decreased to the first default value.
It should be noted that data to be transmitted bag has an end of identification, can be determined by the end of identification to be passed Whether transmission of data bag is successfully read.After the end of identification of data to be transmitted bag in the second reception extra buffer is read, Show that the second data forwarding service end successfully gets data to be transmitted bag.Because the second transmission extra buffer and second connects Receive extra buffer and correspond to same physical address, therefore the second data transmitting server 216 can be read according to end of identification Situation about taking determines that 021 whether successful received from second in extra buffer of the second data forwarding client gets number to be transmitted According to bag, so as to decide whether to perform the operation for reducing the capability value of the second transmission extra buffer to the first default value.
If it is understood that dynamically adjusted between the second data transmitting server 216 and the second data forwarding client 021 Whole second sends extra buffer and second receives the capability value of extra buffer, the second reading and writing data forwarding module 022 and the Dynamic can be used to adjust between one reading and writing data forwarding module 012, or using the second extra buffer of disposable adjustment and The capability value of first extra buffer, it can be used between the first data transmitting server 116 and the first data forwarding client 011 Dynamic adjusts, or sends extra buffer and first using disposable adjustment first and receive the capability value of extra buffer.By This understands that external equipment 200 and mobile terminal 100 are during carrying out data transmission, capacity between each extra buffer pair Being worth Adjusted Option can be consistent, also can be inconsistent.In embodiments of the present invention, there are three pairs of extra buffers pair, the respectively second hair Extra buffer and second is sent to receive extra buffer, the second extra buffer and the first extra buffer and the first transmission Extra buffer and first receives extra buffer.
Each extra buffer may be equal to corresponding default value, it is also possible to unequal.It is understood that when each When extra buffer is equal to corresponding default value, corresponding increment value is also equal;When each extra buffer is to corresponding silent Recognize value it is unequal when, corresponding increment value is also unequal.Therefore, if three extra buffers are to all using dynamic adjustment capability value Scheme, it is possible that one or both of which extra buffer is to needing to adjust capability value, and remaining interim buffering Area is to that need not adjust the situation of capability value.
In the present embodiment, the second extra buffer and the second default value for sending extra buffer may be equal, also may be used Can be unequal, therefore, in the present embodiment, data to be transmitted bag is sent by USB in the second reading and writing data forwarding module 022 During the first reading and writing data forwarding module 012, the second reading and writing data forwarding module 022 is needed again according to data to be transmitted Magnitude relationship between the size of bag and the second extra buffer capability value determines whether to increase the capacity of the second extra buffer Value.Second reading and writing data forwarding module 022 increases the capability value process and the second data transmitting server of the second extra buffer The process that 216 increases second send extra buffer is similar, will not be repeated here.
The present embodiment adjusts the capacity of extra buffer in each component by the size dynamic according to data to be transmitted bag Value, ensure to transmit in data to be transmitted packet procedures between external equipment 200 and mobile terminal 100, it is not necessary to number to be transmitted The operation bidirectional split according to bag, and ensure that the first reading and writing data forwarding module 012 and the second reading and writing data forwarding module The essence of data channel transparent transmission between 022, avoid secondary splitting and reorganizing in data transmission procedure and bring data to damage, keep away simultaneously The capability value for having exempted from extra buffer in each component is constantly in enlarging state, the problem of so as to cause spatial cache to waste.
Further, the 3rd embodiment of data transmission system is proposed.The 3rd embodiment of data transmission system and first The difference of embodiment is:
Second data transmitting server 216 is additionally operable to obtain when the second application processor 20 receives extra buffer from second During to data to be transmitted bag, the data to be transmitted bag cached in the second transmission extra buffer is deleted.
When the second application processor 20 successfully gets data to be transmitted bag from the second reception extra buffer, i.e., the The second data forwarding client 021 in two application processors 20 successfully gets to be transmitted from the second reception extra buffer During packet, instruction is deleted in the triggering of the second data transmitting server 216, and deleting second according to deletion instruction sends extra buffer In data to be transmitted bag, with save second send extra buffer spatial cache.It is understood that due to the second transmission Extra buffer and the second reception extra buffer correspond to same physical address, therefore, when the second data transmitting server When 216 deletions second send the data to be transmitted bag in extra buffer, second receives the data to be transmitted in extra buffer Bag can be also deleted.
It should be noted that treated when the first reading and writing data forwarding module 012 is successfully got from the first extra buffer During transmission packet, the second reading and writing data forwarding module 022 can delete the data to be transmitted bag cached in the second extra buffer. Second reading and writing data forwarding module 022 can delete the data to be transmitted bag cached in the second extra buffer and the second data forwarding The data to be transmitted packet procedures that server 216 deletes the second transmission extra buffer caching are similar, will not be repeated here.
Further, before the application processor 20 of second modem 21 and second transmits data, at the second application Reason device 20 needs to be initialized.Second application processor 20 initialization detailed process be:When the second application processor 20 from When resting state enters wake-up states, the second data forwarding client 021 of the second application processor 20 counts to corresponding second Request message is sent according to forwarding server 216, to ask the second data transmitting server 216 as the second data forwarding client The 021 user's mark of distribution one.It should be noted that in external equipment 200 and mobile terminal 100, the one of modem Individual server correspond to the multiple client of application processor.Turn when the second data transmitting server 216 receives the second data Send out client 021 send request message after, the second data transmitting server 216 according to the request message send user identify to Second data forwarding client 021.When the second data forwarding client 021 is successfully received user mark, the second data Client 021 is forwarded to send test data bag to the second data transmitting server 216, wherein, carried in the test data bag User identifies.When the second data transmitting server 216 is successfully received test data bag, given according to backtracking notification message Second data forwarding client 021.When the second data forwarding client 021 is successfully received notification message, show that second should Initialized successfully with processor 20.After the second application processor 20 initializes successfully, by the He of the second data forwarding client 021 The mark of identification field in second data transmitting server 216 is arranged to specific identifier, to show the second application processor 20 Initialize successfully.
The present invention also provides a kind of data transmission method applied to external equipment 200.
Reference picture 5, Fig. 5 are the flow for the data transmission method preferred embodiment for being applied to external equipment 200 in the present invention Schematic diagram.
The present embodiment proposes a kind of data transmission method, in the present embodiment, there is provided the embodiment of data transmission method, , can be with different from herein it should be noted that, although show logical order in flow charts, but in some cases Order performs shown or described step.
It should be noted that the data transmission method in the present embodiment is for transmitting terminal with external equipment 200, mobile terminal 100 be to illustrate the data transmission procedure between external equipment 200 and mobile terminal 100 exemplified by receiving terminal.In other embodiments In, external equipment 200 and movement can also be illustrated as receiving terminal using mobile terminal 100 as transmitting terminal, external equipment 200 Data transmission procedure between terminal 100.It is understood that mobile terminal 100 is used as transmitting terminal, the conduct of external equipment 200 Receiving terminal is used as receiving terminal with mobile terminal 100, and external equipment 200 is consistent as the data transmission principle of transmitting terminal, herein not Repeat again.
Data transmission method is applied to pass through in the external equipment 200 that preset interface is connected with mobile terminal 100, external to set Standby 200 include the second application processor 20 and second modem 21, and second modem 21 includes the second data forwarding Server 216, the second data transmitting server 216 include second and send extra buffer, and the second application processor 20 includes the Two reading and writing data forwarding modules 022 and the second data forwarding client 021 being connected with the second data transmitting server 216, the Two data forwarding clients 021 include second and receive extra buffer.Mobile terminal 100 includes the first application processor 10, with And the first modem 11 being connected with entity user identification card 14, it is embedded with the first modulatedemodulate of virtual user identifying card 13 Device 11 is adjusted to include the first data transmitting server 116, the first application processor 10 includes the He of the first reading and writing data forwarding module 012 The first data forwarding client 011 being connected with the first data transmitting server 116.Data transmission method includes:
Step S10, when the second data transmitting server 216 detects the data transfer instruction of transmission data to be transmitted bag When, data to be transmitted bag is obtained according to data transfer instruction.
When the second data transmitting server 216 of external equipment 200 detects data transfer instruction, the second data forwarding clothes Device 216 be engaged according to data transfer instruction acquisition data to be transmitted bag.Wherein, data transfer instruction can be the second data forwarding service Device 216 receives what is triggered during eNodeB 101 request of data, or to need to obtain Virtual User in mobile terminal 100 Triggered during the data of identification card 13 or the grade of entity user identification card 14.Therefore, data to be transmitted Bao Kewei obtains data Data request data bag, or response data packet of the response packet of mobile terminal 100 etc..
Step S20, data to be transmitted bag is cached to second and sent in extra buffer, for the second application processor 20 Acquisition data to be transmitted bag in extra buffer is received from extra buffer corresponding second is sent with second, by data to be transmitted Bag is sent to mobile terminal 100 by preset interface;
Wherein, the capability value of the second transmission extra buffer and the second reception extra buffer synchronously changes, and second The capability value for sending extra buffer and the second reception extra buffer is equal to the first default value and the first increment value sum, and the One default value and the first increment value sum are more than or equal to the size of data to be transmitted bag.
When the second data transmitting server 216 gets data to be transmitted bag, data to be transmitted bag is cached to second Send in extra buffer, it is interim from being sent with second for the second data forwarding client 021 of the second application processor 20 Second receives extra buffer acquisition data to be transmitted bag corresponding to buffering area, and data to be transmitted bag is sent into the second data reads Forwarding module 022 is write, the first reading and writing data for being sent to mobile terminal 100 by preset interface by the forwarding of the second reading and writing data turns Send out module 012.
In embodiments of the present invention, preset interface USB, in other embodiments, preset interface can be other can be achieved The interface of data transfer.Second send extra buffer and second receive extra buffer capability value be equal to the first default value with First increment value sum.It is to be passed between the second data transmitting server 216 and the second data forwarding client 021 in order to ensure Transmission of data bag can whole Successful transmissions, the first default value and the first increment value sum are more than or equal to data to be transmitted bag Size.Such as when the size of maximum data to be transmitted bag is 124 byte, the first increment value and the first default value sum should be greater than or Person is equal to 124 bytes.It is understood that the first default value is the second data transmitting server 216 and second under regular situation The default capability value of extra buffer in data forwarding client 021, the first increment value are the He of the second data transmitting server 216 The increment value of the capacity of second data forwarding client 021.
When the second data forwarding client 021 in the second application processor 20 obtains from the second reception extra buffer During to data to be transmitted bag, the second reading and writing data forwarding module 022 is transmitted to by acquired.When the second reading and writing data forwarding module 022 when receiving data to be transmitted bag, and data to be transmitted bag is sent into the first reading and writing data forwarding module 012 by USB.Need It is noted that include the second extra buffer in the second reading and writing data forwarding module 022, the first reading and writing data forwarding module Include the first extra buffer in 012.In the second reading and writing data forwarding module 022 and the first reading and writing data forwarding module 012 Before transmitting data, first increase the capability value of the first extra buffer and the second extra buffer.First extra buffer and The amplitude of two extra buffer capability values increase forwards mould for the second reading and writing data forwarding module 022 of guarantee and the first reading and writing data Can be with all data to be transmitted bags of Successful transmissions between block 012.First extra buffer and the second extra buffer correspond to Same physical address, by the physical address, it can control the state and appearance of the first extra buffer and the second extra buffer Value is synchronous change.Therefore, when the second reading and writing data forwarding module 022 caches data to be transmitted bag to the second interim buffering Qu Shi, the first reading and writing data forwarding module 012 can get the data to be transmitted bag in the first extra buffer.
In the present embodiment, can when the second data transmitting server 216 detects data transfer instruction first, call with Second sends driving interface corresponding to extra buffer, and increase second sends the capability value of extra buffer.It should be noted that Because the second reception extra buffer and the second transmission extra buffer correspond to same physical address, therefore when the second data When the increase of forwarding server 216 second sends the capability value of extra buffer, the capability value of the second reception extra buffer is also same Step increase.In the present embodiment, when the second data transmitting server 216 transmits data to be transmitted bag first, the hair of increase second Extra buffer and second is sent to receive the capability value of extra buffer, and second sends extra buffer and the second reception is interim slow After rushing the capability value increase in area, it is changeless, will not changes again.
In embodiments of the present invention, the second transmission extra buffer and the second reception extra buffer need to take external set Standby 200 memory headroom, such as when the capability value of the second transmission extra buffer is 50 bytes, the memory headroom of external equipment 200 For 1024 byte when, second transmission extra buffer 512 bytes need take the memory headroom of external equipment 200 in 50 words Section.
The present embodiment is referred to by detecting the data transfer of transmission data to be transmitted bag when the second data transmitting server 216 When making, data to be transmitted bag is obtained according to data transfer instruction;Data to be transmitted bag is cached to second and sends extra buffer In, treated so that the second application processor 20 obtains from the second reception extra buffer corresponding with the second transmission extra buffer Transmission packet, data to be transmitted bag is sent to mobile terminal 100 by preset interface;Wherein, second interim buffering is sent The capability value of area and the second reception extra buffer synchronously changes, and second, which sends extra buffer and second, receives interim delay The capability value for rushing area is equal to the first default value and the first increment value sum, and the first default value and the first increment value sum be more than or Person is equal to the size of data to be transmitted bag.By increasing each component (the second data transmitting server 216, the second data forwarding Client 021, the second reading and writing data forwarding module 022 and the first reading and writing data forwarding module 012) in extra buffer capacity Value, is avoided during external equipment 200 and mobile terminal 100 carry out data transmission, by the packet transmitted is excessive, The situation of packet bust this is caused to occur.
Further, by increasing the capability value of extra buffer in each component, the big slight of data to be transmitted bag is made In or equal to extra buffer capability value, realize and carry out data transmission process in mobile terminal 100 and external equipment 200 In, when the size of the data to be transmitted bag transmitted is more than the default value of extra buffer, it is not necessary to split data to be transmitted Bag, can directly transmit a complete data to be transmitted bag, data to be transmitted bag efficiency of transmission be improved, simultaneously as being not required to Data to be transmitted bag is split, therefore is avoided after data to be transmitted bag is split, split a certain data to be transmitted bag is lost Lose, or in data to be transmitted inclusion during, the situation for synthesizing failure occurs, and improves data to be transmitted bag transmission success Rate.
Further, propose that the present invention is applied to the data transmission method second embodiment of external equipment 200.
Difference applied to the data transmission method second embodiment and first embodiment of external equipment 200 is, reference Fig. 6, the data transmission method applied to external equipment 200 also include:
Step S30, calculates the size of data to be transmitted bag, and judges whether the size of data to be transmitted bag is more than first and writes from memory Recognize value.
Step S40, if the size of data to be transmitted bag is more than the first default value, calculate data to be transmitted bag size and Difference between first default value, the first increment value is determined according to difference.
When the second data transmitting server 216 gets data to be transmitted bag, the second data transmitting server 216 calculates The size of data to be transmitted bag, and judge whether the size of data to be transmitted bag is more than the first default value.If data to be transmitted bag Size be more than the first default value, the second data transmitting server 216 then calculates the size and the first acquiescence of data to be transmitted bag Difference between value, the first increment value is determined according to the difference for calculating gained.Specifically, the first increment value can be with calculating gained Difference is equal, also greater than calculate gained difference, such as can by the first increment value be dimensioned to be more than one word of the difference Section.When it is determined that after the first increment value, the second data transmitting server 216 sends interim buffering according to the first increment value increase second The capability value in area so that the second capability value for sending extra buffer is equal to the first increment value and the first default value sum.Meanwhile Second data forwarding client 021 calls driving interface corresponding with the second reception extra buffer, is increased according to the first increment value Big second receives the capability value of extra buffer, so that second receives the capacity of extra buffer and the second transmission extra buffer The synchronous change of value.
Further, the detailed process of the second data transmitting server 216 calculating data to be transmitted bag size is:Parsing is treated Transmission packet, the packet header of data to be transmitted bag is obtained, the size of data to be transmitted bag is obtained from packet header.Wherein, it is to be transmitted Packet is TLV forms, and TLV forms are one kind of BER (Basic Encoding Rules, BER Basic Encoding Rules) codings, entirely Referred to as Type (type), Length (length), Value (value), T fields represent the type of data to be transmitted bag, and L field represents to treat The size of the length of transmission packet, i.e. packet, V fields are used for depositing the content of data to be transmitted bag.
Step S50, if the size of data to be transmitted bag is less than or equal to the first default value, data to be transmitted bag is cached To capability value for the first default value second send extra buffer in, for the second application processor 20 from capability value be first The second of default value, which receives, obtains data to be transmitted bag in extra buffer, data to be transmitted bag is sent to by preset interface Mobile terminal 100.
If the size of data to be transmitted bag is less than or equal to the first default value, the second data transmitting server 216 then changes Become the second capability value for sending extra buffer, directly cache data to be transmitted bag to second that capability value is the first default value Send in extra buffer.It is the first acquiescence when the second data transmitting server 216 caches data to be transmitted bag to capability value When the second of value sends extra buffer, the second data forwarding client 021 of the second application processor 20 from capability value be the The second of one default value, which receives, obtains data to be transmitted bag in extra buffer, acquired data to be transmitted bag is transmitted into the Two reading and writing data forwarding modules 022, data to be transmitted bag is sent to by shifting by USB by the second reading and writing data forwarding module 022 First reading and writing data forwarding module 012 of dynamic terminal 100.
Further, the data transmission method applied to external equipment 200 also includes:
Step a, when the second application processor 20 gets data to be transmitted bag from the second reception extra buffer, the Two data transmitting servers 216 reduce second and send the capability value of extra buffer to the first default value.
When the second data forwarding client 021 in the second application processor 20 is equal to the first default value and the from capability value When successfully getting data to be transmitted bag in the second reception extra buffer of one increment value sum, the second data transmitting server 216 call driving interface corresponding with the second transmission extra buffer, and the capability value of the second transmission extra buffer is decreased to First default value, i.e., the capability value of extra buffer is sent from equal to the first default value and the reduction of the first increment value sum by second To the first default value.The second data transmitting server 216 reduce second send extra buffer capability value to first acquiescence During value, the second data forwarding client 021 also calls driving interface corresponding with the second reception extra buffer, by second The capability value for receiving extra buffer is decreased to the first default value.
It should be noted that data to be transmitted bag has an end of identification, can be determined by the end of identification to be passed Whether transmission of data bag is successfully read.After the end of identification of data to be transmitted bag in the second reception extra buffer is read, Show that the second data forwarding service end successfully gets data to be transmitted bag.Because the second transmission extra buffer and second connects Receive extra buffer and correspond to same physical address, therefore the second data transmitting server 216 can be read according to end of identification Situation about taking determines that 021 whether successful received from second in extra buffer of the second data forwarding client gets number to be transmitted According to bag, so as to decide whether to perform the operation for reducing the capability value of the second transmission extra buffer to the first default value.
In the present embodiment, the second extra buffer and the second default value for sending extra buffer may be equal, also may be used Can be unequal, therefore, in the present embodiment, data to be transmitted bag is sent by USB in the second reading and writing data forwarding module 022 During the first reading and writing data forwarding module 012, the second reading and writing data forwarding module 022 is needed again according to data to be transmitted Magnitude relationship between the size of bag and the second extra buffer capability value determines whether to increase the capacity of the second extra buffer Value.Second reading and writing data forwarding module 022 increases the capability value process and the second data transmitting server of the second extra buffer The process that 216 increases second send extra buffer is similar, will not be repeated here.
The present embodiment adjusts the capacity of extra buffer in each component by the size dynamic according to data to be transmitted bag Value, ensure to transmit in data to be transmitted packet procedures between external equipment 200 and mobile terminal 100, it is not necessary to number to be transmitted The operation bidirectional split according to bag, and ensure that the first reading and writing data forwarding module 012 and the second reading and writing data forwarding module The essence of data channel transparent transmission between 022, avoid secondary splitting and reorganizing in data transmission procedure and bring data to damage, keep away simultaneously The capability value for having exempted from extra buffer in each component is constantly in enlarging state, the problem of so as to cause spatial cache to waste.
Further, propose that the present invention is applied to the data transmission method 3rd embodiment of external equipment 200.
Difference applied to the data transmission method 3rd embodiment and first embodiment of external equipment 200 is, reference Fig. 7, the data transmission method applied to external equipment 200 also include:
Step S60, when the second application processor 20 gets data to be transmitted bag from the second reception extra buffer, the Two data transmitting servers 216 delete the data to be transmitted bag cached in the second transmission extra buffer.
When the second application processor 20 successfully gets data to be transmitted bag from the second reception extra buffer, i.e., the The second data forwarding client 021 in two application processors 20 successfully gets to be transmitted from the second reception extra buffer During packet, instruction is deleted in the triggering of the second data transmitting server 216, and deleting second according to deletion instruction sends extra buffer In data to be transmitted bag, with save second send extra buffer spatial cache.It is understood that due to the second transmission Extra buffer and the second reception extra buffer correspond to same physical address, therefore, when the second data transmitting server When 216 deletions second send the data to be transmitted bag in extra buffer, second receives the data to be transmitted in extra buffer Bag can be also deleted.
It should be noted that treated when the first reading and writing data forwarding module 012 is successfully got from the first extra buffer During transmission packet, the second reading and writing data forwarding module 022 can delete the data to be transmitted bag cached in the second extra buffer. Second reading and writing data forwarding module 022 can delete the data to be transmitted bag cached in the second extra buffer and the second data forwarding The data to be transmitted packet procedures that server 216 deletes the second transmission extra buffer caching are similar, will not be repeated here.
Further, before the application processor 20 of second modem 21 and second transmits data, at the second application Reason device 20 needs to be initialized.Second application processor 20 initialization detailed process be:When the second application processor 20 from When resting state enters wake-up states, the second data forwarding client 021 of the second application processor 20 counts to corresponding second Request message is sent according to forwarding server 216, to ask the second data transmitting server 216 as the second data forwarding client The 021 user's mark of distribution one.It should be noted that in external equipment 200 and mobile terminal 100, the one of modem Individual server correspond to the multiple client of application processor.Turn when the second data transmitting server 216 receives the second data Send out client 021 send request message after, the second data transmitting server 216 according to the request message send user identify to Second data forwarding client 021.When the second data forwarding client 021 is successfully received user mark, the second data Client 021 is forwarded to send test data bag to the second data transmitting server 216, wherein, carried in the test data bag User identifies.When the second data transmitting server 216 is successfully received test data bag, given according to backtracking notification message Second data forwarding client 021.When the second data forwarding client 021 is successfully received notification message, show that second should Initialized successfully with processor 20.After the second application processor 20 initializes successfully, by the He of the second data forwarding client 021 The mark of identification field in second data transmitting server 216 is arranged to specific identifier, to show the second application processor 20 Initialize successfully.
The present invention also provides a kind of data transmission method applied to mobile terminal 100.
Reference picture 8, Fig. 8 are that the flow for the data transmission method preferred embodiment that the present invention is applied to mobile terminal 100 is shown It is intended to.
In the present embodiment, there is provided the embodiment of data transmission method is, it is necessary to illustrate, although showing in flow charts Go out logical order, but in some cases, can be with the step shown or described by being performed different from order herein.
Data transmission method is applied to pass through in the mobile terminal 100 that USB is connected with external equipment 200, mobile terminal 100 Including the first application processor 10, and the first modem 11 being connected with entity user identification card 14, it is embedded with virtual First modem 11 of Subscriber Identity Module 13 includes the first data transmitting server 116, the first data transmitting server 116 Extra buffer is received including first, the first application processor 10 includes the first reading and writing data forwarding module 012 and counted with first The the first data forwarding client 011 connected according to forwarding server 116.External equipment 200 includes the He of the second application processor 20 Second modem 21, second modem 21 include the second data transmitting server 216, and the second application processor 20 wraps Include the second reading and writing data forwarding module 022 and the second data forwarding client being connected with the second data transmitting server 216 021, the first data forwarding client 011 includes first and sends extra buffer.Data transmission method includes:
Step S110, sent out when the first reading and writing data forwarding module 012 receives the application processor 20 of external equipment 200 second During the data to be transmitted bag sent, the classification logotype in data to be transmitted bag is obtained.
Step S120, if determining that data to be transmitted bag is data to be forwarded bag according to classification logotype, by data to be transmitted Bag is transmitted to the first data forwarding client 011, so that the first data forwarding client 011 caches data to be transmitted bag to the One is sent in extra buffer, and number to be transmitted is obtained from the first reception extra buffer by the first data transmitting server 116 According to bag;
Wherein, the capability value of the first transmission extra buffer and the first reception extra buffer synchronously changes, and first The capability value for sending extra buffer and the first reception extra buffer is equal to the second default value and the second increment value sum, and the Two default values and the second increment value sum are more than or equal to the size of data to be transmitted bag.
When the first reading and writing data forwarding module 012 of mobile terminal 100 receives the application processor of external equipment 200 second During the data to be transmitted bag of 20 transmissions, the classification logotype in data to be transmitted bag is obtained, is determined according to acquired classification logotype The type of data to be transmitted bag.If determine that data to be transmitted bag is data to be forwarded bag according to classification logotype, the first reading and writing data Data to be transmitted bag is then transmitted to the first data forwarding client 011 by forwarding module 012.When the first data forwarding client 011 when receiving data to be transmitted bag, and data to be transmitted bag is cached to first and sent in extra buffer.When the first data turn Hair client 011, which successfully caches data to be transmitted bag to first, to be sent in extra buffer, the second data transmitting server 216 Received from second and data to be transmitted bag is extracted in extra buffer.
First, which sends extra buffer and first, receives the capability value of extra buffer equal to the second default value and the second increasing Big value sum, the second default value and the second increment value sum are more than or equal to the size of data to be transmitted bag.Specifically, can be When first data forwarding client 011 detects data transfer instruction first, call corresponding with the first transmission extra buffer Driving interface, increase first send the capability value of extra buffer.It should be noted that due to first receive extra buffer and First transmission extra buffer correspond to same physical address, therefore the first transmission extra buffer and first receives interim delay The capability value for rushing area synchronously changes, i.e., when the first data forwarding service end increase first sends the capability value of extra buffer When, the capability value of the first reception extra buffer also synchronously increases.In the present embodiment, first extra buffer and first is sent After the capability value increase for receiving extra buffer, it is changeless, will not changes again.
In embodiments of the present invention, in order to ensure the first data transmitting server 116 and the first data forwarding client 011 Between data to be transmitted bag can whole Successful transmissions, the second increment value and the second default value sum should be greater than or equal to The size for the maximum data to be transmitted bag that one data transmitting server 116 and the first data forwarding client 011 are transmitted.
Further, if determining that data to be transmitted bag is pending data bag according to classification logotype, the first reading and writing data turns Hair module 012 then performs operation corresponding with data to be transmitted bag, such as shows the signal intensity of external equipment 200, or display Electricity of external equipment 200 etc..
It should be noted that classification logotype is used for the type for distinguishing data to be transmitted bag.In the present embodiment, number to be transmitted According to bag type include two kinds, it is a kind of be need not be sent to the first data transmitting server 116, it is necessary to the first reading and writing data The pending data bag that forwarding module 012 is handled, another kind are to need to be sent to the first data transmitting server 116 to wait to turn Send out packet.Classification logotype can be set according to specific needs, such as when classification logotype is 00, show data to be transmitted bag to treat Processing data bag;When classification logotype is 01, it is data to be forwarded bag to show data to be transmitted bag.
Further, when the first data transmitting server 116 receives data to be transmitted bag, data to be transmitted bag is led to Cross the first blocking module 115, remote sim data access server114 and the first SIM card module agency 113 and be sent to UIM drivings 112, UIM driving 112 obtained according to data to be transmitted bag from entity user identification card 14 corresponding to data respond data to be transmitted Bag, met with a response packet, and response data packet is pressed into backtracking to external equipment 200.UIM drivings 112 are according to be transmitted Packet obtains corresponding data from entity user identification card 14 and responded in the data to be transmitted packet procedures, and UIM drivings 112 will not Directly interacted with the file storage module in entity user identification card 14, but the first COS into entity user identification card 14 (Chip Operating System, chip operating system) operating system sends data acquisition request, and then entity user identifies The COS operating systems of card 14 obtain data based on the data acquisition request in file storage module, then by the data of acquisition UIM drivings 112 are transmitted further to, to realize the response of data to be transmitted bag.
UIM driving 112 obtained according to data to be transmitted bag from virtual user identifying card 13 corresponding to data respond it is to be transmitted Packet, the principle for the packet that meets with a response and the original that data response data to be transmitted bag is obtained from entity user identification card 14 Reason is consistent, will not be repeated here.
The present embodiment is received in the data to be transmitted packet procedures that external equipment 200 is sent when mobile terminal 100, passes through increasing Extra buffer after Large Copacity value complete data to be transmitted bag the first application processor 10 and the first modem 11 it Between data transfer, make the first modem 11 be properly received external equipment 200 transmission complete data to be transmitted bag, make External equipment 200 and the Successful transmissions big data bag of mobile terminal 100.
Further, when the first data forwarding service termination receives the to be passed of the first reading and writing data forwarding module 012 transmission During transmission of data bag, the first data forwarding client 011 can adjust first according to the size dynamic of data to be transmitted bag and send temporarily The capability value of buffering area, the first data forwarding client 011 adjusts first and sent according to the size dynamic of data to be transmitted bag faces When buffering area capability value and the second data transmitting server 216 adjust second according to the size of data to be transmitted bag dynamic and send The capability value process of extra buffer is similar, will not be repeated here.
If it is understood that dynamically adjusted between the second data transmitting server 216 and the second data forwarding client 021 Whole second sends extra buffer and second receives the capability value of extra buffer, the second reading and writing data forwarding module 022 and the Dynamic can be used to adjust between one reading and writing data forwarding module 012, or using the second extra buffer of disposable adjustment and The capability value of first extra buffer, it can be used between the first data transmitting server 116 and the first data forwarding client 011 Dynamic adjusts, or sends extra buffer and first using disposable adjustment first and receive the capability value of extra buffer.By This understands that external equipment 200 and mobile terminal 100 are during carrying out data transmission, capacity between each extra buffer pair Being worth Adjusted Option can be consistent, also can be inconsistent.In embodiments of the present invention, there are three pairs of extra buffers pair, the respectively second hair Extra buffer and second is sent to receive extra buffer, the second extra buffer and the first extra buffer and the first transmission Extra buffer and first receives extra buffer.
Each extra buffer may be equal to corresponding default value, it is also possible to unequal.It is understood that when each When extra buffer is equal to corresponding default value, corresponding increment value is also equal;When each extra buffer is to corresponding silent Recognize value it is unequal when, corresponding increment value is also unequal.Therefore, if three extra buffers are to all using dynamic adjustment capability value Scheme, it is possible that one or both of which extra buffer is to needing to adjust capability value, and remaining interim buffering Area is to that need not adjust the situation of capability value.
Further, the present invention also provides a kind of external equipment 200, and external equipment 200 includes the second application processor 20 With second modem 21, second modem 21 includes the second data transmitting server 216, the second data forwarding service Device 216 includes second and sends extra buffer, and the second application processor 20 includes the second reading and writing data forwarding module 022 and with the Second data forwarding client 021 of two data transmitting servers 216 connection.External equipment 200 is applied to data transmission method, Data transmission method includes:
When the second data transmitting server 216 detects the data transfer instruction for sending data to be transmitted bag, according to number Instructed according to transmission and obtain data to be transmitted bag;
Data to be transmitted bag is cached to second and sent in extra buffer, so that the second application processor 20 is from second Send in the second reception extra buffer corresponding to extra buffer and obtain data to be transmitted bag, data to be transmitted bag is passed through pre- If interface is sent to mobile terminal 100;
Wherein, the capability value of the second transmission extra buffer and the second reception extra buffer synchronously changes, and second The capability value for sending extra buffer and the second reception extra buffer is equal to the first default value and the first increment value sum, and the One default value and the first increment value sum are more than or equal to the size of data to be transmitted bag.
Further, before data to be transmitted bag to be cached to second to the step sent in extra buffer, in addition to:
The size of data to be transmitted bag is calculated, and judges whether the size of data to be transmitted bag is more than the first default value;
If the size of data to be transmitted bag is more than the first default value, the size and the first acquiescence of data to be transmitted bag are calculated Difference between value, the first increment value is determined according to difference;
If the size of data to be transmitted bag is less than or equal to the first default value, data to be transmitted bag is cached to capability value Second for the first default value send in extra buffer, for the second application processor 20 from capability value for the first default value Second receives acquisition data to be transmitted bag in extra buffer, and data to be transmitted bag is sent into mobile terminal by preset interface 100。
Further, after data to be transmitted bag to be cached to second to the step sent in extra buffer, in addition to:
When the second application processor 20 gets data to be transmitted bag from the second reception extra buffer, the second data Forwarding server 216 reduces second and sends the capability value of extra buffer to the first default value.
Further, after data to be transmitted bag to be cached to second to the step sent in extra buffer, in addition to:
When the second application processor 20 gets data to be transmitted bag from the second reception extra buffer, the second data turn Hair server 216 deletes the data to be transmitted bag cached in the second transmission extra buffer.
The embodiment of external equipment 200 of the present invention and the above-mentioned data transmission method applied to external equipment 200 are each Embodiment is essentially identical, will not be repeated here.
Further, the present invention also provides a kind of mobile terminal 100, and mobile terminal 100 includes the first application processor 10, And the first modem 11 being connected with entity user identification card 14, it is embedded with the first modulation of virtual user identifying card 13 Demodulator 11 includes the first data transmitting server 116, and the first data transmitting server 116 includes first and receives interim buffering Area, the first application processor 10 include the first reading and writing data forwarding module 012 and are connected with the first data transmitting server 116 First data forwarding client 011, the first data forwarding client 011 include first and send extra buffer.Mobile terminal 100 Applied to data transmission method, data transmission method includes:
When the first reading and writing data forwarding module 012 receives the to be passed of the application processor 20 of external equipment 200 second transmission During transmission of data bag, the classification logotype in data to be transmitted bag is obtained;
If determining that data to be transmitted bag is data to be forwarded bag according to classification logotype, data to be transmitted bag is transmitted to One data forwarding client 011, sent temporarily so that the first data forwarding client 011 caches data to be transmitted bag to first In buffering area, received by the first data transmitting server 116 from first and data to be transmitted bag is obtained in extra buffer;
Wherein, the capability value of the first transmission extra buffer and the first reception extra buffer synchronously changes, and first The capability value for sending extra buffer and the first reception extra buffer is equal to the second default value and the second increment value sum, and the Two default values and the second increment value sum are more than or equal to the size of data to be transmitted bag.
Further, when the first data forwarding client 011 receives data to be transmitted bag, data to be transmitted bag is calculated Size, and judge whether the size of data to be transmitted bag is more than the second default value;
If the size of data to be transmitted bag is more than the second default value, the size and the second acquiescence of data to be transmitted bag are calculated Difference between value, the second increment value is determined according to difference;
If the size of data to be transmitted bag is less than or equal to the second default value, data to be transmitted bag is cached to capability value First for the second default value sends in extra buffer, so that the first data transmitting server 116 is silent for second from capability value Recognize the first of value and receive acquisition data to be transmitted bag in extra buffer.
Further, when the first data transmitting server 116 from first reception extra buffer in successfully get it is to be passed During transmission of data bag, the first data forwarding client 011 deletes the data to be transmitted bag that the first transmission extra buffer is buffered.
Further, when the first data transmitting server 116 from first reception extra buffer in successfully get it is to be passed During transmission of data bag, the first data forwarding client 011 reduces first and sends the capability value of extra buffer to the first default value.
The embodiment of mobile terminal 100 of the present invention and the above-mentioned data transmission method applied to mobile terminal 100 are each Embodiment is essentially identical, will not be repeated here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those key elements, and And also include the other key elements being not expressly set out, or also include for this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner, or network equipment etc.) method that performs each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of data transmission system, it is characterised in that the data transmission system includes mobile terminal and external equipment, described Mobile terminal includes the first application processor, and the first modem being connected with entity user identification card, is embedded with void Intending first modem of Subscriber Identity Module includes the first data transmitting server, first data transmitting server Extra buffer is received including first, first application processor includes the first reading and writing data forwarding module and with described first First data forwarding client of data transmitting server connection, the first data forwarding client include first and sent temporarily Buffering area;The external equipment includes the second application processor and second modem, and the second modem includes Second data transmitting server, second data transmitting server include second and send extra buffer, second application Processor includes the second reading and writing data forwarding module and the second data forwarding being connected with second data transmitting server visitor Family end, the second data forwarding client include second and receive extra buffer;
Second data transmitting server, for when detect send data to be transmitted bag data transfer instruction when, according to The data transfer instruction obtains data to be transmitted bag;The data to be transmitted bag is cached to described second and sends interim buffering Qu Zhong;
Second application processor, will for obtaining the data to be transmitted bag from the described second reception extra buffer The data to be transmitted bag is sent to the first reading and writing data forwarding module by preset interface;
The first reading and writing data forwarding module, for when the data to be transmitted bag for receiving the second application processor transmission When, obtain the classification logotype in the data to be transmitted bag;If determine that the data to be transmitted bag is according to the classification logotype Data to be forwarded bag, then the data to be transmitted bag is transmitted to the first data forwarding client;
The first data forwarding client, extra buffer is sent for the data to be transmitted bag to be cached to described first In;
First data transmitting server, for obtaining the data to be transmitted from the described first reception extra buffer Bag;
Wherein, the capability value of the second transmission extra buffer and the second reception extra buffer synchronously changes, Described second, which sends extra buffer and described second, receives the capability value of extra buffer equal to the first default value and the first increasing Big value sum, and first default value is more than or equal to the big of the data to be transmitted bag with the first increment value sum It is small;
The capability value of the first transmission extra buffer and the first reception extra buffer synchronously changes, and described the One send extra buffer and the described first capability value for receiving extra buffer be equal to the second default value and the second increment value it With, and second default value is more than or equal to the size of the data to be transmitted bag with the second increment value sum.
2. data transmission system as claimed in claim 1, it is characterised in that second data transmitting server is additionally operable to count The size of the data to be transmitted bag is calculated, and judges whether the size of the data to be transmitted bag is more than first default value; If the size of the data to be transmitted bag is more than first default value, the size of the data to be transmitted bag and described is calculated Difference between first default value, first increment value is determined according to the difference;If the size of the data to be transmitted bag Less than or equal to first default value, the data to be transmitted bag is cached to capability value to described for the first default value Two send in extra buffer;
Second application processor is additionally operable to receive in extra buffer for described the second of the first default value from capability value and obtained The data to be transmitted bag is taken, the data to be transmitted bag is sent into first reading and writing data by preset interface forwards mould Block.
3. data transmission system as claimed in claim 2, it is characterised in that second data transmitting server is additionally operable to work as When second application processor gets the data to be transmitted bag from the described second reception extra buffer, described in reduction Second sends the capability value of extra buffer to first default value.
4. a kind of data transmission method, it is characterised in that the data transmission method is applied to external equipment, the external equipment Including the second application processor and second modem, the second modem includes and second application processor Second data transmitting server of connection, second data transmitting server include second and send extra buffer, the number Include according to transmission method:
When second data transmitting server detects the data transfer instruction for sending data to be transmitted bag, according to the number Instructed according to transmission and obtain data to be transmitted bag;
By the data to be transmitted bag cache to described second send extra buffer in, for second application processor from The data to be transmitted bag is obtained in the second reception extra buffer corresponding with the described second transmission extra buffer, by described in Data to be transmitted bag is sent to mobile terminal by preset interface;
Wherein, the capability value of the second transmission extra buffer and the second reception extra buffer synchronously changes, Described second, which sends extra buffer and described second, receives the capability value of extra buffer equal to the first default value and the first increasing Big value sum, and first default value is more than or equal to the big of the data to be transmitted bag with the first increment value sum It is small.
5. data transmission method as claimed in claim 4, it is characterised in that described to cache the data to be transmitted bag to institute Before stating the step in the second transmission extra buffer, in addition to:
The size of the data to be transmitted bag is calculated, and judges whether the size of the data to be transmitted bag is more than described first and writes from memory Recognize value;
If the size of the data to be transmitted bag is more than first default value, calculate the data to be transmitted bag size and Difference between first default value, first increment value is determined according to the difference;
If the size of the data to be transmitted bag is less than or equal to first default value, the data to be transmitted bag is cached Sent to capability value for described the second of the first default value in extra buffer, so that second application processor is from capability value To obtain the data to be transmitted bag in the second reception extra buffer of the first default value, by the data to be transmitted bag Mobile terminal is sent to by preset interface.
6. data transmission method as claimed in claim 5, it is characterised in that described to cache the data to be transmitted bag to institute After stating the step in the second transmission extra buffer, in addition to:
When second application processor gets the data to be transmitted bag from the described second reception extra buffer, institute State the second data transmitting server and reduce described second and send the capability value of extra buffer to first default value.
7. the data transmission method as described in claim 4 or 5, it is characterised in that described to cache the data to be transmitted bag After the step in extra buffer is sent to described second, in addition to:
It is described when second application processor gets the data to be transmitted bag from the described second reception extra buffer Second data transmitting server deletes the data to be transmitted bag cached in the second transmission extra buffer.
8. a kind of data transmission method, it is characterised in that the data transmission method is applied to mobile terminal, the mobile terminal Including the first application processor, and the first modem being connected with entity user identification card, it is embedded with Virtual User knowledge First modem not blocked includes the first data transmitting server, and first data transmitting server includes first Receive extra buffer, first application processor include the first reading and writing data forwarding module and with first data forwarding First data forwarding client of server connection, the first data forwarding client include first and send extra buffer, The data transmission method includes:
When the first reading and writing data forwarding module receives the data to be transmitted bag of the application processor of external equipment second transmission When, obtain the classification logotype in the data to be transmitted bag;
If determine that the data to be transmitted bag is data to be forwarded bag according to the classification logotype, by the data to be transmitted bag The first data forwarding client is transmitted to, so that the first data forwarding client caches the data to be transmitted bag Send in extra buffer to described first, received by first data transmitting server from described first in extra buffer Obtain the data to be transmitted bag;
Wherein, the capability value of the first transmission extra buffer and the first reception extra buffer synchronously changes, Described first, which sends extra buffer and described first, receives the capability value of extra buffer equal to the second default value and the second increasing Big value sum, and second default value is more than or equal to the big of the data to be transmitted bag with the second increment value sum It is small.
A kind of 9. external equipment, it is characterised in that the external equipment includes the second application processor and second modem, The second modem includes the second data transmitting server, and second application processor turns including the second reading and writing data Hair module and the second data forwarding client being connected with second data transmitting server, second data forwarding service Device includes second and sends extra buffer, and the second data forwarding client includes second and receives extra buffer;It is described outer Equipment application is connect in the data transmission method as described in any one of claim 4 to 7.
10. a kind of mobile terminal, it is characterised in that the mobile terminal includes the first application processor, and and entity user First modem of identification card connection, being embedded with first modem of virtual user identifying card includes the first number According to forwarding server, first data transmitting server includes first and receives extra buffer, first application processor The first data forwarding client being connected including the first reading and writing data forwarding module and with first data transmitting server, institute Stating the first data forwarding client includes the first transmission extra buffer;The mobile terminal is applied to as claimed in claim 8 Data transmission method.
CN201710644785.XA 2017-07-31 2017-07-31 Data transmission system, method, external equipment and mobile terminal Withdrawn CN107396342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710644785.XA CN107396342A (en) 2017-07-31 2017-07-31 Data transmission system, method, external equipment and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710644785.XA CN107396342A (en) 2017-07-31 2017-07-31 Data transmission system, method, external equipment and mobile terminal

Publications (1)

Publication Number Publication Date
CN107396342A true CN107396342A (en) 2017-11-24

Family

ID=60343443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710644785.XA Withdrawn CN107396342A (en) 2017-07-31 2017-07-31 Data transmission system, method, external equipment and mobile terminal

Country Status (1)

Country Link
CN (1) CN107396342A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630288A (en) * 2009-08-24 2010-01-20 成都市华为赛门铁克科技有限公司 Method and device for processing and controlling buffer cache and storage device thereof
CN105722058A (en) * 2016-01-27 2016-06-29 努比亚技术有限公司 User equipment and information forwarding method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630288A (en) * 2009-08-24 2010-01-20 成都市华为赛门铁克科技有限公司 Method and device for processing and controlling buffer cache and storage device thereof
CN105722058A (en) * 2016-01-27 2016-06-29 努比亚技术有限公司 User equipment and information forwarding method

Similar Documents

Publication Publication Date Title
CN107466070A (en) Data transmission system, method, external equipment and mobile terminal
CN107318107A (en) Data transmission system, method, external equipment and mobile terminal
CN107124737A (en) Mobile terminal and data pack transmission method
CN107247679A (en) Data transmission system and method
CN107222429A (en) Data transmission system and method
CN107395606A (en) Data packet transmission system and method
CN107124738A (en) Mobile terminal and data pack transmission method
CN107094152A (en) Data packet transmission system and method
CN107148052A (en) Mobile terminal and its data transmission method
CN107466028A (en) Data transmission system, method, external equipment and mobile terminal
CN107396400A (en) Data transmission system, method, external equipment and mobile terminal
CN107466027A (en) Data transmission system, method, external equipment and mobile terminal
CN107396342A (en) Data transmission system, method, external equipment and mobile terminal
CN107396399A (en) Data transmission system, method, external equipment and mobile terminal
CN107257567A (en) Data transmission system and method
CN107205053A (en) Data packet transmission system and method
CN107205052A (en) Data transmission system, method, external equipment and mobile terminal
CN107205054A (en) Data transmission system, method, external equipment and mobile terminal
CN107277174A (en) Data packet transmission system and method
CN107466025A (en) Data packet transmission system and method
CN107182084A (en) Mobile terminal and data pack transmission method
CN107333258A (en) Data packet transmission system and method
CN107070814A (en) Data transmission system and method
CN106953984A (en) Data transmission system and method
CN107277796A (en) Mobile terminal and its data transmission 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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20171124