A method and system for electing a wire controller in a multi-connected machine, a wire controller, and a multi-connected machine
By introducing a wired controller election mechanism into the multi-unit system, the problems of resource waste and duplicate control cards after wired controller network configuration are solved, and orderly multi-unit network communication is realized, improving system reliability and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2026-03-17
AI Technical Summary
In multi-split systems, the wired controllers are all connected to the server after being configured with the network, resulting in wasted resources and the appearance of identical control cards on the APP, causing confusion for users.
By setting up a wire controller election mechanism, it is determined whether the wire controller is the main communication device. The main communication device establishes a connection with the server and manages other wire controllers. The backup communication device takes over the function when the main communication device fails, forming an orderly multi-unit network communication architecture.
This reduces the waste of server resources in receiving and sending data, avoids network congestion, improves system reliability and user experience, and ensures the continuity of multi-connected networks.
Smart Images

Figure CN119583289B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wired controller election technology in multi-split air conditioning networks, specifically to a method and system for electing wired controllers in multi-split air conditioning systems, a wired controller, and a multi-split air conditioning system. Background Technology
[0002] Multi-split air conditioning systems, with their flexible installation methods, zone control capabilities, and relatively high energy efficiency ratios, are suitable for buildings of various sizes and functions. In multi-split systems, the wired controller is an important device for enabling users to interact with the indoor units. It not only allows users to conveniently control the operating modes (such as cooling, heating, and dehumidification), temperature settings, and fan speed adjustments of the indoor units, but also provides feedback on the operating status of the indoor units to the users. The effective operation of the wired controller is crucial for improving the user experience and realizing intelligent control of multi-split systems.
[0003] In traditional multi-split air conditioning networks, when multiple indoor units are connected to a single wired controller, the indoor units only communicate with their respective wired controllers, and each wired controller can only control a single indoor unit. When the wired controller is connected to the network, the APP can only control a single wired controller, and thus control a single indoor unit.
[0004] However, with the development of technology, wired controllers no longer only communicate with the connected indoor units. The data they communicate with the indoor units includes data from the entire indoor unit network, thus enabling them to control all indoor units in the network. At the same time, if all wired controllers are connected to a server after being configured for network, the server will receive a lot of the same data, resulting in a waste of resources. Furthermore, the same control cards will appear on the APP, causing confusion for users.
[0005] Therefore, existing technologies still need further development. Summary of the Invention
[0006] The purpose of this invention is to overcome the above-mentioned technical deficiencies and provide a method and system for selecting wired controllers in multi-unit air conditioners, as well as wired controllers and multi-unit air conditioners, to solve the technical problem that currently, after wired controllers are configured to connect to the server, the server receives a lot of the same data, resulting in a waste of resources, and the same control cards appear on the APP, causing confusion for users.
[0007] To achieve the above-mentioned technical objectives, according to a first aspect of the present invention, the present invention provides a method for selecting a wired controller in a multi-split air conditioning system, applicable to wired controllers, wherein the multi-split air conditioning system includes multiple indoor units equipped with their own wired controllers, and the method includes:
[0008] The current wired controller determines whether it is the primary communication device based on the preset wired controller election mechanism;
[0009] If so, establish a communication connection between itself and the server, and control the other wired controllers in the multi-unit system;
[0010] Otherwise, it will be configured as a backup communication device for the currently elected primary communication device and will be subject to the primary communication device.
[0011] Specifically, all wired controllers and servers are connected via a bus. Before the current wired controller determines whether it is the master communication device according to a preset wired controller election mechanism, the process also includes:
[0012] After the current wired controller is powered on, it determines whether the user has configured its own network by listening to the bus data;
[0013] If so, determine whether it is the primary communication device according to the preset wired controller election mechanism;
[0014] Otherwise, it will mark itself as an unconfigured device, not participate in the preset wired controller election mechanism, and continue to listen to bus data.
[0015] Specifically, determining whether it is the primary communication device based on a preset wire controller election mechanism includes:
[0016] The current wired controller sends an election frame to the bus and determines whether there are other wired controllers sending election frames on the bus. If not, and the duration reaches the preset duration, it elects itself as the master communication device.
[0017] The duration is the time from the moment the wired controller is powered on to the current moment.
[0018] Specifically, the election frame includes its own election flag and WIFI signal value. If the current wired controller is elected as the primary communication device, the election flag of the current wired controller is assigned a first preset value. The method further includes:
[0019] If there are other wire controllers sending election frames on the bus, it is determined whether there is a wire controller whose election flag bit is the first preset value among all election frames. If not, it is determined whether the current wire controller's WIFI signal value is greater than the WIFI signal value of other wire controllers on the bus. Based on the determination result, it is determined whether the current wire controller elects itself as the master communication device.
[0020] Specifically, the method further includes:
[0021] If any wire controller has an election flag bit set to the first preset value in all election frames, then the duration of the current wire controller is reset to zero, the timing is restarted, and it is determined whether the election flag bit of the current wire controller is set to the first preset value.
[0022] If so, determine whether the current wired controller's WIFI signal value is greater than the WIFI signal value of other wired controllers on the bus, and determine whether the current wired controller should elect itself as the main communication device based on the determination result;
[0023] If not, then reassess whether the user has configured their network.
[0024] Specifically, determining whether the current wired controller's WIFI signal value is greater than the WIFI signal values of other wired controllers on the bus, and determining whether the current wired controller should elect itself as the master communication device based on the determination result, includes:
[0025] If the current wired controller's WIFI signal value is greater than the WIFI signal value of other wired controllers on the bus, then the current wired controller elects itself as the primary communication device, and the other wired controllers become backup communication devices.
[0026] If the current wired controller's WIFI signal value is less than or equal to the WIFI signal value of other wired controllers on the bus, then determine whether the current wired controller's WIFI signal value is less than the WIFI signal value of other wired controllers on the bus. If so, then the wired controller will select itself as the backup communication device.
[0027] Specifically, the election frame also includes the MAC address of the WIFI module in the wired controller, and the method further includes:
[0028] If the current wired controller's WIFI signal value is equal to the WIFI signal value of other wired controllers on the bus, then determine whether the MAC address value of the WIFI module in the current wired controller is greater than the MAC address value of other wired controllers. If so, then determine whether the current wired controller's duration has reached the preset duration.
[0029] If the current wired controller's duration reaches the preset duration, the current wired controller will elect itself as the primary communication device, and other wired controllers will serve as backup communication devices.
[0030] If the current duration of the wired controller has not reached the preset duration, it will continue to monitor the bus data until a master communication device is elected.
[0031] Specifically, determining whether the MAC address value of the WIFI module in the current wired controller is greater than the MAC address value of other wired controllers further includes:
[0032] If the MAC address of the WIFI module in the current wired controller is less than the MAC address of other wired controllers, then continue to listen to the bus data until a master communication device is elected.
[0033] According to a second aspect of the present invention, a system for electing a remote controller in a multi-unit air conditioning system is provided, comprising:
[0034] Acquisition module: used to acquire the preset wire controller election mechanism;
[0035] Control module: Used to determine whether the current wired controller is the main communication device; if so, it establishes a communication connection between itself and the server and controls the other wired controllers in the multi-unit system; otherwise, it configures itself as the backup communication device of the currently elected main communication device and is controlled by the main communication device.
[0036] According to a third aspect of the present invention, a wired controller is provided, the wired controller including a memory; and a processor, the memory storing computer-readable instructions, which, when executed by the processor, implement the above-described method for electing a wired controller in a multi-unit air conditioner.
[0037] According to a fourth aspect of the present invention, a multi-split air conditioning system is provided, the multi-split air conditioning system comprising: a plurality of indoor units, and a plurality of wired controllers; each indoor unit is connected to its respective wired controller via a bus.
[0038] Specifically, the multi-split system also includes:
[0039] The router is used to connect the wired controller to the server.
[0040] Beneficial effects:
[0041] This invention unifies the APP's control over the multi-connector network by establishing an election mechanism for the network controllers in the multi-connector network, reducing the waste of server resources in receiving and sending data. Simultaneously, it allows controllers with pass-through capabilities to be connected to the network simultaneously. Through a preset controller election mechanism, a master communication device is elected. Once elected, the master communication device establishes a communication connection with the server and manages other controllers, forming an orderly multi-connector network communication architecture. This avoids the situation where multiple controllers communicate with the server simultaneously and disorderly, reducing network congestion and preventing the server from receiving many identical data, thus significantly reducing resource waste. Furthermore, when the master communication device fails, a backup communication device can promptly take over its function, ensuring the continuity of multi-connector network communication, improving the reliability of the invention, and avoiding the technical problem of many identical control cards appearing on the APP due to the server receiving too much identical data, greatly enhancing the user experience. Attached Figure Description
[0042] Figure 1 This is a flowchart of the method for electing the wired controller in a multi-unit air conditioning system provided in a specific embodiment of the present invention;
[0043] Figure 2 This is a schematic diagram of the composition of the election system for the wired controller in a multi-unit air conditioner provided in a specific embodiment of the present invention;
[0044] Figure 3 This is a schematic diagram of the connection between the multi-unit machine and the APP communication network provided in a specific embodiment of the present invention;
[0045] Figure 4 This is a flowchart of the communication and election process between the wired controller and the server in a multi-unit network, provided in a specific embodiment of the present invention. Detailed Implementation
[0046] To enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Based on the embodiments in this application, other similar embodiments obtained by those skilled in the art without creative effort should all fall within the scope of protection of this application. Furthermore, directional terms mentioned in the following embodiments, such as "up," "down," "left," and "right," are only for reference to the directions in the accompanying drawings; therefore, the directional terms used are for illustrative purposes and not for limiting the invention.
[0047] The present invention will be further described below with reference to the accompanying drawings and preferred embodiments.
[0048] Example 1
[0049] Please see Figure 1 This embodiment provides a method for electing a wired controller in a multi-split air conditioning system, applicable to wired controllers. The multi-split air conditioning system includes multiple indoor units, each equipped with its own wired controller. The method includes:
[0050] The current wired controller determines whether it is the primary communication device based on the preset wired controller election mechanism;
[0051] If so, establish a communication connection between itself and the server, and control the other wired controllers in the multi-unit system;
[0052] Otherwise, it will be configured as a backup communication device for the currently elected primary communication device and will be subject to the primary communication device.
[0053] It is understandable that when multiple wired controllers with indoor network data pass-through function are connected in a multi-split air conditioning network, a preset wired controller election mechanism is used to select a single wired controller that communicates with the server, i.e., the main communication device. This allows each wired controller to be networked without wasting server data transmission resources, and also unifies the APP's control over the multi-split air conditioning network. This solves the technical problems of resource waste caused by multiple wired controllers connected to the server in the system, as well as the inconsistent control of air conditioning by the APP, and greatly improves the reliability and usability of the present invention.
[0054] See Figure 3A multi-split air conditioning system consists of multiple indoor units, each equipped with its own wired controller. Each indoor unit communicates via a communication cable or wireless connection. Each indoor unit is connected to a wired controller, and the wired controller can receive data from all indoor units and send data to the indoor unit network, thereby controlling all indoor units. A multi-split air conditioning system is a complex air conditioning system in which these indoor units are distributed in different spatial areas. This one-to-one configuration of indoor units and wired controllers establishes the basic control unit relationship in the multi-split system, ensuring that each indoor unit can be controlled independently to meet the personalized needs of different spaces for air conditioning operating parameters such as temperature, humidity, and fan speed.
[0055] See Figure 1 and Figure 3 In a multi-split air conditioning system, all wired controllers are divided into main communication devices, backup communication devices, and unconfigured devices. The main communication device is responsible for communicating with the application (APP) and controlling the entire indoor unit network and other wired controllers. The backup communication device listens for bus data and sends an election frame to the bus to select a new main communication device when the main communication device loses network access or malfunctions. The unconfigured devices are responsible for receiving bus data and waiting for network configuration. This setup enables effective interface between the multi-split system and the external control terminal (APP). Through the main communication device, users can easily centrally control the entire indoor unit network. The backup communication device ensures that the multi-split system can quickly resume normal operation when the main communication device fails, protecting the normal working environment of critical equipment and personnel. The unconfigured devices provide flexibility for the expansion of the multi-split system. When new indoor units and wired controllers need to be added to the system, they can first be connected to the bus as unconfigured devices before network configuration.
[0056] Specifically, all wired controllers and servers are connected via a bus. Before the current wired controller determines whether it is the master communication device according to a preset wired controller election mechanism, the process also includes:
[0057] After the current wired controller is powered on, it determines whether the user has configured its own network by listening to the bus data;
[0058] If so, determine whether it is the primary communication device according to the preset wired controller election mechanism;
[0059] Otherwise, it will mark itself as an unconfigured device, not participate in the preset wired controller election mechanism, and continue to listen to bus data.
[0060] Understandably, the wired controller can connect to a home or office router via a wireless network (such as Wi-Fi), i.e., network configuration, and then access the Internet through the router. When the user remotely controls the wired controller through an APP, the APP will send the control command to the server (if the APP requires server support), the server will then forward the command to the router, and the router will then send the command to the wired controller.
[0061] Specifically, determining whether it is the primary communication device based on a preset wire controller election mechanism includes:
[0062] The current wired controller sends an election frame to the bus and determines whether there are other wired controllers sending election frames on the bus. If not, and the duration reaches the preset duration, it elects itself as the master communication device.
[0063] The duration is the time from the moment the wired controller is powered on to the current moment.
[0064] It should be further explained that in this embodiment, the preset duration is set to 5 seconds. If the current wired controller listens for 5 seconds and has not received an election frame from another wired controller on the bus, then the current wired controller elects itself as the master communication device. If the current wired controller listens for less than 5 seconds, it continues to listen to bus data.
[0065] Specifically, the election frame includes its own election flag and WIFI signal value. If the current wired controller is elected as the primary communication device, the election flag of the current wired controller is assigned a first preset value. The method further includes:
[0066] If there are other wire controllers sending election frames on the bus, it is determined whether there is a wire controller whose election flag bit is the first preset value among all election frames. If not, it is determined whether the current wire controller's WIFI signal value is greater than the WIFI signal value of other wire controllers on the bus. Based on the determination result, it is determined whether the current wire controller elects itself as the master communication device.
[0067] It is understood that the first preset value in this invention can be set to 1. That is, if the current wired controller is elected as the main communication device, the election flag bit of the current wired controller itself is assigned to 1. That is, if other election frames are received on the bus and there is no wired controller with the election flag bit set to 1, then it is necessary to compare the WIFI signal values of all current wired controllers and determine the main communication device based on the strength of the WIFI signal.
[0068] Specifically, the method further includes:
[0069] If any wire controller has an election flag bit set to the first preset value in all election frames, then the duration of the current wire controller is reset to zero, the timing is restarted, and it is determined whether the election flag bit of the current wire controller is set to the first preset value.
[0070] If so, determine whether the current wired controller's WIFI signal value is greater than the WIFI signal value of other wired controllers on the bus, and determine whether the current wired controller should elect itself as the main communication device based on the determination result;
[0071] If not, then reassess whether the user has configured their network.
[0072] Furthermore, if other election frames are received on the bus and there are wire controllers with an election flag of 1, it is determined whether the election flag of the current wire controller is 1. If it is, it means that the current wire controller has been elected as the main communication device in the previous timing cycle. The current wire controller is then compared with the WIFI signal of other wire controllers that have received election frames on the bus to select the main communication device at the current moment. If the election flag of the current wire controller is not 1, it means that the current wire controller has not been elected as the main communication device in the previous timing cycle. In this case, it is necessary to re-determine whether the current wire controller is network-configured.
[0073] Specifically, determining whether the current wired controller's WIFI signal value is greater than the WIFI signal values of other wired controllers on the bus, and determining whether the current wired controller should elect itself as the master communication device based on the determination result, includes:
[0074] If the current wired controller's WIFI signal value is greater than the WIFI signal value of other wired controllers on the bus, then the current wired controller elects itself as the primary communication device, and the other wired controllers become backup communication devices.
[0075] If the current wired controller's WIFI signal value is less than or equal to the WIFI signal value of other wired controllers on the bus, then determine whether the current wired controller's WIFI signal value is less than the WIFI signal value of other wired controllers on the bus. If so, then the wired controller will select itself as the backup communication device.
[0076] Furthermore, when all networked wired controllers send election frames to the bus, the wired controller with the strongest WIFI signal among all networked wired controllers is selected as the main communication device. The main reason is that a relatively strong WIFI signal means a more stable communication connection. Since the main communication device needs to undertake more communication coordination work, such as sending and receiving data to and from the server and interacting with other wired controllers, selecting a wired controller with a stronger WIFI signal as the main communication device can reduce the risk of communication interruption or data loss due to signal instability, thereby ensuring the stability of the entire system's communication.
[0077] Specifically, the election frame also includes the MAC address of the WIFI module in the wired controller, and the method further includes:
[0078] If the current wired controller's WIFI signal value is equal to the WIFI signal value of other wired controllers on the bus, then determine whether the MAC address value of the WIFI module in the current wired controller is greater than the MAC address value of other wired controllers. If so, then determine whether the current wired controller's duration has reached the preset duration.
[0079] If the current wired controller's duration reaches the preset duration, the current wired controller will elect itself as the primary communication device, and other wired controllers will serve as backup communication devices.
[0080] If the current duration of the wired controller has not reached the preset duration, it will continue to monitor the bus data until a master communication device is elected.
[0081] Specifically, determining whether the MAC address value of the WIFI module in the current wired controller is greater than the MAC address value of other wired controllers further includes:
[0082] If the MAC address of the WIFI module in the current wired controller is less than the MAC address of other wired controllers, then continue to listen to the bus data until a master communication device is elected.
[0083] Furthermore, if two wired controllers with identical Wi-Fi signal values exist, it means both controllers meet the requirements to become the primary communication device. However, relying solely on Wi-Fi signal values is insufficient to determine the primary communication device. Therefore, introducing the MAC address of the Wi-Fi module as a further determining factor provides another distinguishing factor for the wired controllers when their Wi-Fi signal strengths are the same, preventing a stalemate in determining the primary communication device and making the election mechanism more complete and comprehensive. The MAC address is a unique identifier in network devices; comparing MAC address values helps to accurately elect the primary communication device in complex network environments.
[0084] Furthermore, the MAC address can be viewed as a hexadecimal number, and then compared in the manner of hexadecimal number comparison. Alternatively, the size of the bytes in the MAC address can be compared byte by byte, from left to right, until a different byte is found. Then, the size of the MAC address is determined based on the size of this byte. This invention does not impose further restrictions on the method of comparing MAC address values.
[0085] Understandably, after comparing the MAC address values of the WIFI modules, if the MAC address value of the current wired controller's WIFI module is larger, the monitoring duration will continue to be determined. If the current device's monitoring duration reaches 5 seconds, meaning that other wired controllers are received on the bus within 5 seconds, the current wired controller will elect itself as the master communication device. Otherwise, it will continue to monitor the bus data until a master communication device is selected.
[0086] Please see Figure 4 The working principle of the present invention will be further illustrated below with specific examples:
[0087] During the election process, the election flag bit, WIFI signal value and WIFI module MAC address in the election frame are combined, which makes the election results more scientific and greatly improves the usability of the invention. For example, after the wired controller is powered on, it first determines whether it is connected to the network before participating in the election, avoiding interference from unconnected devices in the election process. This step-by-step election process improves the rationality and accuracy of the election.
[0088] Step 1: Assuming that when the wired controller A is powered on, it first reads its own election flag bit, and at the same time listens to the transparent data in the indoor unit network (hereinafter referred to as bus data) and starts timing. The timing time is T (duration).
[0089] Step 2: If the user has not configured the wired controller A, then wired controller A is set as an unconfigured device, exits the election, and continues to monitor bus data;
[0090] If the user has completed the network configuration of wired controller A, then wired controller A sends an election frame to the bus (containing its own election flag, WIFI signal value, and the MAC address of its own WIFI module), and determines whether there are election frames from other wired controllers on the bus.
[0091] If not, check if T is greater than or equal to T1 (typical value 5s). If T is greater than or equal to T1, the wired controller A elects itself as the master communication device and sets flag to 1. If T is less than T1, continue to listen to bus data.
[0092] If there are election frames from other wire controllers on the bus, proceed to step 3 for judgment;
[0093] Step 3: After sending an election frame, wire controller A receives an election frame from wire controller B. Then, it determines whether any wire controller in the election frames of wire controller A and wire controller B has a flag of 1.
[0094] If not, proceed with the signal determination step;
[0095] If so, wired controller A will clear T to zero and check if its own flag is 1. If it is not 1, it will return to step 2 to check if it is configured for network. Wired controller B is the main communication device.
[0096] If its own flag is 1, then proceed to the signal judgment step, i.e., step 4.
[0097] Step 4: Compare the signal values of wired controllers A and B, and select the one with the larger signal value as the primary communication device and the one with the smaller signal value as the backup communication device.
[0098] If the two signal values are the same, then the MAC values of the WIFI modules connected to both devices are checked. If the MAC value of wired controller A is larger, wired controller A checks whether T is greater than or equal to T1. If so, wired controller A is selected as the primary communication device and wired controller B is selected as the backup communication device. If not, the process returns to the bus data monitoring step until the primary communication device is selected.
[0099] It should be noted that this embodiment unifies the APP's control over the multi-connector network through the election mechanism of the network controller in the multi-connector network, reducing the waste of server resources in receiving and sending data. Simultaneously, it allows controllers with pass-through capabilities to be connected to the network simultaneously. Through a preset controller election mechanism, a master communication device can be elected. Once elected, the master communication device establishes a communication connection with the server and manages other controllers, forming an orderly multi-connector network communication architecture. This avoids the situation where multiple controllers communicate with the server simultaneously and disorderly, reducing network congestion. The server will not receive many identical data, greatly reducing resource waste. Furthermore, when the master communication device fails, the backup communication device can promptly take over its function, ensuring the continuity of multi-connector network communication, improving the reliability of the invention, and avoiding the technical problem of many identical content control cards appearing on the APP due to the server receiving too much identical data, greatly enhancing the user experience.
[0100] Example 2
[0101] Please see Figure 2 This embodiment provides an election system for the wired controller in a multi-unit air conditioning system. The system includes:
[0102] Acquisition module 100: Used to acquire the preset wire controller election mechanism;
[0103] Control module 200: Used to determine whether the current wired controller is the main communication device; if so, it establishes a communication connection between itself and the server and controls other wired controllers in the multi-unit system; otherwise, it configures itself as the backup communication device of the currently elected main communication device and is controlled by the main communication device.
[0104] It should be noted that the controller election system in this embodiment applies the controller election method in Embodiment 1. Through the election mechanism of the network controllers in the multi-unit network, the APP's control over the multi-unit network is unified, reducing the waste of server resources for receiving and sending data. Simultaneously, controllers with pass-through capabilities can be networked simultaneously. Through a preset controller election mechanism, a master communication device can be elected. After the master communication device is elected, it establishes a communication connection with the server and manages other controllers, forming an orderly multi-unit network communication architecture. This avoids the situation where multiple controllers communicate with the server simultaneously and disorderly, reducing network congestion. The server will not receive many identical data, greatly reducing resource waste. Furthermore, when the master communication device fails, the backup communication device can promptly take over its function, ensuring the continuity of multi-unit network communication, improving the reliability of the invention, and avoiding the technical problem of many identical control cards appearing on the APP due to the server receiving too much identical data, greatly enhancing the user experience.
[0105] Example 3
[0106] This embodiment also provides a wired controller, the wired controller comprising:
[0107] A memory; and a processor, wherein the memory stores computer-readable instructions that, when executed by the processor, implement the method for electing a wired controller in a multi-unit air conditioner according to Embodiment 1.
[0108] It should be noted that this embodiment provides a wired controller. Through the election mechanism of the wired controller in the multi-connector network, the APP's control over the multi-connector network is unified, reducing the waste of server resources for receiving and sending data. At the same time, wired controllers with pass-through function can be connected to the network simultaneously. Through the preset wired controller election mechanism, a master communication device can be elected. After the master communication device is elected, it establishes a communication connection with the server and manages other wired controllers, forming an orderly multi-connector network communication architecture. This avoids the situation where multiple wired controllers communicate with the server in an disorderly manner at the same time, reduces network congestion, and the server does not receive a lot of the same data, greatly reducing the waste of resources.
[0109] Example 4
[0110] This embodiment also provides a multi-split air conditioner, the multi-split air conditioner comprising:
[0111] Multiple indoor units, and multiple wired controllers as described in Embodiment 3;
[0112] Each indoor unit is connected to its respective wired controller via a bus.
[0113] Specifically, the multi-split system also includes:
[0114] The router is used to connect the wired controller to the server.
[0115] It should be noted that this embodiment provides a multi-connector system. Through the election mechanism of the network controller in the multi-connector network, the APP's control over the multi-connector network is unified, reducing the waste of server resources for receiving and sending data. At the same time, it enables wire controllers with pass-through function to be connected to the network simultaneously. Through the preset wire controller election mechanism, a master communication device can be elected. After the master communication device is elected, it establishes a communication connection with the server and controls other wire controllers, forming an orderly multi-connector network communication architecture. This avoids the situation where multiple wire controllers communicate with the server in an disorderly manner at the same time, reduces network congestion, and the server does not receive a lot of the same data, greatly reducing the waste of resources.
[0116] Example 5
[0117] This embodiment also provides a multi-unit system, which includes the multi-unit system in Embodiment 4, and a server, the server being connected to the user's APP.
[0118] It should be noted that this embodiment provides a multi-connector system. Through the election mechanism of the network controllers in the multi-connector network, the APP's control over the multi-connector network is unified, reducing the waste of server resources in receiving and sending data. Simultaneously, controllers with pass-through capabilities can be connected to the network simultaneously. Through a preset controller election mechanism, a master communication device can be elected. After the master communication device is elected, it establishes a communication connection with the server and controls other controllers, forming an orderly multi-connector network communication architecture. This avoids the situation where multiple controllers communicate with the server simultaneously and disorderly, reducing network congestion. The server will not receive many identical data, greatly reducing resource waste. Furthermore, when the master communication device fails, the backup communication device can promptly take over its function, ensuring the continuity of multi-connector network communication, improving the reliability of the invention, and avoiding the technical problem of many identical content control cards appearing on the APP due to the server receiving too much identical data, greatly improving the user experience.
[0119] Example 6
[0120] This embodiment also provides an electronic device, the electronic device comprising:
[0121] The computer device includes a memory and a processor. The memory stores computer-readable instructions that, when executed by the processor, implement the method for electing the wired controller in a multi-unit system. This computer device can be broadly categorized as a server, terminal, or any other electronic device with the necessary computing and / or processing capabilities. In one embodiment, the computer device may include a processor, memory, network interface, communication interface, etc., connected via a system bus. The processor of the computer device can be used to provide the necessary computing, processing, and / or control capabilities. The memory of the computer device may include a non-volatile storage medium and internal memory. The non-volatile storage medium may store an operating system, computer programs, etc. The internal memory can provide an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface and communication interface of the computer device can be used to connect and communicate with external devices via a network. When the computer program is executed by the processor, it performs the steps of the method of the present invention.
[0122] This invention can be implemented as a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, causes the steps of the methods of embodiments of the invention to be performed. In one embodiment, the computer program is distributed across multiple network-coupled computer devices or processors, such that the computer program is stored, accessed, and executed in a distributed manner by one or more computer devices or processors. A single method step / operation, or two or more method steps / operations, may be executed by a single computer device or processor or by two or more computer devices or processors. One or more method steps / operations may be executed by one or more computer devices or processors, and one or more other method steps / operations may be executed by one or more other computer devices or processors. One or more computer devices or processors may execute a single method step / operation, or execute two or more method steps / operations.
[0123] It's important to note that this invention unifies the APP's control over the multi-connector network through an election mechanism for the network controllers, reducing the waste of server resources in receiving and sending data. Simultaneously, it allows controllers with pass-through capabilities to be configured simultaneously. Through a preset controller election mechanism, a master communication device is elected. Once elected, the master communication device establishes a communication connection with the server and manages other controllers, forming an orderly multi-connector network communication architecture. This avoids the situation where multiple controllers communicate with the server simultaneously and disorderly, reducing network congestion and preventing the server from receiving many identical data, significantly reducing resource waste. Furthermore, when the master communication device fails, a backup communication device can promptly take over its function, ensuring the continuity of multi-connector network communication, improving the reliability of the invention, and avoiding the technical problem of many identical control cards appearing on the APP due to the server receiving too much identical data, greatly enhancing the user experience.
[0124] The technical features described above can be combined arbitrarily. Although not all possible combinations of these technical features are described, any combination of these technical features should be considered to be covered by this specification, provided that such combination does not contain contradictions.
[0125] The specific embodiments of the present invention described above do not constitute a limitation on the scope of protection of the present invention. Any other corresponding changes and modifications made in accordance with the technical concept of the present invention should be included within the scope of protection of the claims of the present invention.
Claims
1. A method for electing a wire controller in a multi-split system, suitable for use in a wire controller, the multi-split system comprising a plurality of indoor units each configured with a respective wire controller, the method comprising: determining a number of the indoor units; determining a number of the wire controllers; and electing a wire controller as a master wire controller based on the number of the indoor units and the number of the wire controllers. The method comprises the following steps: The current line controller determines whether it is the main communication device according to a preset line controller election mechanism; If yes, the communication connection between the current line controller and the server is established, and the other line controllers in the multi-line machine are under the jurisdiction of the current line controller; Otherwise, the current line controller is configured as a standby communication device of the main communication device elected, and is under the jurisdiction of the main communication device; All line controllers and the server are connected through a bus, and before the current line controller determines whether it is the main communication device according to the preset line controller election mechanism, the method further comprises the following steps: After the current line controller is powered on, whether the current line controller is configured by a user is determined by listening to bus data; If yes, whether the current line controller is the main communication device is determined according to the preset line controller election mechanism; Otherwise, the current line controller is marked as an unconfigured device, does not participate in the preset line controller election mechanism, and continues to listen to the bus data; The method that the current line controller determines whether it is the main communication device according to the preset line controller election mechanism comprises the following steps: The current line controller sends an election frame to the bus, and determines whether there is an election frame sent by another line controller on the bus, if not, and the duration reaches a preset duration, the current line controller is elected as the main communication device; The duration is the duration from the power-on time of the current line controller to the current time; The election frame comprises an election flag bit and a WIFI signal value of the current line controller, if the current line controller is elected as the main communication device, the election flag bit of the current line controller is assigned a first preset value, and the method further comprises the following steps: If there is an election frame sent by another line controller on the bus, whether there is a line controller whose election flag bit is the first preset value in all election frames is determined, if not, whether the WIFI signal value of the current line controller is greater than the WIFI signal value of another line controller on the bus is determined, and whether the current line controller is elected as the main communication device is determined according to the determination result; The election frame further comprises the MAC address of the WIFI module in the line controller.
2. The method of claim 1, wherein, The method further comprises the following steps: If there is a line controller whose election flag bit is the first preset value in all election frames, the duration of the current line controller is cleared, the current line controller is re-timed, and whether the election flag bit of the current line controller is the first preset value is determined; If yes, whether the WIFI signal value of the current line controller is greater than the WIFI signal value of another line controller on the bus is determined, and whether the current line controller is elected as the main communication device is determined according to the determination result; If not, whether the current line controller is configured by the user is determined again.
3. The method of claim 2, wherein, The method that whether the WIFI signal value of the current line controller is greater than the WIFI signal value of another line controller on the bus is determined, and whether the current line controller is elected as the main communication device is determined according to the determination result comprises the following steps: If the WIFI signal value of the current line controller is greater than the WIFI signal value of another line controller on the bus, the current line controller is elected as the main communication device, and another line controller is a standby communication device; If the WIFI signal value of the current line controller is less than or equal to the WIFI signal value of another line controller on the bus, whether the WIFI signal value of the current line controller is less than the WIFI signal value of another line controller on the bus is determined, if yes, the current line controller is elected as a standby communication device.
4. The method of claim 3, wherein, The method further comprises the following steps: If the WIFI signal value of the current line controller is equal to the WIFI signal value of other line controllers on the bus, it is determined whether the value of the MAC address of the WIFI module in the current line controller is greater than the value of the MAC address of other line controllers, and if so, it is determined whether the duration of the current line controller reaches the preset duration; If the duration of the current line controller reaches the preset duration, the current line controller elects itself as the main communication device, and other line controllers are standby communication devices; If the duration of the current line controller does not reach the preset duration, the bus data is continuously monitored until the main communication device is elected.
5. The method of claim 4, wherein, The determination of whether the value of the MAC address of the WIFI module in the current line controller is greater than the value of the MAC address of other line controllers also includes: If the value of the MAC address of the WIFI module in the current line controller is less than the value of the MAC address of other line controllers, the bus data is continuously monitored until the main communication device is elected.
6. A system for electing a wire controller in a multi-connected machine, characterized in that, The method is suitable for line controllers, The system includes: An acquisition module (100) for acquiring a preset line controller election mechanism; A control module (200) for determining whether the current line controller itself is a main communication device, and if so, establishing a communication connection with a server and subordinating other line controllers in the multi-connected machine; otherwise, configuring the current line controller as a standby communication device of the main communication device elected and subordinating to the main communication device.
7. A wire controller characterized by It includes: A memory; and a processor, the memory has computer readable instructions stored thereon, and the computer readable instructions are executed by the processor to implement the line controller election method in the multi-connected machine according to any one of claims 1-5.
8. A multi-split air conditioning system, characterized in that, It includes: A plurality of indoor units, and a plurality of line controllers according to claim 7; Each indoor unit is connected to the respective line controller through a bus.
9. The multi-split system according to claim 8, wherein, It also includes: A router, and the line controller is connected to the server through the router.
Citation Information
Patent Citations
Multi-connected air conditioning unit and remote upgrading method thereof
CN110933663A
Network distribution method and device of multi-split air conditioner, multi-split air conditioner and storage medium
CN118623454A