Interactive control system and method for smart home
By adopting wireless radio frequency communication with distributed topology connection and decentralized control mode in the smart home system, the problems of device diversity, high cost and complex user operation of the traditional system are solved, and flexible connection, low cost and ease of use are achieved. Sexy, smart home control suitable for a variety of people.
Patent Information
- Application Number
- CN202410593628.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-14
AI Technical Summary
Traditional smart home systems have problems such as many types of devices, high costs, serious market monopoly, limited distance between devices, and complicated user operations. They are especially unsuitable for the elderly and people who lack computer operation skills.
A smart home interactive control system that adopts a decentralized topology connection method, adopts a decentralized control mode through wireless radio frequency communication between multiple control units, uses MCU units and storage media for data processing and transmission, and supports voice control and flexibility device connection.
It achieves more flexible device connection and scalability, reduces hardware costs, simplifies user operations, is suitable for a variety of people, and provides longer data transmission distance and convenient after-sales maintenance.
Smart Images

Figure CN118170042B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to an interactive control and method for a smart home. Background Art
[0002] Existing smart home control systems are mainly connected to the whole house through two types of integrated wired and wireless methods. Wired connections usually use protocols such as Ethernet and RS-485, while wireless connections use wireless communication technologies such as WiFi, Bluetooth, and Zigbee.
[0003] In traditional smart home systems, the common topological connection structure is the star topology. In the star topology, the control center is connected to each control object as a central device to form a central control architecture. The control center includes gateway devices, central control devices, WIFI devices and servers.
[0004] The controlled objects are the devices controlled in the smart home system, including control switches, smart bulbs, touch screen panels, voice units, sensor units, and motor units. These devices send data packets to the control center for processing via wired or wireless connections, and then the control center sends them back to the controlled objects for execution.
[0005] However, there are some limitations and problems in the structure of traditional smart home systems. First, the control object relies on the data processing of the control center, which makes the equipment in the system diverse and costly. Standardized production can only be achieved through brand core, which increases the market monopoly problem. Second, the control object cannot be far away from the control center, which limits the data transmission distance and requires the devices to be close to each other. In addition, some systems have high requirements for user operation. Some require the use of smart terminals for setting operations, which are not suitable for the elderly, children and people who lack computer operation technology foundation.
[0006] Therefore, it is necessary to design an interactive control system and method for smart home to solve the technical problem that the structure of traditional smart home system in the prior art is limited. Summary of the invention
[0007] In view of this, the present invention proposes an interactive control system and method for smart home, aiming to solve the technical problem of solving the structural limitations of traditional smart home systems in the prior art.
[0008] In one aspect, the present invention provides an interactive control system for a smart home, comprising:
[0009] A control unit, wherein the control unit is provided with a plurality of control units, each of which comprises a basic communication module, a power module and an input / output module, and the control units communicate with each other in a distributed topology connection mode; the basic communication module comprises a wireless radio frequency module, an MCU unit, a storage medium, and an internal address selector, and the wireless radio frequency is set to a 2.4G frequency band; wherein the internal address selector is a tool such as a dip switch or a button for controlling the nth data bit in the communication data group, and n represents the internal address; the input / output module comprises input information and output information on the control unit, and the input / output control information can be used to generate a communication data group in the MCU unit, and the communication data group comprises a command bit, a command operation bit, and N data bits, and the data bits are used to indicate the relay switch or the value size during the wireless communication process;
[0010] The basic communication module sets the data sending and receiving rules according to the program in the MCU unit, and transmits the wireless communication data packet between each of the control units. The wireless communication data packet includes an external wireless communication address, a communication data group, and a check code; wherein the external wireless communication address is encrypted by the program algorithm on the MCU unit and saved in the storage medium, and is used for the address data on the wireless radio frequency module.
[0011] Preferably, the wireless communication data packet includes a communication data group, a wireless communication external address and a check code contained in the MCU unit; the input and output control information is first packaged by a program in the MCU unit to generate a communication data group and sent to the wireless radio frequency module, and then packaged for a second time to generate a wireless communication data packet to be sent;
[0012] The first packaging includes obtaining input and output control information of the MCU unit, wherein the input and output control information includes key detection information, serial port detection information, SPI detection information and IIC read detection information, and regenerating a communication data group through a program in the MCU unit and sending it to the wireless radio frequency module;
[0013] The communication data group includes a command bit, a command operation bit and N data bits, wherein the data bits include a data position n and data content, wherein N is determined by the maximum value of the internal address selector;
[0014] The second packaging includes the wireless radio frequency module packaging the wireless communication external address and the check bit and the communication data group into a wireless communication data packet.
[0015] Preferably, the wireless communication external address is data encrypted by the MCU unit through a program algorithm and saved in the storage medium.
[0016] Preferably, the internal address selector controls the data bit of the nth item, and the data bit serves as a numerical variable or a switch state to control the input and output control information.
[0017] Preferably, the control unit includes a voice control unit, a display screen control unit, a bulb brightness adjustment control unit, a temperature and humidity control unit, a security monitoring control unit, a curtain and window control unit, and a household appliance control unit.
[0018] Preferably, the program in the MCU unit sets data sending and receiving rules, including:
[0019] When the MCU unit is started for the first time, the wireless radio frequency module is set to be in a receiving state, waiting for data reception, and the main program of the MCU unit continuously detects the input and output control information;
[0020] If the MCU unit detects that the communication data group has changed, the wireless RF module is switched to a sending state by the MCU unit, and the communication data group is packaged into the wireless communication data packet for sending. After the sending is completed, the wireless RF module is restored to a receiving state, waiting for the second data to be received, and the main program of the MCU unit is restored to continuously detecting the input and output control information;
[0021] If it is detected that the communication data group has not changed, the wireless radio frequency module maintains a receiving state, and no data is sent or forwarded.
[0022] Preferably, the serial port input information of the MCU unit also includes voice module serial port input data, Bluetooth module serial port input data, sensor module serial port input data and other MCU module serial port input data.
[0023] Preferably, the MCU unit includes one or more of STM32 series chips, GD32 series chips, AMP32 series chips, MM32 series chips, CH32 series chips, HC32 series chips, CKS32 series chips, PY32 series chips and other single-chip microcomputers;
[0024] The storage medium includes flash storage chips of models 24C02, 24C04, 24C08, 24C16, 24C32, 24C64, 24C128, 24C256 and other non-volatile memories;
[0025] The power module includes 110~220V AC or 12V, 5V, 3.3V DC or a battery module.
[0026] On the other hand, the present invention also provides an interactive control method for a smart home, comprising:
[0027] A plurality of control units are provided, each of which includes a communication basic module, a power module and an input / output module, and the control units communicate with each other in a distributed topology connection mode; the communication basic module includes a wireless radio frequency module, an MCU unit, a storage medium, and an internal address selector, and the wireless radio frequency is set to a 2.4G frequency band; wherein the internal address selector is a tool such as a dip switch or a button that controls the nth data bit in the communication data group, and n is the internal address;
[0028] Indicates input information and output information in the MCU unit. In the MCU unit, the input and output control information can be used to generate a communication data group through a program algorithm. The communication data group includes a command bit, a command operation bit, and N data bits. The data bits are used to indicate the relay switch or the value on the control unit;
[0029] According to the data sending and receiving rules set by the program in the MCU unit, the wireless communication data packet is transmitted between each of the control units, and the wireless communication data packet includes an external wireless communication address, a communication data group, and a check code; wherein the external wireless communication address is encrypted by the program algorithm on the MCU unit and saved in the storage medium, and is used for the address data on the wireless radio frequency module.
[0030] Compared with the prior art, the beneficial effects of the present invention are that, compared with the traditional star topology, a more flexible network topology, such as a mesh topology, is adopted to provide better device connection and scalability, and a decentralized control mode and a distributed topology are adopted, which has the characteristics of hardware equipment that does not require central equipment and is easy to standardize production. In addition, the data transmission distance between control units is further expanded, which is convenient for user operation and also has the characteristics of convenient after-sales maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0032] Figure 1 A functional block diagram of an interactive control system for a smart home provided by an embodiment of the present invention;
[0033] Figure 2 A functional block diagram of a control unit of an interactive control system for a smart home provided by an embodiment of the present invention;
[0034] Figure 3 A schematic diagram of a power module circuit for an interactive control system for a smart home provided by an embodiment of the present invention;
[0035] Figure 4 A schematic diagram of a power supply interface circuit and an MCU interface circuit of an interactive control system for a smart home provided by an embodiment of the present invention;
[0036] Figure 5 A schematic diagram of the MCU unit circuit of an interactive control system for a smart home provided by an embodiment of the present invention;
[0037] Figure 6 Binary data of an interactive control system for a smart home provided by an embodiment of the present invention is used to control a relay switch and a circuit diagram of a closed state;
[0038] Figure 7 A flowchart of an interactive control method for a smart home provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to be able to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0040] See also Figure 1 As shown, in one aspect, this embodiment provides an interactive control system for a smart home, including:
[0041] Control unit, multiple control units are provided, each control unit includes a basic communication module, a power module and an input / output module, and the control units communicate with each other using a distributed topology connection mode; the basic communication module includes a wireless radio frequency module, an MCU unit, a storage medium, and an internal address selector, and the wireless radio frequency is set to a 2.4G frequency band; wherein the internal address selector is a tool such as a dip switch or a button to control the nth data bit in the communication data group, and n represents the internal address; the input / output module includes input information and output information on the control unit, and the input / output control information can be used to generate a communication data group in the MCU unit, and the communication data group includes a command bit, a command operation bit, and N data bits, and the data bit is used to indicate the relay switch or the value size during the wireless communication process;
[0042] The basic communication module sets the data sending and receiving rules according to the program in the MCU unit, and transmits the wireless communication data packet between each control unit. The wireless communication data packet includes the wireless communication external address, the communication data group, and the check code; the wireless communication external address is encrypted by the program algorithm on the MCU unit and saved in the storage medium, which is used for the address data on the wireless RF module.
[0043] Specifically, the control units of this embodiment are provided with M, including control unit 1, control unit 2, control unit 3, ..., control unit M, and the control unit is responsible for overall coordination and control; the control units communicate with each other using a distributed topology connection. Each control unit includes at least a wireless radio frequency module, an MCU unit, a storage medium, and an internal address selector. The wireless radio frequency module is set to the 2.4G frequency band, and the internal address selector is a tool such as a dip switch or a button to control the nth data bit in the communication data group; the input and output module includes input information and output information on the control unit, and the input and output control information can be generated into a communication data group in the MCU unit. The communication data group includes a command bit, a command operation bit, and N data bits. The data bit is used to indicate the relay switch or the value during wireless communication;
[0044] The basic communication module sets the data sending and receiving rules according to the program in the MCU unit, and transmits the wireless communication data packet between each control unit. The wireless communication data packet includes the wireless communication external address, communication data group, and CRC check code; the wireless communication external address is encrypted by the program algorithm on the MCU unit and saved in the storage medium, which is used for the address data on the wireless RF module.
[0045] It can be understood that the MCU unit refers to the Microcontroller Unit, which is a single-chip microcomputer system that integrates functions such as the central processing unit (CPU), memory, and peripheral interfaces. The MCU unit plays a core role in the smart home interactive control system, responsible for controlling and processing data and performing various control operations.
[0046] Specifically, the MCU unit executes program instructions through its internal CPU to process and calculate sensor data, user input or other external signals. It can perform operations such as logical operations, arithmetic operations, control flow and data processing to achieve various functions and control requirements of smart homes.
[0047] In addition, the MCU unit also usually integrates various interfaces and peripherals for communicating with other devices or modules. For example, it can exchange data and control with wireless RF modules, sensors, displays, key switches, etc.
[0048] In addition, the flash memory chip is a non-volatile memory used to store program code, configuration data and other important information. In the smart home interactive control system, the flash memory chip is used to store the program code, parameter configuration and status information required by the system.
[0049] Compared to volatile memory, flash storage chips have the characteristic of retaining data after power failure, which means that even if the system is powered off or restarted, the data stored in the flash chip is still reliably saved. This is crucial for smart home control systems because it ensures that the system can be restored to its previous state after power failure or restart.
[0050] In short, the MCU unit is the core processing unit in the smart home interactive control system, responsible for control and data processing. The flash memory chip is used to store the program code and configuration data required by the system to ensure the reliability and persistence of the data. These two components work together to enable smart homes to achieve various functions and control operations.
[0051] In summary, this embodiment provides a smart home interactive control system, which realizes the control and management functions of the smart home through data communication and data transmission between control units. The system has the characteristics of decentralized topological connection, few types of equipment, unified hardware structure and easy standardized production, and can realize precise control and secure communication of smart homes.
[0052] See also Figure 2-5 As shown, in some embodiments of the present application, the wireless communication data packet includes a communication data group contained in the MCU unit, a wireless communication external address and a CRC check code; the input and output control information is first packaged by the program in the MCU unit to generate a communication data group and sent to the wireless radio frequency module, and then packaged for a second time to generate a wireless communication data packet to be sent;
[0053] The first packaging includes obtaining the input and output control information of the MCU unit. The input and output control information includes key detection information, serial port detection information, SPI detection information and IIC read detection information. A communication data group is generated through the program in the MCU unit and sent to the wireless RF module.
[0054] The communication data group includes a command bit, a command operation bit and N data bits, and the data bit includes a data position n and data content, where N is determined by the maximum value of the internal address selector;
[0055] The second packaging includes the wireless radio frequency module packaging the wireless communication external address and CRC check bit and the communication data group into a wireless communication data packet.
[0056] Specifically, CRC (Cyclic Redundancy Check) is a checksum mechanism used to detect errors in data transmission. It generates a checksum of fixed length by performing a specific algorithm calculation on the data and attaches it to the data for transmission.
[0057] The generation and verification process of the CRC check bit is as follows:
[0058] Before sending data, the sender generates CRC check bits for the data. It uses a specific polynomial algorithm (such as CRC-16, CRC-32, etc.) to calculate the data bit by bit and generate a check code of fixed length. This check code is the CRC check bit.
[0059] The sender appends the generated CRC check bits to the original data to form a complete data frame or data packet. The entire data frame is then sent to the receiver.
[0060] After receiving the data frame, the receiver uses the same CRC algorithm to calculate the received data and generate a new CRC check bit. This new check bit is then compared with the received CRC check bit.
[0061] The receiver compares the received CRC check bit with the calculated new check bit. If the two are consistent, it means that there is no error in the data transmission process. If they are inconsistent, it means that an error has occurred in the data transmission process.
[0062] The function of CRC check bits is to detect errors in the data transmission process by checking the data. It can detect single-bit errors (such as bit flips, insertions, deletions, etc.), but may not be able to detect multi-bit errors or specific types of errors. Therefore, CRC check bits are usually used to detect the reliability of data transmission, but they cannot completely eliminate the possibility of errors.
[0063] In summary, CRC check bits are a checksum mechanism used to detect errors in data transmission. A checksum of fixed length is generated by performing a specific algorithm calculation on the data and appended to the data for transmission. The receiver uses the same algorithm to calculate a new checksum and compares it with the received checksum to determine whether an error has occurred in data transmission.
[0064] In some embodiments of the present application, the wireless communication external address is encrypted by the MCU unit through a program algorithm and saved in a storage medium.
[0065] In some embodiments of the present application, the internal address selector controls the nth data bit, and the data bit serves as a numerical variable or a switch state to control input and output control information.
[0066] In some embodiments of the present application, the control unit includes a voice control unit, a display screen control unit, a bulb brightness adjustment control unit, a temperature and humidity control unit, a security monitoring control unit, a curtain and window control unit, and a household appliance control unit.
[0067] Specifically, the intelligent voice assistant module can integrate voice recognition and voice interaction functions, allowing users to control the smart home system through voice. Through binary data as a numerical variable control, specific voice commands can be triggered, such as turning on the lights, adjusting the temperature, etc.; Temperature and humidity control module: This module can monitor and control the temperature and humidity of the room. Through binary data as a numerical variable control, the temperature setting of the air conditioner or heating system, as well as the working mode of the humidity control device can be adjusted; The security monitoring module can integrate functions such as video monitoring, intrusion alarm and access control. Through binary data as a numerical variable control, the recording of the surveillance camera can be triggered or stopped, the sensitivity of the intrusion alarm can be set, and the switch of the access control system can be controlled; The curtain and window control module can control the switch, opening and closing degree and automation settings of the curtains or windows. Through binary data as a numerical variable control, the opening and closing degree of the curtains can be adjusted, the timed opening and closing of the windows can be set, or the opening and closing of the curtains can be automatically adjusted according to the light sensor; The home appliance control module can control various home appliances, such as TVs, washing machines, refrigerators, etc. Through binary data as a numerical variable control, the channel and volume of the TV can be adjusted, the operation of the washing machine can be started or stopped, and the temperature setting of the refrigerator can be adjusted.
[0068] In some embodiments of the present application, the program in the MCU unit sets the data sending and receiving rules, including:
[0069] When the MCU unit is started for the first time, the wireless RF module is set to the receiving state, waiting for data reception, and the MCU unit main program continuously detects input and output control information;
[0070] If the MCU unit detects that the communication data group has changed, the wireless RF module is switched to the sending state by the MCU unit, and the communication data group is packaged into a wireless communication data packet for sending. After the sending is completed, the wireless RF module returns to the receiving state, waiting for the second data to be received, and the main program of the MCU unit returns to the state of continuously detecting the input and output control information;
[0071] If it is detected that the communication data group has not changed, the wireless radio frequency module remains in the receiving state, and no data is sent or forwarded.
[0072] In some embodiments of the present application, the serial port input information of the MCU unit also includes voice module serial port input data, Bluetooth module serial port input data, sensor module serial port input data and other MCU module serial port input data.
[0073] In some embodiments of the present application, the MCU unit includes one or more of STM32 series chips, GD32 series chips, AMP32 series chips, MM32 series chips, CH32 series chips, HC32 series chips, CKS32 series chips, PY32 series chips and other single-chip microcomputers;
[0074] The storage media include memory chips of models 24C02, 24C04, 24C08, 24C16, 24C32, 24C64, 24C128, 24C256 and other non-volatile memories;
[0075] The power module includes 110~220V AC or 12V, 5V, 3.3V DC or battery module.
[0076] Specifically, the input and output module includes 6 touch switch inputs, 10 indicator lights, and 4 relay switch outputs. The indicator lights include 4 lights indicating the status of four relay outputs, 1 indicating a power indicator light, 1 indicating a high and low bit indicator light for data, 1 indicating a mode save indicator light, 1 indicating a serial port data indicator light, and 2 indicating button trigger indicator lights. Among them, 4 touch switches correspond to four relay switches, 1 mode switch, and 1 full-off switch. When the mode switch is short pressed once, the MCU unit reads data from the flash storage chip and changes the data of the corresponding bit in the shared data group. When the mode switch is long pressed until the mode save indicator light flashes twice, the existing mode data bits are saved to the flash storage chip through the MCU unit. The full-off switch can directly turn off all electrical appliances. The operation is simple and can be set without going through a smart terminal. It can be understood that this application only provides an example, and the protection scope of this application includes but is not limited to this implementation scheme.
[0077] See also Figure 6 As shown, on the other hand, this embodiment also provides an interactive control method for a smart home, comprising:
[0078] Step S1: multiple control units are set, each control unit includes a communication basic module, a power module and an input / output module, and the control units communicate with each other in a distributed topology connection mode; the communication basic module includes a wireless radio frequency module, an MCU unit, a flash storage medium, and an internal address selector, and the wireless radio frequency is set to a 2.4G frequency band, and the 2.4G frequency band is between 2.405GHz and 2.485GHz; wherein the internal address selector is a tool such as a dip switch or a button for controlling the nth data bit in the communication data group;
[0079] Step S2: Indicates input information and output information in the MCU unit. In the MCU unit, the input and output control information can be used to generate a communication data group through a program algorithm. The communication data group includes a command bit, a command operation bit, and N data bits. The data bit is used to indicate the relay switch or the value on the control unit;
[0080] Step S3: According to the data sending and receiving rules set in the program in the MCU unit, the wireless communication data packet is transmitted between each control unit, and the wireless communication data packet includes a wireless communication external address, a communication data group, and a CRC check code; wherein the wireless communication external address is encrypted by the program algorithm on the MCU unit and saved in the storage medium, and is used for the address data on the wireless RF module.
[0081] Compared with the prior art, the beneficial effect of the present invention lies in that, compared with the traditional star topology, a more flexible network topology, such as a mesh topology, is adopted to provide better device connection and scalability, and a decentralized control mode and a distributed topology are adopted, which has the characteristics of hardware equipment that does not require central equipment and is easy to standardize production. In addition, the point-to-point data transmission distance is further expanded, and the user operation is convenient, and it also has the characteristics of convenient after-sales maintenance.
[0082] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt 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.) containing computer-usable program codes.
[0083] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0084] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0085] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. An interactive control system for smart home, It is characterized in that include: A control unit, wherein the control unit is provided with a plurality of control units, each of which comprises a communication basic module, a power module and an input / output module, and the control units communicate with each other in a distributed topology connection mode; the communication basic module comprises a wireless radio frequency module, an MCU unit, a storage medium, and an internal address selector, and the wireless radio frequency module is set to a 2.4G frequency band; Wherein, the input-output module includes input information and output information on the control unit, and the input-output control information can be used to generate a communication data group in the MCU unit, and the communication data group includes a command bit, a command operation bit, and N data bits. The content of the data bit is used to indicate the relay switch or the value size during the wireless communication process. The internal address selector is a tool such as a dip switch or a button to control the nth data bit in the communication data group, wherein n represents the internal address; The basic communication module sets the data transmission and reception rules according to the program in the MCU unit, and transmits the wireless communication data packet between each of the control units. The wireless communication data packet includes an external wireless communication address, a communication data group, and a check code; wherein the external wireless communication address is encrypted by the program algorithm on the MCU unit and saved in the storage medium, and is used for the address data on the wireless radio frequency module; The wireless communication data packet includes a communication data group, a wireless communication external address and a check code contained in the MCU unit; the input and output control information is first packaged by the program in the MCU unit to generate a communication data group and sent to the wireless radio frequency module, and then packaged for a second time to generate a wireless communication data packet to be sent; The first packaging includes obtaining input and output control information of the MCU unit, wherein the input and output control information includes key detection information, serial port detection information, SPI detection information and IIC read detection information, and regenerating a communication data group through a program in the MCU unit and sending it to the wireless radio frequency module; The communication data group includes a command bit, a command operation bit and N data bits, wherein the data bits include a data position n and data content, wherein N is determined by the maximum value of the internal address selector; The second packaging includes the wireless radio frequency module packaging the wireless communication external address and CRC check bit and the communication data group to form a wireless communication data packet; The wireless communication external address is encrypted by the MCU unit through a program algorithm and saved in the storage medium; The internal address selector controls the data bit of the nth item, and the data bit serves as a numerical variable or a switch state to control the input and output control information.
2. The interactive control system for smart home according to claim 1, It is characterized in that The control unit includes a voice control unit, a display screen control unit, a bulb brightness adjustment control unit, a temperature and humidity control unit, a security monitoring control unit, a curtain and window control unit, and a home appliance control unit.
3. The interactive control system for smart home according to claim 2, It is characterized in that The program in the MCU unit sets the data sending and receiving rules, including: When the MCU unit is started for the first time, the wireless radio frequency module is set to be in a receiving state, waiting for data reception, and the main program of the MCU unit continuously detects the input and output control information; If the MCU unit detects that the communication data group has changed, the wireless RF module is switched to a sending state by the MCU unit, and the communication data group is packaged into the wireless communication data packet for sending. After the sending is completed, the wireless RF module is restored to a receiving state, waiting for the second data to be received, and the main program of the MCU unit is restored to a state of continuously detecting the input and output control information; If it is detected that the communication data group has not changed, the wireless radio frequency module remains in a receiving state, and no data is sent or forwarded.
4. The interactive control system for smart home according to claim 3, It is characterized in that The serial port input information of the MCU unit also includes voice module serial port input data, Bluetooth module serial port input data, sensor module serial port input data and other MCU module serial port input data.
5. The interactive control system for smart home according to claim 4, It is characterized in that The MCU unit includes one or more of STM32 series chips, GD32 series chips, AMP32 series chips, MM32 series chips, CH32 series chips, HC32 series chips, CKS32 series chips, PY32 series chips and other single-chip microcomputers; The storage medium includes flash storage chips of models 24C02, 24C04, 24C08, 24C16, 24C32, 24C64, 24C128, 24C256 and other types of non-volatile memory; The power module includes 110~220V AC or 12V, 5V, 3.3V DC or a battery module.
6. An interactive control method for a smart home, applied to the interactive control system for a smart home as claimed in any one of claims 1 to 5, It is characterized in that include: A plurality of control units are provided, each of which includes a communication basic module, a power module and an input / output module, and the control units communicate with each other in a distributed topological connection mode; the communication basic module includes a wireless radio frequency module, an MCU unit, a storage medium, and an internal address selector, and the wireless radio frequency module is set to a 2.4G frequency band; wherein the internal address selector is a tool such as a dip switch or a button for controlling the nth data bit in the communication data group; The input and output module represents the input information and output information in the MCU unit. In the MCU unit, the input and output control information can be generated into a communication data group through a program algorithm. The communication data group includes a command bit, a command operation bit, and N data bits. The data bits are used to represent the relay switch or the value size on the control unit; The basic communication module sets the data sending and receiving rules according to the program in the MCU unit, and transmits the wireless communication data packet between each of the control units. The wireless communication data packet includes an external wireless communication address, a communication data group, and a check code; wherein the external wireless communication address is encrypted by the program algorithm on the MCU unit and saved in the storage medium, and is used for the address data on the wireless radio frequency module.
Citation Information
Patent Citations
Master-slave device communication method based on electronic switch and related assembly thereof
CN115454908A
Smart home ad hoc network wireless communication method based on 2.4 GHz frequency band
CN116436716A
Intelligent switch with adjustable amount
CN201373996Y
User interface device
JP2014106717A
