Vehicle-mounted system
By using an auxiliary battery and sensors in the vehicle system to detect voltage and current values, and utilizing a ring buffer to store time-series data, the problem of inconsistent current value detection times is resolved, ensuring the synchronization of current value combinations and enabling accurate resistance value calculation.
Patent Information
- Application Number
- CN202411913929.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-03-28
- Filing Date
- 2024-12-24
- Publication Date
- 2025-09-30
AI Technical Summary
In existing in-vehicle systems, the time information sent by the first transmitting device and the second transmitting device may not be synchronized, resulting in the electronic control device being unable to ensure the simultaneity of time-dependent data.
The auxiliary battery, voltage sensor and current sensor are used to detect the voltage and current values of the battery, and the time series data is stored in the ring buffer to determine the simultaneity of the current value and ensure the synchronization of the current value combination.
Even if the current detection times are inconsistent, the buffer technology ensures the synchronization of the current value combinations, preventing false abnormalities and accurately calculating the auxiliary battery resistance.
Smart Images

Figure CN120716613A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a vehicle-mounted system. Background Art
[0002] The in-vehicle system described in Japanese Patent Application Laid-Open No. 2005-201144 includes an electronic control unit (ECU), a first transmitting unit for transmitting first time-dependent data including time data to the ECU, and a second transmitting unit for transmitting second time-dependent data including time data to the ECU. The ECU compares the time data included in the first time-dependent data with the time data included in the second time-dependent data to ensure simultaneity between the two time-dependent data.
[0003] However, in the in-vehicle system described in Japanese Patent Application Laid-Open No. 2005-201144, the time information transmitted by the first transmitting device and the time information transmitted by the second transmitting device may not be synchronized. In this case, the electronic control device may not be able to ensure simultaneity even if it compares the two time information. Summary of the Invention
[0004] In order to solve the above problems, the present invention provides a vehicle-mounted system comprising:
[0005] Auxiliary battery, which supplies power to the vehicle's auxiliary equipment;
[0006] a first voltage sensor for detecting a voltage value of the auxiliary battery as a first voltage value;
[0007] a first current sensor configured to detect, as a first current value, a current value of the auxiliary battery when the first voltage value is detected;
[0008] a second voltage sensor for detecting a voltage value of the auxiliary battery as a second voltage value;
[0009] a second current sensor configured to detect, as a second current value, a current value of the auxiliary battery when the second voltage value is detected;
[0010] a first electronic control unit that obtains the first voltage value from the first voltage sensor and obtains the first current value from the first current sensor; and
[0011] The second electronic control unit includes a ring buffer, and obtains the second voltage value from the second voltage sensor and the second current value from the second current sensor.
[0012] in,
[0013] The first electronic control unit executes a process of transmitting the first voltage value and the first current value to the second electronic control unit.
[0014] The second electronic control unit performs the following processing:
[0015] receiving the first voltage value and the first current value from the first electronic control unit;
[0016] When a combination of the first voltage value and the first current value is defined as a first set, and a combination of the second voltage value and the second current value is defined as a second set, time series data of a predetermined period of time of either the first set or the second set is stored in the ring buffer as time series data of a buffer set; and
[0017] The current value included in the above-mentioned buffer set having a voltage value closest to the voltage value included in the non-buffer set among the voltage values included in the time series data of the above-mentioned buffer set is determined as the current value detected simultaneously with the current value included in the above-mentioned non-buffer set, and the above-mentioned non-buffer set is a set different from the above-mentioned buffer set among the above-mentioned first set and the above-mentioned second set.
[0018] According to the above configuration, even if the time information at which the first current value is detected and the time information at which the second current value is detected are not synchronized, it is possible to suppress the loss of simultaneity due to the combination of the first current value and the second current value. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Hereinafter, features, advantages, technical and industrial significance of exemplary embodiments of the present invention will be described with reference to the accompanying drawings, in which like reference numerals represent like elements, and in which:
[0020] Figure 1 It is a simplified diagram showing the vehicle-mounted system.
[0021] Figure 2 This is a flowchart showing a series of processes including the transmission of the first set.
[0022] Figure 3 This is a flowchart showing a series of processes including the generation of the second set.
[0023] Figure 4 This is a flowchart showing a series of processes including calculation of the resistance value of the auxiliary battery. DETAILED DESCRIPTION
[0024] One implementation method
[0025] Overview of In-Vehicle Systems
[0026] Hereinafter, one embodiment of the in-vehicle system will be described with reference to the drawings.
[0027] like Figure 1 As shown, the vehicle 10 includes an in-vehicle system 20 . The in-vehicle system 20 includes an auxiliary battery 30 , a first voltage sensor 41 , a second voltage sensor 42 , a first current sensor 51 , and a second current sensor 52 .
[0028] Auxiliary battery 30 supplies power to auxiliary devices of vehicle 10. Auxiliary battery 30 is a secondary battery. Auxiliary battery 30 is, for example, a lithium-ion battery. Auxiliary devices of vehicle 10 include, for example, an electric oil pump, a navigation system, and lights.
[0029] The first voltage sensor 41 detects the output voltage of the auxiliary battery 30 as a first voltage value V1. The second voltage sensor 42 detects the output voltage of the auxiliary battery 30 as a second voltage value V2. The second voltage sensor 42 detects the second voltage value V2 at the same detection position as the first voltage sensor 41 for detecting the first voltage value V1. The detection cycle of the first voltage sensor 41 is the same as the detection cycle of the second voltage sensor 42.
[0030] First current sensor 51 detects the current value flowing through auxiliary battery 30 when first voltage value V1 is detected as first current value I1. First current sensor 51 detects the current value during discharge as a positive value and the current value during charge as a negative value.
[0031] Second current sensor 52 detects the current value flowing through auxiliary battery 30 when detecting second voltage value V2 as second current value I2. Second current sensor 52 detects the current value during discharge as a positive value and the current value during charge as a negative value. The detection cycle of first current sensor 51 is the same as the detection cycle of second current sensor 52.
[0032] The in-vehicle system 20 includes a first electronic control unit 60, a second electronic control unit 70, and a notification device 80. The first electronic control unit 60 and the second electronic control unit 70 can communicate with each other via a network such as a controller area network (CAN).
[0033] The first electronic control unit 60 obtains a first voltage value V1 from the first voltage sensor 41. The first electronic control unit 60 obtains a first current value I1 from the first current sensor 51. The first electronic control unit 60 includes a central processing unit (CPU) 61, a peripheral circuit 62, a random access memory (RAM) 63, a storage device 64, and a bus 65. The bus 65 connects the CPU 61, the peripheral circuit 62, the RAM 63, and the storage device 64 so that they can communicate with each other. The CPU 61 performs information processing by executing various programs stored in the storage device 64. The peripheral circuit 62 includes a circuit that generates time information, a circuit that generates a clock signal that specifies internal operations, a power supply circuit, a reset circuit, etc. The RAM 63 stores data generated as the CPU 61 operates. The storage device 64 stores a transmission program PR1 of the first set ST1 executed by the CPU 61.
[0034] The second electronic control unit 70 obtains the second voltage value V2 from the second voltage sensor 42. The second electronic control unit 70 obtains the second current value I2 from the second current sensor 52. The second electronic control unit 70 receives the first set ST1 including the first voltage value V1 and the first current value I1 from the first electronic control unit 60.
[0035] The second electronic control unit 70 includes a CPU 71, a peripheral circuit 72, a RAM 73, a storage device 74, and a bus 75. The bus 75 connects the CPU 71, the peripheral circuit 72, the RAM 73, and the storage device 74 so that they can communicate with each other.
[0036] The CPU 71 performs information processing by executing various programs stored in the storage device 74. The peripheral circuit 72 includes a circuit for generating time information, a circuit for generating clock signals that regulate internal operations, a power supply circuit, a reset circuit, and other components. In this embodiment, the time information generated by the peripheral circuit 72 is not synchronized with the time information generated by the peripheral circuit 62. The storage device 74 stores a program PR2 for storing the buffer set STB and a program PR3 for calculating the resistance value of the auxiliary battery 30, which are executed by the CPU 71.
[0037] The RAM 73 stores data generated as the CPU 71 operates. The RAM 73 includes a ring buffer 73A. The ring buffer 73A stores, as time-series data of a buffer set STB, time-series data of a predetermined period of time for a second set ST2, which is a combination of second voltage values V2 and second current values I2 obtained by the second electronic control unit 70. The buffer set STB is a combination of voltage values and current values stored in the ring buffer 73A.
[0038] The notification device 80 notifies an abnormality indicating that the device is in an abnormal state. The notification device 80 includes, for example, a display, and an image indicating the abnormality notification can be displayed on the display.
[0039] A series of processes including the generation of the first set ST1 by the first electronic control device
[0040] Next, a series of processes including the generation of the first set ST1 by the first electronic control unit 60 will be described. The CPU 61 starts executing the transmission program PR1 of the first set ST1 at a predetermined transmission cycle. The transmission cycle is, for example, 100 milliseconds.
[0041] like Figure 2 As shown, once the CPU 61 starts executing the transmission program PR1, it first performs processing in S11. In S11, the CPU 61 obtains the first voltage value V1 and the first current value I1. Specifically, the CPU 61 obtains the first voltage value V1 from the first voltage sensor 41. Furthermore, the CPU 61 obtains the first current value I1 from the first current sensor 51. The CPU 61 then proceeds to S12.
[0042] In S12, the CPU 61 generates a first set ST1. The first set ST1 is a combination of the first voltage value V1 and the first current value I1. That is, the first voltage value V1 and the first current value I1 included in the first set ST1 are values detected at the same time. The CPU 61 then advances the process to S13.
[0043] In S13, the CPU 61 transmits the first set ST1 to the second electronic control unit 70. The CPU 61 then completes this series of processing. In this manner, the CPU 61 repeats this series of processing according to the transmission cycle, causing the CPU 61 to transmit the first set ST1 to the second electronic control unit 70 according to the transmission cycle. In this embodiment, the transmission cycle is longer than the detection cycle of the first voltage sensor 41 and the first current sensor 51.
[0044] A series of processes including the generation of the second set ST2 by the second electronic control device
[0045] Next, the series of processes performed by the second electronic control unit 70, including the generation of the second set ST2, will be described. Upon obtaining the second voltage value V2 and the second current value I2, the CPU 71 begins executing the stored program PR2 for the buffer set STB. Specifically, the CPU 71 repeatedly executes the stored program PR2 according to the detection cycles of the second voltage sensor 42 and the second current sensor 52.
[0046] like Figure 3 As shown, when the CPU 71 starts executing the stored program PR2 of the buffer set STB, it first starts the process of S21. In S21, the CPU 71 generates the second set ST2. The second set ST2 is a combination of the second voltage value V2 and the second current value I2. Then, the CPU 71 advances the process to S22.
[0047] In S22, the CPU 71 deletes the buffer set STB stored in the ring buffer 73A that is older than a predetermined period of time from the time series data of the buffer set STB. The CPU 71 then proceeds to S23. However, if the time series data of the buffer set STB does not contain a buffer set STB that is older than the predetermined period of time, the CPU 71 proceeds to S23 without performing S22.
[0048] In S23, the CPU 71 stores the second set ST2 generated in S21 in the ring buffer 73A as the latest buffer set STB. The CPU 71 then terminates this series of processing. In this way, the CPU 71 repeats this series of processing to store the time-series data of the second set ST2 for a predetermined period in the ring buffer 73A as the time-series data of the buffer set STB.
[0049] A series of processes including calculation of the resistance value of the auxiliary battery by the second electronic control unit
[0050] Next, a series of processes performed by the second electronic control unit 70, including calculation of the resistance value of the auxiliary battery 30, will be described. Upon acquiring the first set ST1 as the non-buffer set STN, the CPU 71 begins execution of the auxiliary battery 30 resistance calculation routine PR3. In this embodiment, the first set ST1 is the non-buffer set STN, which is different from the second set ST2 serving as the buffer set STB.
[0051] like Figure 4As shown, when the CPU 71 starts executing the resistance value calculation program PR3, it first starts processing at S31. In S31, the CPU 71 refers to the ring buffer 73A to determine the specific buffer set STBS that has the same timing as the non-buffer set STN. The specific buffer set STBS is the buffer set STB that has a voltage value closest to the voltage value included in the time series data of the buffer set STB. Specifically, the CPU 71 selects the voltage value closest to the voltage value of the non-buffer set STN from among the voltage values of the multiple buffer sets STB stored in the ring buffer 73A. The CPU 71 then determines the buffer set STB having the selected closest voltage value as the specific buffer set STBS. The CPU 71 then advances processing to S32.
[0052] In S32 , the CPU 71 determines the current value included in the specific buffer set STBS as the current value detected simultaneously with the current value included in the non-buffer set STN. The CPU 71 then advances the process to S33 .
[0053] In S33, the CPU 71 calculates the degree of divergence DD between the current values included in the non-buffer set STN and the current values included in the specific buffer set STBS. Specifically, the CPU 71 calculates the absolute value of the difference between the current values included in the non-buffer set STN and the current values included in the specific buffer set STBS as the degree of divergence DD. The CPU 71 then advances the process to S34.
[0054] In S34, the CPU 71 determines whether the degree of divergence DD is less than or equal to a predetermined degree of divergence DDR. The predetermined degree of divergence DDR is determined in advance through experiments and simulations as the maximum value of divergence when the first current sensor 51 and the second current sensor 52 are in a normal state. If the degree of divergence DD is less than or equal to the predetermined degree of divergence DDR (S34: YES), the CPU 71 proceeds to S35.
[0055] In S35, the CPU 71 determines that the first current sensor 51 and the second current sensor 52 are in a normal state. The CPU 71 then proceeds to S36. In S36, the CPU 71 calculates the resistance value of the auxiliary battery 30. Specifically, the CPU 71 first uses the current value included in the specific buffer set STBS or the current value included in the non-buffer set STN as the normal current value. Next, the CPU 71 uses the voltage value included in the specific buffer set STBS or the voltage value included in the non-buffer set STN as the normal voltage value. The CPU 71 then calculates the resistance value of the auxiliary battery 30 based on the normal current value and the normal voltage value. The CPU 71 then terminates this series of processing.
[0056] However, if the degree of divergence DD is greater than the predetermined degree of divergence DDR (S34: NO), the CPU 71 proceeds to S41. In S41, the CPU 71 determines that at least one of the first current sensor 51 and the second current sensor 52 is in an abnormal state. The CPU 71 then proceeds to S42.
[0057] In S42, the CPU 71 outputs a request for notification of an abnormal state to the notification device 80. As a result, the notification device 80 notifies the abnormal state. The CPU 71 then terminates the series of processing.
[0058] The role of implementation methods
[0059] In the above embodiment, the second electronic control unit 70 repeatedly acquires the second set ST2 according to the detection cycle. Consequently, the second electronic control unit 70 stores the time-series data of the second set ST2 for a predetermined period in the ring buffer 73A as the time-series data of the buffer set STB. Furthermore, the second electronic control unit 70 receives the first set ST1 according to the transmission cycle. Consequently, the second electronic control unit 70 identifies the specific buffer set STBS by comparing the non-buffer set STN with the buffer set STB.
[0060] Effects of implementation methods
[0061] (1) According to the above embodiment, the second electronic control unit 70 compares the voltage values included in the specific buffer set STBS with the voltage values included in the non-buffer set STN. This allows the second electronic control unit 70 to ensure simultaneity between the current values included in the specific buffer set STBS and the current values included in the non-buffer set STN. Therefore, without requiring a comparison between the time information of when the first current value I1 was acquired and the time information of when the second current value I2 was acquired, the in-vehicle system 20 can determine a combination of the first current value I1 and the second current value I2 that ensures simultaneity.
[0062] (2) According to the above embodiment, the second electronic control unit 70 compares the degree of divergence DD between the current values included in the specific buffer set STBS, where simultaneity is ensured, and the current values included in the non-buffer set STN, with the predetermined degree of divergence DDR. If the degree of divergence DD is greater than the predetermined degree of divergence DDR, the second electronic control unit 70 determines that at least one of the first current sensor 51 and the second current sensor 52 is in an abnormal state. This prevents erroneous determination of an abnormal state based on the degree of divergence DD of two current values where simultaneity is not ensured.
[0063] (3) According to the above embodiment, when the second electronic control unit 70 determines that the state is abnormal, the notification device 80 notifies the user of the vehicle 10 of the abnormal state, thereby prompting the user to take measures to eliminate the abnormal state, such as transporting the vehicle 10 to a dealer.
[0064] (4) According to the above embodiment, after determining that the state is normal, the second electronic control unit 70 uses the current value included in the specific buffer set STBS or the current value included in the non-buffer set STN as the normal current value. In addition, the second electronic control unit 70 uses the voltage value included in the specific buffer set STBS or the voltage value included in the non-buffer set STN as the normal voltage value. Moreover, the second electronic control unit 70 calculates the resistance value of the auxiliary battery 30 based on the normal current value and the normal voltage value. In this way, according to the above embodiment, the second electronic control unit 70 can use the two sets that ensure simultaneity and calculate the resistance value of the auxiliary battery 30 using the current value and voltage value determined to be in a normal state. Therefore, the second electronic control unit 70 can prevent the erroneous calculation of the resistance value of the auxiliary battery 30 due to the use of the set of current value and voltage value that does not ensure simultaneity.
[0065] (5) In the above embodiment, the time series data of the buffer set STB is the time series data of the second set ST2 over a predetermined period. Furthermore, the detection period, during which the second electronic control unit 70 obtains the second set ST2, is longer than the transmission period, during which the second electronic control unit 70 receives the first set ST1 from the first electronic control unit 60. Specifically, according to the above embodiment, the second set ST2 obtained by the second electronic control unit 70, which has the shorter period, is used as the buffer set STB. Therefore, the time series data of the buffer set STB is likely to include values detected simultaneously with the non-buffer set STN.
[0066] Other implementations
[0067] This embodiment can be implemented by modifying as follows: This embodiment and the following modifications can be implemented in combination with each other within a range that does not technically conflict.
[0068] The second electronic control unit 70 may not calculate the resistance value of the auxiliary battery 30. In other words, the second electronic control unit 70 may omit the process of S36. In this case, another device such as the notification device 80 may perform the process of S36.
[0069] The second electronic control unit 70 may not output the abnormality notification. In other words, the second electronic control unit 70 may omit the process of S42. In this case, another device such as the notification device 80 may perform the process of S42.
[0070] The second electronic control unit 70 may not calculate the degree of divergence DD. Furthermore, the second electronic control unit 70 may not determine that the state is abnormal. In other words, the second electronic control unit 70 may omit the processing of S34, S35, and S41. In this case, another device, such as the notification device 80, may perform the processing of S34, S35, and S41.
[0071] The first set ST1 can be used as the buffered set STB and the second set ST2 can be used as the non-buffered set STN. Even in this case, the second electronic control unit 70 can determine a combination of the current values of the first set ST1 and the current values of the second set ST2 that ensures simultaneity by comparing the voltage values of the first set ST1 with the voltage values of the second set ST2.
[0072] The divergence DD is not limited to the absolute value of the difference between the current value included in the specific buffer set STBS and the current value included in the non-buffer set STN. For example, the divergence DD may be a value obtained by dividing the current value included in the specific buffer set STBS by the current value included in the non-buffer set STN.
Claims
1. A vehicle-mounted system comprising: Auxiliary battery, which supplies power to the vehicle's auxiliary equipment; a first voltage sensor configured to detect a voltage value of the auxiliary battery as a first voltage value; a first current sensor configured to detect, as a first current value, a current value of the auxiliary battery when the first voltage value is detected; a second voltage sensor for detecting a voltage value of the auxiliary battery as a second voltage value; a second current sensor configured to detect, as a second current value, a current value of the auxiliary battery when the second voltage value is detected; a first electronic control unit that obtains the first voltage value from the first voltage sensor and obtains the first current value from the first current sensor; as well as The second electronic control unit includes a ring buffer, and obtains the second voltage value from the second voltage sensor and the second current value from the second current sensor. in, The first electronic control unit executes a process of transmitting the first voltage value and the first current value to the second electronic control unit. The second electronic control unit performs the following processing: receiving the first voltage value and the first current value from the first electronic control unit; When the combination of the first voltage value and the first current value is defined as a first set and the combination of the second voltage value and the second current value is defined as a second set, time series data of a predetermined period of time of either the first set or the second set is stored in the ring buffer as time series data of a buffer set; as well as A current value included in the buffer set having a voltage value closest to a voltage value included in a non-buffer set among voltage values included in time series data of the buffer set is determined as a current value detected simultaneously with the current value included in the non-buffer set, wherein the non-buffer set is a set different from the buffer set in the first set and the second set.
2. The vehicle-mounted system according to claim 1, wherein: The second electronic control unit further performs the following processing: Calculating the determined degree of deviation between the current value included in the buffer set and the current value included in the non-buffer set; determining whether the calculated degree of divergence is greater than a predetermined degree of divergence; as well as When the degree of divergence is greater than the predetermined degree of divergence, it is determined that at least one of the first current sensor and the second current sensor is in an abnormal state.
3. The vehicle-mounted system according to claim 2, wherein: The apparatus further comprises a notification device for notifying the user of an abnormality indicating that the apparatus is in the abnormal state. The second electronic control unit further executes a process of outputting the abnormality notification from the notification device when the degree of deviation is greater than the predetermined degree of deviation.
4. The vehicle-mounted system according to claim 2, wherein: The second electronic control unit also performs processing to calculate the resistance value of the auxiliary battery based on the current value included in the determined buffer set or the current value included in the non-buffer set, that is, the normal current value, and the voltage value included in the determined buffer set or the voltage value included in the non-buffer set, that is, the normal voltage value, when the deviation is less than the specified deviation.
5. The vehicle-mounted system according to claim 1, wherein: The time series data of the buffer set is the time series data of the second set during the predetermined period. A period at which the second electronic control unit obtains the second set is longer than a period at which the second electronic control unit receives the first set from the first electronic control unit.
Citation Information
Patent Citations
Vehicle control system
JP2005201144A