CN107277797A - Mobile terminal and its data transmission method - Google Patents

Mobile terminal and its data transmission method Download PDF

Info

Publication number
CN107277797A
CN107277797A CN201710397050.1A CN201710397050A CN107277797A CN 107277797 A CN107277797 A CN 107277797A CN 201710397050 A CN201710397050 A CN 201710397050A CN 107277797 A CN107277797 A CN 107277797A
Authority
CN
China
Prior art keywords
data
modem
extra buffer
transmitted bag
capability value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201710397050.1A
Other languages
Chinese (zh)
Inventor
车晓东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710397050.1A priority Critical patent/CN107277797A/en
Publication of CN107277797A publication Critical patent/CN107277797A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The invention discloses a kind of mobile terminal and its data transmission method, the first process chip in mobile terminal includes the first extra buffer and the first modem, second processing chip includes the second extra buffer and second modem, first modem is connected by UART with second modem, and the capability value of the first extra buffer and the second extra buffer is synchronous change;Second modem caches acquired data to be transmitted bag into the second extra buffer, and data to be transmitted bag is obtained from the first extra buffer for the first modem;The capability value of first extra buffer and the second extra buffer is equal to default capability value and increment value sum, and default capability value is more than or equal to the size of data to be transmitted bag with increment value sum.The present invention is solved during mobile terminal realizes double LTE communications, between two process chips during transmitting telecommunication card data, the problem of mobile terminal easily deadlock occurs.

Description

Mobile terminal and its data transmission method
Technical field
The present invention relates to communication technical field, more particularly to a kind of mobile terminal and its data 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 4G (the 4th Generation Mobile Communication can be used by opening Subscriber Identity Module (SIM1) 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 two SIM cards in mobile terminal support double LTE simultaneously, to improve data transmission efficiency, moving Two process chips are provided with dynamic terminal, each process chip has corresponding modem, so that the two of mobile terminal SIM card can correspond to different modems, so as to realize double LTE communication functions.But movement is found in use Two process chips of terminal are in transmission data procedures, it may appear that the problem of mobile terminal crashes.
The content of the invention
It is a primary object of the present invention to propose a kind of mobile terminal and its data transmission method, it is intended to solve mobile whole Realize during double LTE communications that between two process chips of mobile terminal during transmitting telecommunication card data, mobile terminal easily goes out in end The technical problem now crashed.
To achieve the above object, a kind of mobile terminal that the present invention is provided, the mobile terminal includes the first process chip With second processing chip, first process chip includes the first application processor, the first extra buffer and used with first Family identification card and the first modem of second user identification card connection, the second processing chip include the second application processing Device, the second extra buffer and second modem, first application processor by general-purpose serial bus USB with it is described Second application processor is connected, and first modem passes through universal asynchronous receiving-transmitting transmitter UART and the described second modulation Demodulator is connected, wherein, the capability value of first extra buffer and second extra buffer is synchronous change;
The second modem, for when detect send data to be transmitted bag data transfer instruction when, according to The data transfer instruction obtains data to be transmitted bag;
The second modem is additionally operable to cache the data to be transmitted bag into second extra buffer;
First modem, for obtaining the data to be transmitted bag from first extra buffer;
Wherein, the capability value of first extra buffer and second extra buffer is equal to default capability value with increasing Big value sum, and the default capability value is more than or equal to the size of the data to be transmitted bag with the increment value sum.
Alternatively, the second modem is additionally operable to detect the size of the data to be transmitted bag, and judges described Whether the size of data to be transmitted bag is more than the default capability value;
The second modem is additionally operable to when the size of the data to be transmitted bag is more than the default capability value, The difference between the size of the data to be transmitted bag and the default capability value is calculated, the increase is determined according to the difference Value.
Alternatively, the second modem is additionally operable to when the size of the data to be transmitted bag is less than or equal to institute When stating default capability value, the data to be transmitted bag is cached into second extra buffer of default capability value;
First modem is additionally operable to treat described in acquisition from first extra buffer of default capability value Transmission packet.
Alternatively, the second modem is additionally operable to when temporarily first modem is buffered from described first When area gets the data to be transmitted bag, reduce the capability value of second extra buffer to the default capability value.
Alternatively, the second modem is additionally operable to when temporarily first modem is buffered from described first When area gets the data to be transmitted bag, the data to be transmitted bag cached in second extra buffer is deleted.
In addition, to achieve the above object, the present invention also proposes a kind of data transmission method, the data transmission method application In mobile terminal, the mobile terminal includes the first process chip and second processing chip, and first process chip includes the One application processor, the first extra buffer and the first tune being connected with the first Subscriber Identity Module and second user identification card Modulator-demodulator, the second processing chip includes the second application processor, the second extra buffer and second modem, institute State the first application processor to be connected with second application processor by general-purpose serial bus USB, first modulation /demodulation Device is connected by universal asynchronous receiving-transmitting transmitter UART with the second modem, wherein, first extra buffer Capability value with second extra buffer is synchronous change;
When the second modem detects the data transfer instruction for sending data to be transmitted bag, described second adjusts Modulator-demodulator obtains data to be transmitted bag according to the data transfer instruction;
The second modem caches the data to be transmitted bag into second extra buffer, for institute State the first modem and the data to be transmitted bag is obtained from first extra buffer;
Wherein, the capability value of first extra buffer and second extra buffer is equal to default capability value with increasing Big value sum, and the default capability value is more than or equal to the size of the data to be transmitted bag with the increment value sum.
Alternatively, the second modem caches the data to be transmitted bag into second extra buffer The step of before, in addition to:
The second modem detects the size of the data to be transmitted bag, and judges the data to be transmitted bag Whether size is more than the default capability value;
When the size of the data to be transmitted bag is more than the default capability value, the second modem calculates institute The difference between the size of data to be transmitted bag and the default capability value is stated, the increment value is determined according to the difference.
Alternatively, the second modem detects the size of the data to be transmitted bag, and judges described to be transmitted After the step of whether size of packet is more than the default capability value, in addition to:
When the size of the data to be transmitted bag is less than or equal to the default capability value, second modulation /demodulation Device caches the data to be transmitted bag into second extra buffer of default capability value, for first modulatedemodulate Device is adjusted to obtain the data to be transmitted bag from first extra buffer of default capability value.
Alternatively, the second modem caches the data to be transmitted bag to second extra buffer In, the step of obtaining the data to be transmitted bag from first extra buffer for first modem it Afterwards, in addition to:
It is described when first modem gets the data to be transmitted bag from first extra buffer Second modem reduces the capability value of second extra buffer to the default capability value.
Alternatively, the second modem caches the data to be transmitted bag to second extra buffer In, the step of obtaining the data to be transmitted bag from first extra buffer for first modem it Afterwards, in addition to:
It is described when first modem gets the data to be transmitted bag from first extra buffer Second modem deletes the data to be transmitted bag cached in second extra buffer.
The present invention provides a kind of mobile terminal and its data transmission method, and the data transmission method is applied to mobile whole End, the mobile terminal includes the first process chip and second processing chip, and first process chip is included at the first application Device, the first extra buffer and the first modem being connected with the first Subscriber Identity Module and second user identification card are managed, The second processing chip includes the second application processor, the second extra buffer and second modem, and described first should It is connected with processor by general-purpose serial bus USB with second application processor, first modem passes through logical It is connected with asynchronous receiving-transmitting transmitter UART with the second modem, wherein, first extra buffer and described The capability value of two extra buffers is synchronous change;Data to be transmitted bag is sent when the second modem is detected During data transfer instruction, the second modem obtains data to be transmitted bag according to the data transfer instruction;Described Two modems cache the data to be transmitted bag into second extra buffer, for first modulation /demodulation Device obtains the data to be transmitted bag from first extra buffer;Wherein, first extra buffer and described The capability value of two extra buffers is equal to default capability value and increment value sum, and the default capability value and the increment value it With the size more than or equal to the data to be transmitted bag.It is used for data cached interim buffering in mobile terminal by increasing The capability value in area, it is to avoid between two process chips of mobile terminal in transmitting telecommunication card data procedures, due to telecommunications card pair Answer the size of some packets to be more than the capability value of extra buffer, cause the situation that mobile terminal crashes to occur.
Brief description of the drawings
Fig. 1 is the schematic diagram of the LTE network framework of one embodiment of the invention;
Fig. 2 is 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 transmission method first embodiment of the present invention;
Fig. 4 is the schematic flow sheet of data transmission method second embodiment of the present invention;
Fig. 5 is the schematic flow sheet of data transmission method 3rd embodiment of the present invention;
Fig. 6 is the schematic flow sheet of data transmission method fourth embodiment of the present invention.
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.
Describe to realize the mobile terminal of each embodiment of the invention referring now to accompanying drawing.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Fig. 1 is the schematic diagram of the LTE network framework of one embodiment of the invention.The LTE network framework of one embodiment of the invention Including:One or more mobile terminals (user equipment, UE) 100, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, the UMTS Terrestrial radio access network of evolution) (non-label in figure), evolution point Group core (EPC) (non-label in figure), home subscriber servers (HSS) 107, network (for example, internet) (non-label in figure) And circuit switching system (non-label in figure).
E-UTRAN includes evolution B node (eNodeB) 101 and other eNodeB 102.ENodeB 101 is provided towards shifting The user plane of dynamic terminal 100 and the protocol terminations of chain of command.ENodeB 101 can be connected to other eNodeB via X2 interface. ENodeB 101 is alternatively referred to as base station, base transceiver station, radio base station, wireless set, transceiver function, basic service Collection, extended service set or some other suitable terms.ENodeB 101 is that mobile terminal 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 in the embodiment of the present invention.In embodiments of the present invention, it is mobile Terminal 100 includes the first process chip 001, second processing chip 002, the first radio-frequency module 12 and the second radio-frequency module 22, its In, the first process chip 001 and the first radio-frequency module 12 are connected, and the radio-frequency module 22 of second processing chip 002 and second is connected.The One process chip 001 include the first application processor (Application Processor) 10, with the first Subscriber Identity Module 13 and The first modem 11 (modem1) and RPM (Resource Power Manager, money that second user identification card 14 is connected Source current manager) 15, the first modem 11 includes the first extra buffer (buffer1).Second processing chip 002 is wrapped The second application processor 20 and second modem 21 (modem2) are included, second modem 21 includes the second interim buffering Area (buffer2).First Subscriber Identity Module 13 and second user identification card 14 are SIM card.
The inner frame of first application processor 10 and the second application processor 20 includes application layer, ccf layer etc., can locate Manage 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.
First application processor 10 and the second application processor 20 pass through USB (Universal Serial Bus, general string Row bus) connection is realized, interactive interface is provided the user, the operational order that user is inputted is (for example, user passes through user interface The operational order of the relevant startup video calling of input) the first modem 11 or second modem 21 are transferred to, with The definition and transmission of data between two application processors are realized, for example, carrying out the dormancy of two application processors, wake-ups, together Control of chip boot sequence the etc. when control of step, switching on and shutting down.
In an embodiment of the present invention, USB is multiplexed out two data passages, is respectively used to the first application processor 10 and The interaction of user data and signaling data between two application processors 20.That is the first application processor 10 and the second application processor 20 pass through USB transmission user data and signaling data.Wherein, user data includes but is not limited to the data that online is produced, picture With chat message data;Signaling data includes but is not limited to the control data of switching on and shutting down, switchs the control data of offline mode, shows Show the control data of status signal.
Specifically, the first application processor 10 and the second application processor 20 enter line number by OTG (On-The-Go) technology According to interaction.By OTG technologies, the first modem 11 in mobile terminal 1 00 can be by the first Subscriber Identity Module 13 SIM card parameter accesses eNodeB 101, second modem 21 can by the SIM card parameter of second user identification card 14 come Access eNodeB 101;Or first modem 11 accessed by the SIM card parameter in second user identification card 14 ENodeB 101, second modem 21 accesses eNodeB 101 by the SIM card parameter of the first Subscriber Identity Module 13. SIM card parameter includes but is not limited to IMSI (International Mobile Subscriber Identification Number, international mobile subscriber identifier) and KI (Key identifier, KI).
First modem 11 and second modem 21 pass through UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiving-transmitting transmitter) connection.In embodiments of the present invention, UART is used for the first tune The transmission of SIM card parameter between modulator-demodulator 11 and second modem 21.
What UART was connected with the first modem 11 and second modem 21 is provided at both ends with to be passed for caching The extra buffer of transmission of data bag.Specifically, UART and the junction of the first modem 11 are provided with the first extra buffer, UART is provided with the second extra buffer with the junction of second modem 21.When external equipment 200 is data sending terminal, move When dynamic terminal 100 is data receiver, the second extra buffer is output buffer, needs to be sent to first for temporarily storing The packet of modem 11;First extra buffer is input block, for temporarily storing second modem 21 The packet of transmission.When mobile terminal 1 00 is data sending terminal, and external equipment 200 is data receiver, the second interim buffering Area is input block, and the first extra buffer is output buffer.It should be noted that the first extra buffer and second faces When buffering area correspond to same physical address, by the physical address, can control the first extra buffer and second interim slow Rush the synchronous change of area's capability value and state.Because the first extra buffer and the second extra buffer correspond to same physics Address, when second modem 21 caches data to be transmitted bag into the second extra buffer, the first modem 11 can detect the data to be transmitted bag, and data to be transmitted bag is read from the first extra buffer, is treated with getting this Transmission packet.
The protocol stack of the network formats of first modem 11 and second modem 21 comprising various network interactions, Protocol stack includes LTE/WCDMA (Wideband Code Division Multiple Access, WCDMA)/GSM (Global System for Mobile Communication, global system for mobile communications)/TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, synchronous time division CDMA)/CDMA (Code Division Multiple Access, CDMA)/EDGE (Enhanced Data Rate for GSM Evolution, strong type Data for GSM Evolution) etc. protocol code as defined in inside communication standard.Mobile terminal 1 00 is led to Agreement is crossed to interact with carrier network, that is, carry out data traffic online, VOLTE (Voice Over LTE) make a phone call or Make a phone call in CS (Circuit Switched, circuit switching) domain.First modem 11 and second modem 21 are also used In management and control to SIM card etc..
First radio-frequency module 12 is transmitted to the (bases of eNodeB 101 after being used for the data processing of transmitting the first process chip 001 Stand network), and for being transmitted to the first process chip 001 after the data processing of transmitting eNodeB 101.Second radio-frequency module 22 are used to after the data processing of transmitting second processing chip 002 being transmitted to eNodeB 101 (base station network), and for will Second processing chip 002 is transmitted to after the data processing that eNodeB 101 is transmitted.
Wireless access technology involved by first radio-frequency module 12 and the second radio-frequency module 22 can include LTE, GSM, GPRS (General Packet Radio Service, general packet radio service), CDMA, EDGE, WLAN (Wireless Local Area Networks, WLAN), CDMA-2000, TD-SCDMA, WCDMA, WIFI (Wireless Fidelity, Wireless Fidelity) etc..
First Subscriber Identity Module 13 is connected with the modem 11 of second user identification card 14 and first.First user's identification Card 13 and second user identification card 14 can carrying information, and corresponding card parameter is returned to according to external world's request, and network is entered Row authentication computing.Wherein, the first Subscriber Identity Module 13 and second user identification card 14 can be stored and similar and different technical bid The associated user profile of standard, for providing mobile communication business (CS speech businesses, PS data services and PS speech businesses) institute The related data needed, and in its storage inside user profile, short message, execution authentication arithmetic and produce cryptographic keys etc..In spy Determine in non-limiting examples, technical standard can be the 2G communication technologys, for example, GSM, EDGE), the 3G communication technologys (for example, WCDMA, TD-SCDMA), the 4G communication technologys (for example, LTE), or any other mobile communication technology (for example, 4G etc.).
It should be noted that mobile terminal 1 00 only has a set of radio-frequency module, when mobile terminal 1 00 has two user's identifications During card, two Subscriber Identity Modules of mobile terminal 1 00 are the relation of time-sharing multiplex using the set radio-frequency module, can not be accounted for simultaneously With.For example, in two Subscriber Identity Module standard-sized sheets, wherein a Subscriber Identity Module only handles GSM calls, and another user knows The 4G network informations Ka not be handled, which specific Subscriber Identity Module performs which kind of network, does not limit herein.Therefore current radio frequency This framework of module double card time-sharing multiplex only accomplished LTE+GSM (the corresponding technical standard of i.e. one Subscriber Identity Module be LTE, The corresponding technical standard of another Subscriber Identity Module is GSM).
Although it is understood that existing mobile terminal 1 00 can support Dual-user identification card, mobile terminal 100 in the case of registered network, and what two Subscriber Identity Modules were supported is the network of different technologies standard, one support 2G or 3G, another support 4G, can cause during the use of mobile terminal 1 00, surfing flow speed is slower.In the embodiment of the present invention In, mobile terminal 1 00 includes the first process chip 001 and second processing chip 002, because second processing chip 002 includes the Two modems 21 and the second radio-frequency module 22, and the second radio-frequency module 22 supports 4G networks.Therefore, mobile terminal 1 00 can Possesses double LTE functions (now the first Subscriber Identity Module 13 and second by the first process chip 001 and second processing chip 002 The technical standard that Subscriber Identity Module 14 is managed is LTE standard, involved by the first radio-frequency module 12 and the second radio-frequency module 22 Wireless access technology is LTE.That is the first modem 11 can support LTE by the first Subscriber Identity Module 13, and second modulates Demodulator 21 can support LTE by second user identification card 14;Or first modem 11 pass through second user identification card 14 support LTE, and second modem 21 supports LTE by the first Subscriber Identity Module 13).
When the second processing chip 002 being connected with the first process chip 001 is not present in mobile terminal 1 00, first uses Technical standard corresponding to family identification card 13 or second user identification card 14 is GSM, for carrying out speech communication, or is passed through First modem 11 supports LTE to be used to carry out data access by 4G networks.
When Subscriber Identity Module is interacted with mobile terminal 1 00, mobile terminal 1 00 detects the letter of the Subscriber Identity Module presence or absence Number only produce start is instantaneous, in the presence of the start of mobile terminal 1 00 can't detect Subscriber Identity Module, in mobile terminal 1 00 " accessing user's identification card " is pointed out in display screen.After mobile terminal 1 00 is started shooting, between mobile terminal 1 00 and Subscriber Identity Module Communication in 28 seconds once, completes the communication check (for example, Subscriber Identity Module whether in place etc.) of some fixations.
RPM15 be 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 the dormancy awakening of managing chip interruption The deadline waken up with application processor.The subsystems of mobile terminal 1 00, when needing resource, apply providing to RPM15 Source, subsystems include the first application processor 10, the first modem 11, PRONTO (WIFI/ bluetooths, NFC respectively (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, and RPM15 is based on subsystems Voting mechanism realize, when subsystems all throw dormancy ticket, RPM15 can just make the whole system of mobile terminal 1 00 carry out Dormancy.And when mobile terminal 1 00 has the ticket of a sub or multiple subsystems throwing opposition dormancy, the whole system of mobile terminal 1 00 All can not dormancy.
In the case of the first process chip 001 and second processing chip 002 the communication connection of mobile terminal 1 00, wake up Mode can be following three kinds:
1st, when the first application processor 10 receives signaling data, by USB send shake hands keyword to second application at Device 20 is managed, to wake up the second application processor 20.
2nd, when second modem 21 receives user data, the second application processor 20 is waken up, by the second application Reason device 20 shakes hands keyword to the first application processor 10 by USB transmission, to wake up the first application processor 10.
3rd, second modem 21 periodically searches paging request, with active activation oneself.If receiving paging request, Second modem 21 then wakes up the second application processor 20, and key of shaking hands is sent by USB by the second application processor 20 Word gives the first application processor 10, to wake up the second application processor 20.
In addition, second modem 21 can be with periodic wakeup oneself, to carry out location updating in mobile terminal 1 00 When, interaction of shaking hands is carried out with base station, the first application processor 10 need not be now waken up.
It should be noted that keyword of shaking hands can use the character mark of fixed word length, it is to be not in normal data packet Field.It such as can use 0xF9F9F9 or 0x9F9F9F to represent keyword of shaking hands, can be waken up in sleep by keyword of shaking hands The first application processor 10 or the second application processor 20 of state.
In 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).
In embodiments of the present invention, the first Subscriber Identity Module 13 and second user identification card 14 can block for mobile card, UNICOM With the one of which in telecommunications card.Wherein, mobile card and UNICOM block the phonecard for referring to be communicated using 3GPP standard agreements, The size that 3GPP standard agreements define phonecard transmission packet can not exceed certain value, generally, and the value is 512 words Section;And telecommunications card refers to the phonecard using 3GPP2 standard agreements, the packet that GPP2 standard agreements are transmitted to telecommunications card it is big It is small not to be limited, therefore the size of the packet of telecommunications card transmission may be more than 512 bytes.
It is to be appreciated that being by transmitting terminal in the first process chip 001 and the data transmission procedure of second processing chip 002 By packet storage into corresponding extra buffer, then receiving terminal extracts packet from corresponding extra buffer again, To realize the interaction of packet.
When the first Subscriber Identity Module 13 and second user identification card 14 in mobile terminal 1 00 are all mobile cards or are joined During logical card, because the size of mobile card or the packet of UNICOM's card is smaller than 512 bytes, and the first extra buffer and The default capability value of second extra buffer is typically all 512 bytes.Therefore, in the first process chip 001 and second processing core (it is receiving terminal with the first process chip 001, second processing chip 002 is progress exemplified by transmitting terminal in the data transmission procedure of piece 002 Illustrate), the packet that second processing chip 002 is stored to the second extra buffer is smaller than 512 bytes, and packet can be with Complete storage is into the second extra buffer.But when the first Subscriber Identity Module 13 and/or second user identification card 14 are electricity Letter card, and the size of the corresponding packet of telecommunications card is when being more than 512 byte, can due to the default capability value of the second extra buffer The data package size transmitted less than the first process chip 001 and second processing chip 002, causes mobile terminal 1 00 to occur extremely The situation of machine.
Existed based on above-mentioned LTE network framework figure, the hardware architecture diagram of mobile terminal 1 00 and prior art Problem, proposes each embodiment of the present invention.
The present embodiment proposes a kind of mobile terminal 1 00, and mobile terminal 1 00 includes the first process chip 001 and second processing Chip 002, the first process chip 001 includes the first application processor 10, the first extra buffer and the first Subscriber Identity Module 13 With second user identification card 14 connect the first modem 11, second processing chip 002 include the second application processor 20, Second extra buffer and second modem 21.
Second modem 21, for when detecting the data transfer instruction for sending data to be transmitted bag, according to number Data to be transmitted bag is obtained according to transmission instruction.
Second modem 21 is additionally operable to cache data to be transmitted bag into the second extra buffer.
First modem 11, for obtaining data to be transmitted bag from the first extra buffer.
Wherein, the capability value of the first extra buffer and the second extra buffer be equal to default capability value and increment value it With and default capability value and increment value sum are more than or equal to the size of data to be transmitted bag, the first extra buffer and the The capability value of two extra buffers is synchronous change.
The present embodiment is transmitting terminal with second processing chip 002, and the first process chip 001 is to be said exemplified by receiving terminal It is bright.It is understood that when the first process chip 001 is transmitting terminal, and second processing chip 002 is receiving terminal, the first processing The principle carried out data transmission between chip 001 and second processing chip 002 is transmitting terminal, first with second processing chip 002 Process chip 001 is consistent for the data transmission principle of receiving terminal, will not be repeated here.
When the data transfer that the second modem 21 of second processing chip 002 detects transmission data to be transmitted bag refers to When making, second modem 21 obtains data to be transmitted bag according to data transfer instruction.Wherein, when second modem 21 ENodeB 101 request of data is received, or second modem 21 needs to obtain and is connected with the first modem 11 The first Subscriber Identity Module 13 or second user identification card 14 data etc. when, second modem 21 will trigger data pass Defeated instruction.Specifically, acquired data to be transmitted bag is sent to the first modulatedemodulate by second modem 21 by UART Adjust device 11.
In embodiments of the present invention, the first extra buffer will take the memory headroom of mobile terminal 1 00, and second is interim slow The memory headroom of external equipment 200 will be taken by rushing area.Such as when the capability value of the second extra buffer is 512 bytes, external equipment During 200 1024 byte of memory headroom, 512 bytes of the second extra buffer need to take in the memory headroom of external equipment 200 512 bytes.
In embodiments of the present invention, the capability value of the first extra buffer and the second extra buffer is equal to default capability value With increment value sum, wherein, default capability value and increment value sum are more than or equal to the size of data to be transmitted bag.Specifically Ground, can call driving corresponding with the second extra buffer to connect when the second application processor 20 detects data transfer instruction Mouthful, increase the capability value of the second extra buffer.It should be noted that due to the second extra buffer and the first extra buffer Same physical address is correspond to, therefore when the second application processor 20 increases the capability value of the second extra buffer, first The capability value of extra buffer also synchronously increases.In the present embodiment, the appearance of the first extra buffer and the second extra buffer After value increase, it is changeless, will not changes again.
First process chip 001 and second processing chip 002 first extra buffer used in data transmission procedure Capacity with the second extra buffer is typically all 512 bytes, therefore, in embodiments of the present invention, the first extra buffer 512 bytes are may be configured as with the default capability value of the second extra buffer.In order to ensure the first process chip 001 and second processing Data to be transmitted bag between chip 002 can whole Successful transmissions, increment value and default capability value sum should be greater than or wait The size of the maximum data to be transmitted bag transmitted in the first process chip 001 and second processing chip 002.Such as when maximum is to be transmitted When the size of packet is 3 kilobytes, increment value and default capability value sum should be greater than or equal to 3 kilobytes.
When second modem 21 gets data to be transmitted bag, second modem 21 is by data to be transmitted bag Caching is into the second extra buffer, so that the first modem 11 obtains data to be transmitted bag from the first extra buffer. When data to be transmitted bag is successfully written in the second extra buffer by second modem 21, the first modem 11 It can be detected from the first extra buffer and get data to be transmitted bag, the first modem 11 is according to acquired to be passed Transmission of data bag obtains corresponding data response data to be transmitted bag from the first Subscriber Identity Module 13 or second user identification card 14, obtains Second modem 21 of the backtracking to second processing chip 002 is pressed to response data packet, and by response data packet.(by Same physical address is correspond in the first extra buffer and the second extra buffer, therefore, when second modem 21 When data to be transmitted bag writes the second extra buffer, the first modem 11 can be detected in the first extra buffer The data to be transmitted bag).
In the first modem 11 according to data to be transmitted bag from the first Subscriber Identity Module 13 or second user identification card 14, which obtain corresponding data, responds in the data to be transmitted packet procedures, and the first modem 11 directly will not be known with the first user Not Ka 13 or second user identification card 14 in file storage module interaction, but first used to the first Subscriber Identity Module 13 or second COS (Chip Operating System, chip operating system) operating system in family identification card 14 sends data acquisition please Ask, then the COS operating systems of the first Subscriber Identity Module 13 or second user identification card 14 are based on the data acquisition request in text Data are obtained in part memory module, then the first modem 11 are given by the data re-transmission of acquisition, to realize number to be transmitted According to the response of bag.
The present embodiment by when second modem 21 detect send data to be transmitted bag data transfer instruction when, Second modem 21 obtains data to be transmitted bag according to data transfer instruction;Second modem 21 is by data to be transmitted Bag caching is into the second extra buffer, so that the first modem 11 obtains data to be transmitted from the first extra buffer Bag;Wherein, the capability value of the first extra buffer and the second extra buffer is equal to default capability value and increment value sum, and silent Recognize the size that capability value is more than or equal to data to be transmitted bag with increment value sum.By increasing the He of the first process chip 001 It is used for the capability value of data cached extra buffer between second processing chip 002, it is to avoid in the He of the first process chip 001 In the transmitting telecommunication card data procedures of second processing chip 002, because some data package sizes of telecommunications card correspondence are more than interim delay The capability value in area is rushed, causes the situation that mobile terminal 1 00 crashes to occur.
Further, it is used for facing for data transfer between the first process chip 001 and second processing chip 002 by increasing When buffering area default capability value, make data to be transmitted bag size be less than or equal to extra buffer capability value, realize During the process chip 001 of second processing chip 002 and first carries out data transmission, when the data to be transmitted bag transmitted Size when being more than the default capability value of extra buffer, it is not necessary to split data to be transmitted bag, can directly transmit one it is complete Data to be transmitted bag, improve data to be transmitted bag efficiency of transmission, simultaneously as data to be transmitted bag need not be split, because This is avoided after data to be transmitted bag is split, split a certain data to be transmitted packet loss, or in data to be transmitted bag In building-up process, the situation of synthesis failure occurs, and improves data to be transmitted bag transmission success rate.
Further, the second embodiment of mobile terminal 1 00 of the present invention is proposed.
The difference of the second embodiment of mobile terminal 1 00 and the first embodiment of mobile terminal 1 00 is, second modem 21 are additionally operable to detect the size of data to be transmitted bag, and judge whether the size of data to be transmitted bag is more than the silent of extra buffer Recognize capability value.
Second modem 21 is additionally operable to, when the size of data to be transmitted bag is more than default capability value, calculate to be transmitted Difference between the size and default capability value of packet, increment value is determined according to difference.
When the first Subscriber Identity Module 13 and/or second user identification card 14 are telecommunications card, second processing chip 002 and the The data to be transmitted bag transmitted between one process chip 001 is not necessarily all greater than 512 bytes, is simply treated in the presence of a few Transmission packet is just greater than 512 bytes.Therefore, if by the capability value of the first extra buffer and the second extra buffer from Default capability value increases to a certain fixed value, does not change the first extra buffer and the second interim buffering in data transmission procedure The capability value in area, then can waste the memory space of the first extra buffer and the second extra buffer.Therefore, when second processing core When the second modem 21 of piece 002 gets data to be transmitted bag, the detection data to be transmitted bag of second modem 21 Size.
Specifically, the parsing of second modem 21 data to be transmitted bag, obtains the packet header of data to be transmitted bag, from packet header The middle size for obtaining data to be transmitted bag.Wherein, data to be transmitted bag is TLV forms, and TLV forms are BER (Basic Encoding Rules, BER Basic Encoding Rules) coding one kind, full name be Type (type), Length (length), Value (value), T fields represent the type of data to be transmitted bag, and L field represents the length of data to be transmitted bag, i.e. data to be transmitted bag Size, V fields are often used for depositing the content of data to be transmitted bag.In second modem 21, by physical layer, (physics is passed Defeated medium) on physical drives layer detection data to be transmitted bag packet header, parsing obtains the size of data to be transmitted bag.
It should be noted that the generating process of data to be transmitted bag is:In second modem 21, when transport layer is obtained When getting the corresponding initial data of data to be transmitted bag, the data packet head of transport layer, the number of transport layer are added for the initial data Include transport layer data type and size of data according to packet header, obtain initial data packets, and output data packet is transmitted to logic answered With layer.After logical multiplexing layer receives initial data packets, it is the data packet head of initialization package addition logical multiplexing layer, patrols Collecting the data packet head of multiplex layer includes the data type and size of data of logical multiplexing layer, obtains data to be transmitted bag, and pass through Call the transmission interface of physical drives layer that data to be transmitted bag is sent into physical layer.It is understood that the second modulation /demodulation The final detected data to be transmitted bag size of device 21 is the size of data in logical multiplexing layer packet header.
When it is determined that data to be transmitted bag size after, second modem 21 judge data to be transmitted bag size whether More than default capability value.When the size of data to be transmitted bag is more than default capability value, second modem 21 calculates acquiescence Difference between capability value and data to be transmitted bag size, and difference according to obtained by calculating determines increment value.Specifically, increase Value can be equal with the difference obtained by calculating, also greater than calculate obtained by difference, such as can by increment value be dimensioned to be more than One byte of the difference.When it is determined that after increment value, second modem 21 increases the second extra buffer according to increment value Capability value so that the capability value of the second extra buffer is equal to increment value and default capability value sum.Meanwhile, the first modulation /demodulation Device 11 calls driving interface corresponding with the first extra buffer, increases the capability value of the first extra buffer according to increment value, So that the capability value of the first extra buffer and the second extra buffer synchronously changes..
Second modem 21 is additionally operable to when the size of data to be transmitted bag is less than or equal to default capability value, will Data to be transmitted bag is cached into the second extra buffer of default capability value.
First modem 11 is additionally operable to from the first extra buffer of default capability value obtain data to be transmitted bag.
When the size of data to be transmitted bag is less than or equal to default capability value, second modem 21 does not change the The capability value of two extra buffers, data to be transmitted bag is directly cached to capability value buffered temporarily for the second of default capability value Qu Zhong, so that the first modem 11 obtains data to be transmitted from the first extra buffer that capability value is default capability value Bag.
By the size according to data to be transmitted bag, dynamically the first extra buffer of adjustment and second delays the present embodiment temporarily Rush the capability value in area, it is ensured that data to be transmitted packet procedures are transmitted between the process chip 001 of second processing chip 002 and first In, it is not necessary to treat the operation bidirectional that transmission packet is split, it is ensured that the first process chip 001 and second processing chip The essence of data channel transparent transmission between 002, it is to avoid secondary splitting and reorganizing brings data to damage in data transmission procedure, keeps away simultaneously Exempting from directly to increase the first extra buffer and the second extra buffer causes the problem of spatial cache is wasted.
Further, the 3rd embodiment of mobile terminal 1 00 of the present invention is proposed.
The difference of the 3rd embodiment of mobile terminal 1 00 and the second embodiment of mobile terminal 1 00 is, second modem 21 are additionally operable to when the first modem 11 gets data to be transmitted bag from the first extra buffer, reduce second temporarily slow The capability value in area is rushed to default capability value.
When the first modem 11 is equal to the first extra buffer of default capability value and increment value sum from capability value Middle when successfully getting data to be transmitted bag, second modem 21 calls driving corresponding with the second extra buffer to connect Mouthful, the capability value of the second extra buffer is decreased to default capability value, i.e., by the capability value of the second extra buffer from equal to Default capability value is decreased to default capability value with increment value sum.When second modem 21 reduces the second extra buffer During capability value to default capability value, the first modem 11 calls driving interface corresponding with the first extra buffer, by The capability value of one extra buffer is decreased to default capability value.
It should be noted that data to be transmitted bag has an end of identification, it can be determined by the end of identification to be passed Whether transmission of data bag is successfully read.After the end of identification of data to be transmitted bag in the first extra buffer is read, show First modem 11 successfully gets data to be transmitted bag.I.e. when the first modem 11 is in the first extra buffer In when reading the end of identification, show that the first modem 11 successfully obtains data to be transmitted bag.Due to first interim The state of buffering area and the second extra buffer is synchronous change, therefore second modem 21 can be according to end of identification quilt The situation of reading determines whether the first modem 11 is successful and data to be transmitted bag got from the first extra buffer, from And decide whether to perform the operation for reducing the capability value of the second extra buffer to default capability value.
The present embodiment is by when the first modem 11 successfully gets data to be transmitted bag, second modem The capability value of second extra buffer is decreased to default capability value by 21 again, not waste extra buffer spatial cache On the basis of, it is ensured that the first process chip 001 and second processing chip 002 in data transmission procedure will not because of transmission data Bag is excessive and causes to occur the problem of deadlock.
Further, the fourth embodiment of mobile terminal 1 00 of the present invention is proposed.
The difference of the fourth embodiment of mobile terminal 1 00 and mobile terminal 1 00 first or two embodiments is, the second modulatedemodulate Adjust device 21 to be additionally operable to when the first modem 11 gets data to be transmitted bag from the first extra buffer, delete second and face When buffering area in the data to be transmitted bag that caches.
When the first modem 11 successfully gets data to be transmitted bag from the first extra buffer, the second modulation Instruction is deleted in the triggering of demodulator 21, and the data to be transmitted bag in the second extra buffer is deleted according to deletion instruction, is faced with saving When buffering area spatial cache, it is ensured that the Successful transmissions of data between the first process chip 001 and second processing chip 002.Can With understanding, when the second application processor 20 deletes the data to be transmitted bag in the second extra buffer, at the first application Reason device 10 can also delete the data to be transmitted bag in the first extra buffer.
The present invention also provides a kind of data transmission method.
Reference picture 3, Fig. 3 is the schematic flow sheet of data transmission method first embodiment of the present invention.
The present embodiment proposes a kind of data transmission method, in the present embodiment there is provided the embodiment of data transmission method, , can be with different from herein it should be noted that, although show logical order in flow charts, but in some cases Order performs shown or described step.
Data transmission method is applied in mobile terminal 1 00, and mobile terminal 1 00 includes the first process chip 001 and second Process chip 002, the first process chip 001 includes the first application processor 10 and the first Subscriber Identity Module 13 and second user The first modem 11 that identification card 14 is connected, second processing chip 002 includes the second application processor 20 and the second modulation Demodulator 21.
Data transmission method includes:
Step S10, when second modem 21 detects the data transfer instruction for sending data to be transmitted bag, second Modem 21 obtains data to be transmitted bag according to data transfer instruction.
Step S20, second modem 21 caches data to be transmitted bag into the second extra buffer, for first Modem 11 obtains data to be transmitted bag from the first extra buffer.
Wherein, the capability value of the first extra buffer and the second extra buffer be equal to default capability value and increment value it With and default capability value and increment value sum are more than or equal to the size of data to be transmitted bag, the first extra buffer and the The capability value of two extra buffers is synchronous change.
The present embodiment is transmitting terminal with second processing chip 002, and the first process chip 001 is to be said exemplified by receiving terminal It is bright.It is understood that when the first process chip 001 is transmitting terminal, and second processing chip 002 is receiving terminal, the first processing The principle carried out data transmission between chip 001 and second processing chip 002 is transmitting terminal, first with second processing chip 002 Process chip 001 is consistent for the data transmission principle of receiving terminal, will not be repeated here.
When the data transfer that the second modem 21 of second processing chip 002 detects transmission data to be transmitted bag refers to When making, second modem 21 obtains data to be transmitted bag according to data transfer instruction.Wherein, when second modem 21 ENodeB 101 request of data is received, or second modem 21 needs to obtain and is connected with the first modem 11 The first Subscriber Identity Module 13 or second user identification card 14 data etc. when, second modem 21 will trigger data pass Defeated instruction.Specifically, acquired data to be transmitted bag is sent to the first modulatedemodulate by second modem 21 by UART Adjust device 11.
In embodiments of the present invention, the first extra buffer will take the memory headroom of mobile terminal 1 00, and second is interim slow The memory headroom of external equipment 200 will be taken by rushing area.Such as when the capability value of the second extra buffer is 512 bytes, external equipment During 200 1024 byte of memory headroom, 512 bytes of the second extra buffer need to take in the memory headroom of external equipment 200 512 bytes.
In embodiments of the present invention, the capability value of the first extra buffer and the second extra buffer is equal to default capability value With increment value sum, wherein, default capability value and increment value sum are more than or equal to the size of data to be transmitted bag.Specifically Ground, can call driving corresponding with the second extra buffer to connect when the second application processor 20 detects data transfer instruction Mouthful, increase the capability value of the second extra buffer.It should be noted that due to the second extra buffer and the first extra buffer Same physical address is correspond to, therefore when the second application processor 20 increases the capability value of the second extra buffer, first The capability value of extra buffer also synchronously increases.In the present embodiment, the appearance of the first extra buffer and the second extra buffer After value increase, it is changeless, will not changes again.
First process chip 001 and second processing chip 002 first extra buffer used in data transmission procedure Capacity with the second extra buffer is typically all 512 bytes, therefore, in embodiments of the present invention, the first extra buffer 512 bytes are may be configured as with the default capability value of the second extra buffer.In order to ensure the first process chip 001 and second processing Data to be transmitted bag between chip 002 can whole Successful transmissions, increment value and default capability value sum should be greater than or wait The size of the maximum data to be transmitted bag transmitted in the first process chip 001 and second processing chip 002.Such as when maximum is to be transmitted When the size of packet is 3 kilobytes, increment value and default capability value sum should be greater than or equal to 3 kilobytes.
When second modem 21 gets data to be transmitted bag, second modem 21 is by data to be transmitted bag Caching is into the second extra buffer, so that the first modem 11 obtains data to be transmitted bag from the first extra buffer. When data to be transmitted bag is successfully written in the second extra buffer by second modem 21, the first modem 11 It can be detected from the first extra buffer and get data to be transmitted bag, the first modem 11 is according to acquired to be passed Transmission of data bag obtains corresponding data response data to be transmitted bag from the first Subscriber Identity Module 13 or second user identification card 14, obtains Second modem 21 of the backtracking to second processing chip 002 is pressed to response data packet, and by response data packet.(by Same physical address is correspond in the first extra buffer and the second extra buffer, therefore, when second modem 21 When data to be transmitted bag writes the second extra buffer, the first modem 11 can be detected in the first extra buffer The data to be transmitted bag).
In the first modem 11 according to data to be transmitted bag from the first Subscriber Identity Module 13 or second user identification card 14, which obtain corresponding data, responds in the data to be transmitted packet procedures, and the first modem 11 directly will not be known with the first user Not Ka 13 or second user identification card 14 in file storage module interaction, but first used to the first Subscriber Identity Module 13 or second COS (Chip Operating System, chip operating system) operating system in family identification card 14 sends data acquisition please Ask, then the COS operating systems of the first Subscriber Identity Module 13 or second user identification card 14 are based on the data acquisition request in text Data are obtained in part memory module, then the first modem 11 are given by the data re-transmission of acquisition, to realize number to be transmitted According to the response of bag.
The present embodiment by when second modem 21 detect send data to be transmitted bag data transfer instruction when, Second modem 21 obtains data to be transmitted bag according to data transfer instruction;Second modem 21 is by data to be transmitted Bag caching is into the second extra buffer, so that the first modem 11 obtains data to be transmitted from the first extra buffer Bag;Wherein, the capability value of the first extra buffer and the second extra buffer is equal to default capability value and increment value sum, and silent Recognize the size that capability value is more than or equal to data to be transmitted bag with increment value sum.By increasing the He of the first process chip 001 It is used for the capability value of data cached extra buffer between second processing chip 002, it is to avoid in the He of the first process chip 001 In the transmitting telecommunication card data procedures of second processing chip 002, because some data package sizes of telecommunications card correspondence are more than interim delay The capability value in area is rushed, causes the situation that mobile terminal 1 00 crashes to occur.
Further, it is used for facing for data transfer between the first process chip 001 and second processing chip 002 by increasing When buffering area default capability value, make data to be transmitted bag size be less than or equal to extra buffer capability value, realize During the process chip 001 of second processing chip 002 and first carries out data transmission, when the data to be transmitted bag transmitted Size when being more than the default capability value of extra buffer, it is not necessary to split data to be transmitted bag, can directly transmit one it is complete Data to be transmitted bag, improve data to be transmitted bag efficiency of transmission, simultaneously as data to be transmitted bag need not be split, because This is avoided after data to be transmitted bag is split, split a certain data to be transmitted packet loss, or in data to be transmitted bag In building-up process, the situation of synthesis failure occurs, and improves data to be transmitted bag transmission success rate.
Further, data transmission method second embodiment of the present invention is proposed.
The difference of data transmission method second embodiment and data transmission method first embodiment is, reference picture 4, data Transmission method also includes:
Step S30, second modem 21 detects the size of data to be transmitted bag, and judges the big of data to be transmitted bag It is small whether to be more than default capability value.
Step S40, when the size of data to be transmitted bag is more than default capability value, second modem 21 calculates to be passed Difference between the size and default capability value of transmission of data bag, increment value is determined according to difference.
When the first Subscriber Identity Module 13 and/or second user identification card 14 are telecommunications card, second processing chip 002 and the The data to be transmitted bag transmitted between one process chip 001 is not necessarily all greater than 512 bytes, is simply treated in the presence of a few Transmission packet is just greater than 512 bytes.Therefore, if by the capability value of the first extra buffer and the second extra buffer from Default capability value increases to a certain fixed value, does not change the first extra buffer and the second interim buffering in data transmission procedure The capability value in area, then can waste the memory space of the first extra buffer and the second extra buffer.Therefore, when second processing core When the second modem 21 of piece 002 gets data to be transmitted bag, the detection data to be transmitted bag of second modem 21 Size.
Specifically, the parsing of second modem 21 data to be transmitted bag, obtains the packet header of data to be transmitted bag, from packet header The middle size for obtaining data to be transmitted bag.Wherein, data to be transmitted bag is TLV forms, and TLV forms are BER (Basic Encoding Rules, BER Basic Encoding Rules) coding one kind, full name be Type (type), Length (length), Value (value), T fields represent the type of data to be transmitted bag, and L field represents the length of data to be transmitted bag, i.e. data to be transmitted bag Size, V fields are often used for depositing the content of data to be transmitted bag.In second modem 21, by physical layer, (physics is passed Defeated medium) on physical drives layer detection data to be transmitted bag packet header, parsing obtains the size of data to be transmitted bag.
It should be noted that the generating process of data to be transmitted bag is:In second modem 21, when transport layer is obtained When getting the corresponding initial data of data to be transmitted bag, the data packet head of transport layer, the number of transport layer are added for the initial data Include transport layer data type and size of data according to packet header, obtain initial data packets, and output data packet is transmitted to logic answered With layer.After logical multiplexing layer receives initial data packets, it is the data packet head of initialization package addition logical multiplexing layer, patrols Collecting the data packet head of multiplex layer includes the data type and size of data of logical multiplexing layer, obtains data to be transmitted bag, and pass through Call the transmission interface of physical drives layer that data to be transmitted bag is sent into physical layer.It is understood that the second modulation /demodulation The final detected data to be transmitted bag size of device 21 is the size of data in logical multiplexing layer packet header.
When it is determined that data to be transmitted bag size after, second modem 21 judge data to be transmitted bag size whether More than default capability value.When the size of data to be transmitted bag is more than default capability value, second modem 21 calculates acquiescence Difference between capability value and data to be transmitted bag size, and difference according to obtained by calculating determines increment value.Specifically, increase Value can be equal with the difference obtained by calculating, also greater than calculate obtained by difference, such as can by increment value be dimensioned to be more than One byte of the difference.When it is determined that after increment value, second modem 21 increases the second extra buffer according to increment value Capability value so that the capability value of the second extra buffer is equal to increment value and default capability value sum.Meanwhile, the first modulation /demodulation Device 11 calls driving interface corresponding with the first extra buffer, increases the capability value of the first extra buffer according to increment value, So that the capability value of the first extra buffer and the second extra buffer synchronously changes.
Step S50, when the size of data to be transmitted bag is less than or equal to default capability value, second modem 21 Data to be transmitted bag is cached into the second extra buffer of default capability value, so that the first modem 11 holds from acquiescence Data to be transmitted bag is obtained in first extra buffer of value.
When the size of data to be transmitted bag is less than or equal to default capability value, second modem 21 does not change the The capability value of two extra buffers, data to be transmitted bag is directly cached to capability value buffered temporarily for the second of default capability value Qu Zhong, so that the first modem 11 obtains data to be transmitted from the first extra buffer that capability value is default capability value Bag.
By the size according to data to be transmitted bag, dynamically the first extra buffer of adjustment and second delays the present embodiment temporarily Rush the capability value in area, it is ensured that data to be transmitted packet procedures are transmitted between the process chip 001 of second processing chip 002 and first In, it is not necessary to treat the operation bidirectional that transmission packet is split, it is ensured that the first process chip 001 and second processing chip The essence of data channel transparent transmission between 002, it is to avoid secondary splitting and reorganizing brings data to damage in data transmission procedure, keeps away simultaneously Exempting from directly to increase the first extra buffer and the second extra buffer causes the problem of spatial cache is wasted.
Further, data transmission method 3rd embodiment of the present invention is proposed.
The difference of data transmission method 3rd embodiment and data transmission method second embodiment is, reference picture 5, data Transmission method also includes:
Step S60, when the first modem 11 gets data to be transmitted bag from the first extra buffer, second adjusts Modulator-demodulator 21 reduces the capability value of the second extra buffer to default capability value.
When the first modem 11 is equal to the first extra buffer of default capability value and increment value sum from capability value Middle when successfully getting data to be transmitted bag, second modem 21 calls driving corresponding with the second extra buffer to connect Mouthful, the capability value of the second extra buffer is decreased to default capability value, i.e., by the capability value of the second extra buffer from equal to Default capability value is decreased to default capability value with increment value sum.When second modem 21 reduces the second extra buffer During capability value to default capability value, the first modem 11 calls driving interface corresponding with the first extra buffer, by The capability value of one extra buffer is decreased to default capability value.
It should be noted that data to be transmitted bag has an end of identification, it can be determined by the end of identification to be passed Whether transmission of data bag is successfully read.After the end of identification of data to be transmitted bag in the first extra buffer is read, show First modem 11 successfully gets data to be transmitted bag.I.e. when the first modem 11 is in the first extra buffer In when reading the end of identification, show that the first modem 11 successfully obtains data to be transmitted bag.Due to first interim The state of buffering area and the second extra buffer is synchronous change, therefore second modem 21 can be according to end of identification quilt The situation of reading determines whether the first modem 11 is successful and data to be transmitted bag got from the first extra buffer, from And decide whether to perform the operation for reducing the capability value of the second extra buffer to default capability value.
The present embodiment is by when the first modem 11 successfully gets data to be transmitted bag, second modem The capability value of second extra buffer is decreased to default capability value by 21 again, not waste extra buffer spatial cache On the basis of, it is ensured that the first process chip 001 and second processing chip 002 in data transmission procedure will not because of transmission data Bag is excessive and causes to occur the problem of deadlock.
Further, data transmission method fourth embodiment of the present invention is proposed.
The difference of data transmission method fourth embodiment and data transmission method first or second embodiments is, reference picture 6, data transmission method also includes:
Step S70, when the first modem 11 gets data to be transmitted bag from the first extra buffer, second adjusts Modulator-demodulator 21 deletes the data to be transmitted bag cached in the second extra buffer.
When the first modem 11 successfully gets data to be transmitted bag from the first extra buffer, the second modulation Instruction is deleted in the triggering of demodulator 21, and the data to be transmitted bag in the second extra buffer is deleted according to deletion instruction, is faced with saving When buffering area spatial cache, it is ensured that the Successful transmissions of data between the first process chip 001 and second processing chip 002.Can With understanding, when the second application processor 20 deletes the data to be transmitted bag in the second extra buffer, at the first application Reason device 10 can also delete the data to be transmitted bag in the first extra buffer.
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.) method that performs 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 and second processing chip, described First process chip include the first application processor, the first extra buffer and with the first Subscriber Identity Module and second user First modem of identification card connection, the second processing chip includes the second application processor, the second extra buffer And second modem, first application processor passes through general-purpose serial bus USB and second application processor and connects Connect, first modem is connected by universal asynchronous receiving-transmitting transmitter UART with the second modem, wherein, The capability value of first extra buffer and second extra buffer is synchronous change;
The second modem, for when detecting the data transfer instruction for sending data to be transmitted bag, according to described Data transfer instruction obtains data to be transmitted bag;
The second modem is additionally operable to cache the data to be transmitted bag into second extra buffer;
First modem, for obtaining the data to be transmitted bag from first extra buffer;
Wherein, the capability value of first extra buffer and second extra buffer is equal to default capability value and increment value Sum, and the default capability value is more than or equal to the size of the data to be transmitted bag with the increment value sum.
2. mobile terminal as claimed in claim 1, it is characterised in that the second modem is additionally operable to treat described in detection The size of transmission packet, and judge whether the size of the data to be transmitted bag is more than the default capability value;
The second modem is additionally operable to, when the size of the data to be transmitted bag is more than the default capability value, calculate Difference between the size of the data to be transmitted bag and the default capability value, the increment value is determined according to the difference.
3. mobile terminal as claimed in claim 2, it is characterised in that the second modem is additionally operable to when described to be passed When the size of transmission of data bag is less than or equal to the default capability value, the data to be transmitted bag is cached to default capability value Second extra buffer in;
First modem is additionally operable to obtain described to be transmitted from first extra buffer of default capability value Packet.
4. mobile terminal as claimed in claim 2, it is characterised in that the second modem is additionally operable to work as described first Modem from first extra buffer get the data to be transmitted bag when, reduce second extra buffer Capability value to the default capability value.
5. the mobile terminal as described in any one of claims 1 to 3, it is characterised in that the second modem is additionally operable to When first modem gets the data to be transmitted bag from first extra buffer, described second is deleted The data to be transmitted bag cached in extra buffer.
6. a kind of data transmission method, it is characterised in that the data transmission method is applied to mobile terminal, the mobile terminal Including the first process chip and second processing chip, first process chip is temporarily slow including the first application processor, first Rush area and the first modem being connected with the first Subscriber Identity Module and second user identification card, the second processing core Piece includes the second application processor, the second extra buffer and second modem, and first application processor passes through logical It is connected with serial bus USB with second application processor, first modem is transmitted by universal asynchronous receiving-transmitting Device UART is connected with the second modem, wherein, first extra buffer and second extra buffer Capability value is synchronous change;
When the second modem detects the data transfer instruction for sending data to be transmitted bag, second modulatedemodulate Device is adjusted to obtain data to be transmitted bag according to the data transfer instruction;
The second modem caches the data to be transmitted bag into second extra buffer, for described One modem obtains the data to be transmitted bag from first extra buffer;
Wherein, the capability value of first extra buffer and second extra buffer is equal to default capability value and increment value Sum, and the default capability value is more than or equal to the size of the data to be transmitted bag with the increment value sum.
7. data transmission method as claimed in claim 6, it is characterised in that the second modem will be described to be transmitted Before step of the data pack buffer into second extra buffer, in addition to:
The second modem detects the size of the data to be transmitted bag, and judges the size of the data to be transmitted bag Whether the default capability value is more than;
When the size of the data to be transmitted bag is more than the default capability value, treated described in the second modem calculating Difference between the size of transmission packet and the default capability value, the increment value is determined according to the difference.
8. data transmission method as claimed in claim 7, it is characterised in that the second modem detection is described to be passed The size of transmission of data bag, and judge the data to be transmitted bag size whether be more than the default capability value the step of after, Also include:
When the size of the data to be transmitted bag is less than or equal to the default capability value, the second modem will The data to be transmitted bag is cached into second extra buffer of default capability value, for first modem The data to be transmitted bag is obtained from first extra buffer of default capability value.
9. data transmission method as claimed in claim 7, it is characterised in that the second modem will be described to be transmitted Data pack buffer is into second extra buffer, so that first modem is from first extra buffer After the step of obtaining the data to be transmitted bag, in addition to:
When first modem gets the data to be transmitted bag from first extra buffer, described second Modem reduces the capability value of second extra buffer to the default capability value.
10. the data transmission method as described in any one of claim 6 to 8, it is characterised in that the second modem will The data to be transmitted bag is cached into second extra buffer, so that first modem faces from described first When buffering area in the step of obtain the data to be transmitted bag after, in addition to:
When first modem gets the data to be transmitted bag from first extra buffer, described second Modem deletes the data to be transmitted bag cached in second extra buffer.
CN201710397050.1A 2017-05-27 2017-05-27 Mobile terminal and its data transmission method Withdrawn CN107277797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710397050.1A CN107277797A (en) 2017-05-27 2017-05-27 Mobile terminal and its data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710397050.1A CN107277797A (en) 2017-05-27 2017-05-27 Mobile terminal and its data transmission method

Publications (1)

Publication Number Publication Date
CN107277797A true CN107277797A (en) 2017-10-20

Family

ID=60065373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710397050.1A Withdrawn CN107277797A (en) 2017-05-27 2017-05-27 Mobile terminal and its data transmission method

Country Status (1)

Country Link
CN (1) CN107277797A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686176A (en) * 2008-09-24 2010-03-31 中国移动通信集团辽宁有限公司 Method and device for transmitting and receiving message
CN106559086A (en) * 2015-09-30 2017-04-05 努比亚技术有限公司 Mobile terminal and wireless communications method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686176A (en) * 2008-09-24 2010-03-31 中国移动通信集团辽宁有限公司 Method and device for transmitting and receiving message
CN106559086A (en) * 2015-09-30 2017-04-05 努比亚技术有限公司 Mobile terminal and wireless communications method

Similar Documents

Publication Publication Date Title
CN107466070A (en) Data transmission system, method, external equipment and mobile terminal
CN107318107A (en) Data transmission system, method, external equipment and mobile terminal
CN107247679A (en) Data transmission system and method
CN107222429A (en) Data transmission system and method
CN107395606A (en) Data packet transmission system and method
CN107148052A (en) Mobile terminal and its data transmission method
CN107257567A (en) Data transmission system and method
CN107124738A (en) Mobile terminal and data pack transmission method
CN107094152A (en) Data packet transmission system and method
CN107277797A (en) Mobile terminal and its data transmission method
CN107205053A (en) Data packet transmission system and method
CN107257566A (en) Mobile terminal and its data transmission method
CN107277796A (en) Mobile terminal and its data transmission method
CN107277174A (en) Data packet transmission system and method
CN107124736A (en) Data transmission system and method
CN107070814A (en) Data transmission system and method
CN107466027A (en) Data transmission system, method, external equipment and mobile terminal
CN107466028A (en) Data transmission system, method, external equipment and mobile terminal
CN107396400A (en) Data transmission system, method, external equipment and mobile terminal
CN107396399A (en) Data transmission system, method, external equipment and mobile terminal
CN107182087A (en) Data packet transmission system and method
CN107332930A (en) Data packet transmission system and method
CN107205052A (en) Data transmission system, method, external equipment and mobile terminal
CN107205054A (en) Data transmission system, method, external equipment and mobile terminal
CN106953984A (en) Data transmission system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20171020