Methods, apparatus, devices and computer-readable media for expanding dual temperature controller ports

CN119002228BActive Publication Date: 2026-08-14GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0004]本申请提供了一种双温控器端口拓展方法、装置、设备及计算机可读介质,以解决上述“通过硬件改造的方式进行温控器的接口拓展导致拓展成本高,便利性低”的技术问题

Benefits of technology

[0016]This application extends new functional interfaces to the secondary temperature controller by distinguishing between primary and secondary wired controllers within the program. Data from these functional interfaces is synchronized to the corresponding temperature controller function ports via communication, effectively doubling the number of functional interfaces. Flexible port function configuration allows for flexible configuration of the signal output ports of the primary and secondary temperature controllers according to user needs, meeting the requirements of different application scenarios. The system determines whether the communication protocol between the primary and secondary temperature controllers supports the data flags of the expanded port functions, thus deciding whether the corresponding logic should be executed by the primary or secondary temperature controller, significantly reducing the workload of manual configuration and debugging. After confirming communication protocol support, the primary temperature controller transmits the data flags of the port functions to the secondary temperature controller, or synchronizes the signal status to the secondary temperature controller while the primary temperature controller executes its logic, ensuring data consistency and real-time performance between the two. Whether the primary or secondary temperature controller executes the port function logic, it achieves precise temperature control management by retrieving and executing logic control instructions and determining the opening and closing of the signal output ports based on the execution results. The entire expansion process does not require changes to the hardware circuit design or molds, reducing costs and avoiding compatibility issues that may arise from hardware modifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002228B_ABST
    Figure CN119002228B_ABST
Patent Text Reader

Abstract

This application relates to a method, apparatus, device, and computer-readable medium for expanding ports of a dual-temperature controller. The method includes: configuring port functions corresponding to the signal output ports of a main temperature controller and a secondary temperature controller according to user requirements; determining whether a data flag bit for the port function exists in the communication protocol between the main and secondary temperature controllers; if it exists, transmitting the data flag bit to the secondary temperature controller via the main temperature controller based on the communication protocol; executing the port function logic on the secondary temperature controller to determine the opening and closing of the signal output port corresponding to the port function; if it does not exist, executing the port function logic on the main temperature controller to determine the opening and closing of the signal output port corresponding to the port function; if the port function is configured on the secondary temperature controller, synchronizing the signal status of the port function to the secondary temperature controller. This application solves the technical problem that expanding the functional ports of a dual-temperature controller can only be achieved by changing the hardware structure, resulting in high expansion costs and low convenience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of port expansion technology, and in particular to a method, apparatus, device and computer-readable medium for expanding ports of a dual thermostat. Background Technology

[0002] A thermostat is an electronic device that controls the operation of equipment by changing the operating state of its internal electronic components based on changes in the ambient temperature, thereby controlling the start and stop of heating or cooling equipment to achieve a preset temperature value. Currently, the limited number of 24V functional interfaces on thermostats directly restricts their functional expandability. With increasing application demands, traditional methods mainly involve modifying hardware circuit design and molds to add interfaces, which is not only time-consuming and labor-intensive but also increases the complexity and cost of product updates and iterations, and may also cause compatibility issues. While interface expansion boards or adapter boxes have emerged to address this dilemma, they still require customized circuit design and fail to fundamentally simplify the process and reduce costs. Therefore, there is an urgent need for a solution that can flexibly and efficiently expand functional interfaces without altering the original thermostat design, while ensuring product compatibility and ease of upgrades.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This application provides a method, apparatus, device, and computer-readable medium for expanding dual thermostat ports to solve the aforementioned technical problem of "high expansion cost and low convenience due to hardware modification for expanding thermostat interfaces".

[0005] According to one aspect of the embodiments of this application, this application provides a dual-thermostat port expansion method, comprising: configuring port functions corresponding to the signal output ports of a main thermostat and a secondary thermostat according to user requirements; determining whether a data flag bit for the port function exists in the communication protocol between the main thermostat and the secondary thermostat; if it exists, transmitting the data flag bit to the secondary thermostat through the main thermostat based on the communication protocol; executing the logic of the port function through the secondary thermostat to determine the opening and closing of the signal output port corresponding to the port function; if it does not exist, executing the logic of the port function through the main thermostat to determine the opening and closing of the signal output port corresponding to the port function; if the port function is configured on the secondary thermostat, synchronizing the signal state of the port function to the secondary thermostat.

[0006] Optionally, configuring the port functions corresponding to the signal output ports of the main thermostat and the auxiliary thermostat according to user needs includes: determining user needs; setting the port functions of the main thermostat and the auxiliary thermostat according to the user needs; and configuring the communication protocol between the main thermostat and the auxiliary thermostat based on the port functions.

[0007] Optionally, determining whether the communication protocol between the main thermostat and the auxiliary thermostat contains the data flag bit of the port function includes: obtaining the communication protocol between the main thermostat and the auxiliary thermostat; parsing the communication protocol to obtain all the data flag bits contained in the communication protocol; matching all the data flag bits with the data flag bits of the port function to be expanded; if the match is successful, the communication protocol contains the data flag bit of the port function to be expanded; if the match fails, the communication protocol does not contain the data flag bit of the port function to be expanded.

[0008] Optionally, transmitting the data flag bit to the secondary temperature controller via the primary temperature controller based on the communication protocol includes: packaging the data flag bit of the port function into a data packet in a format supported by the communication protocol; sending the data packet to the secondary temperature controller via the primary temperature controller based on the communication protocol; and parsing the data packet after receiving it, and updating the configuration information of the internal port function of the secondary temperature controller.

[0009] Optionally, the step of determining whether to open or close the signal output port corresponding to the port function by executing the logic of the port function through the auxiliary temperature controller includes: retrieving the logic control instruction corresponding to the port function; executing the logic control instruction through the auxiliary temperature controller; and determining whether to open or close the signal output port corresponding to the port function based on the execution result of the logic control instruction.

[0010] Optionally, the step of determining whether to open or close the signal output port corresponding to the port function by executing the logic of the port function through the main temperature controller includes: retrieving the logic control instruction corresponding to the port function; executing the logic control instruction through the main temperature controller; and determining whether to open or close the signal output port corresponding to the port function based on the execution result of the logic control instruction.

[0011] Optionally, if the port function is configured on the secondary thermostat, then synchronizing the signal status of the port function to the secondary thermostat includes: determining that the port function is configured on the secondary thermostat; retrieving the signal status corresponding to the port function; and synchronizing the signal status of the port function to the secondary thermostat through the primary thermostat.

[0012] According to another aspect of the embodiments of this application, this application provides a dual-thermostat port expansion device, including: a function configuration module, used to configure port functions corresponding to the signal output ports of the main thermostat and the auxiliary thermostat according to user needs; a data judgment module, used to determine whether the communication protocol between the main thermostat and the auxiliary thermostat has a data flag bit for the port function; a data transmission module, used to transmit the data flag bit to the auxiliary thermostat through the main thermostat based on the communication protocol; a first logic judgment module, used to determine the opening and closing of the signal output port corresponding to the port function by executing the logic of the port function through the auxiliary thermostat; a second logic judgment module, used to determine the opening and closing of the signal output port corresponding to the port function by executing the logic of the port function through the main thermostat; and a signal synchronization module, used to synchronize the signal status of the port function to the auxiliary thermostat when the port function is configured on the auxiliary thermostat.

[0013] According to another aspect of the embodiments of this application, this application provides an electronic device, including a memory, a processor, a communication interface and a communication bus. The memory stores a computer program that can run on the processor. The memory and the processor communicate through the communication bus and the communication interface. When the processor executes the computer program, it implements the steps of the above-described dual thermostat port expansion method.

[0014] According to another aspect of the embodiments of this application, this application also provides a computer-readable medium having processor-executable non-volatile program code that causes the processor to execute the above-described dual thermostat port expansion method.

[0015] Compared with related technologies, the technical solutions provided in this application have the following advantages:

[0016] This application extends new functional interfaces to the secondary temperature controller by distinguishing between primary and secondary wired controllers within the program. Data from these functional interfaces is synchronized to the corresponding temperature controller function ports via communication, effectively doubling the number of functional interfaces. Flexible port function configuration allows for flexible configuration of the signal output ports of the primary and secondary temperature controllers according to user needs, meeting the requirements of different application scenarios. The system determines whether the communication protocol between the primary and secondary temperature controllers supports the data flags of the expanded port functions, thus deciding whether the corresponding logic should be executed by the primary or secondary temperature controller, significantly reducing the workload of manual configuration and debugging. After confirming communication protocol support, the primary temperature controller transmits the data flags of the port functions to the secondary temperature controller, or synchronizes the signal status to the secondary temperature controller while the primary temperature controller executes its logic, ensuring data consistency and real-time performance between the two. Whether the primary or secondary temperature controller executes the port function logic, it achieves precise temperature control management by retrieving and executing logic control instructions and determining the opening and closing of the signal output ports based on the execution results. The entire expansion process does not require changes to the hardware circuit design or molds, reducing costs and avoiding compatibility issues that may arise from hardware modifications. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.

[0019] Figure 1 This is a schematic flowchart of a dual-temperature controller port expansion method according to an embodiment of this application;

[0020] Figure 2 This is a schematic diagram illustrating the connection method between the main temperature controller and the auxiliary temperature controller according to an embodiment of this application;

[0021] Figure 3 This is a block diagram of a dual-temperature controller port expansion device according to an embodiment of this application;

[0022] Figure 4 This is a schematic diagram of an optional electronic device structure provided in an embodiment of this application. Detailed Implementation

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

[0024] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustration and has no specific meaning in itself. Therefore, "module" and "part" may be used interchangeably.

[0025] In related technologies, the expansion of the functional ports of temperature controllers is mainly achieved through hardware modification. This method of expanding functional ports is costly and inconvenient.

[0026] To address the problems mentioned in the background art, according to one aspect of an embodiment of this application, reference is made to... Figure 1 As shown, a method for expanding the function ports of a dual temperature controller is provided, including:

[0027] Step S102: Configure the port functions corresponding to the signal output ports of the main temperature controller and the auxiliary temperature controller according to user requirements.

[0028] Further, step S102 includes:

[0029] Determine user needs;

[0030] Configure the port functions of the main and auxiliary temperature controllers according to user needs;

[0031] This embodiment primarily expands the functional ports of a dual-temperature controller. This expansion is achieved by synchronizing the functional port data to the dual-temperature controller's functional interface via communication. The dual-temperature controller mainly consists of a main temperature controller and a secondary temperature controller, with the main temperature controller being a host computer. In this embodiment, the control function signals are synchronized through communication between the secondary temperature controller and the host computer. When new functions need to be added to the dual-temperature controller, the hardware interface of the dual-temperature controller does not need to be modified. First, user requirements are determined. The user's specific requirements for the temperature controller's functional ports are collected through the user interface, including the devices the user wants the ports to control, such as humidifiers, dehumidifiers, and air conditioners, as well as the control logic for these devices. The control logic includes automatic switching of temperature, humidity, and other conditions. After obtaining the user's requirements, corresponding functions are assigned to each port of the main and secondary temperature controllers according to these requirements, including recording the configuration information of each port in the internal database of the temperature controller. Since the main and secondary temperature controllers need to maintain synchronization, the configured port function information needs to be shareable or synchronized between the two temperature controllers. After determining the port function of each port, the communication protocol between the main and auxiliary temperature controllers is configured according to the port function. This includes determining the information that needs to be transmitted between the two temperature controllers, including port function configuration information, real-time status information, and control commands. Configuring the communication protocol is crucial to ensuring that the two temperature controllers can efficiently and accurately synchronize information. By properly configuring the communication protocol, redundancy and errors in data transmission can be reduced, improving the overall performance and stability of the system.

[0032] Specifically, the main temperature controller a includes n 24V signal output ports, namely X1, ..., X... n The secondary temperature controller b also includes n 24V signal output ports, namely X n+1 , ..., X 2n Each signal output terminal can be connected to a functional device. However, the signal output ports of the secondary thermostat and the primary thermostat have the same function. Therefore, the 2n signal output ports of the dual thermostat can achieve n functions, including humidifiers, dehumidifiers, temperature control systems, etc., configured according to user needs (X1, ..., X...). 2n The port function of the signal output port. (See reference) Figure 2The diagram shows the connection methods of the main temperature controller a and the auxiliary temperature controller b before and after port function expansion of the dual temperature controllers. Before port function expansion, the signal output terminals of the auxiliary temperature controller b and the main temperature controller a were connected together. After port function expansion via communication synchronization, the signal output ports of the auxiliary temperature controller b and the main temperature controller a are no longer connected together. However, this was not achieved by directly changing the hardware connection method between the main temperature controller a and the auxiliary temperature controller b, but rather by changing the connection method through the program.

[0033] In this embodiment, for example, a user wants to control six different environmental devices in a smart home environment through a main thermostat and a secondary thermostat, including a humidifier, dehumidifier, hot air blower, air purifier, smart fan, and underfloor heating. However, the main thermostat and the secondary thermostat each only have three signal output ports. The three power signal output ports of the main thermostat are X1, X2, and X3, and the three signal output ports of the secondary thermostat are X4, X5, and X6. Signal output ports X1 and X4 have the same function, corresponding to the humidifier; signal output ports X2 and X5 have the same function, corresponding to the dehumidifier; and signal output ports X3 and X6 have the same function, corresponding to the hot air blower. The user wants to expand the functionality of the main thermostat to control the remaining air purifier, smart fan, and underfloor heating. The port functions corresponding to signal output ports X1, X2, X3, X4, X5, and X6 are reconfigured. For example, in this embodiment, the port functions of the three signal output ports of the main thermostat are reconfigured, while the original port functions of the three signal output ports are retained for the corresponding secondary thermostat. The correspondence between each reconfigured signal output port and its corresponding port signal is as follows: signal output port X1 corresponds to an air purifier, signal output port X2 corresponds to a smart fan, signal output port X3 corresponds to a floor heating system, signal output port X4 corresponds to a humidifier, signal output port X5 corresponds to a dehumidifier, and signal output port X6 corresponds to a hot air blower. The correspondence between the signal output ports and functional devices is set in the communication protocol. The communication protocol defines the data flag bits and control codes corresponding to the new port functions of each functional device, which are used to represent and transmit the control signals of the main thermostat to the newly added devices.

[0034] In the above embodiments, users can freely configure the function of each port according to actual needs, without being limited by the preset functions of the thermostat, enabling the thermostat to adapt to more diverse application scenarios and user needs. Expanding the function ports of the thermostat and allowing users to customize port functions greatly facilitates the expansion of the thermostat's functionality. The thermostat's functionality can be easily expanded through software upgrades or configuration adjustments when new devices are added or user needs change. By rationally configuring the communication protocol between the main and auxiliary thermostats, a high degree of consistency in function execution between the two thermostats can be ensured, improving system stability and reliability, and allowing users to view and control the entire system status from either thermostat. Function expansion through software configuration and communication protocol adjustments significantly reduces modification and time costs, and also reduces resource waste and environmental pollution because it does not require hardware replacement. By reconfiguring the signal output port function of the main thermostat, control of more types of environmental devices such as air purifiers, smart fans, and underfloor heating can be achieved without adding additional hardware, significantly improving the functional flexibility and scalability of the thermostat system and meeting users' diverse smart home control needs. While retaining the original functions of the secondary thermostat, the idle port resources of the primary thermostat are fully utilized, avoiding redundant construction and resource waste. New data flags and control codes defined in the communication protocol ensure information synchronization and collaborative operation between the primary and secondary thermostats, as well as between them and various environmental devices, contributing to the construction of a more stable, reliable, and efficient smart home environment control system.

[0035] Step S104: Determine whether the communication protocol between the main temperature controller and the auxiliary temperature controller has a data flag bit for port function.

[0036] Further, step S104 includes:

[0037] Obtain the communication protocol between the main temperature controller and the auxiliary temperature controller;

[0038] Parse the communication protocol to obtain all data flags contained in the communication protocol;

[0039] Match all data flags with the data flags of the port functions to be expanded;

[0040] If a match is successful, the communication protocol has a data flag indicating that a port function needs to be expanded; if a match fails, the communication protocol does not have a data flag indicating that a port function needs to be expanded.

[0041] Specifically, determine whether the communication protocol between the main temperature controller and the auxiliary temperature controller has a signal output port X. aThe data flags corresponding to the port functions are determined by reading the communication protocol file stored in the device. This retrieves all the rules and conventions required for communication between the main and auxiliary temperature controllers. The communication protocol contains multiple data fields and flags used to transmit various information between devices. The communication protocol is parsed to identify and extract all data flags representing different information, including device status, control commands, and sensor data. All data flags are then compared with the signal output port X to be expanded. a The data flags for the port functions are matched. If a match is found, the communication protocol has data flags for the port functions to be expanded; otherwise, the communication protocol does not have data flags for the port functions to be expanded. In this embodiment, the current communication protocol specification is extracted from the thermostat's configuration file, and a custom script is used to parse the protocol document, listing all defined data flags and their functional descriptions. The data flags required for the new functions (air purifier, smart fan, floor heating) are compared with the data flags in the existing protocol. If a matching data flag is found, the match is successful; otherwise, the match fails. The matching of data flags is achieved by redefining unused flags or adding new flags.

[0042] In the above implementation, by parsing and matching the data flag bits in the communication protocol, it is possible to quickly determine whether the communication protocol supports the newly added port function, thereby avoiding the tedious process of manual inspection and configuration and improving configuration efficiency. A rigorous matching process ensures that the newly added port function will not conflict with or be incompatible with the existing communication protocol, thus guaranteeing the stability and reliability of the system. By determining in advance whether the communication protocol supports the new function and taking corresponding measures to resolve the problem, risks can be effectively reduced. Supporting flexible port function expansion can meet diverse user needs and provide users with a more convenient and efficient temperature control experience.

[0043] In step S106, if the data flag is present, the main temperature controller transmits the data flag to the secondary temperature controller based on the communication protocol.

[0044] Further, step S106 includes:

[0045] Pack the data flags of the port function into a data packet in a format supported by the communication protocol;

[0046] The main temperature controller sends data packets to the secondary temperature controller based on a communication protocol.

[0047] After receiving the data packet, the secondary temperature controller parses it and updates the configuration information of the internal port functions of the secondary temperature controller.

[0048] Specifically, the signal output port X aThe data flags for the port function are packaged according to the format specified in the communication protocol, including the addition of header information and checksums. The header information includes at least the data packet type and length to ensure the integrity and accuracy of the data packet during transmission. By packaging it into a format supported by the communication protocol, the data packet can be successfully transmitted through the communication network. After the data packet is prepared, the main temperature controller sends the data packet to the secondary temperature controller through the communication network via the corresponding communication interface, including RS-485 and WI-FI, according to the communication protocol. When the secondary temperature controller receives the data packet, it first verifies the integrity and correctness of the data packet. If the verification passes, the secondary temperature controller parses the data packet according to the communication protocol and extracts the signal output port X. a The data flags for the port functions are then used by the secondary temperature controller to update the configuration information of its internal port functions, ensuring functional synchronization with the primary temperature controller.

[0049] In the above implementation, the main thermostat packages and transmits the port function data flags to the secondary thermostat in a format supported by the communication protocol. This achieves real-time synchronization of port function configuration information between the main and secondary thermostats, shortening configuration time and improving work efficiency. The data packets undergo rigorous formatting and verification before transmission. The packaging, sending, receiving, and parsing processes ensure that the port function data flags are not lost or damaged during transmission, thus guaranteeing data consistency between the main and secondary thermostats and ensuring data integrity and accuracy during transmission. Simultaneously, the use of the communication protocol optimizes the data transmission process, improves data transmission efficiency, and makes information exchange between the main and secondary thermostats faster and more reliable. By achieving functional synchronization between the main and secondary thermostats, users can be provided with a more consistent and convenient temperature control experience, achieving comprehensive temperature control and management without the need for separate configuration of two thermostats.

[0050] Step S108: The logic of the auxiliary temperature controller executing the port function is used to determine the opening and closing of the signal output port corresponding to the port function.

[0051] Further, step S108 includes:

[0052] Retrieve the logic control instructions corresponding to the port function;

[0053] Logic control commands are executed via the secondary temperature controller;

[0054] The signal output port corresponding to the port function is determined to be enabled or disabled based on the execution result of the logic control instruction.

[0055] Specifically, the secondary thermostat retrieves the corresponding logic control instructions from its internal database or control logic based on the previously configured port functions. These instructions define the execution method of the port function under specific conditions, including the timing of opening or closing the signal output port. After retrieving the logic control instructions, the secondary thermostat executes the corresponding operations according to the instructions, including reading sensor data, performing condition checks, and sending control signals. By executing these logic control instructions, the secondary thermostat can achieve precise control of external devices. After executing the logic control instructions, the secondary thermostat determines whether to open or close the signal output port corresponding to the port function based on the execution result. If the execution result meets the opening condition, the secondary thermostat sends an opening signal to the corresponding port; if the closing condition is met, it sends a closing signal. Since the direct operation is performed on the primary thermostat, the secondary thermostat needs to send the logic control instructions or status information to the primary thermostat via a communication protocol. After receiving this information, the main thermostat changes the mapping of its port functions accordingly through logic control commands, so that the ports originally used to control humidifiers, dehumidifiers and hot air blowers can "simulate" the control of air purifiers, smart fans and floor heating.

[0056] In the above embodiments, by executing precise logic control commands, the secondary thermostat can achieve precise control of external devices, helping to reduce errors and unnecessary energy consumption, and improving the control accuracy of the entire temperature control system. The execution result of the logic control commands directly determines the opening and closing state of the signal output port, thereby ensuring the stable operation of the system. Even in complex and changing environments, it can make accurate judgments and controls according to preset logic. By achieving precise port function control and signal output port opening and closing, a more comfortable and convenient temperature control experience can be provided to users. Users can set the functions of the thermostat according to their actual needs and understand the operating status of the system through real-time feedback.

[0057] In step S110, if the function does not exist, the main temperature controller executes the logic of the port function to determine whether the signal output port corresponding to the port function is open or closed.

[0058] Further, step S110 includes:

[0059] Retrieve the logic control instructions corresponding to the port function;

[0060] Execute logic control commands through the main temperature controller;

[0061] The signal output port corresponding to the port function is determined to be enabled or disabled based on the execution result of the logic control instruction.

[0062] Specifically, when there is no signal output port X in the communication protocol aWhen the data flag of a port function is set, the main thermostat retrieves the logic control instruction corresponding to that port function from the control logic. The logic control instruction defines the execution logic of the port function under specific conditions, including when to open or close the signal output port. After retrieving the logic control instruction, the main thermostat executes the corresponding operation according to the instruction's requirements, including reading the system status, performing condition judgments, sending control signals to the secondary thermostat, or directly controlling external devices. By executing the above instructions, the main thermostat can control the port function and determine the open / closed state of the signal output port. After executing the logic control instruction, the main thermostat determines whether to open or close the signal output port corresponding to the port function based on the execution result. After executing the logic control instruction, the ports originally used by the main thermostat to control humidifiers, dehumidifiers, and hot air blowers are mapped to new ports capable of controlling air purifiers, smart fans, and floor heating. If the execution result meets the opening condition, the main thermostat will send the corresponding control signal; if the closing condition is met, it will perform the corresponding closing operation. For example, if the execution result of the logic control instruction is that signal output ports X1, X2, and X3 are open, then the port functions of signal output ports X1, X2, and X3 will be modified to the corresponding air purifier, smart fan, and floor heating.

[0063] In the above embodiments, when the secondary temperature controller cannot handle a specific port function, the primary temperature controller can take over and execute the corresponding logic, thereby enhancing the redundancy and reliability of the entire temperature control system and helping to avoid the impact of a single point of failure on the entire system. Because the primary temperature controller can take over functions that the secondary temperature controller cannot handle, the entire temperature control system is more flexible in terms of function configuration. Users can selectively enable or disable certain functions according to actual needs without worrying about system incompatibility. When the secondary temperature controller malfunctions or cannot handle a specific function, users can easily take over these functions through the primary temperature controller, thus simplifying the fault handling process and helping to reduce downtime and maintenance costs. When the data flag bit for the port function of a specific port Xa is not present in the communication protocol, the primary temperature controller can automatically retrieve the corresponding logic control instructions from the control logic, dynamically adapting to different control requirements and environmental changes, improving the system's intelligence and flexibility. The logic control instructions not only define the execution logic of the port function but also include complex operations such as condition judgment and system status reading, enabling the primary temperature controller to make intelligent decisions based on real-time data and optimize the control effect of functional devices. By remapping port functions, the main thermostat transforms the ports originally used to control humidifiers, dehumidifiers, and hot air blowers into new ports that can control air purifiers, smart fans, and floor heating, thus improving the utilization efficiency of port resources.

[0064] Step S112: If the port function is configured on the secondary temperature controller, then synchronize the signal status of the port function to the secondary temperature controller.

[0065] Further, step S112 includes:

[0066] The port detection function is configured on the secondary temperature controller;

[0067] Retrieve the signal status corresponding to the port function;

[0068] The main temperature controller synchronizes the signal status of the port function to the secondary temperature controller.

[0069] Specifically, before synchronizing the signal status, it is first necessary to confirm the signal output port X. a The port function is indeed configured on the secondary temperature controller, and is accomplished by checking the status information of the secondary temperature controller to ensure the accuracy and effectiveness of synchronous operation. Once the signal output port X is confirmed... a The port function is configured on the secondary thermostat. The next step is to retrieve the current signal status of that port function, typically involving reading sensor data and control signals associated with that port function to obtain the most accurate signal status information. After obtaining the port function's signal status, the primary thermostat transmits it to the secondary thermostat via a communication protocol. Upon receiving the signal status, the secondary thermostat updates its internal status record to ensure consistency with the primary thermostat. When it is determined that a port function change from the primary thermostat needs to be synchronized to the secondary thermostat, the primary thermostat packages the port function change information into synchronization data. This synchronization data includes the changed port number, the original function, and the new function. This data may include the changed port number, the original function, and the new function. The primary thermostat sends the synchronization data to the secondary thermostat via the communication protocol. Upon receiving the synchronization data, the secondary thermostat parses it and updates its internal status to reflect the change in the primary thermostat's port function.

[0070] In the above embodiments, by synchronizing the signal status of the port function to the secondary thermostat in real time, the consistency of the entire temperature control system's status can be ensured, helping to reduce control errors and malfunctions caused by inconsistent status. When the port function is configured on the secondary thermostat, synchronizing the signal status through the primary thermostat can further improve the system's reliability. Even if the secondary thermostat malfunctions or malfunctions under certain circumstances, the primary thermostat can still maintain accurate control of the system status and make corresponding control decisions. Through a clear synchronization mechanism and process, the control flow of the temperature control system can be optimized. When the signal status of the port function changes, it can quickly respond and update the status information, thereby achieving precise control of external devices. Through the logic control instructions configured inside the secondary thermostat, precise control of external devices can be achieved. The logic control instructions not only define the execution mode of the port function under specific conditions but also allow dynamic adjustment of the control strategy based on real-time data, thus providing a more flexible and intelligent functional port expansion scheme for the thermostat. When it is necessary to add new port functions or control new external devices, this can be achieved by simply configuring new logic control instructions on the secondary temperature controller without making large-scale changes to the hardware. This allows for rapid adaptation to different usage scenarios and needs, enhancing the scalability and maintainability of the system.

[0071] According to another aspect of the embodiments of this application, such as Figure 3 As shown, a dual-temperature controller function port expansion device is provided, comprising:

[0072] The function configuration module 301 is used to configure the port functions corresponding to the signal output ports of the main temperature controller and the auxiliary temperature controller according to user requirements.

[0073] The data judgment module 303 is used to determine whether there is a data flag bit for port function in the communication protocol between the main temperature controller and the auxiliary temperature controller;

[0074] Data transmission module 305 is used to transmit data flag bits from the main temperature controller to the auxiliary temperature controller based on a communication protocol;

[0075] The first logic judgment module 307 is used to perform the logic of the port function through the auxiliary temperature controller and to judge the opening and closing of the signal output port corresponding to the port function.

[0076] The second logic judgment module 309 is used to determine the opening and closing of the signal output port corresponding to the port function by executing the logic of the port function through the main temperature controller.

[0077] The signal synchronization module 311 is used to synchronize the signal status of the port function to the secondary temperature controller when the port function is configured on the secondary temperature controller.

[0078] It should be noted that the function configuration module 301 in this embodiment can be used to execute step S102 in this application embodiment, the data judgment module 303 in this embodiment can be used to execute step S104 in this application embodiment, the data transmission module 305 in this embodiment can be used to execute step S106 in this application embodiment, the first logic judgment module 307 in this embodiment can be used to execute step S108 in this application embodiment, the second logic judgment module 309 in this embodiment can be used to execute step S110 in this application embodiment, and the signal synchronization module 311 in this embodiment can be used to execute step S112 in this application embodiment.

[0079] According to another aspect of the embodiments of this application, this application provides an electronic device, such as... Figure 4 As shown, the system includes a memory 401, a processor 403, a communication interface 405, and a communication bus 407. The memory 401 stores a computer program that can run on the processor 403. The memory 401 and the processor 403 communicate through the communication interface 405 and the communication bus 407. When the processor 403 executes the computer program, it implements the steps of the above method.

[0080] The memory and processor in the aforementioned electronic devices communicate with each other via a communication bus and communication interface. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc.

[0081] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0082] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0083] According to another aspect of the embodiments of this application, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of any of the above embodiments.

[0084] Optionally, in embodiments of this application, the computer-readable medium is configured to store program code for a processor to perform the following steps:

[0085] Step S102: Configure the port functions corresponding to the signal output ports of the main temperature controller and the auxiliary temperature controller according to user requirements.

[0086] Step S104: Determine whether the communication protocol between the main temperature controller and the auxiliary temperature controller has a data flag bit for port function.

[0087] In step S106, if the data flag is present, the main temperature controller transmits the data flag to the secondary temperature controller based on the communication protocol.

[0088] Step S108: The logic of the auxiliary temperature controller executing the port function is used to determine the opening and closing of the signal output port corresponding to the port function.

[0089] In step S110, if the function does not exist, the main temperature controller executes the logic of the port function to determine whether the signal output port corresponding to the port function is open or closed.

[0090] Step S112: If the port function is configured on the secondary temperature controller, then synchronize the signal status of the port function to the secondary temperature controller.

[0091] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated here.

[0092] In specific implementation, the embodiments of this application can be referred to the above embodiments and have corresponding technical effects.

[0093] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.

[0094] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.

[0095] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0096] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0097] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0098] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0099] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0100] If the aforementioned function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks. It should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. In the absence of further restrictions, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0101] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for expanding dual-temperature controller ports, characterized in that, include: Configure the port functions corresponding to the signal output ports of the main temperature controller and the auxiliary temperature controller according to user requirements; Determine whether the communication protocol between the main temperature controller and the auxiliary temperature controller contains the data flag bit of the port function; If present, the main temperature controller transmits the data flag bit to the secondary temperature controller based on the communication protocol. The auxiliary temperature controller executes the logic of the port function to determine the opening and closing of the signal output port corresponding to the port function; If it does not exist, the main temperature controller executes the logic of the port function to determine the opening and closing of the signal output port corresponding to the port function; If the port function is configured on the secondary temperature controller, then the signal status of the port function is synchronized to the secondary temperature controller; The method further includes: when the secondary temperature controller is unable to handle the current port function, the primary temperature controller takes over and executes the control logic of the current port function; The logic for executing the port function through the secondary temperature controller, and determining the opening or closing of the signal output port corresponding to the port function, includes: retrieving the logic control instruction corresponding to the port function; executing the logic control instruction through the secondary temperature controller; and determining whether to open or close the signal output port corresponding to the port function based on the execution result of the logic control instruction; or, The logic control instruction corresponding to the port function is retrieved; the logic control instruction is executed by the main temperature controller; and the signal output port corresponding to the port function is turned on or off based on the execution result of the logic control instruction. The step of synchronizing the signal status of the port function to the secondary temperature controller if the port function is configured on the secondary temperature controller includes: determining that the port function is configured on the secondary temperature controller; retrieving the signal status corresponding to the port function; and synchronizing the signal status of the port function to the secondary temperature controller through the primary temperature controller.

2. The dual-temperature controller port expansion method according to claim 1, characterized in that, The configuration of the signal output ports of the main and auxiliary temperature controllers according to user needs includes: Determine user needs; Configure the port functions of the main and auxiliary temperature controllers according to the user's requirements.

3. The dual-temperature controller port expansion method according to claim 1, characterized in that, The step of determining whether the communication protocol between the main temperature controller and the auxiliary temperature controller has the data flag bit for the port function includes: Obtain the communication protocol between the main temperature controller and the auxiliary temperature controller; The communication protocol is parsed to obtain all the data flag bits contained in the communication protocol; Match all the data flag bits with the data flag bits of the port functions to be expanded; If a match is successful, the communication protocol contains the data flag bit for the port function to be expanded; if a match fails, the communication protocol does not contain the data flag bit for the port function to be expanded.

4. The dual-temperature controller port expansion method according to claim 1, characterized in that, The step of transmitting the data flag bit from the main temperature controller to the secondary temperature controller based on the communication protocol includes: Pack the data flags of the port function into a data packet in a format supported by the communication protocol; The main temperature controller sends the data packet to the secondary temperature controller based on the communication protocol. After receiving the data packet, the secondary temperature controller parses it and updates the configuration information of the internal port functions of the secondary temperature controller.

5. A dual-temperature controller port expansion device, applicable to the dual-temperature controller port expansion method as described in any one of claims 1 to 4, characterized in that, include: The function configuration module is used to configure the port functions corresponding to the signal output ports of the main temperature controller and the auxiliary temperature controller according to user needs. The data judgment module is used to determine whether the communication protocol between the main temperature controller and the auxiliary temperature controller has the data flag bit of the port function; The data transmission module is used to transmit the data flag bit to the auxiliary temperature controller via the main temperature controller based on the communication protocol; The first logic judgment module is used to determine the opening and closing of the signal output port corresponding to the port function by executing the logic of the port function through the auxiliary temperature controller; The second logic judgment module is used to determine the opening and closing of the signal output port corresponding to the port function by executing the logic of the main temperature controller. A signal synchronization module is used to synchronize the signal status of the port function to the secondary temperature controller when the port function is configured on the secondary temperature controller. The logic for executing the port function through the secondary temperature controller, and determining the opening or closing of the signal output port corresponding to the port function, includes: retrieving the logic control instruction corresponding to the port function; executing the logic control instruction through the secondary temperature controller; and determining whether to open or close the signal output port corresponding to the port function based on the execution result of the logic control instruction; or, The logic control instruction corresponding to the port function is retrieved; the logic control instruction is executed by the main temperature controller; and the signal output port corresponding to the port function is turned on or off based on the execution result of the logic control instruction. The step of synchronizing the signal status of the port function to the secondary temperature controller if the port function is configured on the secondary temperature controller includes: determining that the port function is configured on the secondary temperature controller; retrieving the signal status corresponding to the port function; and synchronizing the signal status of the port function to the secondary temperature controller through the primary temperature controller.

6. An electronic device comprising a memory, a processor, a communication interface, and a communication bus, wherein the memory stores a computer program executable on the processor, and the memory and the processor communicate via the communication bus and the communication interface, characterized in that, When the processor executes the computer program, it implements the dual-temperature controller port expansion method according to any one of claims 1 to 4.

7. A computer-readable medium having processor-executable non-volatile program code, characterized in that, The program code causes the processor to execute the dual thermostat port expansion method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • User defined port and protocol scheme for programmable logic controller

    CN1171851A