CN103237070A - Method for data communication between mobile terminal and vehicle-mounted electric control unit - Google Patents
Method for data communication between mobile terminal and vehicle-mounted electric control unit Download PDFInfo
- Publication number
- CN103237070A CN103237070A CN2013101357492A CN201310135749A CN103237070A CN 103237070 A CN103237070 A CN 103237070A CN 2013101357492 A CN2013101357492 A CN 2013101357492A CN 201310135749 A CN201310135749 A CN 201310135749A CN 103237070 A CN103237070 A CN 103237070A
- Authority
- CN
- China
- Prior art keywords
- instruction set
- portable terminal
- controlled vehicle
- electrical unit
- communication
- 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
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention discloses a method for data communication between a mobile terminal and a vehicle-mounted electric control unit. The method comprises the following steps that S1, an instruction set used for controlling the communication of diagnosis equipment and the vehicle-mounted electric control unit is made; S2, the mobile terminal is communicated with the diagnosis equipment through the communication instruction set; and S3, the diagnosis equipment is communicated with the vehicle-mounted electric control unit through the communication instruction set. The instruction set starts from hexadecimal 0x55 and 0xAA of starting marks, meanwhile, the target address and the source address byte are supplemented, and instructions are enabled to be sent by determined equipment and to be received by determined equipment. The method has the advantages that through the management between the mobile terminal and the electric control unit, the accurate distinguishing on the equipment type is realized, and the equipment is enabled to be authorized and have the compatibility, so the integrality and the correctness of communication data are ensured.
Description
Technical field
The present invention relates to the automobile electronic control unit communication technology, what be specifically related to is data communications method between a kind of portable terminal and the controlled vehicle-mounted electrical unit.
Background technology
Along with popularizing fast and development of automobile, the effect of automobile in people's life is also more and more important, automobile in use, vehicular equipment inevitably all various faults can occur, and need communicate by diagnostic device and automobile electronic control unit, in time vehicle failure got rid of or to be keeped in repair.
The design of automobile has at present more and more been adopted electronic technology with production, automatic technology and electronic computer technology, this makes that on the one hand the automaticity of automobile is more and more higher, performance is more superior, more convenient to operate flexible, and also maintenance and the detection of automobile are had higher requirement on the other hand, especially along with the development of communication equipment and communication protocol, increasing communication protocol appears on the vehicular equipment, when vehicle failure being carried out analyzing and testing and getting rid of, because the communication protocol difference that traditional communication mode adopts each other, adopting WAP (Wireless Application Protocol) such as the communication protocol between portable terminal (mobile phone) and the diagnostic device is WAP (wireless application protocol), what then adopt between diagnostic device and the automobile electronic control unit is OBD communication protocol, owing to can't communicate between the different communication protocol, therefore automobile electronic control unit can't be identified judgement to the legitimacy of portable terminal checkout equipment, thereby can't guarantee correctness and the integrality of communicating by letter, therefore traditional communication mode can not satisfy the needs of present vehicle failure detection communication.
Summary of the invention
For this reason, the object of the present invention is to provide the data communications method between a kind of portable terminal and the controlled vehicle-mounted electrical unit, can't carry out legitimacy identification to the portable terminal checkout equipment and judge to solve present communication mode, and the problem of can't guarantee to communicate by letter correctness and integrality.
The objective of the invention is to be achieved through the following technical solutions.
Data communications method between a kind of portable terminal and the controlled vehicle-mounted electrical unit may further comprise the steps:
S1, formulation are for controlling the instruction set that diagnostic device and controlled vehicle-mounted electrical unit communication are used;
Described instruction set includes beginning flag, destination address, source address, packet length, counter, command word and bag verification, and this instruction set is with the hexadecimal 0x55 of beginning flag, 0xAA begins, and be aided with destination address and source address byte, sent by the equipment of determining and received by the equipment of determining to guarantee instruction;
S2, portable terminal communicate by above-mentioned communication instruction collection and diagnostic device;
S3, diagnostic device communicate by above-mentioned communication instruction collection and controlled vehicle-mounted electrical unit.
Preferably, described instruction set also includes the data field, and described data field is the random length byte.
Preferably, the beginning flag in the described instruction set comprises two bytes, is 0x55 and 0xAA.
Preferably, the destination address in the described instruction set is the unique address that needs to arrive after current frame data sends in the network.
Preferably, the source address in the described instruction set is the unique address of present frame transmitting apparatus in this network communication.
Preferably, the packet length in the described instruction set is two 16 system numerals, and content is counter, command word, data field three partial data length sums.
Preferably, counter in the described instruction set is byte circulation numeral, when asking from the main end of end response, use the counter number identical with main end, main end is finished the communication back at every turn the counter byte is added up, when communication failure, main end can carry out repetitive requests with identical counter byte and obtain the action that need not to re-execute from end main end instruction from holding former processing result.
Preferably, the command word in the described instruction set has 2 bytes, is divided into function of tonic chord command word and subfunction command word.
Preferably, the bag verification in the described instruction set is used for destination address, source address, packet length, counter, command word, data field part are carried out XOR by byte, and deposits operation result in bag check byte place.
The present invention compared with prior art, beneficial effect is: the data communications method between portable terminal provided by the invention and the controlled vehicle-mounted electrical unit, hexadecimal 0x55 by the beginning flag in the instruction set, 0xAA begins, be aided with destination address and source address byte simultaneously, sent by the equipment of determining and received by the equipment of determining to guarantee instruction.The present invention, guarantees equipment through mandate and has compatibility, thereby guarantee integrality and the correctness of communication data to realize accurately distinguishing device type by to managing between portable terminal and the ECU (Electrical Control Unit).
Description of drawings
Fig. 1 is the communication scheme between portable terminal of the present invention, diagnostic device and the controlled vehicle-mounted electrical unit.
Fig. 2 is operation principle flow chart of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
See also Fig. 1, shown in Figure 2, Fig. 1 is the communication scheme between portable terminal of the present invention, diagnostic device and the controlled vehicle-mounted electrical unit; Fig. 2 is operation principle flow chart of the present invention.The present invention is to provide the data communications method between a kind of portable terminal and the controlled vehicle-mounted electrical unit, be used for the data communication between portable terminal and the vehicular equipment, it has solved present communication mode and can't carry out legitimacy identification to the portable terminal checkout equipment and judge, and the problem of can't guarantee to communicate by letter correctness and integrality; Realized accurate differentiation device type, guaranteed equipment through mandate and have compatibility, thereby guarantee integrality and the correctness of communication data.
Portable terminal, diagnostic device and vehicle electronics control unit have wherein been the present invention includes, and between mobile terminal host and the diagnostic device, all adopt mode of the present invention to communicate between diagnostic device and the vehicle electronics control unit, adopt communication instruction collection of the present invention.
The present invention specifically adopts following steps:
S1, formulation are for controlling the instruction set that diagnostic device and controlled vehicle-mounted electrical unit communication are used;
Wherein said instruction set includes beginning flag, destination address, source address, packet length, counter, command word, bag verification and data field, and this instruction set is with the hexadecimal 0x55 of beginning flag, 0xAA begins, and be aided with destination address and source address byte, sent by the equipment of determining and received by the equipment of determining to guarantee instruction, distributed 0xF0 as its address for current mobile unit, mobile terminal device distributes 0xF8 as its address, and remains with the newly added equipment allocation space;
Need to prove that every instruction here all contains beginning flag, destination address, source address, packet length, counter, command word and bag verification, may contain the data field, and the data field may or not exist for some length according to the difference of command word, and the each several part content is sent successively according to named order.
Packet length is two 16 system numerals, and content is counter+command word+data field three partial data length sums; Counter is byte circulation numeral, when asking from the main end of end response, use the counter number identical with main end, main end is finished the communication back at every turn the counter byte is added up, and master's end can carry out repetitive requests with identical counter byte and obtains the action that need not to re-execute from end main end instruction from holding former processing result when communication failure; Command word is according to the main command word of product function appointment and secondary command word; Destination address is the unique address that needs to arrive after current frame data sends in the network; Source address is the unique address of present frame transmitting apparatus in this network communication.
The bag verification is byte, and destination address+source address+packet length+counter+parts such as command word+data field are carried out XOR by byte, and deposits operation result in bag check byte place.
S2, portable terminal communicate by above-mentioned communication instruction collection and diagnostic device;
S3, diagnostic device communicate by above-mentioned communication instruction collection and controlled vehicle-mounted electrical unit.
Vehicular equipment communication instruction collection described in the present invention, be used for communicating by letter between mobile terminal host and the vehicular equipment, this instruction set can effectively manage mobile unit and the portable terminal that uses this instruction set, use this instruction set, type and the instruction type of equipment be can distinguish accurately, and the legitimacy of identification equipment and correctness and the integrality that guarantees communication guaranteed.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (8)
1. the data communications method between a portable terminal and the controlled vehicle-mounted electrical unit is characterized in that, may further comprise the steps:
S1, formulation are for controlling the instruction set that diagnostic device and controlled vehicle-mounted electrical unit communication are used;
Described instruction set includes beginning flag, destination address, source address, packet length, counter, command word and bag verification, described instruction set is with the hexadecimal 0x55 of beginning flag, 0xAA begins, and be aided with destination address and source address byte, sent by the equipment of determining and received by the equipment of determining to guarantee instruction;
S2, portable terminal communicate by above-mentioned communication instruction collection and diagnostic device;
S3, diagnostic device communicate by above-mentioned communication instruction collection and controlled vehicle-mounted electrical unit.
2. the data communications method between portable terminal according to claim 1 and the controlled vehicle-mounted electrical unit it is characterized in that described instruction set also includes the data field, and described data field is the random length byte.
3. the data communications method between portable terminal according to claim 1 and 2 and the controlled vehicle-mounted electrical unit is characterized in that the destination address in the described instruction set is the unique address that needs to arrive after current frame data sends in the network.
4. the data communications method between portable terminal according to claim 1 and 2 and the controlled vehicle-mounted electrical unit is characterized in that the source address in the described instruction set is the unique address of present frame transmitting apparatus in this network communication.
5. the data communications method between portable terminal according to claim 1 and 2 and the controlled vehicle-mounted electrical unit, it is characterized in that packet length in the described instruction set by two 16 system numerals, described packet length is counter, command word, data field three partial data length sums.
6. the data communications method between portable terminal according to claim 1 and 2 and the controlled vehicle-mounted electrical unit, it is characterized in that the counter in the described instruction set is byte circulation numeral, when asking from the main end of end response, use the counter number identical with main end, main end is finished the communication back at every turn the counter byte is added up, when communication failure, main end can carry out repetitive requests with identical counter byte and obtain the action that need not to re-execute from end main end instruction from holding former processing result.
7. the data communications method between portable terminal according to claim 1 and 2 and the controlled vehicle-mounted electrical unit is characterized in that the command word in the described instruction set has 2 bytes, is divided into function of tonic chord command word and subfunction command word.
8. the data communications method between portable terminal according to claim 1 and 2 and the controlled vehicle-mounted electrical unit, it is characterized in that the bag verification in the described instruction set is used for destination address, source address, packet length, counter, command word, data field part are carried out XOR by byte, and deposit operation result in bag check byte place.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101357492A CN103237070A (en) | 2013-04-16 | 2013-04-16 | Method for data communication between mobile terminal and vehicle-mounted electric control unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101357492A CN103237070A (en) | 2013-04-16 | 2013-04-16 | Method for data communication between mobile terminal and vehicle-mounted electric control unit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103237070A true CN103237070A (en) | 2013-08-07 |
Family
ID=48885086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013101357492A Pending CN103237070A (en) | 2013-04-16 | 2013-04-16 | Method for data communication between mobile terminal and vehicle-mounted electric control unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103237070A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103439942A (en) * | 2013-08-23 | 2013-12-11 | 深圳市元征科技股份有限公司 | Vehicle trunk control method |
CN106900078A (en) * | 2015-12-18 | 2017-06-27 | 北京奇虎科技有限公司 | A kind of many chassis network-building methods and intelligent vehicle based on mobile terminal |
CN113254376A (en) * | 2021-06-09 | 2021-08-13 | 广州朗国电子科技有限公司 | Processing method, system, equipment and storage medium for all-in-one machine compatible centralized control instruction |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040228339A1 (en) * | 2000-01-07 | 2004-11-18 | Gallo Anthony Matteo | Method and system for frame and protocol classification |
CN101272427A (en) * | 2007-03-23 | 2008-09-24 | 于京诺 | Vehicle detecting and maintaining intelligent control device |
CN101977275A (en) * | 2010-08-27 | 2011-02-16 | 深圳市汇通世纪移动科技有限公司 | Method for obtaining on-board computer data by mobile communication terminal and mobile terminal thereof |
US20120137282A1 (en) * | 2004-06-08 | 2012-05-31 | Covia Labs, Inc. | System method and model for social synchronization interoperability among intermittently connected interoperating devices |
CN102761391A (en) * | 2012-06-29 | 2012-10-31 | 威海海特电子信息技术有限公司 | Oil field Internet of things system communication method |
CN102945044A (en) * | 2012-11-14 | 2013-02-27 | 深圳市元征科技股份有限公司 | Standard diagnosis method based on professional diagnosis |
CN103023761A (en) * | 2011-09-22 | 2013-04-03 | 海尔集团公司 | Gateway device, intelligent internet of things system and hybrid access method of system |
-
2013
- 2013-04-16 CN CN2013101357492A patent/CN103237070A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040228339A1 (en) * | 2000-01-07 | 2004-11-18 | Gallo Anthony Matteo | Method and system for frame and protocol classification |
US20120137282A1 (en) * | 2004-06-08 | 2012-05-31 | Covia Labs, Inc. | System method and model for social synchronization interoperability among intermittently connected interoperating devices |
CN101272427A (en) * | 2007-03-23 | 2008-09-24 | 于京诺 | Vehicle detecting and maintaining intelligent control device |
CN101977275A (en) * | 2010-08-27 | 2011-02-16 | 深圳市汇通世纪移动科技有限公司 | Method for obtaining on-board computer data by mobile communication terminal and mobile terminal thereof |
CN103023761A (en) * | 2011-09-22 | 2013-04-03 | 海尔集团公司 | Gateway device, intelligent internet of things system and hybrid access method of system |
CN102761391A (en) * | 2012-06-29 | 2012-10-31 | 威海海特电子信息技术有限公司 | Oil field Internet of things system communication method |
CN102945044A (en) * | 2012-11-14 | 2013-02-27 | 深圳市元征科技股份有限公司 | Standard diagnosis method based on professional diagnosis |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103439942A (en) * | 2013-08-23 | 2013-12-11 | 深圳市元征科技股份有限公司 | Vehicle trunk control method |
CN106900078A (en) * | 2015-12-18 | 2017-06-27 | 北京奇虎科技有限公司 | A kind of many chassis network-building methods and intelligent vehicle based on mobile terminal |
CN113254376A (en) * | 2021-06-09 | 2021-08-13 | 广州朗国电子科技有限公司 | Processing method, system, equipment and storage medium for all-in-one machine compatible centralized control instruction |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106878124A (en) | Method and vehicle control device for controlling Large Copacity deagnostic communication in vehicle | |
CN103345243A (en) | Method and device for brushing vehicle electronic control unit program | |
CN109002820A (en) | A kind of licence plate recognition method, device and relevant device | |
CN204578526U (en) | A kind of car-mounted terminal | |
CN109194736A (en) | Message De-weight method, device, electronic equipment, medium and unmanned vehicle | |
CN106017514B (en) | A kind of air conditioning charging system | |
CN109240971A (en) | Communication means, apparatus and system | |
CN109636424A (en) | A kind of management method and relevant device of information of vehicles | |
CN107071036A (en) | A kind of method, the webserver and system for downloading driving file | |
CN103237070A (en) | Method for data communication between mobile terminal and vehicle-mounted electric control unit | |
CN106872996A (en) | The optimization method of alignment system performance, device and mobile terminal | |
US20220301046A1 (en) | Method for Information Processing and Electronic Device | |
CN106487630A (en) | A kind of method and apparatus that vehicle safety is detected based on test case | |
CN104965745B (en) | Air-conditioner system program renewing device and method | |
CN107147719A (en) | A kind of hardware update method, master node, slave node and server cluster | |
CN109286689A (en) | A kind of method for sending information, device and vehicle-mounted people-car interaction terminal | |
CN109218149A (en) | Equipment cut-in method, device, network system and gateway | |
CN102710479A (en) | Automobile gateway system for inverse resolution of communication protocols | |
CN105599709B (en) | Safety device and method for automotive bus system | |
CN109377662A (en) | Charging pile control method, device and electronic equipment | |
CN104253727A (en) | Diagnosis method and system of vehicle LIN (local interconnect network) | |
US11449323B2 (en) | Automated identification of generic module location per electrical signatures | |
CN203086501U (en) | Acquisition and analyzing device for vehicle bus information | |
US9794197B2 (en) | Method and apparatus for transmitting can frame | |
TW201714151A (en) | Vehicle identifier matching method utilizes function values to show corresponding degree between two types of identifiers and establish two types of identifier corresponding tables among plural articles |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130807 |
|
RJ01 | Rejection of invention patent application after publication |