A method, device and storage medium for detecting vehicle-exterior temperature based on vehicle
By setting a delay time according to the starting status after the vehicle is started and adjusting the temperature sensor data, the problem of the influence of the installation position of the outdoor temperature sensor is solved, and the accuracy of the outdoor temperature display is achieved.
Patent Information
- Application Number
- CN202210796649.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-06
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2042-07-06
AI Technical Summary
In the prior art, the installation position of the external temperature sensor is affected by air velocity and heat source, resulting in an inability to accurately feedback the external ambient temperature.
After the vehicle is started, a delay time is set according to the vehicle's starting status (cold start or hot start), and after the waiting time is satisfied, the outside temperature display data is adjusted according to the detection data of the temperature sensor at the current moment.
The accuracy of the outside temperature display is improved by considering the impact of cabin components on the temperature sensor under different startup states and adjusting the displayed data in real time.
Smart Images

Figure CN115046649B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a method, device and storage medium for detecting vehicle external temperature based on the vehicle. Background Art
[0002] The outside temperature sensor is also known as the ambient temperature sensor, outside air temperature sensor, or atmospheric temperature sensor. It can be used to adjust the air outlet temperature, blower speed, intake and mode door positions, and compressor operating status.
[0003] The outside temperature sensor is typically installed behind the engine inlet grille and in front of the radiator. It measures the temperature of the airflow passing through this location. Due to the unique mounting location of the outside temperature sensor, it is affected by air velocity and heat sources, resulting in inaccurate feedback on the outside ambient temperature. Existing technologies lack a solution for accurately obtaining the outside ambient temperature using the outside temperature sensor. Summary of the Invention
[0004] In view of this, an embodiment of the present application provides a method, device, electronic device and storage medium for detecting the vehicle's outside temperature based on the vehicle. After the vehicle is started, the first display data of the vehicle's outside temperature can be adjusted in real time according to the impact of vehicle components in the cabin on the temperature sensor used to detect the outside temperature under different vehicle startup states, thereby improving the accuracy of the displayed outside temperature.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for detecting the temperature outside a vehicle based on a vehicle, comprising the following steps:
[0007] After the vehicle is started, determining the start-up state of the vehicle, and determining first display data of the current outside temperature of the vehicle according to the start-up state of the vehicle; wherein the start-up state of the vehicle includes a cold start state and a hot start state;
[0008] According to different starting states of the vehicle, setting delay times corresponding to the different starting states;
[0009] When the waiting time after determining the first display data of the current outside temperature of the vehicle meets the delay time, the first display data of the current outside temperature of the vehicle is adjusted according to the first temperature detection data of the temperature sensor at the current moment.
[0010] In a possible implementation manner, determining the first display data of the current outside temperature of the vehicle according to the startup state of the vehicle includes:
[0011] When the vehicle is in the cold start state, determining first display data of the current outside temperature of the vehicle according to second temperature detection data of the temperature sensor at the current moment;
[0012] When the vehicle is in the hot start state and the second display data of the vehicle's outside temperature before the vehicle is turned off meets a stability condition, determining the first display data of the vehicle's current outside temperature based on the second display data of the vehicle's outside temperature before the vehicle is turned off;
[0013] When the vehicle is in the hot start state but the second display data of the vehicle's external temperature before the vehicle is turned off does not meet the stability condition, the first display data of the vehicle's current external temperature is determined according to the second temperature detection data of the temperature sensor at the current moment.
[0014] In a possible implementation, determining the startup state of the vehicle includes:
[0015] Obtaining startup information of the vehicle;
[0016] When the startup information of the vehicle meets the cold start state condition, the vehicle is determined to be in the cold start state; wherein the vehicle meeting the cold start state condition includes: the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is less than or equal to the first temperature comparison threshold; or, the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is less than or equal to the second temperature comparison threshold; the second temperature comparison threshold is greater than the first temperature comparison threshold;
[0017] When the startup information of the vehicle meets the hot start state condition, the vehicle is determined to be in the hot start state; wherein, the vehicle meets the cold start state condition including: the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is greater than the first temperature comparison threshold; or, the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is greater than the second temperature comparison threshold; or, the temperature state of the vehicle component is abnormal.
[0018] In a possible implementation manner, the setting of delay times corresponding to different startup states of the vehicle includes:
[0019] When the vehicle is in the cold start state, setting a first delay time corresponding to the cold start state;
[0020] When the vehicle is in the hot start state, if the first temperature detection data of the temperature sensor is less than the first display data of the current outside temperature of the vehicle, a second delay time corresponding to the hot start state is set; if the first temperature detection data of the temperature sensor is greater than or equal to the first display data of the current outside temperature of the vehicle, a third delay time corresponding to the target speed interval is determined based on the target speed interval to which the current driving information of the vehicle belongs; wherein, the greater the speed of the speed interval, the smaller the corresponding third delay time.
[0021] In a possible implementation, adjusting the first display data of the current outside temperature of the vehicle according to the first temperature detection data of the temperature sensor at the current moment includes:
[0022] When the vehicle is in the cold start state, calculating the difference between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle; if the difference is within a first preset interval, adjusting the first display data of the current outside temperature of the vehicle to the first temperature detection data; if the difference is outside the first preset interval, determining an adjustment direction of the first display data of the current outside temperature of the vehicle based on the interval segment outside the first preset interval to which the difference belongs, and adjusting the first display data of the current outside temperature of the vehicle in accordance with the adjustment direction with a preset step size; the adjustment direction includes an increasing direction and a decreasing direction;
[0023] When the vehicle is in the hot start state, if the first temperature detection data of the temperature sensor is less than the first display data of the current outside temperature of the vehicle, and the difference between the first display data of the current outside temperature of the vehicle and the first temperature detection data of the temperature sensor is within a second preset interval, the first display data of the current outside temperature of the vehicle is adjusted in a decreasing adjustment direction with a preset step size; if the first temperature detection data of the temperature sensor is greater than or equal to the first display data of the current outside temperature of the vehicle, and the difference between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle is within the second preset interval, the first display data of the current outside temperature of the vehicle is adjusted in an increasing adjustment direction with a preset step size.
[0024] In a possible implementation, after determining the startup state of the vehicle, the method further includes:
[0025] detecting startup information of the vehicle in real time;
[0026] If it is determined that the startup state of the vehicle has changed according to the startup information detected in real time, the startup state of the vehicle is updated according to the changed startup state.
[0027] In one possible implementation, the method further includes:
[0028] Obtaining the operating status of the temperature sensor;
[0029] When the working state of the temperature sensor is abnormal and a first abnormal time has passed, the first display data of the current outside temperature of the vehicle is cleared;
[0030] When the first display data of the current outside temperature of the vehicle is empty data and after a second abnormal time has passed, the first display data of the current outside temperature of the vehicle is adjusted to the first temperature detection data of the temperature sensor.
[0031] In a second aspect, an embodiment of the present application further provides a device for detecting the vehicle's external temperature based on the vehicle's temperature. The device comprises:
[0032] a determination module, configured to determine a startup state of the vehicle after the vehicle is started, and determine first display data of the current outside temperature of the vehicle according to the startup state of the vehicle; wherein the startup state of the vehicle includes a cold start state and a hot start state;
[0033] a setting module, configured to set a delay time corresponding to different starting states of the vehicle;
[0034] The adjustment module is used to adjust the first display data of the current outdoor temperature of the vehicle according to the first temperature detection data of the temperature sensor at the current moment when the waiting time after determining the first display data of the current outdoor temperature of the vehicle meets the delay time.
[0035] In a third aspect, an embodiment of the present application further provides an electronic device comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the vehicle-based method for detecting the vehicle's external temperature as described in any one of the first aspects.
[0036] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the vehicle-based method for detecting the vehicle's external temperature are executed as described in any one of the first aspects.
[0037] The embodiments of the present application have the following beneficial effects:
[0038] After the vehicle is started, the starting status of the vehicle is determined, and delay times corresponding to different starting statuses of the vehicle are set. After the waiting time satisfies the delay time, the first display data of the current outside temperature of the vehicle is adjusted according to the first temperature detection data of the temperature sensor at the current moment. In this way, after the vehicle is started, the first display data of the outside temperature of the vehicle can be adjusted in real time according to the influence of the vehicle components in the cabin on the temperature sensor used to detect the outside temperature under different starting statuses of the vehicle, thereby improving the accuracy of the displayed outside temperature. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 10 is a flow chart of steps S101-S103 provided in an embodiment of the present application;
[0041] Figure 2 2 is a flow chart of steps S201-S203 provided in an embodiment of the present application;
[0042] Figure 3 3 is a flow chart of steps S301-S303 provided in an embodiment of the present application;
[0043] Figure 4 It is a flowchart of steps S401-S402 provided in an embodiment of the present application;
[0044] Figure 5 It is a flowchart of steps S501-S502 provided in an embodiment of the present application;
[0045] Figure 6 Schematic diagram of the process of steps S601-S602 provided in an embodiment of the present application;
[0046] Figure 7 7 is a flow chart of steps S701-S703 provided in an embodiment of the present application;
[0047] Figure 8 This is a first flow chart provided by an embodiment of the present application;
[0048] Figure 9 This is a second flow chart provided in an embodiment of the present application;
[0049] Figure 10 This is a flowchart of the cold start temperature processing provided by an embodiment of the present application;
[0050] Figure 11 This is a flowchart of the hot start temperature processing provided by an embodiment of the present application;
[0051] Figure 12 This is a flowchart of an invalid sensor temperature processing process provided by an embodiment of the present application;
[0052] Figure 13 This is a flowchart of an invalid display temperature processing process provided by an embodiment of the present application;
[0053] Figure 14 1 is a schematic structural diagram of a vehicle-based device for detecting vehicle external temperature according to an embodiment of the present application;
[0054] Figure 15 It is a schematic diagram of the composition structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of illustration and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can be implemented out of sequence, and steps without logical context can be reversed or implemented simultaneously. In addition, those skilled in the art, under the guidance of the contents of this application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0056] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0057] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0058] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0059] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used herein are for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0061] See also Figure 1 , Figure 1 The flow chart of the steps S101-S103 of the vehicle-to-vehicle external temperature detection method provided in the embodiment of the present application will be combined with Figure 1 Steps S101-S103 are shown for explanation.
[0062] Step S101: After the vehicle is started, determining the start-up state of the vehicle, and determining first display data of the current outside temperature of the vehicle according to the start-up state of the vehicle; wherein the start-up state of the vehicle includes a cold start state and a hot start state;
[0063] Step S102: setting a delay time corresponding to different starting states of the vehicle;
[0064] Step S103: When it is determined that the waiting time after the first display data of the current outside temperature of the vehicle meets the delay time, adjust the first display data of the current outside temperature of the vehicle according to the first temperature detection data of the temperature sensor at the current moment.
[0065] The above-mentioned method for detecting the vehicle's outside temperature based on the vehicle determines the vehicle's starting status after the vehicle is started, and sets delay times corresponding to different starting statuses for different vehicle starting statuses. After the waiting time satisfies the delay time, the first display data of the vehicle's current outside temperature is adjusted according to the first temperature detection data of the temperature sensor at the current moment. In this way, after the vehicle is started, the first display data of the vehicle's outside temperature can be adjusted in real time according to the influence of the vehicle components in the cabin on the temperature sensor used to detect the outside temperature under different vehicle starting statuses, thereby improving the accuracy of the displayed outside temperature.
[0066] The above exemplary steps of the embodiment of the present application are described below respectively.
[0067] In step S101, after the vehicle is started, the starting state of the vehicle is determined, and first display data of the current outside temperature of the vehicle is determined according to the starting state of the vehicle; wherein the starting state of the vehicle includes a cold start state and a hot start state.
[0068] In some embodiments, after the vehicle is started, it is first necessary to determine the starting status of the vehicle, which includes a cold start status and a hot start status, and initialize the first display data of the vehicle's current outside temperature according to the cold start status and the hot start status respectively, that is, determine the initial value of the first display data of the vehicle's current outside temperature according to the cold start status and the hot start status respectively.
[0069] As an example, under normal circumstances, the operating temperature of a vehicle engine is 85 degrees to 105 degrees. If the vehicle engine is turned off, after a period of time, the engine temperature gradually cools down to below 40 degrees. If the vehicle is started at this time, the vehicle's start-up state is a cold start; if the vehicle engine is turned off, after a period of time, the engine temperature is still greater than 40 degrees, the vehicle's start-up state is a hot start. At this time, it is necessary to determine the first display data of the vehicle's current outside temperature based on the vehicle's start-up state.
[0070] In the above method, after the vehicle is started, the starting status of the vehicle is first determined, and after the starting status is determined, the first display data of the vehicle's current outside temperature is initialized according to different starting statuses, thereby obtaining a more accurate initialization value, which provides an adjustment basis for the subsequent adjustment of the first display data of the vehicle's current outside temperature.
[0071] In step S102 , for different startup states of the vehicle, delay times corresponding to the different startup states are set.
[0072] In some embodiments, different delay times can be set for cold start and hot start states respectively. The delay time is used to simulate the process in which the temperature sensor outside the vehicle interacts with the environment under different start-up states (for example, air enters the air intake grille to take away excess heat from the temperature sensor), and gradually approaches the ambient temperature.
[0073] As an example, for different startup states, the delay time can be set by counting with a counter. For example, different count values are set for different startup states. After each unit time, the counter adds 1 to the count value corresponding to the current startup state. When the count value corresponding to the current startup state reaches the set count threshold, it can be determined that the delay time corresponding to the current startup state has been reached. A unit time can be any time value that is not equal to zero. For example, a unit time can be 1 second, 0.2 seconds, or 2 seconds. Typically, a unit time defaults to 1 second.
[0074] The above method simulates the process in which the outdoor temperature sensor interacts with the environment and gradually approaches the ambient temperature under different startup states by setting delay times corresponding to different startup states. After the corresponding delay time, it can be approximately considered that the first temperature detection data of the temperature sensor at the current moment is close to the current ambient temperature, laying the foundation for the subsequent adjustment of the first display data of the vehicle's current outdoor temperature.
[0075] In step S103 , when it is determined that the waiting time after the first display data of the current outside temperature of the vehicle meets the delay time, the first display data of the current outside temperature of the vehicle is adjusted according to the first temperature detection data of the temperature sensor at the current moment.
[0076] In some embodiments, after a delay time corresponding to the startup state has passed, it can be considered that the first temperature detection data of the temperature sensor at the current moment is close to the current ambient temperature, and then the first display data of the current outside temperature of the vehicle is adjusted according to the first temperature detection data of the temperature sensor at the current moment.
[0077] As an example, during the adjustment process, the first temperature detection data of the temperature sensor at the current moment can be directly used as the first display data of the current outside temperature of the vehicle, or it can be adjusted in the direction close to the first temperature detection data of the temperature sensor at the current moment. Only one fixed value is adjusted each time, and the fixed value can be flexibly set, for example: 1 degree, 0.5 degrees, 2 degrees.
[0078] In the above manner, by adjusting the first display data of the current vehicle exterior temperature, first display data of the current vehicle exterior temperature that is closer to the ambient temperature is obtained.
[0079] In some embodiments, see Figure 2 , Figure 2 This is a flow chart of steps S201-S203 provided in an embodiment of the present application. The first display data of determining the current outside temperature of the vehicle according to the startup state of the vehicle can be achieved through steps S201-S203, which will be explained in combination with each step.
[0080] In step S201 , when the vehicle is in the cold start state, first display data of the current outside temperature of the vehicle is determined according to second temperature detection data of the temperature sensor at the current moment.
[0081] In some embodiments, the second temperature detection data of the temperature sensor represents data detected by the temperature sensor when the first display data of the current outside temperature of the vehicle is determined according to the startup state of the vehicle after the startup state of the vehicle is determined.
[0082] In some embodiments, the first temperature detection data of the temperature sensor represents data detected by the temperature sensor when adjusting the first display data of the current outside temperature of the vehicle.
[0083] In some embodiments, when the vehicle is in a cold start state, since the vehicle has just been ignited, although the engine has started to work, the engine water temperature has not increased significantly and is still below 40 degrees. Therefore, the temperature sensor is hardly affected by excess heat sources. It can be considered that the second temperature detection data of the temperature sensor is relatively accurate. Therefore, the second temperature detection data of the temperature sensor at the current moment can be determined as the first display data of the current outside temperature of the vehicle.
[0084] In step S202, when the vehicle is in the hot start state and the second display data of the vehicle's outside temperature before the vehicle is turned off meets the stability condition, the first display data of the vehicle's current outside temperature is determined based on the second display data of the vehicle's outside temperature before the vehicle is turned off.
[0085] In some embodiments, the second display data of the outside temperature of the vehicle before the vehicle is turned off is also determined according to a method based on the vehicle's detection of the outside temperature of the vehicle. The second display data of the outside temperature of the vehicle before the vehicle is turned off is data adjusted by the method based on the vehicle's detection of the outside temperature of the vehicle to the first display data of the current outside temperature of the vehicle determined according to the startup state.
[0086] In some embodiments, when the vehicle is in a hot start state, since the vehicle is restarted within a short period of time after being turned off, and the engine starts working again immediately after stopping, the engine water temperature has not dropped significantly and is still in an operating state of 85 degrees to 105 degrees. In addition, since the vehicle has just started to move, almost no wind enters the air intake grille, and the temperature sensor is affected by excess heat sources. It can be considered that the second temperature detection data of the temperature sensor is inaccurate. At this time, if the difference between the second display data of the outside temperature before the vehicle is turned off and the second temperature detection data of the temperature sensor is within a stable range (for example: the absolute value of the difference is less than 10 degrees), it can be considered that the second display data of the outside temperature before the vehicle is turned off is relatively accurate, and the second display data of the outside temperature before the vehicle is turned off can be determined as the first display data of the current outside temperature of the vehicle.
[0087] In step S203, when the vehicle is in the hot start state but the second display data of the outside temperature before the vehicle is turned off does not meet the stability condition, the first display data of the current outside temperature of the vehicle is determined according to the second temperature detection data of the temperature sensor at the current moment.
[0088] In some embodiments, when the vehicle is in a hot start state, since the vehicle is restarted within a short period of time after being turned off, and the engine starts working again immediately after stopping, the engine water temperature has not dropped significantly and is still in an operating state of 85 degrees to 105 degrees. In addition, since the vehicle has just started to move, almost no wind enters the air intake grille, and the temperature sensor is affected by excess heat sources. It can be considered that the second temperature detection data of the temperature sensor is inaccurate. At this time, if the difference between the second display data of the outside temperature before the vehicle is turned off and the second temperature detection data of the temperature sensor is not within a stable range (for example, the absolute value of the difference is greater than or equal to 10 degrees), it can be considered that the second display data of the outside temperature before the vehicle is turned off is no longer accurate, and the second temperature detection data of the temperature sensor at the current moment still needs to be determined as the first display data of the current outside temperature of the vehicle.
[0089] The above method provides a specific scheme for initializing the first display data of the vehicle's current outside temperature. In the cold start state, the first display data of the vehicle's current outside temperature is determined by the second temperature detection data of the temperature sensor at the current moment; in the hot start state, based on whether the second display data of the vehicle's outside temperature before the vehicle is turned off meets the stability condition, the second display data of the vehicle's outside temperature before the vehicle is turned off or the second temperature detection data of the temperature sensor at the current moment is selected as the first display data of the vehicle's current outside temperature, thereby obtaining more accurate first display data of the vehicle's current outside temperature, which provides a basis for subsequent adjustment of the first display data of the vehicle's current outside temperature.
[0090] In some embodiments, see Figure 3, Figure 3 It is a flow chart of steps S301-S303 provided in an embodiment of the present application. The determination of the startup status of the vehicle can be achieved through steps S301-S303, which will be explained in combination with each step.
[0091] In step S301, the startup information of the vehicle is obtained.
[0092] In some embodiments, the third temperature detection data of the temperature sensor represents data detected by the temperature sensor when determining the startup state of the vehicle.
[0093] In some embodiments, the vehicle startup information includes but is not limited to third temperature detection data of the temperature sensor, the current temperature of the vehicle component, and the temperature state of the vehicle component. The current temperature of the vehicle component may be the engine water temperature, and the temperature state of the vehicle component may be the engine water temperature state.
[0094] In step S302, when the startup information of the vehicle meets the cold start state condition, the vehicle is determined to be in a cold start state; wherein, the vehicle meeting the cold start state condition includes: the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is less than or equal to the first temperature comparison threshold; or, the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is less than or equal to the second temperature comparison threshold; the second temperature comparison threshold is greater than the first temperature comparison threshold.
[0095] In some embodiments, see Figure 8 , Figure 8 The first flow chart provided for the embodiment of the present application. First, read the third temperature detection data of the temperature sensor and determine whether the data is valid. If invalid, display a null value "--". Then obtain the engine water temperature and the engine water temperature status to determine whether the engine water temperature status is normal. If the engine water temperature status is normal, and the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold (20 degrees), and the difference (ΔT) between the engine water temperature and the third temperature detection data of the temperature sensor is less than or equal to the first temperature comparison threshold (2 degrees), then the vehicle is judged to be in a cold start state; if the engine water temperature status is normal, and the third temperature detection data of the temperature sensor is greater than the first temperature threshold (20 degrees), and the difference (ΔT) between the engine water temperature and the third temperature detection data of the temperature sensor is less than or equal to the second temperature comparison threshold (5 degrees), then the vehicle is also judged to be in a cold start state. In addition, the second temperature comparison threshold must be greater than the first temperature comparison threshold.
[0096] In step S303, when the startup information of the vehicle meets the hot start state condition, the vehicle is determined to be in the hot start state; wherein, the vehicle meets the cold start state condition including: the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is greater than the first temperature comparison threshold; or, the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is greater than the second temperature comparison threshold; or, the temperature state of the vehicle component is abnormal.
[0097] In some embodiments, see Figure 8 If the engine water temperature is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold (20 degrees), and the difference (ΔT) between the engine water temperature and the third temperature detection data of the temperature sensor is greater than the first temperature comparison threshold (2 degrees), then the vehicle is judged to be in a hot start state; if the engine water temperature is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold (20 degrees), and the difference (ΔT) between the engine water temperature and the third temperature detection data of the temperature sensor is greater than the second temperature comparison threshold (5 degrees), then the vehicle is also judged to be in a hot start state; or when it is judged that the engine water temperature is abnormal, the vehicle is directly judged to be in a hot start state, where the normal or abnormal engine water temperature state can be directly obtained through the vehicle bus.
[0098] The above-mentioned method provides specific determination conditions for determining the vehicle's startup state, can accurately determine the vehicle's startup state, and provides a basis for initializing the first display data of the vehicle's current outside temperature.
[0099] In some embodiments, see Figure 4 , Figure 4 This is a flow chart of steps S401-S402 provided in an embodiment of the present application. Setting the delay time corresponding to the different starting states of the vehicle can be achieved through steps S401-S402, which will be explained in combination with each step.
[0100] In step S401, when the vehicle is in the cold start state, a first delay time corresponding to the cold start state is set;
[0101] In some embodiments, a corresponding first delay time needs to be set for the cold start state. Here, the first delay time is set by the counting result of the counter meeting a condition to adjust the first display data of the current vehicle outside temperature.
[0102] For example, see Figure 10 , Figure 10 A flowchart of the cold start temperature processing process provided by an embodiment of the present application. First, the cold start count value is set to Cc, and the cold start count threshold is set to 5. The counter is used to count. Every time a unit time passes, the counter adds 1 to the cold start count value. When the cold start count value reaches the set cold start count threshold (5), it can be determined that the first delay time corresponding to the cold start state has been reached. A unit time can be any time value not equal to zero, for example: a unit time can be 1 second, 0.2 seconds, or 2 seconds. When a unit time is 1 second, the first delay time corresponding to the cold start state is 5 seconds.
[0103] In the above manner, the first delay time is set for the cold start state by counting with a counter, and since the time is not directly calculated, the delay time can be adjusted by adjusting the unit time.
[0104] In step S402, when the vehicle is in the hot start state, if the first temperature detection data of the temperature sensor is less than the first display data of the current outside temperature of the vehicle, a second delay time corresponding to the hot start state is set; if the first temperature detection data of the temperature sensor is greater than or equal to the first display data of the current outside temperature of the vehicle, a third delay time corresponding to the target speed interval is determined based on the target speed interval to which the current driving information of the vehicle belongs; wherein, the greater the speed of the speed interval, the smaller the corresponding third delay time.
[0105] In some embodiments, due to the more complex factors affecting the hot start state, a second delay time and a third delay time need to be set for the hot start state. Here, the second delay time and the third delay time are still set by the counter counting result meeting the conditions to adjust the first display data of the current vehicle outdoor temperature.
[0106] For example, see Figure 11, which is a flowchart of the hot start temperature processing flow provided by an embodiment of the present application. First, a first hot start count value C1, a second hot start count value C2, a third hot start count value C3, a fourth hot start count value C4 and a fifth hot start count value C0 are set, as well as a first hot start count threshold value (500) corresponding to the first hot start count value C1, a second hot start count threshold value (100) corresponding to the second hot start count value C2, a third hot start count threshold value (50) corresponding to the third hot start count value C3, a fourth hot start count threshold value (20) corresponding to the fourth hot start count value C4, and a fifth hot start count threshold value (10) corresponding to the fifth hot start count value C5, wherein the second hot start count value is a count value for a vehicle speed interval greater than 5 km / h and less than or equal to 50 km / h. The third hot start count value is a count value for a vehicle speed range greater than 50 km / h and less than or equal to 100 km / h, and the fourth hot start count value is a count value for a vehicle speed range greater than 100 km / h. Before counting, the first temperature detection data of the temperature sensor is first judged. If the first temperature monitoring data of the sensor temperature is less than the first display data of the current outside temperature of the vehicle, the fifth hot start count value C0 is counted. If the first temperature detection data of the sensor temperature is greater than or equal to the first display data of the current outside temperature of the vehicle, the first hot start count value C1, the second hot start count value C2, the third hot start count value C3, or the fourth hot start count value C4 is used for counting according to different vehicle speed ranges.
[0107] If the speed interval is larger, the calculation result of the counter will meet the conditions faster, so that the delay time will be shorter; similarly, the calculation result of the counter will meet the conditions slower, so that the delay time will be longer; specifically, for different speed intervals, the count value of the counter will be different each time, the larger the speed of the interval, the larger the count value, and the faster the calculation result meets the conditions, so that the delay time will be shorter; and the hot start count threshold will also decrease as the speed interval becomes larger; for example, when the speed interval is greater than 100km / h, C4 will increase by 15 each time, where 15 is the count value, and the corresponding fourth hot start count threshold is set to 20; when the speed interval is greater than 50km / h and less than or equal to 100km / h, C3 will increase by 5 each time, where 5 is the count value, and the corresponding third hot start count threshold is set to 50; when the vehicle speed range is greater than 5 km / h and less than or equal to 50 km / h, C2 is increased by 2 each time, where 2 is the count value, and the corresponding third hot start count threshold is set to 100; when it is not in the vehicle speed range, that is, when the vehicle speed is less than or equal to 5 km / h, C1 is increased by 1 each time, and C2, C3, and C4 are all reduced by 1, to simulate the state that the heat source influence on the temperature sensor begins to increase again at low speed, and it takes a longer time for the temperature sensor to be consistent with the external temperature. The first hot start count threshold is set to 500. When C1 reaches the first hot start count threshold (500), C0, C1, C2, C3, and C4 are reset to zero. Each time the count value of C1, C2, C3, and C4 is increased, a unit time is required. A unit time can be any time value not equal to zero, for example: a unit time can be 1 second, 0.2 seconds, or 2 seconds.
[0108] In the above method, a second delay time is set for the hot start state by counting with a counter, and a corresponding third delay time is set for different vehicle speed ranges according to different vehicle speed ranges, so as to simulate the process that the faster the vehicle speed, the faster the heat dissipation in the cabin, and the temperature sensor can approach the external ambient temperature faster. Moreover, since the time is not calculated directly, the delay time can be adjusted by adjusting the unit time.
[0109] In some embodiments, see Figure 5 , Figure 5 This is a flow chart of steps S501-S502 provided in an embodiment of the present application. Adjusting the first display data of the current outside temperature of the vehicle according to the first temperature detection data of the temperature sensor at the current moment can be achieved through steps S501-S502, which will be explained in combination with each step.
[0110] In step S501, when the vehicle is in the cold start state, the difference between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle is calculated; if the difference is within a first preset interval, the first display data of the current outside temperature of the vehicle is adjusted to the first temperature detection data; if the difference is outside the first preset interval, the adjustment direction of the first display data of the current outside temperature of the vehicle is determined according to the interval segment outside the first preset interval to which the difference belongs, and the first display data of the current outside temperature of the vehicle is adjusted according to the adjustment direction with a preset step size; the adjustment direction includes an increasing direction and a decreasing direction.
[0111] For example, see Figure 10 When Cc is counted to be greater than or equal to 5, the difference between the first temperature detection data of the temperature sensor and the first display data of the current outdoor temperature of the vehicle is calculated. If the difference is within the first preset interval, the first display data of the current outdoor temperature of the vehicle is directly adjusted to the first temperature detection data of the temperature sensor. The first preset interval can be flexibly set. In the embodiment of the present application, the first preset interval is set to [-1, 1]. If it is not within this interval, it is considered that the difference is too large and the first display data of the current outdoor temperature of the vehicle needs to be adjusted. The adjustment method can be that when the first temperature detection data of the temperature sensor is greater than the first display data of the current outdoor temperature of the vehicle, the first display data of the current outdoor temperature of the vehicle is increased by a preset step size, and when the first temperature detection data of the temperature sensor is less than the first display data of the current outdoor temperature of the vehicle, the first display data of the current outdoor temperature of the vehicle is lowered by a preset step size. The preset step size here can be flexibly set. In the embodiment of the present application, the preset step size is set to 1.
[0112] Here, the reason for not directly adjusting the first display data of the vehicle's current outdoor temperature to the first temperature detection data of the temperature sensor is that when the first temperature detection data of the temperature sensor is too different from the first display data of the vehicle's current outdoor temperature (not within the first preset interval), a buffer time needs to be reserved to ensure that the first temperature detection data of the temperature sensor can be consistent with the external ambient temperature. More values are not adjusted at a time, but only a preset step size is adjusted. Therefore, after the adjustment, Cc must be set to zero and the counting must be restarted.
[0113] In step S502, when the vehicle is in the hot start state, if the first temperature detection data of the temperature sensor is less than the first display data of the current outside temperature of the vehicle, and the difference between the first display data of the current outside temperature of the vehicle and the first temperature detection data of the temperature sensor is within the second preset interval, the first display data of the current outside temperature of the vehicle is adjusted in a decreasing adjustment direction with a preset step size; if the first temperature detection data of the temperature sensor is greater than or equal to the first display data of the current outside temperature of the vehicle, and the difference between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle is within the second preset interval, the first display data of the current outside temperature of the vehicle is adjusted in an increasing adjustment direction with a preset step size.
[0114] For example, see Figure 11 After determining that the first temperature detection data of the temperature sensor is less than the first display data of the current outside temperature of the vehicle, start counting C0. When the fifth hot start count value C0 is greater than or equal to the fifth hot start count threshold value (10), it is determined that the difference between the first display data of the current outside temperature of the vehicle and the first temperature detection data of the temperature sensor is in the second preset interval [1, +∞), that is, the difference between the first display data of the current outside temperature of the vehicle and the first temperature detection data of the temperature sensor is greater than 1. The first display data of the current outside temperature of the vehicle is adjusted with a preset step size in a decreasing adjustment direction, that is, the first display data of the current outside temperature of the vehicle is reduced by 1, and then all hot start count values are reset to zero, and the size relationship between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle is determined again, and the above cycle is repeated.
[0115] After determining that the first temperature detection data of the temperature sensor is greater than or equal to the first display data of the current outside temperature of the vehicle, and determining the corresponding hot start count value according to the vehicle speed range and when the corresponding hot start count value reaches the corresponding hot start threshold, determine that the difference between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle is in the second preset range [1, +∞), that is, the difference between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle is greater than 1, adjust the first display data of the current outside temperature of the vehicle with a preset step size in an increasing adjustment direction, that is, add 1 to the first display data of the current outside temperature of the vehicle, then reset all the hot start count values to zero, and restart the determination of the size relationship between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle, and repeat the above cycle.
[0116] However, when the vehicle speed is not within the speed range, that is, when the vehicle speed is less than or equal to 5 km / h (too low a speed will prevent the wind from the grille from taking away excess heat in the cabin, so less than or equal to 5 km / h is not set in the speed range), it is necessary to count C1 and cumulatively subtract C2, C3, and C4. Each time C1 is increased by 1, C2, C3, and C4 are subtracted by 1. When C1 is greater than or equal to 500, all hot start count values are reset to zero, and the relationship between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle is judged again.
[0117] In some embodiments, see Figure 6 , Figure 6 This is a flow chart of steps S601-S602 provided in an embodiment of the present application. Steps S601-S602 may be further executed after determining the startup status of the vehicle, and will be described in conjunction with each step.
[0118] In step S601, the startup information of the vehicle is detected in real time.
[0119] In step S602, if it is determined that the startup state of the vehicle has changed according to the startup information detected in real time, the startup state of the vehicle is updated according to the changed startup state.
[0120] In some embodiments, the cold start state and the hot start state correspond to two start states of the vehicle respectively, but during the driving process of the vehicle, the start information for determining the start state will gradually meet the hot start state. At this time, adjusting the first display data of the current outside temperature of the vehicle based on the cold start state adjustment method is no longer applicable, and it is necessary to adjust the first display data of the current outside temperature of the vehicle based on the hot start state adjustment method. The cold start state and hot start state here do not only refer to the state at "startup", but can also be the state during driving. As long as the start information for determining the start state meets any start state, it is dynamically adjusted to the corresponding start state, and then the first display data of the current outside temperature of the vehicle is adjusted according to the corresponding start state.
[0121] For example, see Figure 9 , Figure 9 This is a second flow chart provided in accordance with an embodiment of the present application. Figure 9 The A in the flow chart represents the Figure 8A in the figure, after waiting for 0.1 seconds, obtains (reads) the first temperature detection data of the temperature sensor and the vehicle speed, and determines whether the sensor temperature is valid. Here, to determine whether the sensor temperature is valid, the working status of the sensor can be obtained according to the vehicle bus. If the working status of the sensor is normal, the sensor temperature is determined to be valid, and then it is determined whether the first display data of the current outdoor temperature of the vehicle is invalid data (such as a null value or display "--"). If the first display data of the current outdoor temperature of the vehicle is valid data and it is in a cold start state, the vehicle's startup information (engine water temperature, engine water temperature status) is obtained at this time, and the startup information is judged. If the engine water temperature is normal and the engine water temperature is greater than 50 degrees, it is determined to be a hot start state; if the engine water temperature is normal and the engine water temperature is less than or equal to 50 degrees, it is determined to be a cold start state; if the engine water temperature is abnormal (the engine water temperature is too high due to lack of water in the water tank or damage to the fan, rupture of the pipe, etc.), it is also determined to be a hot start state.
[0122] The above method detects the vehicle startup information in real time during the vehicle driving process, and can timely adjust the corresponding vehicle startup status, providing an adjustment basis for subsequently adjusting the first display data of the current outside temperature to valid data according to the vehicle startup status.
[0123] In some embodiments, see Figure 7 , Figure 7 This is a flow chart of steps S701-S703 provided in an embodiment of the present application, which will be explained in conjunction with each step.
[0124] In step S701, the working status of the temperature sensor is obtained.
[0125] In some embodiments, the vehicle may also encounter the following situations after starting: temperature sensor failure, malfunction, short circuit, signal transmission failure or other failures cause the first display data of the vehicle's current outside temperature to be invalid data. In these cases, it is necessary to use an invalid sensor temperature processing method and an invalid display temperature processing method to adjust the first display data of the vehicle's current outside temperature respectively. Here, it is necessary to first obtain the working status of the temperature sensor.
[0126] In step S702, when the working state of the temperature sensor is abnormal and a first abnormal time has passed, the first display data of the current outside temperature of the vehicle is cleared.
[0127] For example, see Figure 9 、 Figure 12 , Figure 12 This is a flowchart of the invalid sensor temperature processing provided in an embodiment of the present application. Figure 9In the case where the working state of the temperature sensor is judged to be abnormal, the invalid sensor temperature processing method is entered. The abnormality here can refer to the invalid sensor temperature. Usually, the external temperature sensor is a thermistor. If the thermistor has a short circuit or other fault, the vehicle bus will collect a fault signal. At this time, the working state of the temperature sensor is considered abnormal. Figure 12 , the preset first abnormal count value Cv is accumulated until Cv is greater than 5, and the first display data of the current outside temperature of the vehicle is set to "--".
[0128] In step S703 , when the first display data of the current outside temperature of the vehicle is empty data and after a second abnormal time has passed, the first display data of the current outside temperature of the vehicle is adjusted to the first temperature detection data of the temperature sensor.
[0129] For example, see Figure 9 、 Figure 13 , Figure 13 This is a flowchart of the invalid display temperature processing provided in an embodiment of the present application. Figure 9 In the case of judging that the displayed temperature is "--", the invalid displayed temperature processing method is entered. Figure 13 , the preset second abnormal count value Ci is accumulated until Ci is greater than 2, and the first display data of the current outdoor temperature of the vehicle is set as the first temperature detection data of the temperature sensor.
[0130] The above-mentioned method provides abnormality handling solutions for two different abnormal states, and provides a setting basis for setting the first display data of the current outside temperature of the vehicle in the abnormal state.
[0131] The vehicle-based external temperature detection method provided in the embodiment of the present application can adjust the first display data of the vehicle's external temperature in real time after the vehicle is started, based on the impact of vehicle components in the cabin on the temperature sensor used to detect the external temperature under different vehicle startup states, thereby improving the accuracy of the displayed external temperature.
[0132] Based on the same inventive concept, an embodiment of the present application also provides a device for detecting the vehicle's external temperature, which corresponds to the method for detecting the vehicle's external temperature in the above embodiment. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above method for detecting the vehicle's external temperature, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0133] like Figure 14 As shown, Figure 14 FIG2 is a schematic diagram of a vehicle-to-vehicle external temperature detection device 800 according to an embodiment of the present application. The vehicle-to-vehicle external temperature detection device 800 includes:
[0134] The determination module 801 is configured to determine the startup state of the vehicle after the vehicle is started, and determine first display data of the current outside temperature of the vehicle according to the startup state of the vehicle; wherein the startup state of the vehicle includes a cold start state and a hot start state;
[0135] A setting module 802 is configured to set a delay time corresponding to different starting states of the vehicle;
[0136] The adjustment module 803 is used to adjust the first display data of the current outdoor temperature of the vehicle according to the first temperature detection data of the temperature sensor at the current moment when the waiting time after determining the first display data of the current outdoor temperature of the vehicle meets the delay time.
[0137] Those skilled in the art should understand that Figure 14 The functions implemented by each unit in the vehicle-based detection device 800 for detecting vehicle-exterior temperature can be understood with reference to the aforementioned description of the vehicle-based detection method for detecting vehicle-exterior temperature. Figure 14 The functions of the various units in the vehicle-to-vehicle external temperature detection device 800 shown can be implemented by a program running on a processor, or by a specific logic circuit.
[0138] In a possible implementation, the determining module 801 determines the first display data of the current outside temperature of the vehicle according to the startup state of the vehicle, including:
[0139] When the vehicle is in the cold start state, determining first display data of the current outside temperature of the vehicle according to second temperature detection data of the temperature sensor at the current moment;
[0140] When the vehicle is in the hot start state and the second display data of the vehicle's outside temperature before the vehicle is turned off meets a stability condition, determining the first display data of the vehicle's current outside temperature based on the second display data of the vehicle's outside temperature before the vehicle is turned off;
[0141] When the vehicle is in the hot start state but the second display data of the vehicle's external temperature before the vehicle is turned off does not meet the stability condition, the first display data of the vehicle's current external temperature is determined according to the second temperature detection data of the temperature sensor at the current moment.
[0142] In a possible implementation, the determining module 801 determines the startup state of the vehicle, including:
[0143] Obtaining startup information of the vehicle;
[0144] When the startup information of the vehicle meets the cold start state condition, the vehicle is determined to be in the cold start state; wherein the vehicle meeting the cold start state condition includes: the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is less than or equal to the first temperature comparison threshold; or, the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is less than or equal to the second temperature comparison threshold; the second temperature comparison threshold is greater than the first temperature comparison threshold;
[0145] When the startup information of the vehicle meets the hot start state condition, the vehicle is determined to be in the hot start state; wherein, the vehicle meets the cold start state condition including: the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is greater than the first temperature comparison threshold; or, the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is greater than the second temperature comparison threshold; or, the temperature state of the vehicle component is abnormal.
[0146] In a possible implementation, the setting module 802 sets the delay time corresponding to the different starting states of the vehicle, including:
[0147] When the vehicle is in the cold start state, setting a first delay time corresponding to the cold start state;
[0148] When the vehicle is in the hot start state, if the first temperature detection data of the temperature sensor is less than the first display data of the current outside temperature of the vehicle, a second delay time corresponding to the hot start state is set; if the first temperature detection data of the temperature sensor is greater than or equal to the first display data of the current outside temperature of the vehicle, a third delay time corresponding to the target speed interval is determined based on the target speed interval to which the current driving information of the vehicle belongs; wherein, the greater the speed of the speed interval, the smaller the corresponding third delay time.
[0149] In a possible implementation, the adjusting module 803 adjusts the first display data of the current outside temperature of the vehicle according to the first temperature detection data of the temperature sensor at the current moment, including:
[0150] When the vehicle is in the cold start state, calculating the difference between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle; if the difference is within a first preset interval, adjusting the first display data of the current outside temperature of the vehicle to the first temperature detection data; if the difference is outside the first preset interval, determining an adjustment direction of the first display data of the current outside temperature of the vehicle based on the interval segment outside the first preset interval to which the difference belongs, and adjusting the first display data of the current outside temperature of the vehicle in accordance with the adjustment direction with a preset step size; the adjustment direction includes an increasing direction and a decreasing direction;
[0151] When the vehicle is in the hot start state, if the first temperature detection data of the temperature sensor is less than the first display data of the current outside temperature of the vehicle, and the difference between the first display data of the current outside temperature of the vehicle and the first temperature detection data of the temperature sensor is within a second preset interval, the first display data of the current outside temperature of the vehicle is adjusted in a decreasing adjustment direction with a preset step size; if the first temperature detection data of the temperature sensor is greater than or equal to the first display data of the current outside temperature of the vehicle, and the difference between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle is within the second preset interval, the first display data of the current outside temperature of the vehicle is adjusted in an increasing adjustment direction with a preset step size.
[0152] In a possible implementation, after determining the startup state of the vehicle, the determination module 801 further includes:
[0153] detecting startup information of the vehicle in real time;
[0154] If it is determined that the startup state of the vehicle has changed according to the startup information detected in real time, the startup state of the vehicle is updated according to the changed startup state.
[0155] In a possible implementation, the determining module 801 further includes:
[0156] Obtaining the operating status of the temperature sensor;
[0157] When the working state of the temperature sensor is abnormal and a first abnormal time has passed, the first display data of the current outside temperature of the vehicle is cleared;
[0158] When the first display data of the current outside temperature of the vehicle is empty data and after a second abnormal time has passed, the first display data of the current outside temperature of the vehicle is adjusted to the first temperature detection data of the temperature sensor.
[0159] The above-mentioned detection device based on the vehicle's detection of the vehicle's outside temperature can, after the vehicle is started, adjust the first display data of the vehicle's outside temperature in real time according to the impact of the vehicle components in the cabin on the temperature sensor used to detect the vehicle's outside temperature under different vehicle starting states, thereby improving the accuracy of the displayed vehicle's outside temperature.
[0160] like Figure 15 As shown, Figure 15 This is a schematic diagram of the structure of an electronic device 900 provided in an embodiment of the present application. The electronic device 900 includes:
[0161] A processor 901, a storage medium 902 and a bus 903, wherein the storage medium 902 stores machine-readable instructions executable by the processor 901. When the electronic device 900 is running, the processor 901 communicates with the storage medium 902 via the bus 903, and the processor 901 executes the machine-readable instructions to perform the steps of the vehicle-based method for detecting the vehicle's external temperature as described in the embodiment of the present application.
[0162] In actual application, the various components in the electronic device 900 are coupled together via the bus 903. It is understood that the bus 903 is used to realize the connection and communication between these components. In addition to the data bus, the bus 903 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 15 Various buses are labeled as bus 903.
[0163] After the vehicle is started, the above-mentioned electronic device can adjust the first display data of the vehicle's outdoor temperature in real time according to the impact of vehicle components in the cabin on the temperature sensor used to detect the outdoor temperature under different vehicle startup states, thereby improving the accuracy of the displayed outdoor temperature.
[0164] An embodiment of the present application also provides a computer-readable storage medium, which stores executable instructions. When the executable instructions are executed by at least one processor 901, the vehicle-based method for detecting the vehicle's external temperature as described in the embodiment of the present application is implemented.
[0165] In some embodiments, the storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface storage, an optical disc, or a compact disc read-only memory (CD-ROM); it can also be various devices including one or any combination of the above memories.
[0166] In some embodiments, executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0167] As an example, executable instructions may, but do not necessarily, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (for example, files storing one or more modules, subroutines, or code portions).
[0168] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0169] The above-mentioned computer-readable storage medium can adjust the first display data of the vehicle's outdoor temperature in real time after the vehicle is started, according to the impact of vehicle components in the cabin on the temperature sensor used to detect the outdoor temperature under different vehicle startup states, thereby improving the accuracy of the displayed outdoor temperature.
[0170] In the several embodiments provided in this application, it should be understood that the disclosed methods and electronic devices can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0171] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0172] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0173] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, platform server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0174] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for detecting the temperature outside a vehicle based on a vehicle, characterized in that: The vehicle cabin includes a temperature sensor, and the vehicle cabin also includes a vehicle component that affects the temperature detection data of the temperature sensor; the detection method includes the following steps: After the vehicle is started, determining the start-up state of the vehicle, and determining first display data of the current outside temperature of the vehicle according to the start-up state of the vehicle; wherein the start-up state of the vehicle includes a cold start state and a hot start state; According to different starting states of the vehicle, setting delay times corresponding to the different starting states; When the waiting time after determining the first display data of the current outside temperature of the vehicle meets the delay time, adjusting the first display data of the current outside temperature of the vehicle according to the first temperature detection data of the temperature sensor at the current moment; Determining the startup state of the vehicle includes: Obtaining startup information of the vehicle; When the startup information of the vehicle meets the cold start state condition, the vehicle is determined to be in the cold start state; wherein the vehicle meeting the cold start state condition includes: the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is less than or equal to the first temperature comparison threshold; or, the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is less than or equal to the second temperature comparison threshold; the second temperature comparison threshold is greater than the first temperature comparison threshold; When the startup information of the vehicle meets the hot start state condition, the vehicle is determined to be in the hot start state; wherein the vehicle meeting the cold start state condition includes: the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is greater than the first temperature comparison threshold; or, the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is greater than the second temperature comparison threshold; or, the temperature state of the vehicle component is abnormal; The step of setting a delay time corresponding to different starting states of the vehicle includes: When the vehicle is in the cold start state, setting a first delay time corresponding to the cold start state; When the vehicle is in the hot start state, if the first temperature detection data of the temperature sensor is less than the first display data of the current outside temperature of the vehicle, a second delay time corresponding to the hot start state is set; if the first temperature detection data of the temperature sensor is greater than or equal to the first display data of the current outside temperature of the vehicle, a third delay time corresponding to the target speed interval is determined based on the target speed interval to which the current driving information of the vehicle belongs; wherein, the greater the speed of the speed interval, the smaller the corresponding third delay time.
2. The method according to claim 1, characterized in that The first display data of the current outside temperature of the vehicle is determined according to the startup state of the vehicle, including: When the vehicle is in the cold start state, determining first display data of the current outside temperature of the vehicle according to second temperature detection data of the temperature sensor at the current moment; When the vehicle is in the hot start state and the second display data of the vehicle's outside temperature before the vehicle is turned off meets a stability condition, determining the first display data of the vehicle's current outside temperature based on the second display data of the vehicle's outside temperature before the vehicle is turned off; When the vehicle is in the hot start state but the second display data of the vehicle's external temperature before the vehicle is turned off does not meet the stability condition, the first display data of the vehicle's current external temperature is determined according to the second temperature detection data of the temperature sensor at the current moment.
3. The method according to claim 1, characterized in that The adjusting the first display data of the current outside temperature of the vehicle according to the first temperature detection data of the temperature sensor at the current moment includes: When the vehicle is in the cold start state, calculating the difference between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle; if the difference is within a first preset interval, adjusting the first display data of the current outside temperature of the vehicle to the first temperature detection data; if the difference is outside the first preset interval, determining an adjustment direction of the first display data of the current outside temperature of the vehicle based on the interval segment outside the first preset interval to which the difference belongs, and adjusting the first display data of the current outside temperature of the vehicle in accordance with the adjustment direction with a preset step size; the adjustment direction includes an increasing direction and a decreasing direction; When the vehicle is in the hot start state, if the first temperature detection data of the temperature sensor is less than the first display data of the current outside temperature of the vehicle, and the difference between the first display data of the current outside temperature of the vehicle and the first temperature detection data of the temperature sensor is within a second preset interval, the first display data of the current outside temperature of the vehicle is adjusted in a decreasing adjustment direction with a preset step size; if the first temperature detection data of the temperature sensor is greater than or equal to the first display data of the current outside temperature of the vehicle, and the difference between the first temperature detection data of the temperature sensor and the first display data of the current outside temperature of the vehicle is within the second preset interval, the first display data of the current outside temperature of the vehicle is adjusted in an increasing adjustment direction with a preset step size.
4. The method according to claim 1, wherein After determining the start-up state of the vehicle, the method further includes: detecting startup information of the vehicle in real time; If it is determined that the startup state of the vehicle has changed according to the startup information detected in real time, the startup state of the vehicle is updated according to the changed startup state.
5. The method according to claim 1, wherein The method further comprises: Obtaining the operating status of the temperature sensor; When the working state of the temperature sensor is abnormal and a first abnormal time has passed, the first display data of the current outside temperature of the vehicle is cleared; When the first display data of the current outside temperature of the vehicle is empty data and after a second abnormal time has passed, the first display data of the current outside temperature of the vehicle is adjusted to the first temperature detection data of the temperature sensor.
6. A device for detecting the temperature outside the vehicle based on the vehicle, characterized in that: The vehicle cabin includes a temperature sensor, and the vehicle cabin also includes a vehicle component that affects the temperature detection data of the temperature sensor; the detection device includes: A determination module, for determining the startup state of the vehicle after the vehicle is started, and determining first display data of the current outside temperature of the vehicle according to the startup state of the vehicle; wherein the startup state of the vehicle includes a cold start state and a hot start state; determining the startup state of the vehicle includes: obtaining startup information of the vehicle; when the startup information of the vehicle meets the cold start state condition, determining that the vehicle is in a cold start state; wherein the vehicle meets the cold start state condition including: the temperature state of the vehicle device is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold, and the difference between the current temperature data of the vehicle device and the third temperature detection data of the temperature sensor is less than or equal to the first temperature comparison threshold; or, the temperature state of the vehicle device is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold, and the vehicle device The difference between the current temperature data and the third temperature detection data of the temperature sensor is less than or equal to the second temperature comparison threshold; the second temperature comparison threshold is greater than the first temperature comparison threshold; when the startup information of the vehicle meets the hot start state condition, the vehicle is determined to be in the hot start state; wherein, the vehicle meeting the cold start state condition includes: the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is less than or equal to the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is greater than the first temperature comparison threshold; or, the temperature state of the vehicle component is normal, the third temperature detection data of the temperature sensor is greater than the first temperature threshold, and the difference between the current temperature data of the vehicle component and the third temperature detection data of the temperature sensor is greater than the second temperature comparison threshold; or, the temperature state of the vehicle component is abnormal; a setting module, configured to set delay times corresponding to different starting states of the vehicle; the setting of delay times corresponding to different starting states of the vehicle comprising: when the vehicle is in the cold start state, setting a first delay time corresponding to the cold start state; when the vehicle is in the hot start state, if the first temperature detection data of the temperature sensor is less than the first display data of the current outside temperature of the vehicle, setting a second delay time corresponding to the hot start state; if the first temperature detection data of the temperature sensor is greater than or equal to the first display data of the current outside temperature of the vehicle, determining a third delay time corresponding to the target speed interval to which the current driving information of the vehicle belongs; wherein, the greater the speed of the speed interval, the smaller the corresponding third delay time; The adjustment module is used to adjust the first display data of the current outdoor temperature of the vehicle according to the first temperature detection data of the temperature sensor at the current moment when the waiting time after determining the first display data of the current outdoor temperature of the vehicle meets the delay time.
7. An electronic device, characterized in that: include: A processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the vehicle-based vehicle external temperature detection method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the vehicle-based method for detecting the vehicle's external temperature are executed as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Out-temperature acquisition and display method
CN103625396A
Vehicle-mounted external temperature measuring and correction system
CN109839206A