Method and device for processing vehicle exterior environment temperature signal, vehicle and storage medium

By acquiring and smoothing the external ambient temperature signal, the problem of assignment errors caused by inconsistent signal transmission cycles and times is solved, ensuring the accuracy and stability of the vehicle control system.

CN117841870BActive Publication Date: 2026-06-26CHONGQING CHANGAN AUTOMOBILE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHONGQING CHANGAN AUTOMOBILE CO LTD
Filing Date
2024-01-26
Publication Date
2026-06-26

Smart Images

  • Figure CN117841870B_ABST
    Figure CN117841870B_ABST
Patent Text Reader

Abstract

The application relates to the field of automobile control technology and discloses a processing method and device for an outside environment temperature signal, a vehicle and a storage medium, the method comprising the following steps: acquiring a first signal value of the outside environment temperature signal and an indication signal; if the first signal value is valid and the validity of the environment temperature signal is false, taking the first signal value as a current outside environment temperature value; if the first signal value is valid and the validity of the outside environment temperature signal is true, acquiring a difference value between the first signal value of the outside environment temperature signal and a historical outside environment temperature value; and if the difference value is less than a first preset threshold value, determining the current outside environment temperature value according to the first signal value and the historical outside environment temperature value. The application can avoid signal assignment errors caused by the inconsistency between the sending period and time of the outside environment temperature signal and the corresponding indication signal, make the logic operation of the initial state accurate, perform smoothing processing on the assigned signal, and avoid abnormal jumps in the overall logic system calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive control technology, specifically to a method, device, vehicle, and storage medium for processing vehicle external ambient temperature signals. Background Technology

[0002] When transmitting the external ambient temperature signal in the vehicle control system, the external ambient temperature signal has a corresponding validity flag signal, which is used to indicate the validity of the corresponding external ambient temperature signal. However, during the transmission process, there is a possibility that the transmission period and time of the external ambient temperature signal and the validity flag signal are inconsistent. This can lead to incorrect assignment of the external temperature value, which in turn can cause abnormal jumps in the calculation of the overall logic system. Summary of the Invention

[0003] In view of this, the present invention provides a method, device, vehicle, and storage medium for processing vehicle external ambient temperature signals, in order to solve the problem that the transmission period and time of the vehicle external ambient temperature signal and the corresponding validity flag signal are inconsistent during transmission, resulting in incorrect assignment of vehicle external temperature values, and consequently causing abnormal jumps in the calculation of the overall logic system.

[0004] In a first aspect, the present invention provides a method for processing vehicle external ambient temperature signals, the method comprising:

[0005] Acquire a first signal value of the external ambient temperature signal, and an indication signal for indicating the validity of the external ambient temperature signal;

[0006] If the first signal value of the currently acquired external ambient temperature signal is valid, and the indication signal indicates that the validity of the ambient temperature signal is false, or no indication signal is acquired, the first signal value shall be used as the current external ambient temperature value.

[0007] If the first signal value of the currently acquired external ambient temperature signal is valid, and the indication signal indicates that the validity of the external ambient temperature signal is true, the difference between the first signal value of the external ambient temperature signal and the historical external ambient temperature value is acquired. The historical external ambient temperature value is the previously determined external ambient temperature value.

[0008] If the difference is less than a first preset threshold, the current external ambient temperature value is determined based on the first signal value and the historical external ambient temperature value. The difference between the determined current external ambient temperature value and the historical external ambient temperature value is the first difference value, and the difference between the first signal value and the historical external ambient temperature value is the second difference value. The first difference value is less than or equal to the second difference value.

[0009] In one optional implementation, determining the current external ambient temperature value based on a first signal value and historical external ambient temperature values ​​includes:

[0010] Determine the relationship between historical vehicle external ambient temperature values ​​and the first signal value;

[0011] If the first signal value is less than the historical ambient temperature value outside the vehicle, the first signal value is offset and corrected to obtain the second signal value;

[0012] Determine the magnitude relationship between the second signal value and the first signal value;

[0013] If the second signal value is greater than the first signal value, the second signal value will be used as the current outside temperature value.

[0014] In one optional implementation, after determining the magnitude relationship between the second signal value and the first signal value, the method further includes:

[0015] If the second signal value is less than the first signal value, the first signal value will be used as the current outside temperature value.

[0016] In one optional implementation, determining the current external ambient temperature value based on a first signal value and historical external ambient temperature values ​​includes:

[0017] Determine the relationship between historical vehicle external temperature values ​​and the first signal value;

[0018] If the first signal value is greater than the historical ambient temperature value outside the vehicle, the first signal value is offset and corrected to obtain the third signal value;

[0019] Determine the magnitude relationship between the third signal value and the first signal value;

[0020] If the third signal value is less than the first signal value, the third signal value will be used as the current outside temperature value.

[0021] In one optional implementation, after determining the magnitude relationship between the third signal value and the first signal value, the method further includes:

[0022] If the third signal value is greater than the first signal value, the first signal value will be used as the current outside temperature value.

[0023] In one optional implementation, after acquiring a first signal value of the external ambient temperature signal and an indication signal for indicating the validity of the external ambient temperature signal, the method further includes:

[0024] If the first signal value of the currently acquired external ambient temperature signal is invalid, and the indication signal indicates that the validity of the ambient temperature signal is false, then the current external ambient temperature value is determined to be invalid.

[0025] If the first signal value of the currently acquired external ambient temperature signal is invalid, and the indication signal indicates that the validity of the ambient temperature signal is true, then the current external ambient temperature value is determined to be invalid.

[0026] If the first signal value of the currently acquired external ambient temperature signal is invalid and no indication signal is acquired, the current external ambient temperature value is determined to be invalid.

[0027] In one optional implementation, after obtaining the difference between a first signal value of the vehicle exterior ambient temperature signal and a historical vehicle exterior ambient temperature value, the method further includes:

[0028] If the difference is greater than the second preset threshold, the first signal value will be used as the current outside temperature value.

[0029] Secondly, the present invention provides a processing device for vehicle exterior ambient temperature signals, the device comprising:

[0030] The signal acquisition module is used to acquire the first signal value of the external ambient temperature signal and the indication signal for indicating the validity of the external ambient temperature signal.

[0031] The assignment module is used to take the first signal value as the current outside ambient temperature value when the first signal value of the currently acquired outside ambient temperature signal is valid and the indicator signal indicates that the validity of the ambient temperature signal is false, or when no indicator signal is acquired.

[0032] The change judgment module is used to obtain the difference between the first signal value of the currently acquired external ambient temperature signal and the historical external ambient temperature value when the first signal value of the currently acquired external ambient temperature signal is valid and the indication signal indicates that the validity of the external ambient temperature signal is true. The historical external ambient temperature value is the previously determined external ambient temperature value.

[0033] The smoothing module is used to determine the current external ambient temperature value based on the first signal value and the historical external ambient temperature value when the difference is less than the first preset threshold. The difference between the determined current external ambient temperature value and the historical external ambient temperature value is the first difference value, and the difference between the first signal value and the historical external ambient temperature value is the second difference value. The first difference value is less than or equal to the second difference value.

[0034] In one alternative implementation, the smoothing module includes:

[0035] The first judgment unit is used to determine the relationship between the historical external ambient temperature value and the first signal value;

[0036] The first offset correction unit is used to offset the first signal value to obtain the second signal value when the first signal value is less than the historical outside ambient temperature value.

[0037] The second judgment unit is used to determine the magnitude relationship between the second signal value and the first signal value;

[0038] The first determining unit is used to take the second signal value as the current outside ambient temperature value when the second signal value is greater than the first signal value.

[0039] In one optional implementation, the smoothing module further includes:

[0040] The second determining unit is used to take the first signal value as the current outside ambient temperature value when the second signal value is less than the first signal value.

[0041] In one alternative implementation, the smoothing module includes:

[0042] The third judgment unit is used to determine the relationship between the historical external ambient temperature value and the first signal value;

[0043] The second offset correction unit is used to offset the first signal value to obtain the third signal value when the first signal value is greater than the historical outside ambient temperature value.

[0044] The fourth judgment unit is used to determine the magnitude relationship between the third signal value and the first signal value;

[0045] The third determining unit is used to take the third signal value as the current outside ambient temperature value when the third signal value is less than the first signal value.

[0046] In one optional implementation, the smoothing module further includes:

[0047] The fourth determining unit is used to take the first signal value as the current outside ambient temperature value when the third signal value is greater than the first signal value.

[0048] In one alternative embodiment, the device further includes at least one of the following:

[0049] The first assignment module is used to determine that the current external ambient temperature value is invalid when the first signal value of the currently acquired external ambient temperature signal is invalid and the indication signal indicates that the validity of the ambient temperature signal is false.

[0050] The second assignment module is used to determine that the current external ambient temperature value is invalid when the first signal value of the currently acquired external ambient temperature signal is invalid and the indication signal indicates that the validity of the ambient temperature signal is true.

[0051] The third assignment module is used to determine that the current external ambient temperature value is invalid if the first signal value of the currently acquired external ambient temperature signal is invalid and no indication signal is acquired.

[0052] In one alternative embodiment, the device further includes:

[0053] The fourth assignment module is used to take the first signal value as the current outside temperature value when the difference is greater than the second preset threshold.

[0054] Thirdly, the present invention provides a vehicle, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the processing method for the vehicle exterior temperature signal of the first aspect or any corresponding embodiment described above.

[0055] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the method for processing vehicle exterior ambient temperature signals according to the first aspect or any corresponding embodiment thereof.

[0056] The beneficial effects of this invention are:

[0057] The method, apparatus, vehicle, and storage medium for processing vehicle external ambient temperature signals provided by this invention can avoid signal assignment errors caused by inconsistencies in the transmission period and timing of the vehicle external ambient temperature signal and the corresponding indicator signal, ensuring accurate logic operation in the initial state. At the same time, the assigned signal is smoothed for subsequent calculations, preventing abnormal jumps in the overall logic system calculation.

[0058] In this embodiment, the external ambient temperature value is smoothed by offset correction, and the offset correction result is compared with the original signal value. If the offset correction result is closer to the historical external ambient temperature value, then the offset correction result is used as the current external ambient temperature value; otherwise, the original signal value is used as the current external ambient temperature value. This can avoid abnormal jumps in the calculation of the overall logic system. Attached Figure Description

[0059] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0060] Figure 1This is a flowchart illustrating a method for processing vehicle exterior ambient temperature signals according to an embodiment of the present invention.

[0061] Figure 2 This is a flowchart illustrating another method for processing vehicle external ambient temperature signals according to an embodiment of the present invention.

[0062] Figure 3 This is a flowchart illustrating another method for processing vehicle external ambient temperature signals according to an embodiment of the present invention.

[0063] Figure 4 This is a structural block diagram of a device for processing vehicle exterior ambient temperature signals according to an embodiment of the present invention;

[0064] Figure 5 This is a schematic diagram of the hardware structure of a vehicle according to an embodiment of the present invention. Detailed Implementation

[0065] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0066] This invention provides a method for processing vehicle external ambient temperature signals and a logic for assigning vehicle external ambient temperature values. This method avoids signal assignment errors caused by inconsistencies in the transmission cycles and times of the vehicle external ambient temperature signals and corresponding indicator signals, ensuring accurate logic operation in the initial state. It also smooths the assigned signals, making them suitable for subsequent calculations and preventing abnormal jumps in the overall logic system calculations.

[0067] According to an embodiment of the present invention, a method for processing vehicle external ambient temperature signals is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of executable computer instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0068] This embodiment provides a method for processing vehicle external ambient temperature signals, which can be used in vehicle controllers, such as domain controllers. Figure 1 This is a flowchart of a method for processing vehicle exterior ambient temperature signals according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:

[0069] Step S101: Obtain the first signal value of the external ambient temperature signal and the indication signal used to indicate the validity of the external ambient temperature signal.

[0070] Specifically, if the indication signal is not received, or if the received indication signal indicates that the validity of the external ambient temperature signal is false, then the corresponding validity flag is 0; if the received indication signal indicates that the validity of the external ambient temperature signal is true, then the corresponding validity flag is 1.

[0071] In step S102, if the first signal value of the currently acquired external ambient temperature signal is valid, and the indication signal indicates that the validity of the ambient temperature signal is false, or if no indication signal is acquired, the first signal value is taken as the current external ambient temperature value.

[0072] The first signal value of the currently acquired external ambient temperature signal is valid, but the indication signal indicating the validity of the ambient temperature signal is false, or no indication signal is acquired. These two situations are mainly due to the inconsistency in the transmission period and transmission time of the external ambient temperature signal and the corresponding indication signal. For example, when a domain controller or vehicle controller sends the external ambient temperature signal and the corresponding indication signal to another domain controller, the transmission period and transmission time of these two signals are inconsistent.

[0073] In this embodiment, for both situations, the first signal value of the external ambient temperature signal is used to assign a value to the external ambient temperature. This can effectively avoid signal assignment errors caused by the inconsistency between the transmission period and transmission time of the external ambient temperature signal and the corresponding indication signal, thus ensuring accurate logic operation in the initial state.

[0074] Step S103: If the first signal value of the currently acquired external ambient temperature signal is valid and the indication signal indicates that the validity of the external ambient temperature signal is true, the difference between the first signal value of the external ambient temperature signal and the historical external ambient temperature value is obtained. The historical external ambient temperature value is the previously determined external ambient temperature value.

[0075] The difference here refers to the absolute value, or in other words, if it is negative, the absolute value is taken.

[0076] Step S104: If the difference is less than a first preset threshold, determine the current external ambient temperature value based on the first signal value and historical external ambient temperature values. The difference between the determined current external ambient temperature value and historical external ambient temperature values ​​is the first difference, and the difference between the first signal value and historical external ambient temperature values ​​is the second difference. The first difference is less than or equal to the second difference. If the first signal value of the currently acquired external ambient temperature signal is valid, an indication signal indicates that the external ambient temperature signal is valid. Furthermore, if the difference between the first signal value of the external ambient temperature signal and historical external ambient temperature values ​​is less than the first preset threshold, it indicates that the transmission of the external ambient temperature signal value has returned to normal.

[0077] In this embodiment, smoothing the external ambient temperature value can prevent abnormal jumps in the overall logic system calculations. Generally, the inconsistency in the transmission period and transmission time of the external ambient temperature signal and the corresponding indication signal usually occurs in the initial stage of vehicle controller power-on and does not last for a long time. Therefore, even if the currently assigned external ambient temperature value deviates from the actual value, it can be gradually transitioned to the actual value through smoothing when the transmission of the external ambient temperature signal value is normal.

[0078] In summary, this embodiment avoids signal assignment errors caused by inconsistencies in the transmission periods and times of the external ambient temperature signal and the corresponding indicator signal, ensuring accurate logic operation in the initial state. Furthermore, the assigned signals are smoothed for subsequent calculations, preventing abnormal jumps in the overall logic system calculations. The external ambient temperature signal provided in this embodiment is applicable to hybrid vehicles.

[0079] Furthermore, the current external ambient temperature value finally determined in this embodiment of the invention can be used for various vehicle control processes, such as air conditioning temperature control, engine control, etc. In other words, the finally determined current external ambient temperature value will subsequently be incorporated into the main logic framework calculation of the vehicle (which may be a hybrid) control system, applicable to the application and calculation of various operating conditions of the domain controller.

[0080] This embodiment provides a method for processing vehicle external ambient temperature signals, which can be used in vehicle controllers, such as domain controllers. Figure 2 This is a flowchart of a method for processing vehicle exterior ambient temperature signals according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:

[0081] Step S201: Obtain a first signal value of the external ambient temperature signal and an indication signal for indicating the validity of the external ambient temperature signal.

[0082] Specifically, if the indication signal is not received, or if the received indication signal indicates that the validity of the external ambient temperature signal is false, then the corresponding validity flag is 0; if the received indication signal indicates that the validity of the external ambient temperature signal is true, then the corresponding validity flag is 1.

[0083] In step S202, if the first signal value of the currently acquired external ambient temperature signal is valid, and the indication signal indicates that the validity of the ambient temperature signal is false, or if no indication signal is acquired, the first signal value is taken as the current external ambient temperature value.

[0084] The first signal value of the currently acquired external ambient temperature signal is valid, but the indication signal indicating the validity of the ambient temperature signal is false, or no indication signal is acquired. These two situations are mainly due to the inconsistency in the transmission period and transmission time of the external ambient temperature signal and the corresponding indication signal. For example, when one domain controller sends the external ambient temperature signal and the corresponding indication signal to another domain controller, the transmission period and transmission time of the two signals sent by the sending end are inconsistent.

[0085] In this embodiment, for both situations, the first signal value of the external ambient temperature signal is used to assign a value to the external ambient temperature. This can effectively avoid signal assignment errors caused by the inconsistency between the transmission period and transmission time of the external ambient temperature signal and the corresponding indication signal, thus ensuring accurate logic operation in the initial state.

[0086] Step S203: If the first signal value of the currently acquired external ambient temperature signal is valid and the indication signal indicates that the validity of the external ambient temperature signal is true, the difference between the first signal value of the external ambient temperature signal and the historical external ambient temperature value is obtained. The historical external ambient temperature value is the previously determined external ambient temperature value.

[0087] Step S204: If the difference is less than a first preset threshold, determine the current external ambient temperature value based on the first signal value and the historical external ambient temperature value. The difference between the determined current external ambient temperature value and the historical external ambient temperature value is the first difference value, and the difference between the first signal value and the historical external ambient temperature value is the second difference value. The first difference value is less than or equal to the second difference value.

[0088] In some optional embodiments, step S204, namely determining the current external ambient temperature value based on the first signal value and historical external ambient temperature values, includes:

[0089] Step S2041: Determine the relationship between the historical external ambient temperature value and the first signal value;

[0090] Step S2042: If the first signal value is less than the historical outside ambient temperature value, the first signal value is offset and corrected to obtain the second signal value;

[0091] Specifically, offset correction can be performed in the following ways:

[0092] f(t)′=f(t)+K1*(|f(t)|-|f(t-1)|)

[0093] Where f(t)′ is the second signal value, f(t) is the first signal value, f(t-1) is the historical ambient temperature value outside the vehicle, and K1 is a parameter whose value can be determined according to actual needs.

[0094] Of course, offset correction can also be performed in other ways, such as:

[0095] f(t) ′ =f(t)+K11*|f(t)|-K12*|f(t-1)|

[0096] Among them, K11 and K12 can be determined according to actual needs.

[0097] Step S2043: Determine the magnitude relationship between the second signal value and the first signal value;

[0098] Step S2044: If the second signal value is greater than the first signal value, the second signal value is used as the current outside ambient temperature value.

[0099] In this embodiment, the external ambient temperature value is smoothed by offset correction, and the offset correction result is compared with the original signal value. If the offset correction result is closer to the historical external ambient temperature value, then the offset correction result is used as the current external ambient temperature value, which can avoid abnormal jumps in the calculation of the overall logic system.

[0100] In addition, after step S2043, that is, after determining the magnitude relationship between the second signal value and the first signal value, the method further includes:

[0101] Step S2045: If the second signal value is less than the first signal value, the first signal value is taken as the current outside ambient temperature value.

[0102] In this embodiment, the external ambient temperature value is smoothed by offset correction, and the result of offset correction is compared with the original signal value. If the original signal value is closer to the historical external ambient temperature value, then the signal value is used as the current external ambient temperature value, which can avoid abnormal jumps in the calculation of the overall logic system.

[0103] In some alternative embodiments, step S204, namely determining the current external ambient temperature value based on the first signal value and historical external ambient temperature values, includes:

[0104] Step S204a: Determine the relationship between the historical external ambient temperature value and the first signal value;

[0105] Step S204b: If the first signal value is greater than the historical outside ambient temperature value, the first signal value is offset and corrected to obtain the third signal value;

[0106] Specifically, offset correction can be performed in the following ways:

[0107] f(t)″=f(t)+K2*(|f(t)|-|f(t-1)|)

[0108] Where f(t)″ is the third signal value, f(t) is the first signal value, f(t-1) is the historical ambient temperature value outside the vehicle, and K2 is a parameter whose value can be determined according to actual needs.

[0109] Step S204c: Determine the magnitude relationship between the third signal value and the first signal value;

[0110] In step S204d, if the third signal value is less than the first signal value, the third signal value is used as the current outside ambient temperature value.

[0111] In this embodiment, the external ambient temperature value is smoothed by offset correction, and the offset correction result is compared with the original signal value. If the offset correction result is closer to the historical external ambient temperature value, then the offset correction result is used as the current external ambient temperature value, which can avoid abnormal jumps in the calculation of the overall logic system.

[0112] In addition, after step S204c, that is, after determining the magnitude relationship between the third signal value and the first signal value, the method further includes:

[0113] If the third signal value is greater than the first signal value, the first signal value will be used as the current outside temperature value.

[0114] In this embodiment, the external ambient temperature value is smoothed by offset correction, and the result of offset correction is compared with the original signal value. If the original signal value is closer to the historical external ambient temperature value, then the signal value is used as the current external ambient temperature value, which can avoid abnormal jumps in the calculation of the overall logic system.

[0115] In some optional embodiments, after acquiring a first signal value of the external ambient temperature signal and an indication signal for indicating the validity of the external ambient temperature signal, the method further includes:

[0116] If the first signal value of the currently acquired external ambient temperature signal is invalid, and the indication signal indicates that the validity of the ambient temperature signal is false, then the current external ambient temperature value is determined to be invalid.

[0117] If the first signal value of the currently acquired external ambient temperature signal is invalid, and the indication signal indicates that the validity of the ambient temperature signal is true, then the current external ambient temperature value is determined to be invalid.

[0118] If the first signal value of the currently acquired external ambient temperature signal is invalid and no indication signal is acquired, the current external ambient temperature value is determined to be invalid.

[0119] In this embodiment, since there may be a situation where the transmission period and transmission time of the external ambient temperature signal and the corresponding indication signal are inconsistent, regardless of the indication signal, as long as the first signal value of the external ambient temperature signal is invalid, the current external ambient temperature will be assigned an invalid value.

[0120] In some optional implementations, after obtaining the difference between the first signal value of the external ambient temperature signal and the historical external ambient temperature value, the method further includes:

[0121] If the difference is greater than the second preset threshold, the first signal value is taken as the current outside ambient temperature value. The second preset threshold is greater than or equal to the first preset threshold.

[0122] In this embodiment, if the difference between the first signal value of the currently acquired external ambient temperature signal and the previously determined external ambient temperature value is large, it is determined that there is an abnormal jump in the first signal value of the external ambient temperature signal, and the first signal value of the external ambient temperature signal is directly used as the external ambient temperature value.

[0123] This embodiment provides a method for processing vehicle external ambient temperature signals. Figure 3 This is a flowchart of a method for processing vehicle exterior ambient temperature signals according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps:

[0124] The first step is to begin. When the vehicle is powered on normally and the vehicle controller wakes up, it transmits the external ambient temperature signal and its validity flag on the Controller Area Network (CAN) network. Simultaneously, this signal reaches the domain controller receiver, which then processes the validity and value of the external ambient temperature signal. If the signal is valid (true) but the value is invalid, the invalid value is assigned to signal value D, which represents the external ambient temperature value. If the signal is false but the value is valid, the value is assigned to D. If both the signal and the value are valid, the value is assigned to signal value A. This step effectively prevents signal anomalies caused by inconsistent timing of the external ambient temperature signal and its validity flag during CAN network wake-up.

[0125] The second step involves processing signal value A after it has been assigned a value. Let A = f(t) and perform a conditional check. The difference between the current ambient temperature signal value f(t) and the previous ambient temperature signal value f(t-1) is calculated. If the absolute value of the difference is greater than a certain threshold B, it is determined that there is an abnormal jump in the ambient temperature signal value, and f(t) is directly assigned to the final output ambient temperature value D. If the absolute value of the difference between the current ambient temperature signal value f(t) and the previous ambient temperature signal value f(t-1) is less than a certain threshold C, it is determined that the current ambient temperature signal value is normal, the condition is met, and the next step is executed.

[0126] The third step is to calculate and process the value of f(t). If f(t) is less than f(t-1), then the function M is used for filtering correction. That is, first, the absolute values ​​of the current external ambient temperature signal and the previous external ambient temperature signal are taken, and the difference operation is performed to correct the offset of the current external ambient temperature signal. Finally, the larger value is taken with the current external ambient temperature signal. That is, the function M is as follows:

[0127] M=f(t+1)=max{f(t)+K1*(|f(t)|-|f(t-1)|), f(t)}

[0128] If f(t) is greater than f(t-1), then function N is used for filtering correction. This involves first taking the absolute values ​​of the current ambient temperature signal and the previous ambient temperature signal, performing a difference operation, shifting the current ambient temperature signal value, and finally taking the smaller value between the current ambient temperature signal and the previous value. The function N is as follows:

[0129] N=f(t+1)=min{f(t)+K2*(|f(t)|-|f(t-1)|), f(t)}

[0130] The fourth step is to end the process and output the final processed signal value D for subsequent calculations.

[0131] This embodiment also provides a device for processing vehicle exterior ambient temperature signals. This device is used to implement the above embodiments and preferred embodiments, and details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0132] This embodiment provides a device for processing vehicle external ambient temperature signals, such as... Figure 4 As shown, it includes:

[0133] The signal acquisition module 401 is used to acquire a first signal value of the external ambient temperature signal and an indication signal for indicating the validity of the external ambient temperature signal.

[0134] The assignment module 402 is used to take the first signal value as the current external ambient temperature value when the first signal value of the currently acquired external ambient temperature signal is valid and the indication signal indicates that the validity of the ambient temperature signal is false, or no indication signal is acquired.

[0135] The change judgment module 403 is used to obtain the difference between the first signal value of the current external ambient temperature signal and the historical external ambient temperature value when the first signal value of the currently acquired external ambient temperature signal is valid and the indication signal indicates that the validity of the external ambient temperature signal is true. The historical external ambient temperature value is the previously determined external ambient temperature value.

[0136] The smoothing module 404 is used to determine the current external ambient temperature value based on the first signal value and the historical external ambient temperature value when the difference is less than the first preset threshold. The difference between the determined current external ambient temperature value and the historical external ambient temperature value is the first difference value, and the difference between the first signal value and the historical external ambient temperature value is the second difference value. The first difference value is less than or equal to the second difference value.

[0137] In one alternative implementation, the smoothing module 404 includes:

[0138] The first judgment unit is used to determine the relationship between the historical external ambient temperature value and the first signal value;

[0139] The first offset correction unit is used to offset the first signal value to obtain the second signal value when the first signal value is less than the historical outside ambient temperature value.

[0140] The second judgment unit is used to determine the magnitude relationship between the second signal value and the first signal value;

[0141] The first determining unit is used to take the second signal value as the current outside ambient temperature value when the second signal value is greater than the first signal value.

[0142] In an optional implementation, the smoothing module 404 further includes:

[0143] The second determining unit is used to take the first signal value as the current outside ambient temperature value when the second signal value is less than the first signal value.

[0144] In another alternative implementation, the smoothing module 404 includes:

[0145] The third judgment unit is used to determine the relationship between the historical external ambient temperature value and the first signal value;

[0146] The second offset correction unit is used to offset the first signal value to obtain the third signal value when the first signal value is greater than the historical outside ambient temperature value.

[0147] The fourth judgment unit is used to determine the magnitude relationship between the third signal value and the first signal value;

[0148] The third determining unit is used to take the third signal value as the current outside ambient temperature value when the third signal value is less than the first signal value.

[0149] In an optional implementation, the smoothing module 404 further includes:

[0150] The fourth determining unit is used to take the first signal value as the current outside ambient temperature value when the third signal value is greater than the first signal value.

[0151] In one alternative embodiment, the device further includes at least one of the following:

[0152] The first assignment module is used to determine that the current external ambient temperature value is invalid when the first signal value of the currently acquired external ambient temperature signal is invalid and the indication signal indicates that the validity of the ambient temperature signal is false.

[0153] The second assignment module is used to determine that the current external ambient temperature value is invalid when the first signal value of the currently acquired external ambient temperature signal is invalid and the indication signal indicates that the validity of the ambient temperature signal is true.

[0154] The third assignment module is used to determine that the current external ambient temperature value is invalid if the first signal value of the currently acquired external ambient temperature signal is invalid and no indication signal is acquired.

[0155] In one alternative embodiment, the device further includes:

[0156] The fourth assignment module is used to take the first signal value as the current outside temperature value when the difference is greater than the second preset threshold.

[0157] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0158] In this embodiment, the device for processing the vehicle exterior ambient temperature signal is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0159] This invention also provides a vehicle having the above-described features. Figure 4 The device shown is for processing the ambient temperature signal outside the vehicle.

[0160] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a vehicle provided in an optional embodiment of the present invention, such as... Figure 5 As shown, the vehicle includes one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the vehicle's computer equipment, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). Figure 5 Take a processor 10 as an example.

[0161] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0162] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.

[0163] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the vehicle's computer equipment. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, which can be connected to the vehicle's computer equipment via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0164] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0165] The vehicle also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 40 can be connected via a bus or other means. Figure 5 Taking the example of a connection between China and Israel via a bus.

[0166] Input device 30 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the vehicle's computer equipment, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.

[0167] The vehicle also includes a communication interface for the vehicle’s computer equipment to communicate with other devices or communication networks.

[0168] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0169] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for processing vehicle external ambient temperature signals, characterized in that, The method includes: Acquire a first signal value of the external ambient temperature signal, and an indication signal for indicating the validity of the external ambient temperature signal; If the first signal value of the currently acquired external ambient temperature signal is valid, and the indication signal indicates that the validity of the ambient temperature signal is false, or if the indication signal is not acquired, the first signal value shall be used as the current external ambient temperature value. If the first signal value of the currently acquired external ambient temperature signal is valid, and the indication signal indicates that the validity of the external ambient temperature signal is true, the difference between the first signal value of the external ambient temperature signal and the historical external ambient temperature value is obtained, where the historical external ambient temperature value is the previously determined external ambient temperature value. If the difference is less than a first preset threshold, the current external ambient temperature value is determined based on the first signal value and the historical external ambient temperature value; the difference between the determined current external ambient temperature value and the historical external ambient temperature value is the first difference, and the difference between the first signal value and the historical external ambient temperature value is the second difference, wherein the first difference is less than or equal to the second difference.

2. The method according to claim 1, characterized in that, Determining the current external ambient temperature value based on the first signal value and the historical external ambient temperature value includes: Determine the relationship between the historical vehicle external ambient temperature value and the first signal value; If the first signal value is less than the historical ambient temperature value outside the vehicle, the first signal value is offset and corrected to obtain the second signal value; Determine the magnitude relationship between the second signal value and the first signal value; If the second signal value is greater than the first signal value, the second signal value is taken as the current outside temperature value.

3. The method according to claim 2, characterized in that, After determining the magnitude relationship between the second signal value and the first signal value, the method further includes: If the second signal value is less than the first signal value, the first signal value is taken as the current outside temperature value.

4. The method according to any one of claims 1-3, characterized in that, Determining the current external ambient temperature value based on the first signal value and the historical external ambient temperature value includes: Determine the relationship between the historical vehicle external ambient temperature value and the first signal value; If the first signal value is greater than the historical ambient temperature value outside the vehicle, the first signal value is offset and corrected to obtain the third signal value; Determine the magnitude relationship between the third signal value and the first signal value; If the third signal value is less than the first signal value, the third signal value is taken as the current outside temperature value.

5. The method according to claim 4, characterized in that, After determining the magnitude relationship between the third signal value and the first signal value, the method further includes: If the third signal value is greater than the first signal value, the first signal value is used as the current outside temperature value.

6. The method according to any one of claims 1-3, characterized in that, After acquiring the first signal value of the external ambient temperature signal and the indication signal for indicating the validity of the external ambient temperature signal, the method further includes: If the first signal value of the currently acquired external ambient temperature signal is invalid, and the indication signal indicates that the validity of the ambient temperature signal is false, then the current external ambient temperature value is determined to be invalid. If the first signal value of the currently acquired external ambient temperature signal is invalid, and the indication signal indicates that the validity of the ambient temperature signal is true, then the current external ambient temperature value is determined to be invalid. If the first signal value of the currently acquired external ambient temperature signal is invalid, and the indication signal is not acquired, the current external ambient temperature value is determined to be invalid.

7. The method according to any one of claims 1-3, characterized in that, After obtaining the difference between the first signal value of the vehicle exterior ambient temperature signal and the historical vehicle exterior ambient temperature value, the method further includes: If the difference is greater than the second preset threshold, the first signal value is used as the current outside temperature value.

8. A device for processing vehicle external ambient temperature signals, characterized in that, The device includes: The signal acquisition module is used to acquire a first signal value of the external ambient temperature signal and an indication signal for indicating the validity of the external ambient temperature signal. The assignment module is used to take the first signal value as the current external ambient temperature value when the first signal value of the currently acquired external ambient temperature signal is valid, and the indication signal indicates that the validity of the ambient temperature signal is false, or the indication signal is not acquired. The change judgment module is used to obtain the difference between the first signal value of the currently acquired external ambient temperature signal and the historical external ambient temperature value when the first signal value of the currently acquired external ambient temperature signal is valid and the indication signal indicates that the validity of the external ambient temperature signal is true. The historical external ambient temperature value is the previously determined external ambient temperature value. A smoothing module is used to determine the current external ambient temperature value based on the first signal value and the historical external ambient temperature value when the difference is less than a first preset threshold. The difference between the determined current external ambient temperature value and the historical external ambient temperature value is a first difference, and the difference between the first signal value and the historical external ambient temperature value is a second difference. The first difference is less than or equal to the second difference.

9. The apparatus according to claim 8, characterized in that, The smoothing module includes: The first judgment unit is used to judge the magnitude relationship between the historical vehicle external ambient temperature value and the first signal value; The first offset correction unit is used to offset the first signal value to obtain the second signal value when the first signal value is less than the historical outside temperature value. The second judgment unit is used to determine the magnitude relationship between the second signal value and the first signal value; The first determining unit is configured to use the second signal value as the current outside temperature value when the second signal value is greater than the first signal value.

10. The apparatus according to claim 9, characterized in that, The smoothing module further includes: The second determining unit is configured to use the first signal value as the current outside temperature value when the second signal value is less than the first signal value.

11. The apparatus according to any one of claims 8-10, characterized in that, The smoothing module includes: The third judgment unit is used to judge the magnitude relationship between the historical vehicle external ambient temperature value and the first signal value; The second offset correction unit is used to offset the first signal value to obtain a third signal value when the first signal value is greater than the historical outside temperature value. The fourth judgment unit is used to judge the magnitude relationship between the third signal value and the first signal value; The third determining unit is configured to use the third signal value as the current external ambient temperature value when the third signal value is less than the first signal value.

12. The apparatus according to claim 11, characterized in that, The smoothing module further includes: The fourth determining unit is configured to, when the third signal value is greater than the first signal value, use the first signal value as the current external ambient temperature value.

13. The apparatus according to any one of claims 8-10, characterized in that, It also includes at least one of the following: The first assignment module is used to determine that the current external ambient temperature value is invalid when the first signal value of the currently acquired external ambient temperature signal is invalid and the indication signal indicates that the validity of the ambient temperature signal is false. The second assignment module is used to determine that the current external ambient temperature value is invalid when the first signal value of the currently acquired external ambient temperature signal is invalid and the indication signal indicates that the validity of the ambient temperature signal is true. The third assignment module is used to determine that the current external ambient temperature value is invalid when the first signal value of the currently acquired external ambient temperature signal is invalid and the indication signal is not acquired.

14. The apparatus according to any one of claims 8-10, characterized in that, Also includes: The fourth assignment module is used to take the first signal value as the current outside temperature value when the difference is greater than the second preset threshold.

15. A vehicle, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the method for processing the vehicle exterior ambient temperature signal according to any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the method for processing the vehicle exterior ambient temperature signal according to any one of claims 1 to 7.