CN103186500A - Car-mounted terminal multiprocessor communication interface system and communication method - Google Patents

Car-mounted terminal multiprocessor communication interface system and communication method Download PDF

Info

Publication number
CN103186500A
CN103186500A CN2011104532329A CN201110453232A CN103186500A CN 103186500 A CN103186500 A CN 103186500A CN 2011104532329 A CN2011104532329 A CN 2011104532329A CN 201110453232 A CN201110453232 A CN 201110453232A CN 103186500 A CN103186500 A CN 103186500A
Authority
CN
China
Prior art keywords
processor
read data
car
communication
data
Prior art date
Application number
CN2011104532329A
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 CN2011104532329A priority Critical patent/CN103186500A/en
Publication of CN103186500A publication Critical patent/CN103186500A/en

Links

Abstract

The invention provides a car-mounted terminal multiprocessor communication interface system and communication method. The car-mounted terminal multiprocessor communication system comprises a first processor which is coupled with a car bus and a second processor which is connected with the first processor, wherein the second processor comprises a port drive module, a protocol processing module and a virtual equipment module, the port drive module receives a reading data packet from the first processor and transmits a writing data packet to the first processor; the protocol processing module is connected with the port drive module, used for unpacking the reading data packet to generate reading data on the basis of a preset communication protocol and packages the writing data to generate the writing data packet on the basis of the preset communication protocol; and the virtual equipment module is connected with the protocol processing module and receives the reading data and transmits the writing data, and the virtual equipment module is mapped to one or more peripheral equipment. The car-mounted terminal multiprocessor communication interface system and communication method can improve the response speed and improve the user experience.

Description

Car-mounted terminal multiprocessor communication interface system and communication means
Technical field
The present invention relates to mobile unit, relate in particular to a kind of car-mounted terminal multiprocessor communication interface system and communication means.
Background technology
In the car-mounted terminal equipment of prior art, usually adopt single processor to receive message and handle from the automobile bus such as controller local area network (CAN) bus, such as receiving information such as vehicle condition information, video, audio frequency control and result being presented on the screen by graphic user interface (GUI).But, the treatment effeciency of single processor (as arm processor) is slower, and the total system of car-mounted terminals such as needs could be exported result after starting, and system's startup generally needs the regular hour, and the user needs in time to understand some information in some cases, and the two has formed contradiction.For example when vehicle just starts, need be on screen the log-on message (as the car door open/close state) of display automobile, and this moment is because also not startup fully of system, thereby the processor of car-mounted terminal can't obtain the information on the automobile bus, cause the abnormality of automobile to point out, cause the inconvenience of use.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of car-mounted terminal multiprocessor communication interface system and communication means, thereby can realize that the communication between the multiprocessor obtains data from automobile bus in real time.
For solving the problems of the technologies described above, the invention provides a kind of car-mounted terminal multiprocessor communication interface system, comprising:
The first processor that is coupled with automobile bus;
Second processor that links to each other with described first processor, described second processor comprises:
Receive the port driver block that the described first processor of read data Bao Bingxiang sends data packets from described first processor;
Link to each other with described port driver block, based on default communication protocol described read data bag being unpacked generates read data and packs and generate the protocol process module of write data bag writing data based on described default communication protocol;
Link to each other, receive described read data with described protocol process module and send the virtual device modules of write data, described virtual device modules maps to one or more external units.
Alternatively, described second processor also comprises:
The communication service module that messaging parameter, described communication protocol are configured and load;
Link to each other, start according to described messaging parameter and communication protocol the startup module of communicating by letter of described protocol process module with described communication service module.
Alternatively, described protocol process module comprises:
Write data are packed to generate the packing submodule of data packets;
Described read data bag is unpacked to generate the submodule of unpacking of read data.
Alternatively, described packing submodule comprises:
Generate the check bit maker of check bit according to write data;
Write data and check bit are encapsulated in packet encapsulation device in the data packets.
Alternatively, the described submodule of unpacking comprises:
Described read data bag is resolved and is therefrom extracted the packet resolver of read data and check bit;
Described read data is carried out the checker of verification according to described check bit.
Alternatively, the described submodule of unpacking also comprises:
The transponder of link to each other with described checker, verification makeing mistakes back generation failure answer signal.
The present invention also provides a kind of car-mounted terminal multiprocessor communication method, and described car-mounted terminal comprises the first processor that is coupled with automobile bus and second processor that links to each other with described first processor, and described communication means comprises:
In read procedure:
Described second processor receives the read data bag from described first processor;
Based on default communication protocol to the described read data bag generation read data of unpacking;
With the virtual device modules of described read data transmission to described second processor;
In writing process:
Described virtual device modules is sent and is write data;
Based on described default communication protocol to the write data generation data packets of packing;
The write data bag is sent to described first processor;
Wherein, described virtual device modules maps to one or more external units.
Alternatively, write data are packed generate data packets and comprise:
Generate check bit according to write data;
Write data and check bit are encapsulated in the write data bag.
Alternatively, described read data bag is unpacked generate read data and comprise:
Read data and check bit are resolved and therefrom extracted to described read data bag;
According to described check bit described read data is carried out verification.
Alternatively, described read data is carried out also comprising after the verification: produce the failure answer signal after verification makes mistakes.
Compared with prior art, the present invention has the following advantages:
In the car-mounted terminal multiprocessor communication interface system and communication means of the embodiment of the invention, adopt first processor to come to obtain data from automobile bus, and be sent to second processor, second processor is unpacked to the packet that receives based on default communication protocol, and will unpack the read data transmission that obtains to virtual device modules for further processing, thereby make second processor to approach to obtain vehicle data in real time and handle accordingly, be conducive to improve user's experience.
Description of drawings
Fig. 1 is the structured flowchart of the car-mounted terminal multiprocessor communication interface system of the embodiment of the invention;
Fig. 2 is the pack arrangement synoptic diagram of the packet that adopts in the car-mounted terminal multiprocessor communication interface system of the embodiment of the invention;
Fig. 3 is the schematic flow sheet of read procedure in the car-mounted terminal multiprocessor communication method of the embodiment of the invention;
Fig. 4 is the schematic flow sheet of writing process in the car-mounted terminal multiprocessor communication method of the embodiment of the invention.
Embodiment
In the car-mounted terminal of prior art, often need etc. after total system starts, primary processor could be exported the result of data, can't meet consumers' demand under application scenes.
In the car-mounted terminal multiprocessor communication interface system and communication means of the embodiment of the invention, adopt first processor to come to obtain data from automobile bus, and be sent to second processor, second processor is unpacked to the packet that receives based on default communication protocol, and will unpack the read data transmission that obtains to virtual device modules for further processing, thereby make second processor to approach to obtain vehicle data in real time and handle accordingly, be conducive to improve user's experience.
The invention will be further described below in conjunction with specific embodiments and the drawings, but should not limit protection scope of the present invention with this.
Fig. 1 shows the structured flowchart of car-mounted terminal multiprocessor communication interface system, comprising: with the first processor 11 that the automobile bus (not shown) is coupled, and second processor 12 that links to each other with first processor 11.
Wherein, automobile bus can be controller local area network (CAN) bus and so on automobile bus, first processor 11 can be coupled by various suitable communication interfaces and automobile bus, thereby can obtain various vehicle datas from automobile bus, as the speed of a motor vehicle, vehicle door status, oil consumption etc.
First processor 11 can adopt various special uses or general processor, for example can be single-chip microcomputer of suitable model etc.
Second processor 12 links to each other with first processor 11, for example can adopt universal asynchronous reception/dispensing device (UART) interface to link to each other.Second processor 12 can be realized by general processor, arm processor for example, also can adopt special-purpose processor to realize, second processor 12 specifically can comprise: port driver block 121, protocol process module 122, virtual device modules 123, communication service module 124 and communication start module 125, but are not limited to this.
Wherein, port driver block 121 links to each other with first processor 11, is reading the process (that is, second processor 12 reads data from first processor 11) from first processor 11 reception read data bags; In ablation process (that is, second processor 12 writes data to first processor 11), send data packets to first processor 11.Port driver block 121 can adopt hardware module to realize, also can adopt the software module of kernel (kernel) layer that is positioned at operating system (for example android) to realize.
Protocol process module 122 links to each other with port driver block 121, in reading process, generates read data thereby based on default communication protocol the read data bag is unpacked; In ablation process, thereby pack to generate and write data writing data based on default communication protocol.Protocol process module 122 can adopt hardware module to realize, also can adopt the software module of the inner nuclear layer that is positioned at operating system (for example android) to realize.
Protocol process module 122 can specifically comprise packs to generate the packing submodule of data packets with writing data, and the submodule of unpacking of the read data bag being unpacked to generate read data.
As preferred embodiment, the packing submodule specifically can comprise: according to writing the check bit maker that data generate check bit, for example can generate check bit according to the Cyclic Redundancy Check algorithm; The check bit of writing data and generation is encapsulated in packet encapsulation device in the data packets.The submodule of unpacking specifically can comprise: the packet resolver of the read data bag being resolved and therefrom extracted read data and check bit; And the read data that tea bag is produced according to the check bit checker that carries out verification, for example carry out verification according to the CRC algorithm.Unpacking can also comprise the transponder that links to each other with checker in the submodule, produces the failure answer signal in the verification back of makeing mistakes, and requires transmit leg to resend.
Virtual device modules 123 links to each other with protocol process module 122, and virtual device modules 122 maps to one or more external units, and namely for other modules in second processor 12, program, it is corresponding external unit that virtual device modules 122 is taken as.In reading process, virtual device modules 123 receives the read data of the acquisition of unpacking for follow-up further processing from protocol process module 122; In ablation process, virtual device modules 123 is sent the above-mentioned data of writing to protocol process module 122.Virtual device modules 123 can adopt hardware module to realize, also can adopt the software module of the inner nuclear layer that is positioned at operating system (for example android) to realize.
For example, in one embodiment, virtual device modules 123 can map to outside oil consumption display, after virtual device modules 123 has been obtained fuel consumption data via port driver block 121, protocol process module 122, first processor 11 from automobile bus, the display module (not shown) of second processor, 12 inside can directly be obtained fuel consumption data from virtual unit 123 and show, being about to that virtual device modules 123 is used as is the oil consumption display.Similarly, in ablation process, also the data of wanting to write external unit at first can be write to virtual device modules 123, export the external unit that is connected on the automobile bus by virtual device modules 123 to via protocol process module 122, port driver block 121, first processor 11.
In addition, second processor 12 comprises that also communication service module 124 starts module 125 with communicating by letter in the present embodiment.
Wherein, the communication protocol that 124 pairs of messaging parameters of communication service module and protocol process module 122 are followed is configured and loads.Communication service module 124 can adopt hardware module to realize, also can adopt the software module of the hardware abstraction layer (HAL) that is positioned at operating system (for example android) to realize.For example, the user can be configured by 124 pairs of various information of communication service module, when system starts, can load the messaging parameter of communication port between first processor 11 and second processor 12, port attribute and so on, and can load the communication protocol between the processor of setting simultaneously.Wherein the setting of communication protocol comprises: the pack arrangement form of read data bag and data packets, take up room etc.
Communication starts module 125 and links to each other with communication service module 124, starts protocol process module 122 according to the messaging parameter in the communication service module 124, communication protocol.Communication starts module 125 and can adopt hardware module to realize, also can adopt the software module of the inner nuclear layer that is positioned at operating system (for example android) to realize.
In other words, employed communication protocol arranges and loads by communication service module 124 in the protocol process module 122, and is passed to protocol process module 122 by communication startup module 125.
Fig. 2 shows the packet format that data packets and read data bag adopt in the present embodiment, comprising: data packet head (for example can take 2 bytes), group id number (Group ID) (for example can take 1 byte), message identification numbers (Message ID) (for example can take 1 byte), data (for example read data or write data) (for example can take 32 bytes), check bit (for example can take 1 byte) and packet tail (for example can take 1 byte).Wherein, message identification numbers can have uniqueness corresponding to specific function in the virtual device modules (being the function of the external unit that shines upon).
Adopt the communication interface system of present embodiment, can be so that second processor can approach in real time to be obtained data and carry out subsequent treatment from first processor, having solved single processor treatment effeciency may low excessively problem, is conducive to improve user's experience.
Present embodiment also provides the communication means between the multiprocessor in the car-mounted terminal, and wherein car-mounted terminal comprises as shown in fig. 1 first processor 11 and second processor 12, and the schematic flow sheet of read procedure comprises as shown in Figure 3:
Step S21, described second processor receives the read data bag from described first processor;
Step S22, based on default communication protocol to the described read data bag generation read data of unpacking;
Step S23 is with the virtual device modules of described read data transmission to described second processor.
Write the schematic flow sheet of process as shown in Figure 4, comprising:
Step S31, described virtual device modules is sent and is write data;
Step S32, based on described default communication protocol to the write data generation data packets of packing;
Step S33 is sent to described first processor with the write data bag.
See also the description of the course of work of car-mounted terminal multiprocessor communication interface system in above-described embodiment about the details of this communication means, repeat no more here.
Though the present invention with preferred embodiment openly as above; but it is not to limit the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can make possible change and modification, so protection scope of the present invention should be as the criterion with the scope that claim of the present invention was defined.

Claims (10)

1. a car-mounted terminal multiprocessor communication interface system is characterized in that, comprising:
The first processor that is coupled with automobile bus;
Second processor that links to each other with described first processor, described second processor comprises:
Receive the port driver block that the described first processor of read data Bao Bingxiang sends data packets from described first processor;
Link to each other with described port driver block, based on default communication protocol described read data bag being unpacked generates read data and packs and generate the protocol process module of write data bag writing data based on described default communication protocol;
Link to each other, receive described read data with described protocol process module and send the virtual device modules of write data, described virtual device modules maps to one or more external units.
2. car-mounted terminal multiprocessor communication interface system according to claim 1 is characterized in that, described second processor also comprises:
The communication service module that messaging parameter, described communication protocol are configured and load;
Link to each other, start according to described messaging parameter and communication protocol the startup module of communicating by letter of described protocol process module with described communication service module.
3. car-mounted terminal multiprocessor communication interface system according to claim 1 is characterized in that described protocol process module comprises:
Write data are packed to generate the packing submodule of data packets;
Described read data bag is unpacked to generate the submodule of unpacking of read data.
4. car-mounted terminal multiprocessor communication interface system according to claim 3 is characterized in that, described packing submodule comprises:
Generate the check bit maker of check bit according to write data;
Write data and check bit are encapsulated in packet encapsulation device in the data packets.
5. car-mounted terminal multiprocessor communication interface system according to claim 3 is characterized in that, the described submodule of unpacking comprises:
Described read data bag is resolved and is therefrom extracted the packet resolver of read data and check bit;
Described read data is carried out the checker of verification according to described check bit.
6. car-mounted terminal multiprocessor communication interface system according to claim 5 is characterized in that, the described submodule of unpacking also comprises:
The transponder of link to each other with described checker, verification makeing mistakes back generation failure answer signal.
7. a car-mounted terminal multiprocessor communication method is characterized in that, described car-mounted terminal comprises the first processor that is coupled with automobile bus and second processor that links to each other with described first processor, and described communication means comprises:
In read procedure:
Described second processor receives the read data bag from described first processor;
Based on default communication protocol to the described read data bag generation read data of unpacking;
With the virtual device modules of described read data transmission to described second processor;
In writing process:
Described virtual device modules is sent and is write data;
Based on described default communication protocol to the write data generation data packets of packing;
The write data bag is sent to described first processor;
Wherein, described virtual device modules maps to one or more external units.
8. car-mounted terminal multiprocessor communication method according to claim 7 is characterized in that, write data are packed to be generated data packets and comprise:
Generate check bit according to write data;
Write data and check bit are encapsulated in the write data bag.
9. car-mounted terminal multiprocessor communication method according to claim 7 is characterized in that, described read data bag is unpacked to be generated read data and comprise:
Read data and check bit are resolved and therefrom extracted to described read data bag;
According to described check bit described read data is carried out verification.
10. car-mounted terminal multiprocessor communication method according to claim 9 is characterized in that, described read data is carried out also comprising after the verification: produce the failure answer signal after verification makes mistakes.
CN2011104532329A 2011-12-29 2011-12-29 Car-mounted terminal multiprocessor communication interface system and communication method CN103186500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104532329A CN103186500A (en) 2011-12-29 2011-12-29 Car-mounted terminal multiprocessor communication interface system and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104532329A CN103186500A (en) 2011-12-29 2011-12-29 Car-mounted terminal multiprocessor communication interface system and communication method

Publications (1)

Publication Number Publication Date
CN103186500A true CN103186500A (en) 2013-07-03

Family

ID=48677671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104532329A CN103186500A (en) 2011-12-29 2011-12-29 Car-mounted terminal multiprocessor communication interface system and communication method

Country Status (1)

Country Link
CN (1) CN103186500A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846420A (en) * 2017-12-20 2018-03-27 深圳市沃特沃德股份有限公司 The method and vehicle-mounted main system of communication matching with coprocessor
CN108052472A (en) * 2017-12-12 2018-05-18 智车优行科技(北京)有限公司 A kind of IIC facility communication systems, data writing method and data reading method
CN108429796A (en) * 2018-02-23 2018-08-21 航天新长征电动汽车技术有限公司 A kind of general vehicle remote monitoring terminal, system and method
CN109286689A (en) * 2018-11-29 2019-01-29 北京车联天下信息技术有限公司 A kind of method for sending information, device and vehicle-mounted people-car interaction terminal
CN109639690A (en) * 2018-12-18 2019-04-16 重庆长安新能源汽车科技有限公司 A kind of vehicle monitor terminal and its long-distance monitoring method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811667A (en) * 2006-03-01 2006-08-02 上海燃料电池汽车动力系统有限公司 Vehicular system based on in-vehicle network and long-distance radio communication service
CN101055648A (en) * 2006-04-10 2007-10-17 宜兴市新屹仪器有限公司 Vehicular real time intelligent failure monitoring device and method
CN101123561A (en) * 2007-05-10 2008-02-13 中国科学院电工研究所 Intelligent car body network system
CN101489833A (en) * 2006-08-11 2009-07-22 夏普株式会社 On-vehicle display system and display panel control device
CN202383675U (en) * 2011-12-29 2012-08-15 上海博泰悦臻电子设备制造有限公司 Multiprocessor communication interface system for vehicular terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811667A (en) * 2006-03-01 2006-08-02 上海燃料电池汽车动力系统有限公司 Vehicular system based on in-vehicle network and long-distance radio communication service
CN101055648A (en) * 2006-04-10 2007-10-17 宜兴市新屹仪器有限公司 Vehicular real time intelligent failure monitoring device and method
CN101489833A (en) * 2006-08-11 2009-07-22 夏普株式会社 On-vehicle display system and display panel control device
CN101123561A (en) * 2007-05-10 2008-02-13 中国科学院电工研究所 Intelligent car body network system
CN202383675U (en) * 2011-12-29 2012-08-15 上海博泰悦臻电子设备制造有限公司 Multiprocessor communication interface system for vehicular terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052472A (en) * 2017-12-12 2018-05-18 智车优行科技(北京)有限公司 A kind of IIC facility communication systems, data writing method and data reading method
CN107846420A (en) * 2017-12-20 2018-03-27 深圳市沃特沃德股份有限公司 The method and vehicle-mounted main system of communication matching with coprocessor
CN108429796A (en) * 2018-02-23 2018-08-21 航天新长征电动汽车技术有限公司 A kind of general vehicle remote monitoring terminal, system and method
CN109286689A (en) * 2018-11-29 2019-01-29 北京车联天下信息技术有限公司 A kind of method for sending information, device and vehicle-mounted people-car interaction terminal
CN109286689B (en) * 2018-11-29 2020-12-11 北京车联天下信息技术有限公司 Information sending method and device and vehicle-mounted man-vehicle interaction terminal
CN109639690A (en) * 2018-12-18 2019-04-16 重庆长安新能源汽车科技有限公司 A kind of vehicle monitor terminal and its long-distance monitoring method and system

Similar Documents

Publication Publication Date Title
CN104424779B (en) System, the method for vehicle are controlled by mobile terminal
JP6483383B2 (en) Processor for performing signal conversion between Ethernet and CAN communication in vehicle and signal conversion method
CN102202093B (en) A kind of method and system realizing transducer adaptation
CN103503353B (en) For the data transmission system of communication and method in vehicle
CN102780705B (en) Ethernet-(controller area network) CAN protocol converter
CN102638397B (en) USB (universal serial bus) device communication transmission method, device and system
CN102325322B (en) Multi-way access gateway device supporting wireless network and certification method
CN103780697A (en) Common platform system of vehicle-mounted electronic processing unit and data communication method of common platform system
EP2541846B1 (en) Communication method of gateway device supporting CAN - and Modbus protocol conversion and gateway device using the same
CN102571732B (en) A kind of methods, devices and systems of processes sensor protocol information
CN105137964A (en) Automobile fault remote diagnosis system based on cellphone APP
CN104036628A (en) Intelligent remote controller based on Bluetooth and quick pairing method
CN105051706B (en) The equipment of operation for the low-power PHY with PCIE protocol stacks, method and system
CN102081585B (en) RS485 dual-bus communication method used for test satellite
CN102801551B (en) Open systems and the corresponding interfaces for automotive electronics (OSEK) network management-based controller area network (CAN) management method
JP2007501472A (en) USB host controller with transfer descriptor memory
EP2566288B1 (en) Wireless internet access module, communication method for host and wireless internet access module
CN102820959B (en) In Modbus main website and the method for carrying out big data quantity between slave station and communicating
CN103248526A (en) Communication equipment and method for achieving out-of-band monitoring and management, and master-slave switching method
CN101599004B (en) SATA controller based on FPGA
CN103428552B (en) Remote controller air mouse realize method
CN101788972A (en) System and method for transmitting data
WO2013184117A1 (en) Message tunneling in industrial networks
CN103873595A (en) Multifunctional gateway used for vehicle and control method thereof
CN103929428B (en) A kind of method for realizing vehicle electronics information system communication safety

Legal Events

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

Application publication date: 20130703

RJ01 Rejection of invention patent application after publication