Method, device and equipment for acquiring temperature outside vehicle, storage medium and program product
By combining vehicle speed and multimodal prediction models with vehicle state data to correct temperature values, the problem of inaccurate acquisition of vehicle exterior temperature under non-high-speed driving conditions is solved, and accurate temperature acquisition is achieved within different vehicle speed ranges.
Patent Information
- Application Number
- CN202511065584.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-07
AI Technical Summary
In existing technologies, it is difficult to accurately obtain the outside temperature of a vehicle when it is not traveling at high speed, and the accuracy of sensor measurements is low due to interference.
By acquiring vehicle speed, temperature memory values, and temperature sensor measurements, the temperature change rate and update rate are determined based on vehicle speed. A multimodal prediction model is used to predict temperature changes, and the temperature value is corrected by combining data such as engine coolant temperature, motor coolant temperature, and battery coolant temperature, thus achieving accurate acquisition of the vehicle's external temperature.
It can accurately acquire the outside temperature within different vehicle speed ranges, improving the accuracy of the temperature sensor and the accuracy of outside temperature prediction, and solving the problem of acquiring the outside temperature under non-high-speed conditions.
Smart Images

Figure CN120907689A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle control, in particular to a method and device for acquiring outside temperature of vehicle, equipment, storage medium and program product. BACKGROUND
[0002] For an automobile, it is very important to accurately acquire the outside temperature. The outside temperature is one of the core decision factors for the operation of the vehicle control system, and many controls such as air conditioning adjustment, compressor control and vehicle thermal management depend on this parameter.
[0003] At present, there are significant limitations in the way the vehicle acquires the outside temperature. Under normal circumstances, the vehicle will sense the vehicle speed in the power-on state, and when the vehicle speed is maintained in a high speed range, the outside temperature is acquired by the temperature sensor deployed at the front bumper of the vehicle. This method is only suitable for high-speed driving conditions of the vehicle, and it is difficult to accurately perceive the outside temperature in non-high-speed conditions. SUMMARY
[0004] One of the purposes of the present application is to provide a method and device for acquiring outside temperature of vehicle, equipment, storage medium and program product to solve the problem of difficult acquisition of outside temperature.
[0005] In order to achieve the above purpose, the technical solution adopted by the present application is as follows:
[0006] A method for acquiring outside temperature of vehicle, the method comprising:
[0007] acquiring the vehicle speed, temperature memory value and temperature measurement value collected by the temperature sensor of the vehicle, the temperature memory value being the outside temperature determined by the vehicle last time;
[0008] determining the temperature change rate and update rate of the outside temperature according to the vehicle speed and the temperature measurement value, the update rate being proportional to the vehicle speed;
[0009] updating the temperature memory value according to the temperature change rate and the update rate, and obtaining the current outside temperature after updating.
[0010] Further, updating the temperature memory value according to the temperature change rate and the update rate, and obtaining the current outside temperature after updating, further comprises:
[0011] if the absolute value of the difference between the temperature memory value and the temperature measurement value is greater than a preset error, then the temperature change rate and update rate of the outside temperature are determined again, the temperature memory value is increased or decreased according to the updated update rate and temperature change rate, and the increased or decreased temperature memory value is determined as the current outside temperature.
[0012] Further, the temperature change rate after re-determination includes a temperature rising rate and a temperature falling rate, and the temperature memory value is increased or decreased according to the re-determined update rate and the temperature change rate, including:
[0013] If the temperature memory value is less than the temperature measurement value, the temperature memory value is increased according to the re-determined update rate and the temperature rising rate, otherwise the temperature memory value is decreased according to the re-determined update rate and the temperature falling rate.
[0014] Further, the temperature change rate and the update rate of the outside temperature are determined according to the vehicle speed and the temperature measurement value, including:
[0015] Obtaining vehicle state data and vehicle environment data, the vehicle state data including at least one of engine water temperature, motor water temperature and battery coolant temperature, and the vehicle environment data including at least one of the geographical position of the vehicle, the light intensity of the main driver seat and the light intensity of the co-driver seat;
[0016] Inputting the vehicle state data and the vehicle environment data into a pre-trained prediction model, and obtaining the temperature change rate and the update rate of the outside temperature output by the prediction model, the prediction model being trained based on historical data of the outside temperature of the vehicle.
[0017] Further, it further includes:
[0018] In response to the vehicle machine being woken up, obtaining a temperature memory value and a temperature measurement value collected by a temperature sensor;
[0019] Determining whether the temperature memory value is greater than or equal to the temperature measurement value, if greater than or equal to the temperature measurement value, determining the temperature measurement value as the current outside temperature.
[0020] Further, it further includes:
[0021] If the temperature memory value is less than the temperature measurement value, obtaining the last power-off duration;
[0022] Determining whether the power-off duration is less than a first time threshold, if less, determining the temperature memory value as the current outside temperature, otherwise determining the current outside temperature according to at least one of the engine water temperature, the motor water temperature and the battery coolant temperature and the temperature measurement value.
[0023] Further, the current outside temperature is determined according to at least one of the engine water temperature, the motor water temperature and the battery coolant temperature and the temperature measurement value, including:
[0024] obtaining an engine water temperature, a motor water temperature and a battery coolant temperature of a vehicle, and determining a larger value between the engine water temperature and the motor water temperature;
[0025] if an absolute value of a difference between the larger value and the temperature measurement value is less than a first temperature threshold, selecting one temperature value from the motor water temperature, the battery coolant temperature and the temperature measurement value as a current outdoor temperature, otherwise, correcting the temperature measurement value according to the engine water temperature and the motor water temperature, and selecting one temperature value from the motor water temperature, the battery coolant temperature and the corrected temperature measurement value as the current outdoor temperature.
[0026] Further, after obtaining the last power-off duration, the method further comprises:
[0027] if the power-off duration is greater than or equal to a first time threshold, obtaining a last sleep duration of the vehicle;
[0028] determining whether the sleep duration is less than a second time threshold, and if so, determining the current outdoor temperature according to at least one of the engine water temperature and the motor water temperature and the temperature measurement value.
[0029] An outdoor temperature obtaining device, comprising:
[0030] an obtaining module, configured to obtain a vehicle speed, a temperature memory value and a temperature measurement value collected by a temperature sensor of a vehicle, the temperature memory value being a last determined outdoor temperature of the vehicle;
[0031] a first determining module, configured to determine a temperature change rate and an update rate of an outdoor temperature according to the vehicle speed and the temperature measurement value, the update rate being proportional to the vehicle speed;
[0032] a second determining module, configured to update the temperature memory value according to the temperature change rate and the update rate, and obtain a current outdoor temperature after the update.
[0033] An electronic device, comprising: a processor, and a memory connected with the processor in communication;
[0034] the memory stores computer execution instructions;
[0035] the processor executes the computer execution instructions stored in the memory to implement the outdoor temperature obtaining method according to any one of the preceding embodiments.
[0036] A computer readable storage medium, comprising: computer execution instructions stored in the computer readable storage medium, the computer execution instructions being executed by a processor to implement the outdoor temperature obtaining method according to any one of the preceding embodiments.
[0037] A computer program product comprises a computer program which, when executed by a processor, implements the vehicle outside temperature acquisition method according to any one of the preceding items.
[0038] The present application has the beneficial effect that the vehicle outside temperature can be obtained by updating the temperature memory value when the vehicle is in different speed ranges, so that the vehicle outside temperature can be obtained in non-high speed working conditions, and the updating rate is proportional to the vehicle speed, more comparison and verification data of the temperature memory value and the temperature measurement value can be obtained as the vehicle speed increases, which helps to correct the temperature change rate and the accuracy of the temperature sensor. BRIEF DESCRIPTION OF DRAWINGS
[0039] Figure 1 A flowchart of a vehicle outside temperature acquisition method provided for an exemplary embodiment of the present application is shown in the figure;
[0040] Figure 2 A training process diagram of a multi-modal prediction model provided for an exemplary embodiment of the present application is shown in the figure;
[0041] Figure 3 A temperature updating process diagram provided for an exemplary embodiment of the present application is shown in the figure;
[0042] Figure 4 An initial temperature value updating process diagram provided for an exemplary embodiment of the present application is shown in the figure;
[0043] Figure 5 An architecture diagram of a vehicle outside temperature acquisition system provided for an exemplary embodiment of the present application is shown in the figure;
[0044] Figure 6 A structure diagram of a vehicle outside temperature acquisition device provided for an exemplary embodiment of the present application is shown in the figure;
[0045] Figure 7 A structure diagram of an electronic device provided for an exemplary embodiment of the present application is shown in the figure.
[0046] The above figures have shown the explicit embodiments of the present application, which will be described in more detail hereinafter. These figures and textual descriptions are not intended to limit the scope of the present application concept by any means, but to illustrate the present application concept to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0047] The present application will be described with reference to the attached drawings and preferred embodiments, which are given by way of illustration and not limitation. The present application is susceptible to numerous
[0048] It is also to be understood that the terminology used herein is for purpose of describing the present application and the terminology is only intended to illustrate the possible embodiments of the present application. Thus, the present application is not intended to be limited to the embodiments described herein and that the same are presented merely to facilitate a detailed understanding of the present application.
[0049] The detailed description set forth below in connection with the appended drawings describes exemplary embodiments and does not represent the only embodiments consistent with the application. The term "exemplary" used throughout this description means "serving as an example, instance, or illustration," and should not necessarily be construed as preferred or advantageous over other embodiments. The detailed description illustrates only the preferred
[0050] The terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a", "comprising", or "comprises" does not, without more constraints, preclude the existence of additional identical or similar elements in the process, method, article, or apparatus that comprises the element. For example, a process, method, article, or apparatus that comprises a first element does not preclude the existence of additional identical or similar elements in the process, method, article, or apparatus.
[0051] Real-time monitoring of the outside temperature of the vehicle is crucial for ensuring driving safety, improving comfort, and optimizing system operation. This data directly affects multiple safety functions: at low temperatures, the system can provide early warning of potential road icing risks and automatically activate the windshield defrosting / heated rearview mirror to prevent obstructed vision; at high temperatures, it helps to avoid safety hazards caused by the closed and heated vehicle interior. In addition, the ambient temperature is also a core parameter for engine management, battery thermal management (especially for new energy vehicles), and is related to the efficiency of the power system, energy consumption control, and the service life of key components. Therefore, accurate acquisition of the outside temperature is extremely important.
[0052] Currently, a vehicle usually deploys a temperature sensor in the front bumper area to collect a real-time temperature value outside the vehicle. However, the vehicle tends to collect the temperature outside the vehicle through the sensor only when it is running at a high speed, and synchronizes the temperature to the vehicle machine to display on the instrument panel and transmit to other domain controllers. This method is only applicable to high-speed driving conditions when the vehicle speed is greater than a certain threshold. In the case of non-high-speed driving, the vehicle is difficult to accurately perceive the temperature outside the vehicle.
[0053] The inventor has found through research that the reason why the vehicle perceives the temperature outside the vehicle through the sensor only in the high-speed driving condition is that the vehicle temperature sensor is easily disturbed by high-temperature backflow gas in the deployment area and heat exchanger radiation, etc., so that the temperature measured by the sensor is higher than the actual temperature, and the reliability of the sensor measurement value is low. In the high-speed driving condition, the airflow can offset these disturbances, so that the temperature measured by the sensor is closer to the actual temperature, and the sensor measurement value is more reliable and can be adopted by the vehicle machine. Therefore, the vehicle machine can only obtain the temperature outside the vehicle when the reliability of the temperature sensor is high (i.e. high-speed driving condition).
[0054] Based on this, a technical concept is proposed, which takes the reliable outside temperature determined by the vehicle last time as a reference, predicts the temperature change rate of the outside temperature according to the vehicle speed, the sensor measurement temperature and the historical temperature, etc. data, and increases or decreases the reference by using the rate to obtain the current outside temperature.
[0055] The application scenarios mentioned above are only examples, and those skilled in the art can expand the application according to specific requirements and scenarios, and the embodiments of the present application do not make specific limitations. The method according to the exemplary embodiments of the present application will be described below with reference to the accompanying drawings.
[0056] Figure 1 A flowchart of an outside temperature acquisition method according to an exemplary embodiment of the present application is provided. As shown in Figure 1 The method can include:
[0057] Step S101, obtaining the vehicle speed, temperature memory value and temperature measurement value collected by the temperature sensor.
[0058] The temperature memory value is the outside temperature determined by the vehicle last time. The temperature sensor can be deployed in the bumper or grille at the front end of the vehicle.
[0059] The execution subject of the vehicle exterior temperature acquisition method in the embodiment of the present application can be a vehicle infotainment system. The infotainment system can maintain a variable for recording the vehicle exterior temperature, denoted as temperature memory value To, and can write the variable to update the temperature memory value To after determining the value of the vehicle exterior temperature each time. After updating, the infotainment system can transmit the value of the variable to an instrument panel or other domain controller to be displayed on the instrument panel or to enable the vehicle thermal management system or other domain controller to make decisions based on the value of the variable as the vehicle exterior temperature.
[0060] Exemplarily, after the vehicle is powered on, the vehicle speed sensor and the temperature sensor of the vehicle can periodically report the vehicle speed and temperature data, and the infotainment system can read the reported vehicle speed and temperature data and can read the maintained temperature memory value To from the storage area.
[0061] In step S102, the temperature change rate and the update rate of the vehicle exterior temperature are determined according to the vehicle speed and the temperature measurement value.
[0062] The temperature change rate can include a temperature rise rate and a temperature drop rate, and the update rate can be divided into an update rate when the temperature rises and an update rate when the temperature drops.
[0063] The magnitude of the update rate can be directly proportional to the vehicle speed. As the vehicle speed increases, the disturbance to the temperature sensor caused by the airflow in the long driving process becomes stronger, and the temperature value measured by the temperature sensor becomes closer to the actual vehicle exterior temperature value. When the vehicle speed is high, a faster update rate is set, so that more updated temperature memory values can be obtained when the temperature measurement value of the temperature sensor is highly reliable, thereby obtaining more comparison data of the temperature memory value and the reliable temperature measurement value, which helps to correct the accuracy of the temperature sensor and improve the prediction accuracy of the temperature change rate.
[0064] In the embodiment of the present application, the vehicle driving condition can be divided into idle speed, creep, low speed, medium speed, high speed and other speed intervals according to different vehicle speed states, and the temperature change rate and the update rate of different speed intervals can be predicted based on the geographical position, temperature measurement value and historical temperature of the vehicle. It can be understood that the update rate of the high speed interval is greater than the update rate of the medium speed interval, the update rate of the medium speed interval is greater than the update rate of the low speed interval, and so on.
[0065] In some possible implementations, the temperature change rate and the update rate can be combined into one value, denoted as temperature change update rate. For example, the temperature change update rate of a certain speed interval is 1℃ per 20 seconds, which indicates that the temperature change rate of the vehicle exterior temperature in the speed interval is 0.05℃ per second, and the update rate is 1 time per 20 seconds.
[0066] For example, temperature data (including actual outdoor temperature and temperature sensor measurement value, etc.) of the vehicle in the last ten days, vehicle speed and geographical location of the vehicle at the time corresponding to the temperature data can be acquired, data close to the current geographical location of the vehicle is selected from the historical temperature data, and the actual outdoor temperature of the vehicle is analyzed according to the selected data to obtain the temperature change rate of the vehicle at different speed intervals.
[0067] In step S103, the temperature memory value is updated according to the temperature change rate and the update rate, and the current outdoor temperature is obtained after the update.
[0068] In the embodiment of the present application, the corresponding speed interval and the temperature rise rate and the temperature drop rate of the speed interval can be determined according to the current speed of the vehicle, and then the temperature memory value To is updated according to the size relationship between the temperature memory value To and the temperature measurement value (temperature value reported by the temperature sensor at the current time) using the corresponding update rate, and the updated value is taken as the current outdoor temperature.
[0069] For example, if the temperature memory value is less than the temperature measurement value, the temperature memory value is increased according to the update rate and the temperature rise rate, otherwise the temperature memory value is decreased according to the update rate and the temperature drop rate. For example, the current speed of the vehicle is in the low speed interval, the temperature change update rate corresponding to this interval can include 1℃ per 30 seconds and 1℃ per 20 seconds, the temperature measurement value at the current time is 35℃, if the temperature memory value To is 30℃, To is increased by 1℃ every 30 seconds, if the temperature memory value To is 40℃, To is decreased by 1℃ every 20 seconds.
[0070] In the above embodiment, by acquiring the speed of the vehicle, the temperature memory value and the temperature measurement value collected by the temperature sensor, the temperature change rate and the update rate of the outdoor temperature can be determined according to the speed of the vehicle and the temperature measurement value, and then the temperature memory value is updated according to the temperature change rate and the update rate to obtain the current outdoor temperature. In this way, the outdoor temperature can be obtained by updating the temperature memory value when the vehicle is in different speed range, so that the outdoor temperature can be obtained when the vehicle is in non-high speed working condition, and the update rate is proportional to the speed, which can obtain more comparison and verification data of the temperature memory value and the temperature measurement value as the speed increases, which is helpful to correct the temperature change rate and the accuracy of the temperature sensor.
[0071] In one embodiment, the temperature memory value is updated according to the temperature change rate and the update rate, and the current outdoor temperature is obtained after the update, further comprising:
[0072] If the absolute value of the difference between the temperature memory value and the temperature measurement value is greater than the preset error, the temperature change rate and the update rate of the outside temperature of the vehicle are re-determined, the temperature memory value is increased or decreased according to the re-determined update rate and temperature change rate, and the increased or decreased temperature memory value is determined as the current outside temperature of the vehicle.
[0073] In the embodiment of the application, the error between the temperature memory value and the temperature measurement value reported by the sensor can be preset. If the difference between the temperature memory value and the temperature measurement value exceeds the error, it is considered that the updating process of the temperature memory value according to the temperature change rate and the update rate deviates, and steps S101 and S102 are executed again to obtain a new temperature change rate and update rate, and the temperature memory value is updated according to the new temperature change rate and update rate so as to be increased or decreased according to the update rate.
[0074] The new temperature change rate re-determined includes a temperature increase rate and a temperature decrease rate, and the updating process includes: if the temperature memory value is less than the temperature measurement value, the temperature memory value is increased according to the re-determined update rate and temperature increase rate, otherwise the temperature memory value is decreased according to the re-determined update rate and temperature decrease rate.
[0075] Exemplarily, the temperature change rate and the update rate obtained by executing steps S101 and S102 for the first time are: 1℃ per 30 seconds when the temperature memory value is less than the temperature measurement value, and 1℃ per 20 seconds when the temperature memory value is greater than or equal to the temperature measurement value. If the difference between the updated value of the temperature memory value and the temperature measurement value reported by the temperature sensor at the current time exceeds the error, steps S101 and S102 are executed again to obtain a new temperature change rate and update rate, so as to continue updating the temperature memory value to obtain the current outside temperature.
[0076] In the above embodiment, the difference between the temperature memory value and the temperature measurement value is compared with the preset error, which can avoid that the updating of the temperature memory value according to the fixed temperature change rate and update rate produces a large cumulative error, and timely obtain a new temperature change rate and update rate for error correction. The faster the vehicle speed is, the higher the accuracy of the temperature sensor is, and the update rate is proportional to the vehicle speed. The error correction can be triggered faster by increasing the update frequency when the vehicle speed is faster, so as to improve the accuracy of the outside temperature obtained by the vehicle machine.
[0077] In one embodiment, the temperature change rate and the update rate of the outside temperature of the vehicle are determined according to the vehicle speed and the temperature measurement value, including:
[0078] Obtaining vehicle state data and vehicle environment data; inputting the vehicle state data and the vehicle environment data into a pre-trained prediction model, and obtaining a temperature change rate and an update rate of an outside temperature output by the prediction model.
[0079] The vehicle state data includes at least one of an engine water temperature, a motor water temperature, and a battery coolant temperature. The vehicle environment data includes at least one of a geographic position of the vehicle, a main driver seat light intensity, and a co-driver seat light intensity. The prediction model can be trained based on historical data of the outside temperature of the vehicle.
[0080] In the embodiment of the application, historical data of the vehicle in a recent period of time, such as temperature sensor readings, actual outside temperature, and corresponding geographic position, main driver seat light intensity, co-driver seat light intensity, engine water temperature, motor water temperature, and battery coolant temperature in the past year, can be obtained. A data set is established by using these data, and a multi-modal prediction model is trained by deep learning. The model can be used to predict the temperature change rate and the update rate of the outside temperature.
[0081] For example, according to different vehicle speed states, the vehicle driving state is divided into idle, creep, low speed, medium speed, and high speed. The multi-modal prediction model will predict the temperature change update rate in different vehicle speed states. The rate can represent two dimensions of temperature change rate and update rate. The temperature change rate can include two sub-dimensions of rising and updating.
[0082] Figure 2 A training process diagram of a multi-modal prediction model is exemplarily provided for the embodiment of the application. As shown in Figure 2 The model input can include environmental temperature (outside temperature sensor reading), battery coolant temperature, motor controller temperature, GPS geographic position, vehicle speed, main driver sunlight intensity, and co-driver sunlight intensity. A CNN-LSTM hybrid architecture (including convolutional layer and LSTM layer) is used. The convolutional layer extracts spatial features (such as regional climate patterns). The LSTM layer captures time sequence features (such as diurnal temperature change). The output is the rate corresponding to different vehicle speed states.
[0083] The CNN (Convolutional Neural Network) is a neural network used to process data with grid structure. The LSTM (Long Short-Term Memory Network) is a special recurrent neural network that can be used to process and predict sequence data.
[0084]
[0085] The above table provides an output form of a multi-modal prediction model as an example. Among them, V1, V2, V3, V4, V5 and V6 are self-defined values, Vsp represents the current vehicle speed provided by the vehicle speed sensor, t1, t2, t3, t4, t5 and t6 represent the update interval, for example, t3 can be 30 seconds, 1℃ / t3 means increasing To by 1℃ every 30 seconds, t6 can be 20 seconds, and 1℃ / t6 means decreasing To by 1℃ every 20 seconds.
[0086] In the above embodiment, the multi-modal prediction model can be trained based on historical data related to the vehicle outside temperature, and through the model, the temperature change rate more consistent with the real change state of the outside temperature and the update rate closer to the real distribution of the temperature can be predicted, thereby improving the accuracy of the vehicle obtained outside temperature.
[0087] Figure 3 A temperature update process diagram is provided as an example of an embodiment of the present application. As shown in the figure, Figure 3 First, it is determined whether the current vehicle speed is less than V1.
[0088] If the speed is less than V1, the vehicle may have just been powered on and is in a parked or idling state, and does not have a temperature memory value To at a recent time, so the latest reading of the temperature sensor (i.e. the current temperature measurement value) can be assigned to To; if the speed is greater than or equal to V1, To stored by the vehicle machine is directly read.
[0089] Then, it is compared whether the difference between the latest reading of the temperature sensor and the read To is greater than a preset error T3, if it is not greater than the error, To is updated according to the temperature change rate and the update rate output by the multi-modal prediction model last time, if it is greater than the error, new temperature change rate and update rate are obtained by the multi-modal prediction model again, and To is updated using the new temperature change rate and update rate. Among them, Tdis can represent the current determined outside temperature.
[0090] Figure 3 1 / t 旧 in the above table can represent the output result of the multi-modal prediction model according to the vehicle speed input into the model last time, which can represent the temperature change rate and the update rate, for example, 1 / t 旧 may be 1 / 20s, indicating an increase of 1 degree every 20 seconds. Correspondingly, 1 / t 新 may be the output result of the model according to the current vehicle speed (speed sensor Vsp reading).
[0091] The inventors have also found that a vehicle relies heavily on the power-on of the vehicle to obtain the outside temperature, and cannot obtain the outside temperature once the vehicle is powered off, while some vehicles still have the need to obtain the outside temperature after being powered off. In particular, some new energy vehicles provide a sentinel mode, a powered-off charging mode, and a remote control mode, etc. In these modes, the vehicle machine related actuators are still working and not in a sleep state after being powered off, and the real-time outside temperature needs to be obtained. For example, the new energy vehicle needs to monitor the outside temperature for a long time while charging. To solve the problem that the vehicle cannot obtain the outside temperature after being powered off, the following solutions are proposed.
[0092] In one embodiment, the outside temperature obtaining method can further include:
[0093] In response to the vehicle machine being woken up, obtaining a temperature memory value and a temperature measurement value collected by the temperature sensor; determining whether the temperature memory value is greater than or equal to the temperature measurement value, and if so, determining the temperature measurement value as the current outside temperature.
[0094] It should be noted that the vehicle machine being woken up can mean that the vehicle machine related software and hardware are running during the vehicle being powered off, such as in the sentinel mode, the charging mode, or the remote control mode, etc. For example, some new energy vehicles can enter the sentinel mode after being powered off, the high-voltage power supply system of the vehicle is disconnected, and the low-voltage power supply system is still running to supply power to the vehicle camera and the central control system, so that the vehicle machine related software can control the vehicle camera to complete the monitoring task.
[0095] In this embodiment, if the vehicle machine is woken up, the stored temperature memory value To and the current reading of the temperature sensor can be read, and the temperature memory value To can be the outside temperature updated when the vehicle machine was last powered off. It should be noted that the reading (temperature measurement value) of the temperature sensor can be higher than the actual outside temperature due to the interference of the heat flow of the engine or the battery system, and whether the temperature measurement value is reliable can be determined by determining whether To is greater than or equal to the temperature measurement value. If To is greater than or equal to the temperature measurement value, it can be considered that the temperature measurement value is reliable, and the temperature measurement value is directly assigned to To to initialize the outside temperature after the vehicle machine is woken up.
[0096] In some possible implementations, the vehicle machine can not have the temperature memory value To due to the first wake-up after factory shipment or setting empty, etc. For this case, the temperature measurement value can be directly assigned to To.
[0097] In some possible implementations, it further includes: if the temperature memory value is less than the temperature measurement value, obtaining the last power-off duration; then determining whether the power-off duration is less than a first time threshold, and if so, determining the temperature memory value as the current outside temperature, otherwise, determining the current outside temperature according to at least one of the engine water temperature, the motor water temperature, and the battery coolant temperature and the temperature measurement value.
[0098] In this embodiment of the invention, the temperature measurement value can be denoted as Tnew, representing the most recent reading of the temperature sensor.
[0099] Figure 4 This is a schematic diagram illustrating an initial temperature value update process, provided as an example of an embodiment of the present invention. Figure 4 As shown, after the vehicle's infotainment system wakes up, it first determines whether it is the first time it has been woken up. If it is the first time, there is no temperature memory value To, and Tnew is directly assigned to To. If it is not the first time, the system reads To stored in the vehicle's infotainment system. Here, Tdis is the current outside temperature determined by the vehicle.
[0100] For example, if To < Tnew, the duration of the last power-down can be obtained as t_off. t_off can represent the duration from the last power-down time to the current wake-up time of the vehicle system. If this duration is less than a shorter time threshold t, the system can be activated. a If the current time interval between the vehicle's wake-up time and the last power-down time is relatively short, the outside temperature can be considered to have changed little, and the temperature memory value To updated during the last power-down can be directly determined as the current outside temperature. If the time interval is longer than the threshold, the current time interval between the vehicle's wake-up time and the last power-down time is considered to have changed significantly, and the reliability of the temperature memory value To updated during the last power-down time is low, with a large difference from the current actual outside temperature. In this case, the current outside temperature can be determined based on at least one of the vehicle's engine coolant temperature Te, motor coolant temperature Tm, and battery coolant temperature Tpt, as well as the temperature measurement value.
[0101] In some possible implementations, the current outside temperature is determined based on at least one of the engine coolant temperature, motor coolant temperature, and battery coolant temperature, as well as a temperature measurement, including:
[0102] The system acquires the vehicle's engine coolant temperature, motor coolant temperature, and battery coolant temperature, and determines the larger of the engine coolant temperature and motor coolant temperature. If the absolute value of the difference between the larger value and the measured temperature is less than a first temperature threshold, then a temperature value is selected from the motor coolant temperature, battery coolant temperature, and the measured temperature value as the current outside temperature. Otherwise, the measured temperature value is corrected based on the engine coolant temperature and motor coolant temperature, and a temperature value is selected from the motor coolant temperature, battery coolant temperature, and the corrected measured temperature value as the current outside temperature.
[0103] For example, if t_off is greater than the first time threshold, the engine coolant temperature Te, the motor coolant temperature Tm and the battery coolant temperature Tpt can be obtained, and the relationship between (Max(Te,Tm)-Tnew) and the first temperature threshold T1 can be determined. Max(Te,Tm) can represent the larger value between the engine coolant temperature Te and the motor coolant temperature Tm.
[0104] If (Max(Te, Tm) - Tnew) is less than T1, it can be considered that the temperature sensor reading Tnew is relatively close to the engine water temperature and the motor water temperature, and the engine water temperature and the motor water temperature are used as references to determine the credibility of Tnew. One value (for example, the minimum value) is selected from the three values of Tpt, Tm and Tnew as the current outdoor temperature and is assigned to To.
[0105] If (Max(Te, Tm) - Tnew) is greater than or equal to T1, Tnew is too different from Te and Tm, and it can be determined whether (Max(Te, Tm) - Tnew) is less than a second temperature threshold T2 (T2 > T1). If (Max(Te, Tm) - Tnew) is less than T2, it can be considered that the temperature difference of the three values of Te, Tm and Tnew is still within a certain credible range. At this time, a predicted value Twt can be linearly interpolated as a correction value of the temperature measurement value Tnew. The value of Twt can be calculated by the following formula (1):
[0106] Twt = (Tnew - To) / (T2 - T1) × (T2 - Tw + Tnew) + To (1)
[0107] Wherein, Tw = Max(Te, Tm).
[0108] After obtaining Twt, the minimum value of Tpt, Tm and Twt can be selected as the current outdoor temperature.
[0109] If (Max(Te, Tm) - Tnew) is greater than or equal to T2, the last temperature memory value To can be directly used as the current outdoor temperature.
[0110] In some possible implementations, after obtaining the last power-off duration, the following can also be included:
[0111] If the power-off duration is greater than or equal to a first time threshold, the last sleep duration of the vehicle is obtained. It is determined whether the sleep duration is less than a second time threshold. If it is less, the current outdoor temperature is determined according to at least one of the engine water temperature and the motor water temperature and the temperature measurement value.
[0112] For the above battery coolant temperature Tpt, the parameter is very close to the actual outdoor temperature when the battery is not cooled, but the value of Tpt is low when the battery is cooled. Considering this situation, it can be determined according to whether the sleep duration of the vehicle is less than a second time threshold T2. If it is less than the second time threshold, it is considered that the value of Tpt is short after the battery is cooled and the cooling is removed, and has not recovered to close to the actual outdoor temperature. In this case, Tpt is not selected in the process of selecting the value of Tpt.
[0113] In the above embodiments, by means of the above method, after the vehicle is woken up, the current outside temperature can be determined based on data such as temperature memory value, temperature measurement value, engine water temperature, motor water temperature and battery coolant temperature, so as to solve the problem that the outside temperature cannot be obtained when the vehicle is powered off. Moreover, by comprehensively determining the outside temperature by data such as motor water temperature and battery coolant temperature, the dependence on the engine can be eliminated, so that vehicles without an engine can also obtain the outside temperature.
[0114] Figure 5 This is a schematic diagram of the architecture of an external vehicle temperature acquisition system provided as an example of an embodiment of the present invention. Figure 5 As shown, after the vehicle's infotainment system is activated, it can first... Figure 4 The initial value update strategy shown determines the current outside temperature. After the vehicle's infotainment system is powered on and the vehicle is in motion, the driving conditions can be determined based on the vehicle speed. The multimodal prediction model then outputs the temperature rise rate, temperature fall rate, and update rate, updating the outside temperature accordingly. Furthermore, the vehicle's driving data (including vehicle speed and outside temperature) can be uploaded to the cloud. The cloud uses this data to optimize the parameters of the multimodal prediction model and updates the parameters of the multimodal prediction model on the vehicle via OTA (Over-the-Air) updates.
[0115] Figure 6 This is a schematic diagram of a vehicle exterior temperature acquisition device provided as an exemplary embodiment of the present invention. Figure 6 As shown, the vehicle exterior temperature acquisition device 600 may include:
[0116] The acquisition module 601 is used to acquire the vehicle speed, temperature memory value, and temperature measurement value collected by the temperature sensor, wherein the temperature memory value is the outside temperature of the vehicle previously determined.
[0117] The first determining module 602 is used to determine the rate of change and update rate of the outside temperature based on the vehicle speed and the temperature measurement value, wherein the update rate is proportional to the vehicle speed.
[0118] The second determining module 603 is used to update the temperature memory value according to the temperature change rate and the update rate, and obtain the current outside temperature of the vehicle after the update.
[0119] In some possible implementations, the second determining module 603 may also be used to: if the absolute value of the difference between the temperature memory value and the temperature measurement value is greater than a preset error, then redetermine the temperature change rate and update rate of the outside temperature, increase or decrease the temperature memory value according to the redetermined update rate and temperature change rate, and determine the increased or decreased temperature memory value as the current outside temperature.
[0120] In some possible implementation manners, the second determining module 603 can be further configured to: if the temperature memory value is less than the temperature measurement value, increase the temperature memory value according to the updated rate and the temperature rising rate, or decrease the temperature memory value according to the updated rate and the temperature falling rate.
[0121] In some possible implementation manners, the first determining module 602 can be further configured to: acquire vehicle state data and vehicle environment data, the vehicle state data including at least one of an engine water temperature, a motor water temperature and a battery coolant temperature, and the vehicle environment data including at least one of a geographic position of the vehicle, a main driver seat illumination intensity and a co-driver seat illumination intensity; input the vehicle state data and the vehicle environment data into a pre-trained prediction model, and acquire a temperature change rate and an updated rate of an outdoor temperature output by the prediction model, the prediction model being trained based on historical data of the outdoor temperature of the vehicle.
[0122] In some possible implementation manners, the second determining module 603 can be further configured to: in response to a vehicle machine wake-up, acquire a temperature memory value and a temperature measurement value collected by a temperature sensor; determine whether the temperature memory value is greater than or equal to the temperature measurement value, and if yes, determine the temperature measurement value as a current outdoor temperature.
[0123] In some possible implementation manners, the second determining module 603 can be further configured to: if the temperature memory value is less than the temperature measurement value, acquire a last power-off duration; determine whether the power-off duration is less than a first time threshold, and if yes, determine the temperature memory value as the current outdoor temperature, or determine the current outdoor temperature according to at least one of an engine water temperature, a motor water temperature and a battery coolant temperature and the temperature measurement value.
[0124] In some possible implementation manners, the second determining module 603 can be further configured to: acquire an engine water temperature, a motor water temperature and a battery coolant temperature of the vehicle, and determine a larger value of the engine water temperature and the motor water temperature; if an absolute value of a difference between the larger value and the temperature measurement value is less than a first temperature threshold, select one temperature value from the motor water temperature, the battery coolant temperature and the temperature measurement value as the current outdoor temperature, or correct the temperature measurement value according to the engine water temperature and the motor water temperature, and select one temperature value from the motor water temperature, the battery coolant temperature and the corrected temperature measurement value as the current outdoor temperature.
[0125] In some possible implementation manners, the second determining module 603 can also be configured to: if the power-off duration is greater than or equal to the first time threshold, acquire a last sleep duration of the vehicle; determine whether the sleep duration is less than a second time threshold, and if so, determine the current outdoor temperature according to at least one of the engine water temperature and the motor water temperature and the temperature measurement value.
[0126] The vehicle outdoor temperature acquisition apparatus provided in this embodiment is used to execute the technical solutions in any of the method embodiments, and has similar implementation principles and technical effects, which will not be described here again.
[0127] It should be understood that the apparatus embodiments described above are merely illustrative, and the apparatus of the present application can also be implemented in other manners. For example, the division of the units / modules in the above-described embodiments is merely a logical function division, and actual implementation can have another division manner. For example, a plurality of units / modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0128] In addition, unless specifically described, each functional unit / module in each embodiment of the present application can be integrated in one unit / module, or each unit / module can exist physically, or two or more units / modules can be integrated together. The integrated unit / module can be realized in the form of hardware or in the form of a software program module.
[0129] Figure 7 A structural schematic diagram of an electronic device is provided for an exemplary embodiment of the present application. As shown in the figure, the electronic device 70 includes: Figure 7
[0130] a processor 71, a memory 72, and a communication interface 73;
[0131] The memory 72 is configured to store executable instructions of the processor 71; the executable instructions can be computer executable instructions.
[0132] The processor 71 is configured to execute the technical solutions in any of the method embodiments by executing the executable instructions.
[0133] Optionally, the memory 72 can be independent or integrated with the processor 71.
[0134] Optionally, when the memory 72 is independent of the processor 71, the electronic device 70 can further include:
[0135] a bus 74, the memory 72 and the communication interface 73 are connected with the processor 71 through the bus 74 and complete communication with each other, and the communication interface 73 is configured to communicate with other devices.
[0136] Optionally, the communication interface 73 can be implemented by a transceiver. The communication interface is used to realize the communication between the database access device and other devices (such as a client, a read-write library and a read-only library). The memory can include a random access memory (RAM) and can also include a non-volatile memory such as at least one disk memory.
[0137] The bus 74 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one line is represented in the figure, but it does not mean that there is only one bus or only one type of bus.
[0138] The processor described above can be a general-purpose processor including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0139] The electronic device is used to execute the technical solutions in any of the preceding method embodiments, and has similar implementation principles and technical effects, which will not be described here.
[0140] The embodiment of the application further provides a readable storage medium, which can be a computer readable storage medium, and a computer program is stored on the readable storage medium. The computer program is executed by a processor to implement the technical solutions provided by any of the preceding method embodiments.
[0141] The embodiment of the application further provides a computer program product, which includes a computer program. The computer program is executed by a processor to implement the technical solutions provided by any of the preceding method embodiments.
[0142] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The above-mentioned program can be stored in a computer readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the above-mentioned storage medium includes ROM, RAM, magnetic disc or optical disc and various storage medium that can store program codes.
[0143] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments. Each technical feature of the above embodiments can be combined arbitrarily, and in order to make the description concise, each technical feature of the above embodiments is not described in all possible combinations, however, as long as the combination of these technical features does not exist contradictory, it should be considered as the scope of the disclosure.
[0144] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the application being indicated by the following claims.
[0145] The above embodiments are only preferred examples for fully illustrating the present application, and the protection scope of the present application is not limited to this. Any equivalent replacement or transformation made by the skilled in the art based on the present application is within the protection scope of the present application.
Claims
1. A method of acquiring an outside air temperature, characterized by, The method comprises the following steps: acquiring the vehicle speed, temperature memory value and temperature measurement value collected by the temperature sensor, wherein the temperature memory value is the outside temperature determined by the vehicle last time; determining the temperature change rate and update rate of the outside temperature according to the vehicle speed and the temperature measurement value, wherein the update rate is proportional to the vehicle speed; updating the temperature memory value according to the temperature change rate and the update rate, and obtaining the current outside temperature after the update.
2. The vehicle outside air temperature acquisition method according to claim 1, characterized by, The step of updating the temperature memory value according to the temperature change rate and the update rate, and obtaining the current outside temperature after the update further comprises: if the absolute value of the difference between the temperature memory value and the temperature measurement value is greater than a preset error, then redetermining the temperature change rate and the update rate of the outside temperature, increasing or decreasing the temperature memory value according to the redetermined update rate and temperature change rate, and determining the increased or decreased temperature memory value as the current outside temperature.
3. The vehicle outside air temperature acquisition method according to claim 2, characterized by, The redetermined temperature change rate comprises temperature rising rate and temperature falling rate, and the step of increasing or decreasing the temperature memory value according to the redetermined update rate and temperature change rate comprises: if the temperature memory value is less than the temperature measurement value, then increasing the temperature memory value according to the redetermined update rate and the temperature rising rate, otherwise decreasing the temperature memory value according to the redetermined update rate and the temperature falling rate.
4. The outdoor temperature acquisition method according to any one of claims 1 to 3, characterized by, The step of determining the temperature change rate and the update rate of the outside temperature according to the vehicle speed and the temperature measurement value comprises: acquiring vehicle state data and vehicle environment data, wherein the vehicle state data comprises at least one of engine water temperature, motor water temperature and battery coolant temperature, and the vehicle environment data comprises at least one of the geographical position of the vehicle, the light intensity of the main driver seat and the light intensity of the co-driver seat; 5. The outdoor temperature acquisition method according to any one of claims 1 to 3, characterized by, inputting the vehicle state data and the vehicle environment data into a pre-trained prediction model, and acquiring the temperature change rate and the update rate of the outside temperature output by the prediction model, wherein the prediction model is trained based on historical data of the outside temperature of the vehicle. The method further comprises the following steps: in response to the wake-up of the vehicle machine, acquiring the temperature memory value and the temperature measurement value collected by the temperature sensor; 6. The outside air temperature acquisition method according to claim 5, characterized by, determining whether the temperature memory value is greater than or equal to the temperature measurement value, and if so, determining the temperature measurement value as the current outside temperature. The method further comprises the following steps: if the temperature memory value is less than the temperature measurement value, then acquiring the last power-off duration; 7. The outdoor temperature acquisition method according to claim 6, characterized by, determining whether the power-off duration is less than a first time threshold, and if so, determining the temperature memory value as the current outside temperature, otherwise determining the current outside temperature according to at least one of the engine water temperature, the motor water temperature and the battery coolant temperature and the temperature measurement value. The step of determining the current outside temperature according to at least one of the engine water temperature, the motor water temperature and the battery coolant temperature and the temperature measurement value comprises: acquiring the engine water temperature, the motor water temperature and the battery coolant temperature of the vehicle, and determining the larger value between the engine water temperature and the motor water temperature; If an absolute value of a difference between the larger value and the temperature measurement value is less than a first temperature threshold, a temperature value selected from the motor water temperature, the battery coolant temperature and the temperature measurement value is a current outdoor temperature, otherwise, the temperature measurement value is corrected according to the engine water temperature and the motor water temperature, and a temperature value selected from the motor water temperature, the battery coolant temperature and the corrected temperature measurement value is the current outdoor temperature.
8. The method of acquiring an outside air temperature according to claim 6, characterized by, After the last power-off duration is acquired, the method further includes: If the power-off duration is greater than or equal to a first time threshold, a last sleep duration of the vehicle is acquired; If the sleep duration is less than a second time threshold, a current outdoor temperature is determined according to at least one of the engine water temperature and the motor water temperature and the temperature measurement value.
9. An outside air temperature acquisition device characterized by comprising: The method includes: A first acquisition module is configured to acquire a vehicle speed, a temperature memory value and a temperature measurement value collected by a temperature sensor of the vehicle, the temperature memory value being a last determined outdoor temperature of the vehicle; A first determination module is configured to determine a temperature change rate and an update rate of the outdoor temperature according to the vehicle speed and the temperature measurement value, the update rate being proportional to the vehicle speed; A second determination module is configured to update the temperature memory value according to the temperature change rate and the update rate, and obtain a current outdoor temperature after the update.
10. An electronic device, comprising: The method includes: A processor and a memory connected with the processor in communication; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory to implement the method in any one of claims 1 to 8.
11. A computer readable storage medium, characterized in that, The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the method in any one of claims 1 to 8.
12. A computer program product, characterised in that, The computer program is executed by the processor to implement the method in any one of claims 1 to 8.