CN107332930A - Data packet transmission system and method - Google Patents

Data packet transmission system and method Download PDF

Info

Publication number
CN107332930A
CN107332930A CN201710644851.3A CN201710644851A CN107332930A CN 107332930 A CN107332930 A CN 107332930A CN 201710644851 A CN201710644851 A CN 201710644851A CN 107332930 A CN107332930 A CN 107332930A
Authority
CN
China
Prior art keywords
data
packet
module
transmitting server
remote
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
CN201710644851.3A
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 CN201710644851.3A priority Critical patent/CN107332930A/en
Publication of CN107332930A publication Critical patent/CN107332930A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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

Abstract

The invention discloses a kind of data packet transmission system and method, this method is applied to mobile terminal and the external equipment being connected by preset interface with the mobile terminal, the remote data access service device calls the interception function in the first blocking module, to be packed function by the interception function call called, and packed by the packing function pair data called;The remote data access service device transmits the packet after packing to the first data transmitting server, and packet is passed through into the first data forwarding client transmissions to the first reading and writing data forwarding module by first headend;First reading and writing data forwarding module is transmitted packet to the second data read-write module by the preset interface, so that second data read-write module transmits packet to remote data access client.The present invention realizes the data transfer between mobile terminal and external equipment.

Description

Data packet transmission system and method
Technical field
The present invention relates to communication technical field, more particularly to a kind of data packet transmission system and method.
Background technology
With the development of mobile communication technology, mobile terminal has become user and carried with, and essential electronics is set It is standby.In leading for operator and major OEM (Original Equipment Manufacturer, original equipment manufacturer) manufacturers Under head, 3G (3rd Generation, 3rd generation mobile communication technology), 4G (the 4th Generation Mobile Communication Technology, forth generation mobile communication technology), CA (Carrier Aggregation, using carrier wave Polymerization technique) and newest 5G (5th-Generation, the 5th third-generation mobile communication technology) arise at the historic moment, the mesh of these technologies Be to improve the online bandwidth of user.Under such a background, a kind of mode for improving user's online bandwidth is also quietly given birth to, Mobile terminal connects two modems, and each modem has corresponding SIM (Subscriber Identification Module) card, and each modem can independently surf the Net, and then access user on upper strata The network network speed that carries out two data networks according to actual conditions be superimposed, so as to reach the purpose for improving online bandwidth.Due to Monopolization and limitation of the operator to legacy user's online bandwidth, manufacturer terminal can pass through the network speed superimposing technique scheme and increase use Family online bandwidth, effectively incorporates the online resource of two SIM cards in mobile terminal, and realize DSDA (Dual SIM Dual active, double card bilateral), and the double LTE (Long Term Evolution, Long Term Evolution) of double card are standby.
Therefore, in order that mobile terminal connects two modems, it is necessary to by mobile terminal with containing modem External equipment be attached.To realize the data transfer between mobile terminal and external equipment, still, mobile terminal and external The connection of equipment is connected in application processor, and packet is sent from modem, due to the span of modem Equipment, is connected without physical link, causes packet not transmit.
The content of the invention
It is a primary object of the present invention to propose a kind of data packet transmission system and method, it is intended to solve mobile terminal and pass through During the double LTE communications of external equipment realization, the technical problem that the packet between external equipment and mobile terminal can not be transmitted.
To achieve the above object, a kind of data packet transmission system that the present invention is provided, the data packet transmission system includes Mobile terminal, and the external equipment being connected by preset interface with the mobile terminal;The mobile terminal includes first should Adjusted with processor, and the first modem being connected with the first Subscriber Identity Module and second user identification card, described first Modulator-demodulator includes remote data access service device, the first blocking module and the first data transmitting server, first application Processor includes the first reading and writing data forwarding module and the first data forwarding being connected with first data transmitting server visitor Family end;The external equipment includes the second application processor and second modem, and the second modem includes remote Number of passes is according to access client, the second blocking module and the second data transmitting server, and second application processor includes passing through The second reading and writing data forwarding module that the preset interface is connected with the first reading and writing data forwarding module, and with described Second data forwarding client of two data transmitting servers connection;
The remote data access service device, for calling the interception function in the first blocking module, with by calling Function call packing function is intercepted, and is packed by the packing function pair data called;
The remote data access service device, is additionally operable to transmit the packet after packing to the first data forwarding service Device, mould is forwarded by first headend by packet by the first data forwarding client transmissions to the first reading and writing data Block;
First reading and writing data forwarding module, for being transmitted packet to the second reading and writing data mould by the preset interface Block, so that second data read-write module transmits packet to remote data access client, the preset interface includes Ethernet Controlling model port and serial line interface.
Alternatively, the remote data access service device, is additionally operable to by the data pack buffer after packing into transmit queue, And the first signal is sent to first data transmitting server, to notify first data transmitting server to be sent described Data are obtained in queue.
Alternatively, first data transmitting server, is additionally operable to receiving the first data forwarding client by During the packet of one reading and writing data forwarding module transmission, packet is transmitted to the first blocking module;
First blocking module, the packet for calling unpacking function pair to receive is unpacked, and is determined after unpacking The type identification that data are carried, the type identification based on determination calls the interception function in remote data access service device;
First blocking module, is additionally operable to, according to the interception function called, the packet be transmitted to teledata Access server.
Alternatively, first data transmitting server, is additionally operable to by the data pack buffer into receiving queue, concurrently Secondary signal is sent to first blocking module, so that first blocking module obtains packet in the receiving queue.
Alternatively, the preset interface also includes debugging port, and the debugging port is used for tune-up data.
In addition, to achieve the above object, the present invention also proposes a kind of data pack transmission method, applied to mobile terminal and The external equipment being connected by preset interface with the mobile terminal, the mobile terminal includes the first application processor, and The first modem being connected with the first Subscriber Identity Module and second user identification card, first modem includes remote Journey Data Access Server, the first blocking module and the first data transmitting server, first application processor include first Reading and writing data forwarding module and the first data forwarding client being connected with first data transmitting server;It is described external to set Standby to include the second application processor and second modem, the second modem includes remote data access client End, the second blocking module and the second data transmitting server, second application processor include by the preset interface and Second reading and writing data forwarding module of the first reading and writing data forwarding module connection, and with second data forwarding service Second data forwarding client of device connection;Methods described includes:
The remote data access service device calls the interception function in the first blocking module, to pass through the interception letter called Number calls packing function, and is packed by the packing function pair data called;
The remote data access service device transmits the packet after packing to the first data transmitting server, by described Packet is passed through the first data forwarding client transmissions to the first reading and writing data forwarding module by the first headend;
The first reading and writing data forwarding module is transmitted packet to the second reading and writing data mould by the preset interface Block, so that second data read-write module transmits packet to remote data access client, the preset interface includes Ethernet Controlling model port and serial line interface.
Alternatively, the remote data access service device transmits the packet after packing to the first data transmitting server The step of include:
The remote data access service device is by the data pack buffer after packing into transmit queue;
The remote data access service device sends the first signal to first data transmitting server, described to notify First data transmitting server obtains data in the transmit queue.
Alternatively, the data pack transmission method also includes:
First data transmitting server is forwarded by the first reading and writing data receiving the first data forwarding client During the packet of module transfer, packet is transmitted to the first blocking module;
The packet that first blocking module calls unpacking function pair to receive is unpacked, and determines the number after unpacking According to the type identification of carrying, the type identification based on determination calls the interception function in remote data access service device;
First blocking module transmits the packet to remote data access service according to the interception function called Device.
Alternatively, the step of the first data transmitting server transmits packet to the first blocking module includes:
First data transmitting server is by the data pack buffer into receiving queue;
First data transmitting server sends secondary signal to first blocking module, for the described first interception Module obtains packet in the receiving queue.
Alternatively, the preset interface also includes debugging port, and the debugging port is used for tune-up data.
The present invention provides a kind of data packet transmission system and method, and remote data access service device first calls the first interception mould Interception function in block, to be packed function by the interception function call called, and is entered by the packing function pair data called Row packing, remote data access service device again transmits the packet after packing to the first data transmitting server, by described the Packet is passed through the first data forwarding client transmissions to the first reading and writing data forwarding module, final first by one headend Reading and writing data forwarding module is transmitted packet to the second data read-write module by the preset interface, for the described second number Packet is transmitted to remote data access client according to module for reading and writing.In the present invention, remote data access service device passes through One blocking module call packing function pair interception data packed, and by packet by the first data transmitting server, First data forwarding client and the first reading and writing data forwarding module are transferred to the second reading and writing data forwarding module of external equipment, So that the second reading and writing data forwarding module transmits packet to remote data access client, to realize mobile terminal and external Data transfer between equipment.
Brief description of the drawings
Fig. 1 is the schematic diagram of the LTE network framework of one embodiment of the invention;
Fig. 2 is a kind of entity structure schematic diagram of mobile terminal of the present invention and external equipment communication connection;
Fig. 3 is a kind of hardware architecture diagram of mobile terminal of the present invention and external equipment communication connection;
Fig. 4 is the internal hardware structural representation of mobile terminal of the present invention and external equipment communication connection;
Fig. 5 is the schematic flow sheet of data pack transmission method first embodiment in the present invention;
Fig. 6 is the schematic flow sheet of data pack transmission method second embodiment in the present invention;
Fig. 7 is the schematic flow sheet of data pack transmission method 3rd embodiment in the present invention;
Fig. 8 is the schematic flow sheet of data pack transmission method fourth embodiment in the present invention;
Fig. 9 is the internal hardware structural representation of preset interface in 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. It should be noted that in the case where not conflicting, the embodiment in the present invention and the feature in embodiment mutually can be tied arbitrarily Close.
In order to which technical characteristic, purpose and effect to the present invention are more clearly understood from, described referring now to accompanying drawing Realize the mobile terminal of each embodiment of the invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be conducive to the explanation of the present invention, itself do not have a specific meaning.Therefore, " module " can mixedly make with " part " With.
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, external equipment 200, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, the UMTS Terrestrial radio access network of evolution) (non-label in figure), Evolution block core (EPC) (non-label in figure), home subscriber servers (HSS) 107, network (for example, internet) are (in figure not Label) and circuit switching system (non-label in figure).
E-UTRAN includes evolution B node (eNodeB) 101 and other eNodeB 102.ENodeB 101 is provided towards shifting The user plane of dynamic terminal 100 and the protocol terminations of chain of command.ENodeB 101 can be connected to other eNodeB via X2 interface. ENodeB 101 is alternatively referred to as base station, base transceiver station, radio base station, wireless set, transceiver function, basic service Collection, extended service set or some other suitable terms.ENodeB 101 is that mobile terminal 1 00 provides the access for going to EPC Point.
ENodeB 101 is connected to EPC by S1 interfaces.EPC includes mobile management entity (EEM) 104, other moving tubes Manage entity 106, gateway 103, and packet data network (PDN) gateway 105.Mobile management entity 104 is processing movement The control node of signaling between terminal 100 and EPC.Mobile management entity 104 provides carrying and connection management.All User IPs Packet is transmitted by gateway 103, and gateway 103 is itself coupled to PDN Gateway 105.PDN Gateway 105 provides UE IP Address is distributed and other functions.PDN Gateway 105 is connected to network, for example, internet.
Circuit switching system includes interaction solution module (IWS) 108, mobile switching centre (MSC) 109, base station 110 With movement station 111.In one aspect, circuit switching system can pass through IWS and MME (Mobility Management Entity, mobile management entity) communicated with EPS (Evolved Packet System, the grouping system of evolution).
Mobile terminal 1 00 passes through preset interface, such as USB (Universal Serial Bus, USB) data Line is connected with the communication of external equipment 200.
Fig. 2 is the entity schematic diagram of mobile terminal 1 00 of the present invention and the communication connection of external equipment 200.
As shown in Fig. 2 mobile terminal 1 00 is connected by USB data line with the communication of external equipment 200, wherein, the movement Terminal includes but is not limited to mobile phone, PC (Personal Computer, PC) or PAD (Personal Digital Assistant, personal digital assistant), the external equipment 200 is chosen as wireless Internet card or data card.
Fig. 3 is mobile terminal and a kind of hardware architecture diagram of external equipment communication connection in the embodiment of the present invention.
In embodiments of the present invention, mobile terminal 1 00 is connected by USB with external equipment 200.Mobile terminal 1 00 includes First process chip 001 and the first radio-frequency module 12 being connected with the first process chip 001.Wherein, the first process chip 001 is wrapped Include the first application processor (Application Processor) 10 and the first Subscriber Identity Module 13 and second user identification card The first modem 11 (modem1) and RPM (Resource Power Manager, resource power supervisor) of 14 connections 15.External equipment 200 includes second processing chip 002 and the second radio-frequency module 22 being connected with second processing chip 002.Its In, second processing chip 002 includes the second application processor 20 and second modem (modem2) 21.Subscriber Identity Module is SIM card.
The inner frame of first application processor 10 and the second application processor 20 includes application layer, ccf layer etc., can locate Manage 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 second user identification card 14 or the SIM card parameter in one Subscriber Identity Module 13 accesses eNodeB 101, and second modem 21 can be known by second user Not Ka 14 or first the SIM card parameter of Subscriber Identity Module 13 access eNodeB 101, 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 poweraudio 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.
It should be noted that the data transfer between traditional modem, is usually in remote data access service In device and remote data access client, call function realizes that the data in data transfer, i.e. modem can not be passed directly Transport in application processor.Therefore, in the present invention, in order to solve this problem, the first blocking module is added in the terminal, The second blocking module is added in external equipment, to intercept remote data access service device and teledata visit by blocking module Ask the data of client, and by the application processor of the data transfer of interception to mobile terminal and external equipment, to realize tune Data transfer in modulator-demodulator is transmitted to opposite end to application processor, then by application processor.
Reference picture 4, Fig. 4 is the internal hardware structural representation of mobile terminal of the present invention and external equipment communication connection.
As shown in Figure 4, the first modem 11 includes UIM (User Identity Module) drivings 112, first SIM card module agency 113, the blocking module of remote sim data access _ server (remote data access service device) 114, first 115 and data forwarding _ server1 (the first data transmitting server) 116.First application processor 10 include data forwarding _ Client1 (the first data forwarding client) 011 and the first reading and writing data forwarding module 012.
Second modem 21 includes modem Non-Access Stratums part 212, the second SIM card module agency 213, remote sim The blocking module 215 of data access _ client (remote data access client) 214, second and data forwarding _ server2 (second Data transmitting server) 216, the second application processor 20 includes data forwarding _ client2 (the second data forwarding client) 021 and the second reading and writing data forwarding module 022.
Wherein, UIM drivings 112 store the necessary data of access network, such as UIM ID (Identification, body Part), authorization data, IMSI number etc..
Remote sim data access _ server114 and remote sim data access _ client214 is used to realize the first modulation The transmission of SIM card data between demodulator 11 and second modem 21.
First blocking module 115 is used to intercept the SIM card number transmitted needed for remote sim data access _ server114 According to;Second blocking module 215 is used to intercept the SIM card data transmitted needed for remote sim data access _ client214.Pass through First blocking module 115 and the second blocking module 215 realize that remote sim data access _ server114 and remote sim data are visited Ask _ client214 in SIM card data interaction, specifically:First blocking module 115 or the second blocking module 215 are truncated to number After, by the data transfer of interception to the first data transmitting server 116 or the second data transmitting server 216, to realize The transmission of data.
Second data transmitting server 216 and the second data forwarding client 021 are corresponding, for realizing the second modulatedemodulate Adjust the data transfer between the application processor 20 of device 21 and second;First data transmitting server 116 and the first data forwarding visitor Family end 011 is corresponding, for realizing the data transfer between the first modem 11 and the first application processor 10.
First reading and writing data forwarding module 012 and the second reading and writing data forwarding module 022 are used to realize that second should by USB With the data transfer between the application processor 10 of processor 20 and first.
In the present invention, the interception forwarding of data is realized, remote data access service device 114 can be needed to the function used Rewriting is all replaced, specifically:The first blocking module is configured in the terminal, in first blocking module, is configured with two Plant and intercept function, respectively respond (response) functions and ind (notice) function, then using two kinds of functions of configuration, replace The function that the script of remote data access service device 114 is called.
In addition, to realize the interception forwarding of data in external equipment, equally remote data access client 214 is used To function be replaced rewriting, specifically, the second blocking module is configured in external equipment, in second blocking module, matched somebody with somebody A kind of interception function is put, the interception function is cmd (order) function, then using the function of configuration, replace teledata visit Ask the script of client 214 function to be called.
In the embodiment of the present invention, the first blocking module of mobile terminal and the second blocking module of external equipment, Ke Yidou Configure three kinds of cmd functions, respond functions and ind functions, but be due to that generally mobile terminal processing is cmd classes The data of type, and external equipment is typically handled is the data of respond and ind types, therefore preferably replace in the terminal Respond functions and ind functions are changed, so that subsequent transmission is into external equipment, so that external equipment handles the respond functions With ind functions, and in external equipment replace cmd functions, so that subsequent transmission is into mobile terminal, for mobile terminal processing The cmd functions.
In the present embodiment, it is necessary to which explanation, first blocking module 115 can be located at remote data access service device 114 and first between data transmitting server 116, can also be embedded into remote data access service device 114, be the equal of by first Blocking module 115 and remote data access service device 114 are coupled, in particular it is required that in remote data access service device 114 Bottom in change code, to realize the coupling of the first blocking module and remote data access service device.Second blocking module 215 Equally, it can be located between the data transmitting server 216 of remote data access client 214 and second, can also be embedded into long-range number According in access client 214.
On the basis of the first blocking module 115 is configured, remote data access service device 114 can call described first to intercept Interception function in module 115, realizes the interception forwarding of data, to forward the data to the first data transmitting server 116, most Realize data forwarding to external equipment by the first data transmitting server 116 eventually.
In embodiments of the present invention, because mobile terminal and external equipment all include application processor and modulation /demodulation Device, and the first data transmitting server 116 and the second data transmitting server 216 are located at modem, the first data forwarding The data forwarding client 021 of client 011 and second is located at application processor.Therefore, in the present embodiment, transmission of data packets Occur between mobile terminal and external equipment, and the data forwarding mechanism and the data forwarding machine of external equipment of mobile terminal System is consistent, in each embodiment of the invention, using mobile terminal as executive agent, detailed description transmission of data packets, but ability Field technique personnel are it should be appreciated that when replacing the mobile terminal in the present invention with external equipment, can equally realize this hair Bright transmission of data packets.
Specifically, mobile terminal hair data:
Remote data access service device 114- the first blocking module 115- the first data transmitting server the first data of 116- Forward client the first reading and writing datas of 011- forwarding module 012;
Mobile terminal receives data:
First reading and writing data forwarding module 012- the first data forwarding client the first data transmitting servers of 011- 116- First blocking module 115- remote data access services device 114.
External equipment sends out data:
Remote data access client 214- the second blocking module 215- the second data transmitting server the second data of 216- Forward client the second reading and writing datas of 021- forwarding module 022;
External equipment receives data:
Second reading and writing data forwarding module 022- the second data forwarding client the second data transmitting servers of 021- 216- Second blocking module 215- remote data access client 214.
In the embodiment of the present invention, although be described in detail with end where mobile terminal, but the data-set of external equipment System is consistent with mobile terminal, does not repeat.
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 packet transmission system, and the data packet transmission system includes mobile terminal 1 00, and The external equipment 200 being connected by preset interface with the mobile terminal 1 00;The mobile terminal 1 00 is included at the first application Manage device 10, and the first modem 11 being connected with the first Subscriber Identity Module 13 and second user identification card 14, described the One modem 11 includes remote data access service device 114, the first blocking module 115 and the first data transmitting server 116, first application processor 10 include the first reading and writing data forwarding module 012 and with first data transmitting server First data forwarding client 011 of 116 connections;The external equipment 200 includes the second application processor 20 and the second modulation Demodulator 21, the second modem 21 includes remote data access client 214, the second blocking module 215 and second Data transmitting server 216, second application processor 20 includes passing through the preset interface and first reading and writing data The second reading and writing data forwarding module 022 that forwarding module 012 is connected, and be connected with second data transmitting server 216 The second data forwarding client 021;
The remote data access service device, for calling the interception function in the first blocking module, with by calling Function call packing function is intercepted, and is packed by the packing function pair data called;
The remote data access service device, is additionally operable to transmit the packet after packing to the first data forwarding service Device, mould is forwarded by first headend by packet by the first data forwarding client transmissions to the first reading and writing data Block;
First reading and writing data forwarding module, for being transmitted packet to the second reading and writing data mould by the preset interface Block, so that second data read-write module transmits packet to remote data access client, the preset interface includes Ethernet Controlling model port and serial line interface.
In the present embodiment, after the data transfer request of external equipment transmission is received, the long-range number of mobile terminal According to accessing after server gets data to be sent from first or second user identification card, call in the first blocking module Interception function, i.e. which kind of function respond functions or ind functions will specifically call, be determined according to the type of data, if number According to external equipment to be responded to, then remote data access service device calls respond functions, if data to be sent to it is external What equipment was notified, then remote data access service device calls ind functions.
Remote data access service device is called in the first blocking module after interception function, by the interception function again Packing function is called, in the present embodiment, although the interception function in the first blocking module includes two kinds, but is blocked by two kinds Cut function call to packing function be all it is same, call packing function after, the remote data access service device Packed by the packing function pair data called, specifically:The remote data access service device passes through the interception called Function pair packing function transfer parameter, and packed using the packing function pair data of incoming parameter.Due to intercepting function bag Two kinds are included, therefore, the parameter by the different incoming packing parameters of interception function is different, then, during to packing function transfer parameter, And packed by the packing function pair data of incoming parameter, you can obtain the packet in different packet header.In the present embodiment, beat Bag function is to use the packing function in existing mobile terminal, is not detailed herein.
Remote data access service device is obtained to data packing after packet, and the packet after packing is transmitted to first Data transmitting server, the first data forwarding client transmissions to the first number are passed through by first headend by packet According to read-write forwarding module.It should be noted that, it is necessary to packet after the first data transmitting server gets packet Capability value parsed, with determine packet capability value whether exceed predetermined threshold value, if the capability value of packet exceed institute Predetermined threshold value is stated, then the packet is split, each packet is obtained, then in each packet after fractionation, To being identified in the middle of the addition of middle packet, centre mark is represented with the second preset value, such as flag=0, and end data packet is added Plus end of identification, the end of identification is represented with the first preset value, such as flag=1, then will add each tagged packet Send to the first data forwarding client.First data forwarding client is received after packet, delivers a packet to One reading and writing data forwarding module.
, will by preset interface after the first reading and writing data forwarding module receives packet in the present embodiment Packet is transmitted to the second reading and writing data forwarding module of external equipment, so that the second reading and writing data forwarding module is by data Bag is transmitted to remote data access client, and in the present embodiment, the preset interface is USB interface, and USB interface may include network Port and serial ports, the network port are chosen as Ethernet Controlling model port (Communication Device Class Ethernet Networking Control Model, CDC ECM, communication device class-Ethernet Controlling model), the serial ports is Serial line interface (Serial, abbreviation serial ports), wherein, ECM ports are used for transmitting network data, i.e. TCP (Transmission Control Protocol, transmission control protocol)/IP (Internet Protocol, Internet protocol) data transmission, string Mouth is used to transmit SIM card data, i.e. Subscriber Identity Module data.
In the embodiment of the present invention, the data that remote data access service device is obtained are SIM card data, therefore the first data are read Write the second reading and writing data forwarding module that packet is transferred to external equipment by forwarding module from serial ports.
The technical scheme that the present embodiment is proposed, remote data access service device first calls the interception letter in the first blocking module Number, to be packed function by the interception function call called, and is packed by the packing function pair data called, long-range several The packet after packing is transmitted to the first data transmitting server again according to server is accessed, will by first headend Packet forwards mould by the first data forwarding client transmissions to the first reading and writing data forwarding module, final first reading and writing data Block is transmitted packet to the second data read-write module by the preset interface, so that second data read-write module is by number Transmitted according to bag to remote data access client.In the present invention, remote data access service device is called by the first blocking module The data of packing function pair interception are packed, and packet is passed through into the first data transmitting server, the first data forwarding visitor Family end and the first reading and writing data forwarding module are transferred to the second reading and writing data forwarding module of external equipment, so that the second data are read Write forwarding module to transmit packet to remote data access client, to realize the data between mobile terminal and external equipment Transmission.
Further, the second embodiment of data packet transmission system of the present invention is proposed.
The difference of the second embodiment of data packet transmission system and the first embodiment of data packet transmission system is:It is described Remote data access service device, is additionally operable to by the data pack buffer after packing into transmit queue, and sends the first signal to institute The first data transmitting server is stated, to notify first data transmitting server to obtain data in the transmit queue.
In the present embodiment, after remote data access service device is packed to data, first by data pack buffer to sending team In row, the transmit queue can be set up in remote data access service device, can also be set up in the first blocking module, the hair The data transfer for sending queue to be used between remote data access service device and the first blocking module.In addition, in the embodiment of the present invention, Receiving queue can be also set up, the receiving queue can be equally set up in remote data access service device, or foundation is blocked first Cut in module, the receiving queue is equally used for the data transfer between remote data access service device and the first blocking module.Its In, the transmit queue is used for the data for storing the placement of remote data access service device, and by the first blocking module from the transmission Data are extracted in queue, receiving queue is used to store the data that the first blocking module is placed, and by remote data access service device Data are extracted from the receiving queue.
It is described long-range after data pack buffer after the remote data access service device is by packing is into transmit queue Data Access Server sends the first signal to first data transmitting server, to notify first data forwarding service Device obtains data in the transmit queue, it is ensured that the promptness of data interception forwarding.In the present embodiment, the first signal is used for Prompting obtains data from transmit queue.
In the embodiment of the present invention, in addition to:
Second reading and writing data forwarding module of external equipment, after receiving packet by USB interface, passes through Two data forwarding clients transmit packet to the second data transmitting server, by second data transmitting server by number Transmitted according to bag to the second blocking module;
Second blocking module, for receiving packet after, call and connect the packet that bag function pair receives and solved Bag, and the type identification that the data after unpacking are carried is determined, the type identification based on determination calls remote data access client In interception function;
Second blocking module, is additionally operable to, according to the interception function called, the packet be transmitted to remote data access Client.
Wherein, described " the second data transmitting server transmits packet to the second blocking module " includes:
Second data transmitting server is by the data pack buffer into receiving queue;
Second data transmitting server sends secondary signal to second blocking module, for second blocking module Packet is obtained in the receiving queue.
That is, after the second reading and writing data forwarding module receives packet by the serial ports of USB interface, second is first passed through Data forwarding client transmits packet to the second data transmitting server, when the second data transmitting server receives data After bag, secondary signal can be then sent to second blocking module, with logical by the data pack buffer into receiving queue Know that second blocking module obtains packet in the receiving queue.Secondary signal is used to point out to obtain from receiving queue Data.
Second blocking module is got from receiving queue after packet, is called and is unpacked the packet that function pair is got Unpacked, unpacking function used herein is also existing unpacking function, is not detailed herein.Using unpacking function pair Packet progress is connect after bag, the type identification that identification data is carried, and is due to mobile terminal transmission is above already mentioned above The data of respond or ind types, therefore the type identification currently identified is respond types or ind types, true Determine after type identification, second blocking module calls existing interception function in remote data access client, i.e., Respond or ind functions, so that according to the interception function called, the packet is transmitted to remote data access client, from And complete the data interception repeating process between mobile terminal and external equipment.
In the present embodiment, data are transmitted by message queue so that the transmission of data has timing, due to message team The characteristics of row first in first out, prevent that the transmission sequence of data is chaotic, so as to improve the accuracy of data transfer.
It should be appreciated that in the present embodiment, being the equal of the data acquisition request that mobile terminal is sent according to external equipment, carrying Data feedback is taken out to external equipment, so as to complete the data transfer between mobile terminal and external equipment.
Further, the 3rd embodiment of data packet transmission system of the present invention is proposed.
The difference of the 3rd embodiment of data packet transmission system and the first or second embodiments of data packet transmission system exists In, first data transmitting server, it is additionally operable to turn receiving the first data forwarding client and pass through the first reading and writing data When sending out the packet of module transfer, packet is transmitted to the first blocking module;
First blocking module, the packet for calling unpacking function pair to receive is unpacked, and is determined after unpacking The type identification that data are carried, the type identification based on determination calls the interception function in remote data access service device;
First blocking module, is additionally operable to, according to the interception function called, the packet be transmitted to teledata Access server.
In the present embodiment, except sending respond or ind classifications by mobile terminal medium-long range Data Access Server Remote data access client of the data to external equipment, mobile terminal medium-long range Data Access Server can equally be received far The data for the cmd classifications that number of passes is sent according to access client.
First data transmitting server passes through the first reading and writing data forwarding module receiving the first data forwarding client During the packet of transmission, de-packaging operation is performed to packet and obtains data, and to untiing after the flag identification informations of data enter In row identification, the present embodiment, when flag identification informations are the first preset value, such as flag=1 parses end of identification, this When, it is last packet to represent the packet, can be transmitted packet to the first blocking module.If parsing middle mark Know, i.e., flag identification informations be the second preset value, such as flag=0, it is believed that the packet is not last packet, now, First data transmitting server delays the data buffer storage received in buffering area to interim, and continues to packet, is only connecing When receiving the corresponding flag identification informations of packet for the first preset value, each data being just buffered in interim slow buffering area Wrap and sent after the packet with being currently received is combined to the first blocking module.
In the present embodiment, when the first data transmitting server parses mark in the middle of packet carrying, specification is current The packet received is intermediate data bag, and the packet sended over from external equipment is not sent completely also, now, is first delayed Intermediate data bag is deposited, to receive during end data packet, just combination is transmitted, and prevents the situation of packet loss.
First blocking module is received after packet, and the packet for calling unpacking function pair to receive is unpacked, and It is determined that the type identification that the data after unpacking are carried, because the data that remote data access client already mentioned above is sent are Cmd data, therefore current type identification is exactly cmd, is then based on the type mark, calls in remote data access service device Interception function, in the present embodiment, the interception function is cmd functions, final according to the interception function called, by the packet Transmit to remote data access service device.
It should be understood that in the present embodiment, data acquisition request is initiated equivalent to external equipment, mobile terminal receives the data Request is obtained, so as to complete the transmitting procedure of data.
Further, the fourth embodiment of data packet transmission system of the present invention is proposed.
The difference of the fourth embodiment of data packet transmission system and the 3rd embodiment of data packet transmission system is:It is described First data transmitting server, is additionally operable to by the data pack buffer into receiving queue, and sends secondary signal to described One blocking module, so that first blocking module obtains packet in the receiving queue.
In the present embodiment, the system also includes:
The remote data access client of external equipment, for calling the interception function in the second blocking module, to pass through The interception function call packing function called, and packed by the packing function pair data called;
The remote data access client, is additionally operable to transmit the packet after packing to the second data forwarding service Device, mould is forwarded by second headend by packet by the second data forwarding client transmissions to the second reading and writing data Block;
Second reading and writing data forwarding module, for being transmitted packet to the first reading and writing data mould by the preset interface Block, so that first data read-write module transmits packet to remote data access service device.
It is specifically, described that " remote data access client transmits the packet after packing to the second data forwarding service Device " includes:
The remote data access client is by the data pack buffer after packing into transmit queue;
The first signal is sent to second data transmitting server, to notify second data transmitting server in institute State and data are obtained in transmit queue.
It should be noted that remote data access client is obtained in the data for receiving the agency's transmission of the second SIM card module When taking request, the data acquisition request is changed into data, based on blocking in the blocking module of data call second after conversion Cut function.In the present embodiment, the interception function in the second blocking module is cmd functions, therefore, remote data access client Data to be sent are cmd data, because the interception function in the second blocking module is cmd functions, therefore, remote data access After client call packing function, the parameter in incoming packing function only has the packet header of packet after one kind, packing to identify also only There are one kind, cmd marks.After the remote data access client is packed to data, by data pack buffer into transmit queue, And the first signal is sent to the second data transmitting server, data are extracted in transmit queue by second headend Bag.Second headend is extracted after packet, can equally be decided whether to perform according to the capability value of packet to split and grasped Make, process of specifically unpacking is not repeated as detailed above herein.Then, packet is passed through second by the second headend Data forwarding client transmissions to the second reading and writing data forwarding module, the second reading and writing data forwarding module receive packet it Afterwards, packet is transmitted to the first data read-write module by the serial ports of USB interface, so that first data read-write module will Packet passes through the first data forwarding client transmissions to the first data transmitting server.
After the first data transmitting server receives packet, first by data pack buffer into receiving queue, then Secondary signal is sent to first blocking module, to notify first blocking module to obtain data in the receiving queue Bag.
In the present embodiment, data are transmitted by message queue so that the transmission of data has timing, due to message team The characteristics of row first in first out, prevent that the transmission sequence of data is chaotic, so as to improve the accuracy of data transfer.
Further, the 5th embodiment of data packet transmission system of the present invention is proposed.
The difference of 5th embodiment of data packet transmission system and first to fourth embodiment of data packet transmission system exists In the preset interface also includes debugging port, and the debugging port is used for tune-up data.
In the present embodiment, the internal hardware structural representation of preset interface can refer to Fig. 9, as shown in figure 9, described default Interface includes Ethernet Controlling model port and serial ports.
Further, in the embodiment of the present invention, preset interface except including Ethernet Controlling model port and serial line interface, Debugging port can also be included, the debugging port is chosen as diag (diagnostics, debugging)/adb (Android Debug Bridge, Android debugging bridge) port, for tune-up data.
In the embodiment of the present invention, with continued reference to Fig. 9, Ethernet Controlling model port, serial ports and the two ends point for debugging port The first application processor 10 and the second application processor 20 are not connected to.It should be noted that at the first application of mobile terminal The role for managing device 10 is host (main frame), and the role of the second application processor 20 of external equipment is device (equipment).With Too network control simulation port, serial ports and debugging port two ends are connected respectively to the first application processor 10 and the second application processor In the case of 20, the first application processor 10 and the second application processor 20 are respectively arranged with USB host drivings and USB Device drive, USB host driving and USB device drive again be respectively arranged with corresponding trawl performance, serial port drive and Debug port driving.
In the embodiment of the present invention, the driving file of driving file and serial line interface in Ethernet Controlling model port is not Together, and the drive of Ethernet Controlling model port and serial line interface in the first application processor 10 and the second application processor 20 Dynamic file is also differed.Mobile terminal and external equipment are real by the too network control simulation port in USB interface and serial line interface The transmission of existing network data and SIM card data.
The present invention further provides a kind of data pack transmission method.
Reference picture 5, Fig. 5 is the schematic flow sheet of data pack transmission method first embodiment of the present invention.
The present embodiment proposes a kind of data pack transmission method, and there is provided the reality of data pack transmission method in the present embodiment Example is applied, it is necessary to which explanation is, although show logical order in flow charts, but in some cases, can with different from Order herein performs shown or described step.
In the present invention, data pack transmission method is applied to mobile terminal 1 00 and whole by preset interface and the movement Hold connection external equipment 200, the mobile terminal 1 00 include the first application processor 10, and with the first Subscriber Identity Module 13 and second user identification card 14 connect the first modem 11, first modem 11 include teledata visit Ask server 114, the first blocking module 115 and the first data transmitting server 116, first application processor 10 includes the One reading and writing data forwarding module 012 and the first data forwarding client being connected with first data transmitting server 116 011;The external equipment 200 includes the second application processor 20 and second modem 21, the second modem 21 include remote data access client 214, the second blocking module 215 and the second data transmitting server 216, and described second should The second reading and writing data for including being connected with the first reading and writing data forwarding module 012 by the preset interface with processor 20 Forwarding module 022, and the second data forwarding client 021 being connected with second data transmitting server 216;The side Method includes:
Step S10, the remote data access service device calls the interception function in the first blocking module, with by calling Interception function call packing function, and packed by the packing function pair data called;
Step S20, the remote data access service device transmits the packet after packing to the first data forwarding service Device, mould is forwarded by first headend by packet by the first data forwarding client transmissions to the first reading and writing data Block;
Step S30, the first reading and writing data forwarding module, which is transmitted packet to the second data by the preset interface, to be read Writing module, so that second data read-write module transmits packet to remote data access client, the preset interface Including Ethernet Controlling model port and serial line interface.
In the present embodiment, after the data transfer request of external equipment transmission is received, the long-range number of mobile terminal According to accessing after server gets data to be sent from first or second user identification card, call in the first blocking module Interception function, i.e. which kind of function respond functions or ind functions will specifically call, be determined according to the type of data, if number According to external equipment to be responded to, then remote data access service device calls respond functions, if data to be sent to it is external What equipment was notified, then remote data access service device calls ind functions.
Remote data access service device is called in the first blocking module after interception function, by the interception function again Packing function is called, in the present embodiment, although the interception function in the first blocking module includes two kinds, but is blocked by two kinds Cut function call to packing function be all it is same, call packing function after, the remote data access service device Packed by the packing function pair data called, specifically:The remote data access service device passes through the interception called Function pair packing function transfer parameter, and packed using the packing function pair data of incoming parameter.Due to intercepting function bag Two kinds are included, therefore, the parameter by the different incoming packing parameters of interception function is different, then, during to packing function transfer parameter, And packed by the packing function pair data of incoming parameter, you can obtain the packet in different packet header.In the present embodiment, beat Bag function is to use the packing function in existing mobile terminal, is not detailed herein.
Remote data access service device is obtained to data packing after packet, and the packet after packing is transmitted to first Data transmitting server, the first data forwarding client transmissions to the first number are passed through by first headend by packet According to read-write forwarding module.It should be noted that, it is necessary to packet after the first data transmitting server gets packet Capability value parsed, with determine packet capability value whether exceed predetermined threshold value, if the capability value of packet exceed institute Predetermined threshold value is stated, then the packet is split, each packet is obtained, then in each packet after fractionation, To being identified in the middle of the addition of middle packet, centre mark is represented with the second preset value, such as flag=0, and end data packet is added Plus end of identification, the end of identification is represented with the first preset value, such as flag=1, then will add each tagged packet Send to the first data forwarding client.First data forwarding client is received after packet, delivers a packet to One reading and writing data forwarding module.
, will by preset interface after the first reading and writing data forwarding module receives packet in the present embodiment Packet is transmitted to the second reading and writing data forwarding module of external equipment, so that the second reading and writing data forwarding module is by data Bag is transmitted to remote data access client, and in the present embodiment, the preset interface is USB interface, and USB interface may include network Port and serial ports, the network port are chosen as Ethernet Controlling model port (Communication Device Class Ethernet Networking Control Model, CDC ECM, communication device class-Ethernet Controlling model), the serial ports is Serial line interface (Serial, abbreviation serial ports), wherein, ECM ports are used for transmitting network data, i.e. TCP (Transmission Control Protocol, transmission control protocol)/IP (Internet Protocol, Internet protocol) data transmission, string Mouth is used to transmit SIM card data, i.e. Subscriber Identity Module data.
In the embodiment of the present invention, the data that remote data access service device is obtained are SIM card data, therefore the first data are read Write the second reading and writing data forwarding module that packet is transferred to external equipment by forwarding module from serial ports.
The technical scheme that the present embodiment is proposed, remote data access service device first calls the interception letter in the first blocking module Number, to be packed function by the interception function call called, and is packed by the packing function pair data called, long-range several The packet after packing is transmitted to the first data transmitting server again according to server is accessed, will by first headend Packet forwards mould by the first data forwarding client transmissions to the first reading and writing data forwarding module, final first reading and writing data Block is transmitted packet to the second data read-write module by the preset interface, so that second data read-write module is by number Transmitted according to bag to remote data access client.In the present invention, remote data access service device is called by the first blocking module The data of packing function pair interception are packed, and packet is passed through into the first data transmitting server, the first data forwarding visitor Family end and the first reading and writing data forwarding module are transferred to the second reading and writing data forwarding module of external equipment, so that the second data are read Write forwarding module to transmit packet to remote data access client, to realize the data between mobile terminal and external equipment Transmission.
Further, reference picture 6, propose the second embodiment of data pack transmission method of the present invention.
The difference of the second embodiment of data pack transmission method and the first embodiment of data pack transmission method is, described Step S20 includes:
Step S21, the remote data access service device is by the data pack buffer after packing into transmit queue;
Step S22, sends the first signal to first data transmitting server, to notify first data forwarding to take Business device obtains data in the transmit queue.
In the present embodiment, after remote data access service device is packed to data, first by data pack buffer to sending team In row, the transmit queue can be set up in remote data access service device, can also be set up in the first blocking module, the hair The data transfer for sending queue to be used between remote data access service device and the first blocking module.In addition, in the embodiment of the present invention, Receiving queue can be also set up, the receiving queue can be equally set up in remote data access service device, or foundation is blocked first Cut in module, the receiving queue is equally used for the data transfer between remote data access service device and the first blocking module.Its In, the transmit queue is used for the data for storing the placement of remote data access service device, and by the first blocking module from the transmission Data are extracted in queue, receiving queue is used to store the data that the first blocking module is placed, and by remote data access service device Data are extracted from the receiving queue.
It is described long-range after data pack buffer after the remote data access service device is by packing is into transmit queue Data Access Server sends the first signal to first data transmitting server, to notify first data forwarding service Device obtains data in the transmit queue, it is ensured that the promptness of data interception forwarding.In the present embodiment, the first signal is used for Prompting obtains data from transmit queue.
In the embodiment of the present invention, after the step S30, methods described also includes:
Step A, the second reading and writing data forwarding module of external equipment is received by USB interface after packet, is passed through Second data forwarding client transmits packet to the second data transmitting server, will by second data transmitting server Packet is transmitted to the second blocking module;
Step B, the second blocking module is received after packet, is called and is connect the packet that bag function pair receives and solved Bag, and the type identification that the data after unpacking are carried is determined, the type identification based on determination calls remote data access client In interception function;
Step C, the second blocking module transmits the packet to remote data access visitor according to the interception function called Family end.
Wherein, the step of described " the second data transmitting server transmits packet to the second blocking module ", includes:
Step C1, the second data transmitting server is by the data pack buffer into receiving queue;
Step C2, sends secondary signal to second blocking module, so that second blocking module is received described Packet is obtained in queue.
That is, after the second reading and writing data forwarding module receives packet by the serial ports of USB interface, second is first passed through Data forwarding client transmits packet to the second data transmitting server, when the second data transmitting server receives data After bag, secondary signal can be then sent to second blocking module, with logical by the data pack buffer into receiving queue Know that second blocking module obtains packet in the receiving queue.Secondary signal is used to point out to obtain from receiving queue Data.
Second blocking module is got from receiving queue after packet, is called and is unpacked the packet that function pair is got Unpacked, unpacking function used herein is also existing unpacking function, is not detailed herein.Using unpacking function pair Packet progress is connect after bag, the type identification that identification data is carried, and is due to mobile terminal transmission is above already mentioned above The data of respond or ind types, therefore the type identification currently identified is respond types or ind types, true Determine after type identification, second blocking module calls existing interception function in remote data access client, i.e., Respond or ind functions, so that according to the interception function called, the packet is transmitted to remote data access client, from And complete the data interception repeating process between mobile terminal and external equipment.
In the present embodiment, data are transmitted by message queue so that the transmission of data has timing, due to message team The characteristics of row first in first out, prevent that the transmission sequence of data is chaotic, so as to improve the accuracy of data transfer.
It should be appreciated that in the present embodiment, being the equal of the data acquisition request that mobile terminal is sent according to external equipment, carrying Data feedback is taken out to external equipment, so as to complete the data transfer between mobile terminal and external equipment.
Further, reference picture 7, propose the 3rd embodiment of data pack transmission method of the present invention.
The difference of the 3rd embodiment of data pack transmission method and the first or second embodiments of data pack transmission method exists In methods described also includes:
Step S40, the first data transmitting server passes through the first reading and writing data receiving the first data forwarding client During the packet of forwarding module transmission, packet is transmitted to the first blocking module;
Step S50, the packet that the first blocking module calls unpacking function pair to receive is unpacked, and is determined after unpacking The type identification that carries of data, the type identification based on determination calls the interception function in remote data access service device;
Step S60, according to the interception function called, the packet is transmitted to remote data access service device.
In the present embodiment, except sending respond or ind classifications by mobile terminal medium-long range Data Access Server Remote data access client of the data to external equipment, mobile terminal medium-long range Data Access Server can equally be received far The data for the cmd classifications that number of passes is sent according to access client.
First data transmitting server passes through the first reading and writing data forwarding module receiving the first data forwarding client During the packet of transmission, de-packaging operation is performed to packet and obtains data, and to untiing after the flag identification informations of data enter In row identification, the present embodiment, when flag identification informations are the first preset value, such as flag=1 parses end of identification, this When, it is last packet to represent the packet, can be transmitted packet to the first blocking module.If parsing middle mark Know, i.e., flag identification informations be the second preset value, such as flag=0, it is believed that the packet is not last packet, now, First data transmitting server delays the data buffer storage received in buffering area to interim, and continues to packet, is only connecing When receiving the corresponding flag identification informations of packet for the first preset value, each data being just buffered in interim slow buffering area Wrap and sent after the packet with being currently received is combined to the first blocking module.
In the present embodiment, when the first data transmitting server parses mark in the middle of packet carrying, specification is current The packet received is intermediate data bag, and the packet sended over from external equipment is not sent completely also, now, is first delayed Intermediate data bag is deposited, to receive during end data packet, just combination is transmitted, and prevents the situation of packet loss.
First blocking module is received after packet, and the packet for calling unpacking function pair to receive is unpacked, and It is determined that the type identification that the data after unpacking are carried, because the data that remote data access client already mentioned above is sent are Cmd data, therefore current type identification is exactly cmd, is then based on the type mark, calls in remote data access service device Interception function, in the present embodiment, the interception function is cmd functions, final according to the interception function called, by the packet Transmit to remote data access service device.
It should be understood that in the present embodiment, data acquisition request is initiated equivalent to external equipment, mobile terminal receives the data Request is obtained, so as to complete the transmitting procedure of data.
Further, reference picture 8, propose the fourth embodiment of data pack transmission method of the present invention.
The difference of the fourth embodiment of data pack transmission method and the 3rd embodiment of data pack transmission method is, described Step S40 includes:
Step S41, first data transmitting server is by the data pack buffer into receiving queue;
Step S42, sends secondary signal to first blocking module, so that first blocking module is received described Packet is obtained in queue.
In the present embodiment, before the step S40, methods described includes:
Interception function in step D, the blocking module of remote data access client call second of external equipment, to pass through The interception function call packing function called, and packed by the packing function pair data called;
Step E, the remote data access client transmits the packet after packing to the second data transmitting server, Packet is passed through into the second data forwarding client transmissions to the second reading and writing data forwarding module by second headend;
Step F, the second reading and writing data forwarding module is transmitted packet to the first reading and writing data by the preset interface Module, so that first data read-write module transmits packet to remote data access service device.
Specifically, the step E includes:
Step E1, the remote data access client is by the data pack buffer after packing into transmit queue;
Step E2, sends the first signal to second data transmitting server, to notify second data forwarding to take Business device obtains data in the transmit queue.
It should be noted that remote data access client is obtained in the data for receiving the agency's transmission of the second SIM card module When taking request, the data acquisition request is changed into data, based on blocking in the blocking module of data call second after conversion Cut function.In the present embodiment, the interception function in the second blocking module is cmd functions, therefore, remote data access client Data to be sent are cmd data, because the interception function in the second blocking module is cmd functions, therefore, remote data access After client call packing function, the parameter in incoming packing function only has the packet header of packet after one kind, packing to identify also only There are one kind, cmd marks.After the remote data access client is packed to data, by data pack buffer into transmit queue, And the first signal is sent to the second data transmitting server, data are extracted in transmit queue by second headend Bag, the second headend is extracted after packet, can equally be decided whether to perform according to the capability value of packet to split and grasped Make, process of specifically unpacking is not repeated as detailed above herein.Then, packet is passed through second by the second headend Data forwarding client transmissions to the second reading and writing data forwarding module, the second reading and writing data forwarding module receive packet it Afterwards, packet is transmitted to the first data read-write module by the serial ports of USB interface, so that first data read-write module will Packet passes through the first data forwarding client transmissions to the first data transmitting server.
After the first data transmitting server receives packet, first by data pack buffer into receiving queue, then Secondary signal is sent to first blocking module, to notify first blocking module to obtain data in the receiving queue Bag.
In the present embodiment, data are transmitted by message queue so that the transmission of data has timing, due to message team The characteristics of row first in first out, prevent that the transmission sequence of data is chaotic, so as to improve the accuracy of data transfer.
Further, the 5th embodiment of data pack transmission method of the present invention is proposed.
The difference of 5th embodiment of data pack transmission method and first to fourth embodiment of data pack transmission method exists In the preset interface also includes debugging port, and the debugging port is used for tune-up data.
In the present embodiment, the internal hardware structural representation of preset interface can refer to Fig. 9, as shown in figure 9, described default Interface includes Ethernet Controlling model port and serial ports.
Further, in the embodiment of the present invention, preset interface except including Ethernet Controlling model port and serial line interface, Debugging port can also be included, the debugging port is chosen as diag (diagnostics, debugging)/adb (Android Debug Bridge, Android debugging bridge) port, for tune-up data.
In the embodiment of the present invention, with continued reference to Fig. 9, Ethernet Controlling model port, serial ports and the two ends point for debugging port The first application processor 10 and the second application processor 20 are not connected to.It should be noted that at the first application of mobile terminal The role for managing device 10 is host (main frame), and the role of the second application processor 20 of external equipment is device (equipment).With Too network control simulation port, serial ports and debugging port two ends are connected respectively to the first application processor 10 and the second application processor In the case of 20, the first application processor 10 and the second application processor 20 are respectively arranged with USB host drivings and USB Device drive, USB host driving and USB device drive again be respectively arranged with corresponding trawl performance, serial port drive and Debug port driving.
In the embodiment of the present invention, the driving file of driving file and serial line interface in Ethernet Controlling model port is not Together, and the drive of Ethernet Controlling model port and serial line interface in the first application processor 10 and the second application processor 20 Dynamic file is also differed.Mobile terminal and external equipment are real by the too network control simulation port in USB interface and serial line interface The transmission of existing network data and SIM card data.
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 packet transmission system, it is characterised in that the data packet transmission system includes mobile terminal, and by pre- If the external equipment that interface is connected with the mobile terminal;The mobile terminal includes the first application processor, and with first Subscriber Identity Module and the first modem of second user identification card connection, first modem include teledata Server, the first blocking module and the first data transmitting server are accessed, first application processor is read including the first data Write forwarding module and the first data forwarding client being connected with first data transmitting server;The external equipment includes Second application processor and second modem, the second modem include remote data access client, second Blocking module and the second data transmitting server, second application processor include passing through the preset interface and described first Second reading and writing data forwarding module of reading and writing data forwarding module connection, and be connected with second data transmitting server Second data forwarding client;
The remote data access service device, for calling the interception function in the first blocking module, to pass through the interception called Function call packing function, and packed by the packing function pair data called;
The remote data access service device, is additionally operable to transmit the packet after packing to the first data transmitting server, by Packet is passed through the first data forwarding client transmissions to the first reading and writing data forwarding module by first headend;
First reading and writing data forwarding module, for packet to be transmitted to the second data read-write module by the preset interface, So that second data read-write module transmits packet to remote data access client, the preset interface includes ether Network control simulation port and serial line interface.
2. data packet transmission system as claimed in claim 1, it is characterised in that the remote data access service device, is also used In the data pack buffer after by packing into transmit queue, and the first signal is sent to first data transmitting server, with First data transmitting server is notified to obtain data in the transmit queue.
3. data packet transmission system as claimed in claim 1, it is characterised in that first data transmitting server, is also used When the packet that the first data forwarding client is transmitted by the first reading and writing data forwarding module is being received, packet is passed Transport to the first blocking module;
First blocking module, the packet for calling unpacking function pair to receive is unpacked, and determines the data after unpacking The type identification of carrying, the type identification based on determination calls the interception function in remote data access service device;
First blocking module, is additionally operable to, according to the interception function called, the packet be transmitted to remote data access Server.
4. data packet transmission system as claimed in claim 3, it is characterised in that first data transmitting server, is also used In into receiving queue, and the data pack buffer is sent into secondary signal to first blocking module, for described first Blocking module obtains packet in the receiving queue.
5. the data packet transmission system as described in claim any one of 1-4, it is characterised in that the preset interface also includes adjusting Port is tried, the debugging port is used for tune-up data.
6. a kind of data pack transmission method, it is characterised in that applied to mobile terminal and pass through preset interface and the movement Terminal connection external equipment, the mobile terminal include the first application processor, and with the first Subscriber Identity Module and second First modem of Subscriber Identity Module connection, first modem includes remote data access service device, first Blocking module and the first data transmitting server, first application processor include the first reading and writing data forwarding module and with institute State the first data forwarding client of the first data transmitting server connection;The external equipment include the second application processor and Second modem, the second modem includes remote data access client, the second blocking module and the second number According to forwarding server, second application processor includes passing through the preset interface and the first reading and writing data forwarding module Second reading and writing data forwarding module of connection, and the second data forwarding client being connected with second data transmitting server End;Methods described includes:
The remote data access service device calls the interception function in the first blocking module, to be adjusted by the interception function called With packing function, and packed by the packing function pair data called;
The remote data access service device transmits the packet after packing to the first data transmitting server, by described first Packet is passed through the first data forwarding client transmissions to the first reading and writing data forwarding module by headend;
The first reading and writing data forwarding module is transmitted packet to the second data read-write module by the preset interface, with Packet is transmitted to remote data access client for second data read-write module, the preset interface includes Ethernet Controlling model port and serial line interface.
7. data pack transmission method as claimed in claim 6, it is characterised in that the remote data access service device will pack The step of packet afterwards is transmitted to the first data transmitting server includes:
The remote data access service device is by the data pack buffer after packing into transmit queue;
The remote data access service device sends the first signal to first data transmitting server, to notify described first Data transmitting server obtains data in the transmit queue.
8. data pack transmission method as claimed in claim 6, it is characterised in that the data pack transmission method also includes:
First data transmitting server passes through the first reading and writing data forwarding module receiving the first data forwarding client During the packet of transmission, packet is transmitted to the first blocking module;
The packet that first blocking module calls unpacking function pair to receive is unpacked, and determines that the data after unpacking are taken The type identification of band, the type identification based on determination calls the interception function in remote data access service device;
First blocking module transmits the packet to remote data access service device according to the interception function called.
9. data pack transmission method as claimed in claim 8, it is characterised in that the first data transmitting server passes packet The step of transporting to the first blocking module includes:
First data transmitting server is by the data pack buffer into receiving queue;
First data transmitting server sends secondary signal to first blocking module, for first blocking module Packet is obtained in the receiving queue.
10. the data pack transmission method as described in claim any one of 1-9, it is characterised in that the preset interface also includes Port is debugged, the debugging port is used for tune-up data.
CN201710644851.3A 2017-07-31 2017-07-31 Data packet transmission system and method Withdrawn CN107332930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710644851.3A CN107332930A (en) 2017-07-31 2017-07-31 Data packet transmission system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710644851.3A CN107332930A (en) 2017-07-31 2017-07-31 Data packet transmission system and method

Publications (1)

Publication Number Publication Date
CN107332930A true CN107332930A (en) 2017-11-07

Family

ID=60225247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710644851.3A Withdrawn CN107332930A (en) 2017-07-31 2017-07-31 Data packet transmission system and method

Country Status (1)

Country Link
CN (1) CN107332930A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113946534A (en) * 2021-10-18 2022-01-18 广东工业大学 USB data interception processing system and method based on wireless transmission

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113946534A (en) * 2021-10-18 2022-01-18 广东工业大学 USB data interception processing system and method based on wireless transmission
CN113946534B (en) * 2021-10-18 2023-09-12 广东工业大学 USB data interception processing system and method based on wireless transmission

Similar Documents

Publication Publication Date Title
CN107318107A (en) Data transmission system, method, external equipment and mobile terminal
CN107395606A (en) Data packet transmission system and method
CN107332930A (en) Data packet transmission system and method
CN107247679A (en) Data transmission system and method
CN107222429A (en) Data transmission system and method
CN107277174A (en) Data packet transmission system and method
CN107094152A (en) Data packet transmission system and method
CN107124738A (en) Mobile terminal and data pack transmission method
CN107277175A (en) Data packet transmission system and method
CN107318106A (en) Data packet transmission system and method
CN107205053A (en) Data packet transmission system and method
CN107466027A (en) Data transmission system, method, external equipment and mobile terminal
CN107318105A (en) Data packet transmission system and method
CN107466026A (en) Data packet transmission system and method
CN107466028A (en) Data transmission system, method, external equipment and mobile terminal
CN107370742A (en) Data packet transmission system and method
CN107396341A (en) Data packet transmission system and method
CN107332929A (en) Data packet transmission system and method
CN107148052A (en) Mobile terminal and its data transmission method
CN107257567A (en) Data transmission system and method
CN107318130A (en) Data packet transmission system and method
CN106953984A (en) Data transmission system and method
CN107360563A (en) Data transmission system, method, external equipment and mobile terminal
CN107395605A (en) Data packet transmission system and method
CN107466025A (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: 20171107

WW01 Invention patent application withdrawn after publication