Split type smart home terminal and control method
By designing a split smart home terminal, the base and control panel can be disassembled and combined, and the transfer and restart switching gateway functions between modules are utilized to solve the problems of the control panel being unable to move and high power consumption in the existing technology, and realize stable and reliable smart home control.
Patent Information
- Application Number
- CN202510936430.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-08
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-07-08
AI Technical Summary
The control panel of the existing smart home terminal cannot be separated from the installation box to achieve mobile function, the antenna signal attenuation is serious, the power consumption is high, and the installation box cannot independently control the smart home devices.
Design a split smart home terminal, including a detachable base and control panel. The base and control panel respectively contain a communication module, a main control module and an antenna. Gateway function switching is achieved through transfer and restart between modules. The control panel and base can be split and combined, and wired and wireless communication paths are switched to reduce power consumption.
The control panel and base are detachable and combinable, which reduces the power consumption of the control panel, increases the standby time of the device, and ensures stable network connection and control signal transmission.
Smart Images

Figure CN120428589B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home terminals, and in particular to a split-type smart home terminal and a control method. Background Art
[0002] Smart home terminals are devices that combine traditional home appliances with information technologies like the internet and the Internet of Things, enabling intelligent control of the home environment through human-computer interaction. Smart home terminals in residential buildings are typically wall-mounted, consisting of a mounting box and a control panel. The mounting box is embedded in the wall, with cables for communication and power supply routed inside. The control panel, which features a screen or buttons, is then fixed to the outside of the mounting box.
[0003] In the prior art, the base used to connect to the control panel is generally a mounting box, and within the mounting box, a fixed structure for mounting the control panel and a power supply are provided, meaning the control panel and mounting box are inseparable. The control panel includes a screen, buttons, a communication module, and other features. People desire a control panel that can be separated from the mounting box, enabling mobility while also controlling smart home functions. However, prior art control panels suffer from the following issues, making them impractical for detachable use: First, existing control panels place the antenna close to the plastic rear shell of the device. These devices are often handheld or desktop-only. Once embedded in a wall, the wireless signal rapidly attenuates, rendering them unable to connect to the network. Second, to respond to real-time smart home control and status acquisition, the control panel's wireless gateway function and role must be constantly active, unable to enter sleep mode. Consequently, overall power consumption remains high, resulting in continuous energy consumption. Third, the existing mounting box serves only as a fixed structure and power supply. Once separated from the control panel, the mounting box loses its smart home control functionality. Consequently, no detachable control panel and mounting box are currently available on the market.
[0004] The purpose of the present invention is to design a split-type smart home terminal and a control method to address the problems existing in the above-mentioned prior art. Summary of the Invention
[0005] In response to the problems existing in the above-mentioned prior art, the present invention provides a split-type smart home terminal and a control method, which can effectively solve at least one problem existing in the above-mentioned prior art.
[0006] The technical solution of the present invention is:
[0007] A split-type smart home terminal includes a detachable base and a control panel;
[0008] The base includes a first communication module, a first main control module, a first gateway, and a first antenna, wherein the first main control module is connected to the first communication module and the first gateway;
[0009] The control panel includes a second communication module, a second main control module, a second gateway, and a second antenna, and the second main control module is connected to the second communication module and the second gateway;
[0010] After the control panel is installed on the base, the following steps are executed: the second main control module generates a transfer and add instruction and sends it to the second gateway; the second main control module writes a gateway program into the second gateway and controls the second gateway to restart as a gateway device; sub-devices in the smart home system are added to the terminal list of the second gateway; the first communication module is connected to the Internet; in response to a control signal sent by the cloud, the first main control module receives the control signal through the first communication module, and then forwards the control signal to the second main control module. The second main control module sends the control signal to the smart home system through the second gateway and the second antenna;
[0011] After the control panel is detached from the base, the following operations are executed: the first main control module generates a transfer and add instruction and sends it to the first gateway; the second main control module writes a sub-device program into the second gateway and controls the second gateway to restart as a sub-device, transfers the smart home system to the terminal list of the first gateway, connects the first communication module and the second communication module to the Internet; in response to a control signal sent by the control panel, the control panel sends the control signal to the cloud through the second communication module; the first main control module receives the control signal from the cloud through the first communication module and sends it to the smart home system through the first gateway and the first antenna.
[0012] Furthermore, the base includes a first connection module, and the control panel includes a second connection module;
[0013] The first connection module and the second connection module are used by the first main control module and the second main control module respectively to determine the connection status between the control panel and the base.
[0014] Furthermore, the first connection module includes a comparator 2U1, a positive electrode of the comparator 2U1 is connected to a series connection of a resistor 2R2 and a capacitor 2C2, the resistor 2R2 and the capacitor 2C2 are connected in series between VCC and GND, a negative electrode of the comparator 2U1 is connected to a series connection of a resistor 2R3 and a resistor 2R4, the resistor 2R3 and the resistor 2R4 are connected in series between VCC and GND, and an output end of the comparator 2U1 is connected to the first main control module;
[0015] The second connection module includes a resistor 1R1. After the second connection module is connected to the first connection module, the resistor 1R1 is connected between the positive electrode of the comparator 2U1 and GND, and the second main control module is connected to the positive electrode of the comparator 2U1.
[0016] When the output level of the comparator 2U1 has a falling edge and is at a low level, the first main control module determines that the control panel is installed on the base.
[0017] Furthermore, after the second connection module is connected to the first connection module, the positive pole of the comparator 2U1 is connected to the second main control module. When the positive pole level of the comparator 2U1 has a rising edge and is a high level, the second main control module determines that the control panel is installed on the base.
[0018] Furthermore, before transferring the sub-devices in the smart home system to the terminal list of the second gateway, executing: transmitting the node information and status information in the smart home system to the second main control module through the first main control module;
[0019] Before transferring the sub-devices in the smart home system to the terminal list of the first gateway, executing: transmitting the node information and status information in the smart home system to the first main control module through the second main control module.
[0020] Furthermore, after the control panel is installed on the base, the first main control module and the second main control module are connected via a wired connection, and the second main control module synchronizes the node information and status information in the smart home system in real time and transmits them to the first main control module.
[0021] Optionally, after the control panel is detached from the base, the second gateway and the second antenna power are turned off through the second main control module.
[0022] Optionally, after the control panel is detached from the base and the sub-devices in the smart home system are transferred to the terminal list of the first gateway, the following steps are performed: adding the second gateway as a sub-device to the terminal list of the first gateway, and the second gateway periodically sends a heartbeat signal to the first gateway.
[0023] Furthermore, the base is provided with a button, which is connected to the first main control module. After the control panel is detached from the base, the first main control module sends a control signal from the button to the smart home system through the first gateway and the first antenna.
[0024] A split-type smart home terminal control method comprises the following steps:
[0025] After the control panel is installed on the base, the following steps are executed: writing a gateway program to the control panel's gateway, controlling the control panel's gateway to restart as a gateway device, adding sub-devices in the smart home system to a terminal list of the control panel's gateway, connecting the base to the Internet, and responding to a control signal sent from the cloud. After the base receives the control signal, the base forwards the control signal to the control panel, which is then sent to the smart home system through the control panel's gateway;
[0026] After the control panel is separated from the base, the following operations are executed: writing a sub-device program to the gateway of the control panel, controlling the gateway of the control panel to restart as a sub-device, transferring the smart home system to the terminal list of the gateway of the base, connecting the base and the control panel to the Internet, and in response to the control panel sending a control signal, the control panel sends the control signal to the cloud, and after the base receives the control signal from the cloud, it sends it to the smart home system through the gateway of the base.
[0027] Therefore, the present invention provides the following effects and / or advantages:
[0028] The present invention provides a first gateway and a first antenna on the base, and the control panel can realize the functions of being detachable and combinable by registering sub-devices in the smart home system under the corresponding gateway and through the network path of the corresponding control signal in two states: detached from the base and combined with the base.
[0029] After the control panel and the base are separated, this application realizes the switching of gateway functions by adding a sub-device to the first gateway of the base and turning off the second gateway of the control panel, which can greatly reduce the power consumption of the control panel battery and increase the standby time of the device.
[0030] After the control panel and the base are separated, the present application adds the second gateway as a sub-device of the first gateway, thereby disconnecting the communication between the second gateway and the smart home system. The second gateway only needs to periodically send a heartbeat signal to the first gateway to stay online and inform it that it is online. The second gateway can be kept online continuously in a low-power mode. When the control panel and the base are combined, the second gateway can be quickly connected to the smart home system.
[0031] In this application, after the control panel and the base are separated, the control signal emitted by the control panel is sent to the cloud. After the base receives the control signal, the base sends it to the first gateway for distribution to the smart home system.
[0032] The base of the present application is provided with buttons, and the base can work independently after being separated from the control panel without relying on the control panel.
[0033] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0034] It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a schematic diagram of module connections according to the first embodiment of the present invention.
[0036] Figure 2 This is a schematic diagram of the base and control panel after being disassembled.
[0037] Figure 3 This is a schematic diagram of the combined base and control panel.
[0038] Figure 4 Schematic diagram of a circuit of a first connection module and a second connection module.
[0039] Figure 5 This is a schematic diagram of the disassembled base and control panel of the second embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to facilitate understanding by those skilled in the art, the structure of the present invention is further described in detail with reference to the embodiments and the accompanying drawings:
[0041] Example 1
[0042] refer to Figure 1 , a split-type smart home terminal, including a detachable base and a control panel;
[0043] The base includes a first communication module, a first main control module, a first gateway, and a first antenna, wherein the first main control module is connected to the first communication module and the first gateway;
[0044] The control panel includes a second communication module, a second main control module, a second gateway, and a second antenna, and the second main control module is connected to the second communication module and the second gateway;
[0045] After the control panel is installed on the base, the following steps are executed: the second main control module generates a transfer and add instruction and sends it to the second gateway; the second main control module writes a gateway program into the second gateway and controls the second gateway to restart as a gateway device; sub-devices in the smart home system are added to the terminal list of the second gateway; the first communication module is connected to the Internet; in response to a control signal sent by the cloud, the first main control module receives the control signal through the first communication module, and then forwards the control signal to the second main control module. The second main control module sends the control signal to the smart home system through the second gateway and the second antenna;
[0046] After the control panel is detached from the base, the following operations are executed: the first main control module generates a transfer and add instruction and sends it to the first gateway; the second main control module writes a sub-device program into the second gateway and controls the second gateway to restart as a sub-device, transfers the smart home system to the terminal list of the first gateway, connects the first communication module and the second communication module to the Internet; in response to a control signal sent by the control panel, the control panel sends the control signal to the cloud through the second communication module; the first main control module receives the control signal from the cloud through the first communication module and sends it to the smart home system through the first gateway and the first antenna.
[0047] In this embodiment, the control panel and the base can be connected via a detachable connection structure. Once connected to the base, the control panel can block the base's space facing the outside wall, thereby affecting the base's antenna signal and making it difficult for it to communicate with the outside world. The control panel can be a smart screen, an intelligent display device typically used for home entertainment and smart home control. The smart home can be controlled through the interface on the control panel.
[0048] The gateway program in this embodiment is a program used to control the gateway to implement its corresponding functions. The functions of the gateway program include, but are not limited to, connecting to other sub-devices, sending control signals to other sub-devices, and obtaining status information of other sub-devices. The sub-device program is a program used to control the gateway to implement the corresponding functions of the sub-devices. The functions of the sub-device program include, but are not limited to, adding the terminal list of other gateways, receiving control signals sent by the gateway, and sending its own status information to the gateway.
[0049] Preferably, the split-type smart home terminal consists primarily of a base and a control panel, connected by pins and contacts. Because both the base and control panel incorporate a main control module, the number of pins and contacts can be significantly reduced. For example, using I2C communication between main control chips requires two signal cables: one for power and one for ground, plus one for detection and judgment. Therefore, the number of pins and contacts can be reduced to just five, meeting product requirements. Furthermore, the base is required to extend at least 5mm beyond the wall to facilitate outward radiation of the base's antenna signal.
[0050] The first and second communication modules can access the internet to provide network services to the main control module, enabling it to upload or download control signals. The gateway is primarily responsible for controlling and coordinating subnodes and forwarding corresponding data information. In this embodiment, gateways are installed on both the base and the control panel. The main control module can control one of the gateways to register, connect, transfer, or disconnect sub-devices in the smart home system.
[0051] This embodiment describes a Zigbee-based smart home system. Specifically, during initialization, the control panel and base are connected and embedded in the wall. Since the first gateway is within the base, the first antenna's signal is blocked by the control panel, making it difficult to radiate. Therefore, the first gateway synchronizes data only through a wired connection (e.g., I2C or UART bus) between the second gateway and the second main control module, and is not part of the wireless Zigbee network. All other sub-devices (S1, S2, S3, ..., Sn) are added under the second gateway. For example, when the sub-device S2 is ready to be added to the wireless Zigbee network, the process of adding the device is: by operating the device main interface or APP, let the second gateway enable Zigbee network access. After S2 is powered on, it will initiate a network access application to the second gateway. After confirming the device information, S2 will be added to the Zigbee network. At this time, the second gateway will synchronize the data to the second main control module. On the one hand, the second main control module transmits the S2 data to the router through the second communication module, and finally updates the information in the cloud; on the other hand, the S2 data is sent to the first main control module via a wired method, and then transmitted to the first gateway by the first main control module. In this way, the first gateway also completes the data update and synchronization of the sub-nodes of S2.
[0052] After the control panel is separated from the base, the second main control module in the control panel and the first main control module in the base respectively detect the separation of the two. At this time, the second gateway does not sleep immediately, but needs to collect the latest sub-node data and transmit it to the second main control module, and control the second gateway and open the ZigBee network. The second main control module processes the latest sub-node data, and transmits the updated latest sub-node data to the cloud through the wireless second communication module through the router. Then the cloud sends the latest sub-node data and information to the first main control module through the router through the first communication module of the base. After receiving the data, the first main control module processes and transmits the updated data to the first gateway, and controls the first gateway to open the network access application. The second gateway initiates a network access request to the first gateway, and replaces the second gateway after successful network access, updates and synchronizes network information. After the second gateway confirms that the network update of the first gateway is complete, it initiates a deep sleep request to the second main control module. After the second main control module confirms that the handshake is complete, the second gateway enters low power consumption mode.
[0053] like Figure 2 As shown, Figure 2 The bold lines in the figure represent the path of control signals. Data from subnodes within the network managed by the first gateway is transmitted through the first gateway to the first main control module. After processing, the first main control module transmits the information to the router via the first communication module (e.g., Ethernet module) for synchronization in the cloud. To control sub-device S2 under the first gateway from the control panel, click on the control panel to set S2's status. The data is then processed by the second main control module and transmitted to the router and cloud via the second communication module. The cloud responds by sending information through the router and the first communication module to the first main control module. The first main control module then processes the information and transmits it to S2 via the first gateway, which then executes the corresponding action.
[0054] In addition, after the control panel and the base are separated, the control panel may be in different rooms, states, etc. In this case, the network environment of the control panel is more complex and unstable, while the base is fixed at a certain location, and its network environment is single and stable. Therefore, this embodiment accesses the smart home system through the first gateway of the base, sends the control signal emitted by the control panel to the base through the cloud, and sends the control signal to the smart home through the base, which can more stably and quickly realize the control or status acquisition of the smart home.
[0055] After the control panel is installed on the base, the control panel and the base are combined. Figure 3As shown, the second main control module and the first main control module first detect the interrupt signal respectively, the first gateway transmits all the sub-node data to the first main control module and opens the network, and the first main control module transmits the updated data to the second main control module through a wired connection, such as the I2C protocol, after data processing, and the other side passes through the first communication module and the router and then transmits it to the cloud. After receiving the sub-node data, the second main control module first wakes up the second gateway, then transmits the information to the second gateway to update the data, and asks the second gateway to open the network access application. The second gateway initiates a network access request to the first gateway. At this time, since the two devices are very close, even if the wireless signal of the first gateway is very poor, it can still be captured by the second gateway. Therefore, when the network access is successful, the second gateway replaces the first gateway and updates the network information. When the second gateway network update is completed, the first gateway can still receive the update information of the sub-nodes under the network under the jurisdiction of the second gateway in a wired form.
[0056] In addition, after the control panel is installed on the base, when a mobile phone or other smart terminal sends a control signal to the cloud, since the base is in a fixed position, the first communication module of the base can access the Internet in a wired manner. Therefore, this embodiment configures the base to uniformly receive the control signals sent from the cloud, and after receiving the control signals, the base forwards the control signals to the second main control module, and the second main control module sends the control signals to the smart home system.
[0057] The control panel and base are combined, and the base can provide power supply and charging for the control panel. Figure 3 The thick line in the figure is the path of the control signal. When the control signal is initiated through the buttons or touch screen of the control panel, the control signal directly reaches the smart home system through the second gateway.
[0058] Furthermore, the base includes a first connection module, and the control panel includes a second connection module;
[0059] The first connection module and the second connection module are used by the first main control module and the second main control module respectively to determine the connection status between the control panel and the base.
[0060] Furthermore, the first connection module includes a comparator 2U1, a positive electrode of the comparator 2U1 is connected to a series connection of a resistor 2R2 and a capacitor 2C2, the resistor 2R2 and the capacitor 2C2 are connected in series between VCC and GND, a negative electrode of the comparator 2U1 is connected to a series connection of a resistor 2R3 and a resistor 2R4, the resistor 2R3 and the resistor 2R4 are connected in series between VCC and GND, and an output end of the comparator 2U1 is connected to the first main control module;
[0061] The second connection module comprises a resistor 1R1, after the second connection module and the first connection module are connected, the resistor 1R1 is connected between the positive electrode of the comparator 2U1 and GND, and the second master control module is connected to the positive electrode of the comparator 2U1.
[0062] When the output level of the comparator 2U1 appears a falling edge and is low, the first master control module determines that the control panel is installed on the base.
[0063] The circuit diagram of the first connection module and the second connection module can refer to Figure 4 When the control panel and the base are combined, the main body and the base are connected together, the main body and the base are connected together, the main path of the current in the detection circuit is: VCC→2R2→1R1→GND, VCC→2R3→2R4→GND, at this time, VP1_M1=VP2=VCC*1R1 / (2R2+1R1) and the negative electrode input voltage V2U1- of the comparator 2U1 is VCC*2R4 / (2R3+2R4), wherein it can be seen that the interrupt signal P1_M1 and the P2 signal are equal in level, and the voltage value is jointly affected by the power supply voltage VCC, 1R1 and 2R2. Typically, the power supply voltage VCC is 3.3V, 1R1:2R2=1:1, 2R3:2R4=1:2, then VP1_M1=VP2=VCC*1R1 / (2R2+1R1)=1.65V, V2U1-=VCC*2R4 / (2R3+2R4)=2.2V, since VP2_M2V2U1-, the comparator outputs a low level signal, that is, the voltage amplitude is 0V. However, when the main body and the base are disconnected, that is, P2 and P1_M1 are disconnected, the voltage on 1C1 becomes the voltage discharged through 1R1 to GND, that is, the voltage quickly drops from VP1_M1=1.65V to 0V; for the base circuit analysis, at this time, 2R2 cannot form a voltage divider with 1R1, the current charges from VCC through 2R2 to 2C2, and after the charging stops, VP2 rises to VCC, that is, VP2=VCC=3.3V, since VP2>V2U1-, the comparator outputs a high level signal, that is, the VCC voltage amplitude is 3.3V. The base part detection circuit and the main body detection circuit are different in the scheme, which is considered for power supply demand. Since the base power supply is converted from alternating current to direct current, under the condition that the power supply scheme allows, the power consumption problem can not be considered.
[0064] After the base and control panel are combined, resistor 1R1 acts as a voltage divider, causing the input voltage of the positive electrode of comparator 2U1 to change, thereby changing the comparison result P2_M2 of comparator 2U1. At the same time, after the base and control panel are combined, the voltage divider P1_M1 obtained by resistor 1R1 is transmitted to the second main control module, and the comparison result P2_M2 of comparator 2U1 is transmitted to the first main control module, thereby informing the first and second main control modules of the base and control panel combination. When the base and control panel are separated, the comparison result P2_M2 of comparator 2U1 is reversed, and the voltage divider P1_M1 obtained by resistor 1R1 becomes smaller, thereby informing the first and second main control modules of the separation of the base and control panel.
[0065] At the same time, P1_M1 and P2_M2 serve as interrupt signals for the first main control module and the second main control module respectively. When the first main control module and the second main control module receive the interrupt signals, the currently executed tasks of the first main control module and the second main control module are suspended, and the transfer work of the sub-devices in the smart home system is carried out. After the transfer work is completed, the execution returns to the previously suspended task.
[0066] Furthermore, after the second connection module is connected to the first connection module, the positive pole of the comparator 2U1 is connected to the second main control module. When the positive pole level of the comparator 2U1 has a rising edge and is a high level, the second main control module determines that the control panel is installed on the base.
[0067] In this embodiment, when the first main control module detects a rising edge and a high level from the input interrupt signal P2_M2, the first main control module needs to wait for a communication request from the second main control module. If the communication request from the second main control module is not received within a preset time, it indicates that the control panel and the base are disconnected. When P2_M2 detects a falling edge and a low level, it similarly waits for a communication request from the second main control module. If the communication request is successful, it indicates that the control panel and the base are connected. Similarly, when the second main control module detects a rising edge and a high level from the input interrupt signal P1_M1, if the second main control module receives a communication request from the first main control module within a preset time, the second main control module determines that the control panel is installed on the base.
[0068] Furthermore, before transferring the sub-devices in the smart home system to the terminal list of the second gateway, executing: transmitting the node information and status information in the smart home system to the second main control module through the first main control module;
[0069] Before transferring the sub-devices in the smart home system to the terminal list of the first gateway, executing: transmitting the node information and status information in the smart home system to the first main control module through the second main control module.
[0070] Before transferring a sub-device in a smart home system from one gateway to another, the node information and status information of the smart home system stored in the transferred gateway may be unupdated data. For example, in the split state, the user deletes the smart home sub-device S1 through the first gateway and sets the status of the sub-device S3 to open. Before the split, the smart home connected to the second gateway includes S1, and the status of S3 at that time was closed. At this time, if the node information and status information in the smart home system are not updated, the second gateway after the combination will not be able to know that S1 has been deleted and the status of S3 has changed. Therefore, this embodiment transmits the node information and status information in the smart home system before the operation of transferring the gateway, thereby updating the data in the corresponding gateway, so that the gateway is registered with the network and the updated status has been added to the corresponding sub-device.
[0071] Furthermore, after the control panel is installed on the base, the first main control module and the second main control module are connected via a wired connection, and the second main control module synchronizes the node information and status information in the smart home system in real time and transmits them to the first main control module.
[0072] In this embodiment, since the wireless signal between the base and the control panel is attenuated after they are combined, making communication impossible, or since the base is embedded in a cavity and has a weak signal, the first main control module and the second main control module can achieve optimal communication through a wired connection. Furthermore, since the base and the control panel are combined, the control panel is powered by the base and does not need to consider low power consumption. Therefore, the second main control module synchronizes the node information and status information in the smart home system to the first main control module in real time, allowing the first main control module to update the node information and status information in the smart home system to the first gateway in real time. Therefore, after the control panel and the base are separated, the node information and status information of the smart home system stored in the base is already the latest version. At this time, the base only needs to activate the first gateway and transfer the smart home system to the terminal list of the first gateway, which can speed up gateway switching and improve response speed.
[0073] Furthermore, after the control panel is detached from the base, the power supply of the second gateway and the second antenna is turned off through the second main control module.
[0074] When the control panel is detached from the base, the control panel loses the power supply from the base and is powered by a battery. In order to achieve low power consumption, the second main control module turns off the power supply of the second gateway and the second antenna, thereby reducing the power consumption of the control panel.
[0075] Furthermore, the base is provided with a button, which is connected to the first main control module. After the control panel is detached from the base, the first main control module sends a control signal from the button to the smart home system through the first gateway and the first antenna.
[0076] In this embodiment, the base is provided with a button. After the base is separated from the control panel, the base can work independently. When the user operates the button, the base can independently send a control signal to the smart home system through the first gateway and the first antenna, which changes the current situation in which the base of the traditional smart home control terminal can only support or install the control panel but cannot work independently.
[0077] Example 2
[0078] This embodiment is basically the same as the first embodiment, except that after the control panel is detached from the base, the second main control module does not shut down the power supply of the second gateway and the second antenna. Instead, after transferring the sub-devices in the smart home system to the terminal list of the first gateway, the following steps are performed: adding the second gateway as a sub-device to the terminal list of the first gateway, and the second gateway periodically sending a heartbeat signal to the first gateway.
[0079] like Figure 5 As shown, at this time, the first gateway is connected to the second gateway, the second gateway is a sub-device of the first gateway, and the second gateway is disconnected from the sub-devices of other smart home systems. The second gateway does not need to regularly collect node data, status information, etc. of the sub-devices of the smart home system. The second gateway only needs to regularly send a heartbeat signal to the first gateway to inform the first gateway that the second gateway itself is activated. When the control panel is combined with the base, the control panel omits the process of powering on and registering the second gateway to the network. At this time, the second gateway can take over the sub-devices in the ZigBee network more quickly.
[0080] Example 3
[0081] A split-type smart home terminal control method comprises the following steps:
[0082] After the control panel is installed on the base, the following steps are executed: writing a gateway program to the control panel's gateway, controlling the control panel's gateway to restart as a gateway device, adding sub-devices in the smart home system to a terminal list of the control panel's gateway, connecting the base to the Internet, and responding to a control signal sent from the cloud. After the base receives the control signal, the base forwards the control signal to the control panel, which is then sent to the smart home system through the control panel's gateway;
[0083] After the control panel is separated from the base, the following operations are executed: writing a sub-device program to the gateway of the control panel, controlling the gateway of the control panel to restart as a sub-device, transferring the smart home system to the terminal list of the gateway of the base, connecting the base and the control panel to the Internet, and in response to the control panel sending a control signal, the control panel sends the control signal to the cloud, and after the base receives the control signal from the cloud, it sends it to the smart home system through the gateway of the base.
[0084] The principles and processes of this embodiment are basically the same as those of the first embodiment.
[0085] It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third etc. does not indicate any order. These words may be interpreted as names.
[0086] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0087] In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "connect," "fixed," etc. should be understood broadly. For example, they may refer to fixed connection, detachable connection, or integration; mechanical connection or electrical connection; direct connection or indirect connection through an intermediate medium; internal communication between two components or interaction between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.
[0088] In the description of this specification, the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms should not be understood as necessarily referring to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.
Claims
1. A split-type smart home terminal, characterized by: Includes detachable base and control panel; The base includes a first communication module, a first main control module, a first gateway, and a first antenna, wherein the first main control module is connected to the first communication module and the first gateway; The control panel includes a second communication module, a second main control module, a second gateway, and a second antenna, and the second main control module is connected to the second communication module and the second gateway; After the control panel is installed on the base, the following steps are executed: the second main control module generates a transfer and add instruction and sends it to the second gateway; the second main control module writes a gateway program into the second gateway and controls the second gateway to restart as a gateway device; sub-devices in the smart home system are added to the terminal list of the second gateway; the first communication module is connected to the Internet; in response to a control signal sent by the cloud, the first main control module receives the control signal through the first communication module, and then forwards the control signal to the second main control module. The second main control module sends the control signal to the smart home system through the second gateway and the second antenna; After the control panel is separated from the base, the following steps are executed: the first main control module generates a transfer and add instruction and sends it to the first gateway; the second main control module writes a sub-device program into the second gateway and controls the second gateway to restart as a sub-device, transfers the smart home system to the terminal list of the first gateway, connects the first communication module and the second communication module to the Internet; in response to a control signal sent by the control panel, the control panel sends the control signal to the cloud via the second communication module; the first main control module receives the control signal from the cloud via the first communication module and sends it to the smart home system via the first gateway and the first antenna; The base includes a first connection module, and the control panel includes a second connection module; The first connection module and the second connection module are used by the first main control module and the second main control module respectively to determine the connection status between the control panel and the base; The first connection module includes a comparator 2U1, wherein the positive electrode of the comparator 2U1 is connected to the series connection of the resistor 2R2 and the capacitor 2C2, which are connected in series between VCC and GND, and the negative electrode of the comparator 2U1 is connected to the series connection of the resistor 2R3 and the resistor 2R4, which are connected in series between VCC and GND. The output end of the comparator 2U1 is connected to the first main control module; The second connection module includes a resistor 1R1. After the second connection module is connected to the first connection module, the resistor 1R1 is connected between the positive electrode of the comparator 2U1 and GND, and the second main control module is connected to the positive electrode of the comparator 2U1. When the output level of the comparator 2U1 has a falling edge and is at a low level, the first main control module determines that the control panel is installed on the base.
2. A split-type smart home terminal according to claim 1, characterized in that: After the second connection module is connected to the first connection module, the positive electrode of the comparator 2U1 is connected to the second main control module. When the positive electrode level of the comparator 2U1 has a rising edge and is at a high level, the second main control module determines that the control panel is installed on the base.
3. The split-type smart home terminal according to claim 1, characterized in that: Before transferring the sub-devices in the smart home system to the terminal list of the second gateway, executing: transmitting the node information and status information in the smart home system to the second main control module through the first main control module; Before transferring the sub-devices in the smart home system to the terminal list of the first gateway, executing: transmitting the node information and status information in the smart home system to the first main control module through the second main control module.
4. The split-type smart home terminal according to claim 1, characterized in that: After the control panel is installed on the base, the first main control module and the second main control module are connected by wire, and the second main control module synchronizes the node information and status information in the smart home system in real time and transmits them to the first main control module.
5. The split-type smart home terminal according to claim 1, characterized in that: After the control panel is detached from the base, the power supply of the second gateway and the second antenna is turned off through the second main control module.
6. The split-type smart home terminal according to claim 1, characterized in that: After the control panel is detached from the base and the sub-devices in the smart home system are transferred to the terminal list of the first gateway, the following steps are performed: adding the second gateway as a sub-device to the terminal list of the first gateway, and the second gateway periodically sends a heartbeat signal to the first gateway.
7. The split-type smart home terminal according to claim 1, characterized in that: The base is provided with a button, and the button is connected to the first main control module. After the control panel is separated from the base, the first main control module sends a control signal from the button to the smart home system through the first gateway and the first antenna.
8. A split-type smart home terminal control method, characterized by: The following steps are involved: After the control panel is installed on the base, the following steps are executed: writing a gateway program to the control panel's gateway, controlling the control panel's gateway to restart as a gateway device, adding sub-devices in the smart home system to a terminal list of the control panel's gateway, connecting the base to the Internet, and responding to a control signal sent from the cloud. After the base receives the control signal, the base forwards the control signal to the control panel, which is then sent to the smart home system through the control panel's gateway; After the control panel is separated from the base, the following steps are performed: writing a sub-device program to the gateway of the control panel, controlling the gateway of the control panel to restart as a sub-device, transferring the smart home system to a terminal list of the gateway of the base, connecting the base and the control panel to the Internet, and in response to a control signal from the control panel, the control panel sending the control signal to the cloud, and the base receiving the control signal from the cloud and sending the control signal to the smart home system via the gateway of the base; The base includes a first connection module and a first main control module, and the control panel includes a second connection module and a second main control module; The first connection module and the second connection module are used by the first main control module and the second main control module respectively to determine the connection status between the control panel and the base; The first connection module includes a comparator 2U1, wherein the positive electrode of the comparator 2U1 is connected to the series connection of the resistor 2R2 and the capacitor 2C2, which are connected in series between VCC and GND, and the negative electrode of the comparator 2U1 is connected to the series connection of the resistor 2R3 and the resistor 2R4, which are connected in series between VCC and GND. The output end of the comparator 2U1 is connected to the first main control module; The second connection module includes a resistor 1R1. After the second connection module is connected to the first connection module, the resistor 1R1 is connected between the positive electrode of the comparator 2U1 and GND, and the second main control module is connected to the positive electrode of the comparator 2U1. When the output level of the comparator 2U1 has a falling edge and is at a low level, the first main control module determines that the control panel is installed on the base.
Citation Information
Patent Citations
Separated control panel and smart home system
CN214670122U