[go: up one dir, main page]

CN108259601A - Communication device and method based on USB of vehicle device and application program of mobile phone in car networking - Google Patents

Communication device and method based on USB of vehicle device and application program of mobile phone in car networking Download PDF

Info

Publication number
CN108259601A
CN108259601A CN201810041682.9A CN201810041682A CN108259601A CN 108259601 A CN108259601 A CN 108259601A CN 201810041682 A CN201810041682 A CN 201810041682A CN 108259601 A CN108259601 A CN 108259601A
Authority
CN
China
Prior art keywords
vehicle device
usb
vehicle
application program
adb
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810041682.9A
Other languages
Chinese (zh)
Inventor
管运呈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Electric Fufu Mdt Infotech Ltd
Original Assignee
China Electric Fufu Mdt Infotech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Electric Fufu Mdt Infotech Ltd filed Critical China Electric Fufu Mdt Infotech Ltd
Priority to CN201810041682.9A priority Critical patent/CN108259601A/en
Publication of CN108259601A publication Critical patent/CN108259601A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses communication device and method based on USB of vehicle device and application program of mobile phone in car networking, it includes vehicle-mounted vehicle device and mobile equipment, vehicle-mounted vehicle device is connected with mobile equipment by USB line, vehicle-mounted vehicle device is for handling vehicle device data and extraneous mobile device communication, and mobile equipment provides the window of the vehicle-mounted vehicle device equipment of user's operation and the screen as vehicle-mounted vehicle device uses.The present invention allows between application program and vehicle device and can be communicated by USB, it is so that more abundant with scene, can in the car without net or network environment it is very poor in the case of, continue interconnecting between people and vehicle device, the dependence to network is greatly reduced, simultaneous transmission rate also greatly improves.

Description

Communication device and method based on USB of vehicle device and application program of mobile phone in car networking
Technical field
It is logical based on USB the present invention relates to vehicle device in telecom communication field more particularly to car networking and application program of mobile phone T unit.
Background technology
Along with the synchronization depth development of mobile Internet, car networking is also constantly excavated, and also obtains cars on hand enterprise Continuous attention, it is therefore an objective to automobile is allowed to connect, more intelligently.
The way of current most of depots is all one application program of customization, and vehicle device is inquired indirectly by central server State and control vehicle device, half is used for vehicle external schema, i.e., in the case of not driving;When car owner is when driving, acquiescence is all vehicle device It is upper to carry a control flow or no control flow(Operation can only just be controlled).
In view of most vehicle devices and control flow are all integrated on the market, there is no realization vehicle device and control flow split screen function, and It cannot by active user, included mobile equipment directly inquires vehicle device state and controls vehicle device work(in itself under environment in the car Energy;If by vehicle device and control flow split screen, be related to vehicle device and mobile equipment directly communicate, at present mainstream be all bluetooth and WIFI modes, but if directly being connected by USB, then it is more stable, efficient.
Invention content
It is an object of the invention to overcome the deficiencies of the prior art and provide vehicle devices in car networking and application program of mobile phone to be based on The communication device and method of USB can realize that the usb communication private data of vehicle device and mobile equipment is looked into reach under environment inside car Ask vehicle device state and control vehicle device.
The technical solution adopted by the present invention is:
The communication device of vehicle device and application program of mobile phone based on USB in car networking, it is vehicle-mounted including vehicle-mounted vehicle device and mobile equipment Vehicle device is connected with mobile equipment by USB line, and for handling vehicle device data and extraneous mobile device communication, movement is set vehicle-mounted vehicle device It is used for the window of the offer vehicle-mounted vehicle device equipment of user's operation and the screen as vehicle-mounted vehicle device.
Further, vehicle-mounted vehicle device is to carry the individual small server of (SuSE) Linux OS.
Further, mobile equipment carries Android system, mobile equipment by Android ADB bridge tool and vehicle-mounted vehicle device into Row usb communication.
Further, vehicle-mounted vehicle device includes following structural framing:
For providing application program Connection Service port, the padlink modules of kernel information are monitored;
For providing the ADB of Android device tool bridge joint tool models;
For providing the ADB Driver drive modules of support;
For providing the linux kernel Kernel modules of underlying operating system support;
For providing the USB Driver modules that application program-vehicle device USB connections are supported.
Further, vehicle-mounted vehicle device is built-in with private data agreement and TCP/IP underlying protocols, and data are successively using privately owned Mobile equipment is transmitted to by usb communication after data protocol and the processing of TCP/IP underlying protocols.
The invention also discloses the communication means of vehicle device in car networking and application program of mobile phone based on USB, including following Step:
Step 1:Vehicle-mounted vehicle device can monitor core message upon actuation, obtain the connection message of USB device;
Step 2:After USB device connects the USB interface in upper vehicle device, vehicle-mounted vehicle device receives USB connection state informations;
Step 3:ADB instructions is called to judge whether equipment is Android device;
Step 4:When judging USB connection equipment for Android, PADLINK modules call ADB SOCKET forwardings port is configured,
Step 5:After establishing forwarding port, PADLINK calls ADB instructions to start the application program in mobile equipment, realizes Self-starting function is applied in USB connections;
Whether PADLINK calls the return value of ADB instructions to determine in Android device with the presence of application program;When application program tune With success, then it represents that there are application programs in Android device;When application call fails, then it represents that Android device is not present;
Step 6:After application call ADB starts application program success, wait for 3 seconds, ADB is called to send AM BROADCAST (ADB SHELL AM BROADCAST -A ANDROID.INTENT.ACTION.USB --EI PORT 8000)It instructs to give Application program sends parameter, and notice application program passes through USB connection vehicle device equipment;
Step 7:So far ADB connections flow terminates.
Further, Android device mandate debugging problem is can be potentially encountered in step 3 during First Contact Connections, is needed in movement Confirm in equipment and authorize.
Further, step 4 transfer starts mouth from the 8000 of application program to 8000 ports of vehicle device, and application program can be with By connecting 127.0.0.1:8000, it is thus connected in the PADLINK services of vehicle device.
The present invention is using above technical scheme, and for situation of the car without net, vehicle device is independent the small-sized clothes on car Business device, without control flow, and the mobile equipment of user is shielded in order to control, is connected, is based on by USB between mobile equipment and vehicle device Usb communication mode bridges tool to realize the usb communication of mobile applications and vehicle device by Android ADB, transmits private data Agreement, car owner can directly be used under environment by mobile applications to work as vehicle device control flow in the car, and vehicle device is given to send control System instruction and inquiry vehicle device virtual condition.The present invention has the following advantages that compared with prior art:1st, car owner can be carried Mobile equipment is shielded in order to control, compatible majority type;2nd, customized car networking data protocol standard;3rd, it greatly reduces to network Dependence;4th, simultaneous transmission rate also greatly improves.
The present invention is suitable for the control flow that all Android mobile applications are onboard system vehicle device, logical based on USB Letter transmits private data agreement.The present invention allows between application program and vehicle device and can be communicated by USB so that with scene It is more abundant, can in the car without net or network environment it is very poor in the case of, the interconnection continued between people and vehicle device is mutual It is logical, the dependence to network is greatly reduced, simultaneous transmission rate also greatly improves.
Description of the drawings
The present invention is described in further details below in conjunction with the drawings and specific embodiments;
Fig. 1 is the structure diagram of the communication device of vehicle device and application program of mobile phone based on USB in car networking of the present invention;
Fig. 2 is the frame knot of the vehicle-mounted vehicle device of the communication device of vehicle device and application program of mobile phone based on USB in car networking of the present invention Structure schematic diagram;
Fig. 3 is the flow diagram of the communication means of vehicle device and application program of mobile phone based on USB in car networking of the present invention.
Specific embodiment
As shown in one of Fig. 1-3, the invention discloses the communication dress of vehicle device in car networking and application program of mobile phone based on USB It puts, including vehicle-mounted vehicle device and mobile equipment, vehicle-mounted vehicle device is connected with mobile equipment by USB line, and vehicle-mounted vehicle device is used to handle Vehicle device data and extraneous mobile device communication, mobile equipment provide the window of the vehicle-mounted vehicle device equipment of user's operation and are used as vehicle-mounted vehicle The screen of machine uses.
Further, vehicle-mounted vehicle device is to carry the individual small server of (SuSE) Linux OS.
Further, mobile equipment carries Android system, mobile equipment by Android ADB bridge tool and vehicle-mounted vehicle device into Row usb communication.
Further, as shown in Fig. 2, vehicle-mounted vehicle device includes following structural framing:
For providing application program Connection Service port, the padlink modules of kernel information are monitored;
For providing the ADB of Android device tool bridge joint tool models;
For providing the ADB Driver drive modules of support;
For providing the linux kernel Kernel modules of underlying operating system support;
For providing the USB Driver modules that application program-vehicle device USB connections are supported.
Further, vehicle-mounted vehicle device is built-in with private data agreement and TCP/IP underlying protocols, and data are successively using privately owned Mobile equipment is transmitted to by usb communication after data protocol and the processing of TCP/IP underlying protocols.
As shown in figure 3, the invention also discloses the communication means of vehicle device in car networking and application program of mobile phone based on USB, It includes the following steps:
Step 1:Vehicle-mounted vehicle device can monitor core message upon actuation, obtain the connection message of USB device;
Step 2:After USB device connects the USB interface in upper vehicle device, vehicle-mounted vehicle device receives USB connection state informations;
Step 3:ADB instructions is called to judge whether equipment is Android device;
Step 4:When judging USB connection equipment for Android, PADLINK modules call ADB SOCKET forwardings port is configured,
Step 5:After establishing forwarding port, PADLINK calls ADB instructions to start the application program in mobile equipment, realizes Self-starting function is applied in USB connections;
Whether PADLINK calls the return value of ADB instructions to determine in Android device with the presence of application program;When application program tune With success, then it represents that there are application programs in Android device;When application call fails, then it represents that Android device is not present;
Step 6:After application call ADB starts application program success, wait for 3 seconds, ADB is called to send AM BROADCAST (ADB SHELL AM BROADCAST -A ANDROID.INTENT.ACTION.USB --EI PORT 8000)It instructs to give Application program sends parameter, and notice application program passes through USB connection vehicle device equipment;
Step 7:So far ADB connections flow terminates.
Further, Android device mandate debugging problem is can be potentially encountered in step 3 during First Contact Connections, is needed in movement Confirm in equipment and authorize.
Further, step 4 transfer starts mouth from the 8000 of application program to 8000 ports of vehicle device, and application program can be with By connecting 127.0.0.1:8000, it is thus connected in the PADLINK services of vehicle device.
The present invention is using above technical scheme, and for situation of the car without net, vehicle device is independent the small-sized clothes on car Business device, without control flow, and the mobile equipment of user is shielded in order to control, is connected, is based on by USB between mobile equipment and vehicle device Usb communication mode bridges tool to realize the usb communication of mobile applications and vehicle device by Android ADB, transmits private data Agreement, car owner can directly be used under environment by mobile applications to work as vehicle device control flow in the car, and vehicle device is given to send control System instruction and inquiry vehicle device virtual condition.The present invention has the following advantages that compared with prior art:1st, car owner can be carried Mobile equipment is shielded in order to control, compatible majority type;2nd, customized car networking data protocol standard;3rd, it greatly reduces to network Dependence;4th, simultaneous transmission rate also greatly improves.
The present invention is suitable for the control flow that all Android mobile applications are onboard system vehicle device, logical based on USB Letter transmits private data agreement.The present invention allows between application program and vehicle device and can be communicated by USB so that with scene It is more abundant, can in the car without net or network environment it is very poor in the case of, the interconnection continued between people and vehicle device is mutual It is logical, the dependence to network is greatly reduced, simultaneous transmission rate also greatly improves.

Claims (8)

1. the communication device of vehicle device and application program of mobile phone based on USB in car networking, it is characterised in that:It include vehicle-mounted vehicle device and Mobile equipment, vehicle-mounted vehicle device are connected with mobile equipment by USB line, and vehicle-mounted vehicle device sets for handling vehicle device data with external world's movement Standby communication, mobile equipment provides the window of the vehicle-mounted vehicle device equipment of user's operation and the screen as vehicle-mounted vehicle device uses.
2. the communication device of vehicle device and application program of mobile phone based on USB, feature exist in car networking according to claim 1 In:The vehicle-mounted vehicle device is to carry the individual small server of (SuSE) Linux OS.
3. the communication device of vehicle device and application program of mobile phone based on USB, feature exist in car networking according to claim 1 In:The mobile equipment carries Android system, and mobile equipment bridges tool by Android ADB and carries out usb communication with vehicle-mounted vehicle device.
4. the communication device of vehicle device and application program of mobile phone based on USB, feature exist in car networking according to claim 1 In:The vehicle-mounted vehicle device includes following structural framing:
For providing application program Connection Service port, the padlink modules of kernel information are monitored;
For providing the ADB of Android device tool bridge joint tool models;
For providing the ADB Driver drive modules of support;
For providing the linux kernel Kernel modules of underlying operating system support;
For providing the USB Driver modules that application program-vehicle device USB connections are supported.
5. the communication device of vehicle device and application program of mobile phone based on USB, feature exist in car networking according to claim 1 In:The vehicle-mounted vehicle device is built-in with private data agreement and TCP/IP underlying protocols, data successively using private data agreement and Mobile equipment is transmitted to by usb communication after the processing of TCP/IP underlying protocols.
6. the communication means of vehicle device and application program of mobile phone based on USB in car networking, should applied to vehicle device in car networking and mobile phone With communication device of the program based on USB, it is characterised in that:Communication means includes the following steps:
Step 1:Vehicle-mounted vehicle device can monitor core message upon actuation, obtain the connection message of USB device;
Step 2:After USB device connects the USB interface in upper vehicle device, vehicle-mounted vehicle device receives USB connection state informations;
Step 3:ADB instructions is called to judge whether equipment is Android device;
Step 4:When judging USB connection equipment for Android, PADLINK modules call ADB SOCKET forwardings port is configured,
Step 5:After establishing forwarding port, PADLINK calls ADB instructions to start the application program in mobile equipment, realizes Self-starting function is applied in USB connections;
Whether PADLINK calls the return value of ADB instructions to determine in Android device with the presence of application program;When application program tune With success, then it represents that there are application programs in Android device;When application call fails, then it represents that Android device is not present;
Step 6:After application call ADB starts application program success, wait for 3 seconds, ADB is called to send AM BROADCAST (ADB SHELL AM BROADCAST -A ANDROID.INTENT.ACTION.USB --EI PORT 8000)It instructs to give Application program sends parameter, and notice application program passes through USB connection vehicle device equipment;
Step 7:So far ADB connections flow terminates.
7. the communication means of vehicle device and application program of mobile phone based on USB, feature exist in car networking according to claim 6 In:In step 3 during First Contact Connections when encountering Android device mandate debugging problem, need to confirm mandate on the mobile apparatus.
8. the communication means of vehicle device and application program of mobile phone based on USB, feature exist in car networking according to claim 6 In:Step 4 transfer starts mouth from the 8000 of application program to 8000 ports of vehicle device, and application program can pass through connection 127.0.0.1:8000 are connected in the PADLINK services of vehicle device.
CN201810041682.9A 2018-01-16 2018-01-16 Communication device and method based on USB of vehicle device and application program of mobile phone in car networking Pending CN108259601A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810041682.9A CN108259601A (en) 2018-01-16 2018-01-16 Communication device and method based on USB of vehicle device and application program of mobile phone in car networking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810041682.9A CN108259601A (en) 2018-01-16 2018-01-16 Communication device and method based on USB of vehicle device and application program of mobile phone in car networking

Publications (1)

Publication Number Publication Date
CN108259601A true CN108259601A (en) 2018-07-06

Family

ID=62741623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810041682.9A Pending CN108259601A (en) 2018-01-16 2018-01-16 Communication device and method based on USB of vehicle device and application program of mobile phone in car networking

Country Status (1)

Country Link
CN (1) CN108259601A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113189920A (en) * 2021-05-28 2021-07-30 重庆长安汽车股份有限公司 Android-based remote control method for vehicle-mounted entertainment information system
CN113543078A (en) * 2020-04-14 2021-10-22 大众汽车股份公司 Vehicle machine, mobile terminal, and method for controlling interaction between mobile terminal and vehicle machine
CN113904966A (en) * 2021-08-31 2022-01-07 惠州市德赛西威汽车电子股份有限公司 System and method for automatically testing interconnection function of vehicle-mounted multimedia mobile phone

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204761538U (en) * 2015-01-15 2015-11-11 上海通用汽车有限公司 Control system in car based on mobile terminal
CN105634862A (en) * 2015-12-25 2016-06-01 百度在线网络技术(北京)有限公司 Application identification method and device
US20160234705A1 (en) * 2014-06-30 2016-08-11 At&T Intellectual Property I, Lp Method and apparatus for monitoring and adjusting multiple communication services at a venue
CN106951202A (en) * 2017-02-04 2017-07-14 杰发科技(合肥)有限公司 Mobile terminal is extended to the method and car-mounted terminal of car-mounted terminal movement screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160234705A1 (en) * 2014-06-30 2016-08-11 At&T Intellectual Property I, Lp Method and apparatus for monitoring and adjusting multiple communication services at a venue
CN204761538U (en) * 2015-01-15 2015-11-11 上海通用汽车有限公司 Control system in car based on mobile terminal
CN105634862A (en) * 2015-12-25 2016-06-01 百度在线网络技术(北京)有限公司 Application identification method and device
CN106951202A (en) * 2017-02-04 2017-07-14 杰发科技(合肥)有限公司 Mobile terminal is extended to the method and car-mounted terminal of car-mounted terminal movement screen

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543078A (en) * 2020-04-14 2021-10-22 大众汽车股份公司 Vehicle machine, mobile terminal, and method for controlling interaction between mobile terminal and vehicle machine
CN113189920A (en) * 2021-05-28 2021-07-30 重庆长安汽车股份有限公司 Android-based remote control method for vehicle-mounted entertainment information system
CN113904966A (en) * 2021-08-31 2022-01-07 惠州市德赛西威汽车电子股份有限公司 System and method for automatically testing interconnection function of vehicle-mounted multimedia mobile phone
CN113904966B (en) * 2021-08-31 2024-03-19 惠州市德赛西威汽车电子股份有限公司 System and method for automatically testing interconnection function of vehicle-mounted multimedia mobile phone

Similar Documents

Publication Publication Date Title
CN106973092B (en) System and method for providing mobile communication network in vehicle
CN103650458B (en) Media stream transmission method, device and system
CN100464522C (en) A process upgrade method and process upgrade system
CN105120009A (en) Terminal interconnection method and device
CN108259601A (en) Communication device and method based on USB of vehicle device and application program of mobile phone in car networking
CN108255677A (en) The vehicle-mounted vehicle device of car networking and Android device communication means and its device
WO2014101022A1 (en) Remote wakening method, device and system
CA2672266A1 (en) Mobile communication control system, method, and communication terminal
CN112654070B (en) Communication method, device, equipment and storage medium between user terminals
CN110446196A (en) Gateway control method, apparatus and gateway working method, device and electronic equipment
CN103634419B (en) The long-range control method of terminal and terminal
CN102378223B (en) System and method for remote management on M2M terminal
CN101217538B (en) Integrated network activation system
CN108406781A (en) A kind of Remote Robot Control System and control method
WO2011094976A1 (en) Wireless data card, method and system for communicationg between wireless data card and computer side
CN107846609B (en) Real-time transmission method, device and system for control room data
CN119172811A (en) Data processing method, device and network equipment
CN108449403A (en) A kind of charge control method
CN116149883B (en) RPA software rapid embedding method and system for Web system
CN110289899B (en) Unmanned aerial vehicle communication method and device
CN102083245A (en) Intelligent terminal as well as collaboration service method and system aiming at same
CN110113430A (en) A kind of communication means between mobile phone and raspberry pie based on cloud database
CN110445642B (en) Communication method for maintaining flight parameter system across buses
CN114710522A (en) Android platform-based vehicle-mounted network architecture system and method
CN118890413A (en) A method and system for persistent interconnection between vehicle and mobile phone based on long connection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180706

RJ01 Rejection of invention patent application after publication