CN107231659A - Mobile terminal and data pack transmission method - Google Patents
Mobile terminal and data pack transmission method Download PDFInfo
- Publication number
- CN107231659A CN107231659A CN201710395820.9A CN201710395820A CN107231659A CN 107231659 A CN107231659 A CN 107231659A CN 201710395820 A CN201710395820 A CN 201710395820A CN 107231659 A CN107231659 A CN 107231659A
- Authority
- CN
- China
- Prior art keywords
- packet
- modem
- bag
- subdata bag
- buffer
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of mobile terminal and data pack transmission method, mobile terminal includes the first process chip, second processing chip, the first radio-frequency module and the second radio-frequency module connected based on preset interface, first process chip includes the first application processor and the first modem being connected with the first and second Subscriber Identity Modules, and second processing chip includes the second application processor and second modem;First modem receives the packet acquisition request that second modem is sent by preset interface, and packet is obtained from first or second user identification card;The packet of extraction is split, and each subdata bag after fractionation is added identical identification information to cache into the extra buffer buffer of preset interface, so that second modem extracts each subdata bag, and it is combined according to identical identification information.Avoiding transmission of data packets, value is excessive to cause the situation of terminal crash due to containing.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of mobile terminal and data pack transmission 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 built-in two
Individual process chip, one modem of each process chip correspondence, so that two SIM cards of mobile terminal connect different tune
Modulator-demodulator, so as to realize double LTE communication functions.But, when the Subscriber Identity Module in mobile terminal is telecommunications card, due to electricity
Letter card is typically greater than the capability value of the extra buffer buffer of data transfer between modem, therefore buffer can not
A complete packet is 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 mobile terminal and data pack transmission method, it is intended to solve existing number
According to bag transmission means, the technical problem of mobile terminal deadlock is easily caused.
To achieve the above object, a kind of mobile terminal that the present invention is provided, the mobile terminal includes being based on preset interface
The first process chip and second processing chip of connection, the first radio-frequency module, the Yi Jiyu being connected with first process chip
Second radio-frequency module of second processing chip connection, first process chip includes the first application processor and with the
One Subscriber Identity Module and the first modem of second user identification card connection, the second processing chip include the second application
Processor and second modem;
First modem, for receiving the packet acquisition request that second modem is sent by preset interface
When, the packet is extracted from the first Subscriber Identity Module or second user identification 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 second modem 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 modem, is additionally operable into the first Subscriber Identity Module or second user identification card
Chip operating system sends packet and obtains request, is known by the chip operating system in the first Subscriber Identity Module or second user
Not Ka in file storage module in extract the packet and obtain the corresponding packet of request, and feed back to first modulation
Demodulator;Receive the packet of the chip operating system feedback.
Alternatively, first modem, is additionally operable to determine the capability value of packet;There is the capability value of packet
During more than predetermined threshold value, the packet is split, each subdata bag is obtained;In each corresponding packet header of subdata bag
Middle addition identical identification information.
Alternatively, extraction packet include multiple packets, and split after each subdata bag correspondence it is different
During identification information, first modem 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 modem is additionally operable to each subdata bag of same identification information being classified as a class;According to
The order of classification, successively caches each of a sort subdata bag into the buffer of the preset interface.
In addition, to achieve the above object, the present invention also provides a kind of data pack transmission method, the data pack transmission method
Applied to mobile terminal, the mobile terminal include the first process chip connected based on preset interface and second processing chip,
The first radio-frequency module being connected with first process chip and the second radio frequency mould being connected with the second processing chip
Block, first process chip includes the first application processor and is connected with the first Subscriber Identity Module and second user identification card
The first modem, the second processing chip include the second application processor and second modem, methods described
Including:
When first modem receives the packet acquisition request that second modem is sent by preset interface, from
The packet is extracted in first Subscriber Identity Module or second user identification 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 second modem 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 packet acquisition request pair is extracted from the first Subscriber Identity Module or second user identification card
The step of packet answered, includes:
Chip operating system hair of first modem into the first Subscriber Identity Module or second user identification card
Send packet to obtain request, deposited by file of the chip operating system in the first Subscriber Identity Module or second user identification card
The packet is extracted in storage module and obtains the corresponding packet of request, and feeds back to first modem;
First modem receives the packet of the chip operating system feedback.
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 modem 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 modem 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 modem;
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 mobile terminal include based on preset interface connect the first process chip and
Second processing chip, the first radio-frequency module being connected with first process chip and it is connected with the second processing chip
The second radio-frequency module, first process chip include the first application processor and with the first Subscriber Identity Module and second use
First modem of family identification card connection, the second processing chip includes the second application processor and the second modulation /demodulation
Device;First modem by preset interface receive the packet that second modem sends obtain ask when, first from the
The packet is extracted in one Subscriber Identity Module or second user identification card and obtains the corresponding packet of request, then to extraction
Packet is split, and adds identical identification information to each subdata bag after the fractionation of same packet, most at last
Each subdata bag added with identification information is cached into the buffer of the preset interface, for second modem from
Each subdata bag is extracted in the buffer, and the combination of subdata bag is carried out according to identical identification information, to complete number
According to the transmission of bag.This programme is first split in transmission packet to packet waiting for transmission, then by each height after fractionation
It is transmitted after packet addition identical identification information so that the capability value of the packet of transmission has reduced, follow-up opposite end
Receive and recombinated according to identical identification information after each subdata bag, it is to avoid moved in data transmission procedure
The situation of terminal crash.
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 hardware architecture diagram of mobile terminal in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of data pack transmission method first embodiment of the present invention;
The refinement schematic flow sheet that Fig. 4 is step S10 in Fig. 3.
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 schematic diagram of the LTE network framework of one embodiment of the invention.The LTE network framework of one embodiment of the invention
Including:One or more mobile terminals (user equipment, UE) 100, E-UTRAN (Evolved UMTS
Terrestrial Radio Access Network, the UMTS Terrestrial radio access network of evolution) (non-label in figure), evolution point
Group core (EPC) (non-label in figure), home subscriber servers (HSS) 107, network (for example, internet) (non-label in figure)
And circuit switching system (non-label in figure).
E-UTRAN includes evolution B node (eNodeB) 101 and other eNodeB 102.ENodeB 101 is provided towards shifting
The user plane of dynamic terminal 100 and the protocol terminations of chain of command.ENodeB 101 can be connected to other eNodeB via X2 interface.
ENodeB 101 is alternatively referred to as base station, base transceiver station, radio base station, wireless set, transceiver function, basic service
Collection, extended service set or some other suitable terms.ENodeB 101 is that mobile terminal 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).
Fig. 2 is a kind of hardware architecture diagram of mobile terminal 1 00 in the embodiment of the present invention.
In embodiments of the present invention, mobile terminal 1 00 includes the first process chip 001 and second processing chip 002, with institute
The second radio frequency stated the first radio-frequency module 12 of the first process chip 001 connection and be connected with the second processing chip 002
Module 22.Wherein, the first process chip 001 and second processing chip 002 are connected by preset interface.The preset interface includes
First preset interface and the second preset interface.First process chip 001 includes the first application processor (Application
Processor, is represented with AP1) 10, the first modulation /demodulation for being connected with the first Subscriber Identity Module 13 and second user identification card 14
Device 11 (modem1), RPM (Resource Power Manager, resource power supervisor) 15.Second processing chip 002 includes
Second application processor 20 and second modem (modem2) 21.Subscriber Identity Module (the first Subscriber Identity Module 13 and second
Subscriber Identity Module 14) block for SIM (Subscriber Identity Module, subscriber identification module).
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 embodiments of the present invention, application processor refers to Android operations system
System, and the various apk (Android Package, Android installation kit) based on Android operation system.
In an embodiment of the present invention, the first application processor 10 and the second application processor 20 pass through the first preset interface
Connection is realized, interactive interface is provided the user, the operational order that user is inputted is (for example, what user was inputted by user interface
Operational order about starting video calling) the first modem 11 or second modem 21 are transferred to, to realize two
The definition and transmission of data between individual application processor, for example, carrying out the dormancy of two application processors, wake-up, synchronous control
Control of chip boot sequence etc. when system, switching on and shutting down.Wherein, the first preset interface be USB (Universal Serial Bus,
USB).It should be appreciated that in embodiments of the present invention, USB data line is multiplexed out two data passages, respectively
For the interaction of user data and control signaling data between the first application processor 10 and the second application processor 20, i.e., first
The data that the application processor 20 of application processor 10 and second is transmitted by USB data line include above two data.Wherein, use
User data includes the data that online is produced, picture and chat message data;Control signaling data include the control data of switching on and shutting down,
Switch the control data of offline mode, the control data of dispaly state signal.
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 the first Subscriber Identity Module 13
In SIM card parameter access eNodeB 101, second modem 21 can be by the SIM card in second user identification card 14
Parameter accesses eNodeB101;Or first modem 11 connect by the SIM card parameter in second user identification card 14
Enter eNodeB 101, second modem 21 accesses eNodeB by the SIM card parameter in the first Subscriber Identity Module 13
101.SIM card parameter includes but is not limited to SIM card authorization data.
First modem 11 and second modem 21 are connected by the second preset interface.In the embodiment of the present invention
In, the second preset interface is UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receipts
Send out transmitter).UART is used for the transmission of SIM card parameter between the first modem 11 and second modem 21.Wherein,
The buffer of UART interface is present in the two ends of the first modem 11 and second modem 21, with buffer1 and
Buffer2 is represented.It should be noted that buffer1 and buffer2 correspond to same physical address, by the physical address,
The synchronous change of controllable buffer1 and buffer2 capability values and state.
Specifically:The SIM card data that second modem 21 receives base station transmission by the second radio-frequency module 22 are obtained
When taking request, data acquisition request is sent in the first modem 11, by the feedback response of the first modem 11
SIM card data.
Wherein, the triggering mode of the SIM card data acquisition request includes two kinds:
A, the Active Registration LTE network of second modem 21, to trigger SIM card data acquisition request;
Whether B, base station side need authentication user legal, and authentication request is issued into second modem 21, are adjusted by second
Modulator-demodulator 21 actively sends out SIM card data acquisition request.
Second modem 21 receives the SIM card data acquisition request that base station is sent by the second radio-frequency module 22
When, data acquisition request is sent in the first modem 11 by UART, by the first modem 11 according to data
Obtain request and obtain data from the first Subscriber Identity Module 13 or second user identification card 14, hereafter with the first modem 11
Data instance is obtained according to data acquisition request from the first Subscriber Identity Module 13 to be described in detail.
(grasped it is to be appreciated that including COS in the first Subscriber Identity Module 13 in Chip Operating System, piece
Make system) operating system and memory module, wherein, the COS operating systems as memory module File Agent, according to described
The data acquisition request that first modem 11 is sent extracts data from the memory module, and the memory module is used for depositing
Store up data.That is, in the embodiment of the present invention, the first modem 11 is can not be with the storage mould inside the first Subscriber Identity Module 13
Block is interacted to obtain data, can only be obtained by COS operating systems.Therefore, when first modem 11
When data acquisition request is sent to the first Subscriber Identity Module 13, the COS operating systems parsing inside the first Subscriber Identity Module 13
Go out the address information of the data acquisition request, then according to the address information, obtained from the memory module describedly
The corresponding data of location information.After the COS operating systems get data from memory module, by the data feedback of acquisition
To first modem 11.
First modem 11 is sent data by UART after the data of COS operating systems feedback are got
To second modem 21, data are uploaded to base station by final second modem 21 by the second radio-frequency module 22, with
Complete authentication.
Due to having already described above, buffer1 and buffer2 correspond to same physical address, therefore the first modulatedemodulate
When adjusting device 11 by the data pack buffer of extraction to buffer1, packet sends into buffer2 caching, second by the UART
When modem 21 detects the packet in buffer2, you can get the packet, to realize the biography of packet
It is defeated.
It is understood that passing through the first preset interface and/or the second preset interface, you can the first process chip can be achieved
Connection between 001 and second processing chip 002.
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 (C ode Division Multiple Access, CDMA)/EDGE
Inside communication standards such as (Enhanced Data Rate for G SM 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 used for after the data processing of transmitting the first process chip 001
It is transmitted to eNodeB 101 (base station network), and for being transmitted to the first process chip after the data processing of transmitting eNodeB 101
001.Second radio-frequency module 22 is transmitted to (the base station nets of eNodeB 101 after being used for the data processing of transmitting second processing chip 002
Network), and for being transmitted to second processing chip 002 after the data processing of transmitting eNodeB 101.
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..
The first Subscriber Identity Module 13 and second user identification card 14 in mobile terminal 1 00 store different channel radio beacons
The associated user profile of standard.It should be appreciated that current mobile terminal only has two users inside a set of radio frequency, mobile terminal
Identification card can not be taken simultaneously using the relation that the set radio frequency is time-sharing multiplex.For example, in two Subscriber Identity Module standard-sized sheets
When, a card can handle GSM calls, and another card can only handle the 4G network informations, and what which specific Subscriber Identity Module performs
Network is planted, is not limited.Therefore current this framework of radio frequency double card time-sharing multiplex has only accomplished LTE+GSM (i.e. one user
The corresponding technical standard of identification card 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 the first process chip 001 and second processing chip 002 by preset interface, because second processing chip 002 includes the
Two modems 21 simultaneously connect the second radio-frequency module 22, and the second radio-frequency module 22 supports 4G networks.Therefore, mobile terminal
100 can possess double LTE functions by the first process chip 001 and second processing chip 002.
In the present embodiment, the first Subscriber Identity Module 13 and second user identification card 14 are used to provide mobile communication business
Related data needed for (CS speech businesses, PS data services and PS speech businesses), and in its storage inside user profile, short disappear
Breath, execution authentication arithmetic and generation cryptographic keys etc..
When Subscriber Identity Module (the first Subscriber Identity Module 13 and second user identification card 14) is interacted with mobile terminal 1 00, move
Dynamic terminal 100 detects that the signal of the Subscriber Identity Module presence or absence is only instantaneously produced in start, knows when start can't detect user
Not Ka in the presence of, mobile terminal 1 00 will be prompted to " insertion Subscriber Identity Module ".After mobile terminal 1 00 is started shooting, mobile terminal 1 00
Communication in 28 seconds once, completes the communication check of some fixations (for example, whether Subscriber Identity Module is in place between Subscriber Identity Module
Deng).
In an embodiment of the present invention, the first Subscriber Identity Module 13 and the carrying information of second user identification card 14, and root
Correspondence card parameter is returned according to external world's request, and authentication computing, the first radio-frequency module 12 and the second radio-frequency module are carried out to network
Wireless access technology involved by 22 is LTE.When the first application chip 001 and the second application chip 002 are connected, the first user
Identification card 13 can support LTE by the first modem 11 in mobile terminal 1 00, and second user identification card 14 passes through the
Two modems 21 support LTE;Or, the first Subscriber Identity Module 13 can support LTE by second modem 21, and the
Two Subscriber Identity Modules 14 support LTE by the first modem 11, to realize that mobile terminal 1 00 can support double LTE.
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, the
Two process chips 002 can automatically wake up, but the first process chip 001 needs second processing chip 002 to wake up, to carry out data
Transmission interaction.
In embodiments of the present invention, connected between the first process chip 001 and second processing chip 002 by preset interface
In the case of, wake-up mode can be following three kinds:
1st, should to second by USB interface transmission detection bag when the first application processor 10 receives control signaling data
With processor 20, to wake up the second application processor 20.
2nd, when second modem 21 receives user data, the second application processor 20 is waken up, by the second application
Device 20 is managed by USB interface transmission detection bag to the first application processor 10, 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 processor by USB interface by the second application processor 20
10, 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.
In embodiments of the present invention, mobile terminal includes but is not limited to mobile phone, PC (Personal Computer, personal electricity
Brain) or PAD (Personal Digital Assistant, personal digital assistant).
It should be noted that when the packet of transmission is user data or control signaling data, user data or control letter
Data are made to be transmitted between application processor;When the packet of transmission is SIM card data for Subscriber Identity Module data, SIM card
Data can only be transmitted between modems;Due to the embodiment of the present invention mainly for telecommunications card be SIM card transmission data lead
Cause the situation of terminal crash, therefore the packet that packet in the present embodiment is mainly transmitted between modems.
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 in mobile terminal 1 00
When one Subscriber Identity Module 13 and second user identification card 14 are all mobile card or UNICOM's card, due to mobile card either UNICOM
Ka Shoufashuojubao data capacity is less than 512 bytes, therefore, and the first modem 11 receives that packet obtains please
When asking, the packet got from the first Subscriber Identity Module 13 and second user identification card 14 is also less than 512 bytes, accordingly
, the packet stored to buffer is also less than 512 bytes, therefore, the storage that packet can be complete into buffer,
Subsequently, second modem 21 can also take out a complete packet.
But, because telecommunications card is generally higher than 512 bytes, therefore, in the first modem 11 and the second modulation /demodulation
In the data exchange process of device 21, if what is connected in the first modem 11 is telecommunications card, it may appear that such situation:
It is mobile whole in the case where the first Subscriber Identity Module 13 and second user identification card 14 are telecommunications card by taking Fig. 2 as an example
End 100 the first modem 11 is from the first Subscriber Identity Module 13 or second user identification card 14 extracts a data
Bag, because the packet is more than 512 bytes, and buffer can only disposably cache the packet no more than 512 bytes, this feelings
, can be due to big data bag can not be forwarded to cause the system in case of system halt of mobile terminal under condition.
What the Organization Chart based on above-mentioned LTE network, the hardware architecture diagram of mobile terminal 1 00 and prior art were present
Problem, proposes each embodiment of the present invention.
Reference picture 2, the present embodiment proposes a kind of mobile terminal, and the mobile terminal includes the connected based on preset interface
One process chip 001 and second processing chip 002, the first radio-frequency module 12 being connected with first process chip 001 and
The second radio-frequency module 22 being connected with the second processing chip 002, first process chip 001 includes the first application processing
Device 10 and the first modem 11 being connected with the first Subscriber Identity Module 13 and second user identification card 14, at described second
Managing chip 002 includes the second application processor 20 and second modem 21;
First modem 11, for receiving the packet acquisition that the device of the second modulation /demodulation 21 is sent by preset interface
During request, the packet is extracted from the first Subscriber Identity Module 13 or second user identification card 14 and obtains the corresponding data of request
Bag;
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 second modem 21 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 modem 11 receives second modem 21 by preset interface and sent
Packet obtain request, be also subsequently that packet is fed back to by the second modem 21 by the preset interface.
The preset interface is UART 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, first pass through UART and send packet acquisition request the first of the first process chip 001 to
Modem 11;First modem 11 receives the packet and obtained after request, and request is obtained from the according to packet
Packet is obtained in one Subscriber Identity Module 13 or second user identification card 14;First modem 11 get packet it
Afterwards, in order to ensure that the packet of transmission is not more than UART buffer capability value, first the packet of acquisition is split,
Each subdata bag after being split, in order to prevent the packet subsequently forwarded imperfect, 11 pairs of the modem is same
Each subdata bag after one packet is split adds identical identification information;Again by each subnumber added with identification information
According to bag caching into UART buffer, to be sent to second modem 21;Second modem 21 is from buffer
Each subdata bag is extracted, the combination of subdata bag is carried out according still further to identical identification information, to obtain complete packet,
The packet of combination is uploaded to base station eventually through the second radio-frequency module 22, to complete the transmission of packet.
Specifically, first modem 11, is additionally operable to the first Subscriber Identity Module 13 or second user identification card
Chip operating system in 14 sends packet and obtains request, by the chip operating system in the first Subscriber Identity Module 13 or the
The packet is extracted in file storage module in two Subscriber Identity Modules 14 and obtains the corresponding packet of request, and feeds back to institute
State the first modem 11;Receive the packet of the chip operating system feedback.
In the present embodiment, it is necessary to illustrate, the data in the first Subscriber Identity Module 13 or second user identification card 14
Bag is stored in file storage module, when the first modem 11 will obtain the first Subscriber Identity Module 13 or second user identification
Card 14 in packet when, the first modem 11 will not directly with the first Subscriber Identity Module 13 or second user identification card 14
In file storage module interaction, but first COS (Chip into the first Subscriber Identity Module 13 or second user identification card 14
Operating System, chip operating system) operating system send packet obtain request be Request, then first use
The COS operating systems of family identification card 13 or second user identification card 14 obtain number based on the Request in file storage module
According to bag, the packet of acquisition is then transmitted further to the first modem 11, as long as the first modem 11 receives COS behaviour
The acquisition process of packet can be achieved in the packet for making system feedback.
It is appreciated that because the first modem 11 can not be in the first Subscriber Identity Module 13 or second user identification card 14
In file storage module directly extract packet, therefore by with the first Subscriber Identity Module 13 or second user identification card 14
COS operating systems are interacted, to realize the extraction of packet, it is ensured that the transmitting procedure that follow-up data are protected normally is run.
When the first modem 11 extracts packet from the first Subscriber Identity Module 13 or second user identification card 14
After the corresponding packet of acquisition request, then the packet of extraction is split, in the present embodiment, first modulation /demodulation
The mode that device 11 is split to packet, is chosen as:Packet is parsed, to obtain the corresponding data of packet, so
Data are decomposed according to preset capacity value afterwards, data are split into the data segment of multiple preset capacity values, then will
Each data segment after fractionation carries out package operation, to obtain each subdata bag.Wherein, the preset capacity value may be configured as
512 bytes, in other embodiments, may be alternatively provided as other values, as long as ensureing that the capability value of each follow-up subdata bag is less than
512 bytes, are not limited herein.
First modem 11 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 UART buffer, so that second modem 21 extracts each subdata bag from the buffer, and according to identical
Identification information carry out subdata bag combination, to complete the transmission of packet.
It should be noted that buffer is present in the two ends point of the two ends of UART interface, i.e. UART interface in the present embodiment
Buffer1 and buffer2 are not provided with it.When second modem 21 by the second radio-frequency module 22 receive base station send
During data acquisition request, packet is obtained into request the first modem 11, the first modulatedemodulate are sent to by UART interface
Adjust device 11 after the first Subscriber Identity Module 13 or second user identification card 14 extract packet, first deposit the packet of extraction
Store up in buffer1, to be transmitted by UART into the buffer2 of second modem 21, second modem 21 is again
Packet is obtained from buffer2.
The mobile terminal that the present embodiment is proposed, the first modem receives second modem by preset interface and sent out
When the packet sent obtains request, the packet acquisition is first extracted from the first Subscriber Identity Module or second user identification card please
Corresponding packet is sought, then the packet of extraction is split, and to each subdata after the fractionation of same packet
Bag addition identical identification information, most each subdata bag added with identification information is cached to the preset interface at last
In buffer, so that second modem extracts each subdata bag from the buffer, and letter is identified according to identical
Breath carries out the combination of subdata bag, to complete the transmission of packet.This programme is in transmission packet, first to data waiting for transmission
Bag is split, then will be transmitted after each subdata bag addition identical identification information after fractionation so that the number of transmission
Reduce according to the capability value of bag, follow-up opposite end is recombinated after receiving each subdata bag according to identical identification information
, it is to avoid the situation that mobile terminal crashes in data transmission procedure.
Further, mobile terminal second embodiment of the present invention is proposed based on first embodiment.
The difference of mobile terminal second embodiment and mobile terminal first embodiment is,
First modem 11, is additionally operable to determine the capability value of packet;It is more than in the capability value for having packet
During predetermined threshold value, the packet is split, each subdata bag is obtained;Add in each corresponding packet header of subdata bag
Plus identical identification information.
In the present embodiment, request is obtained when second modem 21 sends packet to the first modem 11
(Request) when, if the first Subscriber Identity Module 13 or second user identification card 14 are telecommunications card, and the first modem 11 from
The packet extracted in first Subscriber Identity Module 13 or the second user identification card 14 is more than predetermined threshold value such as 512 words
Section, first modem 11 can determine that the capability value of packet is more than predetermined threshold value, now because buffer is disposable
The packet no more than 512 bytes can only be cached, therefore the first modem 11 needs first to be torn open the packet of extraction
Point, to split into multiple subdata bags, then the storage of multiple subdata bags is forwarded into buffer again.
In the present embodiment, the packet that the first modem 11 is extracted can be one or more, in the number of extraction
During according to including multiple, first modem 11 can be split to multiple packets simultaneously, or according to each number
Split according to the sequence of extraction of bag.
Specifically, during 11 splitting datagram of the first modem, the bag of first each subdata bag after fractionation
Identical identification information is added in head, when the identification information is preferably the first 11 splitting datagram of modem 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 modem 11 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 modulation
Each subdata bag of flag mark identicals can be sorted out and reassemble into three big data bags by demodulator 21.
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, mobile terminal 3rd embodiment of the present invention is proposed based on first embodiment.
The difference of mobile terminal 3rd embodiment and mobile terminal first embodiment is, includes in the packet of extraction many
When each subdata bag after individual packet, and fractionation corresponds to different identification informations, first modem 11 is also used
In the buffer by each subdata bag of different identification information according to default order buffer to 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 modem 11 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 modem 11
Bag is added with after identification information, you can cache the subdata bag into the buffer of UART 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 modem 11 can be by each subdata of different identification information
Bag is cached into the buffer of the UART interface successively according to the genesis sequence of subdata bag.Subsequently, second modulatedemodulate
Adjust device 21 to be extracted from the buffer after each subdata bag, the combination of subdata bag is carried out according to identical identification information
Mode is:Second modem 21 extracts each subdata bag from buffer, and each subdata bag of extraction is stored
To pre-set space, after the completion of then each subdata bag in buffer is extracted, each subdata bag of extraction is recognized successively
Identification information, identification information identical subdata is included into a big data bag.
To be best understood from the present embodiment, it is exemplified below:
When first modem 11 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 second modem 21 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 to UART
In the buffer of interface, 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, first modulation
Demodulator, is additionally operable to each subdata bag of same identification information being classified as a class;According to the order of classification, successively by same class
Each subdata bag cache 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, each subdata bag of same identification information first can be classified as one by first modem 11
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 modem 11 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 modem, 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, the second modem 21 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 modem 21 extracts subdata from buffer
Bag, recognizes the identification information of subdata bag successively, believes in the mark for recognizing new subdata bag and a upper sub- packet
Simultaneously, the subdata bag and a upper sub- packet that this is currently recognized are classified as a class to manner of breathing, and continue to recognize next subnumber
According to bag, when the subdata bag recognized that goes directly is different from the identification information of a upper sub- packet, identification information is identical by before
Each subdata include into a big data bag.
To be best understood from the present embodiment, it is exemplified below:
When first modem 11 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 UART's
In buffer.Subsequently, after the second modem 21 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, 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 modem 11 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, second modem 21 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 3, Fig. 3 is the schematic flow sheet of data pack transmission method first embodiment of the present invention.
The present embodiment proposes a kind of packet identifying 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 mobile terminal, and the mobile terminal includes connecting based on preset interface
The first process chip 001 and second processing chip 002 that connect, the first radio-frequency module being connected with first process chip 001
12 and the second radio-frequency module 22 for being connected with the second processing chip 002, first process chip 001 includes first
Application processor 10 and the first modem 11 being connected with the first Subscriber Identity Module 13 and second user identification card 14, institute
Stating second processing chip 002 includes the second application processor 20 and second modem 21, and methods described includes:
Step S10, the first modem receives the packet acquisition that second modem is sent by preset interface
During request, the packet is extracted from the first Subscriber Identity Module or second user identification 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 to the extra buffer of the preset interface
In buffer, so that second modem extracts each subdata bag from the buffer, and letter is identified according to identical
Breath carries out the combination of subdata bag.
In the present embodiment, first modem 11 receives second modem 21 by preset interface and sent
Packet obtain request, be also subsequently that packet is fed back to by the second modem 21 by the preset interface.
The preset interface is UART 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, first pass through UART and send packet acquisition request the first of the first process chip 001 to
Modem 11;First modem 11 receives the packet and obtained after request, and request is obtained from the according to packet
Packet is obtained in one Subscriber Identity Module 13 or second user identification card 14;First modem 11 get packet it
Afterwards, in order to ensure that the packet of transmission is not more than UART buffer capability value, first the packet of acquisition is split,
Each subdata bag after being split, in order to prevent the packet subsequently forwarded imperfect, 11 pairs of the modem is same
Each subdata bag after one packet is split adds identical identification information;Again by each subnumber added with identification information
According to bag caching into UART buffer, to be sent to second modem 21;Second modem 21 is from buffer
Each subdata bag is extracted, the combination of subdata bag is carried out according still further to identical identification information, to obtain complete packet,
The packet of combination is uploaded to base station eventually through the second radio-frequency module 22, to complete the transmission of packet.
Specifically, reference picture 4, the step S10 includes:
Step S11, first modem is grasped in the piece into the first Subscriber Identity Module or second user identification card
Make system and send packet acquisition request, by the chip operating system in the first Subscriber Identity Module or second user identification card
File storage module in extract the packet and obtain the corresponding packet of request, and feed back to first modulation /demodulation
Device;
Step S12, first modem receives the packet of the chip operating system feedback.
In the present embodiment, it is necessary to illustrate, the data in the first Subscriber Identity Module 13 or second user identification card 14
Bag is stored in file storage module, when the first modem 11 will obtain the first Subscriber Identity Module 13 or second user identification
Card 14 in packet when, the first modem 11 will not directly with the first Subscriber Identity Module 13 or second user identification card 14
In file storage module interaction, but first COS (Chip into the first Subscriber Identity Module 13 or second user identification card 14
Operating System, chip operating system) operating system send packet obtain request be Request, then first use
The COS operating systems of family identification card 13 or second user identification card 14 obtain number based on the Request in file storage module
According to bag, the packet of acquisition is then transmitted further to the first modem 11, as long as the first modem 11 receives COS behaviour
The acquisition process of packet can be achieved in the packet for making system feedback.
It is appreciated that because the first modem 11 can not be in the first Subscriber Identity Module 13 or second user identification card 14
In file storage module directly extract packet, therefore by with the first Subscriber Identity Module 13 or second user identification card 14
COS operating systems are interacted, to realize the extraction of packet, it is ensured that the transmitting procedure that follow-up data are protected normally is run.
When the first modem 11 extracts packet from the first Subscriber Identity Module 13 or second user identification card 14
After the corresponding packet of acquisition request, then the packet of extraction is split, in the present embodiment, first modulation /demodulation
The mode that device 11 is split to packet, is chosen as:Packet is parsed, to obtain the corresponding data of packet, so
Data are decomposed according to preset capacity value afterwards, data are split into the data segment of multiple preset capacity values, then will
Each data segment after fractionation carries out package operation, to obtain each subdata bag.Wherein, the preset capacity value may be configured as
512 bytes, in other embodiments, may be alternatively provided as other values, as long as ensureing that the capability value of each follow-up subdata bag is less than
512 bytes, are not limited herein.
First modem 11 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 UART buffer, so that second modem 21 extracts each subdata bag from the buffer, and according to identical
Identification information carry out subdata bag combination, to complete the transmission of packet.
It should be noted that buffer is present in the two ends point of the two ends of UART interface, i.e. UART interface in the present embodiment
Buffer1 and buffer2 are not provided with it.When second modem 21 by the second radio-frequency module 22 receive base station send
During data acquisition request, packet is obtained into request the first modem 11, the first modulatedemodulate are sent to by UART interface
Adjust device 11 after the first Subscriber Identity Module 13 or second user identification card 14 extract packet, first deposit the packet of extraction
Store up in buffer1, to be transmitted by UART into the buffer2 of second modem 21, second modem 21 is again
Packet is obtained from buffer2.
The data pack transmission method that the present embodiment is proposed, the first modem receives the second modulatedemodulate by preset interface
When the packet for adjusting device to send obtains request, first the packet is extracted from the first Subscriber Identity Module or second user identification card
The corresponding packet of request is obtained, then the packet of extraction is split, and to each after the fractionation of same packet
Subdata bag adds identical identification information, and most each subdata bag added with identification information is cached to described and default connect at last
In the buffer of mouth, so that second modem extracts each subdata bag from the buffer, and according to identical mark
The combination that information carries out subdata bag is known, to complete the transmission of packet.This programme is in transmission packet, first to waiting for transmission
Packet is split, then will be transmitted after each subdata bag addition identical identification information after fractionation so that transmission
The capability value of packet reduced, follow-up opposite end is carried out after receiving each subdata bag according to identical identification information
Restructuring, it is to avoid the situation that mobile terminal crashes in data transmission 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
S20 includes:
Step a, first modem 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 second modem 21 sends packet to the first modem 11
(Request) when, if the first Subscriber Identity Module 13 or second user identification card 14 are telecommunications card, and the first modem 11 from
The packet extracted in first Subscriber Identity Module 13 or the second user identification card 14 is more than predetermined threshold value such as 512 words
Section, first modem 11 can determine that the capability value of packet is more than predetermined threshold value, now because buffer is disposable
The packet no more than 512 bytes can only be cached, therefore the first modem 11 needs first to be torn open the packet of extraction
Point, to split into multiple subdata bags, then the storage of multiple subdata bags is forwarded into buffer again.
In the present embodiment, the packet that the first modem 11 is extracted can be one or more, in the number of extraction
During according to including multiple, first modem 11 can be split to multiple packets simultaneously, or according to each number
Split according to the sequence of extraction of bag.
Specifically, during 11 splitting datagram of the first modem, the bag of first each subdata bag after fractionation
Identical identification information is added in head, when the identification information is preferably the first 11 splitting datagram of modem 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 modem 11 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 modulation
Each subdata bag of flag mark identicals can be sorted out and reassemble into three big data bags by demodulator 21.
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 modem 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 modem 11 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 modem 11
Bag is added with after identification information, you can cache the subdata bag into the buffer of UART 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 modem 11 can be by each subdata of different identification information
Bag is cached into the buffer of the UART interface successively according to the genesis sequence of subdata bag.Subsequently, second modulatedemodulate
Adjust device 21 to be extracted from the buffer after each subdata bag, the combination of subdata bag is carried out according to identical identification information
Mode is:Second modem 21 extracts each subdata bag from buffer, and each subdata bag of extraction is stored
To pre-set space, after the completion of then each subdata bag in buffer is extracted, each subdata bag of extraction is recognized successively
Identification information, identification information identical subdata is included into a big data bag.
To be best understood from the present embodiment, it is exemplified below:
When first modem 11 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 second modem 21 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 to UART
In the buffer of interface, 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 is also
Including:
Each subdata bag of same identification information is classified as a class by first modem;
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 modem 11
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 modem 11 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 modem 11, 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, the second modem 21 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 modem 21 extracts subdata from buffer
Bag, recognizes the identification information of subdata bag successively, believes in the mark for recognizing new subdata bag and a upper sub- packet
Simultaneously, the subdata bag and a upper sub- packet that this is currently recognized are classified as a class to manner of breathing, and continue to recognize next subnumber
According to bag, when the subdata bag recognized that goes directly is different from the identification information of a upper sub- packet, identification information is identical by before
Each subdata include into a big data bag.
To be best understood from the present embodiment, it is exemplified below:
When first modem 11 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 UART's
In buffer.Subsequently, after the second modem 21 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, 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 modem 11 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, second modem 21 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 mobile terminal, it is characterised in that the mobile terminal includes the first process chip connected based on preset interface
The first radio-frequency module for being connected with second processing chip, with first process chip and connect with the second processing chip
The second radio-frequency module connect, first process chip include the first application processor and with the first Subscriber Identity Module and second
First modem of Subscriber Identity Module connection, the second processing chip includes the second application processor and the second modulatedemodulate
Adjust device;
First modem, during for receiving the packet acquisition request that second modem is sent by preset interface,
The packet is extracted from the first Subscriber Identity Module or second user identification 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 modem extracts each subdata bag from the buffer, and carries out subdata bag according to identical identification information
Combination.
2. mobile terminal as claimed in claim 1, it is characterised in that first modem, is additionally operable to use to first
Chip operating system in family identification card or second user identification card sends packet and obtains request, by the chip operating system
The packet is extracted in file storage module in the first Subscriber Identity Module or second user identification card and obtains request correspondence
Packet, and feed back to first modem;Receive the packet of the chip operating system feedback.
3. mobile terminal as claimed in claim 1 or 2, it is characterised in that first modem, is additionally operable to determine number
According to the capability value of bag;When the capability value for having packet is more than predetermined threshold value, the packet is split, each height is obtained
Packet;Identical identification information is added in each corresponding packet header of subdata bag.
4. mobile terminal as claimed in claim 3, it is characterised in that include multiple packets in the packet of extraction, and tear open
When each subdata bag after point corresponds to different identification informations, first modem is additionally operable to believe different identification
In buffer of each subdata bag of breath according to default order buffer to the preset interface.
5. mobile terminal as claimed in claim 3, it is characterised in that include multiple packets in the packet of extraction, and tear open
When each subdata bag after point corresponds to different identification informations, first modem is additionally operable to believe like-identified
Each subdata bag of breath is classified as a class;According to the order of classification, each of a sort subdata bag is cached to described successively
In the buffer of preset interface.
6. a kind of data pack transmission method, it is characterised in that applied to mobile terminal, the mobile terminal includes connecing based on default
The first process chip and second processing chip of mouthful connection, the first radio-frequency module for being connected with first process chip and
The second radio-frequency module being connected with the second processing chip, first process chip include the first application processor and with
First Subscriber Identity Module and the first modem of second user identification card connection, the second processing chip includes second should
With processor and second modem, methods described includes:
When first modem receives the packet acquisition request that second modem is sent by preset interface, from first
The packet is extracted in Subscriber Identity Module or second user identification 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 modem 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 to be used from the first Subscriber Identity Module or second
The step of packet obtains request corresponding packet is extracted in the identification card of family to be included:
Chip operating system of first modem into the first Subscriber Identity Module or second user identification card sends number
Request is obtained according to bag, mould is stored by file of the chip operating system in the first Subscriber Identity Module or second user identification card
The packet is extracted in block and obtains the corresponding packet of request, and feeds back to first modem;
First modem receives the packet of the chip operating system feedback.
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 modem 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 modem 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 modem;
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 |
---|---|---|---|
CN201710395820.9A CN107231659A (en) | 2017-05-27 | 2017-05-27 | Mobile terminal and data pack transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710395820.9A CN107231659A (en) | 2017-05-27 | 2017-05-27 | Mobile terminal and data pack transmission method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107231659A true CN107231659A (en) | 2017-10-03 |
Family
ID=59933539
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710395820.9A Withdrawn CN107231659A (en) | 2017-05-27 | 2017-05-27 | Mobile terminal and data pack transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107231659A (en) |
-
2017
- 2017-05-27 CN CN201710395820.9A patent/CN107231659A/en not_active Withdrawn
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 | |
CN107124738A (en) | Mobile terminal and data pack transmission method | |
CN107094152A (en) | Data packet transmission system and method | |
CN107071832A (en) | Data packet transmission system and method | |
CN107094308A (en) | Data packet transmission system and method | |
CN107182084A (en) | Mobile terminal and data pack transmission method | |
CN107182087A (en) | Data packet transmission system and method | |
CN107247679A (en) | Data transmission system and method | |
CN107231659A (en) | Mobile terminal and data pack transmission 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 | |
CN107205053A (en) | Data packet transmission system and method | |
CN107396399A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107277174A (en) | Data packet transmission system and method | |
CN107148052A (en) | Mobile terminal and its data transmission method | |
CN106953984A (en) | Data transmission system and method | |
CN107371150A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107318131A (en) | Data transmission system, method, external equipment and mobile terminal | |
CN107332929A (en) | Data packet transmission system and method | |
CN107071167A (en) | Mobile terminal and packet identifying method | |
CN107370819A (en) | Data packet transmission system and method | |
CN107395605A (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 |
Application publication date: 20171003 |
|
WW01 | Invention patent application withdrawn after publication |