WO2021052474A1 - 一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备 - Google Patents

一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备 Download PDF

Info

Publication number
WO2021052474A1
WO2021052474A1 PCT/CN2020/116253 CN2020116253W WO2021052474A1 WO 2021052474 A1 WO2021052474 A1 WO 2021052474A1 CN 2020116253 W CN2020116253 W CN 2020116253W WO 2021052474 A1 WO2021052474 A1 WO 2021052474A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
controller
automobile
designated
pin group
Prior art date
Application number
PCT/CN2020/116253
Other languages
English (en)
French (fr)
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 EP20823716.4A priority Critical patent/EP3817301B1/en
Priority to US17/127,134 priority patent/US11973615B2/en
Publication of WO2021052474A1 publication Critical patent/WO2021052474A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/008Registering or indicating the working of vehicles communicating information to a remotely located station
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0808Diagnosing performance data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40019Details regarding a bus master
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C2205/00Indexing scheme relating to group G07C5/00
    • G07C2205/02Indexing scheme relating to group G07C5/00 using a vehicle scan tool
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Definitions

  • This application relates to the field of automobile technology, and in particular to a method and device for establishing communication between an automobile diagnostic equipment and a vehicle, and an automobile communication interface device.
  • CAN bus is used more and more widely in automobiles.
  • the diagnostic equipment diagnoses the car, it is usually necessary to allocate the CAN controller during the establishment of the channel connection. Since it may not be determined at this time which group of communication pin groups communicate with the car’s diagnostic interface, the hardware of the diagnostic equipment is designed At the time, you need to consider connecting each CAN controller to each group of communication pins freely.
  • the existing implementation method is to realize the free connection between the communication pins and the CAN controller through a switch (relay).
  • a switch for example, 4 CAN controllers can be freely switched to 4 groups of CAN communication pins. At this time, 12 switches are required.
  • this solution requires more switches when distributing CAN controllers when there are more CAN controllers and communication pins, resulting in more redundant wiring.
  • the purpose of the embodiments of the present invention is to provide a method, a device and a diagnostic device for establishing communication between an automobile diagnostic equipment and a vehicle, which can allocate CAN controllers simply and quickly.
  • an embodiment of the present invention provides a method for establishing communication between an automobile diagnostic device and a vehicle.
  • the method is applied to a vehicle communication interface device (VCI), and the vehicle communication interface device is used for Connecting the car diagnostic device with the vehicle, the car communication interface device includes at least two CAN controllers, at least two CAN transceivers, and a diagnostic interface, and the diagnostic interface includes at least two communication pin groups, one The CAN transceiver is respectively connected to a CAN controller and a set of communication pin groups, and the method includes:
  • the designated pin group is communicatively connected with the vehicle.
  • the method before the step of receiving the channel establishment instruction of the automobile diagnostic equipment, the method further includes:
  • the method before the step of receiving the designated communication pin group of the automobile diagnostic equipment, the method further includes:
  • the communication pin group in the diagnostic interface is traversed to obtain the designated communication pin group matching the identifier.
  • the method before the step of setting communication parameters for the CAN controller in the idle state, the method further includes:
  • the method further includes:
  • the CAN controller that has established a communication channel is adjusted to a use state.
  • the method further includes:
  • the automobile communication interface device further includes: at least two switches, the switches are arranged between the CAN transceiver and the diagnostic interface, and the method further includes:
  • the communication parameters include: baud rate and/or filter.
  • an embodiment of the present invention provides a device for establishing communication between a car diagnostic equipment and a vehicle, which is applied to a car communication interface device (VCI), and the car communication interface device is used to connect to the The vehicle diagnostic equipment and the vehicle, the vehicle communication interface equipment includes at least two CAN controllers, at least two CAN transceivers and a diagnostic interface, the diagnostic interface includes at least two communication pin groups, one CAN transceiver The device is respectively connected to a CAN controller and a set of communication pin groups, and the device includes:
  • the first determining module is configured to determine which of the at least two CAN controllers is in an idle state when a channel establishment instruction of the automobile diagnostic equipment is received;
  • the parameter setting module is used to set communication parameters for the CAN controller in the idle state
  • the second determining module is used to determine whether the CAN controller connected to the designated communication pin group is in an idle state when the designated communication pin group of the automobile diagnostic equipment is received;
  • the channel establishment module is used to establish the communication parameters of the CAN controller connected to the specified communication pin group when the CAN controller connected to the specified communication pin group is in an idle state.
  • a communication channel from the car diagnostic equipment to the designated pin group, so that the car diagnostic equipment communicates with the vehicle through the designated pin group.
  • the device further includes:
  • the third determining module is used to determine whether the vehicle diagnostic equipment has issued a channel establishment instruction
  • the initialization module is used to initialize the CAN controller in the idle state when it is determined that the vehicle diagnostic equipment has issued a channel establishment instruction.
  • the device further includes:
  • a receiving module configured to receive a designated instruction issued by the automobile diagnostic equipment, the designated instruction carrying the identification of the designated communication pin group;
  • the first obtaining module is configured to traverse the communication pin group in the diagnostic interface according to the identifier, and obtain the designated communication pin group that matches the identifier.
  • the device further includes:
  • the fourth determining module is used to determine whether the vehicle diagnostic equipment has issued the communication parameters of the CAN controller
  • the second acquisition module is configured to acquire the communication parameters when it is determined that the communication parameters of the CAN controller have been issued by the automobile diagnostic equipment;
  • the receiving module is further configured to receive a designated instruction issued by the automobile diagnostic equipment when it is determined that the automobile diagnostic equipment has not issued the communication parameters of the CAN controller.
  • the device further includes:
  • the adjustment module is used to adjust the CAN controller that has established a communication channel into a use state.
  • the device further includes:
  • the reset module is used to reset the CAN controller in the remaining idle state.
  • the automobile communication interface device further includes: at least two switches, the switches are arranged between the CAN transceiver and the diagnostic interface, and the device further includes:
  • a fifth determining module configured to determine whether the CAN controller is in use
  • a control module configured to control the switch to be turned on when it is determined that the CAN controller is in a use state
  • the control module is also used to control the switch to turn off when it is determined that the CAN controller is not in use.
  • the communication parameters include: baud rate and/or filter.
  • an automobile communication interface device including:
  • At least one processor and,
  • a memory communicatively connected with the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the method described in the first aspect above.
  • embodiments of the present invention also provide a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make a computer execute The method described in the first aspect above.
  • embodiments of the present invention also provide a computer program product.
  • the computer program product includes a computer program stored on a computer-readable storage medium.
  • the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method described in the first aspect above.
  • the beneficial effect of the present invention is: in the embodiment of the present invention, a method for establishing communication between an automobile diagnostic device and a vehicle is provided.
  • the method is applied to an automobile communication interface device, and the automobile communication interface device includes at least two A CAN controller, at least two CAN transceivers and a diagnostic interface, a CAN transceiver is connected to a CAN controller and a set of communication pin groups of the diagnostic interface, this method is when the channel establishment instruction of the car diagnostic equipment is received , Determine the CAN controller in the idle state among at least two CAN controllers, and then set the communication parameters for the CAN controller in the idle state.
  • the CAN controller connected to the communication pin group is in an idle state, if it is, the communication channel from the car diagnostic equipment to the specified pin group is established through the communication parameters in the CAN controller connected to the specified communication pin group to enable the car to diagnose
  • the device communicates with the vehicle through a designated pin group. This method does not need to set a switch between the CAN controller and the communication pin group, and can realize the simple and rapid distribution of the CAN controller.
  • FIG. 1 is a schematic diagram of an exemplary system structure of an embodiment of a method for establishing communication between an automobile diagnostic device and a vehicle provided by an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for establishing communication between an automobile diagnostic device and a vehicle according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another method for establishing communication between an automobile diagnostic device and a vehicle according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a device for establishing communication between an automobile diagnostic equipment and a vehicle provided by an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of another device for establishing communication between an automobile diagnostic equipment and a vehicle according to an embodiment of the present invention
  • Fig. 6 is a schematic diagram of the hardware structure of a diagnostic device provided by an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of an exemplary system structure of an embodiment of a method for establishing communication between an automobile diagnostic equipment and a vehicle according to the present invention.
  • the system structure includes: a vehicle communication interface (VCI) 10, a vehicle 20, and a vehicle diagnostic device 30.
  • the automobile communication interface device 10 is electrically connected to the vehicle 20.
  • the automobile communication interface device 10 is electrically connected to the automobile diagnosis interface of the vehicle 20 through the diagnosis interface 13 thereof.
  • the automobile communication interface device 10 is in communication connection with the automobile diagnostic device 30, and the communication connection may be a network connection, and may include various connection types, such as wired, wireless communication, or fiber optic cable.
  • the automobile communication interface device 10 includes a control unit MCU, at least two CAN controllers 11, at least two CAN transceivers 12, a diagnostic interface 13 and a communication interface 14.
  • the diagnostic interface 13 includes at least two communication pin groups, A CAN transceiver 12 is respectively connected to a CAN controller 11 and a set of the communication pin group, and the control unit MCU is respectively connected to the at least two CAN controllers 11, the diagnostic interface 13 and The communication interface 14 is connected.
  • the control unit MCU can exchange data with the CAN controller 11 and the diagnostic interface 13, the control unit MCU can obtain detection data of the vehicle 20 through the CAN controller 11, and the control unit MCU can The communication interface 14 uploads the diagnosis data to the automobile diagnosis device 30, and the control unit MCU can also obtain and execute the instructions issued by the automobile diagnosis device 30 through the communication interface 14.
  • the automobile communication interface device 10 is a non-disintegration inspection and testing mechanical device used to ascertain the technical condition of the vehicle 20 and draw a reliable conclusion, including but not limited to detecting the lights, brakes, sideslip, engine, and points of the vehicle 20 , Exhaust and/or noise, etc.
  • the method for establishing communication between the automobile diagnostic equipment and the vehicle is generally executed by the control unit MCU in the above-mentioned automobile communication interface device 10. Accordingly, the device for establishing communication between the automobile diagnostic equipment and the vehicle is generally performed by The control unit MCU in the automotive communication interface device 10 is implemented.
  • the automobile communication interface device 10 includes four CAN controllers: a CAN controller 11a, a CAN controller 11b, a CAN controller 11c, and a CAN controller 11d.
  • the communication interface device 10 includes four CAN transceivers: CAN transceiver 12a, CAN transceiver 12b, CAN transceiver 12c, and CAN transceiver 12d.
  • the diagnostic interface includes four communication pin groups: communication pins a1 and a2. Communication pins b1 and b2, communication pins c1 and c2, communication pins d1 and d2.
  • a CAN transceiver is correspondingly connected to a CAN controller through a transceiver fiber, the transceiver fiber includes a transmitting fiber Tx and a receiving fiber Rx, and a CAN transceiver corresponding to a group of the communication via a CAN bus Pin group connection.
  • the CAN transceiver 12a is respectively connected to the CAN controller 11a and the communication pins a1 and a2
  • the CAN transceiver 12b is respectively connected to the CAN controller 11b and the communication pins b1 and b2
  • the CAN transceiver 12c is respectively connected to the CAN controller.
  • 11c is connected to the communication pins c1 and c2
  • the CAN transceiver 12d is respectively connected to the CAN controller 11d and the communication pins d1 and d2.
  • each CAN controller is correspondingly connected to only one set of communication pins, and the following method of establishing communication between the automobile diagnostic device and the vehicle is used to ensure that each communication pin can be correct.
  • the corresponding CAN controller is allocated, and each CAN controller does not need to be connected to each group of communication pins through the same number of switches as the communication pin group. Therefore, the automobile communication interface device 10 provided by the embodiment of the present invention can be greatly reduced. Circuit board area, reduce the use of electronic components and material costs, reduce the power consumption/heat of diagnostic equipment, etc., while also shortening the time for physical wiring to establish a connection and increasing signal quality.
  • control unit MCU in the automobile communication interface device 10 receives the channel establishment instruction of the automobile diagnostic device, it determines the CAN controller in the idle state among the at least two CAN controllers, and then controls the CAN controller in the idle state.
  • the control unit MCU in the car communication interface device 10 determines whether the CAN controller connected to the designated communication pin group is in an idle state when receiving the designated communication pin group of the car diagnostic device. If yes, the communication channel from the car diagnostic equipment to the designated pin group is established through the communication parameters in the CAN controller connected to the designated communication pin group, so that the car diagnostic equipment communicates with the vehicle through the designated pin group.
  • the diagnostic device may further include: at least two switches, the switches are arranged between the CAN transceiver and the diagnostic interface, and the switches are connected to the CAN controller on the line where the switch is located. Disconnect when it is working, that is, when it is not in use, to cut off the connection between the CAN transceiver and the diagnostic interface on the line where it is located.
  • the vehicle 20 is a common power-driven vehicle in daily life.
  • the vehicle 20 is provided with a vehicle diagnostic interface, which is connected to the diagnostic interface 13 of the vehicle communication interface device 10, and is used to provide detection of various devices in the vehicle 20. , The technical status and/or test results of the device, module, system.
  • the automobile diagnostic device 30 is an electronic device installed with a diagnostic application and capable of running the diagnostic application.
  • the diagnostic application can issue a channel establishment instruction and communication parameters of the CAN controller to the automobile communication interface device 10.
  • the diagnosis application can also obtain the error information and diagnosis data reported by the automobile communication interface device 10. Therefore, the automobile diagnosis device 30 is an electronic device that can be communicatively connected with the automobile communication interface device 10.
  • it can be a diagnostic instrument, a mobile terminal, a tablet computer, etc., specifically, it can be selected according to actual needs, and does not need to be limited by the embodiment of the present invention.
  • the embodiment of the present invention provides a method for establishing communication between an automobile diagnostic device and a vehicle.
  • the method can be executed by the above-mentioned automobile communication interface device 10 (the control unit MCU in), and the automobile communication interface device is used to connect the automobile diagnosis device.
  • the device and the vehicle, and the automobile communication interface device includes at least two CAN controllers, at least two CAN transceivers, and a diagnostic interface.
  • the diagnostic interface includes at least two sets of communication pins, one for the CAN transceivers, respectively. It is connected with a CAN controller and a set of communication pin groups, please refer to FIG. 2, which shows a flow chart of a method for establishing communication between an automobile diagnostic equipment and a vehicle according to the above system architecture. The method includes but is not limited to the following steps:
  • Step 110 When receiving the channel establishment instruction of the automobile diagnostic equipment, determine the CAN controller in the idle state among the at least two CAN controllers.
  • the CAN controller in the idle state first, upon receiving the channel establishment instruction issued by the car diagnostic equipment, determine the CAN controller in the idle state among at least two CAN controllers, where the CAN controller in the idle state refers to The CAN control of communication has not been carried out yet, therefore, the CAN controller in the idle state can be used to establish a new communication channel.
  • Step 120 Set communication parameters for the CAN controller in the idle state.
  • the communication parameters are set for the CAN controller in the idle state to realize the preliminary setting of the communication channel.
  • the communication parameters include but are not limited to: baud rate and/or filter.
  • the CAN controller needs to set the communication parameters in advance before it can work. After the communication parameters of the CAN controller are preset, the CAN controller can filter the required data information, and perform data interaction at the preset data transmission rate. .
  • Step 130 When receiving the designated communication pin group of the automobile diagnostic equipment, determine whether the CAN controller connected to the designated communication pin group is in an idle state. If yes, skip to step 140; if not, report error information to the car diagnostic equipment.
  • the automobile diagnostic equipment as described above actively selects/designates the communication pin group for connection and communication with the automobile diagnostic interface of the vehicle. Further, upon receiving the designated communication pin group of the automobile diagnostic equipment, it is determined whether the CAN controller connected to the designated communication pin group is in an idle state. In the embodiment of the present invention, only the CAN controller in an idle state can be used to establish a new communication channel.
  • the CAN controller connected to the designated communication pin group is not in the idle state, there may be two situations.
  • One situation is that the CAN controller of the designated communication pin group is in the communication state, and the CAN controller is already open. Communication channel.
  • the car diagnostic equipment needs to determine whether the current vehicle data collected by the CAN controller is the data to be detected by the car diagnostic equipment. If it is, there is no need to establish a communication channel. If not, you can reset the CAN controller. Perform the above step 110 again.
  • Another situation is that the CAN controller is not in an idle state due to various reasons, for example, the CAN controller has been damaged. At this time, the diagnosis of the control unit in the automobile diagnostic equipment or the automobile communication interface device is also required. The problem with the CAN controller. For the above two situations that may occur, that is, when the CAN controller connected to the designated communication pin group is not in an idle state, it is necessary to report error information to the car diagnostic equipment, and the car diagnostic equipment will perform further work such as detection or diagnosis.
  • Step 140 Establish a communication channel from the car diagnostic device to the designated pin group through the communication parameters in the CAN controller connected to the designated communication pin group, so that the car diagnostic device can pass through the designated pin group.
  • the designated pin group is communicatively connected with the vehicle.
  • a communication channel is established according to the communication parameters, so that the data information of the vehicle can be transmitted to the CAN controller through the designated communication pin group, and the CAN control The device can control the data transmission rate of the communication channel. Then the CAN controller filters out the detection data needed by the car diagnostic equipment according to the communication parameter settings, and the control unit MCU uploads the data to the car diagnostic equipment through the communication interface.
  • the embodiment of the present invention provides a method for establishing communication between an automobile diagnostic device and a vehicle.
  • the method is applied to an automobile communication interface device.
  • the automobile communication interface device includes at least two CAN controllers, at least two CAN transceivers, and a diagnostic interface.
  • a CAN transceiver is respectively connected with a CAN controller and a set of communication pin groups of the diagnostic interface. This method determines that at least two CAN controllers in the idle state are in the idle state when the channel establishment instruction of the car diagnostic equipment is received. The controller then sets the communication parameters for the CAN controller in the idle state.
  • the CAN controller connected to the designated communication pin group is in the idle state, If yes, establish a communication channel from the car diagnostic equipment to the designated pin group through the communication parameters in the CAN controller connected to the designated communication pin group, so that the car diagnostic equipment communicates with the vehicle through the designated pin group.
  • This method does not It is necessary to set a switch between the CAN controller and the communication pin group, so that the CAN controller can be distributed simply and quickly.
  • FIG. 3 is a flowchart of another method for establishing communication between an automobile diagnostic device and a vehicle according to an embodiment of the present invention. Based on the method for establishing communication between an automobile diagnostic device and a vehicle shown in FIG. 2, Before step 110, the method further includes:
  • Step 111 Determine whether the vehicle diagnostic equipment has issued a channel establishment instruction. If yes, go to step 112; if no, go back to step 111.
  • Step 112 Initialize the CAN controller in the idle state.
  • the communication parameters for the CAN controller and the designated communication pin group for communication need to be acquired.
  • the application has issued a channel establishment instruction
  • the diagnostic application has issued a channel establishment instruction
  • the controller initially allocates the software resources of the CAN controller to make it enter the state of preparation.
  • the method further includes:
  • Step 131 Receive a designated instruction issued by the automobile diagnostic equipment, where the designated instruction carries the identification of the designated communication pin group.
  • Step 132 According to the identifier, traverse the communication pin group in the diagnostic interface to obtain the designated communication pin group that matches the identifier.
  • the car communication interface device Before acquiring the communication pin group for communication, acquires the designated instruction of the communication pin group issued by the car diagnostic device, and the designated instruction carries the identifier of the designated communication pin group.
  • the identifier is a unique identifier of each communication pin group, for example, the number of each communication pin group. Then, according to the identifier, traverse all communication pin groups in the diagnostic interface to obtain the communication pin group matching the identifier, for example, traverse the numbers of all communication pin groups in the diagnostic interface to obtain the communication with the same number as the identifier
  • the pin group can obtain the communication pin group used for communication.
  • the method further includes:
  • Step 121 Determine whether the vehicle diagnostic equipment has issued the communication parameters of the CAN controller. If yes, go to step 122; if not, go to step 131 above.
  • Step 122 Obtain the communication parameters.
  • the communication parameters include: baud rate and/or filter.
  • the communication parameters include: baud rate and/or filter.
  • the method further includes:
  • Step 150 Adjust the CAN controller that has established a communication channel into a use state.
  • Step 160 Reset the remaining CAN controllers in the idle state.
  • the CAN controller that has supervised the communication channel needs to be adjusted to the use state to avoid setting the CAN controller with the established communication channel as an idle state when a new communication channel needs to be established.
  • the CAN controller re-establishes the communication channel.
  • After adjusting the CAN controller with the communication channel established to the use state further, reset other CAN controllers in the idle state, that is, close the CAN controller except the CAN controller with the communication channel established, step 110
  • the CAN controller in the idle state as determined in to release software resources.
  • the reset CAN controller is initialized after waiting for the vehicle diagnostic equipment to issue the channel establishment instruction again.
  • the automobile communication interface device further includes: at least two switches, the switches are arranged between the CAN transceiver and the diagnostic interface, please continue to refer to FIG. 3, the method further includes:
  • Step 170 Determine whether the CAN controller is in use. If yes, skip to step 171; if not, skip to step 172.
  • Step 171 Control the switch to be turned on.
  • Step 172 Control the switch to be turned off.
  • a switch may be set between the CAN transceiver and the diagnostic interface.
  • the switch is closed to disconnect the CAN transceiver and the diagnostic interface.
  • the connection between the interfaces it can be determined whether the CAN controller is in use. In the use state, it means that the CAN controller is currently in the communication state, and the communication channel is established to control the conduction of the switch on the same line as the CAN controller; when it is not in use, it means that the CAN controller is not currently in use. In the communication state, the communication channel is not established, and the switch that is on the same line as the CAN controller is disconnected or closed.
  • the embodiment of the present invention also provides a device for establishing communication between an automobile diagnostic equipment and a vehicle, which is applied to an automobile communication interface device (VCI), and the automobile communication interface device is used to connect the automobile diagnostic equipment and the vehicle.
  • VCI automobile communication interface device
  • the automobile communication interface device includes at least two CAN controllers, at least two CAN transceivers, and a diagnostic interface.
  • the diagnostic interface includes at least two communication pin groups, one CAN transceiver and one CAN controller and A group of the communication pin groups are connected, please refer to FIG.
  • FIG. 4 which shows the structure of an apparatus for establishing communication between an automobile diagnostic equipment and a vehicle provided by an embodiment of the present application, and an apparatus 200 for establishing communication between the automobile diagnostic equipment and the vehicle It includes: a first determining module 210, a parameter setting module 220, a second determining module 230, and a channel establishing module 240.
  • the first determining module 210 is configured to determine which of the at least two CAN controllers is in an idle state when a channel establishment instruction of the automobile diagnostic equipment is received.
  • the parameter setting module 220 is used to set communication parameters for the CAN controller in an idle state.
  • the second determining module 230 is used for determining whether the CAN controller connected to the designated communication pin group is in an idle state when the designated communication pin group of the automobile diagnostic equipment is received.
  • the channel establishment module 240 is configured to establish communication parameters in the CAN controller connected to the specified communication pin group when the CAN controller connected to the specified communication pin group is in an idle state. The communication channel from the car diagnostic device to the designated pin group, so that the car diagnostic device communicates with the vehicle through the designated pin group.
  • FIG. 5 shows the structure of another apparatus for establishing communication between an automobile diagnostic equipment and a vehicle provided by an embodiment of the present application.
  • the apparatus 200 for establishing communication between an automobile diagnostic equipment and a vehicle also includes :The third determination module 211 and the initialization module 212.
  • the third determining module 211 is used to determine whether the automobile diagnostic equipment has issued a channel establishment instruction.
  • the initialization module 212 is configured to initialize the CAN controller in the idle state when it is determined that the vehicle diagnostic equipment has issued a channel establishment instruction.
  • the apparatus 200 for establishing communication between the automobile diagnostic equipment and the vehicle further includes: a receiving module 231 and a first acquiring module 232.
  • the receiving module 231 is configured to receive a designated instruction issued by the automobile diagnostic equipment, and the designated instruction carries the identification of the designated communication pin group.
  • the first obtaining module 232 is configured to traverse the communication pin group in the diagnostic interface according to the identifier, and obtain the designated communication pin group matching the identifier.
  • the apparatus 200 for establishing communication between the automobile diagnostic equipment and the vehicle further includes: a fourth determining module 221 and a second acquiring module 222.
  • the fourth determining module 221 is used to determine whether the vehicle diagnostic equipment has issued the communication parameters of the CAN controller.
  • the second acquisition module 222 is configured to acquire the communication parameters when it is determined that the vehicle diagnostic equipment has issued the communication parameters of the CAN controller.
  • the receiving module 231 is further configured to receive a designated instruction issued by the automobile diagnostic equipment when it is determined that the automobile diagnostic equipment has not issued the communication parameters of the CAN controller.
  • the apparatus 200 for establishing communication between the automobile diagnostic equipment and the vehicle further includes: an adjustment module 250.
  • the adjustment module 250 is used to adjust the CAN controller that has established a communication channel into a use state.
  • the apparatus 200 for establishing communication between the automobile diagnostic equipment and the vehicle further includes a reset module 260.
  • the reset module 260 is used to reset the CAN controller in the remaining idle state.
  • the automobile communication interface device further includes: at least two switches, the switches are arranged between the CAN transceiver and the diagnostic interface, please continue to refer to FIG. 5, the automobile diagnostic device and
  • the device 200 for establishing communication with a vehicle further includes: a fifth determining module 270 and a control module 271.
  • the fifth determining module 270 is used to determine whether the CAN controller is in a use state.
  • the control module 271 is configured to control the switch to be turned on when it is determined that the CAN controller is in use;
  • the control module 271 is further configured to control the switch to be turned off when it is determined that the CAN controller is not in use.
  • the communication parameters include: baud rate and/or filter.
  • the embodiment of the present invention provides a device for establishing communication between an automobile diagnostic device and a vehicle, which is applied to an automobile communication interface device.
  • the automobile communication interface device includes at least two CAN controllers, at least two CAN transceivers, and a diagnostic interface.
  • the CAN transceiver is respectively connected to a CAN controller and a set of communication pin groups of the diagnostic interface.
  • the device determines that at least two CAN controllers are in the communication pin group when receiving the channel establishment instruction of the automobile diagnostic equipment through the first determining module 210.
  • the CAN controller in the idle state then sets the communication parameters for the CAN controller in the idle state through the parameter setting module 220, and further determines whether the CAN controller connected to the designated communication pin group is in the idle state through the second determining module 230, if yes ,
  • the communication channel from the car diagnostic equipment to the designated pin group is established through the channel establishment module 240 through the communication parameters in the CAN controller connected to the designated communication pin group, so that the car diagnostic equipment communicates with the vehicle through the designated pin group
  • This method does not need to set a switch between the CAN controller and the communication pin group, and can realize the simple and fast distribution of the CAN controller.
  • the embodiment of the present invention also provides a diagnosis device. Please refer to FIG. 6, which shows the hardware structure of the diagnosis device capable of executing the method for establishing communication between the automobile diagnosis device and the vehicle described in FIGS. 2 to 4.
  • the car communication interface device 10 may be the car communication interface device 10 shown in FIG. 1.
  • the automobile communication interface device 10 includes: at least one processor 15; and a memory 16 communicatively connected with the at least one processor 15.
  • one processor 15 is taken as an example.
  • the memory 16 stores instructions that can be executed by the at least one processor 15, and the instructions are executed by the at least one processor 15, so that the at least one processor 15 can execute the above-mentioned FIGS. 2 to 4
  • the method for establishing communication between the automobile diagnostic equipment and the vehicle is described.
  • the processor 15 and the memory 16 may be connected through a bus or in other ways. In FIG. 6, the connection through a bus is taken as an example.
  • the memory 16 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules.
  • the automobile diagnostic equipment in the embodiment of the present application establishes communication with the vehicle
  • the program instructions/modules corresponding to the method are, for example, the modules shown in FIG. 4 and FIG. 5.
  • the processor 15 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions, and modules stored in the memory 16, that is, the method for establishing communication between the automobile diagnostic equipment and the vehicle in the foregoing method embodiment is realized.
  • the memory 16 may include a storage program area and a storage data area.
  • the storage program area can store an operating system and an application program required by at least one function; Data, etc.
  • the memory 16 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the memory 16 may optionally include memories remotely provided with respect to the processor 15, and these remote memories may be connected to a device for establishing communication between the automobile diagnostic equipment and the vehicle via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the one or more modules are stored in the memory 16, and when executed by the one or more processors 15, the method for establishing communication between the car diagnostic equipment and the vehicle in any of the above method embodiments is executed, for example, executing The above described method steps in FIGS. 2 to 3 implement the functions of the modules and units in FIGS. 4 to 5.
  • the embodiment of the present application also provides a non-volatile computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example,
  • the above described method steps in FIGS. 2 to 3 implement the functions of the modules in FIGS. 4 to 5.
  • the embodiments of the present application also provide a computer program product, including a calculation program stored on a non-volatile computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, cause all
  • the computer executes the method for establishing communication between the automobile diagnostic equipment and the vehicle in any of the foregoing method embodiments, for example, executes the method steps in FIGS. 2 to 3 described above to realize the functions of the modules in FIGS. 4 to 5.
  • the embodiment of the present invention provides a method for establishing communication between an automobile diagnostic device and a vehicle.
  • the method is applied to an automobile communication interface device.
  • the automobile communication interface device includes at least two CAN controllers, at least two CAN transceivers, and a diagnostic interface.
  • a CAN transceiver is respectively connected with a CAN controller and a set of communication pin groups of the diagnostic interface. This method determines that at least two CAN controllers in the idle state are in the idle state when the channel establishment instruction of the car diagnostic equipment is received. The controller then sets the communication parameters for the CAN controller in the idle state.
  • the CAN controller connected to the designated communication pin group is in the idle state, If yes, establish a communication channel from the car diagnostic equipment to the designated pin group through the communication parameters in the CAN controller connected to the designated communication pin group, so that the car diagnostic equipment communicates with the vehicle through the designated pin group.
  • This method does not It is necessary to set a switch between the CAN controller and the communication pin group, so that the CAN controller can be distributed simply and quickly.
  • the device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physically separate. Units can be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each implementation manner can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware.
  • a person of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by instructing relevant hardware through a computer program.
  • the program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. When executed, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明实施例涉及汽车技术领域,公开了一种汽车诊断设备与车辆建立通信的方法,该方法应用于汽车通信接口设备,该方法当接收到汽车诊断设备的建立通道指令时,确定至少两个CAN控制器中处于空闲状态的CAN控制器,然后为处于空闲状态的CAN控制器设置通信参数,进一步地,当接收到汽车诊断设备的指定通信引脚组时,确定与指定通信引脚组连接的CAN控制器是否处于空闲状态,若是,则通过与指定通信引脚组连接的CAN控制器中的通信参数建立汽车诊断设备至指定引脚组的通信通道,以使汽车诊断设备通过指定引脚组与车辆通信连接,该方法不需要设置在CAN控制器和通信引脚组之间设置开关,能够实现简单快速地分配CAN控制器。

Description

一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备
本申请要求于2019年9月20日提交中国专利局、申请号为201910893693.4、申请名称为“一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及汽车技术领域,特别涉及一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备。
背景技术
随着汽车技术的发展,CAN总线在汽车上使用的越来越广泛。目前市面就有汽车使用3组CAN总线进行通信,将来也可能会同时使用4组甚至更多的CAN总线进行通信,这无疑会增加汽车诊断设备与车辆建立通信通道的复杂性。
而诊断设备对汽车进行诊断时,在建立通道连接过程中通常需要分配CAN控制器,由于此时可能还不能确定中哪一组通信引脚组与汽车的诊断接口通信,故在设计诊断设备硬件的时候,需要考虑将每一个CAN控制器能自由的连接到每一组通信管脚上。
现有的实现方法是,通过开关(继电器)来实现通信管脚与CAN控制器的自由连接,在这种方案下,例如,实现4个CAN控制器自由切换到4组CAN的通信引脚上时,需要使用12个开关。很明显,该方案在CAN控制器和通信引脚较多时,在分配CAN控制器时所需要的开关的数量较多,导致线路连接较为冗杂。
发明内容
针对现有技术的上述缺陷,本发明实施例的目的是提供一种汽车诊断设备与车辆建立通信的方法、装置及诊断设备,能够简单快速地分配CAN控制器。
本发明实施例的目的是通过如下技术方案实现的:
为解决上述技术问题,第一方面,本发明实施例中提供了一种汽车诊断设备与车辆建立通信的方法,所述方法应用于汽车通信接口设备(VCI),所述汽车通信接口设备用于连接所述汽车诊断设备与所述车辆,所述汽车通信接口设备包括至少两个CAN控制器、至少两个CAN收发器和诊断接口,所述诊断接口包括至少两组通信引脚组,一所述CAN收发器分别与一所述CAN控制器和一组所述通信引脚组连接,所述方法包括:
当接收到所述汽车诊断设备的建立通道指令时,确定所述至少两个CAN 控制器中处于空闲状态的CAN控制器;
为所述处于空闲状态的CAN控制器设置通信参数;
当接收到所述汽车诊断设备的指定通信引脚组时,确定与所述指定通信引脚组连接的CAN控制器是否处于空闲状态;
若是,则通过与所述指定通信引脚组连接的所述CAN控制器中的通信参数建立所述汽车诊断设备至所述指定引脚组的通信通道,以使所述汽车诊断设备通过所述指定引脚组与所述车辆通信连接。
在一些实施例中,在所述接收到所述汽车诊断设备的建立通道指令的步骤之前,所述方法还包括:
确定所述汽车诊断设备是否下发了通道建立指令;
若是,初始化所述空闲状态的CAN控制器。
在一些实施例中,在所述接收到所述汽车诊断设备的指定通信引脚组的步骤之前,所述方法还包括:
接收所述汽车诊断设备下发的指定指令,所述指定指令携带所指定的通信引脚组的标识;
根据所述标识,遍历所述诊断接口中的通信引脚组,获取与所述标识匹配的所述指定通信引脚组。
在一些实施例中,在所述为所述处于空闲状态的CAN控制器设置通信参数的步骤之前,所述方法还包括:
确定所述汽车诊断设备是否下发了所述CAN控制器的通信参数;
若是,获取所述通信参数;
若否,执行所述接收所述汽车诊断设备下发的指定指令的步骤。
在一些实施例中,所述方法还包括:
将建立了通信通道的所述CAN控制器调整为使用状态。
在一些实施例中,所述方法还包括:
复位剩余的空闲状态的所述CAN控制器。
在一些实施例中,所述汽车通信接口设备还包括:至少两个开关,所述开关设置在所述CAN收发器和所述诊断接口之间,所述方法还包括:
确定所述CAN控制器是否为使用状态;
若是,控制所述开关导通;
若否,控制所述开关断开。
在一些实施例中,所述通信参数包括:波特率和/或过滤器。
为解决上述技术问题,第二方面,本发明实施例中提供了一种汽车诊断设备与车辆建立通信的装置,应用于汽车通信接口设备(VCI),所述汽车通信接口设备用于连接所述汽车诊断设备与所述车辆,所述汽车通信接口设备包括至少两个CAN控制器、至少两个CAN收发器和诊断接口,所述诊断接口包括至少两组通信引脚组,一所述CAN收发器分别与一所述CAN控制器和一组所述通信引脚组连接,所述装置包括:
第一确定模块,用于当接收到所述汽车诊断设备的建立通道指令时,确定所述至少两个CAN控制器中处于空闲状态的CAN控制器;
参数设置模块,用于为所述处于空闲状态的CAN控制器设置通信参数;
第二确定模块,用于当接收到所述汽车诊断设备的指定通信引脚组时,确定与所述指定通信引脚组连接的CAN控制器是否处于空闲状态;
通道建立模块,用于在所述与所述指定通信引脚组连接的CAN控制器为空闲状态时,通过与所述指定通信引脚组连接的所述CAN控制器中的通信参数建立所述汽车诊断设备至所述指定引脚组的通信通道,以使所述汽车诊断设备通过所述指定引脚组与所述车辆通信连接。
在一些实施例中,所述装置还包括:
第三确定模块,用于确定所述汽车诊断设备是否下发了通道建立指令;
初始化模块,用于在确定所述汽车诊断设备下发了通道建立指令时,初始化所述空闲状态的CAN控制器。
在一些实施例中,所述装置还包括:
接收模块,用于接收所述汽车诊断设备下发的指定指令,所述指定指令携带所指定的通信引脚组的标识;
第一获取模块,用于根据所述标识,遍历所述诊断接口中的通信引脚组,获取与所述标识匹配的所述指定通信引脚组。
在一些实施例中,所述装置还包括:
第四确定模块,用于确定所述汽车诊断设备是否下发了所述CAN控制器的通信参数;
第二获取模块,用于在确定所述汽车诊断设备下发了所述CAN控制器的通信参数时,获取所述通信参数;
所述接收模块还用于在确定所述汽车诊断设备未下发所述CAN控制器的通信参数时,接收所述汽车诊断设备下发的指定指令。
在一些实施例中,所述装置还包括:
调整模块,用于将建立了通信通道的所述CAN控制器调整为使用状态。
在一些实施例中,所述装置还包括:
复位模块,用于复位剩余的空闲状态的所述CAN控制器。
在一些实施例中,所述汽车通信接口设备还包括:至少两个开关,所述开关设置在所述CAN收发器和所述诊断接口之间,所述装置还包括:
第五确定模块,用于确定所述CAN控制器是否为使用状态;
控制模块,用于在确定所述CAN控制器为使用状态时,控制所述开关导通;
所述控制模块还用于在确定所述CAN控制器不为使用状态时,控制所述开关断开。
在一些实施例中,所述通信参数包括:波特率和/或过滤器。
为解决上述技术问题,第三方面,本发明实施例提供了一种汽车通信接口设备,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上第一方面所述的方法。
为解决上述技术问题,第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如上第一方面所述的方法。
为解决上述技术问题,第五方面,本发明实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行如上第一方面所述的方法。
与现有技术相比,本发明的有益效果是:本发明实施例中提供了一种汽车诊断设备与车辆建立通信的方法,该方法应用于汽车通信接口设备,该汽车通信接口设备包括至少两个CAN控制器、至少两个CAN收发器和诊断接口,一CAN收发器分别与一CAN控制器和诊断接口的一组通信引脚组连接,该方法当接收到汽车诊断设备的建立通道指令时,确定至少两个CAN控制器中处于空闲状态的CAN控制器,然后为处于空闲状态的CAN控制器设置通信参数,进一步地,当接收到汽车诊断设备的指定通信引脚组时,确定与指定通信引脚组连接 的CAN控制器是否处于空闲状态,若是,则通过与指定通信引脚组连接的CAN控制器中的通信参数建立汽车诊断设备至指定引脚组的通信通道,以使汽车诊断设备通过指定引脚组与车辆通信连接,该方法不需要设置在CAN控制器和通信引脚组之间设置开关,能够实现简单快速地分配CAN控制器。
附图说明
一个或多个实施例中通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件/模块和步骤表示为类似的元件/模块和步骤,除非有特别申明,附图中的图不构成比例限制。
图1是本发明实施例提供的汽车诊断设备与车辆建立通信的方法的实施例的示例性系统结构示意图;
图2是本发明实施例提供的汽车诊断设备与车辆建立通信的方法的流程示意图;
图3是本发明实施例提供的另一种汽车诊断设备与车辆建立通信的方法的流程示意图;
图4是本发明实施例提供的一种汽车诊断设备与车辆建立通信的装置的结构示意图;
图5是本发明实施例提供的另一种汽车诊断设备与车辆建立通信的装置的结构示意图;
图6是本发明实施例提供的一种诊断设备的硬件结构示意图。
具体实施方式
下面结合具体实施例对本发明进行详细说明。以下实施例将有助于本领域的技术人员进一步理解本发明,但不以任何形式限制本发明。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进。这些都属于本发明的保护范围。
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
需要说明的是,如果不冲突,本发明实施例中的各个特征可以相互结合,均在本申请的保护范围之内。另外,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。此外,本文所采用的“第一”、“第二”、“第三”等字样并不对数据和执行次序进行限定,仅是对功能和作用基本相同的相同项或相似项进行区分。
除非另有定义,本说明书所使用的所有的技术和科学术语与属于本发明的 技术领域的技术人员通常理解的含义相同。本说明书中在本发明的说明书中所使用的术语只是为了描述具体的实施方式的目的,不是用于限制本发明。本说明书所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。
此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。
请参见图1,为应用于本发明的汽车诊断设备与车辆建立通信的方法的实施例的示例性系统结构示意图。如图1所示,该系统结构包括:汽车通信接口设备(Vehicle communication interface,VCI)10、车辆20和汽车诊断设备30。所述汽车通信接口设备10与所述车辆20电气连接,具体地,在本发明实施例中,所述汽车通信接口设备10通过其诊断接口13与所述车辆20的汽车诊断接口电气连接。所述汽车通信接口设备10与所述汽车诊断设备30通信连接,所述通信连接可以是网络连接,可以包括各种连接类型,比如有线、无线通信或者光纤电缆等。
所述汽车通信接口设备10包括控制单元MCU、至少两个CAN控制器11、至少两个CAN收发器12、诊断接口13和通信接口14,所述诊断接口13包括至少两组通信引脚组,一所述CAN收发器12分别与一所述CAN控制器11和一组所述通信引脚组连接,所述控制单元MCU分别与所述至少两个CAN控制器11、所述诊断接口13和所述通信接口14连接。所述控制单元MCU能够与所述CAN控制器11和所述诊断接口13进行数据交互,所述控制单元MCU能够通过所述CAN控制器11获取车辆20的检测数据,所述控制单元MCU能够通过所述通信接口14将诊断数据上传至汽车诊断设备30,所述控制单元MCU还能够通过所述通信接口14获取并执行所述汽车诊断设备30下发的指令。所述汽车通信接口设备10为用于查明车辆20的技术状况,并得出可靠结论的不解体检验测试机械设备,包括但不限于检测车辆20的灯光、制动、侧滑、发动机、点、排气和/或噪声等。
需要说明的是,本发明实施例所提供的汽车诊断设备与车辆建立通信的方法一般由上述汽车通信接口设备10中的控制单元MCU执行,相应地,汽车诊断设备与车辆建立通信的装置一般由该汽车通信接口设备10中的控制单元MCU实现。
在本发明实施例中,如图1所示,所述汽车通信接口设备10包括四个CAN控制器:CAN控制器11a、CAN控制器11b、CAN控制器11c、CAN控制器11d,所述汽车通信接口设备10包括四个CAN收发器:CAN收发器12a、CAN收发器12b、CAN收发器12c、CAN收发器12d,所述诊断接口包括四组通信引脚组:通信引脚a1和a2、通信引脚b1和b2、通信引脚c1和c2、通信引脚d1和d2。
一所述CAN收发器通过收发光纤相对应与一所述CAN控制器连接,所述收发光纤包括发送光纤Tx和接收光纤Rx,一所述CAN收发器通过CAN总线相对应与一组所述通信引脚组连接。具体地,CAN收发器12a分别与CAN控制器11a 和通信引脚a1和a2连接,CAN收发器12b分别与CAN控制器11b和通信引脚b1和b2连接,CAN收发器12c分别与CAN控制器11c和通信引脚c1和c2连接,CAN收发器12d分别与CAN控制器11d和通信引脚d1和d2连接。
本发明实施例提供的汽车通信接口设备10中,每一个CAN控制器相对应地仅与一组通信管脚连接,通过下述汽车诊断设备与车辆建立通信的方法保证每一通信管脚可以正确分配相应的CAN控制器,不需要每个CAN控制器通过与通信管脚组同等数量的开关连接至每一组通信管脚,因此,本发明实施例提供的汽车通信接口设备10能够大大减小线路板面积、减少电子元器件的使用及物料成本、减少诊断设备的功耗/发热量等,同时还能缩短物理线路建立连接的时间,增加信号质量。
具体地,该汽车通信接口设备10中的控制单元MCU在接收到汽车诊断设备的建立通道指令时,确定至少两个CAN控制器中处于空闲状态的CAN控制器,然后为处于空闲状态的CAN控制器设置通信参数,进一步地,该汽车通信接口设备10中的控制单元MCU在接收到汽车诊断设备的指定通信引脚组时,确定与指定通信引脚组连接的CAN控制器是否处于空闲状态,若是,则通过与指定通信引脚组连接的CAN控制器中的通信参数建立汽车诊断设备至指定引脚组的通信通道,以使汽车诊断设备通过指定引脚组与车辆通信连接。
在一些实施例中,所述诊断设备还可以包括:至少两个开关,所述开关设置在所述CAN收发器和所述诊断接口之间,所述开关在其所在线路上的CAN控制器不工作、即非使用状态的情况下断开,以切断其所在线路上的CAN收发器和诊断接口之间的连接。
所述车辆20即为日常中常见的动力驱动汽车,所述车辆20内设置有汽车诊断接口,与所述汽车通信接口设备10的诊断接口13连接,用于提供检测所述车辆20内各装置、器件、模块、系统的技术状况和/或测试结果。
所述汽车诊断设备30为安装有诊断应用并能够运行所述诊断应用的电子设备,所述诊断应用能够下发建立通道指令以及CAN控制器的通信参数至所述汽车通信接口设备10,所述诊断应用还能够获取所述汽车通信接口设备10上报的错误信息及诊断数据,因此,所述汽车诊断设备30为能够与所述汽车通信接口设备10通信连接的电子设备。例如,可以是诊断仪、移动终端、平板电脑等,具体地,可根据实际需要进行选择,不需要拘泥于本发明实施例的限定。
具体地,下面结合附图,对本发明实施例作进一步阐述。
本发明实施例提供了一种汽车诊断设备与车辆建立通信的方法,该方法可被上述汽车通信接口设备10(中的控制单元MCU)执行,所述汽车通信接口设备用于连接所述汽车诊断设备与所述车辆,所述汽车通信接口设备包括至少两个CAN控制器、至少两个CAN收发器和诊断接口,所述诊断接口包括至少两组通信引脚组,一所述CAN收发器分别与一所述CAN控制器和一组所述通信引脚 组连接,请参见图2,其示出了根据上述系统架构所应用的一种汽车诊断设备与车辆建立通信的方法的流程图,该方法包括但不限于以下步骤:
步骤110:当接收到所述汽车诊断设备的建立通道指令时,确定所述至少两个CAN控制器中处于空闲状态的CAN控制器。
在本发明实施例中,首先,在接收到汽车诊断设备下发的建立通道指令时,确定至少两个CAN控制器中处于空闲状态的CAN控制器,其中,空闲状态的CAN控制器指的是还未进行通信的CAN控制,因此,空闲状态的CAN控制器可用于建立新的通信通道。
步骤120:为所述处于空闲状态的CAN控制器设置通信参数。
然后,为所述处于空闲状态的CAN控制器设置通信参数,以实现对通信通道的初步设置。其中,所述通信参数包括但不限于:波特率和/或过滤器。通常地,CAN控制器都需要预先设置通信参数后才能进行工作,预设好CAN控制器的通信参数后,CAN控制器才能够筛选得到需要的数据信息,以预设的数据传送速率进行数据交互。
步骤130:当接收到所述汽车诊断设备的指定通信引脚组时,确定与所述指定通信引脚组连接的CAN控制器是否处于空闲状态。若是,跳转至步骤140;若否,上报错误信息至汽车诊断设备。
在本发明实施例中,由如上述的汽车诊断设备主动选择/指定用于与车辆的汽车诊断接口连接通信的通信引脚组。进一步地,在接收到所述汽车诊断设备的指定通信引脚组时,确定与所述指定通信引脚组连接的CAN控制器是否处于空闲状态。在本发明实施例中,只有处于空闲状态的CAN控制器才能够用于建立新的通信通道。
此外,若该指定通信引脚组连接的CAN控制器不处于空闲状态,可能存在两种情况,一种情况是,与该指定的通信引脚组的CAN控制器处于通信状态,已有开启的通信通道,此时需要汽车诊断设备判断当前该CAN控制器采集的车辆数据是否为汽车诊断设备所要检测的数据,若是,不需要再建立通信通道,若否,则可以重置该CAN控制器后重新执行上述步骤110。另一种情况是,该CAN控制器由于各种原因,例如CAN控制器已损坏等原因导致该CAN控制器不为空闲状态,此时也需要汽车诊断设备或者汽车通信接口设备中的控制单元诊断该CAN控制器的问题。对于可能出现的上述两种情况,也即是指定通信引脚组连接的CAN控制器不处于空闲状态时,都需要上报错误信息至汽车诊断设备,由汽车诊断设备进一步执行检测或诊断等工作。
步骤140:通过与所述指定通信引脚组连接的所述CAN控制器中的通信参数建立所述汽车诊断设备至所述指定引脚组的通信通道,以使所述汽车诊断设备通过所述指定引脚组与所述车辆通信连接。
在确定与所述指定通信引脚组连接的CAN控制器为空闲状态后,根据所述通信参数建立通信通道,使得车辆的数据信息能够通过该指定通信引脚组传输至CAN控制器,CAN控制器能够控制所在通信通道的数据传输速率。然后CAN 控制器再根据该通信参数的设置,筛选出汽车诊断设备所需要的检测数据,进一步由控制单元MCU通过通信接口将数据上传至汽车诊断设备。
本发明实施例中提供了一种汽车诊断设备与车辆建立通信的方法,该方法应用于汽车通信接口设备,该汽车通信接口设备包括至少两个CAN控制器、至少两个CAN收发器和诊断接口,一CAN收发器分别与一CAN控制器和诊断接口的一组通信引脚组连接,该方法当接收到汽车诊断设备的建立通道指令时,确定至少两个CAN控制器中处于空闲状态的CAN控制器,然后为处于空闲状态的CAN控制器设置通信参数,进一步地,当接收到汽车诊断设备的指定通信引脚组时,确定与指定通信引脚组连接的CAN控制器是否处于空闲状态,若是,则通过与指定通信引脚组连接的CAN控制器中的通信参数建立汽车诊断设备至指定引脚组的通信通道,以使汽车诊断设备通过指定引脚组与车辆通信连接,该方法不需要设置在CAN控制器和通信引脚组之间设置开关,能够实现简单快速地分配CAN控制器。
在一些实施例中,请参见图3,为本发明实施例提供的另一种汽车诊断设备与车辆建立通信的方法的流程图,基于图2所示的汽车诊断设备与车辆建立通信的方法,在步骤110之前,所述方法还包括:
步骤111:确定所述汽车诊断设备是否下发了通道建立指令。若是,执行步骤112;若否,返回步骤111。
步骤112:初始化所述空闲状态的CAN控制器。
在本发明实施例中,在确定所述汽车诊断设备下发了通道建立指令之后,获取用于CAN控制器的通信参数以及用于进行通信的指定通信引脚组之前,还需要获取所述诊断应用是否下发了通道建立指令,在所述诊断应用下发了通道建立指令时,初始化空闲状态的CAN控制器,所述初始化指的是启动所述CAN控制器,即启动非通信状态的CAN控制器,初步分配CAN控制器的软件资源,使其进入准备工作的状态。
在一些实施例中,请继续参见图3,在步骤130之前,所述方法还包括:
步骤131:接收所述汽车诊断设备下发的指定指令,所述指定指令携带所指定的通信引脚组的标识。
步骤132:根据所述标识,遍历所述诊断接口中的通信引脚组,获取与所述标识匹配的所述指定通信引脚组。
在获取用于进行通信的通信引脚组之前,汽车通信接口设备获取汽车诊断设备下发的通信引脚组的指定指令,该指定指令携带所述指定的通信引脚组的标识。所述标识为每一通信引脚组特有的标识,例如,每一通信引脚组的编号等。然后,根据该标识,遍历诊断接口中所有的通信引脚组,获取与该标识匹配的通信引脚组,例如,遍历诊断接口中所有通信引脚组的编号,获取与该标识相同编号的通信引脚组,即可得到所述用于进行通信的通信引脚组。
在一些实施例中,请继续参见图3,在所述步骤120之前,所述方法还包括:
步骤121:确定所述汽车诊断设备是否下发了所述CAN控制器的通信参数。若是,执行步骤122;若否,执行上述步骤131。
步骤122:获取所述通信参数。
其中,所述通信参数包括:波特率和/或过滤器。在本发明实施例中,存在部分CAN控制器需要预先设置所述通信参数后才能进行工作,因此,在初始化空闲状态的所述CAN控制器之后,进一步地,还需要获取所述汽车诊断设备是否下发了CAN控制器的通信参数,若下发了所述CAN控制器的通信参数,则获取该通信参数,进一步地,将该通信参数发送至空闲状态的CAN控制器,以实现对CAN控制器的预设置。例如,在需要对某些数据来源的信息进行筛除时,可以预先设置过滤器的掩码和/或验证码,以使CAN控制器能够过滤掉这类需要被筛除信息。在其他的一些实施例中,可能存在不需要对其进行预设置的CAN控制器,则汽车诊断设备不下发通信参数,直接下发用于进行通信的指定通信引脚组。
在一些实施例中,请继续参见图3,所述方法还包括:
步骤150:将建立了通信通道的所述CAN控制器调整为使用状态。
步骤160:复位剩余的空闲状态的所述CAN控制器。
在本发明实施例中,需要将监理了通信通道的所述CAN控制器调整为使用状态,以避免在需要建立新的通信通道时,将该已建立了通信通道的CAN控制器作为空闲状态的CAN控制器重新进行通信通道的建立。在将建立了通信通道的CAN控制器调整为使用状态后,进一步地,将其他处于空闲状态的CAN控制器进行复位,也即是关闭除建立了通信通道的所述CAN控制器以外,步骤110中所确定的处于空闲状态的CAN控制器,以释放软件资源。复位后的CAN控制器等待汽车诊断设备再次下发建立通道指令后初始化。
在一些实施例中,所述汽车通信接口设备还包括:至少两个开关,所述开关设置在所述CAN收发器和所述诊断接口之间,请继续参见图3,所述方法还包括:
步骤170:确定所述CAN控制器是否为使用状态。若是,跳转至步骤171;若否,跳转至步骤172。
步骤171:控制所述开关导通。
步骤172:控制所述开关断开。
在本发明实施例中,进一步地,还可以在所述CAN收发器和所述诊断接口之间设置开关,在没有使用该路CAN控制器的情况下,关闭开关以断开CAN收发器和诊断接口之间的连接。具体地,可以通过判断CAN控制器是否为使用 状态。在为使用状态时,说明该CAN控制器当前为通信状态,建立了通信通道,控制与该CAN控制器处于同一线路的开关导通;在不为使用状态是,说明该CAN控制器当前不为通信状态,没有建立通信通道,控制与该CAN控制器处于同一线路的开关断开或关闭。
本发明实施例还提供了一种汽车诊断设备与车辆建立通信的装置,应用于汽车通信接口设备(VCI),所述汽车通信接口设备用于连接所述汽车诊断设备与所述车辆,所述汽车通信接口设备包括至少两个CAN控制器、至少两个CAN收发器和诊断接口,所述诊断接口包括至少两组通信引脚组,一所述CAN收发器分别与一所述CAN控制器和一组所述通信引脚组连接,请参见图4,其示出了本申请实施例提供的一种汽车诊断设备与车辆建立通信的装置的结构,该汽车诊断设备与车辆建立通信的装置200包括:第一确定模块210、参数设置模块220、第二确定模块230和通道建立模块240。
所述第一确定模块210用于当接收到所述汽车诊断设备的建立通道指令时,确定所述至少两个CAN控制器中处于空闲状态的CAN控制器。
所述参数设置模块220用于为所述处于空闲状态的CAN控制器设置通信参数。
所述第二确定模块230用于当接收到所述汽车诊断设备的指定通信引脚组时,确定与所述指定通信引脚组连接的CAN控制器是否处于空闲状态。
所述通道建立模块240用于在所述与所述指定通信引脚组连接的CAN控制器为空闲状态时,通过与所述指定通信引脚组连接的所述CAN控制器中的通信参数建立所述汽车诊断设备至所述指定引脚组的通信通道,以使所述汽车诊断设备通过所述指定引脚组与所述车辆通信连接。
在一些实施例中,请参见图5,其示出了本申请实施例提供的另一种汽车诊断设备与车辆建立通信的装置的结构,所述汽车诊断设备与车辆建立通信的装置200还包括:第三确定模块211和初始化模块212。
所述第三确定模块211用于确定所述汽车诊断设备是否下发了通道建立指令。
所述初始化模块212用于在确定所述汽车诊断设备下发了通道建立指令时,初始化所述空闲状态的CAN控制器。
在一些实施例中,请继续参见图5,所述汽车诊断设备与车辆建立通信的装置200还包括:接收模块231和第一获取模块232。
所述接收模块231用于接收所述汽车诊断设备下发的指定指令,所述指定指令携带所指定的通信引脚组的标识。
所述第一获取模块232用于根据所述标识,遍历所述诊断接口中的通信引脚组,获取与所述标识匹配的所述指定通信引脚组。
在一些实施例中,请继续参见图5,所述汽车诊断设备与车辆建立通信的装置200还包括:第四确定模块221和第二获取模块222。
所述第四确定模块221用于确定所述汽车诊断设备是否下发了所述CAN控制器的通信参数。
所述第二获取模块222用于在确定所述汽车诊断设备下发了所述CAN控制器的通信参数时,获取所述通信参数。
所述接收模块231还用于在确定所述汽车诊断设备未下发所述CAN控制器的通信参数时,接收所述汽车诊断设备下发的指定指令。
在一些实施例中,请继续参见图5,所述汽车诊断设备与车辆建立通信的装置200还包括:调整模块250。
所述调整模块250用于将建立了通信通道的所述CAN控制器调整为使用状态。
在一些实施例中,请继续参见图5,所述汽车诊断设备与车辆建立通信的装置200还包括:复位模块260。
所述复位模块260用于复位剩余的空闲状态的所述CAN控制器。
在一些实施例中,所述汽车通信接口设备还包括:至少两个开关,所述开关设置在所述CAN收发器和所述诊断接口之间,请继续参见图5,所述汽车诊断设备与车辆建立通信的装置200还包括:第五确定模块270和控制模块271。
所述第五确定模块270用于确定所述CAN控制器是否为使用状态。
所述控制模块271用于在确定所述CAN控制器为使用状态时,控制所述开关导通;
所述控制模块271还用于在确定所述CAN控制器不为使用状态时,控制所述开关断开。
在一些实施例中,所述通信参数包括:波特率和/或过滤器。
本发明实施例中提供了一种汽车诊断设备与车辆建立通信的装置,应用于汽车通信接口设备,该汽车通信接口设备包括至少两个CAN控制器、至少两个CAN收发器和诊断接口,一CAN收发器分别与一CAN控制器和诊断接口的一组通信引脚组连接,该装置通过第一确定模块210在接收到汽车诊断设备的建立通道指令时,确定至少两个CAN控制器中处于空闲状态的CAN控制器,然后通过参数设置模块220为处于空闲状态的CAN控制器设置通信参数,进一步通过第二确定模块230确定与指定通信引脚组连接的CAN控制器是否处于空闲状态,若是,则通过通道建立模块240通过与指定通信引脚组连接的CAN控制器中的通信参数建立汽车诊断设备至指定引脚组的通信通道,以使汽车诊断设备通过指定引脚组与车辆通信连接,该方法不需要设置在CAN控制器和通信引脚组之间设置开关,能够实现简单快速地分配CAN控制器。
本发明实施例还提供了一种诊断设备,请参见图6,其示出了能够执行图2至图4所述汽车诊断设备与车辆建立通信的方法的诊断设备的硬件结构。所述汽车通信接口设备10可以是图1所示的汽车通信接口设备10。
所述汽车通信接口设备10包括:至少一个处理器15;以及,与所述至少 一个处理器15通信连接的存储器16,图6中以其以一个处理器15为例。所述存储器16存储有可被所述至少一个处理器15执行的指令,所述指令被所述至少一个处理器15执行,以使所述至少一个处理器15能够执行上述图2至图4所述的汽车诊断设备与车辆建立通信的方法。所述处理器15和所述存储器16可以通过总线或者其他方式连接,图6中以通过总线连接为例。
存储器16作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的汽车诊断设备与车辆建立通信的方法对应的程序指令/模块,例如,附图4和附图5所示的各个模块。处理器15通过运行存储在存储器16中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例汽车诊断设备与车辆建立通信的方法。
存储器16可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据汽车诊断设备与车辆建立通信的装置的使用所创建的数据等。此外,存储器16可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器16可选包括相对于处理器15远程设置的存储器,这些远程存储器可以通过网络连接至汽车诊断设备与车辆建立通信的装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
所述一个或者多个模块存储在所述存储器16中,当被所述一个或者多个处理器15执行时,执行上述任意方法实施例中的汽车诊断设备与车辆建立通信的方法,例如,执行以上描述的图2至图3的方法步骤,实现图4至图5中的各模块和各单元的功能。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。
本申请实施例还提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如,执行以上描述的图2至图3的方法步骤,实现图4至图5中的各模块的功能。
本申请实施例还提供了一种计算机程序产品,包括存储在非易失性计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时时,使所述计算机执行上述任意方法实施例中的汽车诊断设备与车辆建立通信的方法,例如,执行以上描述的图2至图3的方法步骤,实现图4至图5中的各模块的功能。
本发明实施例中提供了一种汽车诊断设备与车辆建立通信的方法,该方法应用于汽车通信接口设备,该汽车通信接口设备包括至少两个CAN控制器、至少两个CAN收发器和诊断接口,一CAN收发器分别与一CAN控制器和诊断接口的一组通信引脚组连接,该方法当接收到汽车诊断设备的建立通道指令时,确定至少两个CAN控制器中处于空闲状态的CAN控制器,然后为处于空闲状态的CAN控制器设置通信参数,进一步地,当接收到汽车诊断设备的指定通信引脚组时,确定与指定通信引脚组连接的CAN控制器是否处于空闲状态,若是,则通过与指定通信引脚组连接的CAN控制器中的通信参数建立汽车诊断设备至指定引脚组的通信通道,以使汽车诊断设备通过指定引脚组与车辆通信连接,该方法不需要设置在CAN控制器和通信引脚组之间设置开关,能够实现简单快速地分配CAN控制器。
需要说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
通过以上的实施方式的描述,本领域普通技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (18)

  1. 一种汽车诊断设备与车辆建立通信的方法,其特征在于,所述方法应用于汽车通信接口设备(VCI),所述汽车通信接口设备用于连接所述汽车诊断设备与所述车辆,所述汽车通信接口设备包括至少两个CAN控制器、至少两个CAN收发器和诊断接口,所述诊断接口包括至少两组通信引脚组,一所述CAN收发器分别与一所述CAN控制器和一组所述通信引脚组连接,所述方法包括:
    当接收到所述汽车诊断设备的建立通道指令时,确定所述至少两个CAN控制器中处于空闲状态的CAN控制器;
    为所述处于空闲状态的CAN控制器设置通信参数;
    当接收到所述汽车诊断设备的指定通信引脚组时,确定与所述指定通信引脚组连接的CAN控制器是否处于空闲状态;
    若是,则通过与所述指定通信引脚组连接的所述CAN控制器中的通信参数建立所述汽车诊断设备至所述指定引脚组的通信通道,以使所述汽车诊断设备通过所述指定引脚组与所述车辆通信连接。
  2. 根据权利要求1所述的方法,其特征在于,在所述接收到所述汽车诊断设备的建立通道指令的步骤之前,所述方法还包括:
    确定所述汽车诊断设备是否下发了通道建立指令;
    若是,初始化所述空闲状态的CAN控制器。
  3. 根据权利要求1所述的方法,其特征在于,在所述接收到所述汽车诊断设备的指定通信引脚组的步骤之前,所述方法还包括:
    接收所述汽车诊断设备下发的指定指令,所述指定指令携带所指定的通信引脚组的标识;
    根据所述标识,遍历所述诊断接口中的通信引脚组,获取与所述标识匹配的所述指定通信引脚组。
  4. 根据权利要求3所述的方法,其特征在于,在所述为所述处于空闲状态的CAN控制器设置通信参数的步骤之前,所述方法还包括:
    确定所述汽车诊断设备是否下发了所述CAN控制器的通信参数;
    若是,获取所述通信参数;
    若否,执行所述接收所述汽车诊断设备下发的指定指令的步骤。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    将建立了通信通道的所述CAN控制器调整为使用状态。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    复位剩余的空闲状态的所述CAN控制器。
  7. 根据权利要求5所述的方法,其特征在于,所述汽车通信接口设备还包括:至少两个开关,所述开关设置在所述CAN收发器和所述诊断接口之间,所述方法还包括:
    确定所述CAN控制器是否为使用状态;
    若是,控制所述开关导通;
    若否,控制所述开关断开。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,
    所述通信参数包括:波特率和/或过滤器。
  9. 一种汽车诊断设备与车辆建立通信的装置,其特征在于,应用于汽车通信接口设备(VCI),所述汽车通信接口设备用于连接所述汽车诊断设备与所述车辆,所述汽车通信接口设备包括至少两个CAN控制器、至少两个CAN收发器和诊断接口,所述诊断接口包括至少两组通信引脚组,一所述CAN收发器分别与一所述CAN控制器和一组所述通信引脚组连接,所述装置包括:
    第一确定模块,用于当接收到所述汽车诊断设备的建立通道指令时,确定所述至少两个CAN控制器中处于空闲状态的CAN控制器;
    参数设置模块,用于为所述处于空闲状态的CAN控制器设置通信参数;
    第二确定模块,用于当接收到所述汽车诊断设备的指定通信引脚组时,确定与所述指定通信引脚组连接的CAN控制器是否处于空闲状态;
    通道建立模块,用于在所述与所述指定通信引脚组连接的CAN控制器为空闲状态时,通过与所述指定通信引脚组连接的所述CAN控制器中的通信参数建立所述汽车诊断设备至所述指定引脚组的通信通道,以使所述汽车诊断设备通过所述指定引脚组与所述车辆通信连接。
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    第三确定模块,用于确定所述汽车诊断设备是否下发了通道建立指令;
    初始化模块,用于在确定所述汽车诊断设备下发了通道建立指令时,初始化所述空闲状态的CAN控制器。
  11. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    接收模块,用于接收所述汽车诊断设备下发的指定指令,所述指定指令携带所指定的通信引脚组的标识;
    第一获取模块,用于根据所述标识,遍历所述诊断接口中的通信引脚组,获取与所述标识匹配的所述指定通信引脚组。
  12. 根据权利要求11所述的装置,其特征在于,所述装置还包括:
    第四确定模块,用于确定所述汽车诊断设备是否下发了所述CAN控制器的通信参数;
    第二获取模块,用于在确定所述汽车诊断设备下发了所述CAN控制器的通信参数时,获取所述通信参数;
    所述接收模块还用于在确定所述汽车诊断设备未下发所述CAN控制器的通信参数时,接收所述汽车诊断设备下发的指定指令。
  13. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    调整模块,用于将建立了通信通道的所述CAN控制器调整为使用状态。
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:
    复位模块,用于复位剩余的空闲状态的所述CAN控制器。
  15. 根据权利要求13所述的装置,其特征在于,所述汽车通信接口设备还包括:至少两个开关,所述开关设置在所述CAN收发器和所述诊断接口之间,所述装置还包括:
    第五确定模块,用于确定所述CAN控制器是否为使用状态;
    控制模块,用于在确定所述CAN控制器为使用状态时,控制所述开关导通;
    所述控制模块还用于在确定所述CAN控制器不为使用状态时,控制所述开关断开。
  16. 根据权利要求9-15任一项所述的装置,其特征在于,
    所述通信参数包括:波特率和/或过滤器。
  17. 一种汽车通信接口设备,其特征在于,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1-8任一项所述的方法。
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如权利要求1-8任一项所述的方法。
PCT/CN2020/116253 2019-09-20 2020-09-18 一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备 WO2021052474A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20823716.4A EP3817301B1 (en) 2019-09-20 2020-09-18 Method and apparatus for establishing communication between automobile diagnostic device and vehicle, and automobile communication interface device
US17/127,134 US11973615B2 (en) 2019-09-20 2020-12-18 Method and apparatus for establishing communication between vehicle diagnosis device and vehicle, and vehicle communication interface device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910893693.4A CN110519144B (zh) 2019-09-20 2019-09-20 一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备
CN201910893693.4 2019-09-20

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/127,134 Continuation US11973615B2 (en) 2019-09-20 2020-12-18 Method and apparatus for establishing communication between vehicle diagnosis device and vehicle, and vehicle communication interface device

Publications (1)

Publication Number Publication Date
WO2021052474A1 true WO2021052474A1 (zh) 2021-03-25

Family

ID=68633100

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/116253 WO2021052474A1 (zh) 2019-09-20 2020-09-18 一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备

Country Status (4)

Country Link
US (1) US11973615B2 (zh)
EP (1) EP3817301B1 (zh)
CN (1) CN110519144B (zh)
WO (1) WO2021052474A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519144B (zh) * 2019-09-20 2021-10-15 深圳市道通合创新能源有限公司 一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备
US11794540B2 (en) * 2020-10-27 2023-10-24 Clarion Corporation of America Technologies for a harness connector with integrated wireless transceiver
CN112859818A (zh) * 2021-01-22 2021-05-28 深圳市轩宇车鼎科技有限公司 汽车诊断方法和装置
CN113484757B (zh) * 2021-06-24 2024-03-22 深圳市道通科技股份有限公司 蓄电池的连接器、蓄电池的检测系统及方法
CN116088488B (zh) * 2023-04-12 2023-06-23 深圳市星卡科技股份有限公司 基于多通道的通讯方法、系统及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458165A (zh) * 2008-12-30 2009-06-17 深圳市元征软件开发有限公司 汽车诊断测试接头及其实现方法
CN103293008A (zh) * 2013-06-27 2013-09-11 长城汽车股份有限公司 汽车诊断设备
CN103616886A (zh) * 2013-11-22 2014-03-05 深圳市道通科技有限公司 一种实现多通路并行汽车诊断方法及汽车诊断设备
US9002572B2 (en) * 2008-08-14 2015-04-07 Bosch Automotive Service Solutions Inc. Docked/undocked vehicle communication interface module
WO2015132017A1 (de) * 2014-03-06 2015-09-11 Robert Bosch Gmbh Elektronische einheit für eine fahrzeugkommunikationsschnittstelle
CN110519144A (zh) * 2019-09-20 2019-11-29 深圳市道通科技股份有限公司 一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8788139B2 (en) * 2011-03-21 2014-07-22 Webtech Wireless Inc. Multi-protocol vehicle diagnostic interface device and method
JP2013104347A (ja) * 2011-11-14 2013-05-30 Omron Automotive Electronics Co Ltd 電子制御装置
US8918251B2 (en) * 2013-02-14 2014-12-23 Stephan A Tarnutzer CAN based vehicle immobilizer
DE102014208611A1 (de) * 2014-05-08 2015-11-12 Robert Bosch Gmbh Verfahren zur Diagnose eines Zustands in einem Fahrzeug und Diagnose-Testgerät
JP6849528B2 (ja) * 2016-07-28 2021-03-24 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America フレーム伝送阻止装置、フレーム伝送阻止方法及び車載ネットワークシステム
US20180225249A1 (en) * 2017-02-08 2018-08-09 Automatic Labs, Inc. Application-specific integrated circuit configured to interface with automotive diagnostic port
US20180225891A1 (en) * 2017-02-08 2018-08-09 Automatic Labs, Inc. Automated vehicle discovery after connecting to an automotive diagnostic port
CN106936678A (zh) * 2017-03-28 2017-07-07 深圳市元征科技股份有限公司 一种控制器局域网can通信的设备
CN106970609A (zh) * 2017-04-22 2017-07-21 深圳市元征科技股份有限公司 车辆诊断盒的诊断方法及车辆诊断盒
CN207926623U (zh) * 2018-03-02 2018-09-28 上海擎感智能科技有限公司 车载网络系统及汽车
CN207926624U (zh) * 2018-03-02 2018-09-28 上海擎感智能科技有限公司 车载网络系统及汽车
CN109525473B (zh) * 2018-11-28 2021-05-04 深圳市元征科技股份有限公司 一种mcu扩展can方法、系统、mcu及计算机介质
CN109656172B (zh) * 2018-12-24 2021-06-25 深圳市道通科技股份有限公司 一种获取波特率的方法、装置
CN110011809A (zh) * 2019-03-29 2019-07-12 深圳市元征科技股份有限公司 一种车辆诊断设备的通信方法及车辆诊断设备
KR20210077542A (ko) * 2019-12-17 2021-06-25 현대자동차주식회사 차량용 캔 네트워크 슬립 진단 장치 및 그의 캔 네트워크 슬립 진단 방법

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9002572B2 (en) * 2008-08-14 2015-04-07 Bosch Automotive Service Solutions Inc. Docked/undocked vehicle communication interface module
CN101458165A (zh) * 2008-12-30 2009-06-17 深圳市元征软件开发有限公司 汽车诊断测试接头及其实现方法
CN103293008A (zh) * 2013-06-27 2013-09-11 长城汽车股份有限公司 汽车诊断设备
CN103616886A (zh) * 2013-11-22 2014-03-05 深圳市道通科技有限公司 一种实现多通路并行汽车诊断方法及汽车诊断设备
WO2015132017A1 (de) * 2014-03-06 2015-09-11 Robert Bosch Gmbh Elektronische einheit für eine fahrzeugkommunikationsschnittstelle
CN110519144A (zh) * 2019-09-20 2019-11-29 深圳市道通科技股份有限公司 一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HE TAOYONG, WU YOUYU, GUO LIANBO: "Realization of Double CAN Controller in Display System of Vehicle", JOURNAL OF WUHAN UNIVERSITY OF TECHNOLOGY (INFORMATION & MANAGEMENT ENGINEERING), vol. 28, no. 7, 1 July 2006 (2006-07-01), pages 105 - 108, XP055792793 *
See also references of EP3817301A4

Also Published As

Publication number Publication date
CN110519144B (zh) 2021-10-15
CN110519144A (zh) 2019-11-29
EP3817301A1 (en) 2021-05-05
US11973615B2 (en) 2024-04-30
EP3817301B1 (en) 2023-11-01
EP3817301A4 (en) 2021-09-01
US20210111921A1 (en) 2021-04-15

Similar Documents

Publication Publication Date Title
WO2021052474A1 (zh) 一种汽车诊断设备与车辆建立通信的方法、装置及汽车通信接口设备
CN109656172B (zh) 一种获取波特率的方法、装置
CN108536121B (zh) 逻辑通道的建立方法、装置和交通工具通信接口vci
KR102299941B1 (ko) 오디오 비디오 브리징 네트워크의 림프-홈 작동
US20210065474A1 (en) Method for performing vehicle remote diagnosis and related devices
WO2020135863A1 (zh) 车辆中的电子控制单元的扫描方法及其汽车诊断设备
CN113406946B (zh) 汽车诊断方法及装置、汽车诊断设备
CN106970609A (zh) 车辆诊断盒的诊断方法及车辆诊断盒
CN108445860B (zh) 诊断设备、诊断请求处理方法及计算机可读存储介质
CN112165438A (zh) 一种车辆通信方法及通信系统
CN106155971A (zh) I2c总线的仲裁方法及装置
US10250434B2 (en) Electronic control apparatus
US9824052B2 (en) Backplane bus structure of communication system and board recognition method using same
CN110049144B (zh) 一种通过以太网获取网络设备端口的方法及系统
CN117135100A (zh) 一种汽车车载光纤以太网信号传输的测试系统及方法
CN112817888B (zh) Obd设备状态设置方法、装置、obd设备及存储介质
CN113285860B (zh) 一种通过主节点刷写从节点的方法和系统
CN107547692B (zh) 一种双系统之间配置ip地址和端口号的方法和装置
CN111865839B (zh) 电子控制单元的通信方法、装置、设备及计算机存储介质
US10341216B2 (en) Compliance test apparatus and method for a communication node
WO2020238287A1 (zh) 一种车载诊断装置及系统、检测方法及可读存储介质
CN214851308U (zh) 车载设备测试系统
WO2021072647A1 (zh) 车内业务切片的资源配置方法及装置、系统
CN213094238U (zh) 一种基于DoIP诊断技术的汽车诊断设备
CN212749579U (zh) 一种车辆接口数据识别装置、设备以及芯片

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2020823716

Country of ref document: EP

Effective date: 20210121

NENP Non-entry into the national phase

Ref country code: DE