CN106603860A - Communication connection establishment method and system, mobile terminal and vehicle-mounted equipment - Google Patents

Communication connection establishment method and system, mobile terminal and vehicle-mounted equipment Download PDF

Info

Publication number
CN106603860A
CN106603860A CN201611256186.2A CN201611256186A CN106603860A CN 106603860 A CN106603860 A CN 106603860A CN 201611256186 A CN201611256186 A CN 201611256186A CN 106603860 A CN106603860 A CN 106603860A
Authority
CN
China
Prior art keywords
mobile terminal
port
vehicle
authentication
type
Prior art date
Application number
CN201611256186.2A
Other languages
Chinese (zh)
Inventor
方胜
罗序斌
陈聪
张丙林
Original Assignee
百度在线网络技术(北京)有限公司
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 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Priority to CN201611256186.2A priority Critical patent/CN106603860A/en
Publication of CN106603860A publication Critical patent/CN106603860A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements or network protocols for addressing or naming
    • H04L61/20Address allocation
    • H04L61/2007Address allocation internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for supporting authentication of entities communicating through a packet data network
    • H04L63/0869Network architectures or network communication protocols for network security for supporting authentication of entities communicating through a packet data network for achieving mutual authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72522With means for supporting locally a plurality of applications to increase the functionality
    • H04M1/72527With means for supporting locally a plurality of applications to increase the functionality provided by interfacing with an external accessory

Abstract

The invention provides a communication connection establishment method and system, a mobile terminal and vehicle-mounted equipment. The method comprises: when a mobile terminal is connected with vehicle-mounted equipment through a USB and the mode of the mobile terminal is changed to be a main mode, the vehicle-mounted equipment reports information of a first preset type port for data transmission and information of a second preset type port for authentication information transmission to the mobile terminal, so that the mobile terminal can load drivers corresponding to all the ports; the vehicle-mounted equipment also loads the corresponding drivers and a driver of an authentication chip; according to authentication information generated by the authentication chip, authentication interaction with the mobile terminal is carried out through the second preset type port; after successfully authentication, an IP address distributed to the vehicle-mounted equipment by the mobile terminal based on a network segment ID is obtained; and on the basis of the IP address, data communication connection with the mobile terminal is established through the first preset type port. Therefore, the vehicle-mounted equipment and the mobile terminal can be connected stably; the supported data bandwidth is large enough; multi-data channels can be supported; and the extendibility is high.

Description

通信连接建立方法及系统、移动终端与车载设备【技术领域】 Method and system for establishing a communication connection, the mobile terminal and the in-vehicle apparatus [Technical Field]

[0001] 本发明涉及通信技术领域,尤其涉及一种通信连接建立方法及系统、移动终端与车载设备。 [0001] The present invention relates to communication technologies, and particularly to a method and system for establishing a communication connection, the mobile terminal and the in-vehicle apparatus. 【背景技术】 【Background technique】

[0002] 随着科技的发展,各地汽车保有量的快速增加,车辆已经成为人们出行最基本的代步工具。 [0002] With the development of technology, the rapid increase in car ownership in the country, has become a vehicle to travel the most basic means of transport.

[0003] 随着移动终端的使用普及,为了便于用户在驾驶车辆出行时使用移动终端。 [0003] With the popularity of mobile terminals, in order to facilitate the user using the mobile terminal while driving the vehicle to travel. 现有技术中提供了将移动终端与车载设备连接起来的技术方案,便于用户通过车载设备拨打或者接听移动终端的电话;另外,还可以通过车载设备播放移动终端的音乐。 Providing the prior art technical solutions connecting the mobile terminal together with a vehicle device, user equipment by dialing vehicle or receive calls the mobile terminal; Further, the mobile terminal can also play the music by the in-vehicle apparatus. 目前移动终端与车载设备之间可以通过无线或者有线来连接,例如无线连接时可以采用wifi或者蓝牙来实现。 Current may be connected by wireless or wired between the mobile terminal and the in-vehicle apparatus, may be employed, for example, a wireless Bluetooth or wifi connection is achieved. 有线连接时可以采用基于iap2协议的EA session和EA Native Transport两种方式来实现。 Based to EA session iap2 EA Native Transport protocol and can be used in two ways when a wired connection.

[0004] 但是现有的如iPhone之类的移动终端与车载系统的连接方案中,采用wifi连接的无线连接方案在车载环境中连接不稳定,容易受到干扰。 [0004] However, the conventional mobile terminal, such a connection scheme of the iPhone, the onboard system, a scheme using a wireless connection wifi connection is connected to the in-vehicle environment is unstable, susceptible to interference. 现有技术的将iPhone之类的移动终端做热点建立的无线连接,连接的稳定性还要收到移动终端的数据网络信号的影响,当手机移动数据网络信号很差时连接非常容易断开,且数据传输带宽也较小;现有技术中使用车载设备的硬件搭建的车内wifi,同样信号不稳定,还需要增加车载的wifi设备的硬件成本;现有技术中若采用无线蓝牙连接的方案,也容易受到干扰导致连接不稳定,而且蓝牙传输速率很低,很多时候带宽满足不了应用场景的需求。 Prior art mobile terminal will make the iPhone, a wireless connection is established hotspots, but also receive the impact stability of the connection network data signal of the mobile terminal, when the mobile phone is poor data network connection signal is very easily broken, and the data transmission bandwidth is small; on-vehicle device using the prior art hardware built wifi car, the same signal is unstable, but also need to increase the hardware cost of the vehicle-mounted device wifi; the use of a prior art embodiment of a wireless Bluetooth connection , is also susceptible to interference lead to an unstable connection and Bluetooth transmission rate is very low, many times the bandwidth can not meet the needs of application scenarios. 另外对于现有的有线连接方案,EA session的连接数据带宽比较低,不适合传输大量数据的场景,而EA Native Transport的方式数据带宽足够,但是不支持多数据通道,扩展性较差。 In addition to conventional wired connection scheme, EA session connection data bandwidth is relatively low, is not suitable for large amounts of data of the scene, and EA Native Transport manner sufficient data bandwidth, but does not support multi-channel data, poor scalability. 总之现有的iPhone之类的移动终端与车载设备之间的无线通信连接稳定性非常差,有线通信连接的带宽较低或者扩展性较差。 Overall stability of the wireless communication connection between the iPhone, a conventional mobile terminal and the in-vehicle apparatus is very poor, lower bandwidth connections or wired communication poor scalability. 【发明内容】 [SUMMARY]

[0005] 本发明提供了一种通信连接建立方法及系统、移动终端与车载设备,用于提高移动终端与车载设备之间的连接稳定性、扩展移动终端与车载设备之间通信的带宽,且能够提高移动终端与车载设备之间通信的带宽的可扩展性。 [0005] The present invention provides a communication bandwidth of a connection establishment method and system, the mobile terminal and the vehicle-mounted device, for improving the stability of the connection between the mobile terminal and the vehicle device, the extended communication between the mobile terminal and the vehicle-mounted device, and It can be increased bandwidth communications between the mobile terminal and the vehicle-mounted device scalability.

[0006] 本发明提供一种通信连接建立方法,所述方法包括: [0006] The present invention provides a method for establishing a communication connection, the method comprising:

[0007] 当移动终端通过通用串行总线接入车载设备后并切换为主模式时,所述车载设备向所述移动终端上报进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息,以供所述移动终端加载各端口对应的驱动; When [0007] When the mobile terminal through a universal serial bus access and vehicle device is switched to the master mode, the vehicle equipment to report to the mobile terminal type information for data transmission port and a first predetermined authenticating information transfer a second type of port information preset to the mobile terminal for each port loading corresponding to the drive;

[0008] 所述车载设备加载所述第一预设类型端口的驱动、所述第二预设类型端口的驱动和认证芯片的驱动; [0008] The vehicle driving apparatus loading the first predetermined type of port, and driving said second predetermined authentication chip type port;

[0009] 所述车载设备根据所述认证芯片产生的认证信息,通过所述第二预设类型的端口与所述移动终端进行认证交互;以对所述认证信息进行认证; [0009] The vehicle device according to the authentication information of the authentication chip generated by interaction authenticating the second predetermined type of ports with the mobile terminal; to authenticate the authentication information;

[0010] 认证通过后,所述车载设备获取所述移动终端根据网段id为所述车载设备分配的IP地址; After the [0010] authentication, the mobile device acquires the in-vehicle terminal according to the network segment id assigned IP address of the vehicle-mounted device;

[0011] 所述车载设备根据所述IP地址、通过所述第一预设类型端口与所述移动终端建立进行数据传输的通信连接。 [0011] The vehicle device according to the IP address, the mobile terminal establishes a communication connection for data transmission via the first predetermined type of port.

[0012] 进一步可选地,如上所述方法中,当移动终端通过通用串行总线接入车载设备后并切换为主模式之前,所述方法还包括: Before [0012] Further alternatively, the method described above, after the mobile terminal through a universal serial bus access and vehicle device is switched to the master mode, the method further comprising:

[0013] 当所述移动终端通过所述通用串行总线接入所述车载设备,所述车载设备对所述移动终端进行端口枚举,以检测所述移动终端是否为支持所述第一预设类型端口通信的移动终端; [0013] When the mobile terminal through the universal serial bus device to access the vehicle, said mobile vehicle device of said terminal enumerating a port to detect whether the mobile terminal to support a first pre- mobile terminal type provided communications port;

[0014] 若所述移动终端为支持所述第一预设类型端口通信的移动终端,所述车载设备向所述移动终端发送主从切换命令,以供所述移动终端将从模式切换为主模式; [0014] When the mobile terminal to support the communication port of the first predetermined type of mobile terminal, the vehicle device transmits the handover command from the main switch, for use by the mobile terminal from the mobile terminal to the main pattern mode;

[0015] 所述车载设备将主模式切换为从模式。 The [0015] The vehicle-mounted device from the master mode to mode.

[0016] 进一步可选地,如上所述方法中,所述车载设备根据所述认证芯片产生的认证信息,通过所述第二预设类型的端口与所述移动终端进行认证交互;以对所述认证信息进行认证之前,所述方法还包括: [0016] Further optionally, the method as described above, the vehicle-mounted device according to the authentication information generated by the chip of the authentication, authentication by interacting the second predetermined type of ports with the mobile terminal; on to the prior to authenticating said authentication information, said method further comprising:

[0017] 所述车载设备启动所述认证芯片的认证,并获取所述认证芯片产生的所述认证信息。 The [0017]-vehicle device starts the authentication verifying chip, and acquiring the authentication the authentication information generated by the chip.

[0018] 进一步可选地,如上所述方法中,当所述移动终端为I0S操作系统的移动终端,所述第一预设类型端口为NCM端口,所述第二预设类型端口为IAP2端口,所述认证芯片为MFI 芯片。 [0018] Further alternatively, the method as described above, when the mobile terminal is a mobile terminal I0S operating system, the first port is preset type NCM port, the second port is preset type port IAP2 the authentication chip is a chip MFI.

[0019] 本发明还提供一种通信连接建立方法,所述方法包括: [0019] The present invention also provides a method for establishing a communication connection, the method comprising:

[0020] 当移动终端通过通用串行总线接入车载设备后并切换为主模式时,所述移动终端接收所述车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息; When [0020] When the mobile terminal through a universal serial bus access and vehicle device is switched to the master mode, the mobile terminal receiving the information reported by the vehicle-mounted apparatus a first preset type of data transmission port, and authentication information the second preset type information transmission port;

[0021] 所述移动终端根据所述第一预设类型端口的信息和所述第二预设类型端口的信息分别加载所述第一预设类型端口的驱动和所述第二预设类型端口的驱动; [0021] The mobile terminal according to each loading port information of the first predetermined type of information and the second predetermined type of port the first predetermined type of drive port and said second port preset type drive;

[0022] 所述移动终端通过所述第二预设类型的端口与所述车载设备进行认证交互,以对认证芯片产生的认证信息进行认证;所述车载设备加载有所述第一预设类型端口的驱动、 所述第二预设类型端口的驱动和认证芯片的驱动; [0022] The mobile terminal through the second port and the preset type of vehicle authentication device interact to authenticate the authentication information generated by the chip; the in-vehicle apparatus loaded with the first preset type port driver, and driving the second verifying chip preset type of port;

[0023] 认证通过后,所述移动终端根据网段ID为所述车载设备分配IP地址; After the [0023] authentication, the mobile terminal according to the ID of the on-board network of the IP address assigned device;

[0024] 所述移动终端根据所述IP地址、通过所述第一预设类型端口与所述车载设备建立进行数据传输的通信连接。 [0024] The mobile terminal according to the IP address, to establish a communication connection for data transfer through the first port and the preset type vehicle-mounted device.

[0025] 进一步可选地,如上所述方法中,所述移动终端接收所述车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息之前, 所述方法还包括: [0025] Further optionally, the method as described above, the mobile terminal apparatus receives the vehicle information reported by a first preset type of data transmission port and a second preset type of authentication information transmission port prior information, the method further comprising:

[0026] 当所述移动终端通过所述通用串行总线接入所述车载设备,且通过所述车载设备的端口枚举确定当前所述移动终端为支持所述第一预设类型端口通信的移动终端时,所述移动终端接收所述车载设备发送的主从切换命令; [0026] When the mobile terminal through the universal serial bus device to access the vehicle, and is determined by enumeration port of the current-vehicle device of the mobile terminal to support a first predetermined type of communication with the port when the mobile terminal, the mobile terminal receives the main vehicle apparatus transmitted from the handover command;

[0027] 所述移动终端根据所述主从切换命令,将当前模式切换为主模式; [0027] The mobile terminal according to the handover command from the master, the current mode is switched to the master mode;

[0028] 所述移动终端对所述车载设备进行端口枚举。 [0028] The mobile terminal device of the vehicle port enumeration.

[0029] 进一步可选地,如上所述方法中,认证通过后,所述移动终端根据网段ID为所述车载设备分配IP地址之前,所述方法还包括: [0029] Further alternatively, the method described above, after the authentication by the mobile terminal according to the segment ID is assigned an IP address prior to the on-board device, the method further comprising:

[0030] 所述移动终端接收所述车载设备发送的IP请求; [0030] The mobile terminal receives the transmitted IP-vehicle apparatus requests;

[0031] 所述移动终端根据网段ID为所述车载设备分配IP地址之后,所述方法还包括: [0031] The mobile terminal according to the ID of the segment-vehicle device after assigning the IP address, the method further comprising:

[0032] 所述移动终端向所述车载设备发送所述IP地址。 [0032] the mobile terminal to the in-vehicle device transmits the IP address.

[0033] 进一步可选地,如上所述方法中,当所述移动终端为I0S操作系统的移动终端,所述第一预设类型端口为NCM端口,所述第二预设类型端口为IAP2端口,所述认证芯片为MFI 芯片。 [0033] Further alternatively, the method as described above, when the mobile terminal is a mobile terminal I0S operating system, the first port is preset type NCM port, the second port is preset type port IAP2 the authentication chip is a chip MFI.

[0034] 本发明还提供一种车载设备,所述车载设备包括: [0034] The present invention further provides an in-vehicle apparatus, the in-vehicle apparatus comprising:

[0035] 发送模块,用于当移动终端通过通用串行总线接入所述车载设备后并切换为主模式时,向所述移动终端上报进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息,以供所述移动终端加载各端口对应的驱动; [0035] The sending module, configured to, when the mobile information terminal through a universal serial bus access to the rear vehicle device and switching to the master mode, reporting a first preset type of data transfer port to the mobile terminal and for preset type information of the second port of the authentication information transmitted to the mobile terminal for each port loading corresponding to the drive;

[0036] 加载模块,用于加载所述第一预设类型端口的驱动、所述第二预设类型端口的驱动和认证芯片的驱动; [0036] The loading module for driving the first load port of a predetermined type, and driving the second verifying chip preset type of port;

[0037] 认证模块,用于根据所述认证芯片产生的认证信息,通过所述第二预设类型的端口与所述移动终端进行认证交互;以对所述认证信息进行认证; [0037] authentication module for authentication the authentication information generated by the chip, through interaction authenticating the second predetermined type of ports with the mobile terminal; to authenticate the authentication information;

[0038] 获取模块,用于认证通过后,获取所述移动终端根据网段ID为所述车载设备分配的IP地址; [0038] The acquisition module for the authentication, the mobile terminal acquires the segment according to the vehicle-mounted device ID assigned IP address;

[0039] 建立模块,用于根据所述IP地址、通过所述第一预设类型端口与所述移动终端建立进行数据传输的通信连接。 [0039] establishing module, configured according to the IP address, the mobile terminal establishes a communication connection for data transmission via the first predetermined type of port.

[0040] 进一步可选地,如上所述车载设备中,所述车载设备还包括枚举模块和切换模块; [0040] Further alternatively, the in-vehicle apparatus described above, the apparatus further comprises a vehicle enumeration module and a switching module;

[0041] 所述枚举模块,用于当所述移动终端通过所述通用串行总线接入所述车载设备, 对所述移动终端进行端口枚举,以检测所述移动终端是否为支持所述第一预设类型端口通信的移动终端; [0041] The enumeration module configured to, when the mobile terminal through the universal serial bus access to the vehicle device, the mobile terminal enumerating a port to detect whether the mobile terminal to support the said first predetermined type of mobile communication terminal port;

[0042] 所述发送模块,还用于若所述移动终端为支持所述第一预设类型端口通信的移动终端,向所述移动终端发送主从切换命令,以供所述移动终端将从模式切换为主模式; [0042] The sending module is further configured to, if the mobile terminal is a communication port of a first predetermined type of the mobile terminal supports, sending from the master to the mobile terminal a handover command for the mobile terminal from mode switching master mode;

[0043] 所述切换模块,用于将主模式切换为从模式。 [0043] The switching module for the master mode to slave mode.

[0044] 进一步可选地,如上所述车载设备中,所述车载设备还包括启动模块; [0044] Further alternatively, the in-vehicle apparatus described above, the on-vehicle device further comprises a startup module;

[0045] 所述启动模块,用于启动所述认证芯片的认证; [0045] The starting module for starting the authentication verifying chip;

[0046] 所述获取模块,还用于获取所述认证芯片产生的所述认证信息。 [0046] The acquisition module is further configured to obtain the authentication information generated by the authentication chip.

[0047] 进一步可选地,如上所述车载设备中,当所述移动终端为I0S操作系统的移动终端,所述第一预设类型端口为NCM端口,所述第二预设类型端口为IAP2端口,所述认证芯片为MFI芯片。 [0047] Further alternatively, the in-vehicle apparatus described above, when the mobile terminal is a mobile terminal I0S operating system, the first port is preset type NCM port, the second port is preset type IAP2 port, the authentication chip is a chip MFI.

[0048] 本发明还提供一种移动终端,所述移动终端包括: [0048] The present invention also provides a mobile terminal, the mobile terminal comprising:

[0049] 接收模块,用于当移动终端通过通用串行总线接入车载设备后并切换为主模式时,接收所述车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息; [0049] a receiving module, configured to, when the mobile terminal through a universal serial bus access and vehicle device is switched to the master mode, receiving authentication information and the vehicle device transmitting data reported by a first preset type of port second port information preset type information transmission;

[0050] 加载模块,用于根据所述第一预设类型端口的信息和所述第二预设类型端口的信息分别加载所述第一预设类型端口的驱动和所述第二预设类型端口的驱动; [0050] The loading module according to the preset type information of the first port and the port information of the second predetermined type are loading the first predetermined type of drive port and the second predetermined type drive port;

[0051] 认证模块,用于通过所述第二预设类型的端口与所述车载设备进行认证交互,以对认证芯片产生的认证信息进行认证;所述车载设备加载有所述第一预设类型端口的驱动、所述第二预设类型端口的驱动和认证芯片的驱动; [0051] authentication module for performing authentication interaction through the second port and the preset type of vehicle device, to authenticate the authentication information generated by the chip; the in-vehicle apparatus loaded with the first predetermined drive type of port, and driving said second predetermined authentication chip type port;

[0052] 分配模块,用于认证通过后,根据网段ID为所述车载设备分配IP地址; [0052] The allocation module, for authentication, the network segment in accordance with the vehicle-mounted device ID is assigned an IP address;

[0053] 建立模块,用于根据所述IP地址、通过所述第一预设类型端口与所述车载设备建立进行数据传输的通信连接。 [0053] establishing module, according to the IP address for establishing a communication connection for data transfer through the first port and the preset type vehicle-mounted device.

[0054] 进一步可选地,如上所述移动终端中,所述移动终端还包括枚举模块和切换模块: [0054] Further alternatively, the mobile terminal described above, the mobile terminal further includes an enumeration module and a switching module:

[0055] 所述接收模块,还用于当所述移动终端通过所述通用串行总线接入所述车载设备,且通过所述车载设备的端口枚举确定当前所述移动终端为支持所述第一预设类型端口通信的移动终端时,接收所述车载设备发送的主从切换命令; [0055] The receiving module is further configured to, when the mobile terminal through the universal serial bus device to access the vehicle, and determining a current enumeration of the mobile terminal device through the port of the vehicle to support the the first predetermined type of mobile terminal communications port, receiving the master vehicle apparatus transmitted from the handover command;

[0056] 所述切换模块,用于根据所述主从切换命令,将当前模式切换为主模式; [0056] The switching module according to the master-slave switch command, switches the current mode to the master mode;

[0057] 所述枚举模块,用于对所述车载设备进行端口枚举。 The [0057] enumeration module is configured to enumerate said vehicle device port.

[0058] 进一步可选地,如上所述移动终端中,所述移动终端还包括发送模块; [0058] Further alternatively, the mobile terminal described above, the mobile terminal further comprises a transmitting module;

[0059] 所述接收模块,还用于接收所述车载设备发送的IP请求; [0059] The receiving module is further configured to receive the IP request sent by the vehicle;

[0060] 所述发送模块,用于向所述车载设备发送所述IP地址。 [0060] The transmission module, for transmitting to the vehicle-mounted device of the IP address.

[0061] 进一步可选地,如上所述移动终端中,当所述移动终端为I0S操作系统的移动终端,所述第一预设类型端口为NCM端口,所述第二预设类型端口为IAP2端口,所述认证芯片为MFI芯片。 [0061] Further alternatively, the mobile terminal described above, when the mobile terminal is a mobile terminal I0S operating system, the first port is preset type NCM port, the second port is preset type IAP2 port, the authentication chip is a chip MFI.

[0062] 本发明还提供一种通信连接建立系统,所述系统包括用于建立通信连接的车载设备和移动终端;所述车载设备采用如上任一所述的车载设备;所述移动终端采用如上任一所述的移动终端。 [0062] The present invention also provides a communication connection establishment, the system comprising a vehicle device for establishing a communication connection of the mobile terminal; using the in-vehicle apparatus as in any one of the in-vehicle apparatus; using a mobile terminal such as the mobile terminal according to an office.

[0063] 本发明的通信连接建立方法及系统、移动终端与车载设备,当移动终端通过USB接入车载设备后并切换为主模式时,移动终端接收车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息;移动终端根据第一预设类型端口的信息和第二预设类型端口的信息分别加载第一预设类型端口的驱动和第二预设类型端口的驱动;移动终端通过第二预设类型的端口与车载设备进行认证交互,以对认证芯片产生的认证信息进行认证;车载设备加载有第一预设类型端口的驱动、第二预设类型端口的驱动和认证芯片的驱动;认证通过后,移动终端根据网段ID为车载设备分配IP地址;移动终端根据IP地址、通过第一预设类型端口与车载设备建立进行数据传输的通信连接。 When [0063] the present invention, the communication connection establishment method and a system, a mobile terminal and in-vehicle apparatus, when the mobile terminal through the USB device and the access vehicle is switched to the master mode, the mobile terminal receives a first vehicle device reported by the pre-data transmission information and preset type information of a second port type provided authentication information transmission port; a first preset type mobile terminal loading port of the drive according to the preset type information of the first port and the second port, respectively, preset type and driving a second preset type of port; mobile terminal authentication by interacting with the second predetermined vehicle device type port, to authenticate the authentication information generated by the chip; vehicle apparatus loaded with a first preset type of drive port , and driving a second preset type verifying chip port; after authentication, the mobile terminal device is assigned an IP address for the vehicle according to the segment ID; mobile terminal according to the IP address, the establishment by a first port and a preset type vehicle-mounted device a communication connection for data transmission. 本发明的车载设备与移动终端之间采用USB的有线连接进行通信,可以克服现有技术中车载设备与移动终端之间采用无线方式进行通信,连接稳定性非常差的缺陷;而且,本发明的车载设备与移动终端之间采用USB的有线连接,且采用NCM端口进行数据传输,该NCM是一种传输网络数据的网络端口,具有高速传输机制,可以支持的数据带宽足够大,数据传输的效率比较高;而且本发明的技术方案中,车载设备与移动终端之间通过USB连接;车载设备与移动终端两端都会把USB端口虚拟成网卡,两侧的应用如Carlife可以通过网卡和对端进行通讯,虚拟的网卡可以进行网络编程,建立多个网络通道,因此,本发明的技术方案能够支持多数据通道,可扩展性非常好。 Employed between the vehicle device and the mobile terminal of the present invention connected to a wired USB communication, can overcome the disadvantages of using wireless communication between the vehicle device and the prior art mobile terminal, connection stability is very poor; Furthermore, the present invention employed between the vehicle device and the mobile terminal USB wired connection, and data transfer port using NCM, NCM is the network port for transmitting network data, having a high-speed transmission mechanism may be supported sufficiently large data bandwidth, data transmission efficiency high; the technical solution of the present invention, between the vehicle device and the mobile terminal is connected via USB; vehicle device and the mobile terminal ends are put into the USB port of a virtual card, as applied on both sides of the card and may be performed by Carlife peer communications, virtual network card can be programmed to create multiple network channels, therefore, the technical solution of the present invention can support multiple data channels, scalability is very good. 【附图说明】 BRIEF DESCRIPTION

[0064] 图1为本发明的通信连接建立方法实施例一的流程图。 [0064] FIG. 1 is a communication connection establishment method of the present invention, a flow diagram of the embodiment.

[0065] 图2为本发明的通信连接建立方法实施例二的流程图。 [0065] FIG. 2 of the present invention the communication connection establishment flowchart of a method according to the second embodiment.

[0066] 图3为本发明的通信连接建立方法实施例三的信令图。 [0066] FIG communication connection establishment method of the present invention is a signaling diagram according to a third embodiment.

[0067]图4为本发明实施例中iPhone手机、车载设备以及MFi认证芯片的结构示意图。 [0067] FIG. 4 is a schematic structure of the iPhone, and the vehicle device authentication chip MFi embodiment of the present invention.

[0068] 图5为本发明的车载设备实施例一的结构图。 Structural diagram of a vehicle device [0068] FIG. 5 of the present invention.

[0069] 图6为本发明的车载设备实施例二的结构图。 A configuration diagram according to a second in-vehicle apparatus [0069] FIG. 6 of the present invention.

[0070] 图7为本发明的移动终端实施例一的结构图。 A structural diagram of a mobile terminal [0070] FIG. 7 embodiment of the present invention.

[0071] 图8为本发明的移动终端实施例二的结构图。 A configuration diagram according to the second mobile terminal [0071] FIG. 8 of the present invention.

[0072] 图9为本发明的通信连接建立系统实施例的结构图。 Establishing a configuration diagram of a communication system according to embodiment [0072] FIG. 9 of the present invention is connected.

[0073]图10为本发明的电子设备实施例的结构图。 [0073] The structure of Embodiment 10 of the electronic device of the present invention. FIG. 【具体实施方式】 【Detailed ways】

[0074] 为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。 [0074] To make the objectives, technical solutions, and advantages of the invention more apparent, the accompanying drawings and specific embodiments of the present invention will be described in detail with.

[0075] 本发明实施例的通信连接建立方法应用在移动终端和车载设备之间。 Example embodiments of the communication connection [0075] Methods of the present invention is established between the mobile terminal and the in-vehicle apparatus. 本实施例的车载设备可以理解为设置在车机上,与车机为一体的设备。 Vehicle-mounted device according to the present embodiment may be understood to be disposed in a vehicle machine, with the machine as one of the vehicle devices. 本发明实施例的通信连接建立方法所应用的场景中,移动终端与车载设备之间可以通过有线的方式进行传输,例如可以基于iap2协议的EA session和EA Native Transport两种方式进行通讯。 Example embodiments of the present invention a communication connection establishing method applied scenario between the mobile terminal and the vehicle-mounted device may be transmitted by wired manner, the communication may be based on, for example, EA session iap2 EA Native Transport protocol and two ways. 或者本发明实施例的移动终端与车载设备之间也可以采用通用串行总线(Universal Serial Bus;USB)进行有线连接。 Wired connection; or between a mobile terminal and a vehicle-mounted device according to the present embodiment of the invention may also be employed a universal serial bus (USB Universal Serial Bus). 本发明实施例的发送端设备与接收端设备之间的有线连接采用车机互联通信协议进行消息传输。 Wired connection between the transmission side apparatus and the receiving side apparatus of the embodiment of the present invention, the vehicle computer network using a communication protocol for message transmission. 本实施例中,发送端设备与接收端设备之间也可以通过无线连接的方式实现采用车机互联通信协议进行消息传输,具体的无线连接方式在本实施例中不做限定。 In this embodiment, between the transmission side apparatus and the receiving side apparatus can also be implemented using the vehicle computer network communication protocol messages transmitted by wireless connection, wireless connection specific embodiments is not limited in the present embodiment. 本发明实施例中可以定义一种车机互联通信协议的名称为CarLife,可以理解CarLife 为本申请中定义的一种在移动终端与车载设备之间进行消息传输的通信协议,该协议支持移动终端和车载设备之间采用USB进行通信。 Embodiments of the present invention may be a vehicle name of the machine defined in the Internet communication protocol is carlife, carlife be understood that a medium-defined communication protocol message transmitted between the mobile terminal and the vehicle-mounted device of the present application, the mobile terminal protocol supports and using USB communication between the vehicle device. 本发明实施例的技术方案在使用时,可以在移动终端和车载设备两侧均安装CarLife的应用,使得移动终端和车载设备两侧都支持车机互联通讯,以在移动终端和车载设备连接时,移动终端和车载设备通过CarLife进行消息传输,以实现移动终端将页面传输至车载设备,并在车载设备侧显示。 When the technical solution of the embodiment of the present invention, when used, may be applied CarLife are mounted on both sides of the vehicle and a mobile terminal apparatus, such that both sides of the vehicle and the mobile terminal devices support the vehicle computer communication network, to connect in-vehicle apparatus and the mobile terminal , mobile terminals and vehicle devices via carlife message transmission, to a mobile terminal to transmit the page to the vehicle-mounted device, and displays the in-vehicle device side.

[0076] 本发明实施例中采用CarLife车机互联通信协议进行消息传输时,可以传输的消息的内容的类型包括控制消息和多媒体消息。 Examples of the type of content of the message when the vehicle computer network using a communication protocol CarLife message transmission, the transmission can be implemented [0076] The present invention includes a control message and a multimedia message. 为了进一步增加根据消息内容传输消息的准确性,本发明实施例中的控制消息还可以分为控制消息和反控制消息两种类型。 To further increase the accuracy of transmission of message according to the message content, the control message in the embodiment of the present invention may also be divided into control messages and control message anti-types. 例如,本发明实施例的控制消息,可以为移动终端控制车载设备打开/关闭车机的空调、或者打开/关闭车机的天窗的控制消息;还可以为车载设备控制移动终端拨打电话或者读取移动终端的信息等等控制消息。 For example, the control message according to an embodiment of the present invention may be controlled-vehicle terminal device is a mobile open / close car air-conditioning machine or control messages to open / close the sunroof of the vehicle engine; may also be a mobile vehicle equipment control terminal call or read information of the mobile terminal, etc. control message. 本发明实施例的控制消息还可以包括车载数据、蓝牙自动配对消息以及视频初始化消息等等中的至少一种。 A control message of the embodiment of the present invention may further comprise at least one vehicle data, automatic matching Bluetooth message and the like in the video initialization message. 本发明实施例的反控制消息可以包括车载设备向移动终端发送的车机侧的触摸事件或者按键事件等反控制消息。 Anti embodiment of the control message may include a cart machine of the present invention the vehicle-mounted device transmits to the mobile terminal side or a key touch event message anti-control events. 为了进一步增加根据消息内容传输消息的准确性,本发明实施例的多媒体消息可以分为视频消息、音频消息以及语音消息。 To further increase the accuracy of transmission of message according to the message content, multimedia messages embodiment of the present invention can be divided into video messages, audio messages, and voice messages. 例如,本发明实施例的视频消息可以为移动终端向车载设备传输的视频编码数据,在移动终端与车载设备之间通过USB通信之后,移动终端需要将屏幕上显示的信息以视频的形式实时地投射到车载设备上。 For example, video messages embodiment of the present invention may be followed by the mobile terminal to the video encoder vehicle device data transmission between the mobile terminal and the vehicle-mounted device via USB communication, the mobile terminal needs the information displayed on the screen of the video in real time in the form of projected on-board equipment. 即该视频消息包括移动终端的屏幕的视频编码数据。 That is, the video encoded data message includes a video screen of the mobile terminal. 本发明实施例的音频信息可以为Media音频流如音乐数据,或者还可以为用于传输从文本到语言(Text To Sound;TTS)的音频流如导航语音播报数据。 Audio information of the embodiment of the present invention may be a Media Audio stream such as music data, may also be used for transmission from or into language text (Text To Sound; TTS) voice audio stream broadcast navigation data. 例如,可以分别用于移动终端向车载设备传输音乐和导航语音播报的脉冲编码调制(Pulse Code Modulation;PCM)流。 For example, pulse code modulation may be used for each mobile terminal to broadcast music and transmitting vehicle device navigation voice (Pulse Code Modulation; PCM) stream. 本发明实施例的语音消息可以为车载设备向移动终端传输车机麦克(mic)录制的用户语音数据。 Voice messages embodiment of the present invention may be a vehicle-mounted device to the mobile terminal transporting vehicles recording microphone unit (MIC) of the user speech data.

[0077] 对于每种消息内容的类型,对应的消息结构不同,在消息传输时所采用的数据通道不相同。 [0077] For each type of message content, message corresponding to a different configuration, when the message data transmission channel is not used in the same. 由上所述,本发明实施例中的消息内容可以包括控制消息、视频消息、音频消息、 语音消息以及反控制消息五种类型,每种消息均有自己对应的数据结构和消息传输时对应的数据通道。 From the above, embodiments of the present invention the content of the message may include control messages, video messages, audio messages, voice messages, and five types of anti control message, each message corresponding to the time has its own corresponding data structures and message transmission data channel. 即在CarLife车机互联通信协议中对应有五种类型的数据通道:控制消息数据通道、视频消息数据通道、音频消息数据通道、语音消息数据通道以及反控消息数据通道。 That corresponds to the vehicle computer network CarLife There are five types of communication protocols of data channels: a control channel message data, the message data video channel, an audio channel data message, voice message data and a counter control channel message data channel. [0078] 本发明实施例的通信连接建立方法可以基于上述的CarLife车机互联通信协议来建立移动终端与车载设备之间的通信,通信连接建立的详细过程可以参考下述实施例的记载。 [0078] Example of method for establishing a communication connection may be based on the aforementioned vehicle computer CarLife Internet communication protocol to establish a detailed procedure of a communication between the mobile terminal and the vehicle-mounted device, communication connection establishment, reference may be described in the following examples embodiments of the present invention.

[0079]图1为本发明的通信连接建立方法实施例一的流程图。 [0079] FIG. 1 is a communication connection establishment method of the present invention, a flow diagram of the embodiment. 如图1所述,本实施例的通信连接建立方法,具体可以包括如下步骤: As shown in Figure 1, the present embodiment is a communication connection establishing method may specifically include the following steps:

[0080] 100、当移动终端通过通用串行总线(Universal Serial Bus ;USB)接入车载设备后并切换为主模式时,车载设备向移动终端上报进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息,以供移动终端加载各端口对应的驱动; [0080] 100, when the mobile terminal through a universal serial bus (Universal Serial Bus; USB) and the in-vehicle device after switching the access to the master mode, the vehicle-mounted equipment to report a first type of port information preset for data transmission to the mobile terminal a second port type and preset information is the authentication information transmitted to the mobile terminal for each corresponding port driver loaded;

[0081] 101、车载设备加载第一预设类型端口的驱动、第二预设类型端口的驱动和认证芯片的驱动; [0081] 101, in-vehicle apparatus loaded with a first predetermined type of port driver, and driving a second preset type verifying chip port;

[0082] 102、车载设备根据认证芯片产生的认证信息,通过第二预设类型的端口与移动终端进行认证交互;以对认证信息进行认证; [0082] 102, the vehicle-mounted apparatus according to the authentication information generated by the chip, the second authentication preset type of interaction with the mobile terminal port; to authenticate the authentication information;

[0083] 103、认证通过后,车载设备获取移动终端根据网段ID为车载设备分配的IP地址; [0083] 103, after authentication, a mobile terminal apparatus acquires vehicle segment according to vehicle device ID assigned IP address;

[0084] 104、车载设备根据IP地址、通过第一预设类型端口与移动终端建立进行数据传输的通信连接。 [0084] 104, the vehicle-mounted apparatus according to the IP address to establish a communication connection for data transmission via the first port and the preset type mobile terminal.

[0085] 本实施例的通信连接建立方法的执行主体为车载设备,在车载设备一侧对本发明的通信连接建立方法进行详细介绍。 [0085] The present embodiment is a communication method for establishing a connection to perform body-vehicle device, a detailed description of the present invention is to establish a communication connection method in vehicle-mounted device side. 本实施例中,车载设备与移动终端之间通过通用串行总线进行连接,以进行通信。 In this embodiment, between the vehicle device and the mobile terminal are connected through a universal serial bus to communicate.

[0086] 实际使用中,将移动终端与车载设备通过USB连接起来,此时车载设备工作在主(HOST)模式,移动终端工作在从模式即DEVICE模式。 [0086] In actual use, the vehicle-mounted mobile terminal device connected via USB, the working vehicle device main case (the HOST) mode, the mobile terminal is operating in the slave mode i.e. DEVICE mode. 由于移动终端与车载设备要建立通信, 需要将车载设备和移动终端进行模式切换,以将移动终端切换为HOST模式。 Since the mobile terminal to establish communications with the vehicle-mounted apparatus, the vehicle-mounted device and the mobile terminal needs to switch modes of the mobile terminal to switch the HOST mode. 移动终端切换至HOST模式之后,车载设备需要向移动终端上报第一预设类型端口的信息和第二预设类型的端口的信息,第一预设类型的端口是用于后续进行数据传输;第二预设类型的端口适用于后续出进行认证信息传输。 After the mobile terminal switches to HOST mode, the vehicle-mounted apparatus needs to report the preset type information and the second port of a first predetermined type of port to the mobile terminal, a first preset type of data port for subsequent transmission; first two ports preset type suitable for the subsequent transmission of the authentication information. 也就是说本实施例的移动终端和车载设备之间数据传输和建立连接之前的认证信息传输采用不同的端口。 That data transmission before transmitting the authentication information and establishing a connection between the mobile terminal and the vehicle-mounted apparatus according to the present embodiment employs a different port. 当移动终端收到第一预设类型端口的信息和第二预设类型的端口的信息之后,加载第一预设类型端口的驱动和第二预设类型端口的驱动;其中第一预设类型端口的驱动和第二预设类型端口的驱动预先设置在移动终端内,以便于在需要加载时及时加载。 When the mobile terminal receives a second preset type information and the port of a first predetermined type of port, the port type load driver driving a first predetermined type and a second predetermined port; wherein the first predetermined type port drivers and a second drive port of preset type previously provided in the mobile terminal, so as to timely loading loaded when needed. 在车载设备侧,车载设备也加载第一预设类型端口的驱动和第二预设类型端口的驱动;另外,本实施例的移动终端中自带有认证模块,能够与车载设备进行认证交互,实现对车载设备的认证。 The in-vehicle device side, a first predetermined vehicle device or load port and a second drive type driving preset type of port; Further, the mobile terminal of the present embodiment comes with an authentication module to authenticate interact with the in-vehicle device, to achieve certification of on-board equipment. 而车载设备侧内部预设有认证芯片,在加载驱动时,需要同时在车载设备侧加载认证芯片的驱动。 And the inner side of a predetermined in-vehicle apparatus an authentication chip, when the driving load, need to be loaded in the authentication verifying chip driver-vehicle device side. 然后车载设备侧的认证芯片可以产生认证信息,然后车载设备通过第二预设类型端口将认证信息传输至移动终端侧,由移动终端内的认证模块对认证信息进行认证处理,如果认证过程中,移动终端侧还根据认证消息产生一定的校验消息需要进一步由认证芯片进行认证处理,则移动终端再通过第二预设类型端口将需要认证芯片处理的校验信息传输至车载设备,按照这种方式反复交互,实现对认证消息的认证,即实现移动终端对车载设备的认证。 Then the vehicle-mounted device side authentication verifying chip may generate the authentication information, then the vehicle-mounted device authentication information to the mobile terminal side through the second predetermined type of port, the authentication information of the authentication process by the authentication module in the mobile terminal, if the authentication process, the mobile terminal side authentication message needs further check message in accordance with a certain chip authentication by the authentication process, the mobile terminal and then a second preset type information transmission port will need to verify the authentication process to a chip-vehicle devices, in this repeatedly interactive manner, to achieve authentication of the authentication message, i.e., a mobile terminal of the in-vehicle authentication device. 认证通过之后,确定车载设备可以与移动终端通信连接,此时车载设备可以获取移动终端根据网段ID为车载设备分配的IP地址。 After authentication, determining the vehicle-mounted device may be connected with the mobile communication terminal, when the vehicle-mounted device can acquire the IP address of the mobile terminal according to the segment ID is assigned to the vehicle-mounted device. 具体地,可以由车载设备向移动终端请求IP地址,然后车载设备根据移动终端的请求,根据移动终端自身的网段ID为车载设备分配与移动终端在同一网段的IP地址,这样保证移动终端与车载设备的通信。 Specifically, the vehicle-mounted device may be requested by the mobile terminal IP address, then the in-vehicle apparatus according to a request of the mobile terminal, the mobile terminal itself as the network segment ID assigned IP address of the vehicle-mounted device and the mobile terminal in the same network segment, thus ensuring that the mobile terminal communication and vehicle-mounted devices. 然后移动终端将分配的IP地址发送给车载设备,由车载设备根据该IP地址与移动终端之间通过第一预设类型端口建立通信连接。 The mobile terminal transmits the IP address allocated to the onboard apparatus, a first predetermined type by the vehicle-mounted device connected to a communication port in accordance with established between the IP address of the mobile terminal. 本实施例的移动终端与车载设备之间可以采用上述实施例所述的CarLife车机互联通信协议进行通信,并在采用本实施例的方法建立通信连接之后,采用CarLife车机互联通信协议的数据通道进行数据传输。 After may be employed between the mobile terminal and the vehicle-mounted device according to the present embodiment CarLife vehicle computer network communication protocol described in the above-described embodiments communication, and communication connection is established using the method according to the present embodiment, the use of Internet communication protocols CarLife vehicle computer data channels for data transmission.

[0087] 本实施例的通信连接建立方法,当移动终端通过USB接入车载设备后并切换为主模式时,车载设备向移动终端上报进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息,以供移动终端加载各端口对应的驱动;车载设备加载第一预设类型端口的驱动、第二预设类型端口的驱动和认证芯片的驱动;根据认证芯片产生的认证信息,通过第二预设类型的端口与移动终端进行认证交互;以对认证信息进行认证;认证通过后,车载设备获取移动终端根据网段ID为车载设备分配的IP地址;根据IP地址、通过第一预设类型端口与移动终端建立进行数据传输的通信连接。 [0087] The present embodiment is a communication method for establishing a connection, after the mobile terminal through the USB device and the access vehicle is switched to the master mode, the first in-vehicle equipment to report information preset type of data transfer port to the mobile terminal authenticates and the second preset type information transmission port, for loading the mobile terminal corresponding to each port of the drive; type vehicle apparatus loaded with a first predetermined port of the drive, the drive of the second drive port of a preset type and authentication chip; according authentication information generated by the chip, by a second preset type of authentication interaction with the mobile terminal port; authentication information for authentication; after the authentication, the mobile terminal apparatus acquires vehicle segment according to vehicle device ID assigned IP address; the IP address, establish communication connection for data transmission via the first port and the preset type mobile terminal. 本实施例的车载设备与移动终端之间采用USB的有线连接进行通信,可以克服现有技术中车载设备与移动终端之间采用无线方式进行通信,连接稳定性非常差的缺陷;而且,本实施例的车载设备与移动终端之间采用USB的有线连接,且采用NCM端口进行数据传输,该NCM是一种传输网络数据的网络端口,具有高速传输机制,可以支持的数据带宽足够大,数据传输的效率比较高;而且本实施例的技术方案中,车载设备与移动终端两端都会把USB端口虚拟成网卡,两侧的应用如Carlife可以通过网卡和对端进行通讯,虚拟的网卡可以进行网络编程,建立多个网络通道,因此,本实施例的技术方案能够支持多数据通道,可扩展性非常好。 The present embodiment uses between vehicle device and a mobile terminal connected to the USB communication cable can be employed to overcome the drawbacks wireless communication between the onboard device and the mobile terminal, connection stability is very poor in the prior art; Further, the present embodiment employed between the vehicle device and a mobile terminal connected to a USB cable, and data transmission port using NCM, NCM is the network port for transmitting network data, high-speed transmission having a mechanism that can support a sufficiently large data bandwidth, the data transmission high efficiency; the technical solution according to the present embodiment, both ends of the vehicle-mounted device and the mobile terminal are the USB port into a virtual card, the application can communicate on both sides as Carlife, virtual network card and a card can be carried out by the peer program, establishing a plurality of network channels, and therefore, the technical solution of the present embodiment is capable of supporting multiple data channels is very good scalability.

[0088] 进一步可选地,在上述实施例的技术方案的基础上,当移动终端通过USB接入车载设备后并切换为主模式之前,本实施例的通信连接建立方法,还可以包括如下步骤: Before [0088] Further alternatively, on the basis of the technical solution of the above-described embodiments, after the mobile terminal through the USB device and the access vehicle is switched to the master mode, the present embodiment of the communication connection establishment method may further comprise the step of :

[0089] (al)当移动终端通过USB接入车载设备,车载设备对移动终端进行端口枚举,以检测移动终端是否为支持第一预设类型端口通信的移动终端; [0089] (al) when the mobile access terminal through the USB-vehicle device, the vehicle-mounted device of the mobile terminal enumerating a port to detect whether the mobile terminal supports a first preset type of mobile communication terminal port;

[0090] (a2)若移动终端为支持第一预设类型端口通信的移动终端,车载设备向移动终端发送主从切换命令,以供移动终端将从模式切换为主模式; [0090] (a2) to the mobile terminal if the mobile terminal is a communication port that supports a first preset type of mobile terminal, the handover command from the master vehicle apparatus, a mobile terminal for switching from a mode to the master mode;

[0091] (a3)车载设备将主模式切换为从模式。 [0091] (a3) ​​the vehicle device from the master mode to mode.

[0092] 在移动终端通过USB接入车载设备时,车载设备是HOST模式,移动终端为DEVICE模式,此时车载设备对移动终端的USB端口进行端口枚举,检测移动终端是否支持第一预设类型端口通信。 [0092] When the mobile terminal through USB access vehicle device, the vehicle-mounted device is a HOST mode, the mobile terminal is a DEVICE mode where the vehicle-mounted device on a USB port of the mobile terminal enumerating a port, detecting whether the mobile terminal supports a first preset the type of port traffic. 若支持,车载设备向移动终端发送主从切换命令,以供移动终端将从模式即DEVICE模式切换为主模式即HOST模式。 If supported, the mobile vehicle device transmits to the master terminal is switched from the master mode i.e. HOST mode switch command from the mode for the mobile terminal i.e. DEVICE mode. 然后同时车载设备将主模式即HOST模式切换为从模式即DEVICE模式。 Then the master mode while the vehicle-mounted device that is switched to the mode i.e. HOST DEVICE mode from the mode. 由于模式发生切换,此时移动终端还要重新对车载设备的USB端口进行枚举,两者确定对方均支持第一预设类型端口通信即可。 Since the mode switching occurs, when the mobile terminal of the USB port also re-vehicle device enumerates two other support is determined first communication port can be preset type. 若车载设备对移动终端的USB端口进行端口枚举,检测移动终端不支持第一预设类型端口通信,则此时的移动终端无法按照本实施例的方法进行通信连接的建立。 If the mobile vehicle device to the USB port of the terminal port enumeration, the mobile terminal does not support a first detected predetermined type of communication port, in this case the mobile terminal can not establish a communication connection method according to the present embodiment.

[0093] 例如以移动终端的操作系统为I0S为例,此时对应的移动终端可以为iPhone,对应的第一预设类型端口为网络控制模块(Network Control Model;NCM)端口,第二预设类型端口为IAP2端口,认证芯片为MFI芯片,MFI芯片为苹果公司研发的一种"Made for iPod、 Made for iPhone,以及Made for iPad"的一款连接iPod,iPhone和iPad而特别设计的一种实现认证功能的电子配件。 [0093] In the operating system, for example, the mobile terminal is I0S an example. In this case the mobile terminal may for iPhone, corresponding to a first predetermined type of control for the network interface module (Network Control Model; NCM) port, a second preset IAP2 type of port is port authentication chip to chip MFI, MFI as a chip developed by Apple's "Made for iPod, Made for iPhone, and Made for iPad" is a connected iPod, iPhone and iPad a specially designed implement authentication of electronic components. 对应地,在移动终端侧需要加载NCM端口对应的NCM驱动和IAP2 端口对应的IAP2驱动。 Correspondingly, in the mobile terminal side corresponding to the ports to be loaded NCM NCM IAP2 and drives the corresponding port driver IAP2. 在车载设备侧除了加载NCM驱动和IAP2驱动,还需要加载MFi芯片驱动。 In addition to the in-vehicle device side loading NCM IAP2 and drives the drive, the drive chip needed to load MFi.

[0094] NCM驱动:具体地,在移动终端侧加载NCM的HOST驱动(苹果已经开发完成),车机端加载NCM从设备的驱动。 [0094] NCM driver: In particular, the driving load of NCM HOST (Apple has developed) in the mobile terminal side, the vehicle-side load from the drive device NCM. 驱动加载完后,车载设备侧可以通过netcfg查看到对应的网路设备节点。 After loading drive vehicle device side can view the corresponding network node device via netcfg.

[0095] iAP2驱动:具体地,在移动终端侧加载iAP2的HOST驱动(苹果已经开发完成),车机端加载iAP2从设备的驱动。 [0095] iAP2 drive: Specifically, the driving load IAP2 the HOST (Apple has developed) in the mobile terminal side, IAP2 driving device from the vehicle-side load. 驱动加载完后,可以在dev目录下映射出相应的设备文件(如:/ dev/MFI_IAP2)。 After the driver is loaded, the corresponding device can be mapped file (eg: / dev / MFI_IAP2) at dev directory.

[0096] MFi芯片驱动:具体地,在车载设备侧加载MFi芯片(主要是通过集成总线(Inter - Integrated Circuit;I2C)同车机交互)的驱动,完成后在dev目录下映射相应的设备文件(如/dev/MFi) 〇 [0096] MFi chip driver: In particular, loading MFi chip on-vehicle device side (mainly through integration bus (Inter - Integrated Circuit; I2C) interacts with the vehicle computer) is driven, after the completion of the mapping corresponding device file in the dev directory (e.g., / dev / MFi) square

[0097] 进一步可选地,在上述实施例的技术方案的基础上,其中步骤102 "车载设备根据认证芯片产生的认证信息,通过第二预设类型的端口与移动终端进行认证交互;以对认证信息进行认证"之前,还可以包括:车载设备启动认证芯片的认证,并获取认证芯片产生的认证信息。 [0097] Further alternatively, on the basis of the technical solution of the above-described embodiments, the step 102 wherein the "in-vehicle apparatus according to the authentication information generated by the chip, the second authentication preset type of interaction with the mobile terminal port; on to before authentication information to authenticate "may also include: certified car boot device authentication chip and obtain authentication information generated by the chip.

[0098] 例如,以移动终端为iPhone为例,根据苹果的iAP2认证协议开发其认证程序,该认证程序可以设置在MFi芯片中,该程序可以通过/dev/MFi_iAP2与iPhone交互,通过/dev/ MFI与认证芯片进行数据交互,完成认证。 [0098] For example, in the mobile terminal as iPhone, for example, the development program based on which the authentication Apple iAP2 authentication protocol, the authentication program may be provided in the chip MFi, the program can be / dev / MFi_iAP2 iPhone interact with, by / dev / MFI authentication chip for data exchange to complete the certification. 并在认证完成后,移动终端和车载设备成功加载NCM驱动后,移动终端和车载设备之间通过NCM端口连接成功。 After authentication is completed and the mobile terminal and NCM driver-vehicle apparatus loaded successfully, the mobile terminal between the vehicle and the device is connected successfully with NCM port. 移动终端和车载设备会映射成网络设备节点,且由移动终端根据自身的网段ID为车载设备分配IP地址并分配相应的IP 地址。 And mobile terminal devices are mapped to the in-vehicle network node apparatus, and allocate an IP address for the vehicle-mounted device according to its own network segment ID by the mobile terminal and assign a corresponding IP address. 且通过第一预设类型端口如NCM端口向车载设备发送该IP地址。 And the type of port such as port NCM transmits the IP address by a first predetermined vehicle device. 这样,车载设备可以通过NCM端口接收分配的IP地址,并与移动终端之间建立数据通路,比如各种基于用户数据报协议(User Datagram Protocol ;UDP)和传输控制协议(Transmission Control Pr〇t〇C〇l;TCP)的数据通路,以实现移动终端与车载设备之间进行数据传输的通信连接。 Thus, the vehicle-mounted device may be, and to establish a data path between the mobile terminal and received by NCM port IP address assignment, such as various User Datagram Protocol (User Datagram Protocol; UDP) and Transmission Control Protocol (Transmission Control Pr〇t〇 C〇l; the TCP) data path to enable communication connection for data transmission between the mobile terminal and the in-vehicle apparatus.

[0099]上述实施例的通信连接建立方法,车载设备与移动终端之间采用USB的有线连接进行通信,可以克服现有技术中车载设备与移动终端之间采用无线方式进行通信,连接稳定性非常差的缺陷;而且,本实施例的车载设备与移动终端之间采用USB的有线连接,且采用NCM端口进行数据传输,该NCM是一种传输网络数据的网络端口,具有高速传输机制,可以支持的数据带宽足够大,数据传输的效率比较高;而且本实施例的技术方案中,车载设备与移动终端两端都会把USB端口虚拟成网卡,两侧的应用如Carlife可以通过网卡和对端进行通讯,虚拟的网卡可以进行网络编程,建立多个网络通道,因此,本实施例的技术方案能够支持多数据通道,可扩展性非常好。 Communication [0099] Examples of the above-described embodiment uses the USB connection is established between the wired connection method, the vehicle-mounted device and the mobile terminal communicates, between the prior art can be overcome using the in-vehicle device and the mobile wireless communication terminal, connection stability is difference defect; moreover, between the on-vehicle device using the mobile terminal according to the present embodiment and the embodiment of connecting the USB cable, and data transmission port using NCM, NCM is the network port for transmitting network data, having a high-speed transmission mechanism support sufficient data bandwidth, data transmission efficiency is high; and the technical solution of the present embodiment, the terminal ends of the mobile vehicle device will be a USB port to a virtual network adapter, it can be applied on both sides, such as the peer Carlife by NIC communications, virtual network card can be programmed to establish a plurality of network channels, and therefore, the technical solution of the present embodiment is capable of supporting multiple data channels is very good scalability.

[0100] 图2为本发明的通信连接建立方法实施例二的流程图。 [0100] FIG. 2 of the present invention, a communication connection establishing a flowchart of a method according to the second embodiment. 如图2所示,本实施例的通信连接建立方法,具体可以包括如下步骤: As shown, the present embodiment is a communication method for establishing a connection 2 may specifically include the following steps:

[0101] 200、当移动终端通过USB接入车载设备后并切换为主模式时,移动终端接收车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息; Preset type information of a first port and a second authentication information transmission pre [0101] 200, after the mobile terminal through the USB device and the access vehicle is switched to the master mode, the mobile terminal apparatus receives the reported vehicle data transmission port type provided information;

[0102] 201、移动终端根据第一预设类型端口的信息和第二预设类型端口的信息分别加载第一预设类型端口的驱动和第二预设类型端口的驱动; [0102] 201, the mobile terminal according to the preset type information of the first port and the second port of preset type loading port types are driven and driving a first predetermined port of the second predetermined type;

[0103] 202、移动终端通过第二预设类型的端口与车载设备进行认证交互,以对认证芯片产生的认证信息进行认证;车载设备加载有第一预设类型端口的驱动、第二预设类型端口的驱动和认证芯片的驱动; [0103] 202, the mobile terminal through the port and a second preset type of vehicle-equipment authentication interact to authenticate the authentication information generated by the chip; vehicle driving apparatus loaded with a first predetermined type of port, the second predetermined and driving port type verifying chip;

[0104] 203、认证通过后,移动终端根据网段ID为车载设备分配IP地址; [0104] 203, after the authentication, the mobile terminal according to the segment ID is assigned an IP address in-vehicle apparatus;

[0105] 204、移动终端根据IP地址、通过第一预设类型端口与车载设备建立进行数据传输的通信连接。 [0105] 204, the mobile terminal based on the IP address to establish a communication connection for data transmission via the first port and the preset type vehicle-mounted device.

[0106] 本实施例的通信连接建立方法的执行主体为移动终端。 [0106] The present embodiment is a communication method for establishing a connection execution subject for a mobile terminal. 本实施例的通信连接建立方法与上述图1所示实施例的区别仅在于:上述图1所示实施例在车载设备侧描述本发明的技术方案,而本实施例在移动终端侧描述本发明的技术方案,其实现原理完全相同,详细亦可以参考上述图1所示实施例的记载,在此不再赘述。 Communication link establishment method according to the present embodiment described above differs from the embodiment shown in FIG. 1 embodiment only in that: the above-described embodiment shown in FIG. 1 embodiment the in-vehicle device side described aspect of the present invention, and the present invention is described in the present embodiment the mobile terminal side technical solution which achieves exactly the same principle, reference may be also described in detail in Example 1 above embodiment shown in FIG., are not repeated here.

[0107] 本实施例的通信连接建立方法,当移动终端通过USB接入车载设备后并切换为主模式时,移动终端接收车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息;移动终端根据第一预设类型端口的信息和第二预设类型端口的信息分别加载第一预设类型端口的驱动和第二预设类型端口的驱动;移动终端通过第二预设类型的端口与车载设备进行认证交互,以对认证芯片产生的认证信息进行认证;车载设备加载有第一预设类型端口的驱动、第二预设类型端口的驱动和认证芯片的驱动;认证通过后,移动终端根据网段ID为车载设备分配IP地址;移动终端根据IP地址、通过第一预设类型端口与车载设备建立进行数据传输的通信连接。 [0107] The present embodiment is a communication method for establishing a connection, after the mobile terminal through the USB device and the access vehicle is switched to the master mode, the mobile terminal receives a first in-vehicle apparatus preset information for data transmission and reported by the port type for preset type information of the second authentication information transmission port; a first predetermined type of loading the mobile terminal port information according to a first port and a second preset type preset type and second ports are preset type drive port drive; mobile terminal through the port and a second preset type of vehicle-equipment authentication interact to authenticate the authentication information generated by the chip; vehicle driving apparatus loaded with a first predetermined type of port, a second port preset type and verifying chip driver driving; after authentication, the mobile terminal according to the vehicle-mounted device ID for the segment allocated IP address; IP address according to the mobile terminal, establishing a communication connection for data transmission via the first port and the preset type vehicle-mounted device. 本实施例的车载设备与移动终端之间采用USB的有线连接进行通信,可以克服现有技术中车载设备与移动终端之间采用无线方式进行通信,连接稳定性非常差的缺陷;而且,本实施例的车载设备与移动终端之间采用USB的有线连接,且采用NCM端口进行数据传输,该NCM是一种传输网络数据的网络端口,具有高速传输机制,可以支持的数据带宽足够大,数据传输的效率比较高;而且本实施例的技术方案中,车载设备与移动终端两端都会把USB端口虚拟成网卡,两侧的应用如Carlife可以通过网卡和对端进行通讯,虚拟的网卡可以进行网络编程,建立多个网络通道,因此,本实施例的技术方案能够支持多数据通道,可扩展性非常好。 The present embodiment uses between vehicle device and a mobile terminal connected to the USB communication cable can be employed to overcome the drawbacks wireless communication between the onboard device and the mobile terminal, connection stability is very poor in the prior art; Further, the present embodiment employed between the vehicle device and a mobile terminal connected to a USB cable, and data transmission port using NCM, NCM is the network port for transmitting network data, high-speed transmission having a mechanism that can support a sufficiently large data bandwidth, the data transmission high efficiency; the technical solution according to the present embodiment, both ends of the vehicle-mounted device and the mobile terminal are the USB port into a virtual card, the application can communicate on both sides as Carlife, virtual network card and a card can be carried out by the peer program, establishing a plurality of network channels, and therefore, the technical solution of the present embodiment is capable of supporting multiple data channels is very good scalability. 进一步可选地,在上述实施例的技术方案的基础上,在步骤200"移动终端接收车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息"之前,还可以包括如下步骤: Further alternatively, on the basis of the technical solution of the above-described embodiment, the second predetermined type of information in a first port and a predetermined authentication information transmitted in step 200, "the mobile terminal apparatus receives the reported vehicle type data transmission before the information "ports, may further comprise the steps of:

[0108] (bl)当移动终端通过USB接入车载设备,且通过车载设备的端口枚举确定当前移动终端为支持第一预设类型端口通信的移动终端时,移动终端接收车载设备发送的主从切换命令; [0108] (bl) when the mobile access terminal through the USB-vehicle device, the mobile terminal determines that the current enumeration and support a first preset type of mobile terminal through the communication port port-vehicle apparatus, a mobile terminal apparatus receives the main vehicle transmission from the handover command;

[0109] (b2)移动终端根据主从切换命令,将当前模式切换为主模式; [0109] (b2) from the master mobile terminal according to the handover command, the current mode is switched to the master mode;

[0110] (b3)移动终端对车载设备进行端口枚举。 [0110] (b3) the mobile vehicle device terminal port enumeration.

[0111] 进一步可选地,在上述实施例的技术方案的基础上,在步骤203 "认证通过后,移动终端根据网段ID为车载设备分配IP地址"之前,还可以包括如下步骤: Before [0111] Further alternatively, on the basis of the technical solution of the above-described embodiments, the step 203 'after the authentication, the mobile terminal according to the network segment-vehicle device ID assigned IP address "may further comprise the steps of:

[0112] (cl))移动终端接收车载设备发送的IP请求; [0112] (cl)) the mobile terminal receives an IP-vehicle apparatus transmits a request;

[0113] (c2)移动终端根据网段ID为车载设备分配IP地址之后,方法还包括: [0113] After the (c2) the mobile terminal device is assigned an IP address for the vehicle in accordance with segment ID, the method further comprising:

[0114] (c3)移动终端向车载设备发送IP地址。 [0114] (c3) the mobile terminal sends the IP address to the in-vehicle device.

[0115] 即本实施例中移动终端是根据车载设备的请求向移动终端分配IP地址的;且在分配完IP地址之后,将IP地址发送给车载设备。 [0115] That embodiment of the present embodiment the mobile terminal is assigned an IP address according to a request-vehicle equipment to the mobile terminal; and, after completion of the IP address assignment, sends the IP address to the vehicle-mounted device.

[0116] 进一步可选地,本实施例的通信连接建立方法中,当移动终端为I0S操作系统的移动终端,第一预设类型端口为NCM端口,第二预设类型端口为IAP2端口,认证芯片为MFI芯片。 [0116] Further optionally, the communication connection establishment method according to the present embodiment, when the mobile terminal is a mobile terminal I0S operating system, a first port of a preset type NCM port, a second port is preset type IAP2 port, authentication MFI chip to chip.

[0117] 上述可选技术方案,可以参考上述车载设备侧的可选技术方案,其实现原理相同, 在此不再赘述。 [0117] The alternative aspect, reference may be alternative technical solution of the vehicle-side device, the same implementation principles, are not repeated here.

[0118] 上述实施例的通信连接建立方法,车载设备与移动终端之间采用USB的有线连接进行通信,可以克服现有技术中车载设备与移动终端之间采用无线方式进行通信,连接稳定性非常差的缺陷;而且,本实施例的车载设备与移动终端之间采用USB的有线连接,且采用NCM端口进行数据传输,该NCM是一种传输网络数据的网络端口,具有高速传输机制,可以支持的数据带宽足够大,数据传输的效率比较高;而且本实施例的技术方案中,车载设备与移动终端两端都会把USB端口虚拟成网卡,两侧的应用如Carlife可以通过网卡和对端进行通讯,虚拟的网卡可以进行网络编程,建立多个网络通道,因此,本实施例的技术方案能够支持多数据通道,可扩展性非常好。 Communication [0118] Examples of the above-described embodiment uses the USB connection is established between the wired connection method, the vehicle-mounted device and the mobile terminal communicates, between the prior art can be overcome using the in-vehicle device and the mobile wireless communication terminal, connection stability is difference defect; moreover, between the on-vehicle device using the mobile terminal according to the present embodiment and the embodiment of connecting the USB cable, and data transmission port using NCM, NCM is the network port for transmitting network data, having a high-speed transmission mechanism support sufficient data bandwidth, data transmission efficiency is high; and the technical solution of the present embodiment, the terminal ends of the mobile vehicle device will be a USB port to a virtual network adapter, it can be applied on both sides, such as the peer Carlife by NIC communications, virtual network card can be programmed to establish a plurality of network channels, and therefore, the technical solution of the present embodiment is capable of supporting multiple data channels is very good scalability.

[0119] 图3为本发明的通信连接建立方法实施例三的信令图。 [0119] FIG communication connection establishment method of the present invention is a signaling diagram according to a third embodiment. 如图1所述,本实施例的通信连接建立方法,具体可以包括如下步骤: As shown in Figure 1, the present embodiment is a communication connection establishing method may specifically include the following steps:

[0120] 300、iPhone手机通过USB刚插入车载设备时,车载设备对接入的手机进行USB端口枚举,检测该手机是否为iPhone手机; [0120] 300, iPhone mobile phones by just inserted into the vehicle equipment, automotive equipment to access the phone USB port USB enumeration, detect whether the phone is the iPhone;

[0121] 本实施例中,iPhone手机通过USB刚插入车载设备时,车载设备工作在USB的HOST 模式,会对iPhone手机进行USB端口枚举。 [0121] In this embodiment, the iPhone just inserted via a USB-board equipment, automotive equipment to work in the USB HOST mode, the iPhone will have a USB port enumeration. 由于iPhone手机具有其自身的特性,例如支持NCM 端口和IAP2端口。 Since the iPhone has its own characteristics, such as support for NCM IAP2 port and port. 因此当车载设备发现连接的是iPhone手机时,确定该手机支持NCM端口传输。 So when on-board equipment found in the iPhone is connected, it is determined that the phone supports NCM port transmission.

[0122] 301、车载设备向iPhone手机发送USB主从模式切换命令; [0122] 301, in-vehicle equipment to the USB host transmits a handover command from the iPhone mode;

[0123] 例如,车载设备通过epO向iPhone手机发送USB主从模式切换命令。 [0123] For example, the vehicle-mounted device transmits to the USB host through the iPhone epO from the mode switching command.

[0124] 302、车载设备从HOST模式切换至从模式; [0124] 302, the vehicle-mounted device switches from HOST mode to slave mode;

[0125] 303、iPhone手机收到USB主从模式切换命令后,USB reset后切换到HOST模式; [0125] 303, iPhone cell phone after receiving the handover command from the USB host mode, USB switch to HOST mode after reset;

[0126] 304、iPhone手机对通过USB连接的车载设备进行重新USB端口枚举; [0126] 304, iPhone mobile phones on-board devices connected via USB port USB re-enumeration;

[0127] 305、车载设备作为USB从模式,向iPhone手机上报标准的NCM端口的信息及符合苹果认证协议的IAP2端口的信息; [0127] 305, and information in line with Apple authentication protocol information IAP2 USB ports on-board equipment as a slave mode, standard reporting to the iPhone NCM port;

[0128] 其中NCM端口用于传输数据。 [0128] wherein NCM port for transmitting data. 例如,NCM端口的信息具体可以包括如下表1所示的信息。 For example, the information may include specific ports NCM information shown in Table 1 below. IAP2端口用于传输认证信息。 IAP2 port for transmitting the authentication information. 例如IAP2端口的信息具体可以包括如下表2所示的信息。 E.g. IAP2 port information may include specific information shown in Table 2 below.

[0129] 表1 [0129] TABLE 1

[0130] [0130]

Figure CN106603860AD00151

[0133] 306、车载设备加载NCM驱动、iAP2驱动和MFi认证芯片的驱动; [0133] 306, in-vehicle apparatus loaded NCM driver, and the driver drives iAP2 MFi authentication chip;

[0134] 307、iPhone手机加载NCM驱动和iAP2驱动; [0134] 307, iPhone mobile phone is loaded NCM iAP2 drive and drive;

[0135] 此时对应地,在车载设备侧加载的NCM驱动和iAP2驱动为从模式的驱动;在iPhone 手机侧加载的NCM驱动和iAP2驱动为主模式的驱动。 [0135] At this time corresponding to the in-vehicle apparatus loaded NCM driving side and driven from iAP2 drive mode; drive side loading of the iPhone and NCM iAP2 driving the drive master mode. 并且在车载设备侧预先设置有MFi认证芯片,图4为本发明实施例中iPhone手机、车载设备以及MFi认证芯片的结构示意图。 And the in-vehicle apparatus is previously provided with an authentication verifying chip MFi, FIG. 4 is a schematic structural embodiment iPhone, MFi vehicle device and authentication chip according to the invention. MFi认证芯片预先通过I2C与车载设备的主板连接,设置在车载设备内部。 MFi verifying chip connected to the board in advance by I2C-vehicle device, the device is provided inside the vehicle. 其中NCM驱动、iAP2驱动和MFi芯片驱动的详细介绍,可以参考上述相关实施例的记载,在此不再赘述。 Wherein NCM driver, and the driver details iAP2 MFi chip driver, reference may be related to the above described embodiments, it is not repeated here. 加载驱动之后,相当于激活了NCM端口、IAP2端口以及MFi的认证程序。 After loading the driver, the equivalent of activated NCM port, IAP2 port and MFi certification program. iPhone手机和车机设备成功加载NCM驱动后会映射成网络设备节点。 the iPhone and the vehicle computer equipment after successfully loaded NCM drive is mapped into a network device node.

[0136] 308、车载设备和iPhone手机根据IAP2端口进行iAP2的认证; [0136] 308, in-vehicle equipment and authenticating the iPhone port iAP2 according IAP2;

[0137] 具体地,根据苹果的iAP2认证协议开发其认证程序,该程序通过iAP2的驱动加载完之后,在dev目录下映射出相应的设备文件/dev/MFi_iAP2与iPhone手机交互,通过/dev/ MFI与MFi认证芯片进行数据交互,实现认证。 [0137] In particular, the development of its certification process according to the Apple iAP2 authentication protocols, the program then has been loaded by the driving iAP2 mapped the corresponding device file / dev / MFi_iAP2 phone to interact with the iPhone at dev directory, the / dev / MFI exchanging data with MFi certification chip to achieve certification. 例如先有MFi产生认证信息,通过/dev/MFI发送至iPhone手机,由iPhone手机内的某个认证模块对认证消息进行处理,如需要进一步返回车载终端侧的MFi芯片进行认证,还可以将iPhone手机产生的验证消息通过/dev/MFI返回至车载设备侧的MFi芯片,通过多次交互,实现认证。 E.g. prior MFi generating authentication information transmitted through the / dev / MFI to the iPhone, a process by an authentication message to the authentication module in the iPhone, MFi For further return chip onboard terminal side authentication can also be iPhone Mobile authentication message generated by the / dev / MFI returned to the side of the vehicle apparatus MFi chip, through multiple interactions, for authentication.

[0138] 309、车载设备向iPhone手机请求IP地址; [0138] 309, in-vehicle device requests an IP address to the iPhone;

[0139] 310、iPhone手机根据自身网段ID为车载设备分配IP地址; [0139] 310, iPhone phone assigns IP addresses to the vehicle-mounted apparatus according to the segment's own ID;

[0140] 311、iPhone手机向车载设备发送IP地址; [0140] 311, iPhone cell phone sends the IP address to the onboard equipment;

[0141] 312、车载设备根据IP地址与iPhone手机通过NCM端口建立进行数据传输的通信连接。 [0141] 312, the vehicle-mounted device with NCM ports to establish communication connection for data transmission according to the IP address of the iPhone.

[0142] 通过上述步骤,可以在车载设备与iPhone手机之间建立通信连接,这样车载设备与iPhone手机可以通过NCM端口进行数据传输。 [0142] Through the above process, may establish a communication connection between the vehicle device and the iPhone, so that the vehicle-mounted device and the iPhone NCM for data transmission via the port.

[0143] 本实施例的通信连接建立方法,通过采用上述方案,车载设备与移动终端之间采用USB的有线连接进行通信,可以克服现有技术中车载设备与移动终端之间采用无线方式进行通信,连接稳定性非常差的缺陷;而且,本实施例的车载设备与移动终端之间采用USB 的有线连接,且采用NCM端口进行数据传输,该NCM是一种传输网络数据的网络端口,具有高速传输机制,可以支持的数据带宽足够大,数据传输的效率比较高;而且本实施例的技术方案中,车载设备与移动终端两端都会把USB端口虚拟成网卡,两侧的应用如Car 1 ife可以通过网卡和对端进行通讯,虚拟的网卡可以进行网络编程,建立多个网络通道,因此,本实施例的技术方案能够支持多数据通道,可扩展性非常好。 [0143] This embodiment of the communication connection establishment procedure of Example using USB between the vehicle device and the mobile terminals communicate via a wired connection using the above-described embodiment, it can be overcome in a wireless manner between the prior art vehicle-mounted device and the mobile communication terminal , very poor connection stability defects; Furthermore, using USB wired connection between the vehicle device and the mobile terminal according to the present embodiment, and a port for data transmission using NCM, NCM is the network port for transmitting network data, high-speed transport mechanism may be supported sufficiently large data bandwidth, data transmission efficiency is relatively high; the technical solution of the embodiment according to the present embodiment, the vehicle-mounted device and the mobile terminal are USB ports at both ends into a virtual card, the application on both sides as car 1 ife can communicate, through virtual NIC card and the peer network can be programmed to establish a plurality of network channels, and therefore, the technical solution of the present embodiment is capable of supporting multiple data channels is very good scalability.

[0144] 图5为本发明的车载设备实施例一的结构图。 Structural diagram of a vehicle device [0144] FIG. 5 of the present invention. 如图5所示,本实施例的车载设备,具体可以包括:发送模块10、加载模块11、认证模块12、获取模块13和建立模块14。 5, the vehicle-mounted device of the present embodiment may specifically include: a sending module 10, loading module 11, an authentication module 12, an obtaining module 13 and the module 14 to establish.

[0145] 其中发送模块10用于当移动终端通过USB接入车载设备后并切换为主模式时,向移动终端上报进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息,以供移动终端加载各端口对应的驱动;发送模块10还用于触发加载模块11启动,加载模块11用于加载第一预设类型端口的驱动、第二预设类型端口的驱动和认证芯片的驱动;认证模块12用于根据加载模块11加载的启动,根据认证芯片产生的认证信息, 通过第二预设类型的端口与移动终端进行认证交互;以对认证信息进行认证;获取模块13 用于在认证模块12认证通过后,获取移动终端根据网段ID为车载设备分配的IP地址;建立模块14用于根据获取模块13获取的IP地址、通过第一预设类型端口与移动终端建立进行数据传输的通信连接。 [0145] wherein the transmitting module 10 and is used when the mobile terminal is switched to the master mode, the mobile terminal reports to the vehicle-mounted device via the USB access port information of the first preset type of data transmission and a second authentication information transmission preset type of port information to the mobile terminal for each port loading corresponding to the drive; sending module 10 is further configured to trigger the loading module 11 is started, the load module 11 for loading a first predetermined type of drive port, a second preset type and verifying chip driving port; the authentication module 12 for loading the boot loader module 11, according to the authentication information generated by the chip, the second authentication preset type of interaction with the mobile terminal port; to authentication information authentication; acquisition module 13 is used after the authentication by the authentication module 12, the mobile terminal obtains an IP address segment according to the vehicle-mounted device ID is allocated; establishing module 14 for acquiring module 13 according to the IP address obtained by the first preset type port with the mobile terminal to establish a communication connection for data transmission.

[0146] 本实施例的车载设备,通过采用上述模块实现通信连接的建立与上述相关方法实施例的实现原理以及技术效果相同,详细可以参考上述相关方法实施例的记载,在此不再赘述。 [0146] Examples of the vehicle-mounted device of the present embodiment, the same implementation principles as well as the establishment of technical effects of the embodiment, reference may be related to the above described embodiment of the method of the above-described method embodiments related to a communication connection is achieved by using the above module, are not repeated here.

[0M7]图6为本发明的车载设备实施例二的结构图。 A configuration diagram according to a second in-vehicle apparatus [0M7] FIG. 6 of the present invention. 如图6所示,本实施例的车载设备在上述图5所示实施例的技术方案的基础上,进一步包括如下技术方案。 6, the vehicle-mounted apparatus according to the present embodiment based on the embodiment of the technical solution of the embodiment shown in FIG. 5, the following technical solution further comprising.

[0148] 如图6所示,本实施例的车载设备,还可以包括枚举模块15和切换模块16。 [0148] As shown in FIG 6, the vehicle-mounted device of the present embodiment may further include enumeration module 15 and a switching module 16.

[0149] 其中枚举模块15用于当移动终端通过USB接入车载设备,对移动终端进行端口枚举,以检测移动终端是否为支持第一预设类型端口通信的移动终端; [0149] wherein the enumeration module when the mobile terminal 15 to access a USB-vehicle device, a mobile terminal for enumerating a port to detect whether the mobile terminal supports a first preset type of mobile communication terminal port;

[0150] 发送模块10还用于若枚举模块15确定移动终端为支持第一预设类型端口通信的移动终端,向移动终端发送主从切换命令,以供移动终端将从模式切换为主模式; [0150] The sending module 10 is further configured enumeration module 15 determines if the mobile terminal is a communication port that supports a first preset type of mobile terminal, the handover command transmitted from the master to the mobile terminal for switching from the mode to the master mode to the mobile terminal ;

[0151] 切换模块16用于若枚举模块15确定移动终端为支持第一预设类型端口通信的移动终端,将主模式切换为从模式。 [0151] The switching module 16 for the enumeration module 15 determines if the mobile terminal is a communication port that supports a first preset type of mobile terminal, the mode is switched from the master mode.

[0152] 进一步可选地,如图6所示,本实施例的车载设备,还可以包括启动模块17。 [0152] Further alternatively, as shown in FIG. 6, the vehicle-mounted device of the present embodiment may further include a start-up module 17.

[0153]启动模块17用于启动认证芯片的认证;获取模块13还用于获取启动模块17启动的认证芯片产生的认证信息。 [0153] 17 starting module for starting the authentication verifying chip; obtaining module 13 is further configured to start the authentication information acquiring module 17 starts the authentication of the chip produced.

[0154] 进一步可选地,本实施例的车载设备中,当移动终端为I0S操作系统的移动终端, 第一预设类型端口为NCM端口,第二预设类型端口为IAP2端口,认证芯片为MFI芯片。 [0154] Further alternatively, the vehicle-mounted apparatus according to the present embodiment, when the mobile terminal is a mobile terminal I0S operating system, a first port of a preset type NCM port, a second port is preset type IAP2 port, the authentication chip MFI chip.

[0155] 本实施例的车载设备,通过采用上述模块实现通信连接的建立与上述相关方法实施例的实现原理以及技术效果相同,详细可以参考上述相关方法实施例的记载,在此不再赘述。 [0155] Examples of the vehicle-mounted device of the present embodiment, the same implementation principles as well as the establishment of technical effects of the embodiment, reference may be related to the above described embodiment of the method of the above-described method embodiments related to a communication connection is achieved by using the above module, are not repeated here.

[0156] 图7为本发明的移动终端实施例一的结构图。 A structural diagram of a mobile terminal [0156] FIG. 7 embodiment of the present invention. 如图7所示,本实施例的移动终端,具体可以包括:接收模块20、加载模块21、认证模块22、分配模块23和建立模块24。 7, the mobile terminal according to the present embodiment may specifically include: a receiving module 20, loading module 21, an authentication module 22, and a distribution module 23 establishing module 24.

[0157] 其中接收模块20用于当移动终端通过USB接入车载设备后并切换为主模式时,接收车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息;加载模块21用于根据接收模块20接收的第一预设类型端口的信息和第二预设类型端口的信息分别加载第一预设类型端口的驱动和第二预设类型端口的驱动; 认证模块22用于通过加载模块21加载了驱动的第二预设类型的端口与车载设备进行认证交互,以对认证芯片产生的认证信息进行认证;车载设备加载有第一预设类型端口的驱动、 第二预设类型端口的驱动和认证芯片的驱动;分配模块23用于在认证模块22认证通过后, 根据网段ID为车载设备分配IP地址;建立模块24用于根据分配模块23分配的IP地址、通过第一预设类型端口与车载设备建立进行数据传输的通信连接。 [0157] The receiving module 20 is used when the mobile terminal through the first port information preset type and switching the master mode, the vehicle-mounted receiving apparatus and reported by the data transmission device and a USB-vehicle access authentication information transmission two port information preset type; loading module 21 according to a first preset type information receiving module 20 receives the port and a second port of loading the first predetermined type of preset driving type and a second port, respectively, pre- driving type set port; authentication module 22 module 21 is loaded by loading a second preset type of port drive vehicle authentication device interact to authenticate the authentication information generated by the chip; vehicle apparatus loaded with a first preset type of drive port, the port drivers and drive type second predetermined authentication chip; allocation module 23 is used after the authentication by the authentication module 22, according to the vehicle-mounted device ID for the segment allocated IP address; 24 for establishing module the dispensing module 23 is assigned an IP address, establish communication connection for data transmission via the first port and the preset type vehicle-mounted device.

[0158] 本实施例的移动终端,通过采用上述模块实现通信连接的建立与上述相关方法实施例的实现原理以及技术效果相同,详细可以参考上述相关方法实施例的记载,在此不再赘述。 [0158] This embodiment of a mobile terminal, create the same implementation principles and technical effects of the embodiments, reference may be related to the above described embodiment of the method of the above-described embodiment and related method of a communication connection is achieved by using the above module, are not repeated here.

[0159] 图8为本发明的移动终端实施例二的结构图。 A configuration diagram according to the second mobile terminal [0159] FIG. 8 of the present invention. 如图8所示,本实施例的移动终端在上述图7所示实施例的技术方案的基础上,进一步包括如下技术方案。 8, the mobile terminal of the present embodiment is based on the technical solution of the embodiment shown in FIG. 7 on the above, further comprising the following technical solution.

[0160] 如图8所示,本实施例的移动终端,还可以包括枚举模块25和切换模块26。 [0160] As shown in FIG 8, a mobile terminal of the present embodiment may further include enumeration module 25 and a switching module 26.

[0161] 接收模块20还用于当移动终端通过USB接入车载设备,且通过车载设备的端口枚举确定当前移动终端为支持第一预设类型端口通信的移动终端时,接收车载设备发送的主从切换命令; [0161] The receiving module 20 is further configured to access the USB terminal when the mobile vehicle device, and the mobile terminal determines that the current enumeration of a first predetermined type of port to support communication through a port of the mobile terminal device through the vehicle, the vehicle-mounted receiving apparatus transmitted from the master switch command;

[0162] 切换模块26用于根据接收模块20接收的主从切换命令,将当前模式切换为主模式; [0162] The switching module 26 for receiving the main module 20 receives a handover command from the current mode is switched to the master mode;

[0163] 枚举模块25用于当切换模块26将当前模式切换之后,对车载设备进行端口枚举。 [0163] When the enumeration module 25 to switch module 26 switches a current mode, on-vehicle device port enumeration.

[0164] 进一步可选地,如图8所示,本实施例的移动终端,还可以包括发送模块27。 [0164] Further alternatively, as shown in FIG. 8, the mobile terminal of the present embodiment may further include a transmitting module 27.

[0165] 其中接收模块20还用于接收车载设备发送的IP请求; [0165] The receiving module 20 is also configured to receive an IP-vehicle device transmits a request;

[0166] 分配模块23用于根据接收模块20接收的IP请求,根据网段ID为车载设备分配IP地址; [0166] The IP distribution module 23 for receiving a request receiving module 20, an IP address assigned to the vehicle-mounted apparatus according to the segment ID;

[0167] 发送模块27用于向车载设备发送分配模块23分配的IP地址。 [0167] module 27 for transmitting to the onboard equipment transmits the IP address allocation module 23 allocated.

[0168] 进一步可选地,本实施例的移动终端中,当移动终端为I0S操作系统的移动终端, 第一预设类型端口为NCM端口,第二预设类型端口为IAP2端口,认证芯片为MFI芯片。 [0168] Further alternatively, the mobile terminal of the present embodiment, when the mobile terminal is a mobile terminal I0S operating system, a first port of a preset type NCM port, a second port is preset type IAP2 port, the authentication chip MFI chip.

[0169] 本实施例的移动终端,通过采用上述模块实现通信连接的建立与上述相关方法实施例的实现原理以及技术效果相同,详细可以参考上述相关方法实施例的记载,在此不再赘述。 [0169] mobile terminal according to the present embodiment, the above-described embodiment to establish a communication connection related to the same methods by using the above modules and implemented to achieve the principles of the technical effect, reference may be related to the method described in the above-described embodiment, not described herein again.

[0170] 图9为本发明的通信连接建立系统实施例的结构图。 Establishing a configuration diagram of a communication system according to embodiment [0170] FIG. 9 of the present invention is connected. 如图8所示,本实施例的通信连接建立系统包括用于建立通信连接的车载设备30和移动终端40;车载设备30采用如上图5或者图6所示的车载设备;移动终端40采用如上图7或者图8所示的移动终端。 As shown, the communication connection according to the present embodiment includes a system for establishing a build-vehicle device 30 and the mobile communication terminal 40 connected to 8; vehicle device 30 using the vehicle-mounted apparatus as shown in FIG. 5 or FIG. 6; the mobile terminal 40 as described above using FIG. 7 or the mobile terminal shown in FIG. 8. 并具体可以采用如上图1-图3任一所述的通信连接建立方法实现通信连接建立系统的建立。 And in particular may be used as the communication connection establishment FIGS implemented method of establishing communication connection establishment system of any one of claims 3.

[0171] 本发明实施例提供的上述方法还可以以设置并运行于电子设备中的计算机程序体现。 The method provided by the embodiment described above [0171] The present invention may also be provided and embodied in a computer program running in the electronic device. 如图10中所示,该电子设备可以包括一个或多个处理器800,还包括存储器801和一个或多个程序,图10所示实施例一包括一个处理器800为例来描述本发明的技术方案。 As shown in FIG. 10, the electronic device may include one or more processors 800, a memory 801 and further comprising one or more programs, one embodiment comprises a processor 800 will be described as an example of the present invention shown in FIG. 10 Technical solutions. 其中该一个或多个程序存储于存储器801中,被上述一个或多个处理器800执行以实现本发明上述实施例中所示的方法流程和/或装置操作。 Wherein the one or more programs stored in the memory 801, by the one or more processors 800 performs the process to implement the method of the present invention and / or the operation of the device shown in the above embodiments. 例如,被上述一个或多个处理器800执行的方法流程,可以包括: For example, the flow of the method 800 performs the one or more processors, may comprise:

[0172] 当移动终端通过通用串行总线接入车载设备后并切换为主模式时,所述车载设备向所述移动终端上报进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息,以供所述移动终端加载各端口对应的驱动; When [0172] When the mobile terminal through a universal serial bus access and vehicle device is switched to the master mode, the vehicle equipment to report to the mobile terminal type information for data transmission port and a first predetermined authenticating information transfer a second type of port information preset to the mobile terminal for each port loading corresponding to the drive;

[0173] 所述车载设备加载所述第一预设类型端口的驱动、所述第二预设类型端口的驱动和认证芯片的驱动; [0173] The vehicle driving apparatus loading the first predetermined type of port, and driving said second predetermined authentication chip type port;

[0174] 所述车载设备根据所述认证芯片产生的认证信息,通过所述第二预设类型的端口与所述移动终端进行认证交互;以对所述认证信息进行认证; [0174] The vehicle device according to the authentication information of the authentication chip generated by interaction authenticating the second predetermined type of ports with the mobile terminal; to authenticate the authentication information;

[0175] 认证通过后,所述车载设备获取所述移动终端根据网段ID为所述车载设备分配的IP地址; After the [0175] authentication, the mobile device acquires the in-vehicle terminal segment according to the vehicle-mounted device ID assigned IP address;

[0176] 所述车载设备根据所述IP地址、通过所述第一预设类型端口与所述移动终端建立进行数据传输的通信连接。 [0176] The vehicle device according to the IP address, the mobile terminal establishes a communication connection for data transmission via the first predetermined type of port.

[0177] 或者,被上述一个或多个处理器800执行的方法流程,可以包括: [0177] Alternatively, the 800 performs the one or more processors to process methods, may include:

[0178] 当移动终端通过通用串行总线接入车载设备后并切换为主模式时,所述移动终端接收所述车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息; When [0178] When the mobile terminal through a universal serial bus access and vehicle device is switched to the master mode, the mobile terminal receiving the information reported by the vehicle-mounted apparatus a first preset type of data transmission port, and authentication information the second preset type information transmission port;

[0179] 所述移动终端根据所述第一预设类型端口的信息和所述第二预设类型端口的信息分别加载所述第一预设类型端口的驱动和所述第二预设类型端口的驱动; [0179] The mobile terminal according to each loading port information of the first predetermined type of information and the second predetermined type of port the first predetermined type of drive port and said second port preset type drive;

[0180] 所述移动终端通过所述第二预设类型的端口与所述车载设备进行认证交互,以对认证芯片产生的认证信息进行认证;所述车载设备加载有所述第一预设类型端口的驱动、 所述第二预设类型端口的驱动和认证芯片的驱动; [0180] The mobile terminal through the second port and the preset type of vehicle authentication device interact to authenticate the authentication information generated by the chip; the in-vehicle apparatus loaded with the first preset type port driver, and driving the second verifying chip preset type of port;

[0181] 认证通过后,所述移动终端根据网段ID为所述车载设备分配IP地址; After the [0181] authentication, the mobile terminal according to the ID of the on-board network of the IP address assigned device;

[0182] 所述移动终端根据所述IP地址、通过所述第一预设类型端口与所述车载设备建立进行数据传输的通信连接。 [0182] The mobile terminal according to the IP address, to establish a communication connection for data transfer through the first port and the preset type vehicle-mounted device.

[0183] 本实施例中所述的电子设备可以为移动终端或者车载设备。 [0183] Examples of the electronic apparatus of the present embodiment may be a mobile terminal or a vehicle-mounted device.

[0184] 在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。 [0184] The present invention provides several embodiments, it should be understood that the system, apparatus and method disclosed may be implemented in other manners. 例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。 For example, the described apparatus embodiments are merely illustrative of, for example, the unit division is merely logical function division, there may be other division in actual implementation.

[0185] 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0185] The unit described as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located in one place, or may be distributed to a plurality of networks unit. 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 You can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0186] 另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 [0186] Additionally, functional units may be integrated in various embodiments of the present invention in a processing unit, separate units may be physically present, may be two or more units are integrated into one unit. 上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。 The integrated unit may be implemented in the form of hardware, software functional units in hardware may also be implemented.

[0187] 上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。 [0187] integrated unit implemented in the form of a software functional unit described above may be stored in a computer-readable storage medium. 上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。 In a storage medium and includes several instructions that enable a computer device (may be a personal computer, a server, or network device) or (processor) to perform various embodiments of the present invention, the method of storing the software functional unit some of the steps. 而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,R0M)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium comprising: a variety of medium U disk, mobile hard disk, a read-only memory (Read-Only Memory, R0M), a random access memory (Random Access Memory, RAM), magnetic disk, or an optical disc capable of storing program code .

[0188] 以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。 [0188] The foregoing is only preferred embodiments of the present invention but are not intended to limit the present invention, all within the spirit and principle of the present invention, any changes made, equivalent substitutions and improvements should be included within the scope of protection of the present invention.

Claims (17)

1. 一种通信连接建立方法,其特征在于,所述方法包括: 当移动终端通过通用串行总线接入车载设备后并切换为主模式时,所述车载设备向所述移动终端上报进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息,以供所述移动终端加载各端口对应的驱动; 所述车载设备加载所述第一预设类型端口的驱动、所述第二预设类型端口的驱动和认证芯片的驱动; 所述车载设备根据所述认证芯片产生的认证信息,通过所述第二预设类型的端口与所述移动终端进行认证交互;以对所述认证信息进行认证; 认证通过后,所述车载设备获取所述移动终端根据网段ID为所述车载设备分配的IP地址; 所述车载设备根据所述IP地址、通过所述第一预设类型端口与所述移动终端建立进行数据传输的通信连接。 CLAIMS 1. A method for establishing a communication connection, wherein, said method comprising: after the mobile terminal through a universal serial bus access and vehicle device is switched to the master mode, the vehicle equipment to report data to the mobile terminal first and second preset information preset type information transmission port for authenticating information transfer port type, to the mobile terminal for each port loading corresponding drive; the loading apparatus of the first predetermined type of vehicle port driver, port driver and the second driver and the preset type of authentication chip; vehicle apparatus according to the authentication information of the authentication chip generated by the second predetermined type of ports and the mobile terminal interactive authentication; authentication information to the authentication; after the authentication, the mobile device acquires the in-vehicle terminal according to the segment ID is an IP address assigned vehicle device; the in-vehicle apparatus according to the IP address, by the first port and the preset type mobile terminal establishes a communication connection for data transmission.
2. 根据权利要求1所述的方法,其特征在于,当移动终端通过通用串行总线接入车载设备后并切换为主模式之前,所述方法还包括: 当所述移动终端通过所述通用串行总线接入所述车载设备,所述车载设备对所述移动终端进行端口枚举,以检测所述移动终端是否为支持所述第一预设类型端口通信的移动终端; 若所述移动终端为支持所述第一预设类型端口通信的移动终端,所述车载设备向所述移动终端发送主从切换命令,以供所述移动终端将从模式切换为主模式; 所述车载设备将主模式切换为从模式。 2. The method according to claim 1, characterized in that, after the mobile terminal through a universal serial bus access and vehicle device before switching to the master mode, the method further comprising: when the mobile terminal through the common serial bus access to the vehicle device, the vehicle-mounted apparatus for the mobile terminal enumerating a port to detect whether the mobile terminal is a communication port of a first predetermined type of said mobile terminal supports; if the mobile supporting the first terminal is a predetermined type of mobile communication terminal port, the master device transmits the vehicle from the handover command to the mobile terminal for switching from a mode to the master mode to the mobile terminal; the in-vehicle device mode is switched from the master mode.
3. 根据权利要求1所述的方法,其特征在于,所述车载设备根据所述认证芯片产生的认证信息,通过所述第二预设类型的端口与所述移动终端进行认证交互;以对所述认证信息进行认证之前,所述方法还包括: 所述车载设备启动所述认证芯片的认证,并获取所述认证芯片产生的所述认证信息。 3. The method according to claim 1, characterized in that the vehicle device authentication according to the authentication information generated by the chip, through interaction authenticating the second predetermined type of ports with the mobile terminal; on to prior to authenticating the authentication information, the method further comprises: starting the vehicle the device authentication verifying chip, and acquiring the authentication information generated by the authentication chip.
4. 根据权利要求1-3任一所述的方法,其特征在于,当所述移动终端为IOS操作系统的移动终端,所述第一预设类型端口为NCM端口,所述第二预设类型端口为IAP2端口,所述认证芯片为MFI芯片。 4. The method according to any one of claims 1-3, wherein, when the mobile terminal is a mobile terminal IOS operating system, said first predetermined type of port NCM port, the second predetermined IAP2 port is a port type, the MFI authentication chip is a chip.
5. -种通信连接建立方法,其特征在于,所述方法包括: 当移动终端通过通用串行总线接入车载设备后并切换为主模式时,所述移动终端接收所述车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息; 所述移动终端根据所述第一预设类型端口的信息和所述第二预设类型端口的信息分别加载所述第一预设类型端口的驱动和所述第二预设类型端口的驱动; 所述移动终端通过所述第二预设类型的端口与所述车载设备进行认证交互,以对认证芯片产生的认证信息进行认证;所述车载设备加载有所述第一预设类型端口的驱动、所述第二预设类型端口的驱动和认证芯片的驱动; 认证通过后,所述移动终端根据网段ID为所述车载设备分配IP地址; 所述移动终端根据所述IP地址、通过所述第一预设类型端口与所述车 5. - kind of communication connection establishment method, characterized in that the method comprises: when the mobile terminal through a universal serial bus access and vehicle device is switched to the master mode, the mobile terminal apparatus receives the vehicle reported by the preset type information and the second port of the authentication information preset type information transmission port of a first data transmission; mobile terminal according to the preset type information of the first port and the second port preset type loading information respectively driving said first predetermined type of ports and a second drive port of said predetermined type; authenticating the mobile terminal through the second interaction port and the preset type of vehicle apparatus, to generating authentication information for authenticating the authentication chip; the driver-vehicle apparatus loaded with the first predetermined type of port, and driving said second preset type verifying chip port; after the authentication by the mobile the terminal segment of the on-vehicle device ID is assigned an IP address; a mobile terminal according to the IP address, through the first port and the preset type vehicle 载设备建立进行数据传输的通信连接。 Carrier device establishes a communication connection for data transmission.
6. 根据权利要求5所述的方法,其特征在于,所述移动终端接收所述车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息之前,所述方法还包括: 当所述移动终端通过所述通用串行总线接入所述车载设备,且通过所述车载设备的端口枚举确定当前所述移动终端为支持所述第一预设类型端口通信的移动终端时,所述移动终端接收所述车载设备发送的主从切换命令; 所述移动终端根据所述主从切换命令,将当前模式切换为主模式; 所述移动终端对所述车载设备进行端口枚举。 6. The method according to claim 5, wherein the mobile terminal receives the information reported by the vehicle-mounted apparatus for data transmission port of a first predetermined type and a second authentication information transmission type preset port prior information, the method further comprising: when the mobile terminal through the universal serial bus device to access the vehicle, and determining a current enumeration of the mobile terminal device through the port of the vehicle, as the first support when a predetermined type of mobile communications port terminal, the mobile terminal receiving the vehicle from the master device transmitting a handover command; handover command from a terminal, the current mode is switched to the master mode in accordance with the movement of the master; said mobile the in-vehicle terminal device port enumeration.
7. 根据权利要求5所述的方法,其特征在于,认证通过后,所述移动终端根据网段ID为所述车载设备分配IP地址之前,所述方法还包括: 所述移动终端接收所述车载设备发送的IP请求; 所述移动终端根据网段ID为所述车载设备分配IP地址之后,所述方法还包括: 所述移动终端向所述车载设备发送所述IP地址。 7. The method as claimed in claim 5, characterized in that, after authentication by the mobile terminal according to the ID of the segment before the in-vehicle device is assigned an IP address, the method further comprising: the mobile terminal receiving the IP requests sent by the vehicle; mobile terminal after the IP address assigned to the vehicle-mounted apparatus according to the segment ID, the method further comprising: the mobile terminal to the in-vehicle device transmits the IP address.
8. 根据权利要求5-7任一所述的方法,其特征在于,当所述移动终端为IOS操作系统的移动终端,所述第一预设类型端口为NCM端口,所述第二预设类型端口为IAP2端口,所述认证芯片为MFI芯片。 8. The method according to any of claims 5-7, wherein, when the mobile terminal is a mobile terminal IOS operating system, said first predetermined type of port NCM port, the second predetermined IAP2 port is a port type, the MFI authentication chip is a chip.
9. 一种车载设备,其特征在于,所述车载设备包括: 发送模块,用于当移动终端通过通用串行总线接入所述车载设备后并切换为主模式时,向所述移动终端上报进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息,以供所述移动终端加载各端口对应的驱动; 加载模块,用于加载所述第一预设类型端口的驱动、所述第二预设类型端口的驱动和认证芯片的驱动; 认证模块,用于根据所述认证芯片产生的认证信息,通过所述第二预设类型的端口与所述移动终端进行认证交互;以对所述认证信息进行认证; 获取模块,用于认证通过后,获取所述移动终端根据网段ID为所述车载设备分配的IP 地址; 建立模块,用于根据所述IP地址、通过所述第一预设类型端口与所述移动终端建立进行数据传输的通信连接。 A vehicle-mounted apparatus, wherein the vehicle-mounted apparatus comprising: a sending module, configured to, when the mobile terminal through a universal serial bus access to the rear vehicle device and switching to the master mode, to report to the mobile terminal a first type of port information and the authentication information preset second predetermined type of information transmission port for data transmission to the mobile terminal for each port loading corresponding to the drive; loading means for loading the first preset type of drive port, and driving said second type of chip authentication predetermined port; authentication module, authentication information for authentication of the chip generated by the port and the second predetermined type authenticating said mobile terminal to interact; authentication information to the authentication; acquisition module, for the authentication, the mobile terminal acquires the segment ID according to the IP address assigned vehicle device; establishing module, configured to the IP address, the mobile terminal establishes a communication connection for data transmission via the first predetermined type of port.
10. 根据权利要求9所述的车载设备,其特征在于,所述车载设备还包括枚举模块和切换模块; 所述枚举模块,用于当所述移动终端通过所述通用串行总线接入所述车载设备,对所述移动终端进行端口枚举,以检测所述移动终端是否为支持所述第一预设类型端口通信的移动终端; 所述发送模块,还用于若所述移动终端为支持所述第一预设类型端口通信的移动终端,向所述移动终端发送主从切换命令,以供所述移动终端将从模式切换为主模式; 所述切换模块,用于将主模式切换为从模式。 10. The vehicle device according to claim 9, wherein said apparatus further comprises a vehicle enumeration module and a switching module; the enumeration module configured to, when the mobile terminal through the universal serial bus interface into the vehicle device, the mobile terminal enumerating a port to detect whether the mobile terminal is a communication port of a first predetermined type of said mobile terminal supports; the sending module is further configured to, if the mobile a first terminal is a predetermined type of communication port of the mobile terminal supports, the master transmits to the mobile terminal from the handover command to the mobile terminal for switching from a mode to the master mode; the switching module for the main mode is switched from the mode.
11. 根据权利要求9所述的车载设备,其特征在于,所述车载设备还包括启动模块; 所述启动模块,用于启动所述认证芯片的认证; 所述获取模块,还用于获取所述认证芯片产生的所述认证信息。 11. The vehicle device according to claim 9, characterized in that said apparatus further comprises a vehicle launch module; the starting module for starting the authentication verifying chip; the obtaining module is further configured to obtain the the said authentication information generated by the chip.
12. 根据权利要求9-11任一所述的车载设备,其特征在于,当所述移动终端为IOS操作系统的移动终端,所述第一预设类型端口为NCM端口,所述第二预设类型端口为IAP2端口, 所述认证芯片为MFI芯片。 12. The vehicle device according to any one of claims 9-11, wherein, when the mobile terminal is a mobile terminal IOS operating system, said first predetermined type NCM port to port, said second pre- IAP2 port type port is provided, the authentication verifying chip is a chip MFI.
13. -种移动终端,其特征在于,所述移动终端包括: 接收模块,用于当移动终端通过通用串行总线接入车载设备后并切换为主模式时,接收所述车载设备上报的进行数据传输的第一预设类型端口的信息和进行认证信息传输的第二预设类型端口的信息; 加载模块,用于根据所述第一预设类型端口的信息和所述第二预设类型端口的信息分别加载所述第一预设类型端口的驱动和所述第二预设类型端口的驱动; 认证模块,用于通过所述第二预设类型的端口与所述车载设备进行认证交互,以对认证芯片产生的认证信息进行认证;所述车载设备加载有所述第一预设类型端口的驱动、所述第二预设类型端口的驱动和认证芯片的驱动; 分配模块,用于认证通过后,根据网段ID为所述车载设备分配IP地址; 建立模块,用于根据所述IP地址、通过所述第一预设类型端口 13. - kind of mobile terminal, wherein said mobile terminal comprises: a receiving module, configured to, when the mobile terminal through a universal serial bus access and vehicle device is switched to the master mode, the vehicle-mounted receiving apparatus reported by the preset type information and the second port of the authentication information preset type information transmission port of a first data transmission; loading module, according to preset type information of the first port and the second predetermined type loading the information about the ports, respectively, a first port and a predetermined drive type driving the second predetermined type of port; authentication module for performing authentication interaction through the second port and the preset type of vehicle device , to authenticate the authentication information generated by the chip; the in-vehicle apparatus loaded with a preset driving said first type of port, and driving said second predetermined authentication chip type port; allocation module, for after authentication, the network segment according to the vehicle-mounted device ID is assigned an IP address; establishing module, according to the IP address, port through the first preset type 所述车载设备建立进行数据传输的通信连接。 The vehicle device establishing a communication connection for data transmission.
14. 根据权利要求13所述的移动终端,其特征在于,所述移动终端还包括枚举模块和切换丰吴块: 所述接收模块,还用于当所述移动终端通过所述通用串行总线接入所述车载设备,且通过所述车载设备的端口枚举确定当前所述移动终端为支持所述第一预设类型端口通信的移动终端时,接收所述车载设备发送的主从切换命令; 所述切换模块,用于根据所述主从切换命令,将当前模式切换为主模式; 所述枚举模块,用于对所述车载设备进行端口枚举。 14. The mobile terminal according to claim 13, wherein said mobile terminal further includes an enumeration module and a switch block Feng Wu: the receiving module is further configured to, when the mobile terminal through the universal serial when the vehicle device access bus, and the vehicle device by enumerating a port of the mobile terminal to determine the current support of the communication port of the first predetermined type of mobile terminal, receiving the in-vehicle device transmission from the switching master command; the switching module, according to the master-slave switch command, switches the current mode to the master mode; the enumeration module is configured to enumerate said vehicle device port.
15. 根据权利要求13所述的移动终端,其特征在于,所述移动终端还包括发送模块; 所述接收模块,还用于接收所述车载设备发送的IP请求; 所述发送模块,用于向所述车载设备发送所述IP地址。 15. The mobile terminal according to claim 13, wherein said mobile terminal further comprises a transmitting module; the receiving module is further configured to receive the IP request sent by the vehicle; the sending module, for transmitting said IP address to the in-vehicle device.
16. 根据权利要求13-15任一所述的移动终端,其特征在于,当所述移动终端为I0S操作系统的移动终端,所述第一预设类型端口为NCM端口,所述第二预设类型端口为IAP2端口, 所述认证芯片为MFI芯片。 16. The mobile terminal according to any one of claims 13-15, wherein, when the mobile terminal is a mobile terminal I0S operating system, the first port is preset type NCM port, said second pre- IAP2 port type port is provided, the authentication verifying chip is a chip MFI.
17. -种通信连接建立系统,其特征在于,所述系统包括用于建立通信连接的车载设备和移动终端;所述车载设备采用如上权利要求9-12任一所述的车载设备;所述移动终端采用如上权利要求13-16任一所述的移动终端。 17. - kind of communication connection establishment system, characterized in that the system comprises a vehicle device for establishing a communication connection and the mobile terminal; the in-vehicle apparatus using a vehicle-mounted device as claimed in claim any one of claim 9-12; the the mobile terminal uses the mobile terminal as claimed in claim any one of claims 13-16.
CN201611256186.2A 2016-12-30 2016-12-30 Communication connection establishment method and system, mobile terminal and vehicle-mounted equipment CN106603860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611256186.2A CN106603860A (en) 2016-12-30 2016-12-30 Communication connection establishment method and system, mobile terminal and vehicle-mounted equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611256186.2A CN106603860A (en) 2016-12-30 2016-12-30 Communication connection establishment method and system, mobile terminal and vehicle-mounted equipment
PCT/CN2017/079945 WO2018120493A1 (en) 2016-12-30 2017-04-10 Communication connection establishing method and system, mobile terminal, vehicle-mounted equipment, corresponding equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN106603860A true CN106603860A (en) 2017-04-26

Family

ID=58582929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611256186.2A CN106603860A (en) 2016-12-30 2016-12-30 Communication connection establishment method and system, mobile terminal and vehicle-mounted equipment

Country Status (2)

Country Link
CN (1) CN106603860A (en)
WO (1) WO2018120493A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222637A (en) * 2017-06-30 2017-09-29 百度在线网络技术(北京)有限公司 Connection method and device, vehicle-mounted system, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120047368A1 (en) * 2010-08-20 2012-02-23 Apple Inc. Authenticating a multiple interface device on an enumerated bus
EP2428899A1 (en) * 2009-03-16 2012-03-14 Apple Inc. Accessory and mobile computing device communication using an application communication protocol
CN102970367A (en) * 2012-11-26 2013-03-13 武汉理工大学 Smart-phone vehicle-mounted system based on Internet of vehicles
CN105120009A (en) * 2015-09-14 2015-12-02 百度在线网络技术(北京)有限公司 Terminal interconnection method and device
CN106250282A (en) * 2016-08-05 2016-12-21 惠州市德赛西威汽车电子股份有限公司 Apparatus for improving communication performance of CarPlay vehicle-mounted system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281438A (en) * 2013-05-03 2013-09-04 广东翼卡车联网服务有限公司 Mobile phone communication module-based data transmission method and system in Internet of vehicles
US9380507B2 (en) * 2013-06-07 2016-06-28 Apple Inc. System and method for transitioning to a vehicle network resource
CN103428283B (en) * 2013-08-06 2017-04-05 惠州华阳通用电子有限公司 Car sharing smart mobile terminal network method
US9406176B2 (en) * 2013-12-16 2016-08-02 GM Global Technology Operations LLC Managing short-range wireless device connection preferences at a vehicle
CN105451154B (en) * 2014-09-16 2019-02-12 钛马信息网络技术有限公司 Inter-vehicle information system and its control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2428899A1 (en) * 2009-03-16 2012-03-14 Apple Inc. Accessory and mobile computing device communication using an application communication protocol
US20120047368A1 (en) * 2010-08-20 2012-02-23 Apple Inc. Authenticating a multiple interface device on an enumerated bus
CN102970367A (en) * 2012-11-26 2013-03-13 武汉理工大学 Smart-phone vehicle-mounted system based on Internet of vehicles
CN105120009A (en) * 2015-09-14 2015-12-02 百度在线网络技术(北京)有限公司 Terminal interconnection method and device
CN106250282A (en) * 2016-08-05 2016-12-21 惠州市德赛西威汽车电子股份有限公司 Apparatus for improving communication performance of CarPlay vehicle-mounted system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KE8323: "CarPlay wired(USB)连接方案", 《HTTPS://BLOG.CSDN.NET/HUANGKE2012HK/ARTICLE/DETAILS/51225887》 *
QQ_34372185: "Accessory Interface Specification R22", 《HTTPS://DOWNLOAD.CSDN.NET/DOWNLOAD/QQ_34372185/9468190》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222637A (en) * 2017-06-30 2017-09-29 百度在线网络技术(北京)有限公司 Connection method and device, vehicle-mounted system, terminal and storage medium

Also Published As

Publication number Publication date
WO2018120493A1 (en) 2018-07-05

Similar Documents

Publication Publication Date Title
US6362730B2 (en) System and method for collecting vehicle information
CN1160982C (en) Communication system and method used by it
CN103873551B (en) The method and system that occupant uses introducing device to interact with Vehicular system
US6754183B1 (en) System and method for integrating a vehicle subnetwork into a primary network
JP6271568B2 (en) Establishing a wireless display session between a computing device and a vehicle head unit
CN102387188B (en) Application activation method
US9094436B2 (en) Methods and systems for interfacing with a vehicle computing system over multiple data transport channels
US20020032042A1 (en) Exporting controls to an external device connected to a portable phone system
RU2603496C2 (en) Wireless network interface with infrastructure and direct modes
AU2010307479B2 (en) Apparatus and method for establishing a personal network for providing a CPNS service
CN104038401B (en) A method for systems interoperability and distributed overlay virtual environment
JP2013505510A (en) Browsing system based on smart card, browsing method based on smart card and smart card therefor
US8452903B2 (en) Mobile computing device capabilities for accessories
US20010051863A1 (en) An intergrated sub-network for a vehicle
US6975612B1 (en) System and method for providing software upgrades to a vehicle
US8909803B2 (en) Accessory identification for mobile computing devices
KR20140012988A (en) Peer-to-peer group with renegotiation of group owner
US9233655B2 (en) Cloud-based vehicle information and control system
EP1188115A2 (en) Vehicle computerized network system
JP2008543240A (en) Network equipment for transmitting a software module for controlling the mobile terminal
US8380243B2 (en) Dual-mode digital mobile communication terminal enabling CDMA and GSM
US9253190B2 (en) Information management system and method for managing identification information
JP6022716B2 (en) Authenticate wireless dockees to wireless docking services
CN101340462B (en) Providing data-related services for vehicles equipped with telematics method
US8670798B2 (en) Extensible infotainment/telematics system having updatable user interface

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination