A vehicle-mounted touch control system and an abnormality detection method of the vehicle-mounted touch control system
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2026-08-11
AI Technical Summary
[0003]目前,由于汽车电子对触摸按键的设计都比较落后,在触摸系统出现问题时,无法区分是系统问题还是触摸传感器的问题,致使无法及时地对安全性问题的“责任”进行认定,使得车辆异常问题的确定效率较低
[0056] The vehicle-mounted touch system and its anomaly detection method provided in this application embodiment can detect whether there are any abnormalities in the vehicle-mounted touch system or touch sensors through the microcontroller unit in the vehicle-mounted touch system, and determine the type of abnormal operation of the vehicle-mounted touch system. In this way, the detection of abnormal problems in the vehicle-mounted touch system can be achieved quickly, and the detection efficiency of abnormal problems can be improved.
Smart Images

Figure CN116923290B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle control technology, and in particular to an in-vehicle touch control system and an anomaly detection method for the in-vehicle touch control system. Background Technology
[0002] The booming development of the automotive industry and the continuous increase in the number of cars have brought about huge traffic problems, which have also led to a large number of traffic accidents, posing a great threat to people's safety and property. Some of these traffic accidents are caused by problems with the vehicle system, and the issue of system safety has gradually become the focus of people's attention, resulting in the emergence of various active safety devices.
[0003] Currently, due to the relatively outdated design of touch buttons in automotive electronics, when a problem occurs in the touch system, it is impossible to distinguish whether the problem is with the system or the touch sensor. This makes it difficult to determine the "responsibility" for safety issues in a timely manner, resulting in low efficiency in identifying vehicle malfunctions. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide an in-vehicle touch control system and an anomaly detection method for the in-vehicle touch control system. The microcontroller unit in the in-vehicle touch control system can analyze the operation control data and sensor data to promptly determine the abnormal problems of the in-vehicle touch control system, thereby improving the efficiency of determining vehicle abnormal problems.
[0005] This application provides an in-vehicle touch system, which includes a system base chip and a microcontroller unit;
[0006] The system base chip is communicatively connected to the microcontroller unit.
[0007] The system base chip is used to convert the input voltage of the external power supply into the operating voltage of the microcontroller, and to convert the signal format of the output signal of the microcontroller into a specific format;
[0008] The microcontroller unit is used to detect the vehicle touch system and touch sensors based on the operation control data of the vehicle touch system and the sensor data obtained through the PTC register, so as to determine the type of operation abnormality of the vehicle touch system; wherein, the type of operation abnormality includes at least one of system operation abnormality and sensor operation abnormality.
[0009] In one possible implementation, the system base chip includes a watchdog timer circuit;
[0010] The watchdog timer circuit is used to trigger the restart of the in-vehicle touch system when an operational abnormality occurs.
[0011] In one possible implementation, the microcontroller is connected to an RstCtrl module, multiple ADC modules, a TCA module, a Usart module, an internal comparator, and a processor.
[0012] The first ADC module among the plurality of ADC modules is communicatively connected to both the external power supply and the processor; the first ADC module is used to convert analog level signals into digital level signals.
[0013] The RstCtrl module is communicatively connected to the output of the watchdog timer circuit and the processor; the RstCtrl module is used to control the microcontroller to reset and restart.
[0014] The TCA module is communicatively connected to the input terminal of the watchdog timer circuit and the processor, respectively; the TCA module is used to generate timing waveforms input to the watchdog timer circuit.
[0015] The Usart module is communicatively connected to both the system base chip and the processor; the Usart module is used to send and receive communication bus data.
[0016] The second ADC module among the plurality of ADC modules is communicatively connected to the output terminal of the power management circuit of the system base chip and the processor, respectively; the second ADC module is used to convert analog level signals into digital level signals;
[0017] The internal comparator is communicatively connected to the second ADC module; the internal comparator determines whether the operating voltage is abnormal by comparing the operating voltage identified by the second ADC module with the rated voltage range.
[0018] The PTC register is communicatively connected to both the touch sensor and the processor; the PTC register is used to transmit the sensor data output by the touch sensor to the processor.
[0019] This application also provides an anomaly detection method for an in-vehicle touch system, applied to the microcontroller unit of the in-vehicle touch system; the touch sensor of the in-vehicle touch system is communicatively connected to the PTC register in the microcontroller unit; the PTC register is used to acquire sensor data from the touch sensor; the anomaly detection method includes:
[0020] Acquire the operation control data of the in-vehicle touch control system and the sensor data;
[0021] The operation control data is detected using the data detection method corresponding to the operation control data, and a first operation detection result of the operation control data is determined.
[0022] Based on a preset diagnostic function, the operating status of the sensor data is detected to determine the second operating detection result of the touch sensor;
[0023] Based on the first operation detection result and the second operation detection result, the operation anomaly type of the vehicle touch control system is determined; wherein, the operation anomaly type includes at least one of system operation anomaly and sensor operation anomaly.
[0024] In one possible implementation, the operation control data includes data written to registers; the step of detecting the operation control data using a data detection method corresponding to the operation control data, and determining a first operation detection result of the operation control data, includes:
[0025] After the register has finished writing data, the written data and the stored data in the register are obtained.
[0026] Compare whether the written data is consistent with the stored data;
[0027] If they match, the first running detection result is determined to be valid in the register;
[0028] If there is a discrepancy, the result of the first running test is determined to be a register failure.
[0029] In one possible implementation, the operation control data includes the operating voltage of the microcontroller unit; the step of detecting the operation control data using a data detection method corresponding to the operation control data, and determining a first operation detection result of the operation control data, includes:
[0030] Obtain the operating voltage identified by the first ADC module set in the microcontroller unit;
[0031] The operating voltage is compared with the rated voltage range using an internal comparator provided in the microcontroller unit.
[0032] If the operating voltage is greater than the rated voltage range, then the first operation detection result is determined to be overvoltage.
[0033] If the operating voltage is less than the rated voltage range, then the first operation detection result is determined to be undervoltage.
[0034] If the operating voltage is within the rated voltage range, then the first operation detection result is determined to be that the voltage is normal.
[0035] In one possible implementation, the operation control data includes a digital output signal output by the ADC module; the step of detecting the operation control data using a data detection method corresponding to the operation control data to determine a first operation detection result of the operation control data includes:
[0036] A DAC module is used to convert digital input signals into analog output signals.
[0037] For each ADC module set in the microcontroller unit, the analog output signal is converted into a digital output signal using the ADC module;
[0038] Compare whether the digital input signal and the digital output signal are consistent;
[0039] If they match, the first running detection result is determined to be valid for the ADC module;
[0040] If there is a discrepancy, the first running detection result is determined to be a failure of the ADC module.
[0041] In one possible implementation, the operation control data includes memory operation data; the step of detecting the operation control data using a data detection method corresponding to the operation control data and determining a first operation detection result of the operation control data includes:
[0042] Extract specific variables from the memory's operating data;
[0043] Perform an XOR operation between the specific variable and its corresponding transpose to determine the XOR result data.
[0044] If each element in the XOR result data is a preset threshold, the first running detection result is determined to be valid in memory.
[0045] If any element in the XOR result data is not a preset threshold, the first running detection result is determined to be a memory failure.
[0046] In one possible implementation, the preset diagnostic function includes a short-circuit test function; the sensor data includes resistance and voltage values; the step of detecting the operating status of the sensor data based on the preset diagnostic function to determine a second operating detection result of the touch sensor includes:
[0047] The short-circuit test function is used to determine whether the resistor voltage value is greater than a preset voltage threshold.
[0048] If so, determine that the second operation detection result indicates a sensor short circuit;
[0049] If not, the second operational detection result indicates that the sensor is normal.
[0050] In one possible implementation, the preset diagnostic function includes an open-circuit test function; the sensor data includes touch signals; and the step of detecting the operating status of the sensor data based on the preset diagnostic function to determine a second operating detection result of the touch sensor includes:
[0051] The PTC register is used to generate a signal identifier based on the touch signal;
[0052] If the identifier in a specific identifier bit of the signal identifier is a preset identifier, the second operation detection result is determined to be a sensor short circuit;
[0053] Otherwise, the second operational detection result is determined to be that the sensor is normal.
[0054] This application also provides an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the anomaly detection method of the in-vehicle touch system described above are performed.
[0055] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the above-described anomaly detection method for an in-vehicle touch system.
[0056] The vehicle-mounted touch system and its anomaly detection method provided in this application embodiment can detect whether there are any abnormalities in the vehicle-mounted touch system or touch sensors through the microcontroller unit in the vehicle-mounted touch system, and determine the type of abnormal operation of the vehicle-mounted touch system. In this way, the detection of abnormal problems in the vehicle-mounted touch system can be achieved quickly, and the detection efficiency of abnormal problems can be improved.
[0057] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0058] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0059] Figure 1 This is a schematic diagram of a vehicle control system provided in an embodiment of this application;
[0060] Figure 2 This is a schematic diagram of an in-vehicle touch control system provided in an embodiment of this application;
[0061] Figure 3 An anomaly detection method for an in-vehicle touch system provided in this application embodiment;
[0062] Figure 4 This is a schematic diagram of the structure of a microcontroller provided in an embodiment of this application;
[0063] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0064] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. Based on the embodiments of this application, every other embodiment obtained by those skilled in the art without inventive effort falls within the scope of protection of this application.
[0065] Research has found that, currently, the design of touch buttons in automotive electronics is relatively outdated. When a problem occurs in the touch system, it is impossible to distinguish whether the problem is with the system or with the touch sensor. This makes it difficult to determine responsibility for safety issues in a timely manner, resulting in low efficiency in identifying vehicle malfunctions.
[0066] Based on this, this application provides an in-vehicle touch control system. The microcontroller unit in the in-vehicle touch control system analyzes the operation control data and sensor data to promptly identify abnormal problems in the in-vehicle touch control system, thereby improving the efficiency of identifying vehicle abnormal problems.
[0067] Please see Figure 1 , Figure 1 This is a schematic diagram of a vehicle control system provided as an embodiment of this application. Figure 1As shown, the vehicle control system 100 includes a lighting controller (PDC) 110, an in-vehicle touch system 120, an external power supply 130, and a touch sensor 140; the lighting controller 110, the external power supply 130, and the touch sensor 140 are respectively connected to the in-vehicle touch system 120; wherein, the lighting controller 110 is connected to the in-vehicle touch system 120 through a LIN converter 150.
[0068] Please see Figure 2 , Figure 2 This is a schematic diagram of an in-vehicle touch control system provided in an embodiment of this application. Figure 2 As shown in the figure, the in-vehicle touch control system 120 provided in this application embodiment includes a system base chip 121 and a microcontroller unit 122.
[0069] The system base chip 121 is communicatively connected to the microcontroller unit 122; the microcontroller unit 122 is also communicatively connected to the touch sensor 140; the system base chip 121 is communicatively connected to the LIN converter 150; and the external power supply 130 is connected to both the system base chip 121 and the microcontroller unit 122.
[0070] The system base chip 121 is used to convert the input voltage of the external power supply 130 into the operating voltage of the microcontroller unit 122.
[0071] The system base chip 121 is communicatively connected to the LIN converter 150. The system base chip 121 can also be used to convert the signal format of the output signal of the microcontroller 122 into a specific signal format received by the lighting controller (PDC) 110 through the LIN converter 150; or, through the LIN converter 150, convert the signal output by the lighting controller (PDC) 110 from a specific signal format into a data format that the microcontroller 122 can recognize.
[0072] In one implementation, such as Figure 2 As shown, the system base chip 121 includes a watchdog timer circuit 1211;
[0073] The watchdog timer circuit 1211 is used to trigger the restart of the vehicle touch system 120 when the vehicle touch system 120 malfunctions.
[0074] The microcontroller unit 122 is used to detect the vehicle touch system 120 and the touch sensor 140 based on the operation control data of the vehicle touch system 120 and the sensor data obtained through the PTC register 1221, so as to determine the operation abnormality type of the vehicle touch system 120; wherein, the operation abnormality type includes at least one of system operation abnormality and sensor operation abnormality.
[0075] In one embodiment, the microcontroller unit 122 is further connected to an RstCtrl module 1222, multiple ADC modules 1223, a TCA module 1224, a Usart module 1225, an internal comparator 1226, and a processor 1227; the first ADC module 12231 among the multiple ADC modules 1223 is communicatively connected to an external power supply 130 and the processor 1227 respectively; the first ADC module 12231 is used to convert analog level signals into digital level signals;
[0076] Specifically, such as Figure 2 As shown, the first pin of the first ADC module 12231 among the plurality of ADC modules 1223 is connected to the external power supply 130; the second pin of the first ADC module 12231 is connected to the first pin of the processor 1227.
[0077] The RstCtrl module 1222 is communicatively connected to the output of the watchdog timer circuit 1211 and the processor 1227, respectively; the RstCtrl module 1222 is used to control the microcontroller unit to reset and restart.
[0078] Specifically, the first pin of the RstCtrl module 1222 is connected to the output of the watchdog timer circuit 1211; the second pin of the RstCtrl module 1222 is connected to the second pin of the processor 1227.
[0079] The TCA module 1224 is communicatively connected to the input terminal of the watchdog timer circuit 1211 and the processor 1227, respectively; the TCA module 1224 is used to generate timing waveforms input to the watchdog timer circuit 1211;
[0080] Specifically, the first pin of the TCA module 1224 is connected to the input terminal of the watchdog timer circuit 1211; the second pin of the TCA module 1224 is connected to the third pin of the processor 1227.
[0081] The Usart module 1225 is communicatively connected to the system base chip 121 and the processor 1227 respectively; the Usart module 1225 is used to send and receive communication bus data.
[0082] Specifically, the first pin of the Usart module 1225 is connected to the first pin of the system base chip 121; the second pin of the Usart module 1225 is connected to the fourth pin of the processor 1227.
[0083] The second ADC module 12232 of the plurality of ADC modules 1223 is communicatively connected to the output terminal of the power management circuit 1212 of the system base chip 121 and the processor 1227, respectively; the second ADC module 12232 is used to convert analog level signals into digital level signals;
[0084] The first pin of the second ADC module 12232 of the plurality of ADC modules 1223 is connected to the output terminal of the power management circuit 1212 of the system base chip 121; the second pin of the second ADC module 12232 is connected to the fifth pin of the processor 1227.
[0085] The internal comparator 1226 is communicatively connected to the second ADC module 12232; the internal comparator 1226 determines whether the operating voltage is abnormal by comparing the operating voltage identified by the second ADC module 12232 with the rated voltage range.
[0086] Specifically, the first pin of the internal comparator 1226 is connected to the first pin of the second ADC module 12232.
[0087] The PTC register 1221 is communicatively connected to the touch sensor 140 and the processor 1227 respectively; the PTC register 1221 is used to transmit the sensor data output by the touch sensor 140 to the processor 1227.
[0088] Specifically, the signal input terminal of the PTC register 1221 is connected to the signal output terminal of the touch sensor 140; the signal output terminal of the PTC register 1221 is connected to the sixth pin of the processor 1227.
[0089] Please see Figure 3 , Figure 3 This application provides an anomaly detection method for an in-vehicle touch control system. It is applied to a microcontroller unit (MCU) of the in-vehicle touch control system; the touch sensor of the in-vehicle touch control system is communicatively connected to a PTC register in the MCU; the PTC register is used to acquire sensor data from the touch sensor; such as... Figure 3 As shown, the anomaly detection method includes:
[0090] S301. Obtain the operation control data of the vehicle-mounted touch control system and the sensor data.
[0091] S302. Using the data detection method corresponding to the operation control data, the operation control data is detected to determine the first operation detection result of the operation control data.
[0092] S303. Based on a preset diagnostic function, detect the operating status of the sensor data and determine the second operating detection result of the touch sensor.
[0093] S304. Based on the first operation detection result and the second operation detection result, determine the operation anomaly type of the vehicle touch control system.
[0094] The anomaly detection method for in-vehicle touch systems provided in this application can detect whether there are any abnormalities in the in-vehicle touch system or touch sensors through the microcontroller unit in the in-vehicle touch system, and determine the type of abnormal operation of the in-vehicle touch system. In this way, it can quickly realize the detection of abnormal problems in the in-vehicle touch system and improve the detection efficiency of abnormal problems.
[0095] In step S301, the microcontroller acquires the operation control data of each system module in the vehicle touch system (e.g., the data written to the register, the working voltage identified by the first ADC module, the digital output signal output by the ADC module, and the memory operation data), as well as the sensor data of the touch sensor acquired by the PTC register.
[0096] In step S302, the microcontroller unit can use the operation control data to detect whether there is a failure in each system module (e.g., register, ADC module, etc.) of the vehicle touch system.
[0097] Here, different data detection methods exist for different operational control data. This enables accurate detection of operational control data, avoids detection errors, and improves the accuracy of detection results.
[0098] Specifically, for different operational control data, the microcontroller uses the corresponding data detection method to detect the operational control data in order to determine the first operational detection result of the operational control data.
[0099] In one implementation, the operation control data includes data written to registers; step S302 includes:
[0100] After the register is written, the written data and the stored data in the register are obtained; the written data and the stored data are compared to see if they are consistent; if they are consistent, the first running detection result is determined to be that the register is valid; if they are inconsistent, the first running detection result is determined to be that the register is invalid.
[0101] In this step, after the register in the vehicle touch system completes the data writing, that is, after the register completes one IO, the stored data in the register is read again and the written data written to the register is obtained; compare whether the written data written to the register is consistent with the stored data in the register; if they are consistent, it can be considered that there is no problem with the register. At this time, it can be determined that the first running detection result is that the register is valid.
[0102] If there is a discrepancy, it indicates that the register cannot be written to normally. In this case, it can be determined that the first running test result is that the register is faulty.
[0103] Here, the vehicle-mounted touch system is also affected by the power supply voltage and cannot work properly. Therefore, it is possible to further detect whether there are any abnormalities in the power supply voltage of the vehicle-mounted touch system, thereby achieving comprehensive safety testing of the vehicle-mounted touch system.
[0104] In one embodiment, the operation control data includes the operating voltage of the microcontroller unit; step S302 includes:
[0105] The system acquires the operating voltage identified by the first ADC module in the microcontroller unit; it then compares the operating voltage with the rated voltage range using an internal comparator in the microcontroller unit; if the operating voltage is greater than the rated voltage range, the first operational detection result is determined to be overvoltage; if the operating voltage is less than the rated voltage range, the first operational detection result is determined to be undervoltage; and if the operating voltage is within the rated voltage range, the first operational detection result is determined to be normal voltage.
[0106] For in-vehicle touch systems, there is a rated voltage range suitable for their operation. If the operating voltage received by the in-vehicle touch system is too high, it is easy to burn out the various control modules in the in-vehicle touch system. If the operating voltage received by the in-vehicle touch system is too low, it cannot support the normal operation of the various control modules in the in-vehicle touch system.
[0107] In this step, the operating voltage identified by the first ADC module set in the microcontroller is obtained, and the operating voltage is compared with the rated voltage range of the vehicle touch control system by the internal comparator set in the microcontroller.
[0108] If the operating voltage is greater than the rated voltage range of the vehicle touch system, it indicates that the operating voltage input to the vehicle touch system is too high and has exceeded the operating range of the vehicle touch system. In this case, the first operation detection result can be determined as overvoltage.
[0109] If the operating voltage is less than the rated voltage range of the vehicle touch system, it indicates that the operating voltage input to the vehicle touch system is too low and cannot support the normal operation of each control module in the vehicle touch system. In this case, the first operation detection result is determined to be undervoltage.
[0110] If the operating voltage is within the rated voltage range of the vehicle touch system, it indicates that the operating voltage input to the vehicle touch system is within a reasonable range. In this case, the first operation detection result is determined to be that the voltage is normal.
[0111] If the ADC module in the vehicle touch system fails to complete the signal conversion properly, it will also cause the vehicle touch system to malfunction. Therefore, it is also necessary to check whether the ADC is malfunctioning.
[0112] In one embodiment, the operation control data includes the digital output signal output by the ADC module; step S302 further includes:
[0113] A DAC module is used to convert a digital input signal into an analog output signal. For each ADC module set in the microcontroller unit, the analog output signal is converted into a digital output signal. The digital input signal and the digital output signal are compared to see if they are consistent. If they are consistent, the first operation detection result is determined to be that the ADC module is valid. If they are inconsistent, the first operation detection result is determined to be that the ADC module is invalid.
[0114] In this step, a digital input signal is acquired, and a DAC module is used to convert the digital input signal into an analog output signal. For each ADC module in the vehicle touch system, the ADC module is used to convert the analog output signal output by the DAC module into a digital output signal. By comparing the digital input signal and the digital output signal, it is determined whether the ADC module can accurately achieve the signal conversion.
[0115] Assuming the DAC module is effective, i.e., the analog output signal output by the DAC module is accurate, if the digital input signal and the digital output signal are consistent, the first operational detection result can be determined as the ADC module being effective; if the digital input signal and the digital output signal are inconsistent, it indicates that the ADC module has an abnormal problem. In this case, the first operational detection result can be determined as the ADC module being faulty. In this way, abnormal detection of each ADC module in the vehicle touch system can be achieved.
[0116] In one embodiment, the operation control data includes memory operation data; step S102 includes:
[0117] Extract a specific variable from the memory operation data; perform an XOR operation on the specific variable and its corresponding transpose to determine the XOR result data; if each element in the XOR result data is a preset threshold, determine that the first operation detection result is that the memory is valid; if any element in the XOR result data is not a preset threshold, determine that the first operation detection result is that the memory is invalid.
[0118] In this step, the microcontroller acquires the memory operation data of the SRAM and extracts specific variables from the memory operation data; the specific variables are then transposed to obtain the transposed variables corresponding to the specific variables.
[0119] Then, perform an XOR operation between the transposed variable obtained after transposition and the specific variable, and determine the XOR operation result. If each element in the XOR result data is a preset threshold (for example, the value of each element in the XOR result data is 0xFF), it indicates that the memory can operate normally. At this time, the first running detection result can be determined as the memory being valid.
[0120] If any element in the XOR result data is not a preset threshold (for example, there is an element in the XOR result data whose value is not 0xFF), it indicates that there is an abnormality in the memory. In this case, the first running detection result can be determined to be a memory failure.
[0121] Here, for the asynchronous transceiver involved in the microcontroller unit, detection can be performed using an additional asynchronous transceiver.
[0122] In one implementation, the input transmission data and output transmission data intercepted by the first asynchronous transceiver are acquired; the input transmission data and the output transmission data are compared with the input received data of the second asynchronous transceiver; if they match, the first operation detection result is determined to be that the transceiver is valid; if they do not match, the first operation detection result is determined to be that the transceiver is invalid.
[0123] The microcontroller uses a first asynchronous transceiver 1 (Uart1) to verify whether the second asynchronous transceiver 0 (Uart0) is faulty. This is done by connecting the transmitter (Tx) of Uart0 to the receiver (Rx) of Uart1, and similarly connecting the receiver (Rx) of Uart0 to the receiver (Rx) of Uart1. This allows both the input and output of Uart0 to be intercepted by Uart1. The data received by Uart1 is compared with the original value of Uart0. If the data received by Uart1 matches the input value received by Uart0, it indicates that the second asynchronous transceiver is functioning correctly and can be considered valid. If they do not match, it indicates that the second asynchronous transceiver is not functioning correctly and can be considered faulty.
[0124] In step S303, the microcontroller unit can use sensor data to detect whether there is an abnormality in the touch sensor.
[0125] Here, different preset diagnostic functions are needed to detect anomalies for different sensor data. This will enable accurate detection of sensor data, avoid detection errors, and improve the accuracy of detection results.
[0126] Specifically, for different sensor data, the microcontroller uses the corresponding data detection method to detect the sensor data in order to determine the second operational detection result of the sensor data.
[0127] In one embodiment, the preset diagnostic function includes a short-circuit test function; the sensor data includes resistance and voltage values; step S303 includes:
[0128] Using the short-circuit test function, determine whether the resistor voltage value is greater than a preset voltage threshold; if yes, determine that the second operation detection result is a sensor short circuit; if no, determine that the second operation detection result is a sensor normal.
[0129] In this step, the touch circuit is diagnosed as not having experienced a short circuit failure using the short-circuit test function (Touch_BIST_ShortTest function). The PTC register of the microcontroller unit obtains the resistance voltage value of the back-end resistor of the touch sensor, and uses the short-circuit test function to determine whether the resistance voltage value is greater than a preset voltage threshold. If it is, it indicates that a short circuit has occurred inside the touch sensor, and the second operation detection result can be determined as a sensor short circuit; if not, it indicates that the touch sensor is operating normally, and the second operation detection result is determined as a sensor normal.
[0130] In one embodiment, the preset diagnostic function includes an open-circuit test function; the sensor data includes touch signals; step S303 includes:
[0131] The PTC register is used to generate a signal identifier based on the touch signal; if the identifier on a specific identifier bit in the signal identifier is a preset identifier, the second operation detection result is determined to be a sensor short circuit; otherwise, the second operation detection result is determined to be a sensor normal.
[0132] In this step, the PTC register can identify touch behavior by recognizing the touch capacitor voltage in the touch sensor through the ADC module; after the PTC register obtains the touch signal, the PTC register generates a signal identifier based on the touch signal; the microcontroller unit identifies a specific identifier bit from the signal identifier by recognizing the signal identifier, and compares the identifier on the specific identifier bit with the preset identifier through the open circuit test function (Touch_BIST_PeripheralRegisterTest);
[0133] If the identifier in a specific identifier bit of the signal identifier is a preset identifier, for example, if the identifier in a specific identifier bit is 0, it means that the touch sensor cannot operate normally. In this case, the second operation detection result is determined to be a sensor short circuit.
[0134] Otherwise, it indicates that the touch sensor is functioning normally, and in this case, the second test result is determined to be that the sensor is normal.
[0135] In step S304, the microcontroller unit can determine the "attribution" of the abnormal problem based on the first operation detection result and the second operation detection result. If the first operation detection result includes any one of the following: register failure, voltage overvoltage, voltage undervoltage, ADC module failure, memory failure, and transceiver failure, then the abnormal operation type of the vehicle touch control system can be determined as a system operation abnormality.
[0136] And / or, if the second operation detection result is a sensor short circuit or a sensor short circuit, then the operation abnormality type of the vehicle touch control system can be determined as a sensor operation abnormality.
[0137] In one implementation, an ADC module is added between the PTC register and the touch sensor. The touch signal is sampled multiple times by multiple ADC modules, and the touch signals identified by the multiple ADC modules are compared. If they are consistent, it is determined that the PTC register is working normally; if they are inconsistent, it is determined that the PTC register sampling is invalid. In this way, redundant identification of the touch sensor is achieved.
[0138] The anomaly detection method for an in-vehicle touch system provided in this application embodiment acquires the operation control data and sensor data of the in-vehicle touch system; uses the data detection method corresponding to the operation control data to detect the operation control data and determine a first operation detection result of the operation control data; based on a preset diagnostic function, detects the operation status of the sensor data and determines a second operation detection result of the touch sensor; based on the first and second operation detection results, determines the type of operation anomaly of the in-vehicle touch system. In this way, the microcontroller unit in the in-vehicle touch system can promptly identify anomalies in the in-vehicle touch system by analyzing the operation control data and sensor data, thereby improving the efficiency of identifying vehicle anomalies.
[0139] Please see Figure 4 , Figure 4 This is a schematic diagram of a microcontroller unit provided in an embodiment of this application. The microcontroller unit is applied to an in-vehicle touch system; the touch sensor of the in-vehicle touch system is communicatively connected to a PTC register in the microcontroller unit; the PTC register is used to acquire sensor data from the touch sensor; such as... Figure 4 As shown, the microcontroller unit 400 includes:
[0140] Data acquisition module 410 is used to acquire the operation control data of the vehicle touch system and the sensor data;
[0141] The first detection module 420 is used to detect the operation control data using the data detection method corresponding to the operation control data, and determine the first operation detection result of the operation control data;
[0142] The second detection module 430 is used to detect the operating status of the sensor data based on a preset diagnostic function, and determine the second operating detection result of the touch sensor;
[0143] The anomaly determination module 440 is used to determine the type of operational anomaly of the vehicle touch system based on the first operational detection result and the second operational detection result; wherein the type of operational anomaly includes at least one of system operational anomaly and sensor operational anomaly.
[0144] Furthermore, the operation control data includes register write data; when the first detection module 420 detects the operation control data using the data detection method corresponding to the operation control data and determines the first operation detection result of the operation control data, the first detection module 420 is used to:
[0145] After the register has finished writing data, the written data and the stored data in the register are obtained.
[0146] Compare whether the written data is consistent with the stored data;
[0147] If they match, the first running detection result is determined to be valid in the register;
[0148] If there is a discrepancy, the result of the first running test is determined to be a register failure.
[0149] Furthermore, the operation control data includes the operating voltage of the microcontroller unit; when the first detection module 420 detects the operation control data using the data detection method corresponding to the operation control data and determines the first operation detection result of the operation control data, the first detection module 420 is used to:
[0150] Obtain the operating voltage identified by the first ADC module set in the microcontroller unit;
[0151] The operating voltage is compared with the rated voltage range using an internal comparator provided in the microcontroller unit.
[0152] If the operating voltage is greater than the rated voltage range, then the first operation detection result is determined to be overvoltage.
[0153] If the operating voltage is less than the rated voltage range, then the first operation detection result is determined to be undervoltage.
[0154] If the operating voltage is within the rated voltage range, then the first operation detection result is determined to be that the voltage is normal.
[0155] Furthermore, the operation control data includes the digital output signal output by the ADC module; when the first detection module 420 detects the operation control data using the data detection method corresponding to the operation control data and determines the first operation detection result of the operation control data, the first detection module 420 is used for:
[0156] A DAC module is used to convert digital input signals into analog output signals.
[0157] For each ADC module set in the microcontroller unit, the analog output signal is converted into a digital output signal using the ADC module;
[0158] Compare whether the digital input signal and the digital output signal are consistent;
[0159] If they match, the first running detection result is determined to be valid for the ADC module;
[0160] If there is a discrepancy, the first running detection result is determined to be a failure of the ADC module.
[0161] Furthermore, the operation control data includes memory operation data; when the first detection module 420 detects the operation control data using the data detection method corresponding to the operation control data and determines the first operation detection result of the operation control data, the first detection module 420 is used to:
[0162] Extract specific variables from the memory's operating data;
[0163] Perform an XOR operation between the specific variable and its corresponding transpose to determine the XOR result data.
[0164] If each element in the XOR result data is a preset threshold, the first running detection result is determined to be valid in memory.
[0165] If any element in the XOR result data is not a preset threshold, the first running detection result is determined to be a memory failure.
[0166] Furthermore, the preset diagnostic function includes a short-circuit test function; the sensor data includes resistance and voltage values; when the second detection module 430 detects the operating status of the sensor data based on the preset diagnostic function and determines the second operating detection result of the touch sensor, the second detection module 430 is used to:
[0167] The short-circuit test function is used to determine whether the resistor voltage value is greater than a preset voltage threshold.
[0168] If so, determine that the second operation detection result indicates a sensor short circuit;
[0169] If not, the second operational detection result indicates that the sensor is normal.
[0170] Furthermore, the preset diagnostic function includes an open-circuit test function; the sensor data includes touch signals; when the second detection module 430 detects the operating status of the sensor data based on the preset diagnostic function and determines the second operating detection result of the touch sensor, the second detection module 430 is used to:
[0171] The PTC register is used to generate a signal identifier based on the touch signal;
[0172] If the identifier in a specific identifier bit of the signal identifier is a preset identifier, the second operation detection result is determined to be a sensor short circuit;
[0173] Otherwise, the second operational detection result is determined to be that the sensor is normal.
[0174] The microprocessor unit provided in this embodiment acquires operational control data and sensor data from the in-vehicle touch control system; it uses a data detection method corresponding to the operational control data to detect the operational control data and determine a first operational detection result; based on a preset diagnostic function, it detects the operational status of the sensor data and determines a second operational detection result for the touch sensor; based on the first and second operational detection results, it determines the type of operational anomaly in the in-vehicle touch control system. In this way, the microcontroller unit in the in-vehicle touch control system can promptly identify abnormal problems by analyzing the operational control data and sensor data, thereby improving the efficiency of identifying vehicle anomalies.
[0175] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 5 As shown, the electronic device 500 includes a processor 510, a memory 520, and a bus 530.
[0176] The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 and the memory 520 communicate via the bus 530. When the machine-readable instructions are executed by the processor 510, they can perform the operations described above. Figure 3 The steps of the anomaly detection method for the vehicle-mounted touch system in the method embodiment shown are described in detail in the method embodiment, and will not be repeated here.
[0177] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can perform the above-described actions. Figure 3 The steps of the anomaly detection method for the vehicle-mounted touch system in the method embodiment shown are described in detail in the method embodiment, and will not be repeated here.
[0178] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0179] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0180] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0181] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0182] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0183] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The scope of protection of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for detecting an abnormality of an in-vehicle touch system, the method comprising: A microcontroller unit (MCU) is used in an in-vehicle touch control system. The in-vehicle touch control system also includes a system base chip, which is communicatively connected to the MCU. The system base chip converts the input voltage of an external power supply into the operating voltage of the MCU and converts the signal format of the MCU's output signal into a specific format. The system base chip includes a watchdog timer circuit. The watchdog timer circuit triggers a restart of the in-vehicle touch control system when an operational abnormality occurs. The MCU is connected to an RstCtrl module, multiple ADC modules, a TCA module, a Usart module, an internal comparator, and processing... The system comprises a plurality of ADC modules; a first ADC module is communicatively connected to an external power supply and the processor; the first ADC module is used to convert analog level signals into digital level signals; the RstCtrl module is communicatively connected to the output of the watchdog timer circuit and the processor; the RstCtrl module is used to control the microcontroller unit to reset and restart; the TCA module is communicatively connected to the input of the watchdog timer circuit and the processor; the TCA module is used to generate timing waveforms input to the watchdog timer circuit; and the Usart module is communicatively connected to the system base chip and the processor. The Usart module is used to transmit and receive communication bus data; the second ADC module among the plurality of ADC modules is communicatively connected to the output terminal of the power management circuit of the system base chip and the processor, respectively; the second ADC module is used to convert analog level signals into digital level signals; the internal comparator is communicatively connected to the second ADC module; the internal comparator determines whether the operating voltage is abnormal by comparing the operating voltage identified by the second ADC module with the rated voltage range; the PTC register is communicatively connected to the touch sensor of the vehicle touch system and the processor, respectively. The PTC register is used to transmit the sensor data output by the touch sensor to the processor. The anomaly detection method includes: Acquire the operation control data of the in-vehicle touch control system and the sensor data; The operation control data is detected using the data detection method corresponding to the operation control data, and a first operation detection result of the operation control data is determined. Based on a preset diagnostic function, the operating status of the sensor data is detected to determine the second operating detection result of the touch sensor; Based on the first operation detection result and the second operation detection result, the operation anomaly type of the vehicle touch control system is determined; wherein, the operation anomaly type includes at least one of system operation anomaly and sensor operation anomaly.
2. The abnormality detection method according to claim 1, characterized by, The operation control data includes data written to registers; the step of detecting the operation control data using the data detection method corresponding to the operation control data, and determining the first operation detection result of the operation control data, includes: After the register has finished writing data, the written data and the stored data in the register are obtained. Compare whether the written data is consistent with the stored data; If they match, the first running detection result is determined to be valid in the register; If there is a discrepancy, the result of the first running test is determined to be a register failure.
3. The abnormality detection method according to claim 1, characterized by, The operation control data includes the operating voltage of the microcontroller unit; the step of detecting the operation control data using the data detection method corresponding to the operation control data, and determining the first operation detection result of the operation control data, includes: Obtain the operating voltage identified by the first ADC module set in the microcontroller unit; The operating voltage is compared with the rated voltage range using an internal comparator provided in the microcontroller unit. If the operating voltage is greater than the rated voltage range, then the first operation detection result is determined to be overvoltage. If the operating voltage is less than the rated voltage range, then the first operation detection result is determined to be undervoltage. If the operating voltage is within the rated voltage range, then the first operation detection result is determined to be that the voltage is normal.
4. The abnormality detection method according to claim 1, characterized by, The operation control data includes the digital output signal output by the ADC module; the step of detecting the operation control data using the data detection method corresponding to the operation control data and determining the first operation detection result of the operation control data includes: A DAC module is used to convert digital input signals into analog output signals. For each ADC module set in the microcontroller unit, the analog output signal is converted into a digital output signal using the ADC module; Compare whether the digital input signal and the digital output signal are consistent; If they match, the first running detection result is determined to be valid for the ADC module; If there is a discrepancy, the first running detection result is determined to be a failure of the ADC module.
5. The anomaly detection method according to claim 1, characterized by, The operation control data includes memory operation data; the step of detecting the operation control data using the data detection method corresponding to the operation control data and determining the first operation detection result of the operation control data includes: Extract specific variables from the memory's operating data; Perform an XOR operation between the specific variable and its corresponding transpose to determine the XOR result data. If each element in the XOR result data is a preset threshold, the first running detection result is determined to be valid in memory. If any element in the XOR result data is not a preset threshold, the first running detection result is determined to be a memory failure.
6. The abnormality detection method according to claim 1, characterized by, The preset diagnostic function includes a short-circuit test function; the sensor data includes resistance and voltage values. The step of detecting the operational status of the sensor data based on a preset diagnostic function and determining the second operational detection result of the touch sensor includes: The short-circuit test function is used to determine whether the resistor voltage value is greater than a preset voltage threshold. If so, determine that the second operation detection result indicates a sensor short circuit; If not, the second operational detection result indicates that the sensor is normal.
7. The anomaly detection method according to claim 1, characterized by, The preset diagnostic function includes an open-circuit test function; the sensor data includes touch signals; the preset diagnostic function detects the operating status of the sensor data and determines a second operating detection result of the touch sensor, including: The PTC register is used to generate a signal identifier based on the touch signal; If the identifier in a specific identifier bit of the signal identifier is a preset identifier, the second operation detection result is determined to be a sensor short circuit; Otherwise, the second operational detection result is determined to be that the sensor is normal.
Citation Information
Patent Citations
Static eliminating method for touch screen
CN102622150A
Touch screen defect detection system
CN105676053A
Multifunctional vehicle central control system
CN107247528A