Communication protocol type detection method and device, electronic equipment and storage medium
By sending preset signals to the on-board diagnostic device, the on-board diagnostic device determines and sends communication protocol information, solving the problem of manpower and material resources connecting the diagnostic device and the on-board diagnostic system, and achieving efficient communication protocol type detection.
Patent Information
- Application Number
- CN202510259768.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-07-25
AI Technical Summary
During the vehicle diagnosis process, the communication connection between the diagnostic instrument and the on-board diagnostic system requires manual search of vehicle identification code, which consumes a lot of manpower, material resources and time and reduces work efficiency.
By sending a preset signal to the on-board diagnostic device, the on-board diagnostic device determines and sends communication protocol information. The diagnostic device determines the type of communication protocol of the vehicle based on the information, including the Ethernet connection protocol and the controller local area network protocol.
It avoids manual verification of vehicle communication protocol types, improves work efficiency, and simplifies the communication connection process between the diagnostic instrument and the on-board diagnostic system.
Smart Images

Figure CN120370879A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the technical field of information processing, and particularly relates to a method, apparatus, electronic device, and storage medium for detecting a communication protocol type. Background Art
[0002] During the diagnosis process of a vehicle, a diagnostic instrument is connected to an on-vehicle diagnostic system to achieve vehicle diagnosis, and communication between the diagnostic instrument and the on-vehicle diagnostic system needs to be completed before diagnosis. Since different communication protocols result in different operations of the diagnostic instrument when connecting to the on-vehicle diagnostic system, it is very important to determine the type of communication protocol.
[0003] In the related art, when the diagnostic instrument establishes a communication connection with the on-vehicle diagnostic system, it is necessary to manually search for the vehicle identification code of the entire vehicle, and then send the vehicle identification code to the vehicle's original equipment manufacturer. The communication protocol type corresponding to the vehicle is obtained from the R & D personnel or after-sales end of the original equipment manufacturer, and then a communication connection between the diagnostic instrument and the on-vehicle diagnostic system can be established according to the obtained communication protocol type. This process requires a large amount of manpower and material resources, and the cross-company collaborative work time is relatively long, greatly reducing the work efficiency. Summary of the Invention
[0004] Embodiments of the present disclosure provide a solution to solve the problem in the related art that a large amount of manpower and material resources are required in the process of establishing a communication connection between a diagnostic instrument and an on-vehicle diagnostic system, and the cross-company collaborative work time is relatively long, greatly reducing the work efficiency.
[0005] In a first aspect, the present disclosure provides a method for detecting a communication protocol type, which is applicable to a diagnostic device connected to an on-vehicle diagnostic device. The method includes:
[0006] Sending a preset signal to the on-vehicle diagnostic device so that the on-vehicle diagnostic device determines communication protocol information of the vehicle in response to the preset signal, where the communication protocol information is used to indicate the communication protocol type of the vehicle;
[0007] Receiving the communication protocol information sent by the on-vehicle diagnostic device, and determining the communication protocol type of the vehicle based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a controller area network protocol.
[0008] In a second aspect, the present disclosure provides a method for detecting a communication protocol type, which is applicable to an on-vehicle diagnostic device connected to a diagnostic device. The method includes:
[0009] Determining communication protocol information of the vehicle in response to the preset signal received from the diagnostic device, where the communication protocol information is used to indicate the communication protocol type of the vehicle;
[0010] Send the communication protocol type to the diagnostic device so that the diagnostic device determines the communication protocol type of the vehicle based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol.
[0011] In a third aspect, the present disclosure provides a communication protocol type detection device applicable to a diagnostic device, where the diagnostic device is connected to an on-vehicle diagnostic device, and the device includes:
[0012] A first sending unit configured to send a preset signal to the on-vehicle diagnostic device so that the on-vehicle diagnostic device determines communication protocol information of the vehicle in response to the preset signal, where the communication protocol information is used to indicate the communication protocol type of the vehicle;
[0013] A first determining unit configured to receive the communication protocol information sent by the on-vehicle diagnostic device and determine the communication protocol type of the vehicle based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol.
[0014] In a fourth aspect, the present disclosure provides a communication protocol type detection device applicable to an on-vehicle diagnostic device, where the on-vehicle diagnostic device is connected to a diagnostic device, and the device includes:
[0015] A second determining unit configured to determine communication protocol information of the vehicle in response to the preset signal received from the diagnostic device, where the communication protocol information is used to indicate the communication protocol type of the vehicle;
[0016] A second sending unit configured to send the communication protocol type to the diagnostic device so that the diagnostic device determines the communication protocol type of the vehicle based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol.
[0017] In a fifth aspect, the present disclosure provides an electronic device, including:
[0018] A processor; and
[0019] A memory configured to store executable instructions of the processor;
[0020] Wherein, the processor is configured to execute any method in the first aspect or the second aspect or any possible implementation manner of the first aspect and any possible implementation manner of the second aspect by executing the executable instructions.
[0021] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any method in the first aspect or the second aspect or any possible implementation manner of the first aspect and any possible implementation manner of the second aspect is implemented.
[0022] For the technical solution provided by the present disclosure, a preset signal is sent to the on-vehicle diagnostic device, so that the on-vehicle diagnostic device determines communication protocol information of the vehicle in response to the preset signal, and the communication protocol information is used to indicate the communication protocol type of the vehicle; the communication protocol information sent by the on-vehicle diagnostic device is received, and the communication protocol type of the vehicle is determined based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol. For the technical solutions provided by the embodiments of the present disclosure, a preset signal is sent to the on-vehicle diagnostic device through a diagnostic device, the on-vehicle diagnostic device responds to the preset signal to determine the communication protocol information of the vehicle, and then sends the communication protocol information to the diagnostic device, further enabling the diagnostic device to determine the communication protocol type of the vehicle based on the communication protocol information, avoiding manual verification of the communication protocol type of the vehicle and improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the following drawings are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts. In the drawings:
[0024] Figure 1 It is a schematic flowchart of a method for detecting a communication protocol type provided by an embodiment of the present disclosure;
[0025] Figure 2 It is a schematic flowchart of another method for detecting a communication protocol type provided by an embodiment of the present disclosure;
[0026] Figure 3 It is a schematic structural diagram of a BOD interface provided by an embodiment of the present disclosure;
[0027] Figure 4 It is a schematic structural diagram of a device for detecting a communication protocol type provided by an embodiment of the present disclosure;
[0028] Figure 5 It is a schematic structural diagram of another device for detecting a communication protocol type provided by an embodiment of the present disclosure;
[0029] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Specific Embodiments
[0030] Embodiments of the present disclosure will be described in detail below. Examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present disclosure, and should not be construed as a limitation of the present disclosure.
[0031] Terms such as "first" and "second" in the description, claims, and drawings of the embodiments of the present disclosure are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0032] The communication protocol type detection method provided by the embodiments of the present disclosure can run on a terminal device or a server. Among them, the terminal device can be a local terminal device, including wearable devices such as VR (Virtual Reality), AR (Augmented Reality), and MR (Mixed Reality). Among them, the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0033] During the diagnosis process of a vehicle, the vehicle is diagnosed by connecting a diagnostic instrument to the on-vehicle diagnostic system. Before the diagnosis, the communication work between the diagnostic instrument and the on-vehicle diagnostic system needs to be completed. Since different communication protocols result in different operations of the diagnostic instrument when connecting to the on-vehicle diagnostic system, it is very important to determine the type of communication protocol.
[0034] In the related art, when establishing a communication connection between a diagnostic instrument and an on-vehicle diagnostic system, it is necessary to manually search for the vehicle identification code of the entire vehicle, and then send the vehicle identification code to the vehicle's original equipment manufacturer. The communication protocol type corresponding to the vehicle is obtained from the R & D personnel or the after-sales end of the original equipment manufacturer. Only then can a communication connection be established between the diagnostic instrument and the on-vehicle diagnostic system according to the obtained communication protocol type. This process requires a large amount of manpower and material resources, and the cross-company collaborative work time is relatively long, greatly reducing the work efficiency.
[0035] The following uses specific embodiments to elaborate in detail on the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems. The following several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present disclosure will be described below with reference to the accompanying drawings.
[0036] Figure 1 FIG. 5 is a schematic flowchart of a method for detecting a communication protocol type provided by an exemplary embodiment of the present disclosure. This method can be applied to an electronic device with data processing capabilities. Taking the application of this method to a diagnostic device as an example, the diagnostic device is connected to an on-vehicle diagnostic device. This solution at least includes the following steps S101 - S102:
[0037] S101, send a preset signal to the on-vehicle diagnostic device so that the on-vehicle diagnostic device determines the communication protocol information of the vehicle in response to the preset signal.
[0038] In some embodiments, the communication protocol information is used to indicate the communication protocol type of the vehicle.
[0039] In some embodiments, the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol.
[0040] Among them, the Controller Area Network protocol refers to the CAN (Controller Area Network) protocol, which is mainly used for automotive computer control systems and embedded industrial control local area networks.
[0041] In some embodiments, a communication interface is provided on the on-vehicle diagnostic device, and the diagnostic device is connected to the on-vehicle diagnostic device through the communication interface.
[0042] Among them, the communication interface refers to an OBD (On-Board Diagnostics) interface.
[0043] Specifically, in actual operation, the diagnostic device is inserted into the OBD interface of the on-vehicle diagnostic device. Among them, the OBD interface has a fixed structure, and the OBD interfaces of different vehicles are the same, as Figure 3 shown.
[0044] In some embodiments, sending a preset signal to the on-vehicle diagnostic device includes: sending a preset signal to the on-vehicle diagnostic device through the 6 / 14 pins of the communication interface.
[0045] Specifically, in combination with Figure 3As shown, when the diagnostic device is inserted into the OBD interface of the vehicle diagnostic device, the diagnostic device will automatically send a preset signal to the vehicle diagnostic device through the 6 / 14 pins on the OBD interface.
[0046] Among them, the preset signal is a DID of 0xF020.
[0047] Specifically, 0xF020 is a specific Data Identifier (DID), that is, a data identifier.
[0048] In the related art, DID is used to identify specific data items in diagnostic communication. These data items are usually related to the vehicle's electronic control unit (ECU) and contain information about the vehicle state, sensor readings, control parameters, etc. In actual diagnostic services, DID is used to read or write data in the ECU.
[0049] S102, receive the communication protocol information sent by the vehicle diagnostic device, and determine the communication protocol type of the vehicle based on the communication protocol information.
[0050] In some embodiments, the communication protocol type includes an Ethernet connection protocol and a controller area network protocol.
[0051] In some embodiments, the method further includes: reading the diagnostic data of the vehicle based on the communication protocol type. Specifically, after determining the communication protocol type according to the above step S102, the diagnostic device can directly read the diagnostic data collected in the vehicle diagnostic device. Among them, the diagnostic data may include: relevant data such as vehicle speed, fuel consumption, central locking data, and fuel pressure.
[0052] In some embodiments, the method further includes: sending the diagnostic data to a third device for the third device to display for relevant personnel to view.
[0053] Among them, the third device may be a mobile phone or other electronic device that can view data.
[0054] Specifically, relevant personnel can view the diagnostic data through the third device, and then determine whether there is a problem with the currently diagnosed vehicle, which is conducive to further processing of the vehicle.
[0055] The technical solution provided by the present disclosure sends a preset signal to the vehicle diagnostic device, so that the vehicle diagnostic device determines the communication protocol information of the vehicle in response to the preset signal, and the communication protocol information is used to indicate the type of communication protocol of the vehicle; receives the communication protocol information sent by the vehicle diagnostic device, and determines the type of communication protocol of the vehicle based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol. The technical solutions provided by the embodiments of the present disclosure send a preset signal from a diagnostic device to a vehicle diagnostic device, and the vehicle diagnostic device responds to the preset signal to determine the communication protocol information of the vehicle, and then sends the communication protocol information to the diagnostic device, further enabling the diagnostic device to determine the type of communication protocol of the vehicle based on the communication protocol information, avoiding manual verification and improving work efficiency.
[0056] Figure 2 FIG. 4 is a schematic flowchart of another method for detecting a communication protocol type provided by an exemplary embodiment of the present disclosure. This method can be applied to an electronic device with data processing capabilities. Taking the application of this method to a vehicle diagnostic device as an example, the vehicle diagnostic device is connected to a diagnostic device, and this solution at least includes the following steps S201-S202:
[0057] S201, in response to the preset signal received from the diagnostic device, determine the communication protocol information of the vehicle.
[0058] In some embodiments, the communication protocol information is used to indicate the type of communication protocol of the vehicle.
[0059] In some embodiments, a communication interface is provided on the vehicle diagnostic device, and the diagnostic device is connected to the vehicle diagnostic device through the communication interface. Among them, for the specific structure of the communication interface, refer to the above, and details will not be elaborated here.
[0060] In some embodiments, in response to the preset signal received from the diagnostic device, determining the communication protocol information of the vehicle includes: receiving the preset signal sent by the diagnostic device through the edge node of the communication interface, and in response to the preset signal, determining the communication protocol information of the vehicle.
[0061] Among them, the edge node refers to the gateway of the vehicle diagnostic device.
[0062] Specifically, as shown in Figure 3 FIG. 5, the edge node is directly connected to the 6 / 14 pins of the communication interface, and the diagnostic device sends a preset signal to the edge node through the 6 / 14 pins of the communication interface.
[0063] In some embodiments, the communication protocol information includes first protocol information or second protocol information.
[0064] Among them, the first protocol information indicates that the communication protocol type is Ethernet protocol, and the second protocol information indicates that the communication protocol type is Controller Area Network protocol;
[0065] In some embodiments, in response to a preset signal sent by the received diagnostic device, determining the communication protocol information of the vehicle includes steps S11 - S13:
[0066] S11, in response to a preset signal sent by the received diagnostic device, detect whether the PIN8 pin of the communication interface is connected to the vehicle-mounted controller in the on-vehicle diagnostic device and whether the voltage of the PIN8 pin is not lower than 5V.
[0067] S12, if it is detected that the PIN8 pin is connected to the vehicle-mounted controller and the voltage of the PIN8 pin is not lower than 5V, then determine it as the first protocol information.
[0068] S13, if it is detected that the PIN8 pin is not connected to the vehicle-mounted controller or the voltage of the PIN8 pin is lower than 5V, then determine it as the second protocol information.
[0069] S202, send the communication protocol information to the diagnostic device so that the diagnostic device determines the communication protocol type of the vehicle based on the communication protocol information.
[0070] Specifically, according to the first protocol information or the second protocol information determined according to steps S11 - S13, send the communication protocol information to the diagnostic device.
[0071] In some embodiments, the communication protocol type includes Ethernet connection protocol and Controller Area Network protocol.
[0072] In some embodiments, sending the communication protocol type to the diagnostic device includes: sending the communication protocol information to the diagnostic device through the edge node of the communication interface.
[0073] To better understand the embodiments of this solution, an embodiment is given as follows:
[0074] Directly insert the diagnostic device into the OBD interface of the vehicle diagnostic device, automatically send a preset signal to the vehicle diagnostic device through the 6 / 14 pins. After the vehicle diagnostic device receives the preset signal, it will determine the communication protocol information of the vehicle, and send the communication protocol information to the diagnostic device through the edge node of the OBD interface. Then, the diagnostic device determines the communication protocol type of the current vehicle according to the communication protocol information, and realizes the communication connection with the vehicle diagnostic device. By this method, manual verification of the communication protocol type of the vehicle is avoided, and the work efficiency is improved.
[0075] In the technical solution provided by the present disclosure, in response to a preset signal received from the diagnostic device, the communication protocol information of the vehicle is determined, and the communication protocol information is used to indicate the type of the vehicle's communication protocol; the communication protocol information is sent to the diagnostic device so that the diagnostic device determines the type of the vehicle's communication protocol based on the communication protocol information, and the communication protocol types include Ethernet connection protocol and Controller Area Network protocol. In the technical solutions provided by the embodiments of the present disclosure, the diagnostic device sends a preset signal to the on-vehicle diagnostic device, and the on-vehicle diagnostic device responds to the preset signal to determine the communication protocol information of the vehicle, and then sends the communication protocol information to the diagnostic device, further enabling the diagnostic device to determine the type of the vehicle's communication protocol based on the communication protocol information, avoiding manual verification and improving work efficiency.
[0076] Figure 4 FIG. is a schematic structural diagram of a communication protocol type detection device provided by an exemplary embodiment of the present disclosure;
[0077] Among them, the device is applicable to a diagnostic device, and the diagnostic device is connected to an on-vehicle diagnostic device, and includes: a first sending unit 301 and a first determining unit 302;
[0078] The first sending unit 301 is configured to send a preset signal to the on-vehicle diagnostic device so that the on-vehicle diagnostic device determines the communication protocol information of the vehicle in response to the preset signal, and the communication protocol information is used to indicate the type of the vehicle's communication protocol;
[0079] The first determining unit 302 is configured to receive the communication protocol information sent by the on-vehicle diagnostic device and determine the type of the vehicle's communication protocol based on the communication protocol information, and the communication protocol types include Ethernet connection protocol and Controller Area Network protocol.
[0080] In some embodiments, a communication interface is provided on the on-vehicle diagnostic device, and the diagnostic device is connected to the on-vehicle diagnostic device through the communication interface;
[0081] In some embodiments, the device is configured to send a preset signal to the on-vehicle diagnostic device, and specifically:
[0082] Send a preset signal to the on-vehicle diagnostic device through the 6 / 14 pins of the communication interface.
[0083] In some embodiments, the device is further configured to:
[0084] Read the diagnostic data of the vehicle based on the communication protocol type.
[0085] In some embodiments, the device is further configured to:
[0086] Send the diagnostic data to a third device for the third device to display for relevant personnel to view.
[0087] The technical solution provided by the present disclosure sends a preset signal to the on-vehicle diagnostic device so that the on-vehicle diagnostic device determines the communication protocol information of the vehicle in response to the preset signal, and the communication protocol information is used to indicate the type of communication protocol of the vehicle; receive the communication protocol information sent by the on-vehicle diagnostic device, and determine the type of communication protocol of the vehicle based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol. The technical solutions provided by the embodiments of the present disclosure send a preset signal from a diagnostic device to an on-vehicle diagnostic device, and the on-vehicle diagnostic device responds to the preset signal to determine the communication protocol information of the vehicle, and then sends the communication protocol information to the diagnostic device, further enabling the diagnostic device to determine the type of communication protocol of the vehicle based on the communication protocol information, avoiding manual verification and improving work efficiency.
[0088] Figure 5 It is a schematic structural diagram of another communication protocol type detection device provided by an exemplary embodiment of the present disclosure;
[0089] Among them, the device is applicable to an on-vehicle diagnostic device, and the on-vehicle diagnostic device is connected to a diagnostic device, and includes: a second sending unit 401 and a second determining unit 402;
[0090] The second determining unit 402 is configured to determine the communication protocol information of the vehicle in response to the preset signal sent by the diagnostic device received, and the communication protocol information is used to indicate the type of communication protocol of the vehicle;
[0091] The second sending unit 401 is configured to send the communication protocol information to the diagnostic device so that the diagnostic device determines the type of communication protocol of the vehicle based on the communication protocol information, and the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol.
[0092] In some embodiments, a communication interface is provided on the on-vehicle diagnostic device, and the diagnostic device is connected to the on-vehicle diagnostic device through the communication interface;
[0093] In some embodiments, the device is configured to determine the communication protocol information of the vehicle in response to the preset signal sent by the diagnostic device received, and specifically, the device is configured to:
[0094] Receive the preset signal sent by the diagnostic device through an edge node of the communication interface, and determine the communication protocol information of the vehicle in response to the preset signal.
[0095] In some embodiments, the device is used to send the communication protocol information to the diagnostic device. Specifically, the device is configured to:
[0096] Send the communication protocol information to the diagnostic device through the edge node of the communication interface.
[0097] In some embodiments, the communication protocol information includes first protocol information or second protocol information. The first protocol information indicates that the communication protocol type is Ethernet protocol, and the second protocol information indicates that the communication protocol type is Controller Area Network protocol;
[0098] In some embodiments, the device is used to determine the communication protocol information of the vehicle in response to a preset signal sent by the received diagnostic device. Specifically, the device is configured to:
[0099] In response to the preset signal sent by the received diagnostic device, detect whether the PIN8 pin of the communication interface is connected to the vehicle-mounted controller in the on-vehicle diagnostic device and whether the voltage of the PIN8 pin is not lower than 5V;
[0100] If it is detected that the PIN8 pin is connected to the vehicle-mounted controller and the voltage of the PIN8 pin is not lower than 5V, it is determined as the first protocol information;
[0101] If it is detected that the PIN8 pin is not connected to the vehicle-mounted controller or the voltage of the PIN8 pin is lower than 5V, it is determined as the second protocol information.
[0102] The technical solution provided by the present disclosure determines the communication protocol information of the vehicle in response to a preset signal sent by the received diagnostic device. The communication protocol information is used to indicate the communication protocol type of the vehicle; send the communication protocol information to the diagnostic device so that the diagnostic device determines the communication protocol type of the vehicle based on the communication protocol information. The communication protocol type includes Ethernet connection protocol and Controller Area Network protocol. The technical solutions provided by the embodiments of the present disclosure send a preset signal from the diagnostic device to the on-vehicle diagnostic device. The on-vehicle diagnostic device responds to the preset signal, determines the communication protocol information of the vehicle, and then sends the communication protocol information to the diagnostic device, further enabling the diagnostic device to determine the communication protocol type of the vehicle based on the communication protocol information, avoiding manual verification and improving work efficiency.
[0103] It should be understood that the device embodiments and the method embodiments can correspond to each other, and similar descriptions can refer to the method embodiments. To avoid repetition, it will not be elaborated here. Specifically, the device can execute the above method embodiments, and the foregoing and other operations and / or functions of each module in the device are respectively for the corresponding processes in each method in the above method embodiments. For the sake of brevity, it will not be elaborated here.
[0104] In the above, the apparatus according to the embodiments of the present disclosure has been described from the perspective of functional modules in combination with the accompanying drawings. It should be understood that the functional modules can be implemented in the form of hardware, or in the form of instructions in software, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in the present disclosure can be completed by the integrated logic circuit in the hardware in the processor and / or instructions in the form of software. The steps of the method disclosed in combination with the embodiments of the present disclosure can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps in the above method embodiments.
[0105] Figure 6 is a schematic block diagram of an electronic device provided by the embodiments of the present disclosure. The electronic device may include:
[0106] A memory 501 and a processor 502. The memory 501 is used to store a computer program and transmit the program code to the processor 502. In other words, the processor 502 can call and run the computer program from the memory 501 to implement the method in the embodiments of the present disclosure.
[0107] For example, the processor 502 can be used to execute the above method embodiments according to the instructions in the computer program.
[0108] In some embodiments of the present disclosure, the processor 502 may include, but is not limited to:
[0109] A general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
[0110] In some embodiments of the present disclosure, the memory 501 includes, but is not limited to:
[0111] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be Read-Only Memory (ROM), Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or flash memory. The volatile memory can be Random Access Memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double DataRate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synch link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0112] In some embodiments of the present disclosure, the computer program may be divided into one or more modules, which are stored in the memory 501 and executed by the processor 502 to complete the method provided by the present disclosure. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0113] As Figure 6 shown, the electronic device may further include:
[0114] A transceiver 503, which can be connected to the processor 502 or the memory 501.
[0115] Among them, the processor 502 can control the transceiver 503 to communicate with other devices. Specifically, it can send information or data to other devices, or receive information or data sent by other devices. The transceiver 503 can include a transmitter and a receiver. The transceiver 503 may further include an antenna, and the number of antennas can be one or more.
[0116] It should be understood that the components in the electronic device are connected through a bus system. Among them, the bus system includes, in addition to the data bus, a power bus, a control bus, and a status signal bus.
[0117] The present disclosure also provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a computer, the computer is enabled to execute the methods in the above method embodiments. Or rather, the embodiments of the present disclosure also provide a computer program product containing instructions. When the instructions are executed by a computer, the computer is enabled to execute the methods in the above method embodiments.
[0118] When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present disclosure are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, a computer, a server, or a data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or a wireless manner (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that integrates one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital video disc (DVD)), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0119] Those of ordinary skill in the art can realize that the modules and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0120] In several embodiments provided by the present disclosure, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections between each other can be through some interfaces. The indirect couplings or communication connections of the devices or modules can be in electrical, mechanical, or other forms.
[0121] The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical modules, that is, they 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 purpose of the solution of this embodiment. For example, in each embodiment of the present disclosure, the various functional modules can be integrated in a processing module, or each module can exist physically alone, or two or more modules can be integrated in one module.
[0122] The above are only the specific implementation manners of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present disclosure can easily think of changes or substitutions, which should all be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A communication protocol type detection method, applicable to a diagnostic device, the diagnostic device being connected to an on-vehicle diagnostic device, characterized in that, The method includes: Sending a preset signal to the on-vehicle diagnostic device, so that the on-vehicle diagnostic device determines communication protocol information of the vehicle in response to the preset signal, and the communication protocol information is used to indicate the type of communication protocol of the vehicle; Receiving the communication protocol information sent by the on-vehicle diagnostic device, and determining the type of communication protocol of the vehicle based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol.
2. The method according to claim 1, characterized in that, A communication interface is provided on the on-vehicle diagnostic device, and the diagnostic device is connected to the on-vehicle diagnostic device through the communication interface; Sending a preset signal to the on-vehicle diagnostic device includes: Sending a preset signal to the on-vehicle diagnostic device through pins 6 / 14 of the communication interface.
3. A method for determining a communication protocol type, applicable to an on-vehicle diagnostic device, the on-vehicle diagnostic device being connected to a diagnostic equipment, characterized in that, The method includes: Determining communication protocol information of the vehicle in response to the preset signal sent by the diagnostic device, where the communication protocol information is used to indicate the type of communication protocol of the vehicle; Sending the communication protocol information to the diagnostic device, so that the diagnostic device determines the type of communication protocol of the vehicle based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol.
4. The method according to claim 3, wherein A communication interface is provided on the on-vehicle diagnostic device, and the diagnostic device is connected to the on-vehicle diagnostic device through the communication interface; Determining communication protocol information of the vehicle in response to the preset signal sent by the diagnostic device includes: Receiving the preset signal sent by the diagnostic device through an edge node of the communication interface, and determining the communication protocol information of the vehicle in response to the preset signal.
5. The method according to claim 4, characterized in that, Sending the communication protocol information to the diagnostic device includes: Sending the communication protocol information to the diagnostic device through an edge node of the communication interface.
6. The method according to claim 4, characterized in that, The communication protocol information includes first protocol information or second protocol information, the first protocol information indicates that the communication protocol type is an Ethernet protocol, and the second protocol information indicates that the communication protocol type is a Controller Area Network protocol; Determining communication protocol information of the vehicle in response to the preset signal sent by the diagnostic device includes: In response to the preset signal sent by the diagnostic device, detecting whether pin PIN8 of the communication interface is connected to an in-vehicle controller in the on-vehicle diagnostic device and whether the voltage of pin PIN8 is not lower than 5V; If it is detected that pin PIN8 is connected to the in-vehicle controller and the voltage of pin PIN8 is not lower than 5V, then determine it as the first protocol information; If it is detected that pin PIN8 is not connected to the in-vehicle controller or the voltage of pin PIN8 is lower than 5V, then determine it as the second protocol information.
7. A communication protocol type detection device, applicable to a diagnostic device, the diagnostic device being connected to an on-vehicle diagnostic device, characterized in that The device includes: A first sending unit, configured to send a preset signal to the on-vehicle diagnostic device, so that the on-vehicle diagnostic device determines communication protocol information of the vehicle in response to the preset signal, and the communication protocol information is used to indicate the type of communication protocol of the vehicle; A first determination unit, configured to receive the communication protocol information sent by the on-vehicle diagnostic device, and determine a communication protocol type of the vehicle based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol.
8. A communication protocol type detection device, applicable to an on-vehicle diagnostic device, the on-vehicle diagnostic device being connected to a diagnostic device, characterized in that, The device includes: A second determination unit, configured to determine communication protocol information of the vehicle in response to receiving a preset signal sent by the diagnostic device, where the communication protocol information is used to indicate a communication protocol type of the vehicle; A second sending unit, configured to send the communication protocol information to the diagnostic device, so that the diagnostic device determines a communication protocol type of the vehicle based on the communication protocol information, where the communication protocol type includes an Ethernet connection protocol and a Controller Area Network protocol.
9. An electronic device, characterized in that, It includes: A processor; And A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the method according to any one of claims 1-6 by executing the executable instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the method according to any one of claims 1-6 is implemented.