CN105700509B - Car-mounted terminal detection method and device based on CAN - Google Patents

Car-mounted terminal detection method and device based on CAN Download PDF

Info

Publication number
CN105700509B
CN105700509B CN201410709129.XA CN201410709129A CN105700509B CN 105700509 B CN105700509 B CN 105700509B CN 201410709129 A CN201410709129 A CN 201410709129A CN 105700509 B CN105700509 B CN 105700509B
Authority
CN
China
Prior art keywords
car
mounted terminal
detection device
message
checking information
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.)
Active
Application number
CN201410709129.XA
Other languages
Chinese (zh)
Other versions
CN105700509A (en
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.)
ULTRAPOWER INTERNATIONAL TECHNOLOGY DEVELOPMENT(BEIJING) Co Ltd
Original Assignee
ULTRAPOWER INTERNATIONAL TECHNOLOGY DEVELOPMENT(BEIJING) Co 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 ULTRAPOWER INTERNATIONAL TECHNOLOGY DEVELOPMENT(BEIJING) Co Ltd filed Critical ULTRAPOWER INTERNATIONAL TECHNOLOGY DEVELOPMENT(BEIJING) Co Ltd
Priority to CN201410709129.XA priority Critical patent/CN105700509B/en
Publication of CN105700509A publication Critical patent/CN105700509A/en
Application granted granted Critical
Publication of CN105700509B publication Critical patent/CN105700509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of car-mounted terminal detection method and device based on CAN, after car-mounted terminal receives the request message that detection device is sent by CAN, parsing obtains the data type for the data that detection device request obtains.Then, data corresponding to data type are obtained, and detection device is sent to by CAN, so as to the data that detection device analysis obtains, obtain the running status or fault message of car-mounted terminal.The status data that car-mounted terminal is obtained by detection device can be realized using this method, and analyzes the status data and obtains the operation conditions of car-mounted terminal.Especially when car-mounted terminal breaks down, it can analyze to obtain the fault message and failure cause of car-mounted terminal, so as to facilitate user or maintenance personal to safeguard car-mounted terminal, without the fault message of car-mounted terminal could be obtained after return manufacturer, the maintenance efficiency of car-mounted terminal is improved, and reduces the maintenance cost of car-mounted terminal.

Description

Car-mounted terminal detection method and device based on CAN
Technical field
The present invention relates to car-mounted terminal technical field, more particularly to a kind of car-mounted terminal detection side based on CAN Method and device.
Background technology
Car-mounted terminal is typically mounted on inside electric automobile, is responsible for the information such as running status of detection electric automobile in real time, And the information monitored is uploaded into supervision and management center, monitored by supervision and management center and ensure the safety fortune of electric automobile OK.Between other electronic-controlled installations in car-mounted terminal and electric automobile by CAN (Controller Area Network, Controller LAN) bus communication.
If car-mounted terminal breaks down, supervision and management center will be unable to be monitored electric automobile.In the prior art When car-mounted terminal breaks down, car-mounted terminal can only be retracted manufacturer and be handled, maintenance personal or user can not be automatic Know the failure situation of car-mounted terminal.Therefore, a kind of event that maintenance personal or user can be made to diagnose car-mounted terminal automatically is needed badly The method of barrier or running status.
The content of the invention
A kind of car-mounted terminal detection method and device based on CAN are provided in the embodiment of the present invention, to realize inspection The information such as the running status of measuring car mounted terminal.
In order to realize foregoing invention purpose, the embodiment of the invention discloses following technical scheme:
In a first aspect, the present invention provides a kind of car-mounted terminal detection method based on CAN, applied to car-mounted terminal, Methods described includes:
The request message of detection device transmission is received by CAN;
The request message is parsed, obtains the data type for the data that request obtains, the data type comprises at least shape State type and fault type;
From the status data of the car-mounted terminal of record, status data corresponding to the data type is obtained;
The status data is sent to by the detection device by CAN, so that the detection device is according to Status data analyzes the state of the car-mounted terminal.
Alternatively, methods described also includes:
Receive the connection request message that the detection device is sent;
First checking information is returned to the detection device according to the connection request message, so that the detection device root The first authentication secret is obtained according to first checking information;
Second authentication secret is obtained according to first checking information;
When it is determined that first authentication secret and second authentication secret the match is successful when, sent to the detection device Connection message is confirmed, so that the detection device establishes the detection device and the vehicle-mounted end according to the confirmation connection message Communication link between end.
Alternatively, methods described also includes:
After establishing communication link between the car-mounted terminal and the detection device, start timing, until receiving When stating the request message of detection device transmission, terminate timing;
If in the period for reaching the first preset duration to timing duration from beginning timing, the detection device is not received The request message of transmission, disconnect the communication link between the car-mounted terminal and the detection device.
Alternatively, methods described also includes:
When receiving the mode switch request message that the detection device is sent, from the mode switch request message Obtain the second checking information;
Second checking information is matched with the 3rd checking information of the car-mounted terminal memory storage;
If second checking information is with the 3rd checking information, the match is successful, and the car-mounted terminal is switched into parameter Setting pattern, and pattern switching success message is returned to the detection device, so that the detection device is cut according to the pattern Change success message and send parameter setting message to the car-mounted terminal;
Corresponding parameter is set according to the parameter setting message, and is returned to the detection device and success message is set.
Alternatively, methods described also includes:If second checking information is with the 3rd checking information, it fails to match, It fails to match message is sent to the detection device.
Second aspect, the present invention provides a kind of car-mounted terminal detection means based on CAN, applied to car-mounted terminal It is interior, it is characterised in that described device includes:
First receiving unit, for receiving the request message of detection device transmission by CAN;
Resolution unit, for parsing the request message, obtain the data type for the data that request obtains, the data class Type comprises at least Status Type and fault type;
First acquisition unit, for from the status data of the car-mounted terminal of record, obtaining corresponding to the data type Status data;
First transmitting element, for the status data to be sent into the detection device by CAN, so that described Detection device analyzes the state of the car-mounted terminal according to the status data.
Alternatively, described device also includes:
Second receiving unit, the connection request message sent for receiving the detection device;
Second transmitting element, for returning to the first checking information to the detection device according to the connection request message, So that the detection device obtains the first authentication secret according to first checking information;
Second acquisition unit, for obtaining the second authentication secret according to first checking information;
3rd transmitting element, for when it is determined that first authentication secret and second authentication secret the match is successful when, Sent to the detection device and confirm connection message, so that the detection device establishes the inspection according to the confirmation connection message Communication link between measurement equipment and the car-mounted terminal.
Alternatively, described device also includes:
Timing unit, after establishing communication link between the car-mounted terminal and the detection device, start timing, When receiving the request message that the detection device is sent, terminate timing;
Switching units, if for from start timing reach the first preset duration to timing duration period in, do not receive To the detection device send request message when, disconnect the communication link between the car-mounted terminal and the detection device.
Alternatively, described device also includes:
3rd acquiring unit, for when receiving the mode switch request message that the detection device is sent, from described The second checking information is obtained in mode switch request message;
Matching unit, for the 3rd checking information of second checking information and the car-mounted terminal memory storage to be carried out Matching;
Switch unit, will be described vehicle-mounted if the match is successful with the 3rd checking information for second checking information Terminal switches to parameter setting mode;
4th transmitting element, for returning to pattern switching success message to the detection device, so that the detection device Parameter setting message is sent to the car-mounted terminal according to the pattern switching success message;
Setting unit, for setting corresponding parameter according to the parameter setting message, and returned to the detection device Success message is set.
Alternatively, described device also includes:
5th transmitting element, for when it fails to match for second checking information and the 3rd checking information, to institute State detection device and send it fails to match message.
From above technical scheme, the car-mounted terminal detection method provided in an embodiment of the present invention based on CAN, lead to The status data of oneself is sent to detection device by the communication crossed between detection device and car-mounted terminal, car-mounted terminal.Specifically, After car-mounted terminal receives the request message that detection device is sent by CAN, parse the request message and obtain detection and set The data type corresponding to data that standby request obtains.Then, from the status data of the car-mounted terminal of record, data class is obtained Data corresponding to type, and detection device is sent to by CAN, so that detection device analyzes the data of car-mounted terminal return, Obtain the running status or fault message of car-mounted terminal.Using the above method, realize and car-mounted terminal is obtained by detection device Status data, and analyze the status data and obtain the operation conditions of car-mounted terminal, can especially when car-mounted terminal breaks down Analyzed to obtain the fault message of car-mounted terminal and failure cause according to the status data of acquisition, so as to facilitate user or maintenance personal Car-mounted terminal is safeguarded, without the fault message of car-mounted terminal could be obtained after return manufacturer, improves vehicle-mounted end The maintenance efficiency at end, and reduce the maintenance cost of car-mounted terminal.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the car-mounted terminal detection method based on CAN of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of car-mounted terminal detection method of the another kind of the embodiment of the present invention based on CAN;
Fig. 3 is the schematic flow sheet of another car-mounted terminal detection method based on CAN of the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another car-mounted terminal detection method based on CAN of the embodiment of the present invention;
Fig. 5 is a kind of structural representation of the car-mounted terminal detection means based on CAN of the embodiment of the present invention;
Fig. 6 is the structural representation of car-mounted terminal detection means of the another kind of the embodiment of the present invention based on CAN;
Fig. 7 is the structural representation of another car-mounted terminal detection means based on CAN of the embodiment of the present invention;
Fig. 8 is the structural representation of another car-mounted terminal detection means based on CAN of the embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the present invention, below in conjunction with of the invention real The accompanying drawing in example is applied, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described implementation Example only part of the embodiment of the present invention, rather than whole embodiments.It is common based on the embodiment in the present invention, this area The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to protection of the present invention Scope.
Referring to Fig. 1, show for a kind of flow of the car-mounted terminal detection method based on CAN provided in an embodiment of the present invention It is intended to, this method is applied in car-mounted terminal, as shown in figure 1, methods described may comprise steps of:
S110, car-mounted terminal receive the request message of detection device transmission by CAN.
The detection device can be automobile fault diagnostic apparatus, for that can read vapour rapidly using automobile fault diagnostic apparatus Fault message in the electronic control system of car, and show fault message so that user find out rapidly failure position and Reason.
, can be by CAN to vehicle-mounted end when detection device checks the running status or failure situation of car-mounted terminal End sends request message.
In one embodiment of the invention, when producing car-mounted terminal, just car-mounted terminal and detection device are used Communication protocol determine.When car-mounted terminal and detection device are communicated, the communication of the hardware aspect of detection device is joined Number is arranged to identical with car-mounted terminal.
Car-mounted terminal can be set before being communicated with detection device with detection in another embodiment of the present invention It is standby to consult to determine communication protocol.So as to expand the scope of application of car-mounted terminal.
It should be noted that the data interaction between car-mounted terminal and detection device is transmitted by CAN.
S120, car-mounted terminal parse the request message, obtain the data type for the status data that request obtains.
The data type comprises at least running status type and fault type.
After car-mounted terminal receives the request message of detection device transmission, parse the request message and obtain detection device request The type of the data of acquisition.Wherein, data type includes Status Type and fault type.The data of Status Type are car-mounted terminals Running state data;The data of fault type are the fault information datas that car-mounted terminal breaks down.
The fault type of car-mounted terminal can include but is not limited to:VIN (Vehicle Identification are not matched Number, vehicle identification code), do not receive VIN codes, overvoltage, it is under-voltage, lost with multimedia communicate, lost with detection device it is logical Letter, communication and BMS (Battery are lost with BCM (unit-Body Control Module, car body control module) Management System, battery management system) lose communication, battery temperature is too high, battery temperature is too low, battery life is former Barrier, information storage failure etc..
S130, car-mounted terminal obtain shape corresponding to the data type from the status data of the car-mounted terminal of record State data.
Car-mounted terminal needs to record the status data of oneself in real time, and the type of the status data comprises at least above-mentioned data Type.For example, running state data and fault message.So, after the request message of detection device is received, obtain corresponding Data.
S140, the status data is sent to the detection device by car-mounted terminal by CAN, so that the detection Equipment analyzes the state of the car-mounted terminal according to the status data.
After car-mounted terminal obtains the corresponding data of data type that acquisition is asked with request message, pass through CAN It is sent to detection device.
Detection device analyzes the running state data of car-mounted terminal, can obtain the running status of car-mounted terminal;Detection is set Back-up analyses the fault information data of car-mounted terminal, can obtain the fault type and failure cause of car-mounted terminal.
The car-mounted terminal detection method based on CAN that the present embodiment provides, by detection device and car-mounted terminal it Between communication, the status data of oneself is sent to detection device by car-mounted terminal.Specifically, car-mounted terminal receives detection device After the request message sent by CAN, parse the request message and obtain the data for the data that detection device request obtains Type.Then, from the status data of the car-mounted terminal of record, data corresponding to data type are obtained, and send out by CAN Detection device is given, so as to the data that detection device analysis car-mounted terminal returns, obtains the running status or failure of car-mounted terminal Information.Using the above method, the status data that car-mounted terminal is obtained by detection device is realized, and analyze the status data and obtain The operation conditions of car-mounted terminal, especially when car-mounted terminal breaks down, it can analyze to obtain car according to the status data of acquisition The fault message and failure cause of mounted terminal, so as to facilitate user or maintenance personal to safeguard car-mounted terminal, without returning The fault message of car-mounted terminal could be obtained after retrogradation business men, improves the maintenance efficiency of car-mounted terminal, and reduce vehicle-mounted The maintenance cost of terminal.
Fig. 2 is referred to, for the stream of another car-mounted terminal detection method based on CAN provided in an embodiment of the present invention Journey schematic diagram, this method is applied to enter oneself for the examination in the detecting system of car-mounted terminal and detection device, in car-mounted terminal and detection device Before carrying out data interaction, car-mounted terminal also needs to be attached detection device checking.
As shown in Fig. 2 methods described may comprise steps of:
S210, detection device send connection request message by CAN to car-mounted terminal.
Detection device illustrates by taking automobile fault diagnostic apparatus as an example in the present embodiment, is obtaining the status number of car-mounted terminal According to before, it is necessary to which the communication link established between automobile fault diagnostic apparatus and car-mounted terminal, car-mounted terminal are needed to vehicle failure Diagnostic equipment could establish communication link after being verified.Connection request message is used to ask car-mounted terminal and automobile fault diagnostic apparatus It is attached.
It should be noted that the data interaction between car-mounted terminal and detection device is transmitted by CAN.
S220, car-mounted terminal return to the first checking information according to the connection request message to the detection device.
Car-mounted terminal is received and sends the first checking information to automobile fault diagnostic apparatus after connection request message, and this first is tested Card information is used to make automobile fault diagnostic apparatus obtain authentication secret.
S230, detection device obtains the first authentication secret according to first checking information, and is sent to car-mounted terminal.
First checking information can be seed information, for example, three random data.Automobile fault diagnostic apparatus is tested according to first Simultaneously the first authentication secret is calculated using the cipher key calculation formula appointed with car-mounted terminal in card information, and is sent to vehicle-mounted end End.
S240, car-mounted terminal obtain the second authentication secret according to the first checking information.
The second authentication secret is calculated according to the first checking information in car-mounted terminal, wherein, used calculation formula is pre- First appointed with automobile fault diagnostic apparatus.
S250, car-mounted terminal judge whether the first authentication secret matches with the second authentication secret, if matching, is performed S260;Otherwise, S280 is performed.
Car-mounted terminal compares second that the first authentication secret that automobile fault diagnostic apparatus is calculated is calculated with oneself Whether authentication secret is identical;If identical, it is verified, communication link can be established with automobile fault diagnostic apparatus;Otherwise, test Card failure, is not connected with automobile fault diagnostic apparatus.
S260, car-mounted terminal is sent to detection device confirms connection message.
S270, detection device establish itself communication link between car-mounted terminal according to confirmation connection message.
After automobile fault diagnostic apparatus receives the confirmation connection message of car-mounted terminal transmission, car-mounted terminal and automobile event are established Hinder the communication link between diagnostic equipment.Then, automobile fault diagnostic apparatus can be sent to car-mounted terminal by the communication link and be asked Seek message.
S280, car-mounted terminal send authentication failed message to detection device.
If car-mounted terminal authentication failed, authentication failed message is sent to automobile fault diagnostic apparatus, informs that vehicle failure is examined Disconnected instrument authentication failed, can not connect car-mounted terminal.
The car-mounted terminal detection method based on CAN that the present embodiment provides, between car-mounted terminal and detection device Establish before communication link, car-mounted terminal needs to verify the detection device for initiating connection request, after being proved to be successful, builds It is vertical that communication link is established between detection device and car-mounted terminal.Such a method can ensure car-mounted terminal data safety, not by Distort, and can avoid disturbing caused by miscellaneous equipment, communication security, height between guarantee car-mounted terminal and detection device Effect.
Fig. 3 is referred to, is the stream of another car-mounted terminal detection method based on CAN provided in an embodiment of the present invention Journey schematic diagram, this method can increase following steps on the basis of the method flow shown in Fig. 2:
S310, after establishing communication link between car-mounted terminal and detection device, start timing, until receiving the inspection During the request message that measurement equipment is sent, terminate timing.
Car-mounted terminal starts timing, if receiving after itself communication link between automobile fault diagnostic apparatus is established Terminate timing after the request message that automobile fault diagnostic apparatus is sent.
Timing course can start from scratch timing, in such cases, if before timing reaches the first preset duration, receive The request message that automobile fault diagnostic apparatus is sent, then terminate timing.
Can also countdown, before timing reaches 0, receive vehicle failure instrument transmission request message, then no longer count When.
S320, if reaching since timing to timing duration in the period of the first preset duration, the inspection is not received The request message that measurement equipment is sent, disconnects the communication link between the car-mounted terminal and the detection device.
In the period for reaching the first preset duration to timing since timing, automobile fault diagnostic apparatus hair is not received by Any message sent, then car-mounted terminal disconnect itself communication link between detection device.
The car-mounted terminal detection method based on CAN that the present embodiment provides, is being detected if car-mounted terminal detects Established between equipment and car-mounted terminal in the first preset duration after communication link and do not send any message to car-mounted terminal, then car Mounted terminal disconnects itself communication link between detection device, avoids the communication resource from wasting.
In the embodiment of the present invention, the request message transmitted by detection device can include data request information and set to ask The class of message two.When detection device is to car-mounted terminal sending mode handover request message, the car-mounted terminal based on CAN Detection method can also include method and step as shown in Figure 4.
As shown in figure 4, methods described can also comprise the following steps on the basis of embodiment illustrated in fig. 1:
S410, car-mounted terminal obtain the second checking information from the mode switch request message.
The second checking information is included in mode switch request message, the mode switch request message is parsed and obtains described the Two checking informations.
S420, car-mounted terminal are verified the 3rd checking information that second checking information stores with itself.If test Demonstrate,prove successfully, then perform S430;If authentication failed, perform S450.
Car-mounted terminal judges whether the 3rd checking information that the second checking information received stores with itself is identical, if phase Same then determination is proved to be successful.If the second checking information is different from the 3rd checking information, it is determined that authentication failed.
If second checking information is proved to be successful with the 3rd checking information, in S430, car-mounted terminal switches to Parameter setting mode, and pattern switching success message is returned to the detection device, so that the detection device is according to the mould Formula switches successfully message and sends parameter setting message to the car-mounted terminal.
S440, car-mounted terminal set corresponding parameter, and return to the detection device according to the parameter setting message Success message is set.
After detection device receives the pattern switching success message of detection device transmission, parameter setting is sent to car-mounted terminal Message, the parameter to be set, and the parameter numerical value to be set are included in the parameter setting message.Car-mounted terminal according to The parameter setting message, after corresponding parameter is set, is returned to detection device and success message is set.If setup failed, to Detection device returns to setup failed message.
Wherein, the parameter that can be set in car-mounted terminal by detection device includes eliminating the counter of failure, car plate letter The information such as breath, VIN codes, password.
S450, car-mounted terminal send authentication failed message to detection device.
The car-mounted terminal detection method based on CAN that the present embodiment provides, if detection device wants to set vehicle-mounted end Some parameters in end, then car-mounted terminal need to verify detection device, after being verified, detection device could be allowed to repair Change the parameter information of car-mounted terminal, so as to ensure the safe operation of car-mounted terminal, and ensure data in car-mounted terminal not by Malice is distorted.
The description of embodiment of the method more than, it is apparent to those skilled in the art that the present invention can Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware, but in many cases the former It is more preferably embodiment.Based on such understanding, technical scheme substantially makes tribute to prior art in other words The part offered can be embodied in the form of software product, and the computer software product is stored in a storage medium, bag Some instructions are included to so that a computer equipment (can be personal computer, server, or network equipment etc.) performs The all or part of step of each embodiment methods described of the present invention.And foregoing storage medium includes:Read-only storage (ROM), random access memory (RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Corresponding with embodiment of the method provided by the invention, present invention also offers the inspection of the car-mounted terminal based on CAN Survey device embodiment.
Referring to Fig. 5, show for a kind of structure of the car-mounted terminal detection means based on CAN provided in an embodiment of the present invention It is intended to, the device is applied in car-mounted terminal, as shown in figure 5, described device can include:First receiving unit 510, parsing are single Member 520, the transmitting element 540 of first acquisition unit 530 and first.
First receiving unit 510, for receiving the request message of detection device transmission by CAN.
Resolution unit 520, for parsing the request message, obtain the data type for the data that request obtains, the number Status Type and fault type are comprised at least according to type.
First acquisition unit 530, it is corresponding for from the status data of the car-mounted terminal of record, obtaining the data type Status data.
First transmitting element 540, for the status data to be sent into the detection device by CAN, so that The detection device analyzes the state of the car-mounted terminal according to the status data.
After car-mounted terminal detection means receives the request message that detection device is sent by CAN, parsing is described please Message is asked to obtain the data type for the data that detection device request obtains.Then, from the status data of the car-mounted terminal of record, Data corresponding to data type are obtained, and detection device is sent to by CAN, so that detection device analysis car-mounted terminal returns The data returned, obtain the running status or fault message of car-mounted terminal.Using the above method, realize and car is obtained by detection device The status data of mounted terminal, and analyze the status data and obtain the operation conditions of car-mounted terminal, especially when event occurs in car-mounted terminal During barrier, it can be analyzed to obtain the fault message of car-mounted terminal and failure cause according to the status data of acquisition, so as to facilitate user Or maintenance personal safeguards to car-mounted terminal, without the fault message of car-mounted terminal could be obtained after return manufacturer, carry The high maintenance efficiency of car-mounted terminal, and reduce the maintenance cost of car-mounted terminal.
Fig. 6 is referred to, is the structural representation of car-mounted terminal detection means of the another kind of the embodiment of the present invention based on CAN Figure, the device is applied in car-mounted terminal, as shown in fig. 6, described device can also wrap on the basis of embodiment illustrated in fig. 5 Include:Second receiving unit 610, the second transmitting element 620, the transmitting element 640 of second acquisition unit 630 and the 3rd.
Second receiving unit 610, the connection request message sent for receiving the detection device;
Second transmitting element 620, believe for returning to the first checking to the detection device according to the connection request message Breath, so that the detection device obtains the first authentication secret according to first checking information;
Second acquisition unit 630, for obtaining the second authentication secret according to first checking information;
3rd transmitting element 640, for the match is successful with second authentication secret when determining first authentication secret When, to the detection device send confirm connection message so that the detection device according to it is described confirmation connection message establish with Communication link between the car-mounted terminal.
The car-mounted terminal detection means based on CAN that the present embodiment provides, between car-mounted terminal and detection device Establish before communication link, car-mounted terminal needs to verify the detection device for initiating connection request, after being proved to be successful, builds It is vertical that communication link is established between detection device and car-mounted terminal.Such a method can ensure car-mounted terminal data safety, not by Distort, and can avoid disturbing caused by miscellaneous equipment, communication security, height between guarantee car-mounted terminal and detection device Effect.
Fig. 7 is referred to, shows the knot of another car-mounted terminal detection means based on CAN of the embodiment of the present invention Structure schematic diagram, the device is applied in car-mounted terminal, as shown in fig. 7, described device may be used also on the basis of embodiment illustrated in fig. 6 With including:Timing unit 710 and switching units 720.
Timing unit 710, for when establishing communication link between the car-mounted terminal and the detection device, starting to count When, the request message sent until receiving the detection device terminates timing;
Switching units 720, if in period for reaching the first preset duration to timing duration since timing, do not connect When receiving the request message that the detection device is sent, the communication chain between the car-mounted terminal and the detection device is disconnected Road.
The car-mounted terminal detection means based on CAN that the present embodiment provides, is being detected if car-mounted terminal detects Established between equipment and car-mounted terminal in the first preset duration after communication link and do not send any message to car-mounted terminal, then car Mounted terminal disconnects itself communication link between detection device, avoids the communication resource from wasting.
Fig. 8 is referred to, shows the knot of another car-mounted terminal detection means based on CAN of the embodiment of the present invention Structure schematic diagram, the device is applied in car-mounted terminal, as shown in figure 8, described device may be used also on the basis of embodiment illustrated in fig. 5 With including:3rd acquiring unit 810, matching unit 820, switch unit 830, the 4th transmitting element 840, the and of setting unit 850 5th transmitting element 860.
3rd acquiring unit 810, for when receiving the mode switch request message that the detection device is sent, from institute State and the second checking information is obtained in mode switch request message;
Matching unit 820, for second checking information to be matched with the 3rd checking information that itself is stored;
Switch unit 830, if the match is successful with the 3rd checking information for second checking information, by the car Mounted terminal switches to parameter setting mode;
4th transmitting element 840, for returning to pattern switching success message to the detection device, so that the detection is set It is standby that parameter setting message is sent to the car-mounted terminal according to the pattern switching success message;
Setting unit 850, for setting corresponding parameter according to the parameter setting message, and returned to the detection device Return and success message is set.
5th transmitting element 860, for when it fails to match for second checking information and the 3rd checking information, to The detection device sends authentication failed message.Now, car-mounted terminal will not be switched to Setting pattern, and detection device can not be set Parameter in car-mounted terminal, so as to ensure the safety of data in car-mounted terminal.
The car-mounted terminal detection means based on CAN that the present embodiment provides, if detection device wants to set vehicle-mounted end Some parameters in end, then car-mounted terminal need to verify detection device, after being verified, detection device could be allowed to repair Change the parameter information of car-mounted terminal, so as to ensure the safe operation of car-mounted terminal, and ensure data in car-mounted terminal not by Malice is distorted.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device or For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method The part explanation of embodiment.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit that separating component illustrates can be or may not be it is physically separate, can be as the part that unit is shown or Person may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can root Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill Personnel are without creative efforts, you can to understand and implement.
The present invention can be described in the general context of computer executable instructions, such as program Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these DCEs, by Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with In the local and remote computer-readable storage medium including storage device.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one Individual entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operate it Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to Cover including for nonexcludability, so that process, method, article or equipment including a series of elements not only include those Key element, but also the other element including being not expressly set out, or also include for this process, method, article or set Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element in the process including the key element, method, article or equipment also be present.
Described above is only the embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

  1. A kind of 1. car-mounted terminal detection method based on CAN, applied to car-mounted terminal, it is characterised in that methods described bag Include:
    The request message of detection device transmission is received by CAN;
    The request message is parsed, obtains the data type for the data that request obtains, the data type comprises at least state class Type and fault type;
    From the status data of the car-mounted terminal of record, status data corresponding to the data type is obtained;
    The status data is sent to by the detection device by CAN, so that the detection device is according to the state The state of car-mounted terminal described in data analysis.
  2. 2. according to the method for claim 1, it is characterised in that methods described also includes:
    Receive the connection request message that the detection device is sent;
    First checking information is returned to the detection device according to the connection request message, so that the detection device is according to institute State the first checking information and obtain the first authentication secret;
    Second authentication secret is obtained according to first checking information;
    When it is determined that first authentication secret and second authentication secret the match is successful when, send and confirm to the detection device Connection message so that the detection device according to the confirmation connection message establish the detection device and the car-mounted terminal it Between communication link.
  3. 3. according to the method for claim 2, it is characterised in that methods described also includes:
    After establishing communication link between the car-mounted terminal and the detection device, start timing, until receiving the inspection During the request message that measurement equipment is sent, terminate timing;
    If in the period for reaching the first preset duration to timing duration from beginning timing, the detection device is not received and is sent Request message, disconnect the communication link between the car-mounted terminal and the detection device.
  4. 4. according to the method for claim 1, it is characterised in that methods described also includes:
    When receiving the mode switch request message that the detection device is sent, obtained from the mode switch request message Second checking information;
    Second checking information is matched with the 3rd checking information of the car-mounted terminal memory storage;
    If second checking information is with the 3rd checking information, the match is successful, and the car-mounted terminal is switched into parameter setting Pattern, and to the detection device return pattern switching success message so that the detection device according to the pattern switching into Work(message sends parameter setting message to the car-mounted terminal;
    Corresponding parameter is set according to the parameter setting message, and is returned to the detection device and success message is set.
  5. 5. according to the method for claim 4, it is characterised in that methods described also includes:If second checking information with It fails to match for 3rd checking information, then sends it fails to match message to the detection device.
  6. A kind of 6. car-mounted terminal detection means based on CAN, applied in car-mounted terminal, it is characterised in that described device Including:
    First receiving unit, for receiving the request message of detection device transmission by CAN;
    Resolution unit, for parsing the request message, the data type for the data that request obtains is obtained, the data type is extremely Include Status Type and fault type less;
    First acquisition unit, for from the status data of the car-mounted terminal of record, obtaining state corresponding to the data type Data;
    First transmitting element, for the status data to be sent into the detection device by CAN, so that the detection Equipment analyzes the state of the car-mounted terminal according to the status data.
  7. 7. device according to claim 6, it is characterised in that described device also includes:
    Second receiving unit, the connection request message sent for receiving the detection device;
    Second transmitting element, for returning to the first checking information to the detection device according to the connection request message, so that The detection device obtains the first authentication secret according to first checking information;
    Second acquisition unit, for obtaining the second authentication secret according to first checking information;
    3rd transmitting element, for when it is determined that first authentication secret and second authentication secret the match is successful when, to institute State detection device and send and confirm connection message, set so that the detection device establishes the detection according to the confirmation connection message The standby communication link between the car-mounted terminal.
  8. 8. device according to claim 7, it is characterised in that described device also includes:
    Timing unit, after establishing communication link between the car-mounted terminal and the detection device, start timing, until When receiving the request message that the detection device is sent, terminate timing;
    Switching units, if for from start timing reach the first preset duration to timing duration period in, do not receive institute The request message of detection device transmission is stated, disconnects the communication link between the car-mounted terminal and the detection device.
  9. 9. device according to claim 6, it is characterised in that described device also includes:
    3rd acquiring unit, for when receiving the mode switch request message that the detection device is sent, from the pattern The second checking information is obtained in handover request message;
    A matching unit, for the 3rd checking information of second checking information and the car-mounted terminal memory storage to be carried out Match somebody with somebody;
    Switch unit, if the match is successful with the 3rd checking information for second checking information, by the car-mounted terminal Switch to parameter setting mode;
    4th transmitting element, for the detection device return pattern switching success message so that the detection device according to The pattern switching success message sends parameter setting message to the car-mounted terminal;
    Setting unit, for setting corresponding parameter according to the parameter setting message, and return and set to the detection device Success message.
  10. 10. device according to claim 9, it is characterised in that described device also includes:
    5th transmitting element, for when it fails to match for second checking information and the 3rd checking information, to the inspection Measurement equipment sends it fails to match message.
CN201410709129.XA 2014-11-28 2014-11-28 Car-mounted terminal detection method and device based on CAN Active CN105700509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410709129.XA CN105700509B (en) 2014-11-28 2014-11-28 Car-mounted terminal detection method and device based on CAN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410709129.XA CN105700509B (en) 2014-11-28 2014-11-28 Car-mounted terminal detection method and device based on CAN

Publications (2)

Publication Number Publication Date
CN105700509A CN105700509A (en) 2016-06-22
CN105700509B true CN105700509B (en) 2018-04-06

Family

ID=56231002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410709129.XA Active CN105700509B (en) 2014-11-28 2014-11-28 Car-mounted terminal detection method and device based on CAN

Country Status (1)

Country Link
CN (1) CN105700509B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059754A (en) * 2016-06-23 2016-10-26 北京汽车股份有限公司 Vehicle data processing method and system, and devices
CN107817786A (en) * 2017-11-09 2018-03-20 上汽通用五菱汽车股份有限公司 Vehicle off-line test method and system
CN110320049A (en) * 2018-03-28 2019-10-11 上海擎感智能科技有限公司 A kind of test equipment and test method of the setting of the certificate parameter in vehicle testing
CN108600224B (en) * 2018-04-25 2022-02-22 深圳市道通科技股份有限公司 Diagnostic device and method for secure access to a diagnostic device
CN108375974A (en) * 2018-05-21 2018-08-07 上海星融汽车科技有限公司 It is a kind of to be used to remotely record, analysis, diagnose, the method and system of maintenance vehicle failure
CN109150241A (en) * 2018-09-21 2019-01-04 武汉光庭信息技术股份有限公司 Communication means and device between a kind of single-chip microcontroller
RU2704720C1 (en) * 2018-10-11 2019-10-30 Общество с ограниченной ответственностью "Инжиниринговые Технологии" System and method of detecting unauthorized connected devices in a vehicle
CN110057594A (en) * 2019-04-26 2019-07-26 深圳市元征科技股份有限公司 Automotive diagnostic installation detection method, system, diagnostic clients end and computer media
CN110134571B (en) * 2019-05-22 2023-05-02 湃方科技(北京)有限责任公司 Method and device for monitoring health state of rotary mechanical equipment
CN110365453B (en) * 2019-06-18 2020-07-10 东风商用车有限公司 Self-adaptive calibration method of T-BOX for electric vehicle
CN112363104B (en) * 2020-12-07 2024-08-13 海南电网有限责任公司 Online calibrator for electric energy meter
CN113092130A (en) * 2021-03-31 2021-07-09 重庆长安新能源汽车科技有限公司 Method for simulating conformance test of electric automobile and vehicle-mounted terminal
CN115147956B (en) * 2022-06-29 2024-06-14 中国第一汽车股份有限公司 Data processing method, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1936994A (en) * 2005-12-01 2007-03-28 深圳市赛格导航科技股份有限公司 Information terminal for remote diagnosis of vehicle's fault and diagnosis method
CN102381267A (en) * 2011-08-17 2012-03-21 山东天海电装有限公司 Automobile controller area network (CAN) bus vehicle-mounted terminal
CN203894627U (en) * 2014-06-19 2014-10-22 佛山市天地行科技有限公司 Vehicle-mounted terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008146500A (en) * 2006-12-12 2008-06-26 Sueo Imamura Vehicle allocation system
JP6015541B2 (en) * 2013-04-22 2016-10-26 株式会社デンソー Vehicle diagnostic system, server and computer program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1936994A (en) * 2005-12-01 2007-03-28 深圳市赛格导航科技股份有限公司 Information terminal for remote diagnosis of vehicle's fault and diagnosis method
CN102381267A (en) * 2011-08-17 2012-03-21 山东天海电装有限公司 Automobile controller area network (CAN) bus vehicle-mounted terminal
CN203894627U (en) * 2014-06-19 2014-10-22 佛山市天地行科技有限公司 Vehicle-mounted terminal

Also Published As

Publication number Publication date
CN105700509A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105700509B (en) Car-mounted terminal detection method and device based on CAN
WO2015159520A1 (en) Vehicle-mounted network system, abnormality detection electronic control unit and abnormality detection method
CN109889512A (en) A kind of method for detecting abnormality and device of charging pile CAN message
CN103941240B (en) A kind of detection method of the extension set detecting device that communicates based on radar system
CN107505921B (en) Industrial equipment maintenance method and system
CN107490750A (en) Electric vehicle and its insulation detecting method, device and system
CN102591991A (en) Train data acquisition and management method and train data acquisition and management system
CN108599989B (en) MVB bus detection method and device
CN108297825B (en) VATS Vehicle Anti-Theft System, intelligent key system and anti-stealing method for vehicles
CN106564391A (en) High-voltage power battery contactor detection method and device, battery management system and automobile
CN104391244A (en) Closed loop test method of relay protection apparatus and system thereof
CN114113833A (en) Charging pile and charging pile line detection method and device
CN113434416A (en) Vehicle-mounted ATP system testing method and device
CN106161443A (en) A kind of monitoring method and device of game service
CN109733238A (en) Fault detection method, device, storage medium and processor
CN116133022A (en) Vehicle end data testing method and device and vehicle
CN108123935A (en) Circuit board detection method, device, storage medium and terminal
CN112298100A (en) Vehicle and vehicle control method and device
CN113434411A (en) TIAS function test method and system
CN104378246B (en) A kind of network equipment failure alignment system, method and device
CN112307647A (en) Charging pile communication interruption testing method and device, storage medium and processor
CN112134946A (en) Test method, device, storage medium, terminal and system of elevator Internet of things
CN109856474B (en) Test system of safe computing platform of subregion in medium speed magnetic levitation system
CN115776690A (en) Test device, system and method for vehicle-mounted encrypted network simulation test
CN106487456A (en) Communication test device, system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 502-1, 5th floor, building 2, No.10 yard, KEGU 1st Street, Daxing District, Beijing 100176

Patentee after: Singularity Xinyuan International Technology Development (Beijing) Co.,Ltd.

Address before: 100081, Beijing, Haidian District sorghum Bridge oblique Street No. 34, building 212, room 19

Patentee before: Singularity Xinyuan International Technology Development (Beijing) Co.,Ltd.