CN107071832A - Data packet transmission system and method - Google Patents
Data packet transmission system and method Download PDFInfo
- Publication number
- CN107071832A CN107071832A CN201710395933.9A CN201710395933A CN107071832A CN 107071832 A CN107071832 A CN 107071832A CN 201710395933 A CN201710395933 A CN 201710395933A CN 107071832 A CN107071832 A CN 107071832A
- Authority
- CN
- China
- Prior art keywords
- packet
- application processor
- bag
- subdata bag
- identification information
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
- H04W28/065—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Abstract
The invention discloses a kind of data packet transmission system and method, the system includes:Mobile terminal and external equipment, mobile terminal includes the first application processor, the first modem for being embedded with virtual user identifying card, the first radio-frequency module, and the first and second Subscriber Identity Modules being connected with the first modem, external equipment include the second application processor, second modem and the second radio-frequency module;First application processor receives the packet acquisition request that the second application processor is sent by preset interface, packet is extracted from virtual user identifying card and is split, each subdata bag after fractionation is added identical identification information to cache into the extra buffer buffer of preset interface, so that the second application processor extracts each subdata bag from buffer, and it is combined according to identical identification information.Present invention, avoiding transmission of data packets, due to containing, value is excessive to cause the situation of terminal crash.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of data packet transmission system and method.
Background technology
With the development of mobile communication technology, increasing mobile terminal such as smart mobile phone has the work(of double card bilateral
Can so that user realize speech business it is standby simultaneously, can set up data service connection.Mobile terminal generally has two use
Family identification card and the modem being connected respectively with described two Subscriber Identity Modules, during two Subscriber Identity Module standard-sized sheets, one
Individual Subscriber Identity Module (SIM1) can use 4G (the 4th Generation Mobile Communication
Technology, forth generation mobile communication technology), such as LTE (Long Term Evolution, Long Term Evolution) network,
Another Subscriber Identity Module (SIM2) be only capable of using 2G (2-Generation wireless telephone technology,
Second generation mobile communication technical specification) or 3G (3rd Generation, 3rd generation mobile communication technology) network, SIM2 can not on
The reason for 4G, is mainly:Mobile terminal only has a set of radio frequency, and two cards are the relation of time-sharing multiplex using the set radio frequency, can not
Take simultaneously, during due to two card standard-sized sheets, only one card can use 4G networks, and another card can only use 2G or 3G nets
Network, causes the less efficient of data in mobile terminal transmission.
Therefore, in order that mobile terminal can support double LTE, to improve data transmission efficiency, mobile terminal can with it is external
Equipment connects (being provided with modem in the external equipment), to realize double LTE communication functions.But, current mobile terminal
Carried out with external equipment in transmission of data packets, if the Subscriber Identity Module in mobile terminal is telecommunications card, due to telecommunications card
The extra buffer buffer of data transfer capability value typically greater than between mobile terminal and external equipment, therefore buffer
A complete packet can not be cached, if directly carrying out data transmission, mobile terminal deadlock is easily caused.
The content of the invention
It is a primary object of the present invention to propose a kind of data packet transmission system and method, it is intended to solve existing packet
Transmission means, is easily caused the technical problem of mobile terminal deadlock.
To achieve the above object, a kind of data packet transmission system that the present invention is provided, the data packet transmission system includes
Mobile terminal, and the external equipment being connected by preset interface with the mobile terminal, the mobile terminal includes first should
With processor, the first modem for being embedded with virtual user identifying card, the first radio-frequency module, and with the described first modulation
The first Subscriber Identity Module and second user identification card of demodulator connection, the external equipment include the second application processor, the
Two modems and the second radio-frequency module;
First application processor, for receiving the packet acquisition request that the second application processor is sent by preset interface
When, the packet is extracted from virtual user identifying card and obtains the corresponding packet of request;
The packet of extraction is split, and identical is added to each subdata bag after the fractionation of same packet
Identification information;
Each subdata bag added with identification information is cached into the extra buffer buffer of the preset interface,
So that the second application processor extracts each subdata bag from the buffer, and subnumber is carried out according to identical identification information
According to the combination of bag.
Alternatively, first application processor, is additionally operable to recognize to Virtual User by first modem
Chip operating system in card sends packet and obtains request, by text of the chip operating system in virtual user identifying card
The packet is extracted in part memory module and obtains the corresponding packet of request, and feeds back to first modem;
First application processor, is additionally operable to anti-by first modem reception chip operating system
The packet of feedback.
Alternatively, first application processor, is additionally operable to pair capability value for determining packet;
When the capability value for having packet is more than predetermined threshold value, the packet is split, each subdata is obtained
Bag;
Identical identification information is added in each corresponding packet header of subdata bag.
Alternatively, extraction packet include multiple packets, and split after each subdata bag correspondence it is different
During identification information, first application processor is additionally operable to each subdata bag by different identification information according to default suitable
Sequence is cached into the buffer of the preset interface.
Alternatively, extraction packet include multiple packets, and split after each subdata bag correspondence it is different
During identification information, first application processor is additionally operable to each subdata bag of same identification information being classified as a class;
According to the order of classification, each of a sort subdata bag is cached to the buffer of the preset interface successively
In.
In addition, to achieve the above object, the present invention also proposes a kind of data pack transmission method, applied to mobile terminal and
The external equipment being connected by preset interface with mobile terminal, the mobile terminal includes the first application processor, is embedded with void
Intend the first modem, the first radio-frequency module of Subscriber Identity Module, and first be connected with first modem
Subscriber Identity Module and second user identification card, the external equipment include the second application processor, second modem and the
Two radio-frequency modules, methods described includes:
When first application processor receives the packet acquisition request that the second application processor is sent by preset interface, from
The packet is extracted in virtual user identifying card and obtains the corresponding packet of request;
The packet of extraction is split, and identical is added to each subdata bag after the fractionation of same packet
Identification information;
Each subdata bag added with identification information is cached into the extra buffer buffer of the preset interface,
So that the second application processor extracts each subdata bag from the buffer, and subnumber is carried out according to identical identification information
According to the combination of bag.
Alternatively, it is described that the step of packet obtains request corresponding packet is extracted from virtual user identifying card
Including:
First application processor is operated by first modem in piece into virtual user identifying card
System sends packet and obtains request, is carried in file storage module of the chip operating system in virtual user identifying card
Take the packet to obtain the corresponding packet of request, and feed back to first modem;
First application processor receives the number that the chip operating system feeds back by first modem
According to bag.
Alternatively, the packet of described pair of extraction is split, and to each subdata after the fractionation of same packet
The step of bag addition identical identification information, includes:
First application processor determines the capability value of packet;
When the capability value for having packet is more than predetermined threshold value, the packet is split, each subdata is obtained
Bag;
Identical identification information is added in each corresponding packet header of subdata bag.
Alternatively, extraction packet include multiple packets, and split after each subdata bag correspondence it is different
It is described that each subdata bag added with identification information is cached to the step into the buffer of the preset interface during identification information
Suddenly include:
First application processor is by each subdata bag of different identification information according to default order buffer to institute
In the buffer for stating preset interface.
Alternatively, extraction packet include multiple packets, and split after each subdata bag correspondence it is different
It is described that each subdata bag added with identification information is cached to the step into the buffer of the preset interface during identification information
Suddenly also include:
Each subdata bag of same identification information is classified as a class by first application processor;
According to the order of classification, each of a sort subdata bag is cached to the buffer of the preset interface successively
In.
Technical scheme proposed by the present invention, the data packet transmission system includes mobile terminal, and passes through preset interface
The external equipment being connected with the mobile terminal, the mobile terminal includes the first application processor, the first modem the
One radio-frequency module, and the first Subscriber Identity Module and second user identification card being connected with first modem, it is described
External equipment includes the second application processor, is embedded with the second modem and the second radio frequency mould of virtual user identifying card
Block;When first application processor receives the packet acquisition request that the second application processor is sent by preset interface, first from void
Intend extracting the corresponding packet of the packet acquisition request in Subscriber Identity Module, then the packet of extraction split,
And each subdata bag after being split to same each packet adds identical identification information, then by added with identification information
Each subdata bag is cached into the buffer of the preset interface, so that the second application processor is extracted from the buffer
Each subdata bag, and according to the combination of identical identification information progress subdata bag, to complete the transmission of packet.This programme
In transmission packet, first packet waiting for transmission is split, then each subdata bag after fractionation is added into identical
It is transmitted after identification information so that the capability value of the packet of transmission has reduced, follow-up opposite end receives each subdata
Recombinated according to identical identification information after bag, it is to avoid the situation that mobile terminal crashes in data transmission procedure.
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 a kind of entity signal of communication connection of mobile terminal and external equipment communication connection in the embodiment of the present invention
Figure;
Fig. 3 is mobile terminal and a kind of hardware architecture diagram of external equipment communication connection in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of data pack transmission method first embodiment of the present invention;
The refinement schematic flow sheet that Fig. 5 is step S10 in Fig. 4.
The realization, functional characteristics and advantage of the object of the invention will be explained 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.
It should be noted that in the case where not conflicting, the embodiment in the present invention and the feature in embodiment mutually can be tied arbitrarily
Close.
In order to which technical characteristic, purpose and effect to the present invention are more clearly understood from, now compare accompanying drawing and describe in detail
The embodiment of the present invention.
Fig. 1 is the signal of LTE (Long Term Evolution, Long Term Evolution) network architecture of one embodiment of the invention
Figure.The LTE network framework of one embodiment of the invention includes:One or more mobile terminals (user equipment, UE) 100,
External equipment 200, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, the UMTS of evolution
Land radio access web) (non-label in figure), evolution block core (EPC) (non-label in figure), home subscriber servers (HSS)
107th, 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 1 00 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).
Mobile terminal 1 00 passes through preset interface, such as USB (Universal Serial Bus, USB) data
Line 300 is connected with the communication of external equipment 200.
Fig. 2 is the entity schematic diagram of mobile terminal 1 00 of the present invention and the communication connection of external equipment 200.
As shown in Fig. 2 mobile terminal 1 00 is connected by USB data line 300 with the communication of external equipment 200, wherein, it is described
Mobile terminal includes but is not limited to mobile phone, PC (Personal Computer, PC) or PAD (Personal Digital
Assistant, personal digital assistant), the external equipment 200 is chosen as wireless Internet card or data card.
Fig. 3 is the structural representation of mobile terminal 1 00 of the present invention and the communication connection of external equipment 200.
The mobile terminal 1 00 of the embodiment of the present invention is connected by USB data line 300 with the communication of external equipment 200, based on shifting
Dynamic terminal 100 and the basis of the communication connection of external equipment 200, mobile terminal 1 00 can support double LTE.Specifically:
Mobile terminal 1 00 includes the first process chip 001, and first be connected with first process chip 001 is penetrated
Frequency module 12, wherein, the first process chip 001 includes the first application processor, and (Application Processor use AP1 tables
Show) 10, be embedded with virtual user identifying card 11A and be connected with the first Subscriber Identity Module 13 and second user identification card 14 first
Modem 11 (modem1), RPM (Resource Power Manager, resource power supervisor) 15, wherein, it is virtual to use
Family identification card 11A include memory module and virtual chip operating system (Virtual Chip Operating System,
VCOS), the memory module can be EFS (Encrypting File System, encrypted file system), and memory module is used to store
Virtual user identifying card 11A authorization data.First Subscriber Identity Module 13 and second user identification card 14 are SIM
(Subscriber Identity Module, subscriber identification module) blocks.
External equipment 200 includes second processing chip 002, and second be connected with the second processing chip 002 is penetrated
Frequency module 22, wherein, second processing chip 002 includes the second application processor (being represented with AP2) 20, second modem
(modem2)21。
The inner frame of first application processor 10 and the second application processor 20 includes application layer, ccf layer etc., can locate
Manage the logical operation of complexity and carry out task distribution etc..In one embodiment, application processor refers to Android operations system
System, and the various apk (Android Package, Android installation kit) based on Android operation system.In the reality of the present invention
Apply in example, the first application processor 10 and the second application processor 20 realize communication connection by USB data line, provide the user
Interactive interface, the operational order that user is inputted is (for example, the behaviour for the relevant startup video calling that user is inputted by user interface
Instruct) the first modem 11 or second modem 21 are transferred to, to realize data between two application processors
Definition and transmission, for example, it is suitable to carry out chip startup when the dormancy of two application processors, wake-ups, synchronous control, switching on and shutting down
Control of sequence etc..
It should be appreciated that in embodiments of the present invention, USB data line 300 is multiplexed out three data passages, is respectively used to
User data between first application processor 10 and the second application processor 20, control signaling data and SIM card authorization data
The data that interaction, i.e. the first application processor 10 and the second application processor 20 are transmitted by USB data line 300 include above-mentioned three
Plant data.Wherein, user data includes the data that online is produced, picture and chat message data;Control signaling data include opening
The control data of shutdown, switchs the control data of offline mode, the control data of dispaly state signal;SIM card authorization data bag
Include but be not limited to IMSI (International Mobile Subscriber Identification Number, world movement
CUSTOMER ID), Ki (key identifier, KI) etc..
In the present embodiment, the first application processor 10 and the second application processor 20 are entered by OTG (On-The-Go) technology
Row data interaction.By OTG technologies, the first modem 11 in mobile terminal 1 00 can pass through virtual user identifying card
SIM card parameter in 11A, the first Subscriber Identity Module 13 or second user identification card 14 accesses eNodeB 101, external equipment
Second modem 21 in 200 can also be known by second user identification card 14, the first Subscriber Identity Module 13 or Virtual User
SIM card parameter that Ka be in 11A accesses eNodeB 101, and the SIM card parameter includes but is not limited to SIM card authorization data.
Wherein, the buffer of USB interface is present in the two ends of the first application processor 10 and the second application processor 20, uses buffer1
Represented with buffer2.It should be noted that buffer1 and buffer2 correspond to same physical address, by this physically
Location, can control the synchronous change of buffer1 and buffer2 capability values and state.
Because buffer1 and buffer2 correspond to same physical address, therefore the first application processor 10 is by extraction
When data pack buffer is to buffer1, packet sends into buffer2 caching by the UART, and the second application processor 20 exists
When the packet is detected in buffer2, you can get the packet, to realize the transmission of packet.
The protocol stack of the network formats of first modem 11 and second modem 21 comprising various network interactions,
Protocol stack includes LTE (Long Term Evolution, Long Term Evolution)/WCDMA (W ideband Code Division
Multiple Access, WCDMA) and/GSM (Global Syste m for Mobile Communication, entirely
Ball GSM)/TD-SCDMA (Time Divisi on-Synchronous Code Division Multiple
Access, synchronous time division CDMA)/CDMA (Code Division Multiple Access, CDMA)/EDGE
Inside communication standards such as (Enhanced Data Rate for GSM Evolution, strong type Data for GSM Evolution)
Defined protocol code.Mobile terminal 1 00 is interacted by agreement with carrier network, that is, carries out data traffic online, V
OLTE (Voice Over LTE) is made a phone call or CS (Circuit Switched, circuit switching) domain is made a phone call.First modulation
Demodulator 11 and second modem 21 are additionally operable to management and control to SIM card etc..
In embodiments of the present invention, the first radio-frequency module 12 is transmitted to after being used for the data processing of transmitting mobile terminal 1 00
ENodeB 101 (base station network), and for being transmitted to mobile terminal 1 00 after the data processing of transmitting eNodeB 101.Second
Radio-frequency module 22 is transmitted to eNodeB 101 (base station network) after being used for the data processing of transmitting 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 11A, the first Subscriber Identity Module 13 and second user identification card 14 in mobile terminal 1 00 are deposited
The different wireless communication standard associated user information of storage.It should be appreciated that current mobile terminal only has a set of radio frequency, it is mobile whole
Two Subscriber Identity Modules inside end are the relation of time-sharing multiplex using the set radio frequency, can not be taken simultaneously.For example, at two
During Subscriber Identity Module standard-sized sheet, a card can handle GSM calls, and another card can only handle the 4G network informations, which specific use
Which kind of network family identification card performs, and does not limit.Therefore current this framework of radio frequency double card time-sharing multiplex has only accomplished LTE+
GSM (the corresponding technical standard of i.e. one Subscriber Identity Module is LTE, and the corresponding technical standard of another Subscriber Identity Module is GSM).
That is, although existing mobile terminal 1 00 can support Dual-user identification card, mobile terminal 1 00 exists
In the case of registered network, what two Subscriber Identity Modules were supported is the network of different technologies standard, and one is supported 2G or 3G, another
Individual support 4G, can cause during the use of mobile terminal 1 00, surfing flow speed is slower, therefore in the present invention, mobile terminal
100 connect external equipment 200 by USB data line 300, and because external equipment 200 includes the second radio-frequency module 22, and second penetrates
Frequency module 22 supports 4G networks, and therefore, mobile terminal 1 00 can be interacted by USB line 300 with external equipment 200, so that moving
Dynamic terminal 100 possesses double LTE functions.
In the present embodiment, data packet transmission system includes mobile terminal 1 00 and external equipment 200, and mobile terminal 1 00 is led to
Crossing external equipment 200 and possessing the implementation process of double LTE functions to be:1. second user identification card 14 passes through second modem
21 support LTE, and detailed process is:First modem 11 will need the number of access LTE network in second user identification card 14
According to the first application processor 10 is sent to, received data is sent to external equipment by the first application processor 10 by USB
Received data is sent to second modem 21 by 200 the second application processor 20, the second application processor 20, by
Second modem 21 is transmitted to the second radio-frequency module 22, and received data is passed through LTE network by the second radio-frequency module 22
Send;And the first Subscriber Identity Module 13 supports LTE by the first modem 11, to realize that mobile terminal 1 00 can be propped up
Hold double LTE.2. the first Subscriber Identity Module 13 supports LTE by second modem 21, and 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 first Subscriber Identity Module 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;And
Second user identification card 14 supports LTE by the first modem 11, to realize that mobile terminal 1 00 can support double LTE.When
So, available virtual Subscriber Identity Module 11A substitutes above-mentioned the first Subscriber Identity Module 13 and second user identification card 14, does not do specifically
Repeat.
In the present embodiment, virtual user identifying card 11A, the first Subscriber Identity Module 13 and second user identification card 14 are used for
Related data needed for mobile communication business (CS speech businesses, PS data services and PS speech businesses) is provided, and inside it
User profile, short message are stored, authentication arithmetic is performed and produces cryptographic keys etc..
Subscriber Identity Module (virtual user identifying card 11A, the first Subscriber Identity Module 13 and second user identification card 14) is with moving
When dynamic terminal 100 is interacted, mobile terminal 1 00 detects that the signal of the Subscriber Identity Module presence or absence is only produced start is instantaneous, when
Start can't detect in the presence of Subscriber Identity Module, and mobile terminal 1 00 will be prompted to " insertion Subscriber Identity Module ".Mobile terminal 1 00 is opened
After machine, between mobile terminal 1 00 and Subscriber Identity Module 28 seconds communication once, complete some fixation communication check (for example, with
Whether family identification card is in place etc.).
In an embodiment of the present invention, virtual user identifying card 11A, the first Subscriber Identity Module 13 and second user identification card
14 carrying informations, and correspondence card parameter is returned to according to external world's request, and authentication computing, the first radio-frequency module are carried out to network
12 and the second wireless access technology involved by radio-frequency module 22 be LTE.For example, when mobile terminal 1 00 not by USB with it is external
When equipment 200 is connected, the technical standard corresponding to the first Subscriber Identity Module 13 is GSM, for carrying out speech communication, second user
Identification card 14 supports LTE by the first modem 11, for carrying out data access by 4G networks.When mobile terminal 1 00
When being connected by USB data line 300 with external equipment 200, the first Subscriber Identity Module 13 can be by first in mobile terminal 1 00
Modem 11 supports LTE, and second user identification card 14 supports LTE by second modem 21;Or, first uses
Family identification card 13 can support LTE by second modem 21, and second user identification card 14 passes through the first modem
11 support LTE, to realize that mobile terminal 1 00 can support double LTE in the case of connecting external equipment 200.
RPM15 in mobile terminal 1 00 is used for the various resources of management and control, including clock sources, bus resource, PMIC (Power
Management IC, the voltage of power management integrated circuit, i.e. 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 1 00, are 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 1 00, 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.
After the whole system dormancy of mobile terminal 1 00, if to restart operation, it is necessary to wake up at the first application
Reason device 10 is interacted with the transmission for carrying out data.
In the case where mobile terminal 1 00 and external equipment 200 are by the communication connection of USB data line 300, wake-up mode bag
Include three kinds:
1st, when the first application processor 10 receives control signaling data, by the transmission detection bag of USB data line 300 to the
Two application processors 20, to wake up the second application processor 20.
2nd, when the second modem 21 of external equipment 200 receives user data, the second application processor 20 is waken up,
Detection bag is transmitted to the first application processor 10 by USB data line 300 by the second application processor 20, to wake up the first application
Processor 10.
3rd, second modem 21 periodically searches paging request, with active activation oneself, if receiving paging request,
The second application processor 20 is waken up, detection bag is sent to the first application by USB data line 300 by the second application processor 20
Device 10 is managed, to wake up the second application processor 20.
In addition, second modem 21 can be with periodic wakeup oneself, to carry out location updating in mobile terminal 1 00
When, interaction of shaking hands is carried out with base station, the first application processor 10 need not be now waken up.
It should be noted that the packet of transmission is SIM for user data, control signaling data or Subscriber Identity Module data
During card data, three kinds of data are transmitted all between application processor.
In the present embodiment, SIM card includes mobile card, UNICOM's card and telecommunications card, wherein, mobile card and UNICOM's card refer to use
The phonecard that 3GPP standard agreements are communicated, the capacity that 3GPP standard agreements define phonecard transmission packet can not exceed
Certain value, the value is set to 512 bytes;And telecommunications card refers to the phonecard using 3GPP2 standard agreements, GPP2 standard agreements
The capacity of the packet transmitted to telecommunications card is not limited, and the capacity of the packet of telecommunications card transmission can typically exceed 512 bytes.
Wherein, mobile card is the SIM card provided a user by China Mobile (operator), UNICOM's card be from CHINAUNICOM (operator) to
The SIM card that user provides, telecommunications card is the SIM card provided a user by China Telecom (operator).
Due to existing buffer capacity typically no more than 512 bytes.Therefore, when the void in mobile terminal 1 00
When plan Subscriber Identity Module 11A, the first Subscriber Identity Module 13 and second user identification card 14 are all mobile card or UNICOM's card, by
It is less than 512 bytes, therefore, the first application processor 10 in mobile card either UNICOM Ka Shoufashuojubao data capacity
When receiving packet acquisition request, from virtual user identifying card 11A, the first Subscriber Identity Module 13 and second user identification card 14
The packet got is also less than 512 bytes, accordingly, and the packet stored to buffer is also less than 512 bytes
, therefore, the storage that packet can be complete is into buffer, subsequently, and the second application processor 20 can also take out one completely
Packet.
But, because telecommunications card is generally higher than 512 bytes, therefore, in the first application processor 10 and the second application processing
In the data exchange process of device 20, if what is connected in the first application processor 10 is telecommunications card, it may appear that such situation:
It is electricity in virtual user identifying card 11A, the first Subscriber Identity Module 13 and second user identification card 14 by taking Fig. 3 as an example
In the case of letter card, the application processor 10 of mobile terminal 1 00 first is by the first modem 11 from virtual user identifying card
In 11A, the first Subscriber Identity Module 13 or second user identification card 14 extracts a packet, because the packet is more than 512
Byte, and buffer can only disposably cache the packet no more than 512 bytes, in this case, can be big due to that can not forward
Packet causes the system in case of system halt of mobile terminal.
The structure of Organization Chart and mobile terminal 1 00 and the communication connection of external equipment 200 based on above-mentioned LTE network is shown
It is intended to, proposes each embodiment of the present invention.
Reference picture 3, the present embodiment proposes a kind of data packet transmission system, and the data packet transmission system includes mobile terminal
100, and the external equipment 200 being connected by preset interface with the mobile terminal 1 00, the mobile terminal 1 00 includes the
One application processor 10, the first modem 11 for being embedded with virtual user identifying card 11A, the first radio-frequency module 12, and
The first Subscriber Identity Module 13 and second user identification card 14 being connected with first modem 11, the external equipment
200 include the second application processor 20, the radio-frequency module 22 of second modem 21 and second;
First application processor 10, for receiving the packet acquisition that the second application processor 20 is sent by preset interface
During request, the packet is extracted from virtual user identifying card 11A and obtains the corresponding packet of request;
The packet of extraction is split, and identical is added to each subdata bag after the fractionation of same packet
Identification information;
Each subdata bag added with identification information is cached into the extra buffer buffer of the preset interface,
So that the second application processor 20 extracts each subdata bag from the buffer, and son is carried out according to identical identification information
The combination of packet.
In the present embodiment, first application processor 10 receives the second application processor 20 by preset interface and sent
Packet obtain request, be also subsequently that packet is fed back to by second application processor 20 by the preset interface.
The preset interface is USB interface.
Wherein, when the second modem 21 of second processing chip 002 by the second radio-frequency module 22 receives base station
When the packet of transmission obtains request, packet is obtained into request and sent to the second application processor of second processing chip 002
In 20, when the second application processor 20, which receives packet, obtains request, first pass through USB data line 300 and obtain packet
Request is sent in the first application processor 10 of mobile terminal 1 00;First application processor 10 receives packet acquisition
During request, packet is obtained into request and is sent in the first modem 11 of mobile terminal 1 00, by the first modem
11 obtain request according to the packet obtains packet from virtual user identifying card 11A;First modem 11 is got
After packet, packet is transmitted into the first application processor 10;First application processor 10 is got after packet,
In order to ensure that the packet of transmission is not more than USB buffer capability value, first the packet of acquisition is split, obtained
Each subdata bag after fractionation, in order to prevent the packet subsequently forwarded imperfect, the application processor 10 is to same
Each subdata bag after packet is split adds identical identification information;Again by each subdata bag added with identification information
Caching is into USB buffer, to be sent to the second application processor 20;Second application processor 20 is extracted from buffer
Each subdata bag, the combination of subdata bag is carried out according still further to identical identification information, to obtain complete packet, final logical
Cross the second radio-frequency module 22 and the packet of combination is uploaded to base station, to complete the transmission of packet.
In the present embodiment, the first application processor is not limited to the virtual user identifying card embedded from the first modem
Packet is obtained in 11A, certainly, can also be obtained according to actual needs in the first Subscriber Identity Module 13 or second user identification card 14
Packet is taken, the first application processor is in virtual user identifying card 11A, the first Subscriber Identity Module 13 or second user identification card 14
The middle mode for obtaining packet is consistent, hereafter in order to sketch, other only exemplified by obtaining packet in virtual user identifying card
Two kinds repeat no more.
Specifically, first application processor 10, is additionally operable to by first modem 11 to Virtual User
Chip operating system in identification card 11A sends packet and obtains request, is recognized by the chip operating system in Virtual User
The packet is extracted in file storage module in card 11A and obtains the corresponding packet of request, and feeds back to described first and is adjusted
Modulator-demodulator 11;
First application processor 10, is additionally operable to receive operation system in described by first modem 11
The packet for feedback of uniting.
In the present embodiment, it is necessary to which the packet in explanation, virtual user identifying card 11A is stored in file storage mould
In block, when the first modem 11 will obtain the packet in virtual user identifying card 11A, the first modem 11 is not
Directly it can be interacted with the file storage module in virtual user identifying card 11A, but first into virtual user identifying card 11A
It is Request that COS (Chip Operating System, chip operating system) operating system, which sends packet and obtains request, so
Virtual user identifying card 11A COS operating systems obtain packet based on the Request in file storage module afterwards, then
The packet of acquisition is transmitted further to the first modem 11, as long as the first modem 11 reception COS operating systems are anti-
The packet of feedback, it is that data can be achieved that follow-up first application processor 10 obtains packet in the first modem 11
The acquisition process of bag.
It is appreciated that because the first modem 11 can not be in the file storage module in virtual user identifying card 11A
Packet is directly extracted, therefore is interacted by the COS operating systems with virtual user identifying card 11A, to realize packet
Extraction, it is ensured that follow-up data transmission procedure is normally run.
The corresponding data of request are obtained when the first application processor 10 extracts packet from virtual user identifying card 11A
After bag, then the packet of extraction is split, in the present embodiment, first application processor 10 is torn open to packet
The mode divided, is chosen as:Packet is parsed, to obtain the corresponding data of packet, then according to preset capacity value pair
Data are decomposed, and data split into the data segment of multiple preset capacity values, then by each data segment after fractionation
Package operation is carried out, to obtain each subdata bag.Wherein, the preset capacity value may be configured as 512 bytes, implement other
In example, other values are may be alternatively provided as, as long as ensureing that the capability value of each follow-up subdata bag is less than 512 bytes, herein not
Limit.
First application processor 10 is split to packet with after obtaining each subdata bag, you can packet is torn open
Point after each subdata bag addition identical identification information, most at last added with identification information each subdata bag cache to
In USB buffer, so that the second application processor 20 extracts each subdata bag from the buffer, and according to identical
Identification information carries out the combination of subdata bag, to complete the transmission of packet.
It should be noted that buffer is present in the two ends difference of the two ends of USB interface, i.e. USB interface in the present embodiment
It is provided with buffer1 and buffer2.The is sent to when packet is obtained request by USB interface by the second application processor 20
During one application processor 10, the first application processor 10 is extracted by the first modem 11 from virtual user identifying card 11A
Go out after packet, first store the packet of extraction into buffer1, so that, into buffer2, second should by USB transmission
Packet is obtained from buffer2 again with processor 20.
The data packet transmission system that the present embodiment is proposed, the first application processor is received at the second application by preset interface
When managing the packet acquisition request that device is sent, the packet is first extracted from virtual user identifying card and obtains the corresponding number of request
According to bag, then the packet of extraction is split, and it is identical to each subdata bag addition after the fractionation of same packet
Identification information, then each subdata bag added with identification information is cached into the buffer of the preset interface, for
Second application processor extracts each subdata bag from the buffer, and carries out subdata bag according to identical identification information
Combination, to complete the transmission of packet.This programme is first split in transmission packet to packet waiting for transmission, then
It will be transmitted after each subdata bag addition identical identification information after fractionation so that the capability value of the packet of transmission has
Reduced, follow-up opposite end is recombinated after receiving each subdata bag according to identical identification information, it is to avoid number
Situation about being crashed according to mobile terminal in transmitting procedure.
Further, data packet transmission system second embodiment of the present invention is proposed based on first embodiment.
The difference of data packet transmission system second embodiment and data packet transmission system first embodiment is,
First application processor 10, is additionally operable to pair capability value for determining packet;
When the capability value for having packet is more than predetermined threshold value, the packet is split, each subdata is obtained
Bag;
Identical identification information is added in each corresponding packet header of subdata bag.
In the present embodiment, request is obtained when the second application processor 20 sends packet to the first application processor 10
(Request) when, if virtual user identifying card 11A is telecommunications card, and the first modem 11 is recognized from the Virtual User
The packet extracted in card 11A is more than predetermined threshold value such as 512 bytes, and first application processor 10 can determine that the appearance of packet
Value is more than predetermined threshold value, and now because buffer can only disposably cache the packet no more than 512 bytes, therefore first should
Needed first to be split the packet of extraction with processor 10, to split into multiple subdata bags, then again by multiple subnumbers
Forwarded according to bag storage into buffer.
In the present embodiment, the packet that the first application processor 10 is extracted can be one or more, in the number of extraction
During according to including multiple, first application processor 10 can be split to multiple packets simultaneously, or according to each number
Split according to the sequence of extraction of bag, the first fractionation first extracted.
Specifically, during 10 splitting datagram of the first application processor, the bag of first each subdata bag after fractionation
Identical identification information is added in head, when the identification information is preferably the first 10 splitting datagram of application processor according to fractionation after
Packet perform package operation and added, package is exactly that plus packet header, so packet is just divided into one piece of data
Packet header and inclusion two parts content.
In the present embodiment it should be noted that packet header is actually fixed-size structure, wherein have individual structure into
Member's variable includes the length of attached bag body after splitting, and our fractionation identification information flag for defining, it will be understood that by one big
Wrapping the multiple attached bags split out has identical flag marks, and the information that is specifically identified of flag marks is not limited to bag name or pre-
If field information, it can be set, do not limited herein according to actual conditions.First application processor 10 has been performed after package operation,
The packet added with same identification information is stored in buffer successively again.
To be best understood from, it is exemplified below:Current in succession will transmit the packet of three telecommunications cards, and first big data bag is torn open
It is divided into after each subdata bag, flag is identified and is both configured to 0xF9F9, second big data bag splits into each subdata
Bao Hou, is both configured to 0x9F9F, the 3rd big data bag is split into after each subdata bag, by each attached bag by flag marks
Flag marks are both configured to 0XF9F9, and such three package identifications can just make a distinction, and receipt of subsequent end is the second application
Each subdata bag of flag mark identicals can be sorted out and reassemble into three big data bags by processor 20.
In the present embodiment, when it is determined that the capability value of packet is more than predetermined threshold value, fractured operation is just performed, data are prevented
Bag also carries out the waste that fractured operation causes system resource when being less than predetermined threshold value, and after fractured operation is carried out to packet,
Each subdata bag after same packet is split adds identical identification information, and follow-up opposite end can be identified according to identical
Information is recombinated, and prevents that the packet of forwarding is imperfect, improves packet forwarding accuracy.
Further, data packet transmission system 3rd embodiment of the present invention is proposed based on first embodiment.
The difference of data packet transmission system 3rd embodiment and data packet transmission system first embodiment is,
The corresponding different identification information of each subdata bag after the packet of extraction includes multiple packets, and fractionation
When, first application processor 10 is additionally operable to each subdata bag by different identification information according to default order buffer
Into the buffer of the preset interface.
In the present embodiment, each subdata bag correspondence after the packet of extraction includes multiple packets, and fractionation
During different identification information, now, first application processor 10 can by each subdata bag of different identification information according to
Preset order is cached into the buffer of the preset interface.In the present embodiment, the random sequence preferentially with each subdata
The genesis sequence of bag is consistent, i.e., split out a sub- packet, and subdata according to packet in the first application processor 10
Bag is added with after identification information, you can cache the subdata bag into the buffer of USB interface.
If it should be appreciated that the packet currently proposed includes multiple packets, then split obtained subdata bag
Also include it is multiple, and different pieces of information bag split after the corresponding identification information of subdata it is different, therefore, each after fractionation
When subdata bag corresponds to different identification informations, first application processor 10 can be by each subdata of different identification information
Bag is cached into the buffer of the USB interface successively according to the genesis sequence of subdata bag.Subsequently, the second application processing
Device 20 is extracted from the buffer after each subdata bag, and the side of the combination of subdata bag is carried out according to identical identification information
Formula is:Second application processor 20 extracts each subdata bag from buffer, by each subdata bag of extraction store to
Pre-set space, after the completion of then each subdata bag in buffer is extracted, recognizes each subdata bag of extraction successively
Identification information, a big data bag is included into by identification information identical subdata.
To be best understood from the present embodiment, it is exemplified below:
When first application processor 10 extracts tri- packets of X, Y, Z based on packet acquisition request, to each data
Bag is split, to obtain the corresponding multiple subdata bags of each packet, such as X packets correspondence x1, x2 and x3, Y data bag
Correspondence y1, y2 and y3, Z data bag correspondence z1, z2 and z3, now, if the genesis sequence of each subdata bag be successively x1,
Z1, x2, y1 ..., then, each subdata bag for being cached to buffer is just to be deposited successively according to x1, z1, x2, y1 order
Storage.In this case, when the second application processor 20 extracts subdata bag from buffer, first by each subdata of extraction
Bag is stored away in advance, and after the completion of extraction, the identification information of each subdata bag of extraction is recognized successively, then identification information is identical
Subdata include into a big data bag, and the big data after synthesis wrapped by the second radio-frequency module 23 reach base station.
In the present embodiment, each subdata bag correspondence after the packet of extraction includes multiple packets, and fractionation
During different identification information, each subdata bag of different identification information is cached to the preset interface according to preset order
In buffer, it is not necessary to have to same packet split after each subdata bag it is complete after, then all caching is connect to USB
In the buffer of mouth, but the subdata bag first split out is first cached, and improves the flexibility of packet transmission.
Further, data packet transmission system fourth embodiment of the present invention is proposed based on 3rd embodiment.
The difference of data packet transmission system fourth embodiment and data packet transmission system 3rd embodiment is,
The corresponding different identification information of each subdata bag after the packet of extraction includes multiple packets, and fractionation
When, first application processor 10 is additionally operable to each subdata bag of same identification information being classified as a class;
According to the order of classification, each of a sort subdata bag is cached to the buffer of the preset interface successively
In.
In the present embodiment, each subdata bag correspondence after the packet of extraction includes multiple packets, and fractionation
During different identification information, each subdata bag of same identification information first can be classified as one by first application processor 10
Class, then according to the order of classification, successively caches each of a sort subdata bag into the buffer of the preset interface.
In the present embodiment, the order of classification is preferably first classified as the order of a class, that is to say, that even if the first application processor 10 is extracted
Packet include multiple packets, and to each packet split after obtain each corresponding subdata bag, described first
Each subdata bag of same identification information still first can be classified as a class by application processor 10, then by according to the suitable of classification
Sequence, each of a sort subdata bag is cached into the buffer of the preset interface successively, the son of a class will be first classified as
Data pack buffer is finally completed the caching of the subdata bag of all categories into the buffer of the preset interface.
Subsequently, second application processor 20 extracts each subdata bag from the buffer, and according to identical
The mode that identification information carries out the combination of subdata bag includes:Second application processor 20 extracts subdata from buffer
Bag, recognizes the identification information of each subdata bag, is recognizing the mark of new subdata bag and a upper sub- packet successively
When knowledge information is identical, the subdata bag and a upper sub- packet that this is currently recognized are classified as a class, and it is next to continue identification
Subdata bag, when the subdata bag recognized that goes directly is different from the identification information of a upper sub- packet, the identification information by before
Each subdata of identical includes into a big data bag.
To be best understood from the present embodiment, it is exemplified below:
When first application processor 10 extracts tri- packets of X, Y, Z based on packet acquisition request, to each data
Bag is split, to obtain the corresponding multiple subdata bags of each packet, such as X packets correspondence x1, x2 and x3, Y data bag
Correspondence y1, y2 and y3, Z data bag correspondence z1, z2 and z3, now, a class are classified as by x1, x2 and x3, it is then determined that three class numbers
According to wrapping which class first splits completion, if now X classes first split completion, you can cache x1, x2 and x3 successively to the USB's
In buffer.Subsequently, after second application processor 20 extracts each subdata bag from the buffer, by x1, x2,
A class is classified as with x3, and continues to recognize next subdata bag, if it is y1 to recognize next, by x1, x2 and x3 before
Each subdata includes into a big data bag.
In the present embodiment, each subdata bag correspondence after the packet of extraction includes multiple packets, and fractionation
During different identification information, each subdata bag of same identification information is classified as a class, finally according to the order of classification, successively
Each of a sort subdata bag is cached into the buffer of the preset interface so that the transmission of subdata bag, be according to
Order buffer transmission, prevent subdata bag from situation about omitting occur, improve the accuracy of packet transmission.
In summary, in the embodiment of the present invention, when the packet of telecommunications card transmission in the mobile terminal 100 is larger, the
One application processor 10 is split to packet, with the desired value of change data bag, the packet of further cache to buffer
Buffer capability value would not be exceeded, then, it is to avoid the problem of transmission of big data bag causes to crash, while many to splitting into
Individual sub- packet addition identical identification information, the second application processor 20 can be recombinated according to identification information so that follow-up
The packet of forwarding is complete packet, it is to avoid packet forwards incomplete situation.
The present invention further provides a kind of data pack transmission method.
Reference picture 4, Fig. 4 is the schematic flow sheet of data pack transmission method first embodiment of the present invention.
The present embodiment proposes a kind of data pack transmission method, and there is provided the reality of data pack transmission method in the present embodiment
Example is applied, it is necessary to which explanation is, although show logical order in flow charts, but in some cases, can with different from
Order herein performs shown or described step.
In the present invention, data pack transmission method is applied to the mobile terminal being connected by preset interface with external equipment 200
100, the mobile terminal 1 00 includes the first application processor 10, is embedded with virtual user identifying card 11A the first modulation /demodulation
Device 11, the first radio-frequency module 12, and the first Subscriber Identity Module 13 and second being connected with first modem 11 are used
Family identification card 14, the external equipment 200 includes the second application processor 20, the radio-frequency module of second modem 21 and second
22, methods described includes:
Step S10, the first application processor receives the packet acquisition that the second application processor is sent by preset interface
During request, the packet is extracted from virtual user identifying card and obtains the corresponding packet of request;
Step S20, splits to the packet of extraction, and to each subdata Bao Tian after the fractionation of same packet
Plus identical identification information;
Step S30, each subdata bag added with identification information is cached into the buffer of the preset interface, with
Each subdata bag is extracted from the buffer for the second application processor, and subdata is carried out according to identical identification information
The combination of bag.
In the present embodiment, first application processor 10 receives the second application processor 20 by preset interface and sent
Packet obtain request, be also subsequently that packet is fed back to by second application processor 20 by the preset interface.
The preset interface is USB interface.
Wherein, when the second modem 21 of second processing chip 002 by the second radio-frequency module 22 receives base station
When the packet of transmission obtains request, packet is obtained into request and sent to the second application processor of second processing chip 002
In 20, when the second application processor 20, which receives packet, obtains request, first pass through USB data line 300 and obtain packet
Request is sent in the first application processor 10 of mobile terminal 1 00;First application processor 10 receives packet acquisition
During request, packet is obtained into request and is sent in the first modem 11 of mobile terminal 1 00, by the first modem
11 obtain request according to the packet obtains packet from virtual user identifying card 11A;First modem 11 is got
After packet, packet is transmitted into the first application processor 10;First application processor 10 is got after packet,
In order to ensure that the packet of transmission is not more than USB buffer capability value, first the packet of acquisition is split, obtained
Each subdata bag after fractionation, in order to prevent the packet subsequently forwarded imperfect, the application processor 10 is to same
Each subdata bag after packet is split adds identical identification information;Again by each subdata bag added with identification information
Caching is into USB buffer, to be sent to the second application processor 20;Second application processor 20 is extracted from buffer
Each subdata bag, the combination of subdata bag is carried out according still further to identical identification information, to obtain complete packet, final logical
Cross the second radio-frequency module 22 and the packet of combination is uploaded to base station, to complete the transmission of packet.
In the present embodiment, the first application processor is not limited to from the embedded virtual user identifying card of the first modem
Packet is obtained, certainly, also packet can be obtained in the first Subscriber Identity Module or second user identification card according to actual needs,
First application processor obtains the side of packet in virtual user identifying card, the first Subscriber Identity Module or second user identification card
Formula is consistent, hereafter in order to sketch, and only exemplified by obtaining packet in virtual user identifying card, other two kinds repeat no more.
Specifically, reference picture 5, the step S10 includes:
Step S11, first application processor is by first modem into virtual user identifying card
Chip operating system sends packet and obtains request, is stored by file of the chip operating system in virtual user identifying card
The packet is extracted in module and obtains the corresponding packet of request, and feeds back to first modem;
Step S12, first application processor receives the chip operating system by first modem
The packet of feedback.
In the present embodiment, it is necessary to which the packet in explanation, virtual user identifying card 11A is stored in file storage mould
In block, when the first modem 11 will obtain the packet in virtual user identifying card 11A, the first modem 11 is not
Directly it can be interacted with the file storage module in virtual user identifying card 11A, but first into virtual user identifying card 11A
It is Request that COS (Chip Operating System, chip operating system) operating system, which sends packet and obtains request, so
Virtual user identifying card 11A COS operating systems obtain packet based on the Request in file storage module afterwards, then
The packet of acquisition is transmitted further to the first modem 11, as long as the first modem 11 reception COS operating systems are anti-
The packet of feedback, it is that data can be achieved that follow-up first application processor 10 obtains packet in the first modem 11
The acquisition process of bag.
It is appreciated that because the first modem 11 can not be in the file storage module in virtual user identifying card 11A
Packet is directly extracted, therefore is interacted by the COS operating systems with virtual user identifying card 11A, to realize packet
Extraction, it is ensured that follow-up data transmission procedure is normally run.
The corresponding data of request are obtained when the first application processor 10 extracts packet from virtual user identifying card 11A
After bag, then the packet of extraction is split, in the present embodiment, first application processor 10 is torn open to packet
The mode divided, is chosen as:Packet is parsed, to obtain the corresponding data of packet, then according to preset capacity value pair
Data are decomposed, and data split into the data segment of multiple preset capacity values, then by each data segment after fractionation
Package operation is carried out, to obtain each subdata bag.Wherein, the preset capacity value may be configured as 512 bytes, implement other
In example, other values are may be alternatively provided as, as long as ensureing that the capability value of each follow-up subdata bag is less than 512 bytes, herein not
Limit.
First application processor 10 is split to packet with after obtaining each subdata bag, you can packet is torn open
Point after each subdata bag addition identical identification information, most at last added with identification information each subdata bag cache to
In USB buffer, so that the second application processor 20 extracts each subdata bag from the buffer, and according to identical
Identification information carries out the combination of subdata bag, to complete the transmission of packet.
It should be noted that buffer is present in the two ends difference of the two ends of USB interface, i.e. USB interface in the present embodiment
It is provided with buffer1 and buffer2.The is sent to when packet is obtained request by USB interface by the second application processor 20
During one application processor 10, the first application processor 10 is extracted by the first modem 11 from virtual user identifying card 11A
Go out after packet, first store the packet of extraction into buffer1, to pass through USB transmission to the second application processor 20
Buffer2 in, the second application processor 20 obtains packet from buffer2 again.
The data pack transmission method that the present embodiment is proposed, the first application processor is received at the second application by preset interface
When managing the packet acquisition request that device is sent, the packet is first extracted from virtual user identifying card and obtains the corresponding number of request
According to bag, then the packet of extraction is split, and it is identical to each subdata bag addition after the fractionation of same packet
Identification information, then each subdata bag added with identification information is cached into the buffer of the preset interface, for
Second application processor extracts each subdata bag from the buffer, and carries out subdata bag according to identical identification information
Combination, to complete the transmission of packet.This programme is first split in transmission packet to packet waiting for transmission, then
It will be transmitted after each subdata bag addition identical identification information after fractionation so that the capability value of the packet of transmission has
Reduced, follow-up opposite end is recombinated after receiving each subdata bag according to identical identification information, it is to avoid number
Situation about being crashed according to mobile terminal in transmitting procedure.
Further, data pack transmission method second embodiment of the present invention is proposed based on first embodiment.
The difference of data pack transmission method second embodiment and data pack transmission method first embodiment is, the step
S10 includes:
Step a, the first application processor determine the capability value of packet;
Step b, the capability value for having packet be more than predetermined threshold value when, the packet is split, each is obtained
Subdata bag;
Step c, the addition identical identification information in each corresponding packet header of subdata bag.
In the present embodiment, request is obtained when the second application processor 20 sends packet to the first application processor 10
(Request) when, if virtual user identifying card 11A is telecommunications card, and the first modem 11 is recognized from the Virtual User
The packet extracted in card 11A is more than predetermined threshold value such as 512 bytes, and first application processor 10 can determine that the appearance of packet
Value is more than predetermined threshold value, and now because buffer can only disposably cache the packet no more than 512 bytes, therefore first should
Needed first to be split the packet of extraction with processor 10, to split into multiple subdata bags, then again by multiple subnumbers
Forwarded according to bag storage into buffer.
In the present embodiment, the packet that the first application processor 10 is extracted can be one or more, in the number of extraction
During according to including multiple, first application processor 10 can be split to multiple packets simultaneously, or according to each number
Split according to the sequence of extraction of bag, the first fractionation first extracted.
Specifically, during 10 splitting datagram of the first application processor, the bag of first each subdata bag after fractionation
Identical identification information is added in head, when the identification information is preferably the first 10 splitting datagram of application processor according to fractionation after
Packet perform package operation and added, package is exactly that plus packet header, so packet is just divided into one piece of data
Packet header and inclusion two parts content.
In the present embodiment it should be noted that packet header is actually fixed-size structure, wherein have individual structure into
Member's variable includes the length of attached bag body after splitting, and our fractionation identification information flag for defining, it will be understood that by one big
Wrapping the multiple attached bags split out has identical flag marks, and the information that is specifically identified of flag marks is not limited to bag name or pre-
If field information, it can be set, do not limited herein according to actual conditions.First application processor 10 has been performed after package operation,
The packet added with same identification information is stored in buffer successively again.
To be best understood from, it is exemplified below:Current in succession will transmit the packet of three telecommunications cards, and first big data bag is torn open
It is divided into after each subdata bag, flag is identified and is both configured to 0xF9F9, second big data bag splits into each subdata
Bao Hou, is both configured to 0x9F9F, the 3rd big data bag is split into after each subdata bag, by each attached bag by flag marks
Flag marks are both configured to 0XF9F9, and such three package identifications can just make a distinction, and receipt of subsequent end is the second application
Each subdata bag of flag mark identicals can be sorted out and reassemble into three big data bags by processor 20.
In the present embodiment, when it is determined that the capability value of packet is more than predetermined threshold value, fractured operation is just performed, data are prevented
Bag also carries out the waste that fractured operation causes system resource when being less than predetermined threshold value, and after fractured operation is carried out to packet,
Each subdata bag after same packet is split adds identical identification information, and follow-up opposite end can be identified according to identical
Information is recombinated, and prevents that the packet of forwarding is imperfect, improves packet forwarding accuracy.
Further, data pack transmission method 3rd embodiment of the present invention is proposed based on first embodiment.
The difference of data pack transmission method 3rd embodiment and data pack transmission method first embodiment is, in extraction
When packet includes the different identification information of each subdata bag correspondence after multiple packets, and fractionation, the step S30 bags
Include:
First application processor is by each subdata bag of different identification information according to default order buffer to institute
In the buffer for stating preset interface.
In the present embodiment, each subdata bag correspondence after the packet of extraction includes multiple packets, and fractionation
During different identification information, now, first application processor 10 can by each subdata bag of different identification information according to
Preset order is cached into the buffer of the preset interface.In the present embodiment, the random sequence preferentially with each subdata
The genesis sequence of bag is consistent, i.e., split out a sub- packet, and subdata according to packet in the first application processor 10
Bag is added with after identification information, you can cache the subdata bag into the buffer of USB interface.
If it should be appreciated that the packet currently proposed includes multiple packets, then split obtained subdata bag
Also include it is multiple, and different pieces of information bag split after the corresponding identification information of subdata it is different, therefore, each after fractionation
When subdata bag corresponds to different identification informations, first application processor 10 can be by each subdata of different identification information
Bag is cached into the buffer of the USB interface successively according to the genesis sequence of subdata bag.Subsequently, the second application processing
Device 20 is extracted from the buffer after each subdata bag, and the side of the combination of subdata bag is carried out according to identical identification information
Formula is:Second application processor 20 extracts each subdata bag from buffer, by each subdata bag of extraction store to
Pre-set space, after the completion of then each subdata bag in buffer is extracted, recognizes each subdata bag of extraction successively
Identification information, a big data bag is included into by identification information identical subdata.
To be best understood from the present embodiment, it is exemplified below:
When first application processor 10 extracts tri- packets of X, Y, Z based on packet acquisition request, to each data
Bag is split, to obtain the corresponding multiple subdata bags of each packet, such as X packets correspondence x1, x2 and x3, Y data bag
Correspondence y1, y2 and y3, Z data bag correspondence z1, z2 and z3, now, if the genesis sequence of each subdata bag be successively x1,
Z1, x2, y1 ..., then, each subdata bag for being cached to buffer is just to be deposited successively according to x1, z1, x2, y1 order
Storage.In this case, when the second application processor 20 extracts subdata bag from buffer, first by each subdata of extraction
Bag is stored away in advance, and after the completion of extraction, the identification information of each subdata bag of extraction is recognized successively, then identification information is identical
Subdata include into a big data bag, and the big data after synthesis wrapped by the second radio-frequency module 23 reach base station.
In the present embodiment, each subdata bag correspondence after the packet of extraction includes multiple packets, and fractionation
During different identification information, each subdata bag of different identification information is cached to the preset interface according to preset order
In buffer, it is not necessary to have to same packet split after each subdata bag it is complete after, then all caching is connect to USB
In the buffer of mouth, but the subdata bag first split out is first cached, and improves the flexibility of packet transmission.
Further, data pack transmission method fourth embodiment of the present invention is proposed based on 3rd embodiment.
The difference of data pack transmission method fourth embodiment and data pack transmission method 3rd embodiment is, in extraction
When packet includes the different identification information of each subdata bag correspondence after multiple packets, and fractionation, the step S30 bags
Include:
Each subdata bag of same identification information is classified as a class by first application processor;
According to the order of classification, each of a sort subdata bag is cached to the buffer of the preset interface successively
In.
In the present embodiment, each subdata bag correspondence after the packet of extraction includes multiple packets, and fractionation
During different identification information, each subdata bag of same identification information first can be classified as one by first application processor 10
Class, then according to the order of classification, successively caches each of a sort subdata bag into the buffer of the preset interface.
In the present embodiment, the order of classification is preferably first classified as the order of a class, that is to say, that even if the first application processor 10 is extracted
Packet include multiple packets, and to each packet split after obtain each corresponding subdata bag, described first
Each subdata bag of same identification information still first can be classified as a class by application processor 10, then by according to the suitable of classification
Sequence, each of a sort subdata bag is cached into the buffer of the preset interface successively, the son of a class will be first classified as
Data pack buffer is finally completed the caching of the subdata bag of all categories into the buffer of the preset interface.
Subsequently, second application processor 20 extracts each subdata bag from the buffer, and according to identical
The mode that identification information carries out the combination of subdata bag includes:Second application processor 20 extracts subdata from buffer
Bag, recognizes the identification information of each subdata bag, is recognizing the mark of new subdata bag and a upper sub- packet successively
When knowledge information is identical, the subdata bag and a upper sub- packet that this is currently recognized are classified as a class, and it is next to continue identification
Subdata bag, when the subdata bag recognized that goes directly is different from the identification information of a upper sub- packet, the identification information by before
Each subdata of identical includes into a big data bag.
To be best understood from the present embodiment, it is exemplified below:
When first application processor 10 extracts tri- packets of X, Y, Z based on packet acquisition request, to each data
Bag is split, to obtain the corresponding multiple subdata bags of each packet, such as X packets correspondence x1, x2 and x3, Y data bag
Correspondence y1, y2 and y3, Z data bag correspondence z1, z2 and z3, now, a class are classified as by x1, x2 and x3, it is then determined that three class numbers
According to wrapping which class first splits completion, if now X classes first split completion, you can cache x1, x2 and x3 successively to the USB's
In buffer.Subsequently, after second application processor 20 extracts each subdata bag from the buffer, by x1, x2,
A class is classified as with x3, and continues to recognize next subdata bag, if it is y1 to recognize next, by x1, x2 and x3 before
Each subdata includes into a big data bag.
In the present embodiment, each subdata bag correspondence after the packet of extraction includes multiple packets, and fractionation
During different identification information, each subdata bag of same identification information is classified as a class, finally according to the order of classification, successively
Each of a sort subdata bag is cached into the buffer of the preset interface so that the transmission of subdata bag, be according to
Order buffer transmission, prevent subdata bag from situation about omitting occur, improve the accuracy of packet transmission.
In summary, in the embodiment of the present invention, when the packet of telecommunications card transmission in the mobile terminal 100 is larger, the
One application processor 10 is split to packet, with the desired value of change data bag, the packet of further cache to buffer
Buffer capability value would not be exceeded, then, it is to avoid the problem of transmission of big data bag causes to crash, while many to splitting into
Individual sub- packet addition identical identification information, the second application processor 20 can be recombinated according to identification information so that follow-up
The packet of forwarding is complete packet, it is to avoid packet forwards incomplete situation.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or system including a series of key elements not only include those key elements, and
And also including 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
Also there is other identical element in process, method, article or the system of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
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.Understood based on such, 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 are to cause a station terminal equipment (can be mobile phone, computer, clothes
It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the 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
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 packet transmission system, it is characterised in that the data packet transmission system includes mobile terminal, and by pre-
If the external equipment that interface is connected with the mobile terminal, the mobile terminal includes the first application processor, is embedded with virtually
The first modem, the first radio-frequency module of Subscriber Identity Module, and first be connected with first modem are used
Family identification card and second user identification card, the external equipment include the second application processor, second modem and second
Radio-frequency module;
First application processor, during for receiving the packet acquisition request that the second application processor is sent by preset interface,
The packet is extracted from virtual user identifying card and obtains the corresponding packet of request;
The packet of extraction is split, and to each subdata bag addition identical mark after the fractionation of same packet
Information;
Each subdata bag added with identification information is cached into the extra buffer buffer of the preset interface, for
Second application processor extracts each subdata bag from the buffer, and carries out subdata bag according to identical identification information
Combination.
2. data packet transmission system as claimed in claim 1, it is characterised in that first application processor, is additionally operable to lead to
Cross chip operating system of first modem into virtual user identifying card and send packet acquisition request, by described
Chip operating system extracts the packet and obtains the corresponding number of request in the file storage module in virtual user identifying card
According to bag, and feed back to first modem;
First application processor, is additionally operable to receive what the chip operating system fed back by first modem
Packet.
3. data packet transmission system as claimed in claim 1 or 2, it is characterised in that first application processor, is additionally operable to
Pair determine packet capability value;
When the capability value for having packet is more than predetermined threshold value, the packet is split, each subdata bag is obtained;
Identical identification information is added in each corresponding packet header of subdata bag.
4. data packet transmission system as claimed in claim 3, it is characterised in that include multiple data in the packet of extraction
When each subdata bag after bag, and fractionation corresponds to different identification informations, first application processor is additionally operable to difference
In buffer of each subdata bag of identification information according to default order buffer to the preset interface.
5. data packet transmission system as claimed in claim 3, it is characterised in that include multiple data in the packet of extraction
When each subdata bag after bag, and fractionation corresponds to different identification informations, first application processor, being additionally operable to will be identical
Each subdata bag of identification information is classified as a class;
According to the order of classification, each of a sort subdata bag is cached into the buffer of the preset interface successively.
6. a kind of data pack transmission method, it is characterised in that applied to mobile terminal and pass through preset interface and mobile terminal
The external equipment of connection, the mobile terminal includes the first application processor, is embedded with the first modulation of virtual user identifying card
Demodulator, the first radio-frequency module, and the first Subscriber Identity Module and second user being connected with first modem are known
Do not block, the external equipment includes the second application processor, second modem and the second radio-frequency module, methods described bag
Include:
First application processor by preset interface receive the packet that the second application processor sends obtain ask when, from virtual
The packet is extracted in Subscriber Identity Module and obtains the corresponding packet of request;
The packet of extraction is split, and to each subdata bag addition identical mark after the fractionation of same packet
Information;
Each subdata bag added with identification information is cached into the extra buffer buffer of the preset interface, for
Second application processor extracts each subdata bag from the buffer, and carries out subdata bag according to identical identification information
Combination.
7. data pack transmission method as claimed in claim 6, it is characterised in that described that institute is extracted from virtual user identifying card
Stating the step of packet obtains request corresponding packet includes:
Chip operating system of first application processor by first modem into virtual user identifying card
Send packet and obtain request, institute is extracted in file storage module of the chip operating system in virtual user identifying card
State packet and obtain the corresponding packet of request, and feed back to first modem;
First application processor receives the packet that the chip operating system feeds back by first modem.
8. data pack transmission method as claimed in claims 6 or 7, it is characterised in that the packet of described pair of extraction is torn open
The step of dividing, and add identical identification information to each subdata bag after the fractionation of same packet includes:
First application processor determines the capability value of packet;
When the capability value for having packet is more than predetermined threshold value, the packet is split, each subdata bag is obtained;
Identical identification information is added in each corresponding packet header of subdata bag.
9. data pack transmission method as claimed in claim 8, it is characterised in that include multiple data in the packet of extraction
It is described by each subnumber added with identification information when each subdata bag after bag, and fractionation corresponds to different identification informations
Include according to step of the bag caching into the buffer of the preset interface:
First application processor is by each subdata bag of different identification information according to default order buffer to described pre-
If in the buffer of interface.
10. data pack transmission method as claimed in claim 8, it is characterised in that include multiple data in the packet of extraction
It is described by each subnumber added with identification information when each subdata bag after bag, and fractionation corresponds to different identification informations
Also include according to step of the bag caching into the buffer of the preset interface:
Each subdata bag of same identification information is classified as a class by first application processor;
According to the order of classification, each of a sort subdata bag is cached into the buffer of the preset interface successively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710395933.9A CN107071832A (en) | 2017-05-27 | 2017-05-27 | Data packet transmission system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710395933.9A CN107071832A (en) | 2017-05-27 | 2017-05-27 | Data packet transmission system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107071832A true CN107071832A (en) | 2017-08-18 |
Family
ID=59615543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710395933.9A Withdrawn CN107071832A (en) | 2017-05-27 | 2017-05-27 | Data packet transmission system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107071832A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107979615A (en) * | 2018-01-05 | 2018-05-01 | 新华三信息安全技术有限公司 | Message encryption transmission, authentication method, device, client and fire wall |
WO2019072255A1 (en) * | 2017-10-13 | 2019-04-18 | 捷开通讯(深圳)有限公司 | Mobile terminal and data transmission method therefor, and storage medium |
-
2017
- 2017-05-27 CN CN201710395933.9A patent/CN107071832A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019072255A1 (en) * | 2017-10-13 | 2019-04-18 | 捷开通讯(深圳)有限公司 | Mobile terminal and data transmission method therefor, and storage medium |
CN107979615A (en) * | 2018-01-05 | 2018-05-01 | 新华三信息安全技术有限公司 | Message encryption transmission, authentication method, device, client and fire wall |
CN107979615B (en) * | 2018-01-05 | 2020-07-03 | 新华三信息安全技术有限公司 | Message encryption sending and authentication method, device, client and firewall |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107466070A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107124737A (en) | Mobile terminal and data pack transmission method | |
CN107071832A (en) | Data packet transmission system and method | |
CN107094152A (en) | Data packet transmission system and method | |
CN107094308A (en) | Data packet transmission system and method | |
CN107124738A (en) | Mobile terminal and data pack transmission method | |
CN107247679A (en) | Data transmission system and method | |
CN107182084A (en) | Mobile terminal and data pack transmission method | |
CN107182087A (en) | Data packet transmission system and method | |
CN107222429A (en) | Data transmission system and method | |
CN107466028A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107182085A (en) | Data packet transmission system and method | |
CN107396400A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107466027A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107396399A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107231659A (en) | Mobile terminal and data pack transmission method | |
CN107148052A (en) | Mobile terminal and its data transmission method | |
CN107318131A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107371150A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107396343A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107332929A (en) | Data packet transmission system and method | |
CN107395605A (en) | Data packet transmission system and method | |
CN107124736A (en) | Data transmission system and method | |
CN107318130A (en) | Data packet transmission system and method | |
CN107370819A (en) | Data packet transmission system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170818 |