【The content of the invention】
The invention provides a kind of communication connection method for building up and system, mobile terminal and mobile unit, move for improvingThe bandwidth communicated between connective stability between dynamic terminal and mobile unit, extension mobile terminal and mobile unit, and canImprove the extensibility of the bandwidth communicated between mobile terminal and mobile unit.
The present invention provides a kind of communication connection method for building up, and methods described includes:
After mobile terminal accesses mobile unit by USB (universal serial bus) and when switching to holotype, the mobile unitThe information of the first preset kind port carried out data transmission to the mobile terminal reporting and it is authenticated the of information transferThe information of two preset kind ports, so that the mobile terminal loads the corresponding driving in each port;
The mobile unit loads driving, the driving of the second preset kind port of the first preset kind portWith the driving of trusted authentication chip;
The authentication information that the mobile unit is produced according to the trusted authentication chip, by the port of second preset kindIt is authenticated interacting with the mobile terminal;To be authenticated to the authentication information;
After certification passes through, it is the mobile unit distribution that the mobile unit obtains the mobile terminal according to network segment IDIP address;
The mobile unit is set up according to the IP address, by the first preset kind port and the mobile terminalThe communication connection for carrying out data transmission.
Still optionally further, in method as defined above, after mobile terminal accesses mobile unit by USB (universal serial bus)And switch to before holotype, methods described also includes:
When the mobile terminal accesses the mobile unit by the USB (universal serial bus), the mobile unit is to describedMobile terminal carries out port and enumerates, to detect that whether the mobile terminal is the shifting of supporting the first preset kind port communicationDynamic terminal;
If the mobile terminal is the mobile terminal for supporting the first preset kind port communication, the mobile unit toThe mobile terminal sends master-slave swap order, so that slave pattern is switched to holotype by the mobile terminal;
Holotype is switched to slave pattern by the mobile unit.
Still optionally further, in method as defined above, the mobile unit is believed according to the certification that the trusted authentication chip is producedBreath, is authenticated interacting by the port of second preset kind with the mobile terminal;To carry out to the authentication informationBefore certification, methods described also includes:
The mobile unit starts the certification of the trusted authentication chip, and obtains the certification letter that the trusted authentication chip is producedBreath.
Still optionally further, in method as defined above, when the mobile terminal is the mobile terminal of IOS, instituteIt is NCM ports to state the first preset kind port, and the second preset kind port is IAP2 ports, and the trusted authentication chip is MFIChip.
The present invention also provides a kind of communication connection method for building up, and methods described includes:
After mobile terminal accesses mobile unit by USB (universal serial bus) and when switching to holotype, the mobile terminalReceive the information of the first preset kind port for carrying out data transmission that the mobile unit is reported and be authenticated information transferThe second preset kind port information;
The mobile terminal is according to the information of the first preset kind port and the letter of the second preset kind portBreath loads respectively the driving of the first preset kind port and the driving of the second preset kind port;
The mobile terminal is authenticated interacting by the port of second preset kind with the mobile unit, with rightThe authentication information that trusted authentication chip is produced is authenticated;The mobile unit be loaded with the first preset kind port driving,The driving of the second preset kind port and the driving of trusted authentication chip;
After certification passes through, the mobile terminal is that the mobile unit distributes IP address according to network segment ID;
The mobile terminal is set up according to the IP address, by the first preset kind port and the mobile unitThe communication connection for carrying out data transmission.
Still optionally further, in method as defined above, what the mobile terminal received that the mobile unit reports enters line numberAccording to transmission the first preset kind port information and be authenticated before the information of the second preset kind port of information transfer,Methods described also includes:
When the mobile terminal accesses the mobile unit by the USB (universal serial bus), and by the mobile unitWhen to enumerate the presently described mobile terminal of determination be to support the mobile terminal of the first preset kind port communication for port, it is describedMobile terminal receives the master-slave swap order that the mobile unit sends;
Present mode is switched to holotype by the mobile terminal according to the master-slave swap order;
The mobile terminal carries out port and enumerates to the mobile unit.
Still optionally further, in method as defined above, after certification passes through, the mobile terminal is the car according to network segment IDBefore load equipment distribution IP address, methods described also includes:
The mobile terminal receives the IP requests that the mobile unit sends;
The mobile terminal is that methods described also includes after mobile unit distribution IP address according to network segment ID:
The mobile terminal to the mobile unit sends the IP address.
Still optionally further, in method as defined above, when the mobile terminal is the mobile terminal of IOS, instituteIt is NCM ports to state the first preset kind port, and the second preset kind port is IAP2 ports, and the trusted authentication chip is MFIChip.
The present invention also provides a kind of mobile unit, and the mobile unit includes:
Sending module, for after mobile terminal accesses the mobile unit by USB (universal serial bus) and switching to main mouldDuring formula, the information of the first preset kind port carried out data transmission to the mobile terminal reporting and information transfer is authenticatedThe second preset kind port information, so that the mobile terminal loads the corresponding driving in each port;
Load-on module, for loading the drive of the driving of the first preset kind port, the second preset kind portThe driving of dynamic and trusted authentication chip;
Authentication module, for the authentication information produced according to the trusted authentication chip, by the end of second preset kindMouth is authenticated interacting with the mobile terminal;To be authenticated to the authentication information;
Acquisition module, after passing through for certification, it is mobile unit distribution to obtain the mobile terminal according to network segment IDIP address;
Module is set up, for building according to the IP address, by the first preset kind port and the mobile terminalThe vertical communication connection for carrying out data transmission.
Still optionally further, in mobile unit as described above, the mobile unit also includes enumeration module and handover module;
The enumeration module, for accessing the mobile unit by the USB (universal serial bus) when the mobile terminal,Port is carried out to the mobile terminal to enumerate, to detect whether the mobile terminal is to support that the first preset kind port leads toThe mobile terminal of letter;
The sending module, if it is the movement for supporting the first preset kind port communication to be additionally operable to the mobile terminalTerminal, sends master-slave swap order, so that slave pattern is switched to holotype by the mobile terminal to the mobile terminal;
The handover module, for holotype to be switched to into slave pattern.
Still optionally further, in mobile unit as described above, the mobile unit also includes starting module;
The starting module, for starting the certification of the trusted authentication chip;
The acquisition module, is additionally operable to obtain the authentication information that the trusted authentication chip is produced.
Still optionally further, in mobile unit as described above, when the mobile terminal is the mobile end of IOSEnd, the first preset kind port be NCM ports, the second preset kind port be IAP2 ports, the trusted authentication chipFor MFI chips.
The present invention also provides a kind of mobile terminal, and the mobile terminal includes:
Receiver module, for after mobile terminal accesses mobile unit by USB (universal serial bus) and switching to holotypeWhen, receive the information of the first preset kind port for carrying out data transmission that the mobile unit is reported and be authenticated information biographyThe information of the second defeated preset kind port;
Load-on module, for according to the letter of the information of the first preset kind port and the second preset kind portBreath loads respectively the driving of the first preset kind port and the driving of the second preset kind port;
Authentication module, for being authenticated interacting with the mobile unit by the port of second preset kind, withThe authentication information that trusted authentication chip is produced is authenticated;The mobile unit is loaded with the drive of the first preset kind portThe dynamic, driving of the second preset kind port and the driving of trusted authentication chip;
Distribute module, is that the mobile unit distributes IP address according to network segment ID after passing through for certification;
Module is set up, for building according to the IP address, by the first preset kind port and the mobile unitThe vertical communication connection for carrying out data transmission.
Still optionally further, move as described above in terminal, the mobile terminal also includes enumeration module and handover module:
The receiver module, is additionally operable to when the mobile terminal vehicle-mounted sets by the way that USB (universal serial bus) access is describedIt is standby, and the presently described mobile terminal of determination is enumerated to support the first preset kind port by the port of the mobile unitDuring the mobile terminal of communication, the master-slave swap order that the mobile unit sends is received;
The handover module, for according to the master-slave swap order, present mode being switched to into holotype;
The enumeration module, enumerates for carrying out port to the mobile unit.
Still optionally further, move as described above in terminal, the mobile terminal also includes sending module;
The receiver module, is additionally operable to receive the IP requests that the mobile unit sends;
The sending module, for sending the IP address to the mobile unit.
Still optionally further, move as described above in terminal, when the mobile terminal is the mobile end of IOSEnd, the first preset kind port be NCM ports, the second preset kind port be IAP2 ports, the trusted authentication chipFor MFI chips.
The present invention also provides a kind of communication connection and sets up system, and the system includes being set for setting up the vehicle-mounted of communication connectionStandby and mobile terminal;The mobile unit is using as above arbitrary described mobile unit;The mobile terminal is using as above arbitraryDescribed mobile terminal.
The communication connection method for building up and system, mobile terminal and mobile unit of the present invention, when mobile terminal is connect by USBWhen entering after mobile unit and switching to holotype, mobile terminal receive mobile unit report carry out data transmission first presetThe information of type port and be authenticated information transfer the second preset kind port information;Mobile terminal is default according to firstThe information of the information of type port and the second preset kind port loads respectively the driving of the first preset kind port and second pre-If the driving of type port;Mobile terminal is authenticated interacting by the port of the second preset kind with mobile unit, with to recognizingThe authentication information that card chip is produced is authenticated;Mobile unit is loaded with the driving of the first preset kind port, the second default classThe driving of type port and the driving of trusted authentication chip;After certification passes through, mobile terminal is mobile unit distribution IP ground according to network segment IDLocation;Mobile terminal sets up the communication link for carrying out data transmission according to IP address, by the first preset kind port and mobile unitConnect.Communicated using the wired connection of USB between the mobile unit and mobile terminal of the present invention, can be overcome in prior artCommunicated using wireless mode between mobile unit and mobile terminal, the excessively poor defect of connective stability;And, the present inventionMobile unit and mobile terminal between using USB wired connection, and carried out data transmission using NCM ports, the NCM is oneThe network port of transmitting network data is planted, with high-speed transfer mechanism, the data bandwidth that can be supported is sufficiently large, data transferEfficiency comparison is high;And in technical scheme, connected by USB between mobile unit and mobile terminal;Mobile unitAll USB port can be invented network interface card with mobile terminal two ends, the application such as Carlife of both sides can be entered by network interface card and opposite endRow communication, virtual network interface card can carry out network programming, set up multiple network channels, therefore, technical scheme canMultiple data channel is supported, extensibility is very good.
【Specific embodiment】
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pairThe present invention is described in detail.
The communication connection method for building up of the embodiment of the present invention is applied between mobile terminal and mobile unit.The present embodimentMobile unit can be understood as being arranged on car machine, the equipment being integrated with car machine.The communication connection of the embodiment of the present invention is set upIn the scene that method is applied, can be transmitted by wired mode between mobile terminal and mobile unit, for example can be withCommunicated based on the EA session and EA Native Transport two ways of iap2 agreements.Or the present invention is implementedUSB (universal serial bus) (Universal Serial Bus can also be adopted between the mobile terminal and mobile unit of example;USB) enterRow wired connection.Wired connection between the sending ending equipment and receiving device of the embodiment of the present invention adopts car machine interconnected communicationAgreement carries out message transmission.In the present embodiment, the side of wireless connection can also be passed through between sending ending equipment and receiving deviceFormula is realized carrying out message transmission using car machine interconnected communication agreement, and specific radio connection is not limited in the present embodimentIt is fixed.A kind of entitled CarLife of car machine interconnected communication agreement can be defined in the embodiment of the present invention, it is possible to understand that CarLifeFor a kind of communication protocol that message transmission is carried out between mobile terminal and mobile unit defined herein, agreement supportCommunicated using USB between mobile terminal and mobile unit.The technical scheme of the embodiment of the present invention when in use, can movedDynamic terminal and mobile unit both sides are respectively mounted the application of CarLife so that car machine is all supported in mobile terminal and mobile unit both sidesInterconnection communication, so that when mobile terminal and mobile unit connect, mobile terminal and mobile unit carry out message biography by CarLifeIt is defeated, with realize mobile terminal by page transmission to mobile unit, and show in mobile unit side.
When carrying out message transmission using CarLife car machine interconnected communication agreements in the embodiment of the present invention, what is can transmitted disappearsThe type of the content of breath includes control message and Multimedia Message.In order to further increase the standard that message is transmitted according to message contentTrue property, the control message in the embodiment of the present invention is further divided into control message and revertive control message two types.For example, thisThe control message of bright embodiment, can play the air-conditioning of opening/closing car machine or beat ON/OFF for mobile terminal control mobile unitClose the control message in the skylight of car machine;Mobile terminal can also be called or read for mobile unit control mobile terminalInformation etc. control message.The control message of the embodiment of the present invention can also include vehicle-mounted data, bluetooth automatic matching message withAnd at least one in video initialization message etc..The revertive control message of the embodiment of the present invention can include mobile unit to shiftingThe revertive control message such as the touch event or key-press event of the car pusher side that dynamic terminal sends.In order to further increase according in messageHold the accuracy of transmission message, the Multimedia Message of the embodiment of the present invention can be divided into video messaging, audio message and voiceMessage.For example, the video messaging of the embodiment of the present invention can be the video data encoder that mobile terminal is transmitted to mobile unit,By the way that after usb communication, mobile terminal needs the information that will be shown on screen with video between mobile terminal and mobile unitForm is projected in real time on mobile unit.I.e. the video messaging includes the video data encoder of the screen of mobile terminal.ThisThe audio-frequency information of bright embodiment can be Media audio streams such as music data, or can also be for transmitting from text to languageSpeech (Text To Sound;TTS audio stream) such as voice broadcast data of navigating.For example, mobile terminal is may be respectively used for carCarry pulse code modulation (the Pulse Code Modulation of device transmission music and navigation voice broadcast;PCM) flow.ThisThe speech message of bright embodiment can be the user speech number that mobile unit is recorded to mobile terminal transmission vehicle machine Mike (mic)According to.
Different for the type of every kind of message content, corresponding message structure, the data adopted when message is transmitted are led toRoad is differed.From the above mentioned, the message content in the embodiment of the present invention can include control message, video messaging, audio message,Speech message and the type of revertive control message five, every kind of message has oneself corresponding data structure corresponding when transmitting with messageData channel.Data channel i.e. in CarLife car machine interconnected communication agreements to there is five types:Control message dataPassage, video message data passage, audio message data passage, voice message data passage and countercharge message data passage.
The embodiment of the present invention communication connection method for building up can based on above-mentioned CarLife cars machine interconnected communication agreement comeThe communication set up between mobile terminal and mobile unit, communicates to connect the note that the detailed process set up may be referred to following embodimentsCarry.
Fig. 1 is the flow chart of the communication connection method for building up embodiment one of the present invention.As described in Figure 1, the present embodiment is logicalLetter connection establishment method, specifically may include steps of:
100th, when mobile terminal passes through USB (universal serial bus) (Universal Serial Bus;USB) mobile unit is accessedAfterwards and when switching to holotype, the information of the first preset kind port that mobile unit carries out data transmission to mobile terminal reportingWith the information of the second preset kind port for being authenticated information transfer, so that mobile terminal loads the corresponding driving in each port;
101st, mobile unit loads driving, the driving of the second preset kind port and the certification core of the first preset kind portThe driving of piece;
102nd, the authentication information that mobile unit is produced according to trusted authentication chip, it is whole with mobile by the port of the second preset kindEnd is authenticated interaction;To be authenticated to authentication information;
103rd, after certification passes through, mobile unit obtains mobile terminal according to the IP address that network segment ID is mobile unit distribution;
104th, mobile unit is carried out data transmission according to IP address, by the first preset kind port and mobile terminal foundationCommunication connection.
The executive agent of the communication connection method for building up of the present embodiment is mobile unit, in mobile unit side to the present inventionCommunication connection method for building up describe in detail.In the present embodiment, general serial is passed through between mobile unit and mobile terminalBus is attached, to be communicated.
In actually used, mobile terminal is coupled together with mobile unit by USB, now mobile unit is operated in master(HOST) pattern, mobile terminal is operated in slave pattern i.e. DEVICE patterns.Communicate because mobile terminal will be set up with mobile unit,Need for mobile unit and mobile terminal to carry out pattern switching, mobile terminal is switched to into HOST patterns.Mobile terminal switchesTo HOST patterns, mobile unit needs the information and the second preset kind to the first preset kind of mobile terminal reporting portPort information, the port of the first preset kind is for subsequently carrying out data transmission;The port of the second preset kind is suitable forIn subsequently going out to be authenticated information transfer.That is data transfer and build between the mobile terminal and mobile unit of the present embodimentAuthentication information transmission before vertical connection adopts different ports.When mobile terminal receive the first preset kind port information andAfter the information of the port of the second preset kind, the driving of the first preset kind port and the drive of the second preset kind port are loadedIt is dynamic;The driving of wherein the first preset kind port and the driving of the second preset kind port are set in advance in mobile terminal, withIt is easy to be loaded in time when loading is needed.In mobile unit side, mobile unit also load the first preset kind port driving andThe driving of the second preset kind port;In addition, authentication module is come with the mobile terminal of the present embodiment, can be with mobile unitInteraction is authenticated, the certification to mobile unit is realized.And mobile unit side internal preset has trusted authentication chip, in load driverWhen, need to load the driving of trusted authentication chip in mobile unit side simultaneously.Then the trusted authentication chip of mobile unit side can be produced and recognizedCard information, then mobile unit authentication information is transmitted to mobile terminal side by the second preset kind port, by mobile terminalInterior authentication module is authenticated processing to authentication information, if in verification process, mobile terminal side is produced always according to certification messageThe certain verification message of life needs further to be authenticated processing by trusted authentication chip, then mobile terminal passes through again the second preset kindPort transmits the check information for needing trusted authentication chip to process to mobile unit, interacts repeatedly in this manner, realizes to recognizingThe certification of card message, that is, realize certification of the mobile terminal to mobile unit.After certification passes through, determine that mobile unit can be with shiftingDynamic terminal communication connects, and now mobile unit can obtain mobile terminal according to the IP address that network segment ID is mobile unit distribution.Specifically, can be from mobile unit to mobile terminal request IP address, then mobile unit is according to the request of mobile terminal, according toThe network segment ID of mobile terminal itself is the IP address of mobile unit distribution and mobile terminal in the same network segment, so ensures movement eventuallyEnd and the communication of mobile unit.Then the IP address of distribution is sent to mobile unit by mobile terminal, by mobile unit according to thisCommunication connection is set up by the first preset kind port between IP address and mobile terminal.The mobile terminal of the present embodiment with it is vehicle-mountedThe CarLife car machine interconnected communication agreements described in above-described embodiment can be adopted between equipment to be communicated, and using this realityThe method for applying example is set up after communication connection, is carried out data transmission using the data channel of CarLife car machine interconnected communication agreements.
The communication connection method for building up of the present embodiment, when mobile terminal by USB access mobile unit after and switching based onDuring pattern, the information of the first preset kind port that mobile unit carries out data transmission to mobile terminal reporting and letter is authenticatedThe information of the second preset kind port of breath transmission, so that mobile terminal loads the corresponding driving in each port;Mobile unit is loadedThe driving of the first preset kind port, the driving of the second preset kind port and the driving of trusted authentication chip;Produced according to trusted authentication chipRaw authentication information, is authenticated interacting by port and the mobile terminal of the second preset kind;To recognize authentication informationCard;After certification passes through, mobile unit obtains mobile terminal according to the IP address that network segment ID is mobile unit distribution;According to IP groundLocation, the communication connection carried out data transmission by the first preset kind port and mobile terminal foundation.The vehicle-mounted of the present embodiment setsThe standby wired connection between mobile terminal using USB is communicated, and mobile unit in prior art can be overcome whole with mobileCommunicated using wireless mode between end, the excessively poor defect of connective stability;And, the mobile unit and shifting of the present embodimentUsing the wired connection of USB between dynamic terminal, and carried out data transmission using NCM ports, the NCM is a kind of transmitting network dataThe network port, with high-speed transfer mechanism, the data bandwidth that can be supported is sufficiently large, and the efficiency comparison of data transfer is high;AndAnd in the technical scheme of the present embodiment, mobile unit and mobile terminal two ends all can invent network interface card USB port, both sides shouldCan be communicated by network interface card and opposite end with such as Carlife, virtual network interface card can carry out network programming, set up multiple networksPassage, therefore, the technical scheme of the present embodiment can support multiple data channel, and extensibility is very good.
Still optionally further, on the basis of the technical scheme of above-described embodiment, when mobile terminal accessed by USB it is vehicle-mountedAfter equipment and switch to before holotype, the communication connection method for building up of the present embodiment can also comprise the steps:
(a1) when mobile terminal accesses mobile unit by USB, mobile unit carries out port and enumerates to mobile terminal, to examineSurvey whether mobile terminal is the mobile terminal for supporting the first preset kind port communication;
(a2) if mobile terminal is the mobile terminal for supporting the first preset kind port communication, mobile unit is to mobile terminalMaster-slave swap order is sent, so that slave pattern is switched to holotype by mobile terminal;
(a3) holotype is switched to slave pattern by mobile unit.
When mobile terminal accesses mobile unit by USB, mobile unit is HOST patterns, and mobile terminal is DEVICE mouldsFormula, now mobile unit port carried out to the USB port of mobile terminal enumerate, whether detection mobile terminal supports the first default classType port communication.If supporting, mobile unit to mobile terminal sends master-slave swap order, so that slave pattern is by mobile terminalDEVICE pattern switchings are HOST patterns for holotype.Then simultaneously mobile unit by holotype be HOST pattern switchings be from mouldFormula is DEVICE patterns.Because pattern switches, now mobile terminal will also be carried out piece to the USB port of mobile unit againLift, both determine that other side supports the first preset kind port communication.If mobile unit enters to the USB port of mobile terminalRow port is enumerated, and detection mobile terminal does not support the first preset kind port communication, then mobile terminal now cannot be according to thisThe foundation that the method for embodiment is communicatively coupled.
For example so that the operating system of mobile terminal is as IOS as an example, now corresponding mobile terminal can be iPhone, correspondingThe first preset kind port be network control module (Network Control Model;NCM) port, the second preset kindPort be IAP2 ports, trusted authentication chip be MFI chips, MFI chips be Apple research and development one kind " Made for iPod,A the connection iPod, iPhone and iPad of Made for iPhone, and Made for iPad " and specially designed one kindRealize the electronic components of authentication function.Accordingly, need to load the corresponding NCM drivings in NCM ports and IAP2 in mobile terminal sideThe corresponding IAP2 in port drives.Drive and IAP2 drivings except loading NCM in mobile unit side, in addition it is also necessary to load the drive of MFi chipsIt is dynamic.
NCM drives:Specifically, the HOST for loading NCM in mobile terminal side drives (Fructus Mali pumilae has been developed and completed), engine endLoading drivings of the NCM from equipment.After drive load is complete, mobile unit side can view corresponding network equipment by netcfgNode.
IAP2 drives:Specifically, the HOST for loading iAP2 in mobile terminal side drives (Fructus Mali pumilae has been developed and completed), car machineEnd loading drivings of the iAP2 from equipment.After drive load is complete, corresponding device file can be mapped out under dev catalogues (such as:/dev/MFI_IAP2)。
MFi chip drives:Specifically, MFi chips are loaded (mainly by Integration Bus (Inter- in mobile unit sideIntegrated Circuit;I2C) with car machine interact) driving, after the completion of corresponding device file is mapped under dev catalogues(such as/dev/MFi).
Still optionally further, on the basis of the technical scheme of above-described embodiment, wherein step 102 " mobile unit according toThe authentication information that trusted authentication chip is produced, is authenticated interacting by port and the mobile terminal of the second preset kind;With to certificationInformation is authenticated " before, can also include:Mobile unit starts the certification of trusted authentication chip, and obtains trusted authentication chip generationAuthentication information.
For example, so that mobile terminal is as iPhone as an example, its authentication procedure is developed according to the iAP2 authentication protocols of Fructus Mali pumilae, this is recognizedCard program can be arranged in MFi chips, and the program can pass through/and dev/MFi_iAP2 interacts with iPhone, passes through/dev/MFI carries out data interaction with trusted authentication chip, completes certification.And after the completion of certification, mobile terminal and mobile unit are successfully loadedAfter NCM drives, the successful connection of NCM ports is passed through between mobile terminal and mobile unit.Mobile terminal and mobile unit can mapInto network equipment node, and distribute IP address for mobile unit according to the network segment ID of itself by mobile terminal and distribute corresponding IPAddress.And the IP address is sent to mobile unit by the first preset kind port such as NCM ports.So, mobile unit can be withThe IP address of distribution is received by NCM ports, and data path is set up between mobile terminal, such as it is various based on user dataDatagram protocol (User Datagram Protocol;) and transmission control protocol (Transmission Control UDPProtocol;TCP data path), to realize the communication connection carried out data transmission between mobile terminal and mobile unit.
The communication connection method for building up of above-described embodiment, using the wired connection of USB between mobile unit and mobile terminalCommunicated, can overcome in prior art and be communicated using wireless mode between mobile unit and mobile terminal, connection is steadyQualitative excessively poor defect;And, using the wired connection of USB between the mobile unit and mobile terminal of the present embodiment, and adoptCarried out data transmission with NCM ports, the NCM is a kind of network port of transmitting network data, with high-speed transfer mechanism, can be withThe data bandwidth of support is sufficiently large, and the efficiency comparison of data transfer is high;And in the technical scheme of the present embodiment, mobile unit withMobile terminal two ends all can invent network interface card USB port, and the application such as Carlife of both sides can be carried out by network interface card and opposite endCommunication, virtual network interface card can carry out network programming, set up multiple network channels, therefore, the technical scheme of the present embodiment canMultiple data channel is supported, extensibility is very good.
Fig. 2 is the flow chart of the communication connection method for building up embodiment two of the present invention.As shown in Fig. 2 the present embodiment is logicalLetter connection establishment method, specifically may include steps of:
200th, when after mobile terminal accesses mobile unit by USB and when switching to holotype, mobile terminal receives vehicle-mountedThe information of the first preset kind port that what equipment was reported carry out data transmission and it is authenticated the second default class of information transferThe information of type port;
201st, mobile terminal adds respectively according to the information of the first preset kind port and the information of the second preset kind portCarry the driving of the first preset kind port and the driving of the second preset kind port;
202nd, mobile terminal is authenticated interacting by the port of the second preset kind with mobile unit, with to trusted authentication chipThe authentication information of generation is authenticated;Mobile unit is loaded with the driving of the first preset kind port, the second preset kind portDriving and trusted authentication chip driving;
203rd, after certification passes through, mobile terminal is that mobile unit distributes IP address according to network segment ID;
204th, mobile terminal is carried out data transmission according to IP address, by the first preset kind port and mobile unit foundationCommunication connection.
The executive agent of the communication connection method for building up of the present embodiment is mobile terminal.The communication connection of the present embodiment is set upMethod is differed only in above-mentioned embodiment illustrated in fig. 1:Above-mentioned embodiment illustrated in fig. 1 describes the present invention's in mobile unit sideTechnical scheme, and the present embodiment describes technical scheme in mobile terminal side, it realizes that principle is identical, in detail alsoThe record of above-mentioned embodiment illustrated in fig. 1 is may be referred to, be will not be described here.
The communication connection method for building up of the present embodiment, when mobile terminal by USB access mobile unit after and switching based onDuring pattern, mobile terminal receives the information of the first preset kind port for carrying out data transmission that mobile unit is reported and is recognizedThe information of the second preset kind port of card information transfer;Mobile terminal is pre- according to the information of the first preset kind port and secondIf the information of type port loads respectively the driving of the first preset kind port and the driving of the second preset kind port;It is mobile wholeEnd is authenticated interacting by the port of the second preset kind with mobile unit, is carried out with the authentication information produced to trusted authentication chipCertification;Mobile unit is loaded with the driving of the first preset kind port, the driving of the second preset kind port and trusted authentication chipDrive;After certification passes through, mobile terminal is that mobile unit distributes IP address according to network segment ID;Mobile terminal is according to IP address, logicalCross the first preset kind port and the communication connection for carrying out data transmission is set up with mobile unit.The mobile unit of the present embodiment and shiftingCommunicated using the wired connection of USB between dynamic terminal, can be overcome in prior art between mobile unit and mobile terminalCommunicated using wireless mode, the excessively poor defect of connective stability;And, the mobile unit and mobile terminal of the present embodimentBetween using USB wired connection, and carried out data transmission using NCM ports, the NCM is a kind of network of transmitting network dataPort, with high-speed transfer mechanism, the data bandwidth that can be supported is sufficiently large, and the efficiency comparison of data transfer is high;And this realityIn applying the technical scheme of example, mobile unit and mobile terminal two ends all can invent network interface card USB port, and the application of both sides is such asCarlife can be communicated by network interface card and opposite end, and virtual network interface card can carry out network programming, set up multiple networks and led toRoad, therefore, the technical scheme of the present embodiment can support multiple data channel, and extensibility is very good.Still optionally further, upperOn the basis of stating the technical scheme of embodiment, in step 200, " mobile terminal receives carrying out data transmission of reporting of mobile unitThe information of the first preset kind port and be authenticated the information of the second preset kind port of information transfer " before, can be withComprise the steps:
(b1) when mobile terminal accesses mobile unit by USB, and determination is enumerated when reach by the port of mobile unitWhen dynamic terminal is to support the mobile terminal of the first preset kind port communication, mobile terminal receives the principal and subordinate of mobile unit transmission and cutsChange order;
(b2) present mode is switched to holotype by mobile terminal according to master-slave swap order;
(b3) mobile terminal carries out port and enumerates to mobile unit.
Still optionally further, it is " mobile after certification passes through in step 203 on the basis of the technical scheme of above-described embodimentTerminal is that mobile unit distributes IP address according to network segment ID " before, can also comprise the steps:
(c1)) mobile terminal receives the IP requests that mobile unit sends;
(c2) mobile terminal is that method also includes after mobile unit distribution IP address according to network segment ID:
(c3) mobile terminal sends IP address to mobile unit.
Mobile terminal is to distribute IP address to mobile terminal according to the request of mobile unit i.e. in the present embodiment;And dividingAfter with complete IP address, IP address is sent to into mobile unit.
Still optionally further, in the communication connection method for building up of the present embodiment, when mobile terminal is the shifting of IOSDynamic terminal, the first preset kind port is NCM ports, and the second preset kind port is IAP2 ports, and trusted authentication chip is MFI coresPiece.
Above-mentioned optional technical scheme, may be referred to the optional technical scheme of above-mentioned mobile unit side, and it realizes that principle is identical,Will not be described here.
The communication connection method for building up of above-described embodiment, using the wired connection of USB between mobile unit and mobile terminalCommunicated, can overcome in prior art and be communicated using wireless mode between mobile unit and mobile terminal, connection is steadyQualitative excessively poor defect;And, using the wired connection of USB between the mobile unit and mobile terminal of the present embodiment, and adoptCarried out data transmission with NCM ports, the NCM is a kind of network port of transmitting network data, with high-speed transfer mechanism, can be withThe data bandwidth of support is sufficiently large, and the efficiency comparison of data transfer is high;And in the technical scheme of the present embodiment, mobile unit withMobile terminal two ends all can invent network interface card USB port, and the application such as Carlife of both sides can be carried out by network interface card and opposite endCommunication, virtual network interface card can carry out network programming, set up multiple network channels, therefore, the technical scheme of the present embodiment canMultiple data channel is supported, extensibility is very good.
Fig. 3 is the signaling diagram of the communication connection method for building up embodiment three of the present invention.As described in Figure 1, the present embodiment is logicalLetter connection establishment method, specifically may include steps of:
300th, when iPhone mobile phones just insert mobile unit by USB, mobile unit carries out USB port to the mobile phone for accessingEnumerate, detect whether the mobile phone is iPhone mobile phones;
In the present embodiment, when iPhone mobile phones just insert mobile unit by USB, mobile unit is operated in the HOST of USBPattern, can carry out USB port and enumerate to iPhone mobile phones.Because iPhone mobile phones have the characteristic of its own, for example, support NCMPort and IAP2 ports.Therefore when mobile unit find connection be iPhone mobile phones when, determine that the mobile phone supports that NCM ports passIt is defeated.
301st, mobile unit sends USB master slave mode switching commands to iPhone mobile phones;
For example, mobile unit sends USB master slave mode switching commands by ep0 to iPhone mobile phones.
302nd, mobile unit is from HOST pattern switchings to slave pattern;
303rd, iPhone mobile phones are received after USB master slave mode switching commands, and HOST patterns are switched to after USB reset;
304th, iPhone mobile phones are carried out again USB port and enumerate to the mobile unit connected by USB;
305th, mobile unit reports the information of the NCM ports of standard to iPhone mobile phones and meets Herba Marsileae Quadrifoliae as USB slave patternsThe information of the IAP2 ports of fruit authentication protocol;
Wherein NCM ports are used for transmission data.For example, the information of NCM ports can specifically include letter as shown in table 1 belowBreath.IAP2 ports are used for transmission of authentication information.For example the information of IAP2 ports can specifically include information as shown in table 2 below.
Table 1
| Port class | Port subclass | Port Profile code |
| FPDP | 0×2 | 0×0d | 0×00 |
| COM1 | 0×0a | 0×00 | 0×01 |
Table 2
306th, mobile unit loading NCM drivings, iAP2 drivings and the driving of MFi trusted authentication chips;
307th, iPhone mobile phones loading NCM drives and iAP2 drives;
Now accordingly, the NCM in the loading of mobile unit side drives and iAP2 is driven to the driving of slave pattern;In iPhoneThe NCM of mobile phone side loading drives the driving that holotype is driven to iAP2.And it is previously provided with MFi certifications in mobile unit sideChip, Fig. 4 is the structural representation of iPhone mobile phones, mobile unit and MFi trusted authentication chips in the embodiment of the present invention.MFi recognizesCard chip is connected beforehand through I2C with the mainboard of mobile unit, is arranged on inside mobile unit.Wherein NCM drives, iAP2 drivesWith being discussed in detail for MFi chip drives, the record of above-mentioned related embodiment is may be referred to, be will not be described here.Load driver itAfterwards, equivalent to the authentication procedure that have activated NCM ports, IAP2 ports and MFi.IPhone mobile phones and car machine equipment are successfully loadedNCM can be mapped to network equipment node after driving.
308th, mobile unit and iPhone mobile phones carry out the certification of iAP2 according to IAP2 ports;
Specifically, its authentication procedure is developed according to the iAP2 authentication protocols of Fructus Mali pumilae, the drive load that the program passes through iAP2After complete, corresponding device file/dev/MFi_iAP2 and iPhone mobile phone interactions are mapped out under dev catalogues, pass through/dev/MFI carries out data interaction with MFi trusted authentication chips, realizes certification.For example first there is MFi to produce authentication information, pass through/dev/MFIIPhone mobile phones are delivered to, certification message is processed by certain authentication module in iPhone mobile phones, if desired for further returningThe MFi chips of carriage return mounted terminal side are authenticated, the checking message that iPhone mobile phones are produced can also be passed through/dev/MFI returnsThe MFi chips of mobile unit side are back to, by repeatedly interaction, certification is realized.
309th, mobile unit is to iPhone handset requests IP address;
310th, iPhone mobile phones are that mobile unit distributes IP address according to itself network segment ID;
311st, iPhone mobile phones send IP address to mobile unit;
312nd, mobile unit sets up the communication link for carrying out data transmission according to IP address and iPhone mobile phones by NCM portsConnect.
By above-mentioned steps, communication connection, such mobile unit can be set up between mobile unit and iPhone mobile phonesCan be carried out data transmission by NCM ports with iPhone mobile phones.
The communication connection method for building up of the present embodiment, by adopting such scheme, adopts between mobile unit and mobile terminalCommunicated with the wired connection of USB, can overcome adopt between mobile unit and mobile terminal in prior art wireless modeCommunicated, the excessively poor defect of connective stability;And, USB is adopted between the mobile unit and mobile terminal of the present embodimentWired connection, and carried out data transmission using NCM ports, the NCM is a kind of network port of transmitting network data, with heightFast transmission mechanism, the data bandwidth that can be supported is sufficiently large, and the efficiency comparison of data transfer is high;And the technical side of the present embodimentIn case, mobile unit and mobile terminal two ends all can invent network interface card USB port, and the application such as Carlife of both sides can lead toCross network interface card and opposite end is communicated, virtual network interface card can carry out network programming, set up multiple network channels, therefore, this enforcementThe technical scheme of example can support multiple data channel, and extensibility is very good.
Fig. 5 is the structure chart of the mobile unit embodiment one of the present invention.As shown in figure 5, the mobile unit of the present embodiment, toolBody can include:Sending module 10, load-on module 11, authentication module 12, acquisition module 13 and set up module 14.
Wherein sending module 10 is used for after mobile terminal is by USB access mobile units and when switching to holotype, toThe information of the first preset kind port that mobile terminal reporting carries out data transmission is preset be authenticated information transfer secondThe information of type port, so that mobile terminal loads the corresponding driving in each port;Sending module 10 is additionally operable to trigger load-on module11 start, and load-on module 11 is used for driving, the driving of the second preset kind port and the certification of the first preset kind port of loadingThe driving of chip;Authentication module 12 is used for the startup according to the loading of load-on module 11, according to the authentication information that trusted authentication chip is produced,It is authenticated interacting with mobile terminal by the port of the second preset kind;To be authenticated to authentication information;Acquisition module 13For after the certification of authentication module 12 passes through, obtaining mobile terminal according to the IP address that network segment ID is mobile unit distribution;Set upModule 14 is used for the IP address according to the acquisition of acquisition module 13, is set up into line number by the first preset kind port and mobile terminalAccording to the communication connection of transmission.
The mobile unit of the present embodiment, by the foundation that communication connection is realized using above-mentioned module and above-mentioned correlation technique realityThat applies example realizes that principle and technique effect are identical, and the record of above-mentioned related method embodiment is may be referred in detail, and here is no longerRepeat.
Fig. 6 is the structure chart of the mobile unit embodiment two of the present invention.As shown in fig. 6, the mobile unit of the present embodiment existsOn the basis of the technical scheme of above-mentioned embodiment illustrated in fig. 5, following technical scheme is further included.
As shown in fig. 6, the mobile unit of the present embodiment, can also include enumeration module 15 and handover module 16.
Wherein enumeration module 15 is used for when mobile terminal accesses mobile unit by USB, and to mobile terminal port piece is carried outLift, to detect that whether mobile terminal is the mobile terminal of supporting the first preset kind port communication;
If sending module 10 is additionally operable to enumeration module 15 determines that mobile terminal is to support the first preset kind port communicationMobile terminal, sends master-slave swap order, so that slave pattern is switched to holotype by mobile terminal to mobile terminal;
If handover module 16 is used for enumeration module 15 determines that mobile terminal is the shifting for supporting the first preset kind port communicationDynamic terminal, by holotype slave pattern is switched to.
Still optionally further, as shown in fig. 6, the mobile unit of the present embodiment, can also include starting module 17.
Starting module 17 is used to start the certification of trusted authentication chip;Acquisition module 13 is additionally operable to obtain what starting module 17 startedThe authentication information that trusted authentication chip is produced.
Still optionally further, in the mobile unit of the present embodiment, when mobile terminal is the mobile terminal of IOS,First preset kind port is NCM ports, and the second preset kind port is IAP2 ports, and trusted authentication chip is MFI chips.
The mobile unit of the present embodiment, by the foundation that communication connection is realized using above-mentioned module and above-mentioned correlation technique realityThat applies example realizes that principle and technique effect are identical, and the record of above-mentioned related method embodiment is may be referred in detail, and here is no longerRepeat.
Fig. 7 is the structure chart of the mobile terminal embodiment one of the present invention.As shown in fig. 7, the mobile terminal of the present embodiment, toolBody can include:Receiver module 20, load-on module 21, authentication module 22, distribute module 23 and set up module 24.
Wherein receiver module 20 is used for when after mobile terminal accesses mobile unit by USB and when switching to holotype, connectsReceive the information of the first preset kind port for carrying out data transmission that mobile unit is reported and be authenticated the second of information transferThe information of preset kind port;Load-on module 21 be used for according to receiver module 20 receive the first preset kind port information andThe information of the second preset kind port loads respectively the driving of the first preset kind port and the driving of the second preset kind port;Authentication module 22 is used for the port of the second preset kind for being loaded with driving by load-on module 21 and is authenticated with mobile unitInteraction, to be authenticated to the authentication information that trusted authentication chip is produced;Mobile unit be loaded with the first preset kind port driving,The driving of the second preset kind port and the driving of trusted authentication chip;Distribute module 23 is used for after the certification of authentication module 22 passes through,It is that mobile unit distributes IP address according to network segment ID;Set up module 24 for according to distribute module 23 distribution IP address, pass throughFirst preset kind port sets up the communication connection for carrying out data transmission with mobile unit.
The mobile terminal of the present embodiment, by the foundation that communication connection is realized using above-mentioned module and above-mentioned correlation technique realityThat applies example realizes that principle and technique effect are identical, and the record of above-mentioned related method embodiment is may be referred in detail, and here is no longerRepeat.
Fig. 8 is the structure chart of the mobile terminal embodiment two of the present invention.As shown in figure 8, the mobile terminal of the present embodiment existsOn the basis of the technical scheme of above-mentioned embodiment illustrated in fig. 7, following technical scheme is further included.
As shown in figure 8, the mobile terminal of the present embodiment, can also include enumeration module 25 and handover module 26.
Receiver module 20 is additionally operable to when mobile terminal accesses mobile unit, and the port piece for passing through mobile unit by USBWhen lifting the mobile terminal that determination current mobile terminal is the first preset kind port communication of support, the master that mobile unit sends is receivedFrom switching command;
Handover module 26 is used for the master-slave swap order received according to receiver module 20, and present mode is switched to into main mouldFormula;
Enumeration module 25 is used for after handover module 26 switches present mode, carries out port to mobile unit and enumerates.
Still optionally further, as shown in figure 8, the mobile terminal of the present embodiment, can also include sending module 27.
Wherein receiver module 20 is additionally operable to receive the IP requests that mobile unit sends;
Distribute module 23 is used for the IP requests received according to receiver module 20, is mobile unit distribution IP ground according to network segment IDLocation;
Sending module 27 is used to send the IP address of the distribution of distribute module 23 to mobile unit.
Still optionally further, in the mobile terminal of the present embodiment, when mobile terminal is the mobile terminal of IOS,First preset kind port is NCM ports, and the second preset kind port is IAP2 ports, and trusted authentication chip is MFI chips.
The mobile terminal of the present embodiment, by the foundation that communication connection is realized using above-mentioned module and above-mentioned correlation technique realityThat applies example realizes that principle and technique effect are identical, and the record of above-mentioned related method embodiment is may be referred in detail, and here is no longerRepeat.
Fig. 9 is the structure chart that system embodiment is set up in the communication connection of the present invention.As shown in figure 8, the communication of the present embodimentConnection establishment system includes the mobile unit 30 and mobile terminal 40 for setting up communication connection;Mobile unit 30 is adopted as above schemesMobile unit shown in 5 or Fig. 6;Mobile terminal 40 is using the mobile terminal as shown in figure 7 above or Fig. 8.And specifically can be withRealize that the foundation of system is set up in communication connection using the communication connection method for building up as described in figure 1 above-Fig. 3 is arbitrary.
Said method provided in an embodiment of the present invention can be to arrange and running on the computer program in electronic equipmentEmbody.As shown in Figure 10, the electronic equipment can include one or more processors 800, also including memorizer 801 and oneOr multiple programs, embodiment illustrated in fig. 10 one includes as a example by a processor 800 describing technical scheme.Wherein shouldOne or more program storages are performed above-mentioned to realize the present invention in memorizer 801 by said one or multiple processors 800Method flow and/or device operation shown in embodiment.For example, the method for being performed by said one or multiple processors 800Flow process, can include:
After mobile terminal accesses mobile unit by USB (universal serial bus) and when switching to holotype, the mobile unitThe information of the first preset kind port carried out data transmission to the mobile terminal reporting and it is authenticated the of information transferThe information of two preset kind ports, so that the mobile terminal loads the corresponding driving in each port;
The mobile unit loads driving, the driving of the second preset kind port of the first preset kind portWith the driving of trusted authentication chip;
The authentication information that the mobile unit is produced according to the trusted authentication chip, by the port of second preset kindIt is authenticated interacting with the mobile terminal;To be authenticated to the authentication information;
After certification passes through, it is the mobile unit distribution that the mobile unit obtains the mobile terminal according to network segment IDIP address;
The mobile unit is set up according to the IP address, by the first preset kind port and the mobile terminalThe communication connection for carrying out data transmission.
Or, the method flow performed by said one or multiple processors 800 can include:
After mobile terminal accesses mobile unit by USB (universal serial bus) and when switching to holotype, the mobile terminalReceive the information of the first preset kind port for carrying out data transmission that the mobile unit is reported and be authenticated information transferThe second preset kind port information;
The mobile terminal is according to the information of the first preset kind port and the letter of the second preset kind portBreath loads respectively the driving of the first preset kind port and the driving of the second preset kind port;
The mobile terminal is authenticated interacting by the port of second preset kind with the mobile unit, with rightThe authentication information that trusted authentication chip is produced is authenticated;The mobile unit be loaded with the first preset kind port driving,The driving of the second preset kind port and the driving of trusted authentication chip;
After certification passes through, the mobile terminal is that the mobile unit distributes IP address according to network segment ID;
The mobile terminal is set up according to the IP address, by the first preset kind port and the mobile unitThe communication connection for carrying out data transmission.
Electronic equipment described in the present embodiment can be mobile terminal or mobile unit.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be withRealize by another way.For example, device embodiment described above is only schematic, for example, the unitDivide, only a kind of division of logic function there can be other dividing mode when actually realizing.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unitThe part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multipleOn NE.Some or all of unit therein can according to the actual needs be selected to realize the mesh of this embodiment scheme's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible toIt is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated listUnit both can be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and depositIn storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computerEquipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention eachThe part steps of embodiment methods described.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is variousCan be with the medium of store program codes.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present inventionWithin god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.