Vehicle detection method and system based on custom protocol

Through the vehicle detection method with customized protocol, unified control and communication of detection equipment is achieved, which solves the problems of low communication efficiency and poor collaborative working ability in the existing technology, improves detection efficiency and accuracy, and enhances the flexibility and adaptability of the system.

CN120658801APending Publication Date: 2025-09-16VOYAH AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510769863.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-10
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

Existing vehicle detection equipment uses different standard protocols for communication, resulting in low communication efficiency, poor collaborative working ability, and difficulty in adapting to complex and changing communication needs.

Method used

A vehicle detection method using a custom protocol configures the operating parameters of the detection equipment through the domain control platform, and sends the operating parameters to the industrial control PC through the preset domain control protocol. The protocol conversion module is used to convert the parameters into a format executable by the detection equipment, realizing unified control and communication of the detection equipment.

Benefits of technology

It improves the efficiency and accuracy of vehicle detection, enhances the collaborative working ability between devices, improves the flexibility and adaptability of the system, reduces the dependence on dedicated hardware, and reduces system costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658801A_ABST
    Figure CN120658801A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle detection method and system based on a user-defined protocol, operation parameters of detection equipment are configured through a domain control platform, the operation parameters are sent to a corresponding industrial control PC terminal through a preset domain control protocol, and a data structure of the domain control protocol comprises user-defined data characteristics, ID identification and code definition; and converting the operation parameters into a protocol format which can be executed by the detection equipment through a protocol conversion module in the industrial control PC terminal, and sending the protocol format to the corresponding detection equipment, so that the detection equipment operates according to the operation parameters to carry out vehicle detection. All on-site detection devices are uniformly controlled through the domain control platform, interactive control over all functional modules of the detection devices is achieved, the control method effectively improves the flexibility of the detection system, and the domain control platform is supported by a self-defined domain control protocol to independently develop and design operation parameters of the detection devices according to detection requirements; the vehicle detection efficiency and accuracy can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle detection technology, and in particular to a vehicle detection method and system based on a custom protocol. Background Art

[0002] With the rapid development of intelligent and electrified vehicles, the demand for various end-of-line tests related to final assembly of complete vehicles is increasing. Different vehicle models have different testing requirements, and the control methods and communication protocols of testing equipment from different manufacturers and types also vary. During vehicle testing and production, communication between devices typically relies on standard protocols, which are difficult to meet complex and changing communication requirements, resulting in low communication efficiency and poor device interoperability.

[0003] Commonly used standard protocols for device communication include CAN, Ethernet, and Modbus. Different devices, or even different modules within the same device, use different communication protocols. Using these protocols in vehicle inspection processes presents the following challenges: 1. Standard protocols are typically designed for general use and cannot be optimized for specific scenarios, resulting in low communication efficiency. 2. Different devices use different communication protocols, leading to poor interoperability. 3. Standard protocols have limited scalability and flexibility, making them difficult to adapt to today's complex and ever-changing communication needs.

[0004] Therefore, a method is urgently needed to solve the above technical problems. Summary of the Invention

[0005] The present application provides a vehicle detection method and system based on a custom protocol, which can solve the technical problems in the prior art that the detection equipment used for vehicle detection adopts different standard protocols for communication, has low communication efficiency between devices, and has poor collaborative working ability.

[0006] In a first aspect, an embodiment of the present application provides a vehicle detection method based on a custom protocol, the vehicle detection method based on the custom protocol comprising: The operating parameters of the detection equipment are configured through the domain control platform, and the operating parameters are sent to the corresponding industrial control PC through a preset domain control protocol, wherein the data structure of the domain control protocol includes customized data characteristics, ID identification and code definition; The operating parameters are converted into a protocol format executable by the detection device through a protocol conversion module in the industrial control PC, and sent to the corresponding detection device, so that the detection device can perform vehicle detection according to the operating parameters.

[0007] In conjunction with the first aspect, in one embodiment, after converting the operating parameters into a protocol format executable by the detection device through a protocol conversion module in the industrial control PC and sending the protocol to the corresponding detection device so that the detection device performs vehicle detection according to the operating parameters, the method further includes: The detection results fed back by the detection equipment are received through the industrial control PC, and the detection results are converted into the format of the domain control protocol through the protocol conversion module and then sent to the domain control platform.

[0008] In conjunction with the first aspect, in one embodiment, when a new detection device is added, configuring the new detection device includes the following steps: Decompose the hardware and testing process of the newly added testing equipment through the industrial control PC; According to the data structure of the domain control protocol, the detection process and operating parameters of the newly added detection device obtained by decomposition are configured in the protocol conversion module, and the configured detection process and operating parameters are sent to the domain control platform to connect the newly added detection device to the domain control platform.

[0009] In conjunction with the first aspect, in one embodiment, the data structure of the domain control protocol includes: A 1-byte version field, which is used to indicate the version number of the domain control protocol; A 1-byte version inversion field, which is used to indicate the inverted value of the version field; 2-byte data type field, which is used to indicate the domain control protocol; 4-byte data length field, which is used to indicate the total length of the subsequent fields; 2-byte source station ID field, which is used to indicate the station number of the data sender; 2-byte target station ID field, which is used to indicate the station number of the data receiver; 1-byte service identification ID field, which is used to indicate the service type of the detection device; 2-byte target device ID field, which is used to indicate the unique number of the detection device; 1-byte function code field, which is used to indicate the functional operation of the functional module in the detection device; 4-byte fault code field, which is used to indicate the fault information of the test process or detection equipment; The N-byte transmission data field is used to indicate the actual data content of the transmission.

[0010] In combination with the first aspect, in one embodiment, the first byte of the source workstation ID field and the target workstation ID field both represent the detection production line, the first 4 characters of the second byte represent the workstation in the detection production line, and the last 4 characters are the function code.

[0011] In conjunction with the first aspect, in one embodiment, the method further includes: The protocol conversion module dynamically adjusts the communication rate, data packet size and retransmission mechanism according to the communication requirements and communication conditions of the domain control platform, industrial control PC and the detection equipment.

[0012] In conjunction with the first aspect, in one embodiment, the method further includes: The protocol conversion module automatically switches the communication mode to wired communication or wireless communication according to changes in the network environment.

[0013] In a second aspect, an embodiment of the present application provides a vehicle detection system based on a custom protocol, the vehicle detection system based on the custom protocol comprising: A domain control platform, which is used to configure the operating parameters of the detection equipment and send the operating parameters to the corresponding industrial control PC through a preset domain control protocol, wherein the data structure of the domain control protocol includes customized data characteristics, ID identification and code definition; The industrial control PC is used to convert the operating parameters into a protocol format that can be executed by the detection device through a protocol conversion module, and send it to the corresponding detection device so that the detection device can perform vehicle detection according to the operating parameters.

[0014] In conjunction with the second aspect, in one embodiment, the industrial control PC is further used to: Receive the detection results fed back by the detection equipment, convert the detection results into the format of the domain control protocol through the protocol conversion module, and then send them to the domain control platform.

[0015] In conjunction with the second aspect, in one embodiment, the industrial control PC is further used to: Decompose the hardware and testing process of the newly added testing equipment; According to the data structure of the domain control protocol, the detection process and operating parameters of the newly added detection device obtained by decomposition are configured in the protocol conversion module, and the configured detection process and operating parameters are sent to the domain control platform to connect the newly added detection device to the domain control platform.

[0016] The embodiment of the present application provides a vehicle detection method and system based on a custom protocol, wherein the operating parameters of the detection equipment are configured through a domain control platform, and the operating parameters are sent to the corresponding industrial control PC through a preset domain control protocol, wherein the data structure of the domain control protocol includes custom data characteristics, ID identification, and code definition; the operating parameters are converted into a protocol format that can be executed by the detection equipment through a protocol conversion module in the industrial control PC, and sent to the corresponding detection equipment, so that the detection equipment can operate according to the operating parameters to perform vehicle detection. By uniformly controlling all on-site detection equipment through the domain control platform, interactive control of various functional modules of the detection equipment is achieved. This control method effectively improves the flexibility of the detection system. The custom domain control protocol supports the domain control platform to independently develop and design the operating parameters of the detection equipment according to the detection requirements, which can effectively improve the efficiency and accuracy of vehicle detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flow chart of an embodiment of a vehicle detection method based on a custom protocol of the present application; Figure 2 This is the architecture topology diagram of the vehicle detection system based on the custom protocol for this application; Figure 3 This is a diagram of the data structure of the domain control protocol; Figure 4 This is a schematic diagram of the specific flow of the vehicle detection method based on the custom protocol in this application. DETAILED DESCRIPTION

[0018] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0020] In a first aspect, an embodiment of the present application provides a vehicle detection method based on a custom protocol.

[0021] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle detection method based on the custom protocol of this application. Figure 1 As shown, the vehicle detection method based on the custom protocol includes: Step S101: configure the operating parameters of the detection equipment through the domain control platform, and send the operating parameters to the corresponding industrial control PC through the preset domain control protocol, wherein the data structure of the domain control protocol includes customized data characteristics, ID identification and code definition.

[0022] Step S102: The operating parameters are converted into a protocol format executable by the detection device through a protocol conversion module in the industrial control PC, and sent to the corresponding detection device, so that the detection device can perform vehicle detection according to the operating parameters.

[0023] The vehicle detection method based on a custom protocol provided in the embodiment of the present application realizes the control of all on-site equipment by a unified platform, completing the platform design of the detection system; through the protocol conversion module, the interaction of various functional modules of the detection equipment is realized, thereby improving the flexibility of the test system; using the custom protocol, the test process and parameters are configured in the domain control platform, realizing the function of independent development and design of the detection process.

[0024] It is worth noting that the vehicle detection method based on the custom protocol in this embodiment can be implemented based on a vehicle detection system based on the custom protocol. In order to explain the method more clearly, the system is first introduced.

[0025] like Figure 2 As shown in the figure, the vehicle inspection system based on a custom protocol includes a domain control platform, which can be used to manage multiple lines. Each line represents a testing production line. Each production line has multiple workstations, each corresponding to an industrial control PC (industrial computer). Each industrial control PC is equipped with a protocol conversion module and is used to control multiple and diverse inspection equipment. The industrial control PC and inspection equipment can be factory equipment.

[0026] The domain control platform and industrial control PC can communicate via wired or wireless means, with data transmission between the domain control platform and industrial control PC based on a custom domain control protocol. The industrial control PC and testing equipment can communicate using standard protocols supported by the testing equipment, such as CAN, Ethernet, and Modbus. Testing equipment types include vehicle communication VICs, equipment PLCs, test instruments, test targets, sensors, barcode scanners, printers, and more.

[0027] In one embodiment, the domain control protocol can be developed using the ISO13400 standard framework and network layer requirements. The full name of the domain control protocol is custom device cloud domain control communication protocol.

[0028] like Figure 3 As shown, the data structure of the domain control protocol includes the following arranged in sequence: V is a 1-byte version field, which is used to indicate the version number of the domain control protocol. Its range is 1.0-254.0, such as 0X01 is version 1.0.

[0029] XV is a 1-byte version inversion field, which is used to represent the inversion value of the version field. Its range is 1.0-254.0, such as 0XFE for version 1.0.

[0030] DT is a 2-byte data type field DT, which is used to indicate the domain control protocol and has a default value of 0x F0DF.

[0031] DL is a 4-byte data length field, which indicates the total length of the subsequent fields. For example, 0x00000000F represents the sum of the data lengths of RID+TID+SID+EID+FC+TC+DATA. If the DATA length is 1, DL is 13 (0x0D). By designing the data length DL, communication data integrity is guaranteed and field control failures caused by data anomalies are avoided. For example, if an anomaly occurs during data transmission or reception, the data length DL may not match the actual data length, thus failing data verification and ensuring the integrity and accuracy of data transmission.

[0032] RID is a 2-byte source station ID field, which is used to indicate the station number of the data sender. For example, 0x 6A 01 indicates detecting the line body station of line 1.

[0033] TID is a 2-byte target station ID field, which is used to indicate the station number of the data receiver. For example, 0x6A01 indicates detecting the line body station of line 1.

[0034] It is worth noting that the first byte of the source station ID field and the target station ID field both represent the inspection production line. The second byte is divided into two parts. The first 4 characters (the first hexadecimal) represent the station in the inspection production line, and the last 4 characters are the function code. The source station ID and target station ID can refer to the custom station ID comparison table shown in Table 1: Table 1 Customized Workstation ID Comparison Table

[0035] The data structure of source and target workstation IDs ensures the accuracy of the domain control platform's control and enables control and interaction of multiple inspection lines or multiple inspection devices on the same platform. Customizing workstation IDs allows for flexible expansion of lines and equipment, enabling rapid import of new equipment. This allows for flexible configuration and communication of inspection equipment across different lines and workstations, based on custom protocol rules and the actual conditions of the on-site workstations.

[0036] SID is a 1-byte service ID field, which is used to indicate the service type of the detection device, such as 0X22 for reading the device status. By customizing the service ID, different service identifiers can be set according to the detection properties and working conditions of different devices to achieve compatibility with custom protocols. The service content corresponding to the SID refers to the custom SID comparison table shown in Table 2: Table 2 Custom SID comparison table

[0037] EID is a 2-byte target device ID field, which is used to represent the unique number of the detection device. For example, 0x00 01 represents the device's industrial control module. By using the device ID of the custom protocol, you can flexibly configure and call different functional modules of the device at the same station, realize the control of different functional modules of the device at the same station, and improve control efficiency and accuracy. The correspondence between EID and target device information can be referred to the custom device ID comparison table shown in Table 3: Table 3 Customized device ID comparison table

[0038] FC is a 1-byte function code field, which is used to indicate the function operation of the function module in the detection equipment. Through the function code FC of the custom protocol, the function module of the equipment can be controlled to meet the test requirements of the vehicle. For example, 0X12 indicates reset. Refer to the custom instruction attribute comparison table shown in Table 4 for the function code FC and function description: Table 4 Custom instruction attribute comparison table

[0039] TC is a 4-byte fault code field, which is used to indicate the fault information of the test process or detection equipment. By customizing the fault code TC of the custom protocol, the fault code of different equipment can be customized, and feedback can be provided on test anomalies during the test process or equipment operation, thereby facilitating fault location and on-site analysis. For example, 0x00000000 indicates no fault, and the sender assumes no fault. The correspondence between TC and fault information can be referred to the custom fault code comparison table shown in Table 5: Table 5 Custom fault code comparison table

[0040] DATA is an N-byte transmission data field, which is used to indicate the actual data content of the transmission. The function code is described in detail through the data DATE of the custom protocol, including function code attributes, test parameter settings, moving step length, target coordinates, etc. For example, 0X11 indicates the start of the test. The correspondence between FC and the function description is shown in the custom execution action dictionary shown in Table 6: Table 6 Custom execution action dictionary

[0041] The description of each field of the domain control protocol of this embodiment is shown in Table 7: Table 7 Domain Control Protocol Field Description Comparison Table

[0042] It is worth noting that through customized protocols, the domain control platform can communicate with industrial control computers at different workstations on site, and through the protocol conversion module, the domain control platform can control the detection equipment at each workstation on site, thus getting rid of the incompatible control systems and protocols of equipment from different manufacturers.

[0043] In one embodiment, after the operating parameters are converted into a protocol format executable by the detection device through the protocol conversion module in the industrial control PC, and sent to the corresponding detection device so that the detection device performs vehicle detection according to the operating parameters, it also includes: receiving the detection results fed back by the detection device through the industrial control PC, and converting the detection results into the format of the domain control protocol through the protocol conversion module, and then sending them to the domain control platform.

[0044] It is worth noting that after receiving the operating parameters, the detection equipment will execute the operating parameters to perform vehicle detection, monitor the detection process, record and analyze abnormal conditions, generate detection abnormality fault codes, and feed them back to the industrial control PC together with the detection results. The protocol conversion module in the industrial control PC will perform protocol conversion and then send it to the domain control platform, so that the domain control platform can quickly locate the cause of the detection abnormality and improve the efficiency of abnormality analysis.

[0045] In a specific embodiment, the process of the vehicle detection method based on the custom protocol is as follows: Figure 4 As shown: The domain control platform configures the operating parameters of the testing equipment in the cloud. These parameters can be configured based on the vehicle's testing requirements. These parameters may include the testing equipment's test voltage, test current, test time, vehicle diagnostic instructions, airtightness test pressure, filling pressure, and filling volume.

[0046] The configured operating parameters are sent to the protocol conversion module on the PC via the domain control protocol. The protocol conversion module then generates operating parameters and instructions for the local functional modules of the test equipment and sends them to the corresponding test equipment. For example, at a test station, channel 2 needs to output 500V. The operating parameters sent by the domain control platform include the test channel parameters and the test voltage (channel 2 / 500V). These parameters are then sent to the industrial control PC in the domain control protocol format. The protocol conversion module on the industrial control PC converts the test voltage parameters into instructions recognizable by the voltage module of the test equipment to output 500V and into channel switching instructions recognizable by the PLC to switch channel 2. The protocol conversion module not only assigns different parameters to different modules, but also converts them into executable instructions for each module. The generated local functional module operating instructions are: FUNC IR;:IR:VOLT 500 (sent to the voltage module); 55 55 00 00 00 06 01 05 00 01FF 00 (sent to the channel module).

[0047] Furthermore, the detection equipment's functional module runs according to the operating parameters and instructions issued by the PC, performs vehicle inspections, and, upon obtaining the test results, feeds them back to the workstation PC via the standard protocol it supports. The industrial control PC converts the test results sent by the detection equipment from the standard protocol format to the domain control protocol format and sends the converted test results to the domain control platform, thus providing feedback on the test results.

[0048] As a preferred implementation, the domain control platform can be connected to the domain control server. The domain control platform can send the received detection results to the domain control server, which stores and analyzes the detection results to generate a detection report.

[0049] The vehicle inspection method based on a custom protocol provided in this embodiment enables unified control of all on-site inspection equipment through a domain control platform, completing the platform design of the test system. Protocol conversion is performed through a protocol conversion module, enabling interaction between the various functional modules of the inspection equipment and improving the flexibility of the inspection system. Using the custom protocol, the test process and inspection equipment operating parameters are configured in the domain control platform, enabling independent development and design of test processes. Furthermore, by monitoring the inspection process, abnormal detection states are recorded and analyzed; abnormal fault codes are generated to quickly locate the cause of the abnormality, improving the efficiency of abnormality analysis.

[0050] In one embodiment, when a new detection device is added, the new detection device is configured, including the following steps: decomposing the hardware and detection process of the new detection device through the industrial control PC; configuring the decomposed detection process and operating parameters of the new detection device in the protocol conversion module according to the data structure of the domain control protocol, and sending the configured detection process and operating parameters to the domain control platform to connect the new detection device to the domain control platform.

[0051] It is worth noting that when new equipment or lines appear, manual parameter configuration and device platform access can be performed based on the communication requirements of the new equipment, and the protocol conversion module can be used to complete the domain control platform's control of the new equipment. Taking the formation of a battery pack online inspection station as an example, if the industrial control PC corresponding to the station does not have a protocol conversion module installed, it is necessary to install the protocol conversion module on the industrial control PC. If it has already been installed, it can be used directly. Then, the inspection process and hardware are decomposed and parameterized on the industrial control PC. The test process and parameter protocol configuration, such as the station ID, EID, FC, TC, DATE, etc., are completed on the protocol conversion module. The new device control parameters in the custom protocol are imported and updated, and the domain control platform is connected to complete the domain control platform control.

[0052] For example, let's say a new device is added whose primary function is to read vehicle battery information. This function needs to be broken down: The battery information is sent via the UDS diagnostic protocol, with a read command (22 0B 23), which then reads the battery data from the vehicle. Manual configuration is then performed on the domain control platform. This involves adding the workstation, adding the device, adding a write command for the device and describing the command, and adding a read command for the device and describing the command. After manual configuration is complete, the platform generates a new configuration file, which can be updated by importing or replacing the configuration file.

[0053] Among them, the operating parameters of the newly added equipment depend on what functions need to be used. For example, if a 3-channel voltage test device is added, the main function of the device is to complete the voltage reading of the 3 channels. The operating parameters include: 1. Voltage reading instruction; 2. Switch channel 1 instruction; 3. Switch channel 2 instruction; 4. Switch channel 3 instruction.

[0054] In one embodiment, the protocol conversion module supports a dynamic protocol adjustment function, through which the protocol conversion module automatically adjusts and matches protocol parameters according to the communication requirements and communication conditions of the domain control platform, the industrial control PC and the detection equipment, including dynamically adjusting the communication rate, data packet size and retransmission mechanism.

[0055] In one embodiment, the protocol conversion module automatically switches the communication mode according to changes in the network environment, including switching the communication mode to wired communication or wireless communication, and adjusting the protocol description to adapt to the new network conditions.

[0056] The vehicle detection method based on a custom protocol provided in this application has the following beneficial effects: Through the custom protocol and efficient data structure, it significantly improves communication efficiency between devices. Through a protocol conversion mechanism, it ensures seamless communication between different devices and enhances device interoperability. Through a dynamic protocol adjustment function, the system can automatically optimize communication parameters based on actual needs, improving system flexibility and adaptability. The protocol conversion mechanism and dynamic adjustment function reduce reliance on dedicated hardware devices and lower system costs.

[0057] In a second aspect, an embodiment of the present application also provides a vehicle detection system based on a custom protocol.

[0058] In one embodiment, referring to Figure 2 , Figure 2 This is a functional module diagram of an embodiment of a vehicle detection system based on a custom protocol in this application. Figure 2 As shown in the figure, the vehicle detection system based on the custom protocol includes: A domain control platform, which is used to configure the operating parameters of the detection equipment and send the operating parameters to the corresponding industrial control PC through a preset domain control protocol, wherein the data structure of the domain control protocol includes customized data characteristics, ID identification and code definition; The industrial control PC is used to convert the operating parameters into a protocol format that can be executed by the detection device through a protocol conversion module, and send it to the corresponding detection device so that the detection device can perform vehicle detection according to the operating parameters.

[0059] Furthermore, in one embodiment, the industrial control PC is also used to: Receive the detection results fed back by the detection equipment, convert the detection results into the format of the domain control protocol through the protocol conversion module, and then send them to the domain control platform.

[0060] Furthermore, in one embodiment, the industrial control PC is also used to: Decompose the hardware and testing process of the newly added testing equipment; According to the data structure of the domain control protocol, the detection process and operating parameters of the newly added detection device obtained by decomposition are configured in the protocol conversion module, and the configured detection process and operating parameters are sent to the domain control platform to connect the newly added detection device to the domain control platform.

[0061] Furthermore, in one embodiment, the data structure of the domain control protocol includes the following arranged in sequence: A 1-byte version field, which is used to indicate the version number of the domain control protocol; A 1-byte version inversion field, which is used to indicate the inverted value of the version field; 2-byte data type field, which is used to indicate the domain control protocol; 4-byte data length field, which is used to indicate the total length of the subsequent fields; 2-byte source station ID field, which is used to indicate the station number of the data sender; 2-byte target station ID field, which is used to indicate the station number of the data receiver; 1-byte service identification ID field, which is used to indicate the service type of the detection device; 2-byte target device ID field, which is used to indicate the unique number of the detection device; 1-byte function code field, which is used to indicate the functional operation of the functional module in the detection device; 4-byte fault code field, which is used to indicate the fault information of the test process or detection equipment; The N-byte transmission data field is used to indicate the actual data content of the transmission.

[0062] Furthermore, in one embodiment, the first byte of the source workstation ID field and the target workstation ID field both represent the detection production line, the first 4 characters of the second byte represent the workstation in the detection production line, and the last 4 characters are the function code.

[0063] Furthermore, in one embodiment, the industrial control PC is also used to: The protocol conversion module dynamically adjusts the communication rate, data packet size and retransmission mechanism according to the communication requirements and communication conditions of the domain control platform, industrial control PC and the detection equipment.

[0064] Furthermore, in one embodiment, the industrial control PC is also used to: The protocol conversion module automatically switches the communication mode to wired communication or wireless communication according to changes in the network environment.

[0065] Among them, the functional implementation of each module in the above-mentioned vehicle detection device based on the custom protocol corresponds to the various steps in the above-mentioned vehicle detection method embodiment based on the custom protocol, and its functions and implementation processes will not be repeated here one by one.

[0066] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0067] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit the "first", "second" and "third" to different types.

[0068] In the description of the embodiments of this application, the words "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.

[0069] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0070] In some processes described in the embodiments of the present application, multiple operations or steps are included that appear in a specific order. However, it should be understood that these operations or steps may not be performed in the order in which they appear in the embodiments of the present application or may be performed in parallel. The sequence numbers of the operations are only used to distinguish between different operations, and the sequence numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations or steps may be performed in sequence or in parallel, and these operations or steps may be combined.

[0071] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, or the part that contributes to the existing technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes a number of instructions for enabling a terminal device to execute the methods described in each embodiment of this application.

[0072] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A vehicle detection method based on a custom protocol, characterized in that: The vehicle detection method based on the custom protocol includes: The operating parameters of the detection equipment are configured through the domain control platform, and the operating parameters are sent to the corresponding industrial control PC through a preset domain control protocol, wherein the data structure of the domain control protocol includes customized data characteristics, ID identification and code definition; The operating parameters are converted into a protocol format executable by the detection device through a protocol conversion module in the industrial control PC, and sent to the corresponding detection device, so that the detection device can perform vehicle detection according to the operating parameters.

2. The vehicle detection method based on a custom protocol according to claim 1, characterized in that: After the protocol conversion module in the industrial control PC converts the operating parameters into a protocol format executable by the detection device and sends the protocol to the corresponding detection device so that the detection device performs vehicle detection according to the operating parameters, the method further includes: The detection results fed back by the detection equipment are received through the industrial control PC, and the detection results are converted into the format of the domain control protocol through the protocol conversion module and then sent to the domain control platform.

3. The vehicle detection method based on a custom protocol according to claim 1, characterized in that: When a new detection device is added, configuring the new detection device includes the following steps: Decompose the hardware and testing process of the newly added testing equipment through the industrial control PC; According to the data structure of the domain control protocol, the detection process and operating parameters of the newly added detection device obtained by decomposition are configured in the protocol conversion module, and the configured detection process and operating parameters are sent to the domain control platform to connect the newly added detection device to the domain control platform.

4. The vehicle detection method based on a custom protocol according to claim 1, characterized in that: The data structure of the domain control protocol includes the following arranged in sequence: A 1-byte version field, which is used to indicate the version number of the domain control protocol; A 1-byte version inversion field, which is used to indicate the inverted value of the version field; 2-byte data type field, which is used to indicate the domain control protocol; 4-byte data length field, which is used to indicate the total length of the subsequent fields; 2-byte source station ID field, which is used to indicate the station number of the data sender; 2-byte target station ID field, which is used to indicate the station number of the data receiver; 1-byte service identification ID field, which is used to indicate the service type of the detection device; 2-byte target device ID field, which is used to indicate the unique number of the detection device; 1-byte function code field, which is used to indicate the functional operation of the functional module in the detection device; 4-byte fault code field, which is used to indicate the fault information of the test process or detection equipment; The N-byte transmission data field is used to indicate the actual data content of the transmission.

5. The vehicle detection method based on a custom protocol according to claim 4, characterized in that: The first byte of the source station ID field and the target station ID field both represent the detection production line, the first 4 characters of the second byte represent the station in the detection production line, and the last 4 characters are the function code.

6. The vehicle detection method based on a custom protocol according to claim 1, wherein: The method further includes: The protocol conversion module dynamically adjusts the communication rate, data packet size and retransmission mechanism according to the communication requirements and communication conditions of the domain control platform, industrial control PC and the detection equipment.

7. The vehicle detection method based on a custom protocol according to claim 1, characterized in that: The method further includes: The protocol conversion module automatically switches the communication mode to wired communication or wireless communication according to changes in the network environment.

8. A vehicle detection system based on a custom protocol, characterized in that: The vehicle detection system based on the custom protocol includes: A domain control platform, which is used to configure the operating parameters of the detection equipment and send the operating parameters to the corresponding industrial control PC through a preset domain control protocol, wherein the data structure of the domain control protocol includes customized data characteristics, ID identification and code definition; The industrial control PC is used to convert the operating parameters into a protocol format that can be executed by the detection device through a protocol conversion module, and send it to the corresponding detection device so that the detection device can perform vehicle detection according to the operating parameters.

9. The vehicle detection method based on a custom protocol as claimed in claim 8, characterized in that: The industrial control PC is also used for: Receive the detection results fed back by the detection equipment, convert the detection results into the format of the domain control protocol through the protocol conversion module, and then send them to the domain control platform.

10. The vehicle detection method based on a custom protocol according to claim 8, characterized in that: The industrial control PC is also used for: Decompose the hardware and testing process of the newly added testing equipment; According to the data structure of the domain control protocol, the detection process and operating parameters of the newly added detection device obtained by decomposition are configured in the protocol conversion module, and the configured detection process and operating parameters are sent to the domain control platform to connect the newly added detection device to the domain control platform.