Multi-device network topology structure, data transmission method and air conditioner system

By setting up a multi-device topology in the main network and sub-network, the direct data transmission between the extended device and the main controller is solved, and the data transmission efficiency and network scalability of the system are improved.

CN120301724APending Publication Date: 2025-07-11GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510540804.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

In the prior art, when the expansion device and the main controller are connected to different networks, the data transmission efficiency is low, resulting in complex network topology, tight address resources and fuzzy affiliation between devices.

Method used

The multi-device network topology is adopted, the main network and sub-network structure is set up, the equipment is extended to the main network and sub-network, and the direct data transmission between the devices is realized through the serial communication network and the master-slave communication interface, sharing the address and function code between the devices, avoiding cross-network transmission.

Benefits of technology

It improves data transmission efficiency, saves address resources, simplifies network configuration, ensures clear communication and accurate control between devices, and enhances the scalability and flexibility of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120301724A_ABST
    Figure CN120301724A_ABST
Patent Text Reader

Abstract

The invention provides a multi-device network topology structure, a data transmission method and an air conditioner system, the structure comprising: a main network structure comprising a plurality of main controllers, one or more extension devices and a first router, the plurality of main controllers and the one or more extension devices being in communication connection with the first router; each sub-network structure comprises a main controller, one or more extension devices corresponding to the main controller and a second router, one main controller and one or more extension devices corresponding to the main controller are all in communication connection with the second router, the main controllers in any two sub-network structures are different, and the extension devices in any two sub-network structures are different. The extension devices in any two sub-network structures are different. According to the invention, the problem of low data transmission efficiency caused by the fact that data transmission between the expansion equipment and the main controller needs to be carried out in different networks when the expansion equipment and the main controller are accessed to different networks is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network structures of multiple devices, and in particular, to a network topology structure of multiple devices, a data transmission method, an air conditioner system, and a smart home system. Background Art

[0002] In scenarios of multi-device collaborative operations, such as smart home systems, the main controller often needs to integrate multiple functional modules to cooperate in achieving comprehensive control and monitoring capabilities. There are two communication network structures in the prior art. One is to connect the main controller and multiple functional modules to the same network, where the main controller and its functional modules need to have independent network addresses respectively. This method works well when the number of devices is small, but as the system scale expands, problems such as tight address resources, complex network topology, low data transmission efficiency, and ambiguous subordination relationships between devices gradually emerge in independent address allocation. The other is to connect the main controller and the expansion components to different networks respectively, and the main controller and the expansion devices usually need to perform data transmission between the first network and the second network, that is, cross-network data transmission, with relatively low data communication efficiency. Summary of the Invention

[0003] The main objective of the present application is to provide a network topology structure of multiple devices, a data transmission method, an air conditioner system, and a smart home system, so as to at least solve the problem that when the expansion device and the main controller are connected to different networks in the prior art, the data transmission between the expansion device and the main controller needs to be transmitted in different networks, resulting in low data transmission efficiency.

[0004] To achieve the above objective, according to one aspect of the present application, there is provided a network topology structure of multiple devices, including: a main network structure, including multiple main controllers, one or more expansion devices, and a first router, where the multiple main controllers and the one or more expansion devices are all communicatively connected to the first router, and among them, the main controller is used to control the operation of the device, and the expansion device is used to expand the functions of the device; multiple sub-network structures, each sub-network structure includes one of the main controllers, one or more expansion devices corresponding to the main controller, and a second router, and one of the main controllers, the one or more expansion devices corresponding to the main controller are all communicatively connected to the second router, where any two main controllers in the sub-network structures are different, any two expansion devices in the sub-network structures are different, and any two second routers in the sub-network structures are different.

[0005] Optionally, the first router has a serial communication network interface, and each of the main controllers and each of the expansion devices has a main network interface, and the serial communication network interface is communicatively connected to each of the main network interfaces.

[0006] Optionally, the multi-device network topology further includes: a first connection component, including a first port and a second port, where the first port is connected to the serial communication network interface of the first router, and the second port is connected to the main network interface of the main controller or the expansion device.

[0007] Optionally, the second router has a master-slave communication network interface, each of the main controllers and each of the expansion devices has a sub-network interface, and the master-slave communication network interface is communicatively connected to each of the sub-network interfaces.

[0008] Optionally, the multi-device network topology further includes: a second connection component, including a third port and a fourth port, where the third port is connected to the master-slave communication network interface of the second router, and the fourth port is connected to the sub-network interface of the main controller or the expansion device.

[0009] According to another aspect of the present application, a data transmission method is provided, which is applied to any one of the multi-device network topologies. The data transmission method includes: an expansion device obtains information of a target main controller in a sub-network, where the target main controller is a main controller located in the same sub-network as the expansion device, the sub-network has a sub-network structure, the main controller is used to control device operation, and the expansion device is used to expand the function of the device; the expansion device sends device data to the target main controller in the main network according to the information of the target main controller, where the device data is data representing the operation state of the expansion device, and the main network has a main network structure.

[0010] Optionally, the expansion device obtaining information of a target main controller in a sub-network includes: the expansion device obtains the main network Internet address published by the target main controller in the sub-network, where the main network Internet address represents the Internet address of the target main controller in the main network.

[0011] Optionally, after the expansion device sends device data to the target main controller in the main network according to the information of the target main controller, the method further includes: the expansion device sends the sub-network address and the function code to the target main controller in the main network according to the information of the target main controller, so that the target main controller determines the address of the expansion device according to the sub-network address and determines the function of the expansion device according to the function code, where the sub-network address is the address of different expansion devices in the sub-network, and the function code is a code representing the function of the expansion device.

[0012] Optionally, the extension device sends device data to the target master controller in the main network according to the information of the target master controller, including: when the extension device receives a data acquisition request sent by the target master controller in the sub-network, in response to the data acquisition request, the extension device sends the device data to the target master controller in the main network according to the information of the target master controller, where the data acquisition request is a request indicating that the master controller acquires the device data of the extension device.

[0013] Optionally, after the extension device sends device data to the target master controller in the main network according to the information of the target master controller, the method further includes: the extension device sends device data to the target master controller in the main network according to the information of the target master controller, so that the target master controller sends the device data to another master controller in the main network, where another master controller represents a master controller other than the target master controller in the main network.

[0014] According to another aspect of the present application, an air conditioner system is provided, including: an air conditioner and any one of the multi-device network topologies, the air conditioner is communicatively connected to the master controller and the extension device in the multi-device network topology, and the master controller and the extension device are respectively used to control the operation of the air conditioner; one or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs are used to execute any one of the data transmission methods.

[0015] According to another aspect of the present application, a smart home system is provided, including: a controlled device and any one of the multi-device network topologies, the controlled device is communicatively connected to the master controller and the extension device in the multi-device network topology, and the master controller and the extension device are respectively used to control the operation of the controlled device; one or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs are used to execute any one of the data transmission methods.

[0016] Applying the technical solution of the present application, the main network structure is set to include multiple main controllers, one or more expansion devices, and a first router, and multiple sub-network structures are set. Each sub-network structure includes a main controller, one or more expansion devices corresponding to the main controller, and a second router. The main controllers in any two sub-network structures are different, the expansion devices in any two sub-network structures are different, and the second routers in any two sub-network structures are different. Compared with the prior art, when the expansion device and the main controller are connected to different networks, the data transmission between the expansion device and the main controller needs to be transmitted in the main network and the sub-network, and the data transmission efficiency is low. In the present application, the expansion devices are all connected to the main network and the sub-network, so that the main controller and the expansion device perform data transmission in the same network without cross-network transmission. Therefore, it can solve the problem that when the expansion device and the main controller are connected to different networks in the prior art, the data transmission between the expansion device and the main controller needs to be transmitted in different networks, resulting in low data transmission efficiency, and improve the data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings forming a part of this application are used to provide a further understanding of the application. The schematic embodiments and descriptions thereof of the application are used to explain the application and do not constitute an improper limitation of the application. In the drawings:

[0018] Figure 1 shows a schematic diagram of a multi-device network topology in the prior art;

[0019] Figure 2 shows a schematic diagram of a multi-device network topology according to an embodiment of the present application;

[0020] Figure 3 shows a schematic flowchart of a data transmission method provided by an embodiment of the present application.

[0021] Among them, the above-mentioned drawings include the following reference numerals:

[0022] 1. Main controller of the first indoor unit; 2. Main controller of the second indoor unit; 3. Main controller of the third indoor unit; 4. Main controller of the fourth indoor unit; 5. Main controller of the fifth indoor unit; 6. Main controller of the sixth indoor unit; 7. Main controller of the first outdoor unit; 8. Main controller of the second outdoor unit; 9. First expansion device; 10. Second expansion device; 11. Third expansion device; 12. Fourth expansion device; 13. Fifth expansion device; 14. Sixth expansion device; 15. First router; 16. Third router; 17. Fourth router. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0023] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments may be combined with each other. The following will describe the present application in detail with reference to the accompanying drawings and in conjunction with the embodiments.

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so as to implement the embodiments of the present application described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0026] The network structure in the prior art is as Figure 1 shown, which consists of multiple main controllers and one or more expansion devices. The main controllers include the first indoor unit main controller 1, the second indoor unit main controller 2, the third indoor unit main controller 3, the fourth indoor unit main controller 4, the fifth indoor unit main controller 5, the sixth indoor unit main controller 6, the first outdoor unit main controller 7, and the second outdoor unit main controller 8. The expansion devices include the first expansion device 9, the second expansion device 10, the third expansion device 11, the fourth expansion device 12, the fifth expansion device 13, and the sixth expansion device 14. When the third expansion device 11 is connected to the first router 15, that is, when the expansion device is located in the main network, an address needs to be assigned to the third expansion device 11 in the main network. For each additional device, one or more device addresses need to be added, facing the problem of tight address resources. In addition, because all devices are in the same communication network, even if an address is assigned to each device node, when each outdoor unit needs to install an expansion device of its own, it is impossible to determine the affiliation between the expansion module and the outdoor unit based on the assigned address, that is, it is impossible to determine which component belongs to which outdoor unit, thus directional control cannot be achieved. When the expansion device is located in the second network as Figure 1The first expansion device 9 and the second expansion device 10 in it are respectively connected to the third router 16, or the fourth expansion device 12 and the fifth expansion device 13 are connected to the fourth router 17. Due to the communication method of the master-slave structure, the host needs to call the slaves one by one, and the communication efficiency is relatively low. Moreover, the first outdoor unit main controller 7 or the second outdoor unit main controller 8 is required to transfer data between the main network and the sub-network.

[0027] As introduced in the background art, in the prior art, an expansion device can only access one network. When the expansion device is located in a network different from the main controller, the main controller needs to transfer data between the two networks, which reduces the communication efficiency. To solve the problem of low data transmission efficiency, the embodiments of the present application provide a multi-device network topology structure, a data transmission method, an air conditioner system, and a smart home system.

[0028] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention.

[0029] The multi-device network topology structure provided by the embodiments of the present application is introduced below.

[0030] The embodiments of the present application provide a schematic diagram of a multi-device network topology structure, as Figure 2 shown, including:

[0031] A main network structure, including multiple main controllers, one or more expansion devices, and a first router. The multiple main controllers and one or more expansion devices are all communicatively connected to the first router. Among them, the main controller is used to control the operation of the device, and the expansion device is used to expand the function of the device;

[0032] Specifically, as Figure 2 shown, the main network structure consists of multiple main controllers (including the first indoor unit main controller 1, the second indoor unit main controller 2, the third indoor unit main controller 3, the fourth indoor unit main controller 4, the fifth indoor unit main controller 5, the sixth indoor unit main controller 6, the first outdoor unit main controller 7, the second outdoor unit main controller 8), one or more expansion devices (including the first expansion device 9, the second expansion device 10, the fourth expansion device 12, the fifth expansion device 13), and the first router 15. Figure 2Taking the example that the first outdoor unit main controller 7 and the second outdoor unit main controller 8 each have two expansion devices (the expansion devices of the first outdoor unit main controller 7 include the first expansion device 9 and the second expansion device 10, both of which are connected to the third router 16; the expansion devices of the second outdoor unit main controller 8 include the fourth expansion device 12 and the fifth expansion device 13, both of which are connected to the fourth router 17), in the actual application process, each indoor unit main controller can also be provided with expansion devices, and the expansion devices can be one or more. The above main network structure usually adopts a serial communication network (such as a CAN communication network) or a communication method similar to a multi-master node structure. This network structure supports data exchange between multiple main controllers and expansion devices without a single device acting as a data transfer node. Multiple main controllers (for example, the main controllers of each outdoor unit or indoor unit) and one or more expansion devices (specific function control modules of indoor units or outdoor units, such as compressor drive, fan control, etc.) are all connected through the first router to form an efficient and stable data transmission environment. This structure improves the real-time performance and efficiency of data transmission because all device nodes are in the same network, avoiding secondary handling of data and reducing the computational burden on the main controller. Since all device nodes (main controllers and expansion devices) are directly connected, data can be directly transmitted between the main controller and the expansion device in the main network structure without having to pass through the expansion device to transmit data to the main controller in the main network through the sub-network, thereby improving the transmission efficiency. The above main controller is responsible for system logic control and executes core functions such as temperature regulation and system management. The expansion device is used to implement proprietary functions, such as driving specific hardware components (compressor, fan, etc.) or providing intelligent processing capabilities (data collection and analysis). The main network formed by the main network structure is the main communication network, which is responsible for data transmission between all controllers. A communication method using a multi-master node structure is adopted, such as serial communication (controller area network) communication, that is, all nodes in the network are equal, and as long as the network is idle at any time, all nodes can send data.

[0033] Multiple sub-network structures, each of the sub-network structures includes one of the main controllers, one or more expansion devices corresponding to the main controller, and a second router. One of the main controllers, one or more of the expansion devices corresponding to the main controller are all communicatively connected to the second router. Among them, the main controllers in any two of the sub-network structures are different, the expansion devices in any two of the sub-network structures are different, and the second routers in any two of the sub-network structures are different.

[0034] Specifically, the above second router in Figure 2 includes the third router 16 and the fourth router 17. As Figure 2 shown, each sub-network structure contains one main controller and one or more expansion devices. AsFigure 2 The sub-network structure of the first outdoor unit main controller 7 includes a third router 16, a first expansion device 9, a second expansion device 10, and the first outdoor unit main controller 7; the sub-network structure of the second outdoor unit main controller 8 includes a fourth router 17, a fourth expansion device 12, a fifth expansion device 13, and the second outdoor unit main controller 8. Connected through the second router, it ensures that the devices within each sub-network can automatically receive the communication addresses of the first network according to the instructions of the main controller. This structure saves address resources and simplifies network configuration because the expansion devices do not need to be assigned independent addresses in the first network but share addresses with the main controller, and it is also simpler in terms of network configuration and maintenance. By automatically assigning the same communication address as the main controller in the main network within the sub-network, it avoids allocating additional addresses for the expansion devices in the main network, thus saving address resources and simplifying the network configuration process. By using one main controller, expansion devices, and a second router in each sub-network, the system can accurately distinguish and control the operating states and functions of different devices. Ensure clear communication and accurate control between different devices in the system. Through the differentiation of the sub-network structure, effective control of each independent device is achieved.

[0035] The sub-network formed by the sub-network structure is an auxiliary communication network. The main controller announces its communication address (IP address) in the first network in this network. After the auxiliary controller receives it, it confirms that its communication address in the first network is the same as that of the main controller. The sub-network can adopt a master-slave communication structure, that is, the master controller polls the slave machines in a loop, and the slave machines respond to the communication of the master controller. Here, the following optimizations are made for data transmission:

[0036] Method 1: The main controller and the auxiliary controller perform data interaction, and the interaction information only includes the address information of both parties in this network and the IP address of the main controller in the main network. When there are multiple expansion components, different sub-network addresses are used for differentiation.

[0037] Method 2: The main controller and the auxiliary controller do not perform data interaction. The main controller only announces its own IP address in the main network in this network. After the expansion component receives it, it publishes data in the main network with the same IP. The main controller considers the communication successful after receiving a data frame with the same IP address and the identity information representing the expansion component in the main network.

[0038] Both of the above two methods only interact with address information.

[0039] Applying the technical solution of the present application, the main network structure is set to include multiple main controllers, one or more expansion devices, and a first router, and multiple sub-network structures are set. Each sub-network structure includes a main controller, one or more expansion devices corresponding to the main controller, and a second router. The main controllers in any two sub-network structures are different, the expansion devices in any two sub-network structures are different, and the second routers in any two sub-network structures are different. In the prior art, the expansion device can only be connected to one network, and the data transmission between the expansion device and the main controller needs to be transmitted in the main network and the sub-network, resulting in low data transmission efficiency. In the present application, the expansion devices are all connected to the main network and the sub-network, so that the main controller and the expansion device can perform data transmission in the same network without cross-network transmission. Therefore, it can solve the problem that when the expansion device and the main controller are connected to different networks in the prior art, the data transmission between the expansion device and the main controller needs to be transmitted in different networks, resulting in low data transmission efficiency, and improve the data transmission efficiency.

[0040] In some alternative embodiments, the first router has a serial communication network interface, and each of the main controllers and each of the expansion devices has a main network interface, and the serial communication network interface is communicatively connected to each of the main network interfaces.

[0041] Specifically, the first router is equipped with a serial communication network interface, which enables the first router to support a serial communication network. This network adopts a communication method with a multi-master node structure, allowing multiple main controllers and expansion devices of indoor and outdoor units to communicate in the same network with equal node status without the need for specific relay or intermediary devices. Each main controller and each expansion device are configured with a main network interface compatible with the serial communication network. Through these interfaces, they can directly establish a communication connection with the first router for data exchange. The direct communication connection between the serial communication network interface and the main network interface solves the problem that data needs to be relayed and transported by a relay controller in different communication networks. The multi-master node structure of the serial communication network not only simplifies the network topology but also improves the efficiency and real-time performance of data transmission. Because there is no need for the data to be transported twice by the controller between nodes, direct communication reduces data latency. The design of the serial communication network interface enables the first router and each main controller and expansion device to communicate without data relay. The direct communication mechanism ensures fast data transmission, avoiding delays and errors that may occur when data is transmitted between different network levels. At the same time, the multi-master node structure makes data transmission more efficient, and each node can send data when the network is idle, further improving the real-time performance of communication and the system response speed.

[0042] In some alternative embodiments, the multi-device network topology further includes: a first connection component, including a first port and a second port, where the first port is connected to the serial communication network interface of the first router, and the second port is connected to the main network interface of the main controller or the expansion device.

[0043] Specifically, a physical interface for connecting each device component, having a first port and a second port, is introduced. The first port is connected to the serial communication network interface of the first router, while the second port is connected to the main network interface of the main controller or the expansion device. In this way, all devices in the main network communicate with the first router through the first connection component, forming a stable and efficient communication link among multiple devices. Such as RJ45 Ethernet connectors, DB-9 serial connectors, or other customized connectors are used to achieve the physical transmission of electrical signals. The first port of the first connection component is responsible for docking with the serial communication network interface of the first router, and the second port is docked with the main network interface of the main controller or the expansion device, ensuring the transmission of data between different devices.

[0044] In some alternative embodiments, the second router has a master-slave communication network interface, and each of the main controllers and each of the expansion devices has a sub-network interface, and the master-slave communication network interface is communicatively connected to each of the sub-network interfaces.

[0045] Specifically, the second router is configured with a master-slave communication network interface, and the main controller and the expansion device are equipped with corresponding sub-network interfaces. The master-slave communication (Universal Asynchronous Receiver / Transmitter) network interface is used to achieve point-to-point communication between the main controller and the expansion device. Through the communication method of the master-slave communication structure, the main controller can send instructions to the expansion device and receive status information, and the expansion device can obtain a communication address in the first network, which enables the expansion device to publish data in the first network with the same address as the main controller. By connecting the master-slave communication interface of the second network to the sub-network interface of the expansion device, the problem of the need to increase IP addresses when adding expansion components in the same network, resulting in a shortage of address resources, is solved. The main controller and the expansion device share the address in the same communication network, which not only saves address resources but also simplifies network configuration.

[0046] The master-slave communication structure and communication method of the master-slave communication interface enable the expansion device to automatically obtain the communication address of the first network from the master controller, without manual allocation or additional IP addresses. Since the expansion device and the master controller share the same address, the master controller and the expansion device of the same device are recognized as the same node in the first network. This not only simplifies the network architecture but also ensures the efficiency and accuracy of data transmission. Because the data is directly published in the first network without passing through a relay, the communication efficiency is improved, and at the same time, the consumption of address resources is reduced, enabling the system to accommodate more device nodes and enhancing the network scalability.

[0047] In some alternative embodiments, the multi-device network topology further includes: a second connection component, including a third port and a fourth port, the third port being connected to the master-slave communication network interface of the second router, and the fourth port being connected to the sub-network interface of the master controller or the expansion device.

[0048] Specifically, the second connection component is a physical connection device. Its third port is connected to the master-slave communication network interface of the second router, and the fourth port establishes a communication link with the sub-network interface of the master controller or the expansion device. The master-slave communication interface is usually used for point-to-point communication. Through the second connection component, the master controller can effectively exchange data with the expansion devices within the sub-network, confirm the affiliation relationship between devices, and automatically allocate communication addresses. The use of the second connection component solves the problems of unclear affiliation relationships and tight address resources among devices within the sub-network. By establishing direct communication between the master controller and the expansion devices, the communication efficiency of the sub-network is improved, and at the same time, the network configuration is simplified, avoiding the cumbersome process of manual address allocation and enhancing the flexibility and scalability of the system. Devices within the sub-network communicate through the second connection component, which not only confirms the affiliation relationship between the expansion devices and the master controller but also ensures that the expansion devices can automatically obtain the same communication address as the master controller. This design avoids the relay transfer during data transmission, improves the efficiency and real-time performance of data transmission. At the same time, since the expansion devices and the master controller share the address, the need for additional address allocation is reduced, saving limited address resources and enabling more devices to be connected to the same network, enhancing the network scalability.

[0049] In some alternative embodiments, the first router includes a parallel processor and a dynamic random access memory, and the second router includes a serial processor and a static random access memory. Among them, the parallel processor is communicatively connected to the dynamic random access memory, and the serial processor is communicatively connected to the static random access memory. The combination of the parallel processor and the dynamic random access memory improves the processing capacity and data transmission efficiency of the first router, while the combination of the serial processor and the static random access memory simplifies the design of the second router and reduces the power consumption. Such a design not only improves the overall performance of the network but also reduces the overall cost of the system.

[0050] Specifically, the first router contains a parallel processor for processing data in the main network, which usually requires fast processing and response to support efficient communication among various devices. The parallel processor is connected to a dynamic random access memory (DRAM) because DRAM can provide fast data reading and writing speeds to meet the memory performance requirements when processing a large amount of data. The parallel processor can handle multiple tasks simultaneously, combined with the fast data reading and writing ability of the dynamic random access memory, enabling the first router to efficiently manage the data flow in the main network and maintain good network performance even in the case of large data volume and high transmission requirements. The second router uses a serial processor, which is communicatively connected to a static random access memory (SRAM) and is used to process data in the sub-network. This data usually involves one-to-one communication between devices and has relatively low requirements for processing speed. The combination of the serial processor and the static random access memory is suitable for processing low-speed and low-power data transmission. This design reduces the complexity of the second router, simplifies the data exchange process between devices in the sub-network, reduces the energy consumption of the system, and also reduces the manufacturing cost because SRAM is more power-saving than DRAM and the processing requirements of the serial processor are relatively low.

[0051] In some alternative embodiments, the main controller is an STM32 controller. Using the STM32 controller as the main controller improves the control accuracy and response speed of the air conditioning system, while reducing the system power consumption, making the air conditioning system more energy-efficient and environmentally friendly while ensuring performance.

[0052] Specifically, the STM32 series microcontrollers are based on the ARM Cortex-M kernel, providing high performance, low power consumption, and rich peripheral interfaces, enabling it to effectively handle the control logic and data exchange of the air conditioning system while maintaining low energy consumption. In addition, the STM32 controller supports multiple communication protocols such as CAN, UART, SPI, and USB, which enables it to serve as a key communication node for both the main network and the sub-network, achieving efficient and stable communication between devices. The high-performance kernel of the STM32 controller can quickly execute complex control algorithms to monitor and adjust the operating state of the air conditioning system in real time, which improves the control accuracy and response speed. Its low-power design can reduce power consumption and extend the service life of the device when it serves as a continuously operating control center in the air conditioning system. The rich peripheral interfaces and powerful communication capabilities ensure efficient data interaction between devices, making the system design more flexible and more scalable.

[0053] In this embodiment, a data transmission method running on a mobile terminal, a computer terminal, or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0054] Figure 3 It is a flowchart of the data transmission method according to the embodiment of the present application. As Figure 3 shown, this method is applied to any of the above multi-device network topologies and includes the following steps:

[0055] Step S201, the expansion device obtains information about the target master controller in the sub-network, where the target master controller is the master controller located in the same sub-network as the expansion device, the sub-network has a sub-network structure, the master controller is used to control device operation, and the expansion device is used to expand the function of the device;

[0056] Specifically, in this embodiment, the expansion device (such as Figure 2 the secondary controller) first communicates with the target master controller (such as Figure 2 the second network) in the sub-network (such as Figure 2Establish a connection with the main controller of the outdoor unit) here, and the target main controller is the main controller within the same sub-network as the extended device. Each sub-network structure only includes one main controller and one or more extended devices. Through the sub-network structure, the extended device can obtain the detailed information of the target main controller, including its communication address (such as IP address) in the main network, etc. In the actual application process, the information of the target main controller can also be other information, as long as this information can determine the subordination relationship between the main controller and the extended device.

[0057] Step S202, the extended device sends the device data to the target main controller in the main network according to the information of the target main controller, where the device data is data representing the operating state of the extended device, and the main network has a main network structure.

[0058] Specifically, after the extended device obtains the information of the target main controller in the sub-network, it can directly send the device data to the main controller with this information in the main network, that is, the target main controller. The device data contains the status information of the extended device, such as sensor data of temperature, humidity, voltage, current, etc., or device operation parameters, such as operating frequency, power, etc., which are all key information used to monitor and control the functions of the extended device. Since the extended device can directly use the same address as the target main controller in the main network to publish data, the steps of data transfer and re-addressing are eliminated, realizing the rapid exchange of data between devices, and improving the real-time performance and response speed of the entire system. When the extended device obtains the address of the target main controller in the sub-network, it can publish data at the same address in the main network. This enables the device data of the extended device to be directly read by the corresponding main controller in the network, without the need for the extended device to send the device data from the sub-network to the target main controller in the main network, reducing cross-network data transmission and accelerating the information flow rate.

[0059] Through this embodiment, the expansion device obtains information about the target master controller in the sub-network, where the target master controller is the master controller located in the same sub-network as the expansion device. The expansion device sends device data to the target master controller in the main network according to the information about the target master controller, where the device data is data characterizing the operating state of the expansion device. Compared with the prior art, when the expansion device and the master controller are connected to different networks, data transmission between the expansion device and the master controller needs to be transmitted in the main network and the sub-network, and the data transmission efficiency is low. After the expansion device in this application obtains information about the target master controller in the sub-network, it is equivalent to knowing the identity information of the target master controller. After knowing the identity information, the device data is sent to this target master controller in the main network. In this way, after determining the identity information through the sub-network, data transmission is performed in the main network, avoiding the device data of the expansion device being transmitted from the sub-network to the target master controller in the main network, that is, avoiding cross-network data transmission. Therefore, it can solve the problem that when the expansion device and the master controller are connected to different networks in the prior art, data transmission between the expansion device and the master controller needs to be transmitted in different networks, resulting in low data transmission efficiency, and achieve the purpose of improving data transmission efficiency.

[0060] In the specific implementation process, step S201 where the expansion device obtains information about the target master controller in the sub-network can be implemented through the following steps: Step S2011: The expansion device obtains the main network Internet address announced by the target master controller in the sub-network, where the main network Internet address represents the Internet address of the target master controller in the main network. Through the same main network Internet address, the expansion device and the target master controller have the same Internet address in the main network, thus saving address resources while also achieving the purpose of determining the subordination relationship between the expansion device and the master controller.

[0061] Specifically, the expansion device obtaining information about the target master controller in the sub-network includes the expansion device obtaining the main network Internet address announced by the target master controller in the sub-network. In the actual application process, it can also be other information that can determine the identity information. The expansion device (slave controller) receives the Internet address (IP address) of the target master controller (such as the main controller of the outdoor unit) announced in the main network through the sub-network (the UART communication network of the second network). That is, the expansion device directly learns the communication address it should use in the main network and uses the same address as the target master controller in the main network for data transmission, thereby simplifying the address allocation process, saving the address resources of the main network, avoiding the complexity and possible errors of manual address setting, and improving the automation degree and efficiency of network device configuration.

[0062] In some alternative embodiments, after the expansion device in step S202 above sends device data to the target master controller in the main network according to the information of the target master controller, the method further includes step S203: the expansion device sends the sub-network address and function code to the target master controller in the main network according to the information of the target master controller, so that the target master controller determines the address of the expansion device according to the sub-network address and determines the function of the expansion device according to the function code. Wherein, the sub-network address is the address of different expansion devices in the sub-network, and the function code is a code representing the function of the expansion device. In this step, after the expansion device completes the transmission of device data, it is also necessary to further send its own sub-network address (i.e., the address in the second network, used to distinguish different expansion devices under the same master controller) and function code to the target master controller, which enables the target master controller to clearly identify the identity and function of the expansion device. It provides an important information basis for subsequent device management and data processing, ensures that the master controller can accurately control and coordinate each expansion device sharing the main network address with it, avoids control errors caused by device type confusion, and enhances the controllability and security of the system.

[0063] Specifically, in the main network, the expansion device and the target master controller share the same IP address. By attaching the sub-network address and function code to the device data frame, the target master controller can parse this additional information and identify the sub-network location and respective functional characteristics of different expansion devices. This makes it possible to send targeted data requests and instructions, enabling the target master controller to execute corresponding control strategies according to the specific functions of the expansion devices, improving the accuracy and intelligence level of network communication. In the main network, the same master controller can also have the above different types of expansion modules at the same time. When different types of expansion modules publish data frames in the main network, they calibrate their identities through specific function codes or data positions. For example, the data frame contains the following information:

[0064]

[0065] If the data at the same data location needs to be reused, the function code can be used to distinguish them. For example, the first extension module is the compressor drive module of the first outdoor unit, and the second extension module is the fan drive module of the second outdoor unit. When a certain area of ​​the data area contains data with the same attributes such as the motor's current, voltage, temperature of the cooling module, and the actual operating frequency of the motor, the first extension module and the second extension module use different function codes to publish the data information at the same location. If the data at the same data location does not need to be reused and is a dedicated function data, this location information can also be used to confirm the identity of the extension module. For example, the power consumption of the outdoor unit counted by the intelligent control module, the energy consumption model of the outdoor unit and other unique parameters.

[0066] In other optional embodiments, the above-mentioned step S202 in which the expansion device sends the device data to the target main controller in the main network according to the information of the target main controller can be achieved through the following steps: Step S2021: When the expansion device receives a data acquisition request sent by the target main controller in the sub-network, the expansion device sends the device data to the target main controller in the main network in response to the data acquisition request according to the information of the target main controller, wherein the data acquisition request is a request for the main controller to obtain the device data of the expansion device.

[0067] Specifically, the main network has Figure 2 The main network structure shown in the figure has sub-networks such as Figure 2 The sub-network structure shown in the figure is a master-slave communication mode, that is, the extended device will respond and transmit its device data to the target main controller in the main network only when it receives a data acquisition request from the target main controller in the sub-network. It ensures the on-demand transmission of data, reduces unnecessary data transmission, saves network bandwidth resources, optimizes communication delays, and improves the efficiency and responsiveness of system communication. In the sub-network, the target main controller can send a data acquisition request to a specific extended device by name. After confirming the request, the extended device uses the shared main network address in the main network to send device data to the target main controller. This request-response mechanism avoids unnecessary data broadcasting in the network, reduces the probability of data collision, and improves the accuracy and real-time performance of data transmission, thereby achieving more efficient communication.

[0068] In some other alternative embodiments, after the extension device in step S202 sends device data to the target master controller in the main network according to the information of the target master controller, the method further includes step S204: the extension device sends device data to the target master controller in the main network according to the information of the target master controller, so that the target master controller sends the device data to another master controller in the main network, where another master controller refers to a master controller in the main network other than the target master controller. This data sharing mechanism promotes the information transparency and collaborative working ability of the entire network system, helps with more comprehensive device status monitoring and system-level optimization control, and at the same time ensures the secure transmission and correct interpretation of data.

[0069] Specifically, in this way, device data can not only directly reach the target master controller from the extension device, but the target master controller can also further forward this data to other master controllers in the main network in the main network to achieve global data sharing and collaboration. The extension device first sends device data to the target master controller. After receiving the data through the shared address in the main network, the target master controller can forward the data to other master controllers according to system requirements. This process requires the target master controller to be able to identify the data source and understand the function code to ensure the correctness and integrity of the data. The global forwarding of data not only expands the available scope of information but also strengthens the mutual cooperation between devices, improving the overall operation efficiency and intelligent level of the system.

[0070] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the data transmission method of the present application will be described in detail below in combination with specific embodiments.

[0071] This embodiment relates to a specific data transmission method, including the following steps:

[0072] Step S1: The target master controller publishes the main network Internet address in its sub-network, where the main network Internet address represents the Internet address of the target master controller in the main network;

[0073] Step S2: The extension device obtains the information of the target master controller in the above sub-network, and this information is specifically the main network Internet address;

[0074] Step S3: The target master controller sends a data acquisition request in its sub-network. In response to the data acquisition request, the extension device sends device data to the target master controller corresponding to the main network Internet address in the main network;

[0075] Step S4: The extended device also sends the sub-network address and the function code to the target master controller in the main network, so that the target master controller determines the address of the extended device according to the sub-network address and determines the function of the extended device according to the function code;

[0076] Step S5: The target master controller sends the device data to another master controller in the main network, or the target master controller controls the controlled device according to the device data. In an air-conditioning control system, the controlled device is an air conditioner.

[0077] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program. When the program runs, it controls the device where the computer-readable storage medium is located to execute the data transmission method.

[0078] Specifically, the data transmission method includes:

[0079] Step S201, the extended device obtains information of the target master controller in the sub-network, where the target master controller is a master controller located in the same sub-network as the extended device. The sub-network has a sub-network structure, the master controller is used to control the operation of the device, and the extended device is used to expand the function of the device;

[0080] Step S202, the extended device sends the device data to the target master controller in the main network according to the information of the target master controller, where the device data is data representing the operation state of the extended device, and the main network has a main network structure.

[0081] An embodiment of the present invention provides a smart home system, including a controlled device and any one of the multi-device network topologies described above. The controlled device is communicatively connected to the master controller and the extended device in the multi-device network topology. The master controller and the extended device are respectively used to control the operation of the controlled device; it also includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, it implements at least the following steps:

[0082] Step S201, the extended device obtains information of the target master controller in the sub-network, where the target master controller is a master controller located in the same sub-network as the extended device. The sub-network has a sub-network structure, the master controller is used to control the operation of the device, and the extended device is used to expand the function of the device;

[0083] Step S202, the expansion device sends device data to the target master controller in the main network according to the information of the target master controller, where the device data is data characterizing the operating state of the expansion device, and the main network has a main network structure.

[0084] This application also provides an air conditioner system, including an air conditioner and any one of the multi-device network topologies described above. The air conditioner is communicatively connected to the master controller and the expansion device in the multi-device network topology. The master controller and the expansion device are respectively used to control the operation of the air conditioner; one or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors. The one or more programs are used to execute any one of the data transmission methods:

[0085] Step S201, the expansion device obtains the information of the target master controller in the sub-network, where the target master controller is the master controller located in the same sub-network as the expansion device. The sub-network has a sub-network structure. The master controller is used to control the operation of the device, and the expansion device is used to expand the function of the device;

[0086] Step S202, the expansion device sends device data to the target master controller in the main network according to the information of the target master controller, where the device data is data characterizing the operating state of the expansion device, and the main network has a main network structure.

[0087] This application also provides a smart home system, including: a controlled device and any one of the multi-device network topologies described above. The controlled device is communicatively connected to the master controller and the expansion device in the multi-device network topology. The master controller and the expansion device are respectively used to control the operation of the controlled device; one or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors. The one or more programs are used to execute any one of the data transmission methods.

[0088] Specifically, for example, the composition of a smart home system includes:

[0089] Controlled devices: including smart bulbs, smart curtains, environmental sensors (such as temperature and humidity sensors), smart door locks, smart home appliances (such as smart refrigerators, smart washing machines), etc. These devices have the ability to receive and execute control commands;

[0090] Master Controller: It can be the central control unit of each of the above intelligent devices, responsible for coordinating, controlling, and managing multiple intelligent devices. For example, when it detects that the outdoor environment is nighttime, it first closes the intelligent curtain and then turns on the intelligent light bulb, etc.;

[0091] Expansion Device: For example, each intelligent light bulb or intelligent curtain and other devices has a secondary controller for implementing proprietary functions, such as brightness adjustment of the intelligent light bulb, control of the opening and closing degree of the intelligent curtain, etc.;

[0092] First Network: As the main communication network, all controlled devices, the master controller, and the expansion devices conduct data transmission in this network. The network adopts a multi-master node structure, such as Wi-Fi or ZigBee, supporting efficient data exchange between devices;

[0093] Second Network: As the secondary communication network, it is used to confirm the subordinate relationship between the expansion device and the master controller and obtain the communication address of the master controller in the first network. The network can adopt a master-slave structure, such as Bluetooth or Z-Wave.

[0094] Example of intelligent device access and address sharing is as follows: When an intelligent light bulb is first connected to the smart home network, its secondary controller (expansion device) communicates with the smart home center (master controller) through the second network. The smart home center has a definite communication address in the first network, and it will announce this address to the secondary controller of the intelligent light bulb through the second network. The secondary controller accepts and uses the same address to publish the status information of the light bulb, such as brightness and color, etc., in the first network. In this way, the smart home center and other devices (such as the secondary controller of the intelligent curtain) can directly read and control the status of the intelligent light bulb through the first network. The access of other intelligent devices follows the same steps as the above intelligent light bulb device.

[0095] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device, so that they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order than here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps of them can be made into a single integrated circuit module to implement. Thus, the present invention is not limited to any specific combination of hardware and software.

[0096] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0097] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0098] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0099] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0100] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and a memory.

[0101] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of computer-readable media.

[0102] A computer-readable medium includes permanent and non-permanent, removable and non-removable media that can implement information storage by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic disk storage or other magnetic storage devices, or any other non-transitory medium that can be used to store information accessible by a computing device. As defined herein, a computer-readable medium does not include transitory computer-readable media such as modulated data signals and carrier waves.

[0103] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

[0104] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0105] 1) The multi-device network topology of the present application sets the main network structure to include multiple main controllers, one or more expansion devices, and a first router, and sets multiple sub-network structures. Each sub-network structure includes a main controller, one or more expansion devices corresponding to the main controller, and a second router. The main controllers in any two sub-network structures are different, the expansion devices in any two sub-network structures are different, and the second routers in any two sub-network structures are different. Compared with the prior art, when the expansion device and the main controller are connected to different networks, the data transmission between the expansion device and the main controller needs to be transmitted in the main network and the sub-network, and the data transmission efficiency is low. In the present application, the expansion devices are all connected to the main network and the sub-network, so that the main controller and the expansion device perform data transmission in the same network without cross-network transmission. Therefore, it can solve the problem that when the expansion device and the main controller are connected to different networks in the prior art, the data transmission between the expansion device and the main controller needs to be transmitted in different networks, resulting in low data transmission efficiency, and improve the data transmission efficiency.

[0106] 2) The data transmission method of the present application. The extended device obtains information of the target master controller in the sub-network, where the target master controller is the master controller located in the same sub-network as the extended device. The extended device sends device data to the target master controller in the main network according to the information of the target master controller, where the device data is data representing the operating state of the extended device. Compared with the prior art, when the extended device and the master controller are connected to different networks, the data transmission between the extended device and the master controller needs to be transmitted in the main network and the sub-network, and the data transmission efficiency is low. After the extended device of the present application obtains the information of the target master controller in the sub-network, it is equivalent to knowing the identity information of the target master controller. After knowing the identity information, the device data is sent to this target master controller in the main network. In this way, after determining the identity information through the sub-network, the data transmission is carried out in the main network, avoiding the device data of the extended device being transmitted from the sub-network to the target master controller in the main network, that is, avoiding cross-network data transmission. Therefore, it can solve the problem that when the extended device and the master controller are connected to different networks in the prior art, the data transmission between the extended device and the master controller needs to be transmitted in different networks, resulting in low data transmission efficiency, and achieve the purpose of improving the data transmission efficiency.

[0107] The above are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A multi-device network topology, characterized in that, Including: A main network structure, including multiple main controllers, one or more expansion devices, and a first router. Multiple said main controllers and one or more said expansion devices are all communicatively connected to the first router. Among them, the main controller is used to control the operation of the device, and the expansion device is used to expand the function of the device; Multiple sub-network structures, each of which includes one of the main controllers, one or more expansion devices corresponding to the main controller, and a second router. One of the main controllers and one or more expansion devices corresponding to the main controller are all communicatively connected to the second router. Among them, the main controllers in any two of the sub-network structures are different, the expansion devices in any two of the sub-network structures are different, and the second routers in any two of the sub-network structures are different.

2. The multi-device network topology according to claim 1, wherein The first router has a serial communication network interface, and each of the main controllers and each of the expansion devices has a main network interface. The serial communication network interface is communicatively connected to each of the main network interfaces.

3. The multi-device network topology according to claim 2, characterized in that, The multi-device network topology further includes: A first connection component, including a first port and a second port. The first port is connected to the serial communication network interface of the first router, and the second port is connected to the main network interface of the main controller or the expansion device.

4. The multi-device network topology according to claim 1, characterized in that, The second router has a master-slave communication network interface, and each of the main controllers and each of the expansion devices has a sub-network interface. The master-slave communication network interface is communicatively connected to each of the sub-network interfaces.

5. The multi-device network topology according to claim 4, wherein The multi-device network topology further includes: A second connection component, including a third port and a fourth port. The third port is connected to the master-slave communication network interface of the second router, and the fourth port is connected to the sub-network interface of the main controller or the expansion device.

6. A data transmission method, characterized in that, Applied to the multi-device network topology according to any one of claims 1 to 5, the data transmission method includes: The expansion device obtains information of a target main controller in the sub-network, where the target main controller is the main controller located in the same sub-network as the expansion device. The sub-network has a sub-network structure, the main controller is used to control the operation of the device, and the expansion device is used to expand the function of the device; The expansion device sends device data to the target main controller in the main network according to the information of the target main controller, where the device data is data representing the operation state of the expansion device, and the main network has a main network structure.

7. The data transmission method according to claim 6, wherein The expansion device obtains information of a target main controller in the sub-network, including: The expansion device obtains the main network Internet address announced by the target main controller in the sub-network, where the main network Internet address represents the Internet address of the target main controller in the main network.

8. The data transmission method according to claim 6, characterized in that After the expansion device sends the device data to the target main controller in the main network according to the information of the target main controller, the method further includes: The extension device sends the sub-network address and the function code to the target master controller in the main network according to the information of the target master controller, so that the target master controller determines the address of the extension device according to the sub-network address and determines the function of the extension device according to the function code, where the sub-network address is the address of different extension devices in the sub-network, and the function code is a code representing the function of the extension device.

9. The data transmission method according to claim 6, wherein The extension device sending device data to the target master controller in the main network according to the information of the target master controller includes: When the extension device receives a data acquisition request sent by the target master controller in the sub-network, in response to the data acquisition request, the extension device sends the device data to the target master controller in the main network according to the information of the target master controller, where the data acquisition request is a request representing that the master controller acquires the device data of the extension device.

10. The data transmission method according to claim 6, wherein, After the extension device sends the device data to the target master controller in the main network according to the information of the target master controller, the method further includes: The extension device sends the device data to the target master controller in the main network according to the information of the target master controller, so that the target master controller sends the device data to another master controller in the main network, where another master controller refers to a master controller other than the target master controller in the main network.

11. An air conditioner system, characterized in that, including: An air conditioner and the multi-device network topology structure according to any one of claims 1 to 5, where the air conditioner is communicatively connected to the master controller and the extension device in the multi-device network topology structure, and the master controller and the extension device are respectively used to control the operation of the air conditioner; One or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs are used to execute the data transmission method according to any one of claims 6 to 10.

12. A smart home system, characterized in that, including: A controlled device and the multi-device network topology structure according to any one of claims 1 to 5, where the controlled device is communicatively connected to the master controller and the extension device in the multi-device network topology structure, and the master controller and the extension device are respectively used to control the operation of the controlled device; One or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs are used to execute the data transmission method according to any one of claims 6 to 10.