CN108445860B - Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium - Google Patents

Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium Download PDF

Info

Publication number
CN108445860B
CN108445860B CN201810100774.XA CN201810100774A CN108445860B CN 108445860 B CN108445860 B CN 108445860B CN 201810100774 A CN201810100774 A CN 201810100774A CN 108445860 B CN108445860 B CN 108445860B
Authority
CN
China
Prior art keywords
transceiver
module
control switch
target
connection control
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
CN201810100774.XA
Other languages
Chinese (zh)
Other versions
CN108445860A (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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201810100774.XA priority Critical patent/CN108445860B/en
Publication of CN108445860A publication Critical patent/CN108445860A/en
Application granted granted Critical
Publication of CN108445860B publication Critical patent/CN108445860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Abstract

The embodiment of the invention discloses a diagnosis device, a diagnosis request processing method and a computer storage medium. Wherein the diagnostic device comprises: the device comprises a controller module, a transceiver module and a connection control switch module; one end of the controller module is connected with the upper computer, and the other end of the controller module is connected with one end of the control switch module; the other end of the connection control switch module is connected with one end of the transceiver module, and the other end of the transceiver module is connected with the automobile diagnosis system; the controller module receives a diagnosis request sent by the upper computer, determines a first connection instruction according to the diagnosis request, and transmits the first connection instruction to the connection control switch module; the connection control switch module determines a target transceiver from the transceiver module according to the first connection instruction, controls the target transceiver to be conducted with the controller module, and transmits a diagnosis request to the automobile diagnosis system through the target transceiver after the target transceiver is conducted. The diagnostic equipment CAN support various CAN protocols, and the protocol compatibility of the diagnostic equipment is improved.

Description

Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a diagnostic device, a diagnostic request processing method, and a computer-readable storage medium.
Background
A Controller Area Network (CAN) bus is a serial communication protocol bus for real-time applications, which CAN solve the problem of data exchange among many measurement control components in modern automobiles. The CAN protocol CAN be used for communication between various components in an automobile, thereby replacing expensive and bulky wiring harnesses.
With the popularization of automobiles, the problem of automobile maintenance also comes along. Most automobiles are currently equipped with an automobile diagnostic system that can record diagnostic data when the automobile fails. When a maintenance person performs fault detection on an automobile, the maintenance person usually selects a diagnosis device to obtain automobile diagnosis data from an automobile diagnosis system, so that fault maintenance is performed on the automobile according to the automobile diagnosis data. As shown in fig. 1, the current diagnostic device has only 2 CAN controllers and 2 CAN transceivers, and the CAN controllers and the CAN transceivers are connected in a one-to-one correspondence manner. The number of the CAN controllers and the CAN transceivers is fixed and cannot be changed, and the types of CAN protocols supported by each CAN transceiver are less. Each diagnostic device currently CAN only support a few CAN protocols. However, as the number of vehicle classes increases, the CAN protocols supported by the vehicle diagnostic systems on vehicles of different classes vary. Therefore, the CAN protocol supported by the diagnostic device is different from the CAN protocol supported by the vehicle diagnostic system, so that the diagnostic device cannot perform CAN communication with the vehicle diagnostic system, and cannot acquire vehicle diagnostic data from the vehicle diagnostic system. It can be seen that the protocol compatibility of the current diagnostic device is poor.
Disclosure of Invention
The embodiment of the invention provides a diagnostic device, a diagnostic request processing method and a computer readable storage medium, wherein the diagnostic device CAN comprise at least three CAN transceivers, and the number of the CAN transceivers is increased, so that the diagnostic device CAN support various CAN protocols, and the protocol compatibility of the diagnostic device is improved.
In one aspect, an embodiment of the present invention provides a diagnostic device, where the diagnostic device is connected to an upper computer and an automobile diagnostic system respectively; the diagnostic apparatus includes: the system comprises a controller module, a transceiver module and a connection control switch module, wherein the transceiver module comprises at least three transceivers;
one end of the controller module is connected with the upper computer, and the other end of the controller module is connected with one end of the connection control switch module; the other end of the connection control switch module is connected with one end of the transceiver module, and the other end of the transceiver module is connected with the automobile diagnosis system;
the controller module receives a diagnosis request sent by the upper computer, determines a first connection instruction according to the diagnosis request, and transmits the first connection instruction to the connection control switch module; the connection control switch module determines a target transceiver from the transceiver module according to the first connection instruction, controls the target transceiver to be conducted with the controller module, and transmits the diagnosis request to the automobile diagnosis system through the target transceiver after the target transceiver is conducted so as to obtain diagnosis data from the automobile diagnosis system.
In one embodiment, the connection control switch module comprises at least three connection control switch circuits, each of which comprises an input port and an output port; the input ports of the at least three connection control switch circuits are respectively connected with the controller module, and the output ports of the at least three connection control switch circuits are respectively connected with at least three transceivers in the transceiver module in a one-to-one correspondence manner; the number of connection control switch circuits in the connection control switch module is the same as the number of transceivers in the transceiver module.
In one embodiment, the first connection command carries level combination information, the input ports in the at least three connection control switch circuits carry port numbers, and the port numbers are in one-to-one correspondence with level bits in the level combination information; correspondingly, the connection control switch module determines, according to the first connection instruction, a specific implementation manner of the target transceiver in the transceiver module to be: the connection control switch module sequentially reads the level state of the level bit corresponding to the port number, takes the port number corresponding to the level bit with the level state being a preset level state as a target port number, takes the connection control switch circuit with the input port corresponding to the target port number as a target connection control switch circuit, and takes the transceiver connected with the target connection control switch circuit as a target transceiver.
In one embodiment, the first connection instruction carries identification information of the target transceiver; correspondingly, the connection control switch module determines, according to the first connection instruction, a specific implementation manner of the target transceiver in the transceiver module to be: the connection control switch module determines a target transceiver in the transceiver module according to the identification information.
In one embodiment, the diagnostic device further comprises a programmable switch module; the automobile diagnosis system comprises at least two input interfaces; the other end of the transceiver module is connected with the automobile diagnosis system through the program-controlled switch module; after receiving the diagnosis request, the controller module determines a second connection instruction according to the diagnosis request and transmits the second connection instruction to the program-controlled switch module; the program control switch module determines a target input interface of the automobile diagnosis system according to the second connection instruction, and connects the other end of the transceiver module with the target input interface of the automobile diagnosis system; after connection, the controller module sends the diagnosis request to the automobile diagnosis system through the target transceiver.
In one embodiment, each of the connection control switch circuits further includes a triode element or a relay element; the input port in each connection control switch circuit is a general-purpose input/output port.
In one embodiment, the number of controllers in the controller module is less than the number of transceivers in the transceiver module. On the other hand, an embodiment of the present invention provides a diagnostic request processing method, which is applied to the above diagnostic device, and the diagnostic request processing method includes:
receiving a diagnosis request sent by an upper computer, and determining a first connection instruction according to the diagnosis request;
determining a target transceiver from the transceiver module according to the first connection instruction, and controlling the target transceiver to be conducted with a controller module, wherein the transceiver module comprises at least three transceivers;
and after the target transceiver is switched on, the diagnosis request is transmitted to the automobile diagnosis system through the target transceiver so as to obtain diagnosis data from the automobile diagnosis system.
In one embodiment, the diagnostic request carries a protocol identification; correspondingly, the specific implementation manner of determining the first connection instruction according to the diagnosis request is as follows: analyzing the diagnosis request to obtain the protocol identification; matching the protocol identification with the identification of each transceiver in the transceiver module to obtain a matching result; and determining a first connection instruction according to the matching result.
In one embodiment, the first connection instruction carries level combination information. Correspondingly, the specific implementation of determining the target transceiver from the transceiver module according to the first connection instruction is as follows: sequentially reading the level states of level bits corresponding to the port numbers carried by the input ports in the at least three connection control switch circuits, taking the port number corresponding to the level bit with the level state being in a preset level state as a target port number, taking the connection control switch circuit with the input port corresponding to the target port number as a target connection control switch circuit, and taking the transceiver connected with the target connection control switch circuit as a target transceiver.
In one embodiment, the first connection instruction carries identification information of the target transceiver. Correspondingly, the specific implementation of determining the target transceiver from the transceiver module according to the first connection instruction is as follows: and determining a target transceiver in the transceiver module according to the identification information.
In one embodiment, the method further comprises: after receiving the diagnostic request, a second connection instruction is determined based on the diagnostic request. And determining a target input interface of the automobile diagnosis system according to the second connection instruction, and controlling the other end of the transceiver module to be connected with the target input interface of the automobile diagnosis system so that the target transceiver sends the diagnosis request to the automobile diagnosis system.
In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. The computer program comprises at least one program instruction, the at least one program instruction being loadable by a processor and adapted to perform the steps of:
receiving a diagnosis request sent by an upper computer, and determining a first connection instruction according to the diagnosis request;
determining a target transceiver from the transceiver module according to the first connection instruction, and controlling the target transceiver to be conducted with the controller module, wherein the transceiver module comprises at least three transceivers;
and after the target transceiver is switched on, the diagnosis request is transmitted to the automobile diagnosis system through the target transceiver so as to obtain diagnosis data from the automobile diagnosis system.
In one embodiment, the diagnostic request carries a protocol identification; correspondingly, the at least one program instruction is loaded by the processor and is further operable to perform the steps of: analyzing the diagnosis request to obtain the protocol identification; matching the protocol identification with the identification of each transceiver in the transceiver module to obtain a matching result; and determining a first connection instruction according to the matching result.
In one embodiment, the first connection instruction carries level combination information. Correspondingly, the at least one program instruction is loaded by the processor and is further operable to perform the steps of: sequentially reading the level states of level bits corresponding to the port numbers carried by the input ports in the at least three connection control switch circuits, taking the port number corresponding to the level bit with the level state being in a preset level state as a target port number, taking the connection control switch circuit with the input port corresponding to the target port number as a target connection control switch circuit, and taking the transceiver connected with the target connection control switch circuit as a target transceiver.
In one embodiment, the first connection instruction carries identification information of the target transceiver. Correspondingly, the at least one program instruction is loaded by the processor and is further operable to perform the steps of: and determining a target transceiver in the transceiver module according to the identification information.
In one embodiment, the at least one program instruction is loaded by the processor and is further operable to perform the steps of: after receiving the diagnostic request, a second connection instruction is determined based on the diagnostic request. And determining a target input interface of the automobile diagnosis system according to the second connection instruction, and controlling the other end of the transceiver module to be connected with the target input interface of the automobile diagnosis system so that the target transceiver sends the diagnosis request to the automobile diagnosis system.
In the embodiment of the invention, the diagnosis equipment is respectively connected with the upper computer and the automobile diagnosis system; the diagnostic apparatus includes: the system comprises a controller module, a transceiver module and a connection control switch module, wherein the transceiver module comprises at least three transceivers; one end of the controller module is connected with the upper computer, and the other end of the controller module is connected with one end of the connection control switch module; the other end of the connection control switch module is connected with one end of the transceiver module, and the other end of the transceiver module is connected with the automobile diagnosis system; the controller module receives a diagnosis request sent by the upper computer, determines a first connection instruction according to the diagnosis request, and transmits the first connection instruction to the connection control switch module; the connection control switch module determines a target transceiver from the transceiver module according to the first connection instruction, controls the target transceiver to be conducted with the controller module, and transmits the diagnosis request to the automobile diagnosis system through the target transceiver after the target transceiver is conducted so as to obtain diagnosis data from the automobile diagnosis system. Therefore, the diagnostic equipment in the embodiment of the invention CAN comprise at least three CAN transceivers, and the number of the CAN transceivers is increased, so that the diagnostic equipment CAN support various CAN protocols, and the protocol compatibility of the diagnostic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
FIG. 1 is a schematic diagram of a diagnostic apparatus provided in the background art;
FIG. 2 is a schematic structural diagram of a diagnostic apparatus provided in an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of another diagnostic apparatus provided in an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another diagnostic apparatus provided in an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a diagnostic apparatus according to another embodiment of the present invention;
fig. 6 is a schematic flowchart of a diagnostic request processing method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 2 is a schematic structural diagram of a diagnostic apparatus according to an embodiment of the present invention. The diagnosis equipment is respectively connected with an upper computer and an automobile diagnosis system. As shown in fig. 2, the diagnostic apparatus includes: a controller module 101, a transceiver module 103 and a connection control switch module 102, the transceiver module 103 comprising at least three transceivers. In one embodiment, the controller in the controller module 101 may be a CAN controller and the transceiver in the transceiver module 103 may be a CAN transceiver, such as a single wire CAN transceiver, a fault tolerant CAN transceiver, a high speed CAN transceiver, and the like.
One end of the controller module 101 is connected to the upper computer, and the other end of the controller module 101 is connected to one end of the connection control switch module 102; the other end of the connection control switch module 102 is connected to one end of the transceiver module 103, and the other end of the transceiver module 103 is connected to the vehicle diagnostic system.
The controller module 101 receives a diagnosis request sent by the upper computer, determines a first connection command according to the diagnosis request, and transmits the first connection command to the connection control switch module 102. The connection control switch module 102 determines a target transceiver from the transceiver module 103 according to the first connection instruction, controls the target transceiver to be connected with the controller module 101, and after the target transceiver is connected, the controller module 101 transmits the diagnosis request to the vehicle diagnosis system through the target transceiver to obtain diagnosis data from the vehicle diagnosis system. It should be noted that the number of controllers in the controller module 101 is smaller than the number of transceivers in the transceiver module 103.
In one embodiment, the upper Computer refers to a terminal that can directly issue a control command, such as a PC (Personal Computer), a mobile phone, and the like, and the vehicle diagnosis system refers to a system that can diagnose a vehicle fault, such as an OBD (On-Board Diagnostic). It should be understood that the above are examples only and are not exhaustive.
In one embodiment, the connection control switch module 102 may include at least three connection control switch circuits, each including an input port and an output port. The specific structural schematic can be seen in fig. 3. As shown in fig. 3, the input ports of the at least three connection control switch circuits are respectively connected to the controller module, and the output ports of the at least three connection control switch circuits are respectively connected to at least three transceivers in the transceiver module in a one-to-one correspondence manner; the number of connection control switch circuits in the connection control switch module is the same as the number of transceivers in the transceiver module. In one embodiment, each of the connection control switch circuits may include a transistor component or a relay component. The input port in each connection control switch circuit is a general-purpose input/output port. The embodiment of the invention uses the universal input/output port as the input port of the connection control switch circuit, thereby reducing the program complexity in the diagnostic equipment. In addition, the cost of the diagnosis equipment can be reduced because the components of the universal input/output port are cheap.
In one embodiment, the diagnostic request carries a protocol identifier, so that the controller module 101 can analyze the diagnostic request after receiving the diagnostic request sent by the upper computer to obtain the protocol identifier; matching the protocol identification with the identification of each transceiver in the transceiver module to obtain a matching result; and determining a first connection instruction according to the matching result. In one embodiment, the controller module 101 may determine the first connection instruction according to the matching result by the following two possible implementations. In one embodiment, the controller module 101 may determine that the connection control switch circuit connected to the target transceiver is the target connection control switch circuit after determining the target transceiver according to the matching result. The port number of the input port in the connection control switch circuit can correspond to the level bit one by one, and the triode component in the connection control switch circuit is set to be conducted at a high level, so that the controller can determine level combination information according to the target connection control switch circuit and load the level combination information into a first connection instruction, namely the first connection instruction carries the level combination information. In another embodiment, the controller module 101 may determine the target transceiver according to the matching result, and then load the identification information of the target transceiver into the first connection instruction, that is, the first connection instruction carries the identification information of the target transceiver. For example, after the controller module 101 determines that the fault-tolerant CAN transceiver is the target transceiver according to the matching result, the identifier of the fault-tolerant CAN transceiver is "002", so the controller module 101 may carry a level combination information of "0100" or an identification information of "002" in the first connection command.
Correspondingly, when the connection control switch module 102 determines the target transceiver from the transceiver module 103 according to the first connection command, the determination may be performed in the following two possible embodiments. In one embodiment, the first connection instruction carries level combination information, and the input ports in the at least three connection control switch circuits carry port numbers (such as GPIO1, GPIO2, GPIO3, GPIO4, etc. shown in fig. 3) that are in one-to-one correspondence with level bits in the level combination information. The connection control switch module 102 may sequentially read the level state of the level bit corresponding to the port number, use the port number corresponding to the level bit whose level state is a preset level state as a target port number, use the connection control switch circuit where the input port corresponding to the target port number is located as a target connection control switch circuit, and use the transceiver connected to the target connection control switch circuit as a target transceiver. For example, the level combination information carried by the first connection instruction is "0100", that is, the level combination has 4 level bits in total. The connection control switch module 102 may sequentially read the level states on the level bits corresponding to the port numbers according to the port numbers, where the read information is as follows: the level state of the level bit corresponding to the port number GPIO1 is low, the level state of the level bit corresponding to the port number GPIO2 is high, the level state of the level bit corresponding to the port number GPIO3 is low, and the level state of the level bit corresponding to the port number GPIO4 is low. And (4) setting the triode component to be conducted at a high level, namely, setting the level state to be at the high level. Therefore, the connection control switch module 102 may use the port number GPIO2 as a target port number, use the connection control switch circuit where the GPIO2 port is located as a target connection control switch circuit, and use the fault-tolerant CAN transceiver connected to the target connection control switch circuit as a target transceiver. In yet another embodiment, the first connection instruction carries identification information of the target transceiver; the connection control switch module 102 may determine a target transceiver in the transceiver module based on the identification information. For example, the single-wire CAN transceiver is identified as "001", the fault-tolerant CAN transceiver is identified as "002", the high-speed CAN transceiver is identified as "003", and the low-speed CAN transceiver is identified as "004". The first connection command carries identification information of "002", and then the connection control switch module 102 may determine that the fault-tolerant CAN transceiver corresponding to "002" is the target transceiver according to "002".
It should be noted that the above listed manners of determining the first connection instruction by the controller module 101 according to the matching result, and the manner of determining the target transceiver from the transceiver module 103 by the connection control switch module 102 according to the first connection instruction are only examples, and are not exhaustive.
It should also be noted that there may be more than one controller in the controller modules shown in fig. 2 and 3, and each controller may be connected to multiple transceivers in the transceiver module through a connection control switch module, as shown in fig. 4.
In the embodiment of the invention, the diagnosis equipment is respectively connected with the upper computer and the automobile diagnosis system; the diagnostic apparatus includes: a controller module 101, a transceiver module 103 and a connection control switch module 102, wherein the transceiver module 103 comprises at least three transceivers; one end of the controller module 101 is connected to the upper computer, and the other end of the controller module 101 is connected to one end of the connection control switch module 102; the other end of the connection control switch module 102 is connected to one end of the transceiver module 103, and the other end of the transceiver module 103 is connected to the vehicle diagnostic system; the controller module 101 receives a diagnosis request sent by the upper computer, determines a first connection instruction according to the diagnosis request, and transmits the first connection instruction to the connection control switch module 102; the connection control switch module 102 determines a target transceiver from the transceiver module 103 according to the first connection instruction, controls the target transceiver to be connected with the controller module 101, and after the target transceiver is connected, the controller module 101 transmits the diagnosis request to the vehicle diagnosis system through the target transceiver to obtain diagnosis data from the vehicle diagnosis system. Therefore, the diagnostic equipment in the embodiment of the invention CAN comprise at least three CAN transceivers, and the number of the CAN transceivers in the diagnostic equipment is increased, so that the diagnostic equipment CAN support various CAN protocols, and the protocol compatibility of the diagnostic equipment is improved.
Fig. 5 is a schematic structural diagram of a diagnostic apparatus according to another embodiment of the present invention. As shown in fig. 5, the diagnostic device includes a controller module 301, a connection control switch module 302, and a transceiver module 303. It should be noted that, in the embodiment of the present invention, the controller module 301, the connection control switch module 302, and the transceiver module 303 may refer to the controller module 101, the connection control switch module 102, and the transceiver module 103 in the above embodiment of the present invention, which is not described again in the embodiment of the present invention. In addition, the diagnostic device in the embodiment of the present invention may further include a programmable switch module 304, and the vehicle diagnostic system includes at least two input interfaces. The other end of the transceiver module 303 is connected to the vehicle diagnostic system through the program-controlled switch module 304.
After receiving the diagnosis request, the controller module 301 determines a second connection command according to the diagnosis request, and transmits the second connection command to the program-controlled switch module 304; the program-controlled switch module 304 determines a target input interface of the vehicle diagnostic system according to the second connection instruction, and connects the other end of the transceiver module 303 with the target input interface of the vehicle diagnostic system; after connection, the controller module 301 sends the diagnosis request to the vehicle diagnosis system through the target transceiver.
Because there are a plurality of input interfaces capable of communicating with the transceiver module 303 in the car diagnostic system according to the CAN protocol, different CAN protocols correspond to different input interfaces. Therefore, after receiving the diagnosis request, the controller module 301 determines the target input interface of the vehicle diagnosis system according to the protocol identifier carried in the diagnosis request, then determines a second connection instruction according to the information of the target input interface, and sends the second connection instruction to the program control switch module 304, so as to instruct the program control switch module 304 to connect the other end of the transceiver module with the target input interface of the vehicle diagnosis system. The second connection instruction may carry an interface number of the target input interface or other interface information, which is not limited herein.
In the embodiment of the invention, the diagnosis equipment is respectively connected with the upper computer and the automobile diagnosis system; the diagnostic apparatus includes: the system comprises a controller module 301, a connection control switch module 302, a transceiver module 303 and a program control switch module 304, wherein the transceiver module 303 comprises at least three transceivers; one end of the controller module 301 is connected to the upper computer, and the other end of the controller module 301 is connected to one end of the connection control switch module 302; the other end of the connection control switch module 302 is connected with one end of the transceiver module 303, and the other end of the transceiver module 303 is connected with one end of the program control switch module 304; the other end of the program-controlled switch module 304 is connected with the automobile diagnosis system; the controller module 301 receives a diagnosis request sent by the upper computer, and determines a first connection instruction and a second connection instruction according to the diagnosis request. Transmitting the first connection command to the connection control switch module 302, and transmitting the second connection command to the program control switch module 304; the connection control switch module 302 determines a target transceiver from the transceiver module 303 according to the first connection command, and controls the target transceiver to be conducted with the controller module 301. The program-controlled switch module 304 determines a target input interface of the vehicle diagnostic system according to the second connection instruction, and controls the target transceiver to connect with the target input interface of the vehicle diagnostic system. After the circuits in the device to be diagnosed are all turned on, the controller module 301 transmits the diagnosis request to the vehicle diagnosis system through the target transceiver to obtain the diagnosis data from the vehicle diagnosis system. Therefore, the diagnostic equipment in the embodiment of the invention CAN comprise at least three CAN transceivers, and the number of the CAN transceivers in the diagnostic equipment is increased, so that the diagnostic equipment CAN support various CAN protocols, and the protocol compatibility of the diagnostic equipment is improved.
Fig. 6 is a flowchart of a diagnostic request processing method according to an embodiment of the present invention. The diagnosis request processing method may be applied to the diagnosis apparatuses shown in fig. 2 to 5, that is, the steps of the diagnosis request processing method shown in fig. 6 may be performed by the diagnosis apparatuses shown in fig. 2 to 5. As shown in fig. 6, the diagnosis request processing method includes:
s601, receiving a diagnosis request sent by an upper computer, and determining a first connection instruction according to the diagnosis request.
In one embodiment, the diagnostic request carries a protocol identification; correspondingly, the specific implementation manner of determining the first connection instruction according to the diagnosis request is as follows: analyzing the diagnosis request to obtain the protocol identification; matching the protocol identification with the identification of each transceiver in the transceiver module to obtain a matching result; and determining a first connection instruction according to the matching result.
S602, determining a target transceiver from the transceiver module according to the first connection instruction, and controlling the target transceiver to be conducted with the controller module.
Wherein, the transceiver module comprises at least three transceivers.
In one embodiment, the first connection instruction carries level combination information. Correspondingly, the specific implementation of determining the target transceiver from the transceiver module according to the first connection instruction may be: sequentially reading the level states of level bits corresponding to the port numbers carried by the input ports in the at least three connection control switch circuits, taking the port number corresponding to the level bit with the level state being in a preset level state as a target port number, taking the connection control switch circuit with the input port corresponding to the target port number as a target connection control switch circuit, and taking the transceiver connected with the target connection control switch circuit as a target transceiver.
In yet another embodiment, the first connection instruction carries identification information of the target transceiver. Correspondingly, the specific implementation of determining the target transceiver from the transceiver module according to the first connection instruction may be: and determining a target transceiver in the transceiver module according to the identification information.
And S603, after the system is turned on, transmitting the diagnosis request to an automobile diagnosis system through the target transceiver so as to acquire diagnosis data from the automobile diagnosis system.
In one embodiment, the method further comprises: after receiving the diagnostic request, a second connection instruction is determined based on the diagnostic request. And determining a target input interface of the automobile diagnosis system according to the second connection instruction, and controlling the other end of the transceiver module to be connected with the target input interface of the automobile diagnosis system so that the target transceiver sends the diagnosis request to the automobile diagnosis system.
In the embodiment of the invention, a diagnosis request sent by an upper computer is received, and a first connection instruction is determined according to the diagnosis request; determining a target transceiver from the transceiver module according to the first connection instruction, and controlling the target transceiver to be conducted with a controller module, wherein the transceiver module comprises at least three transceivers; and after the target transceiver is switched on, the diagnosis request is transmitted to the automobile diagnosis system through the target transceiver so as to obtain diagnosis data from the automobile diagnosis system. Therefore, the diagnostic equipment in the embodiment of the invention CAN comprise at least three CAN transceivers, and the number of the CAN transceivers is increased, so that the diagnostic equipment CAN support various CAN protocols, and the protocol compatibility of the diagnostic equipment is improved.
It will be understood by those skilled in the art that all or part of the processes in the methods for implementing the embodiments described above may be implemented by hardware related to instructions of a computer program, where the program may be stored in a computer-readable storage medium, and the program includes at least one program instruction, and the at least one program instruction is loaded by a processor and used to execute the following steps:
receiving a diagnosis request sent by an upper computer, and determining a first connection instruction according to the diagnosis request;
determining a target transceiver from the transceiver module according to the first connection instruction, and controlling the target transceiver to be conducted with the controller module, wherein the transceiver module comprises at least three transceivers;
and after the target transceiver is switched on, the diagnosis request is transmitted to the automobile diagnosis system through the target transceiver so as to obtain diagnosis data from the automobile diagnosis system.
In one embodiment, the diagnostic request carries a protocol identification; correspondingly, the at least one program instruction may be loaded by a processor and may be further configured to perform the steps of: analyzing the diagnosis request to obtain the protocol identification; matching the protocol identification with the identification of each transceiver in the transceiver module to obtain a matching result; and determining a first connection instruction according to the matching result.
In one embodiment, the first connection instruction carries level combination information. Correspondingly, the at least one program instruction may be loaded by a processor and may be further configured to perform the steps of: sequentially reading the level states of level bits corresponding to the port numbers carried by the input ports in the at least three connection control switch circuits, taking the port number corresponding to the level bit with the level state being in a preset level state as a target port number, taking the connection control switch circuit with the input port corresponding to the target port number as a target connection control switch circuit, and taking the transceiver connected with the target connection control switch circuit as a target transceiver.
In one embodiment, the first connection instruction carries identification information of the target transceiver. Correspondingly, the at least one program instruction may be loaded by a processor and may be further configured to perform the steps of: and determining a target transceiver in the transceiver module according to the identification information.
In one embodiment, the at least one program instruction is loadable by a processor and is further operable to: after receiving the diagnostic request, a second connection instruction is determined based on the diagnostic request. And determining a target input interface of the automobile diagnosis system according to the second connection instruction, and controlling the other end of the transceiver module to be connected with the target input interface of the automobile diagnosis system so that the target transceiver sends the diagnosis request to the automobile diagnosis system.
In one embodiment, the computer readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the embodiment of the invention, a diagnosis request sent by an upper computer is received, and a first connection instruction is determined according to the diagnosis request; determining a target transceiver from the transceiver module according to the first connection instruction, and controlling the target transceiver to be conducted with a controller module, wherein the transceiver module comprises at least three transceivers; and after the target transceiver is switched on, the diagnosis request is transmitted to the automobile diagnosis system through the target transceiver so as to obtain diagnosis data from the automobile diagnosis system. Therefore, the diagnostic equipment in the embodiment of the invention CAN comprise at least three CAN transceivers, and the number of the CAN transceivers is increased, so that the diagnostic equipment CAN support various CAN protocols, and the protocol compatibility of the diagnostic equipment is improved.
While the invention has been described with reference to a number of embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. The diagnostic equipment is characterized in that the diagnostic equipment is respectively connected with an upper computer and an automobile diagnostic system, wherein the upper computer is a terminal which directly sends out an operation command; the diagnostic apparatus includes: the system comprises a controller module, a transceiver module and a connection control switch module, wherein the transceiver module comprises at least three transceivers; the connection control switch module comprises at least three connection control switch circuits, and each connection control switch circuit comprises an input port and an output port; the number of the connection control switch circuits in the connection control switch module is the same as the number of the transceivers in the transceiver module; wherein the content of the first and second substances,
one end of the controller module is connected with the upper computer, the input ports of the at least three connection control switch circuits are respectively connected with the controller module, the output ports of the at least three connection control switch circuits are respectively connected with at least three transceivers in the transceiver modules in a one-to-one correspondence manner, and the other ends of the transceiver modules are connected with the automobile diagnosis system;
the controller module receives a diagnosis request sent by the upper computer, determines a first connection instruction according to the diagnosis request, and transmits the first connection instruction to the connection control switch module; and the connection control switch module determines a target transceiver from the transceiver module according to the first connection instruction, controls the target transceiver to be conducted with the controller module, and transmits the diagnosis request to the automobile diagnosis system through the target transceiver after the target transceiver is conducted so as to obtain diagnosis data from the automobile diagnosis system.
2. The diagnostic apparatus according to claim 1, wherein the first connection instruction carries level combination information, the input ports in the at least three connection control switch circuits carry port numbers, and the port numbers are in one-to-one correspondence with level bits in the level combination information;
the connection control switch module determines a target transceiver from the transceiver modules according to the first connection command, including:
and the connection control switch module sequentially reads the level states of the level bits corresponding to the port numbers, takes the port numbers corresponding to the level bits with the level states being preset level states as target port numbers, takes the connection control switch circuit with the input ports corresponding to the target port numbers as a target connection control switch circuit, and takes the transceiver connected with the target connection control switch circuit as a target transceiver.
3. The diagnostic device of claim 1, wherein the first connection instruction carries identification information of the target transceiver;
the connection control switch module determines a target transceiver from the transceiver modules according to the first connection command, including:
and the connection control switch module determines a target transceiver in the transceiver module according to the identification information.
4. The diagnostic device of claim 1, further comprising a programmable switch module; the automotive diagnostic system comprises at least two input interfaces;
the other end of the transceiver module is connected with the automobile diagnosis system through the program-controlled switch module;
after receiving the diagnosis request, the controller module determines a second connection instruction according to the diagnosis request and transmits the second connection instruction to the program-controlled switch module; the program-controlled switch module determines a target input interface of the automobile diagnosis system according to the second connection instruction, and connects the other end of the transceiver module with the target input interface of the automobile diagnosis system; and after connection, the controller module sends the diagnosis request to the automobile diagnosis system through the target transceiver.
5. The diagnostic device of any one of claims 1 to 4, wherein each connection control switch circuit further comprises a triode element or a relay element;
the input port of each connection control switch circuit is a general input/output port.
6. The diagnostic device of claim 5, wherein the number of controllers in the controller module is less than the number of transceivers in the transceiver module.
7. A diagnosis request processing method applied to the diagnosis apparatus according to any one of claims 1 to 6, comprising:
receiving a diagnosis request sent by an upper computer, and determining a first connection instruction according to the diagnosis request;
determining a target transceiver from transceiver modules according to the first connection instruction, and controlling the target transceiver to be conducted with the controller module, wherein the transceiver modules comprise at least three transceivers;
and after the vehicle-mounted system is conducted, the diagnosis request is transmitted to a vehicle diagnosis system through the target transceiver so as to obtain diagnosis data from the vehicle diagnosis system.
8. The method according to claim 7, wherein the diagnosis request carries a protocol identifier; the determining a first connection instruction according to the diagnosis request comprises:
analyzing the diagnosis request to obtain the protocol identification;
matching the protocol identification with the identification of each transceiver in the transceiver module to obtain a matching result;
and determining a first connection instruction according to the matching result.
9. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to execute the diagnostic request processing method according to claim 7 or 8.
CN201810100774.XA 2018-01-31 2018-01-31 Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium Active CN108445860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810100774.XA CN108445860B (en) 2018-01-31 2018-01-31 Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810100774.XA CN108445860B (en) 2018-01-31 2018-01-31 Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108445860A CN108445860A (en) 2018-08-24
CN108445860B true CN108445860B (en) 2021-02-12

Family

ID=63191610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810100774.XA Active CN108445860B (en) 2018-01-31 2018-01-31 Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108445860B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015156A (en) * 2019-05-28 2020-12-01 上海中兴软件有限责任公司 Vehicle-mounted diagnosis device and system and detection method
CN111142504B (en) * 2019-12-30 2021-10-08 深圳移航通信技术有限公司 Bus detection device and method
CN112383547A (en) * 2020-11-13 2021-02-19 广州众诺电子技术有限公司 Data transmission method and device and imaging box
CN113453382A (en) * 2021-06-16 2021-09-28 深圳市元征未来汽车技术有限公司 Network connection method, network connection device, electronic device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971656A (en) * 2006-12-21 2007-05-30 李毅 Electronic testing system capable of managing motor vehicles and driver reliably
CN101276488A (en) * 2008-03-26 2008-10-01 中国科学院电工研究所 Vehicular recording instrument capable of implementing intelligent CAN bus communication
CN201681298U (en) * 2010-05-25 2010-12-22 金龙联合汽车工业(苏州)有限公司 On-board remote data acquisition system based on CAN bus
CN102780725A (en) * 2011-05-12 2012-11-14 上海通用汽车有限公司 Communication protocol adaption device and communication protocol adaption method for vehicle diagnosis
CN104731082A (en) * 2015-01-27 2015-06-24 深圳市元征科技股份有限公司 Interface conversion device and on-board diagnosis system
CN104750057A (en) * 2013-12-31 2015-07-01 深圳迈瑞生物医疗电子股份有限公司 Sample treatment line control system
CN105068528A (en) * 2015-07-10 2015-11-18 深圳市元征科技股份有限公司 Communication device of automobile diagnosis system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385382B (en) * 2011-10-24 2014-01-08 力帆实业(集团)股份有限公司 Vehicle fault diagnosis device
CN102566566B (en) * 2012-01-18 2013-10-30 深圳市元征软件开发有限公司 Automatic automobile diagnosis method based on data processing unit (DPU)
CN102591326B (en) * 2012-02-23 2013-10-16 深圳市元征科技股份有限公司 Interface chip for automobile diagnosis
US9633576B2 (en) * 2012-12-13 2017-04-25 Alliance Wireless Technologies, Inc. Vehicle activity information system
CN203261354U (en) * 2013-03-29 2013-10-30 深圳市凯尔卡科技有限公司 CANBUS communication multi-channel switching system
CN203858509U (en) * 2014-05-29 2014-10-01 深圳市凯尔卡科技有限公司 Automobile diagnosis communication multi-path multi-type switching system
CN203870469U (en) * 2014-06-05 2014-10-08 深圳市凯尔卡科技有限公司 Multipath switching system for automobile diagnosis communication
CN204215209U (en) * 2014-11-27 2015-03-18 江苏联固电气有限公司 For the signal conditioning circuit of data collector in drawout cubicle
CN105045147B (en) * 2015-07-10 2018-05-29 深圳市元征科技股份有限公司 The communication device of switch arrays circuit and automotive diagnostic system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971656A (en) * 2006-12-21 2007-05-30 李毅 Electronic testing system capable of managing motor vehicles and driver reliably
CN101276488A (en) * 2008-03-26 2008-10-01 中国科学院电工研究所 Vehicular recording instrument capable of implementing intelligent CAN bus communication
CN201681298U (en) * 2010-05-25 2010-12-22 金龙联合汽车工业(苏州)有限公司 On-board remote data acquisition system based on CAN bus
CN102780725A (en) * 2011-05-12 2012-11-14 上海通用汽车有限公司 Communication protocol adaption device and communication protocol adaption method for vehicle diagnosis
CN104750057A (en) * 2013-12-31 2015-07-01 深圳迈瑞生物医疗电子股份有限公司 Sample treatment line control system
CN104731082A (en) * 2015-01-27 2015-06-24 深圳市元征科技股份有限公司 Interface conversion device and on-board diagnosis system
CN105068528A (en) * 2015-07-10 2015-11-18 深圳市元征科技股份有限公司 Communication device of automobile diagnosis system

Also Published As

Publication number Publication date
CN108445860A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN108445860B (en) Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium
CN109656172B (en) Method and device for obtaining baud rate
US7493198B2 (en) Method and device for a vehicle-related telematics service
US7096101B2 (en) Method for carrying out a telediagnosis on a motor vehicle, vehicle diagnosis module and service center
JP3307215B2 (en) Failure diagnosis device for vehicle electronic control unit
CN108536121B (en) Method and device for establishing logical channel and vehicle communication interface VCI
CN104718725A (en) Relay device
CN110519144B (en) Method and device for establishing communication between automobile diagnosis equipment and vehicle and automobile communication interface equipment
US8275513B2 (en) Vehicle communications interface and method of operation thereof
CN113406946B (en) Automobile diagnosis method and device and automobile diagnosis equipment
CN112202884A (en) Data transmission method for vehicle connection interface device and related equipment
CN111142504B (en) Bus detection device and method
CN113285973A (en) Data forwarding method, device, system, vehicle and storage medium
CN112927392A (en) Communication method, vehicle communication interface device and readable storage medium
CN111913472A (en) Operation mode control method of vehicle diagnostic device and related device
JP2009035237A (en) Failure diagnosis device, and failure diagnosis method
JP3716796B2 (en) Fault diagnosis device for vehicles
CN114442590A (en) Vehicle diagnosis method, apparatus, diagnosis communication device, server, and storage medium
JP3179037B2 (en) Vehicle communication network system
CN111865839B (en) Communication method, device and equipment of electronic control unit and computer storage medium
CN112817888A (en) OBD device state setting method and device, OBD device and storage medium
CN113395264A (en) Communication connection method, apparatus, server and medium
CN212749579U (en) Vehicle interface data recognition device, equipment and chip
CN216486126U (en) Vehicle fault diagnosis device and configuration bit array circuit
CN218788164U (en) IVI testing device and testing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant