Vehicle-mounted unit abnormity diagnosis method, device and equipment and storage medium
By creating a circular log file in the ESAM module of the ETC device's on-board unit and uploading the log file, the problem of the lack of logging function in the ETC device is solved, the recording and analysis of abnormal situations are realized, and the troubleshooting efficiency and equipment reliability are improved.
Patent Information
- Application Number
- CN202510876231.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-09-16
AI Technical Summary
The on-board units of existing ETC devices lack local logging capabilities, resulting in the loss of key information and the inability to accurately reproduce fault scenarios. In addition, traditional on-board units do not have an abnormal event log storage function and are unable to record detailed information during transactions.
Create a circular log file in the DF01 directory of the ESAM module of the vehicle unit to record the exception type, timestamp, error code, APDU and CRC16 checksum when a transaction exception, data update exception or device wake-up detection exception occurs. Upload the log file through the 4G/5G module or APP Bluetooth connection, and generate a detection report and solution based on the log analysis module.
It realizes the recording and analysis of abnormal scenarios of ETC devices, can quickly locate problems, solves the problems of difficult troubleshooting and low recovery efficiency of traditional ETC equipment, reduces invalid interruptions, and improves equipment reliability and user experience.
Smart Images

Figure CN120656254A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent transportation technology, and in particular to a method, device, equipment and storage medium for diagnosing abnormalities of an on-board unit. Background Art
[0002] Currently, nearly all family passenger cars are equipped with ETC devices, significantly reducing travel times at highway toll booths and alleviating congestion. However, existing ETC on-board units (OBUs) exhibit the following technical flaws: When the ESAM (Electronic Secure Access Module) or user card locks or a write operation fails, the device lacks local logging, resulting in the loss of critical information such as the lock ID, removal status, time of the failure, and trigger conditions. For example, when a barrier is not lifted, determining whether the device is experiencing a key authentication failure or other abnormality depends on the user's subjective description, making it impossible to accurately replicate the failure scenario.
[0003] Furthermore, traditional on-board units lack a log storage function for abnormal events. They only perform pre-checks before high-speed ETC transactions, providing drivers and passengers with advance notice of the unit's operational status. During actual ETC transactions, errors in the ETC transaction instructions may be left unrecorded. If the on-board unit experiences an abnormality or failure during secondary or after-sales service, the failure and the result of the executed instruction are not recorded. Summary of the Invention
[0004] The present application provides a method, device, equipment and storage medium for diagnosing abnormality of an on-board unit to solve the above-mentioned problems.
[0005] In one aspect, the present application provides a method for diagnosing abnormality of an on-board unit, the method comprising the following steps: Step S1: Create a circular log file in the DF01 directory of the ESAM module of the vehicle-mounted unit; Step S2: When a transaction exception, data update exception, or device wake-up detection exception occurs, the exception type, timestamp, error code, APDU, and CRC16 checksum are recorded in a log file; Step S3: Upload the log file via 4G / 5G module or APP Bluetooth connection; Step S4: Analyze the log based on the abnormal diagnosis module, generate a detection report and solution according to the error type, restrict operations for abnormalities such as continuous write failures and prompt the user, correct the file lock mark of the online charging process to the application unlock mark when it is not the application unlock mark, detect the anti-dismantling column and validity period when waking up and remind the user.
[0006] In one implementation of the present application, the circular log file is of fixed size, and circular recording is achieved by updating the file index pointer to prevent storage overflow. The file attributes are freely readable and writable. A new record is inserted each time an exception occurs. The record content also includes the APDU length. During the transaction process, the consumption instruction is recorded when the response status word indicates that the non-APDU instruction has been successfully executed.
[0007] In one implementation of this application, the process of uploading logs specifically includes: When the on-board unit with 4G / 5G module detects a new record, it will upload it in message format and mark the time; For OMUs without 4G / 5G modules, read and upload new logs when the app Bluetooth connection or operation fails, generate a test report containing OMU information, and analyze and classify the problems.
[0008] In one implementation of the present application, in step S4, after analyzing the log by the abnormality diagnosis module, the method further includes: Determine whether the anomaly has been repaired; If the permanently locked device is not repaired, the user will be notified to replace it. If the system can be repaired but the user has not taken any action, the user will be notified of the operation steps. If the lane lift barrier is abnormal, the log will be analyzed to locate the device or lane problem.
[0009] In one implementation of the present application, the method further includes: When waking up the vehicle unit, it determines whether the anti-tampering column is effective. If it fails, it will prompt with a prompt light or voice and record the log; Determine the validity period of the card and vehicle unit, remind and record the log when it expires, and upload it to the system via Bluetooth or 4G / 5G to determine whether to send a reminder notification.
[0010] In one implementation of the present application, the method further includes: When the vehicle unit is re-issued, activated, or executes an update command for after-sales service, if the status word returned is not an APDU command execution success mark, a log is recorded; When two consecutive write operations fail, the ESAM is controlled to write again within the time limit and send an error record. The system determines the priority based on the error type and prompts the user to prohibit the operation.
[0011] In one implementation of the present application, the method further includes: Determine whether the gantry system is written in accordance with the standard network charging compliance consumption process file resulting in the lock mark non-application unlocked mark; If not, the lock mark is corrected to the unlocked mark, and then the file is written and the log is recorded. The error log is uploaded via Bluetooth or 4G / 5G, the door frame is located according to the time and content, and the correction is fed back.
[0012] Secondly, the present application also provides a vehicle-mounted unit abnormality diagnosis device, the device comprising: The logging module is used to create a circular log file in the DF01 directory of the ESAM module of the vehicle unit; and when a transaction exception, data update exception, or device wake-up detection exception occurs, the exception type, timestamp, error code, APDU, and CRC16 checksum are recorded in the log file; Log upload module, used to upload log files via 4G / 5G module or APP Bluetooth connection; The control module is used to analyze logs based on the abnormal diagnosis module, generate detection reports and solutions according to the error type, restrict operations for abnormalities such as continuous write failures and prompt users, and correct the file lock mark of the online charging process that meets the application unlock mark when it is not an application unlock mark. When waking up, it detects the anti-dismantling column and validity period and reminds the user.
[0013] Furthermore, the present application also provides a vehicle-mounted unit abnormality diagnosis device, the device comprising: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can complete the aforementioned on-board unit abnormality diagnosis method.
[0014] Finally, the present application also provides a non-volatile computer storage medium for on-board unit abnormality diagnosis, which stores computer-executable instructions, and is characterized in that the computer-executable instructions are executed by a processor to implement the aforementioned on-board unit abnormality diagnosis method.
[0015] The present application provides a method, device, equipment, and storage medium for diagnosing abnormalities of an on-board unit, which have the following beneficial effects: (1) A log cycle recording file is established in the DF01 directory of the ESAM module of the OBU to realize the recording of abnormal scenarios, including transactions, data updates, equipment wake-up data detection, etc., which will be classified and registered according to the error type and can upload the error log data. The abnormal diagnosis system will analyze the error information and can quickly locate the problem.
[0016] (2) It solves the problems of difficult troubleshooting and low recovery efficiency of traditional ETC equipment. It can also avoid the situation where improper operation locks the equipment. The abnormal analysis system can accurately determine whether to notify the user based on whether the equipment has recovered, thus reducing unnecessary interruptions. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A flow chart of a method for diagnosing abnormalities of an on-board unit provided in an embodiment of the present application; Figure 2 A diagram showing the composition of an on-board unit abnormality diagnosis device provided in an embodiment of the present application; Figure 3 A schematic diagram of an on-board unit abnormality diagnosis device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0019] The embodiments of the present application provide a method, apparatus, device, and storage medium for diagnosing abnormalities in an onboard unit, specifically a logging and remote diagnosis system for hidden faults such as ESAM module / user card lockout and data writing anomalies. The technical solutions proposed in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0020] Figure 1 This is a flow chart of a method for diagnosing abnormality of an on-board unit provided in an embodiment of the present application. Figure 1 As shown, the method mainly includes the following steps: Step S1: Create a circular log file in the DF01 directory of the ESAM module of the vehicle-mounted unit; Step S2: When a transaction exception, data update exception, or device wake-up detection exception occurs, the exception type, timestamp, error code, APDU, and CRC16 checksum are recorded in a log file; Step S3: Upload the log file via 4G / 5G module or APP Bluetooth connection; Step S4: Analyze the log based on the abnormal diagnosis module, generate a detection report and solution according to the error type, restrict operations for abnormalities such as continuous write failures and prompt the user, correct the file lock mark of the online charging process to the application unlock mark when it is not the application unlock mark, detect the anti-dismantling column and validity period when waking up and remind the user.
[0021] In an embodiment of the present application, the circular log file is of fixed size, and circular recording is achieved by updating the file index pointer to prevent storage overflow. The file attributes are freely readable and writable. A new record is inserted each time an exception occurs. The record content also includes the APDU length. During the transaction process, the consumption instruction is recorded when the response status word indicates that the non-APDU instruction has been successfully executed.
[0022] In the embodiment of the present application, the process of uploading logs specifically includes: When the on-board unit with 4G / 5G module detects a new record, it will upload it in message format and mark the time; For OMUs without 4G / 5G modules, read and upload new logs when the app Bluetooth connection or operation fails, generate a test report containing OMU information, and analyze and classify the problems.
[0023] In the embodiment of the present application, in step S4, after the log is analyzed by the abnormality diagnosis module, the method further includes: Determine whether the anomaly has been repaired; If the permanently locked device is not repaired, the user will be notified to replace it. If the system can be repaired but the user has not taken any action, the user will be notified of the operation steps. If the lane lift barrier is abnormal, the log will be analyzed to locate the device or lane problem.
[0024] In an embodiment of the present application, the method further includes: When waking up the vehicle unit, it determines whether the anti-tampering column is effective. If it fails, it will prompt with a prompt light or voice and record the log; Determine the validity period of the card and vehicle unit, remind and record the log when it expires, and upload it to the system via Bluetooth or 4G / 5G to determine whether to send a reminder notification.
[0025] In an embodiment of the present application, the method further includes: When the vehicle unit is re-issued, activated, or executes an update command for after-sales service, if the status word returned is not an APDU command execution success mark, a log is recorded; When two consecutive write operations fail, the ESAM is controlled to write again within the time limit and send an error record. The system determines the priority based on the error type and prompts the user to prohibit the operation.
[0026] In an embodiment of the present application, the method further includes: Determine whether the gantry system is written in accordance with the standard network charging compliance consumption process file resulting in the lock mark non-application unlocked mark; If not, the lock mark is corrected to the unlocked mark, and then the file is written and the log is recorded. The error log is uploaded via Bluetooth or 4G / 5G, the door frame is located according to the time and content, and the correction is fed back.
[0027] The above is a vehicle-mounted unit abnormality diagnosis method provided by an embodiment of the present application. Based on the same inventive concept, an embodiment of the present application also provides a vehicle-mounted unit abnormality diagnosis device. Figure 2 A diagram showing the composition of a vehicle-mounted unit abnormality diagnosis device provided in an embodiment of the present application, such as Figure 2 As shown, the device mainly includes: The log recording module 201 is used to create a circular log file in the DF01 directory of the ESAM module of the vehicle-mounted unit; and when a transaction exception, data update exception or device wake-up detection exception occurs, record the exception type, timestamp, error code, APDU and CRC16 checksum to the log file; Log upload module 202, used to upload log files via 4G / 5G module or APP Bluetooth connection; The control module 203 is used to analyze the log based on the abnormal diagnosis module, generate a detection report and solution according to the error type, restrict operations for abnormalities such as continuous write failures and prompt the user, and correct the file lock mark of the online charging process that meets the application unlock mark when it is not an application unlock mark. When waking up, it detects the anti-dismantling column and the validity period and reminds the user.
[0028] The above is a vehicle-mounted unit abnormality diagnosis system provided by an embodiment of the present application. Based on the same inventive concept, an embodiment of the present application also provides a vehicle-mounted unit abnormality diagnosis device. Figure 3 A schematic diagram of an abnormality diagnosis device for an on-board unit provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the device mainly includes: at least one processor 301; and a memory 302 communicatively connected to the at least one processor; wherein the memory 302 stores instructions that can be executed by the at least one processor 301, and the instructions are executed by the at least one processor 301 so that the at least one processor 301 can complete the aforementioned on-board unit abnormality diagnosis method.
[0029] In addition, an embodiment of the present application further provides a non-volatile computer storage medium for on-board unit abnormality diagnosis, which stores computer-executable instructions. The computer-executable instructions are executed by a processor to implement the aforementioned on-board unit abnormality diagnosis method.
[0030] In an embodiment of the present application, in order to prevent the online charging and consumption process file from being locked, some gantry systems do not write the online charging and consumption process file transaction record file in full accordance with the standard, and write the lock identification byte into the non-application unlocked identification. After using this method, the written data will be actively corrected, and the error log data will be uploaded via Bluetooth or 4G / 5G. According to the time and content of the time log record, the time of occurrence and the corresponding gantry can be accurately found, and feedback can be given to the responsible party to correct it as soon as possible.
[0031] During user activation or after-sales service operations, writing to the card or on-board unit (OBU) may fail. The log file determines if two consecutive write failures occur and promptly sends the error log. When the abnormal diagnosis system receives this type of error, it will proactively notify the user to temporarily perform an operation. Such problems will also be proactively sent to professional technicians for analysis and timely solutions. This prevents users from repeatedly retrying for unknown reasons, which may eventually lead to permanent device lockout.
[0032] Many vehicles are currently equipped with ETC devices when they leave the factory. However, some owners are unaware of this and go to the business hall to apply for ETC. However, when the staff activates the device with the handheld device, they fail to confirm that the device is a new one. This often results in the handheld device being activated and written to the pre-installed device. Due to inconsistent device keys, multiple write failures occur. With our log file, if two consecutive write failures are detected, further writes will be prohibited within a limited time, greatly reducing the probability of the device being locked by accident. When waking up the OBU, the card information and OBU information are pre-read to determine the validity period of the card and OBU. If the validity period is not within the current time or is less than half a year away from the validity period, or the anti-dismantling column has been dismantled, a prompt light or voice reminder will be displayed, and it will also be sent to the system via Bluetooth or 4G / 5G mode. The system will also determine whether it is necessary to send a reminder notification to the user.
[0033] The following are examples of specific application scenarios of this application.
[0034] At the exit lane of toll station A on a certain highway, three trucks experienced ETC transactions failing, and the barriers remained open. A preliminary inspection by toll collectors revealed abnormal flashing indicators on the vehicles' OBUs, but the specific cause could not be determined. Traditional troubleshooting methods, which required manual insertion and removal of user cards and OBU restarts, took approximately 10 minutes per vehicle and resulted in lane congestion exceeding 500 meters.
[0035] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0036] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0037] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0038] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0039] The various embodiments in this application are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the device embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the partial description of the method embodiments.
[0040] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0041] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A method for diagnosing abnormality of an on-board unit, characterized in that: The method comprises the following steps: Step S1: Create a circular log file in the DF01 directory of the ESAM module of the vehicle-mounted unit; Step S2: When a transaction exception, data update exception, or device wake-up detection exception occurs, the exception type, timestamp, error code, APDU, and CRC16 checksum are recorded in a log file; Step S3: Upload the log file via 4G / 5G module or APP Bluetooth connection; Step S4: Analyze the log based on the abnormal diagnosis module, generate a detection report and solution according to the error type, restrict operations for abnormalities such as continuous write failures and prompt the user, correct the file lock mark of the online charging process to the application unlock mark when it is not the application unlock mark, detect the anti-dismantling column and validity period when waking up and remind the user.
2. The method for diagnosing abnormality of an on-board unit according to claim 1, characterized in that: The circular log file is of fixed size and realizes circular recording by updating the file index pointer to prevent storage overflow. The file attribute is free to read and write. A new record is inserted each time an exception occurs. The record content also includes the APDU length. The consumption instruction is recorded when the response status word non-APDU instruction is successfully executed during the transaction process.
3. The method for diagnosing abnormality of an on-board unit according to claim 1, characterized in that: The process of uploading logs includes: When the on-board unit with 4G / 5G module detects a new record, it will upload it in message format and mark the time; For OMUs without 4G / 5G modules, read and upload new logs when the app Bluetooth connection or operation fails, generate a test report containing OMU information, and analyze and classify the problems.
4. The method for diagnosing abnormality of an on-board unit according to claim 1, characterized in that: In step S4, after the log is analyzed by the abnormality diagnosis module, the method further includes: Determine whether the anomaly has been repaired; If the permanently locked device is not repaired, the user will be notified to replace it. If the system can be repaired but the user has not taken any action, the user will be notified of the operation steps. If the lane lift barrier is abnormal, the log will be analyzed to locate the device or lane problem.
5. The method for diagnosing abnormality of an on-board unit according to claim 1, characterized in that: The method further comprises: When waking up the vehicle unit, it determines whether the anti-tampering column is effective. If it fails, it will prompt with a prompt light or voice and record the log; Determine the validity period of the card and vehicle unit, remind and record the log when it expires, and upload it to the system via Bluetooth or 4G / 5G to determine whether to send a reminder notification.
6. The method for diagnosing abnormality of an on-board unit according to claim 1, characterized in that: The method further comprises: When the vehicle unit is re-issued, activated, or executes an update command for after-sales service, if the status word returned is not an APDU command execution success mark, a log is recorded; When two consecutive write operations fail, the ESAM is controlled to write again within the time limit and send an error record. The system determines the priority based on the error type and prompts the user to prohibit the operation.
7. The method for diagnosing abnormality of an on-board unit according to claim 1, characterized in that: The method further comprises: Determine whether the gantry system is written in accordance with the standard network charging compliance consumption process file resulting in the lock mark non-application unlocked mark; If not, the lock mark is corrected to the unlocked mark, and then the file is written and the log is recorded. The error log is uploaded via Bluetooth or 4G / 5G, the door frame is located according to the time and content, and the correction is fed back.
8. A vehicle-mounted unit abnormality diagnosis device, characterized in that: The device comprises: The logging module is used to create a circular log file in the DF01 directory of the ESAM module of the vehicle unit; and when a transaction exception, data update exception, or device wake-up detection exception occurs, the exception type, timestamp, error code, APDU, and CRC16 checksum are recorded in the log file; Log upload module, used to upload log files via 4G / 5G module or APP Bluetooth connection; The control module is used to analyze logs based on the abnormal diagnosis module, generate detection reports and solutions according to the error type, restrict operations for abnormalities such as continuous write failures and prompt users, and correct the file lock mark of the online charging process that meets the application unlock mark when it is not an application unlock mark. When waking up, it detects the anti-dismantling column and validity period and reminds the user.
9. A vehicle-mounted unit abnormality diagnosis device, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can complete the on-board unit abnormality diagnosis method described in any one of claims 1-7.
10. A non-volatile computer storage medium for abnormal diagnosis of an onboard unit, storing computer executable instructions, characterized in that: The computer executable instructions are executed by a processor to implement the on-board unit abnormality diagnosis method according to any one of claims 1 to 7.