CN107257567A - Data transmission system and method - Google Patents

Data transmission system and method Download PDF

Info

Publication number
CN107257567A
CN107257567A CN201710397048.4A CN201710397048A CN107257567A CN 107257567 A CN107257567 A CN 107257567A CN 201710397048 A CN201710397048 A CN 201710397048A CN 107257567 A CN107257567 A CN 107257567A
Authority
CN
China
Prior art keywords
data
application processor
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
CN201710397048.4A
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 CN201710397048.4A priority Critical patent/CN107257567A/en
Publication of CN107257567A publication Critical patent/CN107257567A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0278Traffic management, e.g. flow control or congestion control using buffer status reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

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

Abstract

The invention discloses a kind of data transmission system and method, this method is applied to mobile terminal and the external equipment being connected by USB with mobile terminal, mobile terminal includes the first modem, the first extra buffer and the first application processor being connected with the first Subscriber Identity Module and second user identification card, and external equipment includes the second application processor, the second extra buffer and second modem;Second application processor obtains data to be transmitted bag according to the data transfer instruction detected, and data to be transmitted bag is cached into the second extra buffer, data to be transmitted bag is obtained from the first extra buffer for the first application processor;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 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 when mobile terminal and external equipment are in transmitting telecommunication card data procedures, the problem of easily crashing.

Description

Data transmission system and method
Technical field
The present invention relates to communication technical field, more particularly to a kind of data transmission system and method.
Background technology
With the development of mobile communication technology, increasing mobile terminal such as smart mobile phone has the work(of double card bilateral Can so that user realize speech business it is standby simultaneously, can set up data service connection.Mobile terminal generally has two use Family identification card and the modem being connected respectively with described two Subscriber Identity Modules, during two Subscriber Identity Module standard-sized sheets, one 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.
In order that mobile terminal can support double LTE, data transmission efficiency is improved, mobile terminal can be connected with external equipment (being provided with modem in the external equipment), to realize double LTE communication functions.But in use, when mobile whole When the data that end and external equipment needs are transmitted are telecommunications card data, 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 data transmission system and method, it is intended to solve mobile terminal pass through it is outer Connect during the double LTE communications of equipment realization, between mobile terminal and external equipment during transmitting telecommunication card data, mobile terminal is easy There is the technical problem crashed.
To achieve the above object, a kind of data transmission system that the present invention is provided, data transmission system includes mobile terminal And external equipment, the mobile terminal includes the first modem, the first extra buffer and the first application processor, described First modem is connected with the first Subscriber Identity Module and second user identification card respectively, and the external equipment includes second should With processor, the second extra buffer and second modem, wherein, first application processor is total by general serial Line USB is connected with second application processor, the capability value of first extra buffer and second extra buffer It is synchronous change;
Second application processor, 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;
Second application processor is additionally operable to cache the data to be transmitted bag into second extra buffer;
First application processor, 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, second application processor 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;
Second application processor 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, second application processor 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 application processor is additionally operable to treat described in acquisition from first extra buffer of default capability value Transmission packet.
Alternatively, second application processor is additionally operable to when temporarily first application processor 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, second application processor is additionally operable to when temporarily first application processor 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, and the external equipment being connected by general-purpose serial bus USB with the mobile terminal, the mobile terminal bag Include the first modem, the first extra buffer and the first application processor, first modem is respectively with first Subscriber Identity Module and the connection of second user identification card, the external equipment include the second application processor, the second extra buffer And second modem, wherein, first application processor is connected by the USB with second application processor, The capability value of first extra buffer and second extra buffer is synchronous change;
When second application processor detects the data transfer instruction for sending data to be transmitted bag, described second should Data to be transmitted bag is obtained according to the data transfer instruction with processor;
Second application processor caches the data to be transmitted bag into second extra buffer, for institute State the first application processor 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, second application processor caches the data to be transmitted bag into second extra buffer The step of before, in addition to:
Second application processor 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, second application processor 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, second application processor 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, the second application processing Device caches the data to be transmitted bag into second extra buffer of default capability value, at the described first application Reason device obtains the data to be transmitted bag from first extra buffer of default capability value.
Alternatively, second application processor 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 application processor it Afterwards, in addition to:
It is described when first application processor gets the data to be transmitted bag from first extra buffer Second application processor reduces the capability value of second extra buffer to the default capability value.
Alternatively, second application processor 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 application processor it Afterwards, in addition to:
It is described when first application processor gets the data to be transmitted bag from first extra buffer Second application processor deletes the data to be transmitted bag cached in second extra buffer.
The present invention provides a kind of data transmission system and method, and the data transmission method is applied to mobile terminal, and The external equipment being connected by general-purpose serial bus USB with the mobile terminal, the mobile terminal includes the first modulation /demodulation Device, the first extra buffer and the first application processor, first modem respectively with the first Subscriber Identity Module and Two Subscriber Identity Modules are connected, and the external equipment includes the second application processor, the second extra buffer and the second modulation /demodulation Device, wherein, first application processor is connected by the USB with second application processor, and described first is interim slow The capability value for rushing area and second extra buffer is synchronous change;Treated when second application processor detects transmission During the data transfer instruction of transmission packet, second application processor obtains number to be transmitted according to the data transfer instruction According to bag;Second application processor caches the data to be transmitted bag into second extra buffer, for described First application processor obtains the data to be transmitted bag from first extra buffer;Wherein, described first is interim slow The capability value for rushing area and second extra buffer is equal to default capability value and increment value sum, and the default capability value with The increment value sum is more than or equal to the size of the data to be transmitted bag.By increase mobile terminal and external equipment it Between be used for the capability value of data cached extra buffer, it is to avoid in mobile terminal and external equipment transmitting telecommunication card data mistake Cheng Zhong, because the size of some packets of telecommunications card correspondence is more than the capability value of extra buffer, causes mobile terminal to crash Situation occur.
Brief description of the drawings
Fig. 1 is the schematic diagram of the LTE network framework of one embodiment of the invention;
Fig. 2 is mobile terminal and a kind of hardware architecture diagram of external equipment communication connection in the embodiment of the present invention;
Fig. 3 is mobile terminal and a kind of entity structure schematic diagram of external equipment communication connection in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of data transmission method first embodiment of the present invention;
Fig. 5 is the schematic flow sheet of data transmission method second embodiment of the present invention;
Fig. 6 is the schematic flow sheet of data transmission method 3rd embodiment of the present invention;
Fig. 7 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 mobile terminal and a kind of hardware architecture diagram of external equipment communication connection in the embodiment of the present invention. In the embodiment of the present invention, mobile terminal 1 00 is set by USB (Universal Serial Bus, USB) with external Standby 200 connection.Mobile terminal 1 00 includes the first process chip 001 and the first radio-frequency module being connected with the first process chip 001 12.Wherein, the first process chip 001 includes the first application processor (Application Processor) 10 and the first user The first modem 11 (modem1) and RPM (Resource Power that identification card 13 and second user identification card 14 are connected Manager, resource power supervisor) 15.First application processor 10 includes the first extra buffer (buffer1).It is external to set Standby 200 include second processing chip 002 and the second radio-frequency module 22 being connected with second processing chip 002.Wherein, second processing Chip 002 includes the second application processor 20 and second modem (modem2) 21, and the second application processor 20 includes the Two extra buffers (buffer2).Subscriber Identity Module is SIM card.
What USB was connected with the first application processor 10 and the second application processor 20 is provided at both ends with to be transmitted for caching The extra buffer of packet.Specifically, USB and the junction of the first application processor 10 are provided with the first extra buffer, USB The junction of second application processor 20 is provided with the second extra buffer.It is mobile whole when external equipment 200 is data sending terminal When end 100 is data receiver, the second extra buffer is output buffer, needs to be sent to the first application for temporarily storing The packet of processor 10;First extra buffer is input block, is sent for temporarily storing the second application processor 20 Packet.When mobile terminal 1 00 is data sending terminal, and external equipment 200 is data receiver, the second extra buffer is Input block, the first extra buffer is output buffer.It should be noted that the first extra buffer and second delays temporarily Rush area and correspond to same physical address, by the physical address, can control the first extra buffer and the second extra buffer The synchronous change of capability value and state.Due to the first extra buffer and the second extra buffer correspond to it is same physically Location, when the second application processor 20 caches data to be transmitted bag into the second extra buffer, the first application processor 10 The data to be transmitted bag is can detect, data to be transmitted bag is read from the first extra buffer, it is to be passed to get this Transmission of data bag.
The inner frame of first application processor 10 and the second application processor 20 includes application layer, ccf layer etc., can locate Manage the logical operation of complexity and carry out task distribution etc..In one embodiment, application processor refers to Android operations system System, and the various apk (Android Package, Android installation kit) based on Android operation system.First application processing The application processor 20 of device 10 and second is realized by USB and connected, and provides the user interactive interface, the operational order that user is inputted (for example, the operational order for the relevant startup video calling that user is inputted by user interface) is transferred to the first modem 11 Or second modem 21, to realize the definition and transmission of data between two processors, for example, carrying out two application processing Control of chip boot sequence the etc. when dormancy of device, wake-up, synchronous control, switching on and shutting down.
First application processor 10 is connected by USB with the second application processor 20, with realize mobile terminal 1 00 with it is external Connection between equipment 200.In embodiments of the present invention, USB is multiplexed out three data passages, is respectively used to the first application processing The interaction of user data, signaling data and SIM card authorization data between the application processor 20 of device 10 and second.At i.e. first application The reason application processor 20 of device 10 and second passes through USB transmission user data, signaling data and SIM card authorization data.Wherein, user Data include but is not limited to the data that online is produced, picture and chat message data;Signaling data includes but is not limited to switching on and shutting down Control data, switch offline mode control data, the control data of dispaly state signal;SIM card authorization data include but It is not limited to IMSI (International Mobile Subscriber Identification Number, international mobile subscriber Identification code) and Ki (key identifier, KI).
Specifically, the first application processor 10 and the second application processor 20 enter line number by OTG (On-The-Go) technology According to interaction.By OTG technologies, the first modem 11 in mobile terminal 1 00 can pass through entity user identification card 14 or embedding Enter the SIM card parameter in formula Subscriber Identity Module 13 to access eNodeB 101, second modem 21 can pass through entity user The SIM card parameter of identification card 14 or embedded user identification card 13 accesses eNodeB 101, and SIM card parameter includes but is not limited to SIM card authorization data.
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..
In embodiments of the present invention, the first radio-frequency module 12 is transmitted to after being used for the data processing of transmitting mobile terminal 1 00 ENodeB 101 (base station network), and for being transmitted to mobile terminal 1 00 after the data processing of transmitting eNodeB 101.Second Radio-frequency module 22 is transmitted to eNodeB 101 (base station network) after being used for the data processing of transmitting external equipment 200, and is used for External equipment 200 is transmitted to after the data processing that eNodeB 101 is transmitted.
First Subscriber Identity Module 13 and second user identification card 14 are used to provide mobile communication business (CS speech businesses, PS Data service and PS speech businesses) needed for related data, and its storage inside user profile, short message, perform authentication calculate Method and generation cryptographic keys etc..
First Subscriber Identity Module 13 and second user identification card 14 can store associated with similar and different technical standard User profile.In specific non-limiting examples, technical standard can be the 2G communication technologys, for example, GSM, EDGE), 3G communication Technology (for example, WCDMA, TD-SCDMA), the 4G communication technologys (for example, LTE), or any other mobile communication technology is (for example, 4G Etc.).First Subscriber Identity Module 13 and second user identification card 14 are preferably SIM card.
First Subscriber Identity Module 13 and second user identification card 14 with mobile terminal 1 00 when being interacted, and mobile terminal 1 00 is examined The signal of Subscriber Identity Module presence or absence is surveyed only in the instantaneous generation of start, will in the presence of start can't detect Subscriber Identity Module Point out " insertion Subscriber Identity Module ".After mobile terminal 1 00 is started shooting, communicate within 28 seconds between mobile terminal 1 00 and Subscriber Identity Module Once, the communication check (for example, Subscriber Identity Module whether in place etc.) of some fixations is completed.
Because current mobile terminal 1 00 only has a set of radio-frequency module, when mobile terminal 1 00 has two Subscriber Identity Modules When, two Subscriber Identity Modules of mobile terminal 1 00 are the relation of time-sharing multiplex using the set radio frequency, can not be taken simultaneously.Example Such as, in two Subscriber Identity Module standard-sized sheets, conversed wherein a Subscriber Identity Module only handles GSM, and another Subscriber Identity Module The 4G network informations are handled, which kind of network performed, is not limited herein for which specific Subscriber Identity Module.Therefore current radio frequency double card This framework of time-sharing multiplex has only accomplished that (the corresponding technical standard of i.e. one Subscriber Identity Module is LTE, another use to LTE+GSM Identification card corresponding technical standard in family is GSM).
Although it is understood that existing mobile terminal 1 00 can support Dual-user identification card, due to mobile terminal 100 in the case of registered network, and what two Subscriber Identity Modules were supported is the network of different technologies standard, one support 2G or 3G, another support 4G, 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 is by USB connections external equipment 200, because external equipment 200 includes second modem 21 and the Two radio-frequency modules 22, and the second radio-frequency module 22 supports 4G networks, therefore, mobile terminal 1 00 can pass through USB and external equipment 200 interactions, so that mobile terminal 1 00 possesses double LTE functions (now the first Subscriber Identity Module 13 and second user identification card The technical standard of 14 management is LTE standard, the wireless access skill involved by the first radio-frequency module 12 and the second radio-frequency module 22 Art is LTE).
The RPM15 of 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.And working as mobile terminal 1 00 has a sub or multiple subsystems to throw the ticket for opposing dormancy, The whole system of mobile terminal 1 00 all can not dormancy.
After the whole system dormancy of mobile terminal 1 00, if to restart operation, it is necessary to wake up at the first application Reason device 10 is interacted with the transmission for carrying out data.
In the case where mobile terminal 1 00 and external equipment 200 are by USB communication connections, wake-up mode can be following three Kind:
1st, when the first application processor 10 receives signaling data, by USB send shake hands keyword to second application at Device 20 is managed, to wake up the second application processor 20.
2nd, when second modem 21 receives user data, the second application processor 20 is waken up, by the second application Reason device 20 shakes hands keyword to the first application processor 10 by USB transmission, to wake up the first application processor 10.
3rd, second modem 21 periodically searches paging request, with active activation oneself.If receiving paging request, Second modem 21 then wakes up the second application processor 20, and key of shaking hands is sent by USB by the second application processor 20 Word gives the first application processor 10, to wake up the second application processor 20.
It should be noted that keyword of shaking hands can use the character mark of fixed word length, it is to be not in normal data packet Field.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 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.
Reference picture 3, Fig. 3 is the entity structure schematic diagram of mobile terminal 1 00 of the present invention and the communication connection of external equipment 200. Mobile terminal 1 00 is connected by USB with the communication of external equipment 200, wherein, mobile terminal includes but is not limited to mobile phone, PC (Personal Computer, PC) or PAD (Personal Digital Assistant, personal digital assistant), outside Connect equipment 200 and include but is not limited to wireless Internet card and data card.It should be noted that mobile terminal 1 00 by USB with it is external The link position of equipment 200 is not limited to shown in Fig. 3, mobile terminal 1 00 can be set to be set by USB with external according to specific needs Standby 200 link position.
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 by packet by transmitting terminal it is to be appreciated that in mobile terminal 1 00 and the data transmission procedure of external equipment 200 Store in corresponding extra buffer, then receiving terminal extracts packet from corresponding extra buffer again, treated with realizing The interaction of transmission 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 mobile terminal 1 00 and the data of external equipment 200 (being receiving terminal with mobile terminal 1 00, external equipment 200 is to illustrate exemplified by transmitting terminal), external equipment 200 in transmitting procedure The packet stored to the second extra buffer is smaller than 512 bytes, and the storage that packet can be complete is interim to second In buffering area.But when the first Subscriber Identity Module 13 and/or second user identification card 14 are telecommunications cards, and the corresponding number of telecommunications card When being more than 512 byte according to the size of bag, mobile terminal 1 00 can be less than and external due to the default capability value of the second extra buffer The data package size that equipment 200 is transmitted, causes mobile terminal 1 00 situation about crashing occur.
The hardware configuration for communicating connection based on above-mentioned LTE network framework figure, mobile terminal 1 00 and external equipment 200 shows The problem of intention, entity structure schematic diagram and prior art are present, proposes each embodiment of the present invention.
The present embodiment proposes a kind of data transmission system, and data transmission system includes mobile terminal 1 00 and external equipment 200, mobile terminal 1 00 is included at the first radio-frequency module 12, the first modem 11, the first extra buffer and the first application Device 10 is managed, the first modem 11 is connected with the first Subscriber Identity Module 13 and second user identification card 14 respectively, external equipment 200 include the second application processor 20, the second radio-frequency module 22, the second extra buffer and second modem 21.
Second application processor 20, 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 application processor 20 is additionally operable to cache data to be transmitted bag into the second extra buffer.
First application processor 10, 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 is more than or equal to the size of data to be transmitted bag with increment value sum.
The present embodiment is transmitting terminal with external equipment 200, and mobile terminal 1 00 is to illustrate exemplified by receiving terminal.It can manage Solution, when mobile terminal 1 00 is transmitting terminal, and external equipment 200 is receiving terminal, mobile terminal 1 00 and external equipment 200 it Between the principle that carries out data transmission and external equipment 200 be transmitting terminal, mobile terminal 1 00 is the data transmission principle one of receiving terminal Cause, will not be repeated here.
When the second application processor 20 of external equipment 200 detects the data transfer instruction of transmission data to be transmitted bag When, the second application processor 20 obtains data to be transmitted bag according to data transfer instruction.Wherein, when the second application processor 20 connects ENodeB 101 request of data is received, or the second application processor 20 needs to obtain the first user in mobile terminal 1 00 The data of identification card 13 or second user identification card 14, or the second application processor 20 is when having authentication requirement etc., the second application Processor 20 will trigger data transmission instruction.Specifically, the second application processor 20 by USB by acquired number to be transmitted The first application processor 10 of mobile terminal 1 00 is sent to according to bag.
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.
Mobile terminal 1 00 and external equipment 200 first extra buffer and second used in data transmission procedure face When buffering area capacity be typically all 512 bytes, therefore, in embodiments of the present invention, the first extra buffer and second faces When buffering area default capability value may be configured as 512 bytes.In order to ensure treating between mobile terminal 1 00 and external equipment 200 Transmission packet can whole Successful transmissions, increment value and default capability value sum should be greater than or equal to the He of mobile terminal 1 00 The size for the maximum data to be transmitted bag that external equipment 200 is transmitted.Such as when the size of maximum data to be transmitted bag is 3 kilobytes When, increment value and default capability value sum should be greater than or equal to 3 kilobytes.
When the second application processor 20 gets data to be transmitted bag, the second application processor 20 is by data to be transmitted bag Caching is into the second extra buffer, so that the first application processor 10 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 the second application processor 20, the first application processor 10 It can be detected from the first extra buffer and get data to be transmitted bag, and acquired data to be transmitted bag is sent to One modem 11 (because the first extra buffer and the second extra buffer correspond to same physical address, therefore, when When the data to be transmitted bag of second application processor 20 writes the second extra buffer, the first application processor 10 can face first When buffering area in detect the data to be transmitted bag).
When the first modem 11 receives data to be transmitted bag, the first modem 11 is according to data to be transmitted Bag obtains corresponding data response data to be transmitted bag from the first Subscriber Identity Module 13 or second user identification card 14, meets with a response Packet, and response data packet is pressed into second application processor 20 of the backtracking to external equipment 200.In the first modulation /demodulation Device 11 obtains corresponding data response according to data to be transmitted bag from the first Subscriber Identity Module 13 or second user identification card 14 should In data to be transmitted packet procedures, the first modem 11 will not directly with the first Subscriber Identity Module 13 or second user identification card File storage module interaction in 14, but the first COS (Chip into the first Subscriber Identity Module 13 or second user identification card 14 Operating System, chip operating system) operating system send data acquisition request, then the first Subscriber Identity Module 13 or The COS operating systems of second user identification card 14 obtain data based on the data acquisition request in file storage module, then The first modem 11 is given by the data re-transmission of acquisition, to realize the response of data to be transmitted bag.
The present embodiment by when the second application processor 20 detect send data to be transmitted bag data transfer instruction when, Second application processor 20 obtains data to be transmitted bag according to data transfer instruction;Second application processor 20 is by data to be transmitted Bag caching is into the second extra buffer, so that the first application processor 10 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 mobile terminal 1 00 and external It is used for the capability value of data cached extra buffer between equipment 200, it is to avoid in mobile terminal 1 00 and external equipment 200 In transmitting telecommunication card data procedures, because some data package sizes of telecommunications card correspondence are more than the capability value of extra buffer, lead The situation for causing mobile terminal 1 00 to crash occurs.
Further, it is used for the extra buffer of data transfer between mobile terminal 1 00 and external equipment 200 by increasing Default capability value, make data to be transmitted bag size be less than or equal to extra buffer capability value, realize external During equipment 200 and mobile terminal 1 00 carry out data transmission, when the size of the data to be transmitted bag transmitted is more than interim delay When rushing the default capability value in area, it is not necessary to split data to be transmitted bag, a complete data to be transmitted bag can be directly transmitted, is carried High data to be transmitted bag efficiency of transmission, simultaneously as data to be transmitted bag need not be split, therefore avoid split it is to be passed After transmission of data bag, split a certain data to be transmitted packet loss, or during data to be transmitted is included into, synthesis failure Situation occur, improve data to be transmitted bag transmission success rate.
Further, data transmission system second embodiment of the present invention is proposed.
The difference of data transmission system second embodiment and data transmission system first embodiment is that the second application is handled Device 20 is additionally operable to detect the size of data to be transmitted bag, and judges whether the size of data to be transmitted bag is more than default capability value;
Second application processor 20 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, external equipment 200 and movement are eventually The data to be transmitted bag transmitted between end 100 is not necessarily all greater than 512 bytes, simply in the presence of a few data to be transmitted Bag 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 capacity of the first extra buffer and the second extra buffer in data transmission procedure Value, then can waste the memory space of the first extra buffer and the second extra buffer.Therefore, when the second of external equipment 200 When application processor 20 gets data to be transmitted bag, the second application processor 20 detects the size of data to be transmitted bag.
Specifically, the second application processor 20 parsing 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 the second application processor 20, 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 the second application processor 20, 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 application processing The final detected data to be transmitted bag size of device 20 is the size of data in logical multiplexing layer packet header.
When it is determined that data to be transmitted bag size after, the second application processor 20 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, the second application processor 20 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, the second application processor 20 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 application processing Device 10 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 application processor 20 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 application processor 10 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, the second application processor 20 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 application processor 10 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 transmitted between external equipment 200 and mobile terminal 1 00 in data to be transmitted packet procedures, it is not necessary to Treat the operation bidirectional that transmission packet is split, it is ensured that data channel is saturating between mobile terminal 1 00 and external equipment 200 The essence of biography, it is to avoid secondary splitting and reorganizing brings data to damage in data transmission procedure, while avoiding directly increase first from facing When buffering area and the second extra buffer cause the problem of spatial cache is wasted.
Further, data transmission system 3rd embodiment of the present invention is proposed.
The difference of data transmission system 3rd embodiment and data transmission system second embodiment is that the second application is handled Device 20 is additionally operable to when the first application processor 10 gets data to be transmitted bag from the first extra buffer, reduces second interim The capability value of buffering area is to default capability value.
When the first application processor 10 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, the second application processor 20 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 the second application processor 20 reduces the second extra buffer During capability value to default capability value, the first application processor 10 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 application processor 10 successfully gets data to be transmitted bag.I.e. when the first application processor 10 is in the first extra buffer In when reading the end of identification, show that the first application processor 10 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 the second application processor 20 can be according to end of identification quilt The situation of reading determines whether the first application processor 10 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 application processor 10 successfully gets data to be transmitted bag, the second application processor The capability value of second extra buffer is decreased to default capability value by 20 again, not waste extra buffer spatial cache On the basis of, it is ensured that mobile terminal 1 00 and external equipment 200 in data transmission procedure will not because of transmission packet it is excessive and Cause to occur the problem of deadlock.
Further, data transmission system fourth embodiment of the present invention is proposed.
The difference of data transmission system fourth embodiment and the embodiment of data transmission system first or two is that second applies Processor 20 is additionally operable to when the first application processor 10 gets data to be transmitted bag from the first extra buffer, deletes second The data to be transmitted bag cached in extra buffer.
When the first application processor 10 successfully gets data to be transmitted bag from the first extra buffer, the second application Instruction is deleted in the triggering of processor 20, 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 mobile terminal 1 00 and external equipment 200.It may be appreciated It is, when the second application processor 20 deletes the data to be transmitted bag in the second extra buffer, the first application processor 10 The data to be transmitted bag in the first extra buffer can be deleted.
The present invention also provides a kind of data transmission method.
Reference picture 4, Fig. 4 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 to pass through in the mobile terminal 1 00 that USB is connected with external equipment 200, mobile terminal 1 00 Including the first radio-frequency module 12, the first modem 11, the first extra buffer and the first application processor 10, the first modulation Demodulator 11 is connected with the first Subscriber Identity Module 13 and second user identification card 14 respectively, and external equipment 200 includes the second application Processor 20, the second radio-frequency module 22, the second extra buffer and second modem 21.
Data transmission method includes:
Step S10, when the second application processor 20 detects the data transfer instruction for sending data to be transmitted bag, second Application processor 20 obtains data to be transmitted bag according to data transfer instruction.
Step S20, the second application processor 20 caches data to be transmitted bag into the second extra buffer, for first Application processor 10 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 is more than or equal to the size of data to be transmitted bag with increment value sum.
The present embodiment is transmitting terminal with external equipment 200, and mobile terminal 1 00 is to illustrate exemplified by receiving terminal.It can manage Solution, when mobile terminal 1 00 is transmitting terminal, and external equipment 200 is receiving terminal, mobile terminal 1 00 and external equipment 200 it Between the principle that carries out data transmission and external equipment 200 be transmitting terminal, mobile terminal 1 00 is the data transmission principle one of receiving terminal Cause, will not be repeated here.
When the second application processor 20 of external equipment 200 detects the data transfer instruction of transmission data to be transmitted bag When, the second application processor 20 obtains data to be transmitted bag according to data transfer instruction.Wherein, when the second application processor 20 connects ENodeB 101 request of data is received, or the second application processor 20 needs to obtain the first user in mobile terminal 1 00 The data of identification card 13 or second user identification card 14, or the second application processor 20 is when having authentication requirement etc., the second application Processor 20 will trigger data transmission instruction.Specifically, the second application processor 20 by USB by acquired number to be transmitted The first application processor 10 of mobile terminal 1 00 is sent to according to bag.
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.
Mobile terminal 1 00 and external equipment 200 first extra buffer and second used in data transmission procedure face When buffering area capacity be typically all 512 bytes, therefore, in embodiments of the present invention, the first extra buffer and second faces When buffering area default capability value may be configured as 512 bytes.In order to ensure treating between mobile terminal 1 00 and external equipment 200 Transmission packet can whole Successful transmissions, increment value and default capability value sum should be greater than or equal to the He of mobile terminal 1 00 The size for the maximum data to be transmitted bag that external equipment 200 is transmitted.Such as when the size of maximum data to be transmitted bag is 3 kilobytes When, increment value and default capability value sum should be greater than or equal to 3 kilobytes.
When the second application processor 20 gets data to be transmitted bag, the second application processor 20 is by data to be transmitted bag Caching is into the second extra buffer, so that the first application processor 10 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 the second application processor 20, the first application processor 10 It can be detected from the first extra buffer and get data to be transmitted bag, and acquired data to be transmitted bag is sent to One modem 11 (because the first extra buffer and the second extra buffer correspond to same physical address, therefore, when When the data to be transmitted bag of second application processor 20 writes the second extra buffer, the first application processor 10 can face first When buffering area in detect the data to be transmitted bag).
When the first modem 11 receives data to be transmitted bag, the first modem 11 is according to data to be transmitted Bag obtains corresponding data response data to be transmitted bag from the first Subscriber Identity Module 13 or second user identification card 14, meets with a response Packet, and response data packet is pressed into second application processor 20 of the backtracking to external equipment 200.In the first modulation /demodulation Device 11 obtains corresponding data response according to data to be transmitted bag from the first Subscriber Identity Module 13 or second user identification card 14 should In data to be transmitted packet procedures, the first modem 11 will not directly with the first Subscriber Identity Module 13 or second user identification card File storage module interaction in 14, but the first COS (Chip into the first Subscriber Identity Module 13 or second user identification card 14 Operating System, chip operating system) operating system send data acquisition request, then the first Subscriber Identity Module 13 or The COS operating systems of second user identification card 14 obtain data based on the data acquisition request in file storage module, then The first modem 11 is given by the data re-transmission of acquisition, to realize the response of data to be transmitted bag.
The present embodiment by when the second application processor 20 detect send data to be transmitted bag data transfer instruction when, Second application processor 20 obtains data to be transmitted bag according to data transfer instruction;Second application processor 20 is by data to be transmitted Bag caching is into the second extra buffer, so that the first application processor 10 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 mobile terminal 1 00 and external It is used for the capability value of data cached extra buffer between equipment 200, it is to avoid in mobile terminal 1 00 and external equipment 200 In transmitting telecommunication card data procedures, because some data package sizes of telecommunications card correspondence are more than the capability value of extra buffer, lead The situation for causing mobile terminal 1 00 to crash occurs.
Further, it is used for the extra buffer of data transfer between mobile terminal 1 00 and external equipment 200 by increasing Default capability value, make data to be transmitted bag size be less than or equal to extra buffer capability value, realize external During equipment 200 and mobile terminal 1 00 carry out data transmission, when the size of the data to be transmitted bag transmitted is more than interim delay When rushing the default capability value in area, it is not necessary to split data to be transmitted bag, a complete data to be transmitted bag can be directly transmitted, is carried High data to be transmitted bag efficiency of transmission, simultaneously as data to be transmitted bag need not be split, therefore avoid split it is to be passed After transmission of data bag, split a certain data to be transmitted packet loss, or during data to be transmitted is included into, synthesis failure Situation occur, improve 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 5, data Transmission method also includes:
Step S30, the second application processor 20 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, the second application processor 20 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, external equipment 200 and movement are eventually The data to be transmitted bag transmitted between end 100 is not necessarily all greater than 512 bytes, simply in the presence of a few data to be transmitted Bag 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 capacity of the first extra buffer and the second extra buffer in data transmission procedure Value, then can waste the memory space of the first extra buffer and the second extra buffer.Therefore, when the second of external equipment 200 When application processor 20 gets data to be transmitted bag, the second application processor 20 detects the size of data to be transmitted bag.
Specifically, the second application processor 20 parsing 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 the second application processor 20, 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 the second application processor 20, 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 application processing The final detected data to be transmitted bag size of device 20 is the size of data in logical multiplexing layer packet header.
When it is determined that data to be transmitted bag size after, the second application processor 20 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, the second application processor 20 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, the second application processor 20 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 application processing Device 10 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, the second application processor 20 Data to be transmitted bag is cached into the second extra buffer of default capability value, so that the first application processor 10 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, the second application processor 20 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 application processor 10 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 transmitted between external equipment 200 and mobile terminal 1 00 in data to be transmitted packet procedures, it is not necessary to Treat the operation bidirectional that transmission packet is split, it is ensured that data channel is saturating between mobile terminal 1 00 and external equipment 200 The essence of biography, it is to avoid secondary splitting and reorganizing brings data to damage in data transmission procedure, while avoiding directly increase first from facing When buffering area and the second extra buffer cause 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 6, data Transmission method also includes:
Step S60, when the first application processor 10 gets data to be transmitted bag from the first extra buffer, second should Reduce the capability value of the second extra buffer to default capability value with processor 20.
When the first application processor 10 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, the second application processor 20 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 the second application processor 20 reduces the second extra buffer During capability value to default capability value, the first application processor 10 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 application processor 10 successfully gets data to be transmitted bag.I.e. when the first application processor 10 is in the first extra buffer In when reading the end of identification, show that the first application processor 10 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 the second application processor 20 can be according to end of identification quilt The situation of reading determines whether the first application processor 10 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 application processor 10 successfully gets data to be transmitted bag, the second application processor The capability value of second extra buffer is decreased to default capability value by 20 again, not waste extra buffer spatial cache On the basis of, it is ensured that mobile terminal 1 00 and external equipment 200 in data transmission procedure will not because of transmission packet it is excessive and Cause 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 embodiment is, reference picture 7, data Transmission method also includes:
Step S70, when the first application processor 10 gets data to be transmitted bag from the first extra buffer, second should The data to be transmitted bag cached in the second extra buffer is deleted with processor 20.
When the first application processor 10 successfully gets data to be transmitted bag from the first extra buffer, the second application Instruction is deleted in the triggering of processor 20, 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 mobile terminal 1 00 and external equipment 200.It may be appreciated It is, when the second application processor 20 deletes the data to be transmitted bag in the second extra buffer, the first application processor 10 The data to be transmitted bag in the first extra buffer can be deleted.
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 data transmission system, it is characterised in that the data transmission system includes mobile terminal and external equipment, described Mobile terminal includes the first modem, the first extra buffer and the first application processor, first modem It is connected respectively with the first Subscriber Identity Module and second user identification card, the external equipment includes the second application processor, second Extra buffer and second modem, wherein, first application processor passes through general-purpose serial bus USB and described the Two application processors are connected, and the capability value of first extra buffer and second extra buffer is synchronous change;
Second application processor, 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;
Second application processor is additionally operable to cache the data to be transmitted bag into second extra buffer;
First application processor, 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. data transmission system as claimed in claim 1, it is characterised in that second application processor is additionally operable to detect institute The size of data to be transmitted bag is stated, and judges whether the size of the data to be transmitted bag is more than the default capability value;
Second application processor 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. data transmission system as claimed in claim 2, it is characterised in that second application processor is additionally operable to when described When the size of data to be transmitted bag is less than or equal to the default capability value, the data to be transmitted bag is cached to acquiescence and held In second extra buffer of value;
First application processor is additionally operable to obtain described to be transmitted from first extra buffer of default capability value Packet.
4. data transmission system as claimed in claim 2, it is characterised in that second application processor is additionally operable to when described First application processor from first extra buffer get the data to be transmitted bag when, reduce described second interim slow The capability value in area is rushed to the default capability value.
5. the data transmission system as described in any one of claims 1 to 3, it is characterised in that second application processor is also For when first application processor gets the data to be transmitted bag from first extra buffer, deleting described The data to be transmitted bag cached in second extra buffer.
6. a kind of data transmission method, it is characterised in that the data transmission method is applied to mobile terminal, and by general The external equipment that serial bus USB is connected with the mobile terminal, the mobile terminal faces including the first modem, first When buffering area and the first application processor, first modem recognizes with the first Subscriber Identity Module and second user respectively Card connection, the external equipment includes the second application processor, the second extra buffer and second modem, wherein, institute State the first application processor to be connected with second application processor by the USB, first extra buffer and described The capability value of second extra buffer is synchronous change;
When second application processor detects the data transfer instruction for sending data to be transmitted bag, at second application Manage device and data to be transmitted bag is obtained according to the data transfer instruction;
Second application processor caches the data to be transmitted bag into second extra buffer, for described One application processor 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 second application processor will be described to be transmitted Before step of the data pack buffer into second extra buffer, in addition to:
Second application processor 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 application processor 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 application processor 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, second application processor will The data to be transmitted bag is cached into second extra buffer of default capability value, for first application processor 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 second application processor will be described to be transmitted Data pack buffer is into second extra buffer, so that first application processor is from first extra buffer After the step of obtaining the data to be transmitted bag, in addition to:
When first application processor gets the data to be transmitted bag from first extra buffer, described second Application processor 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 second application processor will The data to be transmitted bag is cached into second extra buffer, so that first application processor faces from described first When buffering area in the step of obtain the data to be transmitted bag after, in addition to:
When first application processor gets the data to be transmitted bag from first extra buffer, described second Application processor deletes the data to be transmitted bag cached in second extra buffer.
CN201710397048.4A 2017-05-27 2017-05-27 Data transmission system and method Withdrawn CN107257567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710397048.4A CN107257567A (en) 2017-05-27 2017-05-27 Data transmission system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710397048.4A CN107257567A (en) 2017-05-27 2017-05-27 Data transmission system and method

Publications (1)

Publication Number Publication Date
CN107257567A true CN107257567A (en) 2017-10-17

Family

ID=60028089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710397048.4A Withdrawn CN107257567A (en) 2017-05-27 2017-05-27 Data transmission system and method

Country Status (1)

Country Link
CN (1) CN107257567A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625385A (en) * 2020-05-25 2020-09-04 广东小天才科技有限公司 Method, system, terminal device and storage medium for processing dead halt by adjusting RPM

Citations (3)

* 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
CN202696911U (en) * 2012-05-25 2013-01-23 深圳市江波龙电子有限公司 Wireless communication system and wireless communication expansion device
CN106559086A (en) * 2015-09-30 2017-04-05 努比亚技术有限公司 Mobile terminal and wireless communications method

Patent Citations (3)

* 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
CN202696911U (en) * 2012-05-25 2013-01-23 深圳市江波龙电子有限公司 Wireless communication system and wireless communication expansion device
CN106559086A (en) * 2015-09-30 2017-04-05 努比亚技术有限公司 Mobile terminal and wireless communications method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625385A (en) * 2020-05-25 2020-09-04 广东小天才科技有限公司 Method, system, terminal device and storage medium for processing dead halt by adjusting RPM

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
CN107257567A (en) Data transmission system and method
CN107148052A (en) Mobile terminal and its data transmission method
CN107277174A (en) Data packet transmission system and method
CN107205053A (en) Data packet transmission system and method
CN107124736A (en) Data transmission system and method
CN107070814A (en) Data transmission system and method
CN107277797A (en) Mobile terminal and its data transmission method
CN107257566A (en) Mobile terminal and its data transmission method
CN107466027A (en) Data transmission system, method, external equipment and mobile terminal
CN107277796A (en) Mobile terminal and its data transmission method
CN107466028A (en) Data transmission system, method, external equipment and mobile terminal
CN107332930A (en) Data packet transmission system and method
CN107396400A (en) Data transmission system, method, external equipment and mobile terminal
CN107396399A (en) Data transmission system, method, external equipment and mobile terminal
CN107360563A (en) Data transmission system, method, external equipment and mobile terminal
CN106953984A (en) Data transmission system and method
CN107205052A (en) Data transmission system, method, external equipment and mobile terminal
CN107396342A (en) Data transmission system, method, external equipment and mobile terminal
CN107205054A (en) Data transmission system, method, external equipment and mobile terminal
CN107396341A (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: 20171017

WW01 Invention patent application withdrawn after publication