Method and device for determining temperature outside vehicle, vehicle and medium
By determining the charging port status and historical temperature when the vehicle is powered on, combined with the battery operating conditions, the problem of large measurement errors in external temperature sensors is solved, achieving low-cost and high-precision determination of external temperature.
Patent Information
- Application Number
- CN202511185489.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-22
- Publication Date
- 2025-11-21
AI Technical Summary
The external temperature sensor is affected by factors such as installation location, thermal radiation, heat recirculation, and rainwater and mud, resulting in a large temperature measurement error and making it impossible to accurately obtain the external temperature.
When the vehicle is powered on and woken up, the system determines whether the charging port is in a preset cooling state and obtains the real-time temperature of the charging port to determine the outside temperature of the vehicle. When the charging port is not in a cooling state, the system uses the historical outside temperature as a substitute and combines the battery charging conditions and altitude changes to make temperature corrections.
It eliminates the need for a separate external temperature sensor, reducing costs and improving the accuracy and precision of external temperature measurement through various means.
Smart Images

Figure CN120992049A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of vehicle control technology, and in particular to a method, apparatus, vehicle, and medium for determining the outside temperature of a vehicle. Background Technology
[0002] With the rapid development of new energy technologies, new energy vehicles have become an important means of transportation in people's daily lives. Vehicle air conditioning and powertrain thermal management control utilize the ambient temperature outside the vehicle for precise control, aiming to achieve better comfort and fuel economy.
[0003] In related technologies, an external temperature sensor is installed in the vehicle to obtain the external temperature.
[0004] However, since the exterior temperature sensor is located near the air intake grille of the front engine compartment bumper or integrated into the exterior rearview mirror, the sensor is affected by factors such as installation location, heat radiation, heat recirculation, rainwater, and mud, which can lead to a large error in the exterior temperature value collected by the sensor. Summary of the Invention
[0005] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides a method, apparatus, vehicle and medium for determining the outside temperature of a vehicle.
[0006] This disclosure provides a method for determining the outside temperature of a vehicle, the vehicle including at least one charging port and a battery, the method including: when the vehicle is powered on and woken up, determining whether each charging port is in a preset cooling state; when all at least one charging port is in the preset cooling state, acquiring the real-time charging port temperature of each charging port, and determining the outside temperature based on the at least one real-time charging port temperature corresponding to the at least one charging port; when none of the at least one charging port is in the preset cooling state, acquiring a pre-stored historical outside temperature as the outside temperature.
[0007] This disclosure also provides a device for determining the outside temperature of a vehicle. The vehicle includes at least one charging port and a battery. The device includes: a charging port status determination module, used to determine whether each charging port is in a preset cooling state when the vehicle is powered on and woken up; an outside temperature determination module, used to acquire the real-time charging port temperature of each charging port when all at least one charging port is in the preset cooling state, and determine the outside temperature based on the at least one real-time charging port temperature corresponding to the at least one charging port; the outside temperature determination module is further used to acquire a pre-stored historical outside temperature as the outside temperature when none of the at least one charging port is in the preset cooling state.
[0008] This disclosure also provides a vehicle, the vehicle including: a memory; one or more processors coupled to the memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform a method for determining the outside temperature of the vehicle.
[0009] This disclosure also provides a computer-readable storage medium storing a computer program for performing a method for determining the outside temperature of a vehicle as provided in this disclosure.
[0010] The technical solution provided in this disclosure has the following advantages compared with the prior art: The vehicle exterior temperature determination scheme provided in this disclosure determines whether each charging port is in a preset cooling state when the vehicle is powered on and woken up. When at least one charging port is in a preset cooling state, the real-time charging port temperature of each charging port is acquired, and the minimum of the at least one real-time charging port temperature corresponding to at least one charging port is determined as the exterior temperature. When at least one charging port is not in a preset cooling state, the pre-stored historical exterior temperature is acquired as the exterior temperature. In this technical solution, the exterior temperature is determined by combining the vehicle's charging port temperatures, eliminating the need for a separate exterior temperature sensor. This achieves exterior temperature measurement in a low-cost manner while ensuring the accuracy of exterior temperature determination. Attached Figure Description
[0011] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent when taken in conjunction with the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0012] Figure 1 A flowchart illustrating a method for determining the outside temperature of a vehicle, provided in an embodiment of this disclosure;
[0013] Figure 2 This is a schematic diagram illustrating the process of obtaining the outside temperature when a vehicle is woken up, as provided in an embodiment of this disclosure.
[0014] Figure 3 A schematic flowchart illustrating another method for determining the outside temperature of a vehicle provided in this embodiment of the present disclosure;
[0015] Figure 4 This is a functional structure diagram of a vehicle provided in this disclosure;
[0016] Figure 5 A schematic diagram illustrating the process of obtaining the outside temperature of a vehicle after it is powered on, provided in an embodiment of this disclosure;
[0017] Figure 6 A schematic flowchart illustrating another method for determining the outside temperature of a vehicle provided in this embodiment of the present disclosure;
[0018] Figure 7 A schematic diagram illustrating the process for correcting the outside temperature of a vehicle after it is powered on, provided in an embodiment of this disclosure;
[0019] Figure 8 A schematic diagram of a device for determining the outside temperature of a vehicle provided in an embodiment of this disclosure;
[0020] Figure 9 This is a schematic diagram of the structure of a vehicle provided in an embodiment of the present disclosure. Detailed Implementation
[0021] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0022] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0023] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0024] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0025] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0026] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0027] To address the aforementioned problems, this disclosure provides a method for determining the outside temperature of a vehicle, which will be described below with reference to specific embodiments.
[0028] Figure 1 This is a flowchart illustrating a method for determining the outside temperature of a vehicle according to an embodiment of this disclosure. The method can be executed by a device for determining the outside temperature of the vehicle, which can be implemented using software and / or hardware and is generally integrated into the vehicle. The vehicle is an electrically powered new energy vehicle, which may include pure electric vehicles, plug-in hybrid electric vehicles, etc. The vehicle may include a battery and at least one charging port. The battery may be a rechargeable battery. When there are multiple charging ports, the charging rates between the multiple charging ports may be different. For example, the multiple charging ports may include a fast charging port with a higher charging speed and a slow charging port with a lower charging speed, etc. Figure 1 As shown, the method includes:
[0029] Step 101: When the vehicle is powered on and woken up, determine whether each charging port is in a preset cooling state.
[0030] Power-on wake-up refers to the process from when the vehicle is completely off to when the system starts up and is ready to receive driver commands.
[0031] When the vehicle is powered on and woken up, it is determined whether each charging port is in a preset cooling state. The purpose of determining whether each charging port is in a preset cooling state is to determine whether the charging port temperature can be used as a reference for the outside temperature of the vehicle. The preset cooling state is used to indicate that the charging port is not under temperature alternation conditions such as charging and discharging. The charging port temperature in the preset cooling state can reflect the current outside ambient temperature. A temperature sensor is installed near the charging port. This temperature sensor is installed inside the charging port and is not affected by heat radiation / heat reflow, rainwater, mud, etc. When the charging port is in a cooling state, it indicates that the charging port is not under temperature alternation conditions and can reflect the outside temperature of the vehicle.
[0032] It should be noted that the method for determining whether each charging port is in a preset cooling state differs in different application scenarios. An example is given below:
[0033] In some possible examples, whether each charging port is in a preset cooling state can be determined based on the charging end time. In this example, the charging end time for each charging port can be calculated. The charging end time can be determined as the moment when the Battery Monitoring and Management System (BMS) switches from a charging / discharging state to a non-charging state based on its operating mode signal, or by reading the charging end time t from the vehicle's memory upon power-on wake-up. nvm The charging end time is obtained by subtracting the charging end time from the current time. In this example, if the charging end time is greater than or equal to the preset duration threshold, the charging port is determined to be in the preset cooling state. The preset duration threshold can be calibrated according to the needs of the scenario. In some possible application scenarios, the preset duration threshold is 1 hour.
[0034] In some possible examples, the temperature of each charging port can be detected and collected according to a preset sampling time, and the temperature difference between adjacent charging port temperatures can be calculated. If a preset number of consecutive temperature differences are all less than a preset temperature difference threshold, it is determined that the charging port temperature is in a preset cooling state.
[0035] In this example, to further prevent the charging port from operating under fluctuating temperatures, after determining that a consecutive preset number of temperature differences are less than a first preset threshold, the ambient temperature corresponding to the vehicle's current location, as published by a weather platform, is also obtained. When the temperature difference between the charging port temperature and the ambient temperature is less than a second preset threshold, the charging port temperature is determined to be in a preset cooling state. The first and second preset thresholds can be the same or different. Both the first and second preset thresholds can be calibrated according to the needs of the scenario. To avoid misjudgment, both the first and second preset thresholds are relatively small values.
[0036] Step 102: When at least one charging port is in a preset cooling state, obtain the real-time charging port temperature of each charging port, and determine the outside temperature of the vehicle based on the at least one real-time charging port temperature corresponding to at least one charging port.
[0037] Step 103: When at least one charging port is not in a preset cooling state, obtain the pre-stored historical outside temperature as the outside temperature.
[0038] In the embodiments of this disclosure, when all charging ports are in a preset cooling state, it is assumed that the temperature difference between the charging port and the external environment is small. Therefore, the real-time charging port temperature of each charging port can be obtained, and the external temperature can be determined based on the at least one real-time charging port temperature corresponding to at least one charging port. For example, the average of the at least one real-time charging port temperatures corresponding to at least one charging port can be determined as the external temperature; or, for example, the minimum value among the at least one real-time charging port temperatures corresponding to at least one charging port can be determined as the external temperature. Here, the external temperature can be understood as the ambient temperature outside the vehicle. The purpose of determining the minimum value among the at least one real-time charging port temperatures corresponding to at least one charging port is to further avoid the charging port being affected by the vehicle's operating conditions and to avoid the problem of the charging port temperature rising due to the heat generated by the vehicle's operating conditions. The minimum value determined among the at least one real-time charging port temperatures corresponding to at least one charging port can be considered as the charging port temperature that is not affected by the heat generated by the vehicle's operating conditions. This charging port temperature can be regarded as the external temperature. This method of obtaining the external temperature does not require a separate external temperature sensor, reducing the cost of the sensor body, wiring harness, connectors, and other related components.
[0039] In one embodiment of this disclosure, after each acquisition of the outside temperature, the acquired outside temperature can be stored in the vehicle's memory. Therefore, in this embodiment, when at least one charging port is not uniformly cooled by a preset time, the previously stored outside temperature can be read as the outside temperature (the previously stored outside temperature is the most recent stored outside temperature). Of course, in this embodiment, if the time elapsed between the previously stored outside temperature and the current time is greater than a preset time threshold, the ambient temperature corresponding to the vehicle's current location, as published by the weather platform, is used as the outside temperature. Similarly, in this embodiment, the currently determined outside temperature is stored.
[0040] In one specific embodiment, refer to Figure 2In the embodiments of this disclosure, when there are multiple charging ports, including fast charging ports and slow charging ports, when the vehicle is powered on and woken up, the real-time charging port temperature, current time, charging end time of each charging port, and previously stored outside temperature of each charging port are acquired. Based on the current time and charging end time of each charging port, the charging end duration of each charging port is determined. Based on the charging end duration, it is determined whether each charging port is in a preset cooling state. In this embodiment, it can be determined whether the charging end duration of each charging port is greater than or equal to 1 hour. When the charging end duration of each charging port is determined to be greater than or equal to 1 hour, it is determined that both the fast charging port and the slow charging port are in a preset cooling state. Therefore, the outside temperature T1 = min(real-time charging port temperature of the fast charging port, real-time charging port temperature of the slow charging port), that is, T1 is the minimum value among the real-time charging port temperatures corresponding to the fast charging port and the slow charging port. In this example, continue to refer to... Figure 2 When the fast charging port and slow charging port are not in the preset cooling state, it is assumed that the real-time charging port temperature is affected by the vehicle's operating conditions. Therefore, in order to ensure the accuracy of the determined outside temperature, the previously stored outside temperature is used as the outside temperature for this time.
[0041] In summary, the method for determining the vehicle's outside temperature according to this embodiment determines whether each charging port is in a preset cooling state when the vehicle is powered on and woken up. If at least one charging port is in the preset cooling state, the real-time charging port temperature of each charging port is acquired, and the outside temperature is determined based on the at least one real-time charging port temperature corresponding to at least one charging port. If multiple charging ports are not in the preset cooling state, the pre-stored historical outside temperature is acquired as the outside temperature. In this technical solution, the outside temperature is determined by combining the vehicle's charging port temperatures, eliminating the need for a separate outside temperature sensor. This achieves outside temperature measurement in a low-cost manner while ensuring the accuracy of the outside temperature determination.
[0042] After the vehicle is woken up, the vehicle is powered on. Once the vehicle is powered on, the outside temperature can be determined based on the vehicle's actual charging conditions.
[0043] In one embodiment of this disclosure, such as Figure 3 As shown, the method also includes:
[0044] Step 301: After the vehicle is powered on, determine whether the battery is in a non-charging state.
[0045] The battery charging status can be determined through communication with the battery control manager. For example, in some possible embodiments, this can be achieved when the vehicle's functional structure is... Figure 4 When shown, refer to Figure 4When multiple charging ports are used, including fast charging and slow charging ports, the fast charging port temperature sensor can communicate with the battery manager, and the slow charging port temperature sensor can communicate with the on-board charger controller. The vehicle control system can read the battery's charging status from the battery manager. This charging status can include various charging modes, external discharge states, and non-charging states; that is, the vehicle control system can determine whether the battery is in a non-charging state from the charging status read by the battery manager.
[0046] Step 302: When the battery is not charging, obtain the real-time charging port temperature of each charging port.
[0047] In one embodiment of this disclosure, when the battery is in a non-charging state, the real-time charging port temperature of each charging port is acquired.
[0048] Continue with Figure 4 Taking the scenario shown as an example, the vehicle control system can obtain the real-time charging port temperature of the fast charging port from the battery control manager, and the vehicle control system can obtain the real-time charging port temperature of the slow charging port from the on-board charger controller.
[0049] Step 303: Determine the outside temperature of the vehicle based on the temperature of at least one real-time charging port corresponding to at least one charging port.
[0050] In this embodiment, the outside temperature is determined based on the at least one real-time charging port temperature corresponding to at least one charging port. For example, the average of the at least one real-time charging port temperatures corresponding to at least one charging port is determined as the outside temperature. Or, the minimum of the at least one real-time charging port temperatures corresponding to at least one charging port is determined as the outside temperature. When T2 represents the outside temperature after the vehicle is powered on, the outside temperature T2 here can be considered to be consistent with the method of determining the outside temperature T1 when the vehicle is powered on and woken up.
[0051] It should be emphasized that in the embodiments of this disclosure, the real-time charging port temperature of each charging port is continuously acquired (e.g., acquired once every sampling time interval). The real-time charging port temperature in the non-charging state generally does not change abruptly. Therefore, in order to avoid abnormal changes in the real-time charging port temperature in the non-charging state, the temperature rise rate of the vehicle outside temperature T2 can be limited in combination with the length of time after charging ends (this temperature rise rate is to compensate for the error in determining the vehicle outside temperature caused by abnormal changes in the real-time charging port temperature in the non-charging state).
[0052] In some possible embodiments, the real-time vehicle speed and the duration Ti1 of charging port completion when the vehicle is not charging can be obtained, and the rate of temperature rise of the outside temperature T2 can be limited by combining the real-time vehicle speed and the duration of charging port completion.
[0053] In this embodiment, a pre-set correspondence is established between the real-time charging temperature rise rate (in °C / min) of the charging port and the range of vehicle speeds and the duration of charging port charging completion when the charging port is not in a charging state. By querying the above correspondence based on the obtained real-time vehicle speed and the duration of charging port charging completion, the target temperature rise rate corresponding to the current time T2 can be determined. It is then determined whether the temperature rise rate of the current time T2 is greater than the target temperature rise rate determined above. If it is greater than the target temperature rise rate, the current time T2 is corrected according to the target temperature rise rate; otherwise, the current time T2 is not processed.
[0054] The correspondence between the aforementioned temperature rise rate and the vehicle speed range and the charging port end time range can be set according to the scenario requirements. In some possible implementations, this correspondence can be shown in Table 1 below. Taking Table 1 as an example, it can be seen that when the charging port end time Ti1 is less than 10 minutes and the real-time vehicle speed is less than 60, the temperature rise rate of the charging port is 0. That is, when the charging port end time Ti1 is less than 10 minutes and the real-time vehicle speed is less than 60, the temperature rise rate between the current vehicle outside temperature T2 and the previous vehicle outside temperature T2 should be 0. If the current T2 is greater than the previous T2, then the current T2 should be corrected to the previous T2, etc.
[0055] Table 1
[0056]
[0057] In one embodiment of this disclosure, after determining whether the battery is in a non-charging state, if the battery is not in a non-charging state, it is further determined whether the battery is in a preset first charging mode. In the preset first charging mode, the battery is charged through a first charging port among multiple charging ports, continuing to charge. Figure 4 Taking the scenario shown as an example, the first charging mode can be a fast charging mode, and the corresponding first charging port is a fast charging port. Furthermore, when the battery is in the preset first charging mode, the initial temperature of the first charging port is obtained, where the initial temperature can be understood as the temperature of the first charging port at the moment when the battery switches from a non-charging state to the preset first charging mode.
[0058] In this embodiment, the real-time temperatures of the charging ports other than the first charging port are obtained. Then, the minimum value among the initial temperature and the real-time charging port temperatures of the other charging ports is determined to be the outside temperature of the vehicle. That is, considering that the first charging port may have a higher real-time temperature due to charging, resulting in a large temperature difference with the outside temperature, the initial temperature before the first charging port starts charging is used as a reference for the outside temperature. Since the other charging ports typically do not participate in charging while the first charging port is charging, their real-time charging port temperatures can also be used as a reference for the outside temperature. Therefore, in this embodiment, the minimum value among the initial temperature and the real-time charging port temperatures of the other charging ports can be directly used as the outside temperature.
[0059] In one embodiment of this disclosure, after determining whether the battery is in a preset first charging mode, if the battery is not in the preset first charging mode, it is determined whether the battery is in a preset second charging mode or in a state of external discharge. In the preset second charging mode, the battery is charged through a second charging port among multiple charging ports, continuing to charge. Figure 4 Taking the scenario shown as an example, the second charging mode can be a slow charging mode, where the second charging port corresponding to the slow charging mode is a slow charging port. That is, in this embodiment, the charging rate of the second charging port is less than the charging rate of the first charging port.
[0060] In this embodiment, when the battery is in a preset second charging mode or in an external discharge state, the real-time charging port temperature of each charging port is acquired, and the minimum value among the multiple real-time charging port temperatures corresponding to multiple charging ports is determined as the vehicle outside temperature. That is, since the charging rate of the second charging port is lower than that of the first charging port in the second charging mode, the charging port temperature may not rise significantly when charging through the second charging port. Therefore, to improve the efficiency of obtaining the vehicle outside temperature, the initial temperature before the second charging port starts charging is no longer acquired; instead, the minimum value among the multiple real-time charging port temperatures corresponding to multiple charging ports is directly used as the vehicle outside temperature. Continuing to refer to... Figure 4 In the embodiments of this disclosure, after obtaining the outside temperature, the outside temperature can be sent to other controllers, wherein the other controllers are controllers that need to operate with the outside temperature as a parameter, and the other controllers include, but are not limited to, vehicle air conditioning controllers, etc.
[0061] In one specific embodiment of this disclosure, when the multiple charging ports include fast charging ports and slow charging ports, refer to Figure 5After the vehicle is powered on, the charging status of the battery is also acquired, including the initial temperature of the fast charging port at the start, the real-time charging port temperature, the real-time charging port temperature of the slow charging port, and the duration of charging completion. In this embodiment, when it is determined that the battery is in a non-charging state, the external temperature T2 is determined to be min(real-time charging port temperature of fast charging port, real-time charging port temperature of slow charging port). As described above, after determining T2 at the current moment, the correspondence between the real-time charging completion duration and the real-time vehicle speed is queried, and the temperature rise rate of the real-time charging port temperature is queried with respect to the vehicle speed range and the charging port charging completion duration range. Based on the query results, it is determined whether to correct T2, etc.
[0062] Continue to refer to Figure 5 When the battery is determined to be in fast charging mode, the external temperature T2 is determined to be min (initial temperature of fast charging port and real-time charging temperature of slow charging port). When the battery is determined to be in slow charging mode or in external discharge state, T2 is determined to be min (real-time charging port temperature of fast charging port and real-time charging port temperature of slow charging port).
[0063] In summary, the method for determining the vehicle's external temperature according to the present disclosure combines parameters such as different battery charging conditions and the real-time charging port temperature to determine the vehicle's external temperature after power-on. This method ensures the accuracy of external temperature determination without requiring an external temperature sensor.
[0064] Based on the above embodiments, it is easy to understand that after the vehicle is powered on, the ambient temperature outside the vehicle may also be affected by changes in the vehicle's altitude. Therefore, after determining the ambient temperature outside the vehicle, error correction is made based on the amount of change in the vehicle's altitude.
[0065] In one embodiment of this disclosure, such as Figure 6 As shown, after determining the outside temperature of the vehicle after it is powered on, the method further includes:
[0066] Step 601: Determine the real-time altitude change of the vehicle.
[0067] The real-time altitude change can be understood as the change Δh between the altitude h of the vehicle's current location and the altitude h0 of the location when the vehicle is powered on and woken up.
[0068] In some possible embodiments, reference continues to be made to Figure 4 The vehicle control system can obtain the vehicle's location and altitude by communicating with the onboard smart cockpit module.
[0069] In practical implementation, when only atmospheric pressure can be obtained from the communication with the in-vehicle intelligent cockpit module (for example, for plug-in hybrid electric vehicles, the atmospheric pressure at the vehicle's location can be obtained), the poster height can be calculated and converted based on the atmospheric pressure, where altitude is included. Where P is the atmospheric pressure corresponding to the current location of the vehicle, and P0 is the standard atmospheric pressure.
[0070] Step 602: Calculate the product of the preset altitude correction coefficient and the real-time altitude change.
[0071] Step 603: Calculate the sum of the product value and the outside temperature after the vehicle is powered on, and update the outside temperature after the vehicle is powered on based on the sum value.
[0072] The preset altitude correction coefficient can be set according to the scenario. In some possible embodiments, the preset altitude correction coefficient is 0.65. The product value is calculated and the sum of the vehicle's external temperature after power-on is completed. The vehicle's external temperature after power-on is updated according to the sum. For example, the external temperature T2 is updated as: T2 = external temperature T2 + 0.65 * real-time altitude change.
[0073] In one embodiment of this disclosure, the real-time weather temperature at the current location of the vehicle is also obtained. The real-time weather temperature can be understood as the weather temperature broadcast by the weather forecasting platform corresponding to the current location of the vehicle. The real-time weather temperature can also be obtained through communication between the vehicle control system and the on-board intelligent cockpit module.
[0074] In this embodiment, it is determined whether the absolute value of the temperature difference between the outside temperature of the vehicle after it is powered on and the real-time weather temperature at the current location of the vehicle is greater than a first preset temperature difference threshold, whether the current speed of the vehicle is greater than or equal to a preset speed threshold, and whether the distance the vehicle has moved is greater than a preset distance threshold. The purpose of this determination is to determine whether the vehicle has moved from one type of environment to another type of environment. In this case, the temperature difference between the two types of environments is large. For example, the scenario of the vehicle moving from an indoor basement to the outside (hereinafter referred to as "moving the vehicle") can be considered as the vehicle moving from one type of environment to another type of environment.
[0075] The first preset temperature difference threshold, the preset vehicle speed threshold, and the vehicle's travel distance can all be set according to the needs of the scenario. For example, the first preset temperature difference threshold can be 5, the preset vehicle speed threshold can be 30 kph, and the preset distance threshold can be 800 m.
[0076] If the absolute value of the temperature difference between the outside temperature of the vehicle after power-on and the real-time weather temperature at the vehicle's current location is greater than a first preset temperature difference threshold, and the current vehicle speed is greater than or equal to a preset vehicle speed threshold, and the distance traveled is greater than a preset distance threshold, then the method of determining the outside temperature by combining the real-time charging temperature of the charging port is considered unreliable. This is because the real-time charging temperature of the charging port is greatly affected by the environment when the vehicle moves from one type of environment to another. Therefore, the outside temperature after power-on is updated to the real-time weather temperature at the vehicle's current location.
[0077] Furthermore, the absolute value of the temperature difference between the outside temperature of the vehicle after power-on, obtained through the above embodiments, and the real-time weather temperature at the current location of the vehicle is monitored to see if it is greater than the second preset temperature difference threshold. In order to further ensure the accuracy of the determination of the outside temperature, the second preset temperature difference threshold is less than the first preset temperature difference threshold. For example, when the first preset temperature difference threshold is 5, the second preset temperature difference threshold here is 3.
[0078] In this embodiment, when the absolute value of the temperature difference between the outside temperature after the vehicle is powered on and the real-time weather temperature at the vehicle's current location is greater than a second preset temperature difference threshold, the outside temperature after the vehicle is powered on is updated to the real-time weather temperature at the vehicle's current location. Conversely, if the absolute value is less than the threshold, the outside temperature updated based on the altitude change is used as the vehicle's current outside temperature.
[0079] In one specific embodiment of this disclosure, the first preset temperature difference threshold is 5, the second preset temperature difference threshold is 3, the preset vehicle speed threshold is 30 kbps, and the preset distance threshold is 800 m. The system determines whether the vehicle has moved from its parking space. Figure 7 As shown, the real-time weather temperature at the vehicle's current location and the vehicle's altitude change are obtained. After obtaining the vehicle's outside temperature after powering on, the outside temperature T2 is corrected based on the altitude change. The corrected outside temperature is represented as T3. Then, it is determined whether the vehicle has moved from its parking space. In this embodiment, it is determined whether the absolute value of the temperature difference between the outside temperature T3 and the real-time weather temperature is greater than 5, whether the vehicle's current speed is greater than or equal to 30, and whether the vehicle's moving distance is greater than 800m. If no moving has occurred, the outside temperature remains T3.
[0080] After determining that the vehicle has moved from its parking space, the outside temperature T3 after the vehicle is powered on is updated to the real-time weather temperature of the vehicle's current location.
[0081] Since the vehicle's current location changes, the real-time weather temperature corresponding to the vehicle's current location also changes. Therefore, in this embodiment, the absolute value of the temperature difference between the determined outside temperature and the real-time weather temperature at the vehicle's current location at each moment is monitored to see if it is greater than 3. If it is not greater than 3, it indicates that the current outside temperature is close to the ambient temperature outside the vehicle, and T3 is used as the outside temperature. If it is greater than 3, it is considered that the previously determined outside temperature is no longer reliable, that is, the difference between the previously determined outside temperature and the ambient temperature outside the vehicle is large. Therefore, the outside temperature T3 is updated to the real-time weather temperature at the vehicle's current location.
[0082] In this embodiment, after determining the outside temperature, the outside temperature is also stored so that it can be read when needed during the next power-on wake-up.
[0083] In summary, the method for determining the vehicle's outside temperature according to the present disclosure improves the accuracy of the determined outside temperature by taking into account factors such as altitude change and weather temperature.
[0084] To achieve the above embodiments, this disclosure also proposes a device for determining the outside temperature of a vehicle. The vehicle includes multiple charging ports and a battery. Figure 8 This is a schematic diagram of a device for determining the outside temperature of a vehicle, provided as an embodiment of this disclosure. This device can be implemented by software and / or hardware and is generally integrated into the vehicle, such as into the vehicle control system. Figure 8 As shown, the device includes: a charging port status determination module 810 and an outside temperature determination module 820, wherein,
[0085] The charging port status determination module 810 is used to determine whether each charging port is in a preset cooling state when the vehicle is powered on and woken up.
[0086] The vehicle exterior temperature determination module 820 is used to acquire the real-time charging port temperature of each charging port when at least one charging port is in a preset cooling state, and to determine the vehicle exterior temperature based on the at least one real-time charging port temperature corresponding to at least one charging port.
[0087] In this embodiment, the vehicle exterior temperature determination module 820 is also used to obtain the pre-stored historical vehicle exterior temperature as the vehicle exterior temperature when at least one charging port is not in a preset cooling state.
[0088] In one embodiment of this disclosure, the vehicle outside temperature determination module 820 is further configured to:
[0089] After the vehicle is powered on, check whether the battery is not in a charging state;
[0090] When the battery is not charging, obtain the real-time charging port temperature of each charging port;
[0091] The outside temperature is determined based on the temperature of at least one real-time charging port corresponding to at least one charging port.
[0092] In one embodiment of this disclosure, when at least one charging port is a plurality of charging ports, the vehicle outside temperature determination module 820 is further configured to:
[0093] When the battery is not in a non-charging state, determine whether the battery is in a preset first charging mode, wherein the battery is charged through the first charging port among multiple charging ports in the preset first charging mode.
[0094] When the battery is in a preset first charging mode, obtain the initial temperature of the first charging port;
[0095] Get the real-time charging port temperature of multiple charging ports other than the first charging port;
[0096] The minimum value among the initial temperature and the real-time charging port temperatures of other charging ports is determined to be the outside temperature.
[0097] In one embodiment of this disclosure, the vehicle outside temperature determination module 820 is further configured to:
[0098] When the battery is not in a preset first charging mode, determine whether the battery is in a preset second charging mode or in a state of external discharge. In the preset second charging mode, the battery is charged through the second charging port among multiple charging ports, and the charging rate of the second charging port is less than the charging rate of the first charging port.
[0099] When the battery is in the preset second charging mode or in the external discharge state, the real-time charging port temperature of each charging port is obtained, and the minimum value among the multiple real-time charging port temperatures corresponding to multiple charging ports is determined to be the outside temperature of the vehicle.
[0100] In one embodiment of this disclosure, the vehicle outside temperature determination module 820 is further configured to determine the minimum value among at least one real-time charging port temperature corresponding to at least one charging port as the vehicle outside temperature; or,
[0101] The average temperature of at least one real-time charging port corresponding to at least one charging port is determined to be the outside temperature of the vehicle. In one embodiment of this disclosure, an outside temperature correction module is further included, used for:
[0102] Determine the real-time altitude change of the vehicle;
[0103] Calculate the product of the preset altitude correction factor and the real-time altitude change.
[0104] Calculate the sum of the product and the outside temperature after the vehicle is powered on, and update the outside temperature after the vehicle is powered on based on the sum.
[0105] In one embodiment of this disclosure, the vehicle exterior temperature correction module is further configured to:
[0106] Determine whether the absolute value of the temperature difference between the outside temperature of the vehicle after it is powered on and the real-time weather temperature at the current location of the vehicle is greater than a first preset temperature difference threshold, and determine whether the current speed of the vehicle is greater than or equal to a preset speed threshold, and determine whether the distance the vehicle has traveled is greater than a preset distance threshold.
[0107] When the absolute value of the temperature difference between the outside temperature of the vehicle after power-on and the real-time weather temperature at the vehicle's current location is greater than a first preset temperature difference threshold, and the current vehicle speed is greater than or equal to a preset vehicle speed threshold, and the distance traveled is greater than a preset distance threshold, the outside temperature of the vehicle after power-on is updated to the real-time weather temperature at the vehicle's current location.
[0108] In one embodiment of this disclosure, the vehicle exterior temperature correction module is further configured to:
[0109] The absolute value of the temperature difference between the outside temperature of the vehicle after it is powered on and the real-time weather temperature at the current location of the vehicle is greater than a second preset temperature difference threshold, wherein the second preset temperature difference threshold is less than a first preset temperature difference threshold.
[0110] When the absolute value of the temperature difference between the outside temperature after the vehicle is powered on and the real-time weather temperature at the vehicle's current location is not greater than the second preset temperature difference threshold, the outside temperature after the vehicle is powered on is updated to the outside temperature updated based on the summation value.
[0111] The vehicle exterior temperature determination device provided in this disclosure can execute the vehicle exterior temperature determination method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method.
[0112] To implement the above embodiments, this disclosure also proposes a vehicle. Figure 9 This is a structural schematic diagram of a vehicle provided as an embodiment of this disclosure. Figure 9 As shown, the vehicle includes one or more of the following components: a memory 910, a processor 920, and one or more application programs, wherein one or more application programs can be stored in the memory 910 and configured to be executed by one or more processors 920, and one or more application programs are configured to perform the methods as described in the foregoing method embodiments.
[0113] The memory 910 may include random access memory (RAM) or read-only memory (ROM). The memory 910 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 910 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as obtaining the outside temperature), and instructions for implementing the various method embodiments described below. The data storage area may also store data generated by the vehicle 900 during use (such as vehicle speed, parking duration, charging status at the vehicle charging port, and charging completion time).
[0114] The processor 920 may include one or more processing cores. The processor 920 connects to various parts within the vehicle 900 via various interfaces and lines, executing instructions, programs, code sets, or instruction sets stored in the memory 910, and calling data stored in the memory 910 to perform various functions and process data within the vehicle 900. Optionally, the processor 920 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 920 may integrate one or a combination of several of the following: a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 920 and may be implemented separately using a communication chip.
[0115] To implement the above embodiments, this disclosure also proposes a computer-readable storage medium storing a computer program for executing the above method embodiments.
[0116] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0117] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0118] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0119] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0120] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0121] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0122] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0123] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for determining the outside temperature of a vehicle, characterized in that, The vehicle includes at least one charging port and a battery, and the method includes: When the vehicle is powered on and woken up, it is determined whether each of the charging ports is in a preset cooling state; When at least one charging port is in the preset cooling state, the real-time charging port temperature of each charging port is obtained, and the outside temperature is determined based on the at least one real-time charging port temperature corresponding to the at least one charging port. When at least one charging port is not in the preset cooling state, the pre-stored historical outside temperature is obtained as the outside temperature.
2. The method as described in claim 1, characterized in that, The method further includes: After the vehicle is powered on, determine whether the battery is in a non-charging state; When the battery is in the non-charging state, the real-time charging port temperature of each charging port is obtained; The outside temperature is determined based on the temperature of at least one real-time charging port corresponding to at least one charging port.
3. The method as described in claim 2, characterized in that, When at least one charging port is a plurality of charging ports, after determining whether the battery is in a non-charging state, the method further includes: When the battery is not in the non-charging state, it is determined whether the battery is in a preset first charging mode, wherein the battery is charged through the first charging port among the plurality of charging ports in the preset first charging mode; When the battery is in the preset first charging mode, the initial temperature of the first charging port is obtained; Obtain the real-time charging port temperature of the multiple charging ports other than the first charging port; The minimum value among the initial temperature and the real-time charging port temperatures of the other charging ports is determined to be the outside temperature of the vehicle.
4. The method as described in claim 3, characterized in that, After determining whether the battery is in a preset first charging mode, the method further includes: When the battery is not in the preset first charging mode, it is determined whether the battery is in a preset second charging mode or in a state of external discharge. In the preset second charging mode, the battery is charged through the second charging port among the plurality of charging ports, wherein the charging rate of the second charging port is less than the charging rate of the first charging port. When the battery is in a preset second charging mode or in an external discharge state, the real-time charging port temperature of each charging port is obtained, and the minimum value among the multiple real-time charging port temperatures corresponding to the multiple charging ports is determined to be the vehicle outside temperature.
5. The method as described in claim 1 or 2, characterized in that, Determining the outside temperature based on the temperature of at least one real-time charging port corresponding to the at least one charging port includes: The minimum value among the at least one real-time charging port temperatures corresponding to the at least one charging port is determined to be the outside temperature of the vehicle; or, The average temperature of at least one real-time charging port corresponding to the at least one charging port is determined to be the outside temperature of the vehicle.
6. The method according to any one of claims 2-4, characterized in that, The method further includes: Determine the real-time altitude change of the vehicle; Calculate the product of the preset altitude correction factor and the real-time altitude change. Calculate the sum of the product value and the outside temperature of the vehicle after power-on, and update the outside temperature of the vehicle after power-on based on the sum value.
7. The method as described in claim 6, characterized in that, Also includes: Determine whether the absolute value of the temperature difference between the outside temperature of the vehicle after it is powered on and the real-time weather temperature at the current location of the vehicle is greater than a first preset temperature difference threshold, and determine whether the current speed of the vehicle is greater than or equal to a preset speed threshold, and determine whether the distance the vehicle has traveled is greater than a preset distance threshold. When the absolute value of the temperature difference between the outside temperature of the vehicle after power-on and the real-time weather temperature at the current location of the vehicle is greater than the first preset temperature difference threshold, and the current vehicle speed is greater than or equal to the preset vehicle speed threshold, and the moving distance is greater than the preset distance threshold, the outside temperature of the vehicle after power-on is updated to the real-time weather temperature at the current location of the vehicle.
8. The method as described in claim 7, characterized in that, The method further includes: The absolute value of the temperature difference between the outside temperature of the vehicle after it is powered on and the real-time weather temperature at the current location of the vehicle is greater than a second preset temperature difference threshold, wherein the second preset temperature difference threshold is less than the first preset temperature difference threshold. When the absolute value of the temperature difference between the outside temperature of the vehicle after power-on and the real-time weather temperature at the current location of the vehicle is not greater than the second preset temperature difference threshold, the outside temperature of the vehicle after power-on is updated to the outside temperature updated according to the summation value.
9. A device for determining the outside temperature of a vehicle, characterized in that, The vehicle includes at least one charging port and a battery, and the device includes: The charging port status determination module is used to determine whether each of the charging ports is in a preset cooling state when the vehicle is powered on and woken up. The vehicle exterior temperature determination module is used to acquire the real-time charging port temperature of each charging port when the at least one charging port is in the preset cooling state, and determine the vehicle exterior temperature based on the at least one real-time charging port temperature corresponding to the at least one charging port. The vehicle exterior temperature determination module is also used to obtain the pre-stored historical vehicle exterior temperature as the vehicle exterior temperature when at least one charging port is not in the preset cooling state.
10. A vehicle, characterized in that, The vehicles include: Memory; One or more processors are coupled to the memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by one or more processors, the one or more applications being configured to perform the method for determining the outside temperature of a vehicle as described in any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program for performing the method for determining the outside temperature of the vehicle as described in any one of claims 1-8.