Temperature control method and device, equipment and medium of vehicle refrigerator
Patent Information
- Application Number
- CN202611460878.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-20
- Publication Date
- 2026-11-03
AI Technical Summary
Existing vehicle refrigerators require users to manually select cooling or heating modes, and cannot automatically switch according to the temperature inside the refrigerator, which is inconvenient to use and poses safety hazards.
By obtaining the difference between the internal temperature of the cabinet and the preset target temperature, the working mode is automatically determined using preset positive and negative thresholds, and the temperature adjustment components are driven to perform corresponding actions based on the temperature compensation parameter mapping table, thereby realizing automatic switching between cooling and heating.
It can automatically switch between cooling and heating based on temperature changes without requiring manual operation from the user, meeting the needs for convenient and timely temperature control in vehicle scenarios, and improving control accuracy and stability.
Smart Images

Figure CN123028437A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle refrigerator technology, and in particular to a temperature control method, device, equipment, and medium for a vehicle refrigerator. Background Technology
[0002] Car refrigerators are widely used in scenarios such as car travel and outdoor camping, where users need both cooling and heat preservation. Current car refrigerators typically use separate cooling and heating units to achieve these functions respectively.
[0003] In practical use, users need to manually select either cooling or heating mode based on their current needs. When the usage scenario changes, users need to manually turn off the current mode, select another mode, and adjust the settings. This method relies on the user's subjective judgment and active operation, and the switching time often lags behind changes in actual needs. Furthermore, manual operation poses safety hazards while driving, resulting in a poor user experience.
[0004] In summary, the current operating modes of in-vehicle refrigerators rely on manual selection by the user and cannot automatically switch between cooling and heating based on the actual temperature inside the refrigerator, making it difficult to meet the needs for convenient and timely temperature control in in-vehicle scenarios. Summary of the Invention
[0005] The purpose of this application is to solve the above-mentioned problems by providing a temperature control method, device, equipment, and medium for a vehicle-mounted refrigerator.
[0006] According to one aspect of this application, a method for controlling the temperature of a vehicle-mounted refrigerator is provided, comprising the following steps: The internal temperature of the enclosure is acquired by a first temperature sensor located inside the enclosure, and the temperature difference between the preset target temperature and the internal temperature of the enclosure is determined. The temperature difference is compared with a preset positive threshold and / or negative threshold, and the current working mode is determined based on the comparison result. The working mode includes a heating mode and a cooling mode. Based on a preset temperature compensation parameter mapping table, obtain the temperature compensation parameter group corresponding to the preset target temperature; Based on the temperature compensation parameter set, the temperature adjustment component corresponding to the current working mode is driven to perform temperature adjustment actions.
[0007] According to another aspect of this application, a temperature control device for a vehicle refrigerator is provided, comprising: The temperature difference acquisition module is used to acquire the internal temperature of the box collected by the first temperature sensor set inside the box, and to determine the temperature difference between the preset target temperature and the internal temperature of the box. The mode determination module is used to compare the temperature difference with a preset positive threshold and / or negative threshold, and determine the current working mode based on the comparison result. The working mode includes a heating mode and a cooling mode. The compensation query module is used to obtain a set of temperature compensation parameters corresponding to the preset target temperature based on a preset temperature compensation parameter mapping table. The drive adjustment module is used to drive the temperature adjustment component corresponding to the current working mode to perform temperature adjustment actions according to the temperature compensation parameter group.
[0008] According to another aspect of this application, an electronic device is provided, including a central processing unit and a memory, wherein the central processing unit is configured to invoke and run a computer program stored in the memory to perform the steps of the temperature control method for a vehicle refrigerator described in this application.
[0009] According to another aspect of this application, a non-volatile readable storage medium is provided, which stores a computer program implemented according to the temperature control method of the vehicle refrigerator in the form of computer-readable instructions, wherein the computer program, when invoked by a computer, executes the steps included in the method.
[0010] Compared to existing technologies, this application automatically determines whether heating or cooling should be performed by comparing the temperature difference between the target set temperature and the internal temperature of the enclosure with a preset positive threshold and / or negative threshold. Based on the temperature compensation parameter mapping table, it obtains the control parameters corresponding to the set temperature and drives the corresponding temperature adjustment component to perform temperature adjustment. Thus, the switching between cooling and heating can be completed automatically without manual intervention by the user, meeting the needs for convenient and timely temperature control in vehicle scenarios. Attached Figure Description
[0011] Figure 1 This is a flowchart illustrating one embodiment of the temperature control method for a vehicle-mounted refrigerator according to this application. Figure 2 This is a schematic block diagram of the temperature control device for the vehicle-mounted refrigerator of this application; Figure 3 This is a schematic diagram of the structure of an electronic device used in this application. Detailed Implementation
[0012] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0013] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this application means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.
[0014] Those skilled in the art will understand that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0015] Those skilled in the art will understand that the terms "client," "terminal," and "terminal device" as used herein include both devices that receive wireless signals, devices that only possess wireless signal receiver capabilities without transmission capabilities, and devices with receiving and transmitting hardware, devices that have receiving and transmitting hardware capable of bidirectional communication over a bidirectional communication link. Such devices may include: cellular or other communication devices such as personal computers or tablets, having single-line displays, multi-line displays, or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service) that can combine voice, data processing, fax, and / or data communication capabilities; PDAs (Personal Digital Assistants) that may include radio frequency receivers, pagers, internet / intranet access, web browsers, notepads, calendars, and / or GPS (Global Positioning System) receivers; and conventional laptops and / or handheld computers or other devices that have and / or include radio frequency receivers. As used herein, "client," "terminal," and "terminal device" can be portable, transportable, installed in a means of transportation (air, sea, and / or land), or suitable and / or configured to operate locally and / or in a distributed manner, operating in any other location on Earth and / or in space. "Client," "terminal," and "terminal device" as used herein can also be a communication terminal, an internet access terminal, or a music / video playback terminal, such as a PDA, a MID (Mobile Internet Device), and / or a mobile phone with music / video playback capabilities, or a smart TV, set-top box, etc.
[0016] The hardware referred to by the names "server," "client," and "service node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann architecture, such as a central processing unit (including an arithmetic logic unit and a control unit), memory, input devices, and output devices. The computer program is stored in its memory, and the central processing unit loads the program stored in the secondary storage into the main memory to run it, execute the instructions in the program, and interact with the input and output devices to complete specific functions.
[0017] It should be noted that the concept of "server" used in this application can also be extended to apply to server clusters. Based on network deployment principles as understood by those skilled in the art, the servers should be logically divided; physically, these servers can be independent yet accessible through interfaces, or they can be integrated into a single physical computer or a computer cluster. Those skilled in the art should understand this flexibility and should not use it to constrain the implementation of the network deployment method described in this application.
[0018] One or more of the technical features of this application, unless explicitly specified herein, can be deployed on a server and accessed by a client remotely calling the online service interface provided by the server, or can be directly deployed and run on a client for access.
[0019] Unless otherwise specified, all data involved in this application may be stored remotely on a server or on a local terminal device, as long as it is suitable for use by the technical solution of this application.
[0020] Those skilled in the art will understand that although the various methods in this application are described based on the same concept and thus present commonality among them, they can be performed independently unless otherwise specified. Similarly, the various embodiments disclosed in this application are all based on the same inventive concept; therefore, concepts expressed in the same way, as well as concepts that are appropriately changed for convenience but are expressed differently, should be understood equivalently.
[0021] Unless otherwise expressly stated, the various embodiments disclosed in this application can be combined in a cross-cutting manner to flexibly construct new embodiments, as long as such combination does not depart from the inventive spirit of this application and can meet the needs of the prior art or solve a certain deficiency in the prior art. Those skilled in the art should be aware of such modifications.
[0022] To facilitate understanding of the various embodiments of this application, exemplary hardware architectures and application scenarios will be introduced first.
[0023] In an example hardware architecture, the vehicle refrigerator temperature control method of this application can be implemented through the following hardware: The hardware architecture includes a central processing unit (CPU), a first temperature sensor, a second temperature sensor, a cooling regulation component, and a heating regulation component. The first temperature sensor is located inside the enclosure to collect the internal temperature; the second temperature sensor is located outside the enclosure to detect the ambient temperature. Both the first and second temperature sensors are electrically connected to the CPU, transmitting the collected temperature data to it. The cooling and heating regulation components are also electrically connected to the CPU, which controls their operation.
[0024] Specifically, the central processing unit (CPU) receives the internal temperature of the enclosure from the first temperature sensor, calculates the temperature difference between the preset target temperature and the internal temperature, compares the temperature difference with preset positive and negative thresholds to determine whether the current operating mode is heating or cooling. It then queries a temperature compensation parameter mapping table based on the preset target temperature to obtain the corresponding temperature compensation parameter set. Based on the temperature compensation parameter set, it drives the temperature adjustment component corresponding to the current operating mode to perform temperature adjustment. When the temperature difference is within the dead zone, the CPU determines whether to switch operating modes prematurely based on the rate of change of the temperature difference, and dynamically adjusts the threshold determined by the rate of change based on the ambient temperature collected by the second temperature sensor.
[0025] With the above hardware architecture, the central processing unit can automatically switch between cooling and heating without manual operation by the user, and adaptively adjust the control parameters according to the actual temperature conditions to achieve convenient and precise temperature control of the vehicle refrigerator.
[0026] In an exemplary application scenario, the temperature control method for a car refrigerator according to this application can be applied to an outdoor camping scenario. After setting up camp in the evening, the user puts beverages into the car refrigerator and sets the target temperature to 5°C. As night falls, the ambient temperature gradually decreases, and the internal temperature of the refrigerator decreases accordingly. When the deviation between the internal temperature and the target temperature exceeds the normal range, the central processing unit automatically switches from cooling mode to heating mode, driving the heating regulation component to work and bring the internal temperature back to near the target temperature. The next day at noon, the ambient temperature rises rapidly, and the internal temperature begins to deviate from the target temperature and change towards a higher value. The central processing unit detects that the rate of change of the temperature difference exceeds the threshold and switches back to cooling mode in advance to avoid overshooting of the internal temperature. Throughout the entire process, the user does not need to perform any manual operation.
[0027] Through the detailed description of the network architecture and application scenarios described above, a better understanding of the specific application of the vehicle-mounted refrigerator temperature control method of this application in the field of vehicle-mounted refrigerator technology can be achieved. The following will elaborate on the detailed description of various specific embodiments of this application based on these exemplary contents.
[0028] like Figure 1As shown, in one embodiment, the temperature control method for a vehicle-mounted refrigerator of this application includes: Step S5100: Obtain the internal temperature of the chamber from the first temperature sensor located inside the chamber, and determine the temperature difference between the preset target temperature and the internal temperature of the chamber.
[0029] During operation, the actual temperature inside a car refrigerator continuously changes depending on environmental conditions, the opening and retrieval of items, and the operational status of its components. To achieve automatic temperature control, it is first necessary to know the current internal temperature and how much it deviates from the user's desired temperature.
[0030] The preset target temperature is the desired temperature set by the user based on their storage needs. For example, it might be set to 4°C for refrigerating beverages and 55°C for keeping hot beverages warm. This target temperature remains unchanged after being set by the user until the user manually modifies it.
[0031] The central processing unit reads the internal temperature data of the enclosure from the first temperature sensor, and simultaneously reads the currently stored preset target temperature. It subtracts the internal temperature from the preset target temperature to obtain the temperature difference. A positive temperature difference indicates that the internal temperature is lower than the target temperature, while a negative value indicates that the internal temperature is higher than the target temperature.
[0032] The first temperature sensor is located inside the enclosure to sense the air temperature inside. In one embodiment, the first temperature sensor is installed in the central area inside the enclosure, away from the air outlet of the cooling regulating component and the radiating surface of the heating regulating component, to reduce the impact of local temperature deviations on the data acquisition results. In another embodiment, the first temperature sensor is installed at the return air vent of the air duct inside the enclosure, collecting the average temperature of the mixed circulating airflow, which better reflects the overall temperature condition of the enclosure.
[0033] The central processing unit (CPU) can repeatedly acquire the internal temperature of the enclosure according to a fixed acquisition cycle. In one embodiment, the acquisition cycle is set to 10 seconds, meaning that data from the first temperature sensor is read once every 10 seconds. This cycle ensures data timeliness while avoiding the processing burden caused by overly frequent acquisition. In another embodiment, the acquisition cycle is dynamically adjusted according to the current operating mode. When the temperature difference is close to the dead zone boundary, the acquisition cycle is shortened to improve judgment accuracy; when the temperature difference is far from the dead zone boundary, the acquisition cycle is extended to reduce power consumption.
[0034] The preset target temperature can be set by the user through the operation panel and stored in the non-volatile memory of the central processing unit.
[0035] Step S5200: Compare the temperature difference with a preset positive threshold and / or negative threshold, and determine the current working mode based on the comparison result. The working mode includes heating mode and cooling mode.
[0036] The temperature difference reflects the deviation between the current internal temperature and the target temperature, but the system cannot directly determine what operation to perform based solely on the numerical value of the temperature difference. A clear judgment criterion is needed to map the temperature difference value to a specific operating mode. Preset positive and negative thresholds serve as this judgment criterion. The central processing unit (CPU) compares the temperature difference value with the preset positive and / or preset negative thresholds, transforming continuous numerical deviations into discrete operating mode decisions.
[0037] The preset positive and negative thresholds can be loaded into the CPU's working registers during system initialization. In one embodiment, the preset positive and negative thresholds are stored in the CPU's non-volatile memory at the factory and are automatically loaded into the working registers after the system powers on. In another embodiment, the preset positive and negative thresholds can be customized by the user through the operation panel or application; the CPU updates the stored values and the changes take effect immediately upon receiving the adjustment command.
[0038] The central processing unit (CPU) performs a comparison operation once per acquisition cycle. In one embodiment, the CPU compares the temperature difference with preset positive and negative thresholds, respectively, and outputs the corresponding operating mode flag based on the comparison result. In another embodiment, the CPU directly obtains the corresponding operating mode flag by querying a preset mapping table between comparison results and operating modes, avoiding sequential numerical comparison operations.
[0039] Step S5300: Based on the preset temperature compensation parameter mapping table, obtain the temperature compensation parameter group corresponding to the preset target temperature.
[0040] Different temperature control components exhibit varying operating characteristics across different temperature ranges. For instance, the heating efficiency of the heating element and the heat dissipation rate of the enclosure differ when heating in a low-temperature range versus a high-temperature range; similarly, the cooling capacity of a refrigeration unit varies across different temperature ranges. Applying the same set of fixed start-stop control parameters to all target temperatures will inevitably lead to insufficient control accuracy at some target temperature points, while other target temperature points will experience frequent start-stop cycles.
[0041] The purpose of the temperature compensation parameter mapping table is to pre-configure suitable start-stop control parameters for different preset target temperatures. The central processing unit retrieves the corresponding parameter set from this mapping table based on the current preset target temperature, ensuring that the start-stop action of the temperature regulating component matches the current target temperature, thereby maintaining good control accuracy throughout the entire temperature setting range.
[0042] The central processing unit (CPU) retrieves the entry corresponding to the preset target temperature from the temperature compensation parameter mapping table, reads the temperature compensation parameter set recorded in that entry, and loads the read parameter set into the current running variables. When the user modifies the preset target temperature, the CPU re-executes this step to update the parameter set in the current running variables.
[0043] The temperature compensation parameter mapping table is stored in memory accessible to the central processing unit (CPU). In one embodiment, the temperature compensation parameter mapping table is determined through calibration experiments at the factory and written into the CPU's non-volatile memory as fixed data, which cannot be modified during system operation. In another embodiment, the temperature compensation parameter mapping table is stored in an erasable and rewritable memory area, allowing parameter updates via host computer tools or after-sales service interfaces to adapt to the differentiated needs of different models or batches of products.
[0044] In the temperature compensation parameter mapping table, each preset target temperature corresponds to a set of temperature compensation parameters. In one embodiment, the mapping table uses discrete temperature points as entries, for example, setting one entry every 1°C. When the preset target temperature falls between two adjacent entries, the closer one is taken. In another embodiment, the mapping table uses temperature ranges as entries, with each range corresponding to a set of parameters. The parameters for the range in which the preset target temperature falls are taken.
[0045] The central processing unit (CPU) checks whether the preset target temperature has changed during each acquisition cycle. In one embodiment, the CPU only re-executes the table lookup operation if a change in the preset target temperature is detected. If the preset target temperature has not changed, the existing parameter set in the current running variables is used, reducing unnecessary storage and retrieval operations. In another embodiment, the CPU re-executes the table lookup operation during each acquisition cycle to ensure that the parameter set is always consistent with the current preset target temperature.
[0046] Step S5400: Based on the temperature compensation parameter group, drive the temperature regulation component corresponding to the current working mode to perform temperature regulation action.
[0047] The temperature compensation parameter set contains control parameters related to the start and stop of the temperature regulating component. The central processing unit uses these parameters to determine under what conditions the component should be started and under what conditions it should be stopped. Since different preset target temperatures correspond to different parameter sets, the start and stop behavior of the temperature regulating component also differs at different target temperatures, thereby achieving precise control that matches the target temperature.
[0048] The central processing unit (CPU) reads the current operating mode flag to determine the temperature regulating component to be driven; it reads the temperature compensation parameter group from the current operating variables and extracts the control parameters corresponding to the temperature regulating component; combined with the real-time internal temperature of the enclosure collected by the first temperature sensor, it generates a drive signal based on the control parameters to control the start / stop state of the temperature regulating component. The CPU repeats this process in each acquisition cycle, so that the operating state of the temperature regulating component is dynamically adjusted according to the change of the internal temperature of the enclosure.
[0049] Within each acquisition cycle, the central processing unit (CPU) processes the internal temperature of the enclosure collected by the first temperature sensor and the control parameters in the temperature compensation parameter set to generate the drive signal for the current cycle. In one embodiment, the drive signal is a switching signal, and the temperature regulating component has only two states: active and inactive. In another embodiment, the drive signal is an analog or digital signal, and the temperature regulating component can switch between multiple power levels. The CPU dynamically adjusts the power level based on the deviation between the internal temperature of the enclosure and the control parameters.
[0050] When the current operating mode is heating mode, the central processing unit drives the heating regulation component to perform temperature regulation. In one embodiment, the heating regulation component is a heating element that transfers heat to the interior of the cabinet through resistance heating. In another embodiment, the heating regulation component is the heating circuit of a heat pump system that transfers external heat to the interior of the cabinet through refrigerant circulation.
[0051] When the current operating mode is cooling mode, the central processing unit drives the cooling regulation component to perform temperature regulation. In one embodiment, the cooling regulation component is an evaporator in the compressor's refrigeration circuit, which lowers the internal temperature of the cabinet by absorbing heat through refrigerant evaporation. In another embodiment, the cooling regulation component is a semiconductor refrigeration chip, which achieves cooling through the Peltier effect.
[0052] As can be seen from the above embodiments, this application achieves the following outstanding effects: First, this application collects the internal temperature of the refrigerator in real time and calculates the temperature difference between it and a preset target temperature. Then, it compares this temperature difference with preset positive and / or negative thresholds. The central processing unit automatically determines whether to execute heating or cooling mode and drives the corresponding temperature regulation components. The entire process requires no manual operation from the user; the system can autonomously switch between cooling and heating based on actual temperature changes inside the refrigerator. This solves the problem of existing vehicle refrigerators relying on manual selection of operating modes and meets the need for convenient temperature control in vehicle environments.
[0053] Secondly, this application pre-configures appropriate control parameter groups for different preset target temperatures using a pre-set temperature compensation parameter mapping table, ensuring that the start-stop behavior of the temperature regulating component matches the current operating conditions at different target temperatures. Compared to the fixed control parameter approach used in existing technologies, this application maintains good control accuracy throughout the entire temperature setting range, avoiding temperature control deviations caused by different target temperatures, and meeting the requirements for accurate temperature control in automotive scenarios.
[0054] Furthermore, each step of this application is executed cyclically within each data collection cycle. When the internal temperature of the enclosure fluctuates due to environmental changes, opening the door to retrieve items, or other factors, the system can immediately sense and respond within the next data collection cycle without waiting for the user to discover the temperature anomaly and then manually intervene, thus meeting the need for timely temperature control in vehicle scenarios.
[0055] Based on any embodiment of the method in this application, the temperature difference value is compared with a preset positive threshold and / or negative threshold, and the current working mode is determined according to the comparison result, including: Step S5210: When the temperature difference is greater than the positive threshold, determine the current working mode as heating mode.
[0056] When the temperature difference exceeds the positive threshold, it means that the internal temperature of the chamber is significantly lower than the preset target temperature, and the chamber is too cold. Heating needs to be activated to bring the internal temperature back to near the target temperature. Therefore, the central processing unit determines the current operating mode as heating mode.
[0057] In each data acquisition cycle, the central processing unit (CPU) compares the temperature difference with a positive threshold. When the temperature difference is greater than the positive threshold, the CPU sets the current operating mode flag to heating mode. In one embodiment, the CPU calculates the difference between the temperature difference and the positive threshold using a subtraction operation; if the result is positive, it determines that the temperature difference is greater than the positive threshold and sets the heating mode flag. In another embodiment, the CPU simultaneously inputs the temperature difference and the positive threshold into a comparator circuit, which directly outputs the judgment result. The CPU then sets the corresponding flag based on the comparator output.
[0058] While determining the heating mode, the central processing unit can send a disable signal to the drive circuit of the cooling regulation component to ensure that the cooling regulation component will not start unexpectedly.
[0059] Step S5220: When the temperature difference is less than the negative threshold, determine the current working mode as the cooling mode.
[0060] When the temperature difference is less than the negative threshold, it means that the internal temperature of the cabinet is significantly higher than the preset target temperature, and the cabinet is too hot. Cooling needs to be activated to bring the internal temperature back to near the target temperature. Therefore, the central processing unit determines the current operating mode as cooling mode.
[0061] In each data acquisition cycle, the central processing unit (CPU) compares the temperature difference with a negative threshold. When the temperature difference is less than the negative threshold, the CPU sets the current operating mode flag to cooling mode. In one embodiment, the CPU calculates the difference between the temperature difference and the negative threshold using a subtraction operation; if the result is negative, it determines that the temperature difference is less than the negative threshold and sets the cooling mode flag. In another embodiment, the CPU simultaneously inputs the temperature difference and the negative threshold into a comparator circuit, which directly outputs the judgment result. The CPU then sets the corresponding flag based on the comparator output.
[0062] While determining the cooling mode, the central processing unit can send a disable signal to the drive circuit of the heating regulation component to ensure that the heating regulation component will not start unexpectedly.
[0063] Step S5230: When the temperature difference is less than or equal to the positive threshold and greater than or equal to the negative threshold, maintain the current working mode.
[0064] When the temperature difference does not exceed the range defined by the positive and negative thresholds, it indicates that although the internal temperature of the enclosure deviates somewhat from the preset target temperature, the deviation is still within an acceptable range, and there is no need to change the current operating state. At this time, the central processing unit does not perform mode switching and continues to operate in the current working mode.
[0065] The range between the positive and negative thresholds constitutes a temperature holding interval. If the mode is switched immediately when the temperature difference fluctuates slightly within this interval, the temperature regulating component will repeatedly start and stop near the critical point, affecting both temperature control stability and shortening component lifespan. Therefore, mode switching is only triggered when the temperature difference truly exceeds this interval.
[0066] In each acquisition cycle, the central processing unit (CPU) compares the temperature difference with both positive and negative thresholds. When the comparison result shows that the temperature difference is less than or equal to the positive threshold and greater than or equal to the negative threshold, the CPU does not update the current operating mode flag and maintains its original state. In one embodiment, when the CPU determines that the temperature difference is between the positive and negative thresholds, it skips the update operation of the operating mode flag, and the current flag retains the value of the previous cycle. In another embodiment, when the CPU determines that the temperature difference is between the positive and negative thresholds, it actively rewrites the operating mode flag to the same value as at the beginning of the current cycle to explicitly express the determination to maintain the unchanged value.
[0067] The width of the temperature holding interval is determined by both the positive and negative thresholds. In one embodiment, the positive and negative thresholds are symmetrical about zero, and the width of the temperature holding interval is twice the absolute value of the positive threshold. For example, if the positive threshold is +3°C and the negative threshold is -3°C, then the temperature holding interval is [-3°C, +3°C], with a width of 6°C. In another embodiment, the positive and negative thresholds are asymmetrical about zero to accommodate different heating and cooling response characteristics.
[0068] As can be seen from the above embodiments, this application compares the temperature difference with a preset positive threshold and a preset negative threshold. When the temperature difference is greater than the positive threshold, it automatically determines the heating mode; when the temperature difference is less than the negative threshold, it automatically determines the cooling mode; and when the temperature difference is between the positive and negative thresholds, it maintains the current working mode. This achieves the effect of automatically switching between cooling and heating based on the actual temperature deviation inside the box without manual intervention from the user. At the same time, it does not switch modes when the temperature deviation is still within an acceptable range, avoiding frequent start-stop of the temperature regulation component in the critical state, thus taking into account the timeliness, convenience, and operational stability of temperature control.
[0069] Based on any embodiment of the method in this application, when the temperature difference is less than or equal to a positive threshold and greater than or equal to a negative threshold, after maintaining the current working mode, the method includes: Step S5310: Determine the rate of change of the temperature difference based on the ratio of the temperature difference between two adjacent acquisition cycles to the acquisition time interval.
[0070] When the temperature difference is between the positive and negative thresholds, the system maintains its current operating mode. However, vehicle refrigerators have a small volume and low thermal inertia, resulting in a much faster temperature change rate inside than household refrigerators or air conditioners. Although the temperature difference may currently be within an acceptable range, it could be rapidly deviating. If the system only waits for the temperature difference to exceed the threshold before switching modes, the switching timing is often too late, and the temperature inside the refrigerator may have already experienced a significant overshoot. Therefore, while maintaining the current operating mode, the system further calculates the rate of change of the temperature difference, i.e., how quickly the temperature difference changes between two adjacent data acquisition cycles.
[0071] In each acquisition cycle, the central processing unit records the temperature difference of the current cycle and the temperature difference of the previous cycle. The difference is subtracted to obtain the change in temperature difference. This change is then divided by the time interval between two adjacent acquisition cycles to obtain the rate of change of the temperature difference. This rate of change is a signed numerical value; its sign indicates the direction of change, and its absolute value indicates the speed of change.
[0072] The central processing unit (CPU) stores temperature difference data for at least two acquisition cycles. In one embodiment, the CPU sets up a buffer of length 2. Each acquisition cycle, the current temperature difference is written to the buffer, overwriting the oldest data, and the temperature difference between the two most recent cycles is always retained. In another embodiment, the CPU sets up a buffer of length greater than 2, storing temperature difference values from multiple recent cycles. When calculating the rate of change, the earliest and most recent two values are used for calculation to obtain a smoother rate estimate.
[0073] Step S5320: When the absolute value of the rate of change exceeds the preset rate threshold, the target working mode is determined according to the direction of change of the temperature difference, wherein the direction of increasing temperature difference corresponds to the heating mode and the direction of decreasing temperature difference corresponds to the cooling mode.
[0074] The rate of change reflects how fast and in what direction the temperature difference is changing. The larger the absolute value of the rate of change, the faster the temperature difference is changing. The direction of the rate of change indicates whether the temperature difference is changing in an increasing or decreasing direction.
[0075] It's important to note that when the temperature difference is between the positive and negative thresholds, a large rate of change doesn't necessarily mean the temperature is moving away from the preset target temperature; it could also mean the temperature is returning to the target temperature. For example, if the current operating mode is heating, a rapidly decreasing temperature difference indicates that heating is effective and the internal temperature is approaching the target temperature. Therefore, simply stating that the rate of change exceeds the preset threshold is insufficient to conclude that a mode switch is necessary. It's also necessary to determine the target operating mode based on the direction of change and compare it with the current operating mode to determine whether a switch is required.
[0076] An increasing temperature difference indicates that the internal temperature of the cabinet is decreasing, and the trend of the cabinet becoming too cold is intensifying. In this case, the heating regulator needs to intervene to prevent the temperature from dropping further. Therefore, the direction of increasing temperature difference corresponds to the heating mode. Conversely, a decreasing temperature difference indicates that the internal temperature of the cabinet is increasing, and the trend of the cabinet becoming too hot is intensifying. In this case, the cooling regulator needs to intervene to prevent the temperature from rising further. Therefore, the direction of decreasing temperature difference corresponds to the cooling mode.
[0077] The preset rate threshold is used to distinguish between normal fluctuations and rapid changes. When the absolute value of the rate of change does not exceed the preset rate threshold, it indicates that the change in temperature difference is a slow fluctuation within the normal range, and no further judgment is required. When the absolute value of the rate of change exceeds the preset rate threshold, the central processing unit further determines the target operating mode to determine whether the current operating mode is still applicable.
[0078] The central processing unit (CPU) compares the absolute value of the rate of change with a preset rate threshold. When the absolute value of the rate of change exceeds the preset rate threshold, the CPU determines the direction of change of the temperature difference based on the sign of the rate of change, and thus determines the target operating mode.
[0079] A preset rate threshold can be loaded into the central processing unit's working register during system initialization. In one embodiment, the preset rate threshold is a factory-fixed constant stored in non-volatile memory. In another embodiment, the preset rate threshold can be adjusted by the user or technician using configuration tools to accommodate differences in the cabinet volume and insulation performance of different models of vehicle refrigerators.
[0080] When the absolute value of the rate of change does not exceed the preset rate threshold, the central processing unit does not perform the operation to determine the target working mode, and the current working mode remains unchanged.
[0081] Step S5330: Switch the current working mode to the target working mode, and maintain the switched working mode unchanged within the preset locking time, so as not to respond to the new working mode switching judgment.
[0082] Once the target operating mode is determined, it needs to be assessed whether it aligns with the current operating mode. If they do, it indicates that the current operating mode is effectively addressing the changing temperature difference trend, and no switching is necessary. If they do not align, it means that the current operating mode is no longer able to handle the changing temperature difference trend, and switching to the target operating mode is required for proactive intervention.
[0083] After the operating mode switch is completed, it takes a certain amount of time for the temperature regulation component to activate and have a significant impact on the internal temperature. During this transition period, the temperature difference may still exhibit a large rate of change. If the system responds immediately to the new switching judgment at this time, the operating mode may repeatedly switch between heating and cooling, causing temperature oscillations. Therefore, a preset lockout time is set after the switch is completed, maintaining the new operating mode unchanged within this time, providing sufficient response time for the temperature regulation component.
[0084] The central processing unit (CPU) compares the determined target operating mode with the operating mode recorded in the current operating mode flag. When the target operating mode matches the current operating mode, the CPU maintains the current operating mode and does not perform a switching operation. When the target operating mode does not match the current operating mode, the CPU performs a mode switch. In one embodiment, the CPU updates the flag while sending a stop command to the temperature regulation component corresponding to the original operating mode and a start command to the temperature regulation component corresponding to the target operating mode. In another embodiment, the CPU only updates the operating mode flag, and the start / stop switching of the temperature regulation component is automatically completed according to the new operating mode during driver execution.
[0085] The preset lock-in duration can be loaded into the CPU's working register during system initialization. In one embodiment, the preset lock-in duration is a fixed value, determined at the factory based on the response time of the temperature regulating component from startup to having a significant impact on the internal temperature. In another embodiment, the preset lock-in duration is configured according to the type of temperature regulating component; heating and cooling regulating components have different response characteristics, and therefore different lock-in durations.
[0086] The central processing unit (CPU) records the moment of the switch after it is completed. In each subsequent acquisition cycle, the CPU calculates the time difference between the current moment and the switch moment and determines whether this time difference is less than a preset lock duration. If it is less than the preset lock duration, the CPU skips the working mode switch judgment and change rate judgment in this cycle and maintains the working mode after the switch. If it is greater than or equal to the preset lock duration, the lock state is cleared, and the normal working mode switch judgment process is resumed.
[0087] As can be seen from the above embodiments, this application further calculates the rate of change of the temperature difference before it exceeds the range defined by the positive and negative thresholds, and determines the target working mode in advance based on the direction of change when the rate of change exceeds the preset rate threshold. When the target working mode is inconsistent with the current working mode, a switch is performed. At the same time, a preset lock duration is set to freeze the switch judgment after the switch. This allows the system to automatically complete the switch between cooling and heating in the early stage when the temperature difference deviates rapidly, without waiting for the temperature difference to truly exceed the acceptable range before performing the mode switch. This improves the timeliness of temperature control. At the same time, the preset lock duration avoids repeated switching caused by the temperature adjustment component not having fully responded after the switch, ensuring the stability of temperature control after the switch and meeting the needs for convenient and timely temperature control in vehicle scenarios.
[0088] Based on any embodiment of the method in this application, before determining the target operating mode according to the direction of change of the temperature difference when the absolute value of the rate of change exceeds a preset rate threshold, the method includes: Step S5410: Obtain the ambient temperature collected by a second temperature sensor located outside the enclosure and used to detect the ambient temperature of the enclosure.
[0089] Car refrigerators are used in various scenarios, including in-car travel and outdoor camping, and share the common characteristic of operating in environments with drastic temperature fluctuations. In in-car travel scenarios, vehicles may experience various environments after leaving the garage, such as direct sunlight, cold winds, and tunnels, causing significant changes in the external temperature of the refrigerator within a short period. In outdoor camping scenarios, the temperature around the refrigerator is high during the day when direct sunlight is present, and drops rapidly at night, with a possible temperature difference of tens of degrees Celsius between day and night. The external ambient temperature directly affects the heat exchange rate of the refrigerator. The greater the difference between the ambient temperature and the internal temperature, the faster heat is transferred through the refrigerator walls, and the more pronounced the deviation of the internal temperature from the target temperature. Therefore, relying solely on the internal temperature for control is insufficient; it is also necessary to obtain information about the temperature of the surrounding environment. The central processing unit acquires ambient temperature data according to a preset acquisition cycle and stores the read ambient temperature in the current running variables. The source of the ambient temperature is a second temperature sensor set outside the enclosure and used to detect the ambient temperature of the enclosure.
[0090] In one embodiment, the vehicle refrigerator is a freestanding structure, and the refrigerator body can be placed in the trunk of a vehicle, behind the seats, or on the trunk partition, or it can be placed at an outdoor camping site. In this case, the second temperature sensor is an external temperature sensor built into the refrigerator, installed on the outer surface of the refrigerator body, away from the heat dissipation outlet of the refrigeration regulating component and the mounting surface of the heating regulating component, so as to avoid the heat or cold generated by the refrigerator itself during operation from interfering with the data collection results.
[0091] In another embodiment, the in-vehicle refrigerator has an embedded structure, with the cabinet fixedly installed inside the vehicle, such as below the armrest, below the center console, or in a pre-reserved slot in the trunk. The outer shell of the cabinet is flush with the vehicle's interior panels, making it impossible to install a separate temperature sensor on the outer surface of the cabinet. In this case, the second temperature sensor is either the vehicle's built-in external temperature sensor or internal temperature sensor, and the central processing unit reads the ambient temperature data collected by the vehicle temperature sensor via the vehicle communication bus.
[0092] Step S5420: Determine the preset rate threshold based on the ambient temperature difference between the ambient temperature and the internal temperature of the chamber. The larger the absolute value of the ambient temperature difference, the smaller the preset rate threshold; the smaller the absolute value of the ambient temperature difference, the larger the preset rate threshold.
[0093] The preset rate threshold is used to determine whether the rate of change of the temperature difference is sufficient to trigger an early switching of the operating mode. However, the usage scenarios of car refrigerators cover various situations such as car travel and outdoor camping, where the ambient temperature fluctuates drastically, and the normal level of the rate of change of the temperature difference varies under different ambient temperature conditions. When the difference between the ambient temperature and the internal temperature is large, heat is rapidly transferred in or out through the cabinet walls, and the cabinet bears a large heat load. If the current operating mode is slightly insufficient at this time, the temperature difference will deviate rapidly, and failure to switch in time will result in significant overshoot. Therefore, the system needs to be more sensitive to the deviation trend, and the preset rate threshold should be set relatively small to make it easier for the system to trigger an early switch. When the difference between the ambient temperature and the internal temperature is small, the rate of heat transfer through the cabinet walls is slow, and the heat load on the cabinet is light. In this case, small fluctuations in the temperature difference are normal, and the system should not be overly sensitive. The preset rate threshold should be set relatively large to avoid normal fluctuations triggering an incorrect switch.
[0094] It should be noted that a positive ambient temperature difference indicates that the ambient temperature is higher than the temperature inside the chamber, while a negative difference indicates that the ambient temperature is lower than the temperature inside the chamber. However, regardless of the direction, the magnitude of the absolute value of the temperature difference directly determines the severity of the heat load.
[0095] The central processing unit (CPU) calculates the ambient temperature difference between the acquired ambient temperature and the acquired internal temperature of the enclosure, and takes the absolute value of the ambient temperature difference. Then, the CPU determines the preset rate threshold to be used in the current cycle based on the magnitude of the absolute value of the ambient temperature difference.
[0096] The absolute value of the ambient temperature difference reflects the degree of deviation between the ambient temperature and the internal temperature of the enclosure, without distinguishing whether the ambient temperature is higher or lower than the internal temperature. In one embodiment, the central processing unit (CPU) directly uses the ambient temperature and the internal temperature of the enclosure in the current acquisition cycle for calculation. In another embodiment, the CPU takes the average of the ambient temperature from the most recent acquisition cycles before participating in the calculation, in order to filter out occasional fluctuations from the ambient temperature sensor.
[0097] The central processing unit (CPU) determines a preset rate threshold based on the absolute value of the ambient temperature difference. In one embodiment, the CPU calculates the preset rate threshold using a preset linear relationship based on the absolute value of the ambient temperature difference. The larger the absolute value of the ambient temperature difference, the smaller the calculated preset rate threshold; conversely, the smaller the absolute value of the ambient temperature difference, the larger the calculated preset rate threshold. In another embodiment, the CPU matches the absolute value of the ambient temperature difference with multiple preset temperature difference intervals. Each temperature difference interval corresponds to a fixed preset rate threshold value; the CPU takes the preset rate threshold corresponding to the interval in which the absolute value of the ambient temperature difference falls.
[0098] As can be seen from the above embodiments, this application obtains the temperature information of the environment in which the enclosure is located and dynamically adjusts the trigger threshold for early switching based on the temperature difference between the ambient temperature and the internal temperature of the enclosure. This allows the system to detect temperature deviation trends with higher sensitivity when the difference between the ambient and internal temperatures is large and the enclosure is under a heavy heat load, enabling early automatic switching between cooling and heating and avoiding significant overshoot in the internal temperature due to delayed response. When the difference between the ambient and internal temperatures is small and the heat load on the enclosure is light, the system appropriately reduces its sensitivity to avoid unnecessary mode switching triggered by normal fluctuations in temperature difference. In this way, the system can adaptively adjust the sensitivity of the switching judgment under different environmental conditions such as in-vehicle travel and outdoor camping, without requiring users to manually adjust any settings for different environments, thus meeting the needs for convenient and timely temperature control in in-vehicle scenarios.
[0099] Based on any embodiment of the method in this application, a set of temperature compensation parameters corresponding to a preset target temperature is obtained based on a preset temperature compensation parameter mapping table, including: Step S5510: Using the preset target temperature as an index, query the temperature compensation parameter mapping table.
[0100] The temperature compensation parameter mapping table stores the control parameters corresponding to multiple preset target temperatures. Each preset target temperature corresponds to a set of parameter entries, recording the start-stop control parameters that the temperature regulating component should follow at that target temperature.
[0101] The central processing unit (CPU) reads the currently stored preset target temperature and uses this preset target temperature as an index to retrieve a matching parameter entry in the temperature compensation parameter mapping table. After the retrieval is complete, the CPU records the storage address of the parameter entry. In one embodiment, the temperature compensation parameter mapping table uses discrete temperature points as entries. The CPU compares the preset target temperature with the temperature values in each entry one by one, finding a completely matching entry. When the preset target temperature falls exactly between two adjacent entries, the entry with the closer value is selected. In another embodiment, the temperature compensation parameter mapping table uses temperature ranges as entries, with each range corresponding to a set of parameters. The CPU determines which temperature range the preset target temperature falls into, and then selects the parameter entry for that range.
[0102] The central processing unit can re-execute the query operation only when it detects a change in the preset target temperature. If the preset target temperature has not changed, it will use the existing parameter group in the current running variables to reduce unnecessary storage reads.
[0103] Step S5520: When the current working mode is heating mode, obtain the heating start threshold and heating stop threshold to drive the corresponding temperature regulation component to start heating and / or stop heating.
[0104] When the current operating mode is determined to be heating mode, the temperature regulation component acts as the heating regulation component. This component needs to determine when to start and stop heating based on the relationship between the internal temperature of the enclosure and the target temperature. The heating start threshold and heating stop threshold are the basis for this determination, and together they define the start and stop conditions for the heating regulation component.
[0105] After the central processing unit confirms that the current operating mode is heating mode, it reads the heating start threshold and heating stop threshold from the parameter entries located in step S5510 and loads the two thresholds into the current operating variables. When driving the heating regulation component, it determines whether to start or stop heating based on these two thresholds.
[0106] The heating start threshold is the temperature condition at which the heating regulator initiates heating. When the internal temperature of the enclosure meets this condition, the heating regulator starts operating. The heating stop threshold is the temperature condition at which the heating regulator stops heating. When the internal temperature of the enclosure meets this condition, the heating regulator stops operating. In one embodiment, the heating start threshold and the heating stop threshold are expressed as absolute temperature values. In another embodiment, the heating start threshold and the heating stop threshold are expressed as offsets relative to a preset target temperature, which the central processing unit adds to the preset target temperature to obtain the actual absolute temperature value during use.
[0107] Step S5530: When the current working mode is cooling mode, obtain the cooling start threshold and cooling stop threshold to drive the corresponding temperature regulation component to start cooling and / or stop cooling.
[0108] When the current operating mode is determined to be cooling mode, the temperature regulation component becomes the cooling regulation component. The cooling regulation component needs to determine when to start and when to stop cooling based on the relationship between the internal temperature of the cabinet and the target temperature. The cooling start threshold and cooling stop threshold are the basis for this determination, and both jointly define the start and stop conditions of the cooling regulation component.
[0109] After the central processing unit confirms that the current operating mode is cooling mode, it reads the cooling start threshold and cooling stop threshold from the parameter entries located in step S5510 and loads the two thresholds into the current operating variables. When driving the cooling regulation component, it determines whether cooling should be started or stopped based on these two thresholds.
[0110] The cooling start threshold is the temperature condition at which the cooling regulation component initiates cooling. When the internal temperature of the cabinet meets this condition, the cooling regulation component starts working. The cooling stop threshold is the temperature condition at which the cooling regulation component stops cooling. When the internal temperature of the cabinet meets this condition, the cooling regulation component stops working. In one embodiment, the cooling start threshold and cooling stop threshold are expressed as absolute temperature values. In another embodiment, the cooling start threshold and cooling stop threshold are expressed as offsets relative to a preset target temperature, which the central processing unit adds to the preset target temperature to obtain the actual absolute temperature value.
[0111] As can be seen from the above embodiments, this application queries the temperature compensation parameter mapping table using a preset target temperature as an index, and obtains the heating start threshold and heating stop threshold corresponding to the target temperature when the current working mode is heating mode. This allows the system to automatically obtain the start and stop control parameters that match the current target temperature after completing the automatic switching of the working mode. This ensures that the start and stop of the heating adjustment component are adapted to the current target temperature, eliminating the need for users to manually adjust any control parameters for different target temperatures. On the basis of achieving automatic switching between cooling and heating, this further ensures the accuracy of temperature adjustment after switching, meeting the needs for convenient and timely temperature control in vehicle scenarios.
[0112] Based on any embodiment of the method in this application, it further includes: Step S5610: Before the temperature regulating component performs the temperature regulating action, determine whether the actual time interval between the temperature regulating component and the last time it performed the temperature regulating action is greater than or equal to the preset minimum start-stop time interval.
[0113] Temperature control components require frequent start-stop cycles to maintain stable internal temperature. However, the internal components of these components experience significant electrical and mechanical stress during startup and shutdown. Excessive start-stop cycles can accelerate aging and shorten the lifespan of these components due to repeated stress, potentially leading to damage. Therefore, before each start-stop operation, it is necessary to check whether sufficient time has elapsed since the last start-stop action. The current start-stop operation is only permitted if the actual time interval meets the minimum start-stop interval requirement.
[0114] Before each start / stop operation of the temperature regulation component, the central processing unit reads the record of the last start / stop operation performed by the component, calculates the actual time interval between the current time and that recorded time, and compares the actual time interval with a preset minimum start / stop time interval. If the actual time interval is greater than or equal to the preset minimum start / stop time interval, the start / stop operation is allowed; if the actual time interval is less than the preset minimum start / stop time interval, immediate execution is not allowed.
[0115] Each time the central processing unit drives the temperature regulation component to perform a start-stop operation, it writes the current time into the corresponding time recording register of that component. In one embodiment, the heating and cooling regulation components each have independent time recording registers, recording their respective start-stop times. In another embodiment, the two components share a single time recording register, with each start-stop operation overwriting the previous record.
[0116] The preset minimum start-stop interval can be loaded into the CPU's working register during system initialization. In one embodiment, the preset minimum start-stop interval is a factory-fixed constant, determined according to the minimum start-stop interval specified in the temperature control component's product specification. In another embodiment, the preset minimum start-stop interval can be adjusted by a technician using a configuration tool to accommodate the differentiated requirements of different models of temperature control components.
[0117] Step S5620: When the actual time interval is less than the preset minimum start-stop time interval, delay the temperature regulation component to perform temperature regulation action until the actual time interval reaches the preset minimum start-stop time interval.
[0118] When the actual time interval has not yet reached the preset minimum start-stop time interval, it indicates that the temperature regulation component has been operating too close to its last start-stop action. If the start-stop action is executed immediately, the component will be subjected to excessive stress due to frequent start-stop cycles. Therefore, the central processing unit (CPU) will not execute the start-stop action until the actual time interval meets the requirement. It should be noted that during the delay period, the temperature regulation component maintains its current operating state; temperature acquisition and differential calculation within the chamber continue normally, only the start-stop action is temporarily postponed.
[0119] After determining that the actual time interval is less than the preset minimum start / stop time interval, the central processing unit (CPU) does not send a start / stop command to the temperature regulation component, maintaining its current operating state. The CPU continues to recalculate the actual time interval in each acquisition cycle until the actual time interval reaches the preset minimum start / stop time interval, at which point it executes the start / stop action. In one embodiment, the CPU sets a delay flag; when the delay flag is valid, the start / stop driving logic in step S5400 is skipped, and the temperature regulation component maintains its current state. The CPU re-determines whether the actual time interval meets the requirement in each acquisition cycle; if it does, it clears the delay flag and executes the start / stop action. In another embodiment, the CPU calculates the remaining waiting time, sets a timer, and automatically triggers the start / stop action upon timeout.
[0120] During the delay period, the temperature regulation component remains in its current state, and the internal temperature may continue to deviate from the target temperature. When the central processing unit executes the start / stop action after the delay ends, it uses the latest internal temperature of the cabinet at the end of the delay for judgment, rather than the temperature value at the beginning of the delay, to ensure the accuracy of the start / stop action. The delay only affects the start / stop action of the temperature regulation component and does not affect the judgment and switching of the operating mode. That is, during the delay period, the mode switching judgment in step S5200 is still executed normally. If the operating mode changes, the corresponding temperature regulation component will be driven according to the new operating mode after the delay ends.
[0121] As can be seen from the above embodiments, this application determines whether the actual time interval between the start and stop of the temperature regulating component and the last start and stop operation meets the preset minimum start and stop time interval before each start and stop operation. If the time interval does not meet the requirement, the start and stop operation is delayed until the time interval meets the requirement. This avoids the temperature regulating component from aging or being damaged due to excessive start and stop during the process of the system automatically switching between cooling and heating and driving the temperature regulating component to work. This ensures that the automatic temperature control system can operate stably for a long time, and enables the vehicle refrigerator to maintain reliable temperature control capabilities without manual intervention from the user.
[0122] Based on any embodiment of the method in this application, it further includes: Step S5710: Before the temperature regulating component performs the temperature regulating action, detect the working status of the other temperature regulating component.
[0123] Car refrigerators contain both heating and cooling regulators, whose functions conflict: one inputs heat into the refrigerator, while the other removes heat. If both operate simultaneously, it not only wastes energy but can also prevent the refrigerator temperature from reaching the target level, and may even damage the components themselves due to the thermal conflict. Therefore, before activating the temperature regulator corresponding to the current operating mode, it's necessary to confirm that the other temperature regulator is still active to ensure that only one temperature regulator is engaged at any given time.
[0124] Before starting the temperature regulation component corresponding to the current operating mode, the central processing unit reads the operating status flag of the other temperature regulation component to determine whether it is in operation. This operating status flag reflects the current actual operating status of the other temperature regulation component.
[0125] Step S5720: When another temperature regulating component is in operation, send a shutdown command to the other temperature regulating component.
[0126] If another temperature control component is detected to still be operating, it means that component has not yet stopped running. If the temperature control component corresponding to the current operating mode is activated directly at this time, both temperature control components will operate simultaneously. Therefore, a shutdown command needs to be sent to the other temperature control component first to stop its operation.
[0127] The central processing unit (CPU) can send a shutdown command to the drive circuit of another temperature regulating component, cutting off its power supply or causing it to exit operation. After sending the shutdown command, the CPU waits for the other temperature regulating component to complete the shutdown process. In one embodiment, the CPU performs the shutdown by disconnecting a relay in the power supply circuit of the other temperature regulating component; once the relay is disconnected, the component loses power and stops operating. In another embodiment, the CPU gradually reduces the duty cycle of the drive signal of the other temperature regulating component to zero, allowing the component to stop smoothly and avoiding the impact of a sudden power outage on the component.
[0128] Step S5730: After confirming that the other temperature control component has been turned off, send a start command to the temperature control component corresponding to the current working mode.
[0129] Once the other temperature control component has been confirmed to have stopped operating, there are no conflicting regulatory actions within the enclosure. At this point, it is safe to activate the temperature control component corresponding to the current operating mode. This step is the final execution stage of the interlock control process, ensuring that only one temperature control component is active at any given time.
[0130] After confirming that the other temperature regulation component is off, the central processing unit (CPU) sends a start command to the drive circuit of the temperature regulation component corresponding to the current operating mode, causing that component to start working. After startup, the CPU updates the component's operating status flag to "operating".
[0131] After sending the start command, the central processing unit can update the working status flag of the temperature regulation component corresponding to the current working mode to the working state, and update the working status flag of the other temperature regulation component to the non-working state.
[0132] As can be seen from the above embodiments, this application detects the working status of another temperature regulating component before starting the temperature regulating component corresponding to the current working mode. If the other component is still in working state, a shutdown command is sent to stop its operation. After confirming that it is shut down, a start command is sent to the temperature regulating component corresponding to the current working mode. This ensures that only one temperature regulating component is in working state at any given time during the automatic switching between cooling and heating. This avoids energy waste and temperature control failure caused by simultaneous operation of heating and cooling, and enables the automatic mode switching to be executed safely and reliably. This provides a guarantee for the continuous and stable operation of the vehicle refrigerator without manual intervention from the user.
[0133] like Figure 2 As shown, a temperature control device for a vehicle refrigerator according to one aspect of this application includes a temperature difference acquisition module 5100, a mode judgment module 5200, a compensation query module 5300, and a drive adjustment module 5400. The temperature difference acquisition module 5100 is used to acquire the internal temperature of the refrigerator body collected by a first temperature sensor installed inside the refrigerator body, and determine the temperature difference between a preset target temperature and the internal temperature of the refrigerator body. The mode judgment module 5200 is used to compare the temperature difference with a preset positive threshold and / or a preset negative threshold, and determine the current operating mode based on the comparison result. The operating mode includes a heating mode and a cooling mode. The compensation query module 5300 is used to acquire a set of temperature compensation parameters corresponding to the preset target temperature based on a preset temperature compensation parameter mapping table. The drive adjustment module 5400 is used to drive the temperature adjustment component corresponding to the current operating mode to perform a temperature adjustment action according to the temperature compensation parameter set.
[0134] Based on any embodiment of the device in this application, the pattern determination module 5200 includes: The heating determination module is used to determine that the current working mode is the heating mode when the temperature difference is greater than the positive threshold. A cooling determination module is used to determine that the current working mode is a cooling mode when the temperature difference is less than the negative threshold. The mode maintenance module is used to maintain the current working mode unchanged when the temperature difference is less than or equal to the positive threshold and greater than or equal to the negative threshold.
[0135] Based on any embodiment of the device in this application, after executing the mode maintenance module, the following is included: The rate calculation module is used to determine the rate of change of the temperature difference based on the ratio of the temperature difference between two adjacent acquisition cycles to the acquisition time interval. The target determination module is used to determine the target working mode based on the direction of change of the temperature difference when the absolute value of the rate of change exceeds a preset rate threshold, wherein the direction of increase of the temperature difference corresponds to the heating mode and the direction of decrease of the temperature difference corresponds to the cooling mode. The locking and switching module is used to switch the current working mode to the target working mode and maintain the switched working mode unchanged within a preset locking time so as not to respond to the new working mode switching judgment.
[0136] Based on any embodiment of the device in this application, before executing the target determination module, the following is included: An environmental acquisition module is used to acquire the ambient temperature collected by a second temperature sensor located outside the enclosure and used to detect the ambient temperature of the enclosure. The threshold determination module is used to determine the preset rate threshold based on the ambient temperature difference between the ambient temperature and the internal temperature of the enclosure, wherein the larger the absolute value of the ambient temperature difference, the smaller the preset rate threshold, and the smaller the absolute value of the ambient temperature difference, the larger the preset rate threshold.
[0137] Based on any embodiment of the device in this application, the compensation query module 5300 includes: The index query module is used to query the temperature compensation parameter mapping table using the preset target temperature as the index; The heating parameter module is used to obtain the heating start threshold and heating stop threshold when the current working mode is heating mode, so as to drive the corresponding temperature regulation component to start heating and / or stop heating. The refrigeration parameter module is used to obtain the refrigeration start threshold and refrigeration stop threshold when the current working mode is refrigeration mode, so as to drive the corresponding temperature regulation component to start refrigeration and / or stop refrigeration.
[0138] Based on any embodiment of the device in this application, the device further includes: The interval judgment module is used to determine whether the actual time interval between the temperature regulation component and the last time it performed the temperature regulation action is greater than or equal to the preset minimum start-stop time interval before driving the temperature regulation component to perform the temperature regulation action. The delay drive module is used to delay driving the temperature regulation component to perform temperature regulation action when the actual time interval is less than the preset minimum start-stop time interval, until the actual time interval reaches the preset minimum start-stop time interval.
[0139] Based on any embodiment of the device in this application, the device further includes: The status detection module is used to detect the working status of another temperature regulating component before driving the temperature regulating component to perform the temperature regulating action; The shutdown command module is used to send a shutdown command to the other temperature regulating component when the other temperature regulating component is in working state; The start command module is used to send a start command to the temperature control component corresponding to the current working mode after confirming that the other temperature control component has been turned off.
[0140] like Figure 3As shown in the diagram, another embodiment of this application also provides an electronic device, wherein the internal structure of the electronic device is illustrated. The electronic device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. The computer-readable storage medium stores an operating system, a database, and computer-readable instructions. The database may store a sequence of control information. When the computer-readable instructions are executed by the processor, the processor can implement the temperature control method for the vehicle-mounted refrigerator described in this application. The processor of the electronic device provides computing and control capabilities to support the operation of the entire electronic device. The memory of the electronic device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the temperature control method for the vehicle-mounted refrigerator described in this application. The network interface of the electronic device is used for communication with a terminal. Those skilled in the art will understand that... Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0141] In this execution method, the processor is used for execution. Figure 2 The system contains the specific functions of each module and its submodules, and the memory stores the program code and various data required to execute these modules or submodules. A network interface is used for data transmission between the user terminal and the server. In this execution method, the memory stores the program code and data required to execute all modules / submodules in the temperature control device of the vehicle-mounted refrigerator of this application, and the server can call the server's program code and data to execute the functions of all submodules.
[0142] This application also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the method described in any embodiment of this application.
[0143] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a computer-readable storage medium such as a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM).
[0144] The above description is only a partial implementation method of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A temperature control method for a vehicle-mounted refrigerator, characterized in that, include: The internal temperature of the enclosure is acquired by a first temperature sensor located inside the enclosure, and the temperature difference between the preset target temperature and the internal temperature of the enclosure is determined. The temperature difference is compared with a preset positive threshold and / or negative threshold, and the current working mode is determined based on the comparison result. The working mode includes a heating mode and a cooling mode. Based on a preset temperature compensation parameter mapping table, obtain the temperature compensation parameter group corresponding to the preset target temperature; Based on the temperature compensation parameter set, the temperature adjustment component corresponding to the current working mode is driven to perform a temperature adjustment action.
2. The temperature control method for a vehicle-mounted refrigerator according to claim 1, characterized in that, The step of comparing the temperature difference with a preset positive threshold and / or negative threshold, and determining the current working mode based on the comparison result, includes: When the temperature difference is greater than the positive threshold, the current working mode is determined to be the heating mode; When the temperature difference is less than the negative threshold, the current working mode is determined to be the cooling mode; When the temperature difference is less than or equal to the positive threshold and greater than or equal to the negative threshold, the current working mode remains unchanged.
3. The temperature control method for a vehicle-mounted refrigerator according to claim 2, characterized in that, When the temperature difference is less than or equal to the positive threshold and greater than or equal to the negative threshold, maintaining the current working mode includes: The rate of change of the temperature difference is determined by the ratio of the temperature difference between two adjacent sampling cycles to the sampling time interval. When the absolute value of the rate of change exceeds a preset rate threshold, the target working mode is determined according to the direction of change of the temperature difference, wherein the direction of increase of the temperature difference corresponds to the heating mode and the direction of decrease of the temperature difference corresponds to the cooling mode. The current working mode is switched to the target working mode, and the switched working mode remains unchanged for a preset locking time so as not to respond to the new working mode switching judgment.
4. The temperature control method for a vehicle-mounted refrigerator according to claim 3, characterized in that, Before determining the target operating mode based on the direction of change of the temperature difference when the absolute value of the rate of change exceeds a preset rate threshold, the process includes: The ambient temperature is acquired by a second temperature sensor located outside the enclosure and used to detect the ambient temperature of the enclosure. The preset rate threshold is determined based on the ambient temperature difference between the ambient temperature and the internal temperature of the enclosure. The larger the absolute value of the ambient temperature difference, the smaller the preset rate threshold; conversely, the smaller the absolute value of the ambient temperature difference, the larger the preset rate threshold.
5. The temperature control method for a vehicle-mounted refrigerator according to claim 1, characterized in that, The process of obtaining a set of temperature compensation parameters corresponding to the preset target temperature based on a preset temperature compensation parameter mapping table includes: Using the preset target temperature as an index, query the temperature compensation parameter mapping table; When the current working mode is heating mode, the heating start threshold and heating stop threshold are obtained to drive the corresponding temperature regulation component to start heating and / or stop heating; When the current operating mode is cooling mode, the cooling start threshold and cooling stop threshold are obtained to drive the corresponding temperature regulation component to start and / or stop cooling.
6. The temperature control method for a vehicle-mounted refrigerator according to claims 1-5, characterized in that, The method further includes: Before driving the temperature regulating component to perform a temperature regulating action, it is determined whether the actual time interval between the temperature regulating component and the last time it performed a temperature regulating action is greater than or equal to the preset minimum start-stop time interval. When the actual time interval is less than the preset minimum start-stop time interval, the temperature regulating component is delayed in performing the temperature regulating action until the actual time interval reaches the preset minimum start-stop time interval.
7. The temperature control method for a vehicle-mounted refrigerator according to claims 1-5, characterized in that, The method further includes: Before driving the temperature regulating component to perform the temperature regulating action, the operating status of the other temperature regulating component is detected; When the other temperature regulating component is in operation, a shutdown command is sent to the other temperature regulating component; After confirming that the other temperature control component has been turned off, a start command is sent to the temperature control component corresponding to the current operating mode.
8. A temperature control device for a vehicle-mounted refrigerator, characterized in that, include: The temperature difference acquisition module is used to acquire the internal temperature of the box collected by the first temperature sensor set inside the box, and to determine the temperature difference between the preset target temperature and the internal temperature of the box. The mode determination module is used to compare the temperature difference with a preset positive threshold and / or negative threshold, and determine the current working mode based on the comparison result. The working mode includes a heating mode and a cooling mode. The compensation query module is used to obtain a set of temperature compensation parameters corresponding to the preset target temperature based on a preset temperature compensation parameter mapping table. The drive adjustment module is used to drive the temperature adjustment component corresponding to the current working mode to perform temperature adjustment actions according to the temperature compensation parameter group.
9. An electronic device comprising a central processing unit and a memory, characterized in that, The central processing unit is used to invoke and run a computer program stored in the memory to perform the steps of the method as described in any one of claims 1 to 7.
10. A non-volatile storage medium, characterized in that, It stores, in the form of computer-readable instructions, a computer program implemented according to any one of claims 1 to 7, which, when invoked by a computer, executes the steps included in the corresponding method.
