Instrument eeprom data anomaly detection method and system thereof
By repeatedly switching the power on and off and automating data reading, the problem of low efficiency in detecting abnormal EEPROM data in instruments has been solved. This has enabled efficient and accurate data storage status monitoring, allowing potential risks to be identified in a timely manner during the development phase and reducing hardware costs.
Patent Information
- Application Number
- CN202611270243.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-20
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the detection efficiency of EEPROM data anomalies is low and occasional problems are difficult to detect. Traditional testing methods are limited by the consistency of manual operation and the test duration, making it difficult to cover a sufficient number of operation cycles, resulting in potential problems not being captured or located in a timely manner.
By controlling the instrument under test to perform multiple power on/off cycles, combined with automated data reading and comparison, the power control unit simulates changes in the vehicle's power state, automatically monitors and determines EEPROM data anomalies, replacing manual observation, and sets a maximum cycle number threshold to ensure that the test covers the power stress throughout the entire life cycle.
It enables the accumulation of a large number of power-on and power-off cycles in a short period of time, triggering potential fault modes, improving the continuity and accuracy of detection, reducing human intervention, enabling timely detection of potential data storage risks, and reducing hardware costs.
Smart Images

Figure CN123178175A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of EEPROM data storage detection, specifically to a method and system for detecting abnormal EEPROM data in instruments. Background Technology
[0002] As a core component of the vehicle's human-machine interface, the accuracy and integrity of the EEPROM data stored in the automotive instrument cluster (such as accumulated mileage, vehicle configuration parameters, and fault code information) directly affect the vehicle's functional safety, compliance, and user experience. During the development and verification phase of automotive components, to ensure the reliability of the instrument cluster's data storage under various operating conditions, it is typically necessary to thoroughly test and verify the read and write functions of the instrument cluster's EEPROM data.
[0003] Existing testing and verification methods primarily rely on real-vehicle road testing or basic bench testing. During testing, it is usually necessary to repeatedly power on and off the vehicle or instrument system to simulate the power state changes that the vehicle may encounter during its actual service life. The consistency of EEPROM data storage is then confirmed by manually observing the instrument display interface or periodically reading relevant data.
[0004] However, in practical engineering applications, EEPROM data anomalies often manifest as intermittent problems. Their mechanisms can be complex, related to specific power-on / off timing, cumulative operation counts, or specific voltage fluctuation environments. Traditional testing methods are limited to some extent by the consistency of manual operation and the constraints of test duration, making it difficult to cover a sufficient number of operation cycles to elicit potential problems within a limited development cycle. Furthermore, relying on intermittent manual observation and recording may create monitoring blind spots, causing some potential intermittent problems to go undetected or unaddressed in a timely manner. Summary of the Invention
[0005] This application provides a method and system for detecting abnormal EEPROM data in instruments, which can solve the problems of low efficiency in detecting abnormal EEPROM data in existing technologies and difficulty in detecting occasional problems.
[0006] In a first aspect, embodiments of this application provide a method for detecting abnormal EEPROM data in an instrument, comprising: Control the instrument under test to perform multiple power on / off cycle operations; After each power-on operation, the target data is read from the non-volatile memory inside the instrument under test; The target data is compared with a preset reference value; Based on the comparison results, determine whether there is any data anomaly in the internal non-volatile memory of the instrument under test.
[0007] In conjunction with the first aspect, in one embodiment, before controlling the instrument under test to perform multiple power on / off cycles, the method further includes: A simulated message is sent to the instrument under test to simulate its working state in a real vehicle environment.
[0008] In conjunction with the first aspect, in one implementation method, controlling the instrument under test to perform multiple power on / off cycle operations specifically includes: The power control unit disconnects the power control circuit of the instrument under test, thus powering down the instrument under test. The power control unit connects the power control circuit of the instrument under test, thereby powering on the instrument under test.
[0009] In conjunction with the first aspect, in one embodiment, the method further includes: After disconnecting the power control circuit of the instrument under test, maintain the power-down state for a first preset duration; After the power control circuit of the instrument under test is turned on, wait for the second preset time until the instrument under test completes initialization.
[0010] In conjunction with the first aspect, in one implementation, reading the target data from the non-volatile memory inside the instrument under test specifically includes: Send a data read request to the instrument under test via the diagnostic service protocol; Receive the target data returned by the instrument under test in response to the data read request.
[0011] In conjunction with the first aspect, in one implementation, comparing the target data with a preset reference value specifically includes: Obtain the preset reference value, which is less than the data value normally stored in the non-volatile memory; Determine whether the target data is less than or equal to the preset reference value.
[0012] In conjunction with the first aspect, in one implementation method, the method for determining the preset reference value includes: Retrieve historical data values from the power cycle; Based on the historical data values and the preset tolerance value, a preset reference value is obtained.
[0013] In conjunction with the first aspect, in one embodiment, the method further includes: Set a threshold for the maximum number of loops; Record the number of power on / off cycles that have been completed so far; When the number of cycles reaches the maximum cycle count threshold and no data anomalies are detected, the power on / off cycle operation is stopped.
[0014] In conjunction with the first aspect, in one implementation, determining whether there is data anomaly in the internal non-volatile memory of the instrument under test based on the comparison result specifically includes: If the target data is less than the preset reference value, it is determined that there is a data anomaly, and an anomaly alarm signal is generated or the power on / off cycle operation is stopped. If the target data is greater than or equal to the preset reference value, it is determined that there is no data anomaly, and the next power on / off cycle operation continues. The data anomalies include data loss, data rollback, or data being reset to default values.
[0015] Secondly, embodiments of this application provide an EEPROM data anomaly detection system for an instrument, comprising: a first module, a second module, a third module, and a fourth module. The first module is used to control the instrument under test to perform multiple power-on / off cycle operations; the second module is used to read target data from the internal non-volatile memory of the instrument under test after each power-on operation; the third module is used to compare the target data with a preset reference value; and the fourth module is used to determine whether there is a data anomaly in the internal non-volatile memory of the instrument under test based on the comparison result.
[0016] The beneficial effects of the technical solutions provided in this application include: This application provides a method and system for detecting abnormal EEPROM data in an instrument cluster. By controlling the instrument under test to perform multiple power-on / off cycles, a large number of power-on / off cycles can be accumulated in a short period of time, simulating the power state changes of the instrument throughout the vehicle's lifecycle. Since abnormal EEPROM data in an instrument cluster often manifests as intermittent problems, requiring specific power-on / off sequences or a certain number of operations to become apparent, this multiple-cycle operation method helps to stimulate potential fault modes. Furthermore, by automatically reading the target data from the internal non-volatile memory after each power-on operation and comparing the target data with a preset reference value, automated monitoring and judgment of data storage status is achieved. This automated data comparison mechanism replaces traditional manual observation, reducing reliance on human intervention and avoiding oversights that may occur due to prolonged manual monitoring. Therefore, without increasing additional hardware costs, it improves the continuity of the detection process and the accuracy of data judgment, facilitating the timely detection of potential data storage risks during the development phase. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the instrument EEPROM data anomaly detection method of this application. Detailed Implementation
[0018] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0019] This application provides a method and system for detecting abnormal EEPROM data in instruments, which can solve the problems of low efficiency in detecting abnormal EEPROM data in existing technologies and difficulty in detecting occasional problems.
[0020] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0021] In a first aspect, embodiments of this application provide a method for detecting abnormal EEPROM data in an instrument, comprising: 101: The test system controls the instrument under test (DUT) to perform multiple power-on / off cycles. During this process, the test system controls the power control circuit of the DUT through an electronic control switch unit, simulating the ignition switch action in actual vehicle use. The power control circuit is connected to the power input terminal of the instrument, and the physical power-on and power-off are achieved through the closing and opening of relays. By setting a threshold for the number of cycles, the DUT undergoes a large number of power-on and power-off processes in a short period of time, thereby accelerating the accumulation of power stress and simulating the power state changes that the instrument may encounter during the vehicle's life cycle. This high-frequency cyclic operation is designed to cover sporadic faults that may only be exposed after a specific number of cycles. The number of cycles is set by an automated script to ensure continuous operation until the preset test quantity is reached or a problem is found, avoiding inconsistencies caused by manual operation.
[0022] 102: After each power-on operation, the target data is read from the non-volatile memory inside the instrument under test. This read operation is usually performed after the instrument has completed initialization to ensure data stability. The target data can be key information such as cumulative mileage and configuration parameters, and is usually obtained by sending a read request through the diagnostic service protocol. The system will trigger the read command after the instrument is running stably to ensure that the acquired data reflects the current true state in the memory and avoids data read failures due to the instrument not being fully started.
[0023] 103: Compare the target data with the preset reference value; the preset reference value is a threshold set according to the normal storage range of the data, for example, set to a value slightly smaller than the normal storage value, used to identify whether the data has been lost, cleared or written incorrectly. The difference between the two values is compared in real time through the logic judgment module to ensure that the data integrity meets the expected standard.
[0024] 104: Determine whether there are data anomalies in the internal non-volatile memory of the instrument under test (DUT) based on the comparison results. This application controls the DUT to perform multiple power-on / off cycles, accumulating a large number of power-on / off cycles in a short period of time to simulate the power state changes of the instrument throughout the vehicle's lifecycle. Given that instrument EEPROM data anomalies often manifest as intermittent problems, requiring specific power-on / off sequences or a certain number of operations to become apparent, this multiple-cycle operation method helps to stimulate potential fault modes. Furthermore, by automatically reading the target data from the internal non-volatile memory after each power-on operation and comparing the target data with a preset reference value, automated monitoring and judgment of data storage status is achieved. This automated data comparison mechanism replaces traditional manual observation, reducing reliance on human intervention and avoiding oversights that may occur due to prolonged manual monitoring. Therefore, without increasing additional hardware costs, it improves the continuity of the testing process and the accuracy of data judgment, facilitating the timely detection of potential data storage risks during the development phase.
[0025] This application controls the instrument under test (DUT) to perform multiple power-on / off cycles, accumulating a large number of power-on / off cycles in a short period of time to simulate the power state changes of the DUT throughout the vehicle's lifecycle. Given that DUT EEPROM data anomalies often manifest as intermittent problems, requiring specific power-on / off sequences or a certain number of operations to become apparent, this multiple-cycle operation method helps to stimulate potential fault modes. Furthermore, by automatically reading the target data from the internal non-volatile memory after each power-on operation and comparing it with a preset reference value, automated monitoring and judgment of data storage status is achieved. This automated data comparison mechanism replaces traditional manual observation, reducing reliance on human intervention and avoiding oversights that may occur due to prolonged manual monitoring. Therefore, without increasing additional hardware costs, it improves the continuity of the testing process and the accuracy of data judgment, facilitating the timely detection of potential data storage risks during the development phase.
[0026] Based on the above embodiments, in this embodiment, before controlling the instrument under test to perform multiple power on / off cycle operations, the method further includes: Send simulated messages to the instrument under test to simulate its working state in a real vehicle environment.
[0027] This step replicates the instrument cluster's communication environment within the vehicle network to ensure that the signal characteristics received by the instrument cluster are consistent with the actual vehicle configuration, preventing the instrument cluster from entering an abnormal protection mode due to bus silence. Specifically, real vehicle messages are fed into the instrument cluster: based on ValueCAN, the Function Blocks function in the VSPY software is used to feed real vehicle messages into the instrument cluster. ValueCAN is the vehicle communication interface hardware responsible for physical layer signal transmission; VSPY is the vehicle network analysis software providing the host computer control interface; and Function Blocks are functional block modules within the software that support scripted logic control.
[0028] The detailed steps are as follows: First, create a new Playback module in the Function Blocks section of the VSPY software. Playback controls the data stream's sending rhythm and timing, configuring the logical structure of message transmission. Second, select the actual vehicle message in Data file to replay. Data file to replay refers to the data file to be replayed; it must contain data files from the entire vehicle's cockpit, ensuring the message ID and signal period conform to the actual vehicle specifications, allowing the instrument cluster to recognize it as a legitimate signal source. Finally, start Playback. This configuration ensures a continuous data stream to the communication interface of the instrument under test, guaranteeing that the instrument cluster is in an active communication state when subsequently reading target data from its internal non-volatile memory. This avoids data read failures or abnormal judgments due to network timeouts, thus ensuring the accuracy of the test results.
[0029] Based on the above embodiments, in this embodiment, controlling the instrument under test (DUT) to perform multiple power on / off cycles specifically includes: disconnecting the power control circuit of the DUT through the power control unit, causing the DUT to power down; and connecting the power control circuit of the DUT through the power control unit, causing the DUT to power up. Here, the power control unit can specifically be a CAN-controlled relay, whose input terminal receives control signals and whose output terminal is connected in series in the power supply circuit of the DUT. When the control signal indicates power down, the relay opens, physically disconnecting the power control circuit of the DUT, causing the DUT to power down; when the control signal indicates power on, the relay closes, connecting the power control circuit of the DUT, causing the DUT to power up, thereby simulating the physical action of the ignition switch in a real vehicle.
[0030] Specifically, after disconnecting the power control circuit of the instrument under test (DUT), the device remains in a power-down state for a first preset duration; after connecting the power control circuit of the DUT, the device waits for a second preset duration until the DUT completes initialization. The first and second preset durations are configured using timer parameters in the script to ensure that the timing meets the hardware physical characteristics.
[0031] Specifically, the automatic power-on / off sequence of the instrument is set up: based on ValueCAN and CAN-controlled relays, a control script is written in the Function Blocks of the VSPY software to control the automatic power-on / off of the instrument. The detailed steps are as follows: First, create a CAN-controlled relay Transmit message on HS CAN2 in the VSPY software, adding all the pin signals required for powering on the instrument. HS CAN2 is a hardware communication channel; the Transmit message triggers the relay action, and the pin signals contain the level signals required to maintain the relay's closure. Second, create a Script in Function Blocks; write the test script in the Script, associating it with the instrument's ON switch signal; the script binds the message sending logic with the power on / off logic to ensure timing synchronization. Finally, set the instrument power-on delay time T1 = 7000ms and the instrument power-off hold time T2 = 2000ms. T1 corresponds to the second preset duration, ensuring the instrument under test completes initialization; T2 corresponds to the first preset duration, ensuring EEPROM data writing is complete. Through the above configuration, automated timing control is achieved.
[0032] Based on the above embodiments, in this embodiment, reading the target data in the non-volatile memory of the instrument under test (IDT) specifically includes: sending a data read request to the IDT via a diagnostic service protocol; and receiving the target data returned by the IDT in response to the data read request. This step is executed in an automated testing environment, specifically by setting an abnormality judgment condition for the instrument's non-volatile memory data: the script reads the non-volatile memory data via the diagnostic service protocol and then compares it with a preset reference value to determine whether it is abnormal. The detailed steps are as follows: a new Diag JobAction is created in the script, and the 22 service for reading data such as instrument mileage is selected; wherein, Diag Job Action is a diagnostic task action module, and the 22 service is a standard data read identifier service, corresponding to the above step of sending a data read request via the diagnostic service protocol. After the script executes this Action, it obtains the returned data value, corresponding to the above step of receiving the target data, which is used to ensure the compatibility of the communication protocol and the accuracy of data reading.
[0033] Furthermore, the target data is compared with a preset reference value. Specifically, this includes: obtaining the preset reference value, which is less than the normally stored data value in the non-volatile memory; determining whether the target data is less than or equal to the preset reference value; to automate the logic judgment, a new If-Else statement is created, comparing the read mileage and other data with the preset reference value, which is set to a value slightly smaller than the value stored in the non-volatile memory; when the read value is greater than the preset reference value, the loop continues; when the read value is less than the preset reference value, it indicates an anomaly in the non-volatile memory data, and the script stops running. This loop corresponds to multiple power-on / off cycles. If the data remains normal, power-on / off tests are continuously executed to accumulate stress. Once data loss or errors are detected, the script is immediately triggered to stop running, preserving the fault state for subsequent analysis and preventing invalid tests from continuing.
[0034] The method for determining the preset reference value includes: acquiring historical data values from previous power-on / off cycles; and obtaining the preset reference value based on the historical data values and a preset tolerance value. Specifically, the historical data values are derived from the values stored in non-volatile memory after the previous cycle. The preset tolerance value is set according to the data precision requirements, for example, a value slightly smaller than the stored value, thus obtaining the preset reference value. This dynamic comparison method based on historical data can effectively identify data write failures or data clearing caused by frequent power on / off cycles, ensuring that the judgment logic adapts to different testing stages and improving the reliability of anomaly detection.
[0035] Based on the above embodiments, this embodiment further includes: setting a maximum loop count threshold; recording the number of completed power on / off loop operations; and stopping the power on / off loop operation when the number reaches the maximum loop count threshold and no data anomalies are detected. This process utilizes a script auto-running and automatic stop mechanism after a problem is detected, implemented through Start Loop and If-Else functions, ensuring the testing process proceeds orderly without human intervention. Specifically, the Start Loop count is set to 1,000,000,000, which corresponds to the aforementioned maximum loop count threshold. This value limits the maximum test coverage, simulates the power supply stress accumulation of the instrument throughout its lifespan, prevents indefinite testing due to undetected problems, and avoids missing occasional faults due to premature test termination.
[0036] During the test run, the system records the number of completed power on / off cycles in real time and updates the count after each cycle. When the count reaches the maximum cycle count threshold and no data anomalies are detected, the power on / off cycle operation stops, and the script automatically terminates the process, indicating that the instrument's storage function is normal under the current test intensity. Specifically, when the value read in the If statement is greater than a preset value, the system jumps to the Start Loop and decrements the count by 1, continuing to move the instrument up and down to ON, thus achieving cumulative and decremental control of the count to ensure accurate cycle counting. Each decrement of the count by 1 represents the completion of one full power on / off cycle operation.
[0037] Furthermore, based on the comparison results, it is determined whether there is a data anomaly in the internal non-volatile memory of the instrument under test. Specifically, if the target data is less than the preset reference value, it is determined that there is a data anomaly, and an anomaly alarm signal is generated or the power on / off cycle operation is stopped; if the target data is greater than or equal to the preset reference value, it is determined that there is no data anomaly, and the next power on / off cycle operation is continued; among which, data anomaly includes data loss, data rollback, or data being reset to the default value.
[0038] This judgment logic is integrated into the branching structure of the script. When the value read in the If statement is less than the preset value, the Else statement jumps to the final Stop function, and the script stops running. After the Stop function is triggered, the test environment maintains its current state for troubleshooting, and at the same time, an abnormal alarm signal is generated to notify the test system, ensuring that the fault scene is not overwritten. Data loss means that the EEPROM cannot save the written data; data rollback means that the data is rolled back to the previous cycle value; data being reset to the default value means that the stored content is cleared or restored to factory settings. These are all abnormal situations where the target data is less than the preset reference value, indicating that the non-volatile memory has experienced write failure or memory cell damage during power-on and power-off processes.
[0039] If the target data is greater than or equal to the preset reference value, it is determined that there is no data anomaly, and the next power on / off cycle operation continues. At this point, the script logic returns to the beginning of the cycle, re-initiates the power control command, and performs the next round of stress testing until the maximum cycle count threshold is reached or an anomaly is detected. Through the above mechanism, fully automated monitoring is achieved, completing closed-loop control from cycle counting and data comparison to abnormal shutdown without manual intervention. This ensures that potential risks of instrument EEPROM data under frequent power-on and power-off conditions can be captured in a timely manner during the development phase.
[0040] To make this application easier to understand and implement, the following Example 1 describes the principles and features of this application: The method in this embodiment mainly constructs an automated test environment, which aims to reproduce the power stress scenario of the instrument during the vehicle's life cycle. Its process mainly includes: simulating the real vehicle to feed real vehicle messages into the instrument, simulating the real vehicle power-on and power-off sequence, reading non-volatile memory data through UDS (Unified Diagnostic Services) and comparing it with preset values to determine whether the instrument's non-volatile memory storage and reading data is abnormal.
[0041] First, after the instrument cluster is powered on, the Playback module in the VSPY software feeds real vehicle messages into the instrument cluster, simulating the reception of cockpit messages every time the instrument cluster is switched to ON in a real vehicle. This step ensures that the instrument cluster is in a normal network communication environment, preventing it from entering sleep or abnormal protection modes due to bus silence, thus guaranteeing the validity of subsequent data readings. The Playback module controls the data stream transmission rhythm and timing, ensuring that the message ID and signal period conform to real vehicle specifications, providing the instrument cluster with a realistic working background, and preventing instrument cluster functionality limitations due to lack of network signal. VSPY is the vehicle network analysis software that provides the host computer control interface; Function Blocks are the functional block modules within the software that support scripted logic control, thereby achieving automated configuration of message transmission without continuous manual intervention.
[0042] Subsequently, the power control circuit of the instrument under test (DUT) is disconnected via a power control unit (e.g., a CAN (Controller Area Network) controlled relay), thus powering down the DUT. The basic principle is that the CAN signal-controlled relay is not closed, preventing the relay pins from maintaining a connection. One pin of the relay needs to be connected to a high level, and the other pin needs to be connected to the ON (ON) hard-wired pin of the instrument. This ON hard-wired pin constitutes part of the power control circuit. Simultaneously, the instrument's constant-power hard-wired pin, ACC (Accessory) hard-wired pin, and GND (Ground) hard-wired pin can also be connected and maintained in a continuous state via the CAN-controlled relay. This provides the advantage of conveniently controlling the ON (ON) power-down state of the instrument. Each time the instrument is powered down to the ON position, the data in the non-volatile memory is rewritten to the non-volatile memory. Based on this, the power-off hold time is set in the control script to a first preset duration, such as 2000ms. This time can be set differently in different projects depending on the specific circumstances. The first preset duration must be greater than or equal to the shortest time required to write data to the non-volatile memory, so as to ensure that the data is completely saved to the storage unit and prevent writing interruption or data corruption due to too rapid power failure, thereby satisfying the limitation on the power-off state duration in the claims.
[0043] Next, the power control circuit is closed via the power control unit to power on the instrument under test (DUT). The basic principle is that the CAN signal controls the relay to close, keeping the pins on both ends of the relay connected. Each time the instrument is powered on (ON), it reads data from its non-volatile memory. Simultaneously, the control script sets a power-on delay time to a second preset duration, such as 7000ms. Generally, after the instrument is powered on (ON), there is approximately 3000ms for the startup animation and approximately 3000ms for the indicator light self-test. This time can be set differently depending on the specific project. This second preset duration ensures that the DUT completes the initialization process and the system enters a stable operating state before data reading, avoiding communication failures or invalid data reads due to incomplete startup, corresponding to the step of waiting for the instrument to complete initialization in the claims.
[0044] Subsequently, the control script reads the corresponding DID (Data Identifier) values, such as mileage, via a diagnostic service protocol (e.g., service 22). This value is then compared to a preset reference value, typically set to be slightly smaller than the value stored in the instrument's non-volatile memory. When the condition is met, it indicates normal non-volatile memory data. In this case, the script jumps back to continue looping, decrementing the loop count by 1. If the non-volatile memory data is abnormal, a value of 0 is typically written to it. Therefore, the value read from the ON position will also be 0. Comparing this value to the preset reference value, if it is less, the loop breaks and the script stops, indicating an abnormality in the instrument's non-volatile memory data. After the script stops running, the test environment maintains its current state for troubleshooting, ensuring the fault location is not overwritten. This corresponds to the logic in the claims that determines whether there is data abnormality and stops operation based on the comparison result.
[0045] Finally, when the number of loops reaches the maximum loop count threshold, the script will stop executing automatically, indicating that there are no storage or read errors in the instrument's non-volatile memory data. The maximum loop count can generally be set according to specific project requirements, for example, 1,000,000,000 times, to cover a sufficient number of stress tests. This closed-loop control mechanism achieves fully automated monitoring of the entire process from loop counting and data comparison to abnormal shutdown. It can capture potential risks to the instrument's non-volatile memory data under frequent power-on / off conditions without manual intervention, improving testing efficiency and coverage. This process fully embodies the steps in the claims of setting the maximum loop count threshold, recording the number of loops, and stopping operation after reaching the threshold, ensuring the integrity of the test and coverage of boundary conditions.
[0046] In summary, the main advantages of this application include: Highly efficient and convenient: The environment can be built using common ValueCAN and VSPY software, a DC power supply, and a CAN-controlled relay, without the need for additional expensive specialized tools. The test environment is built on a general hardware interface and software platform. The power control unit uses a CAN-controlled relay, which, in conjunction with the DC power supply, controls the on / off power control circuit of the instrument under test. Compared to dedicated test equipment, this solution can be implemented using existing development toolchains, reducing hardware setup costs and eliminating the need for customized, complex test benches. This simplifies and speeds up the environment setup process, facilitates reuse across different projects, and significantly reduces the investment in test resources.
[0047] High degree of automation: Once the environment is set up, it can run automatically until a problem is detected, at which point it automatically stops without manual intervention. The testing process is driven by a script, using Start Loop and If-Else functions to achieve closed-loop control. The script automatically executes power on / off loop operations and reads the target data from non-volatile memory via the diagnostic service protocol after each power-on. When the comparison result between the target data and the preset reference value indicates an anomaly, the script automatically jumps to the Stop function to stop execution, thus preserving the fault context, reducing test deviations caused by human error, and ensuring the consistency and reliability of the test logic.
[0048] Capable of timely problem detection: Operating 24 / 7, the system can promptly identify EEPROM data anomalies in instruments during the product development phase. Based on a maximum loop count threshold for automated scripts, the testing system can run continuously for extended periods, simulating power stress accumulation in instruments throughout the vehicle's lifecycle. Testing can continue during non-operating hours, significantly shortening the problem exposure cycle. This allows verification of non-volatile memory data storage and reading anomalies to be moved forward to the product development stage, facilitating early identification of occasional data write failures or data clearing risks caused by frequent power-ups and shutdowns.
[0049] Secondly, embodiments of this application provide an EEPROM data anomaly detection system for an instrument, comprising: a first module, a second module, a third module, and a fourth module. The first module is used to control the instrument under test to perform multiple power-on / off cycle operations; the second module is used to read target data from the internal non-volatile memory of the instrument under test after each power-on operation; the third module is used to compare the target data with a preset reference value; and the fourth module is used to determine whether there is a data anomaly in the internal non-volatile memory of the instrument under test based on the comparison result.
[0050] The functions of each module in the instrument EEPROM data anomaly detection system correspond to the steps in the instrument EEPROM data anomaly detection method embodiment, and their functions and implementation processes will not be described in detail here.
[0051] Thirdly, embodiments of this application provide an instrument EEPROM data anomaly detection device, which can be a personal computer (PC), laptop computer, server, or other device with data processing capabilities.
[0052] In this embodiment, the instrument EEPROM data anomaly detection device may include a processor, a memory, a communication interface, and a communication bus.
[0053] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.
[0054] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces used for interconnecting internal components of the instrument's EEPROM data anomaly detection device, as well as interfaces used for interconnecting the instrument's EEPROM data anomaly detection device with other devices (such as other computing devices or user equipment). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc.; user equipment can be displays, keyboards, etc.
[0055] Memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0056] The processor can be a general-purpose processor, which can call the instrument EEPROM data anomaly detection program stored in the memory and execute the instrument EEPROM data anomaly detection method provided in the embodiments of this application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the instrument EEPROM data anomaly detection program is called can be referred to in the various embodiments of the instrument EEPROM data anomaly detection method of this application, and will not be repeated here.
[0057] Fourthly, embodiments of this application also provide a computer-readable storage medium.
[0058] The present application provides a computer-readable storage medium storing an instrument EEPROM data anomaly detection program, wherein when the instrument EEPROM data anomaly detection program is executed by a processor, it implements the steps of the instrument EEPROM data anomaly detection method described above.
[0059] The method implemented when the instrument EEPROM data anomaly detection program is executed can be referred to in various embodiments of the instrument EEPROM data anomaly detection method of this application, and will not be repeated here.
[0060] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0061] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus. The terms "first," "second," and "third," etc., are used to distinguish different objects, etc., and do not indicate a sequence, nor do they limit "first," "second," and "third" to different types.
[0062] In the description of the embodiments of this application, terms such as "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a concrete manner.
[0063] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0064] In some processes described in the embodiments of this application, multiple operations or steps are included in a specific order. However, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of this application, or they may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.
[0065] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. 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, in essence, or the part that contributes to the prior art, 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 several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.
[0066] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for detecting abnormal EEPROM data in an instrument, characterized in that, It includes: Control the instrument under test to perform multiple power on / off cycle operations; After each power-on operation, the target data is read from the non-volatile memory inside the instrument under test; The target data is compared with a preset reference value; Based on the comparison results, determine whether there is any data anomaly in the internal non-volatile memory of the instrument under test.
2. The instrument EEPROM data anomaly detection method as described in claim 1, characterized in that, Before controlling the instrument under test to perform multiple power on / off cycles, the method further includes: A simulated message is sent to the instrument under test to simulate its working state in a real vehicle environment.
3. The instrument EEPROM data anomaly detection method as described in claim 1, characterized in that, Controlling the instrument under test to perform multiple power on / off cycles specifically includes: The power control unit disconnects the power control circuit of the instrument under test, thus powering down the instrument under test. The power control unit connects the power control circuit of the instrument under test, thereby powering on the instrument under test.
4. The instrument EEPROM data anomaly detection method according to claim 3, characterized in that, The method further includes: After disconnecting the power control circuit of the instrument under test, maintain the power-down state for a first preset duration; After the power control circuit of the instrument under test is turned on, wait for the second preset time until the instrument under test completes initialization.
5. The instrument EEPROM data anomaly detection method as described in claim 1, characterized in that, Reading the target data from the non-volatile memory inside the instrument under test specifically includes: Send a data read request to the instrument under test via the diagnostic service protocol; Receive the target data returned by the instrument under test in response to the data read request.
6. The instrument EEPROM data anomaly detection method as described in claim 1, characterized in that, The target data is compared with a preset reference value, specifically including: Obtain the preset reference value, which is less than the data value normally stored in the non-volatile memory; Determine whether the target data is less than or equal to the preset reference value.
7. The instrument EEPROM data anomaly detection method as described in claim 1, characterized in that, The methods for determining the preset reference value include: Retrieve historical data values from the power cycle; Based on the historical data values and the preset tolerance value, a preset reference value is obtained.
8. The instrument EEPROM data anomaly detection method as described in claim 1, characterized in that: The method further includes: Set a threshold for the maximum number of loops; Record the number of power on / off cycles that have been completed so far; When the number of cycles reaches the maximum cycle count threshold and no data anomalies are detected, the power on / off cycle operation is stopped.
9. The instrument EEPROM data anomaly detection method as described in claim 1, characterized in that, Based on the comparison results, determine whether there is data anomaly in the internal non-volatile memory of the instrument under test, specifically including: If the target data is less than the preset reference value, it is determined that there is a data anomaly, and an anomaly alarm signal is generated or the power on / off cycle operation is stopped. If the target data is greater than or equal to the preset reference value, it is determined that there is no data anomaly, and the next power on / off cycle operation continues. The data anomalies include data loss, data rollback, or data being reset to default values.
10. A system for detecting abnormal EEPROM data in an instrument, characterized in that, It includes: The first module is used to control the instrument under test to perform multiple power on / off cycle operations. The second module is used to read the target data from the non-volatile memory inside the instrument under test after each power-on operation. The third module is used to compare the target data with a preset reference value; The fourth module is used to determine whether there is any data anomaly in the internal non-volatile memory of the instrument under test based on the comparison results.
