A self-organizing wireless communication method for smart home based on the 2.4GHz frequency band
By using wireless radio frequency chips and MCUs in the 2.4GHz band in smart home devices, the ad hoc network wireless communication between devices is realized, which solves the problem of insufficient flexibility and expansion of existing smart home communication protocols, and achieves high stability, low dependence and high scalability of smart home wireless communication.
Patent Information
- Application Number
- CN202310338635.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2043-03-31
AI Technical Summary
The existing smart home communication protocol has limitations. Wi-Fi communication is suitable for single-item intelligence but is not suitable for the entire smart home system. The underlying protocols for Zigbee and Bluetooth communication are not flexible enough, difficult to expand, and their function implementation and configuration are limited in scenarios without gateways and networks.
The wireless communication method of smart home self-organizing network based on the 2.4GHz frequency band is adopted. The master and slave devices are equipped with wireless radio frequency chips, MCUs, UART interface units and power supplies to realize the construction of wireless LANs. The networking process between devices does not need to rely on external networks or gateways.
It realizes stable, encrypted and highly scalable wireless communication between smart products, reduces dependence on external networks, supports single control, multi-control, single-send and mass-send functions between smart products, and is simple and convenient to form a network.
Smart Images

Figure CN116436716B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of smart home wireless networking, and in particular relates to a self-organizing wireless communication method for smart home based on the 2.4GHz frequency band. Background Art
[0002] Currently, in the traditional smart home field, the mainstream communication protocols are WIFI communication, Zigbee communication, or Bluetooth communication. However, these communication protocols all have limitations. Wi-Fi communication is only applicable to single-product intelligence. For the entire smart home system, using all Wi-Fi is unrealistic as it is difficult for a general router to drive and it highly depends on the external network, affecting the experience. Zigbee communication and Bluetooth communication have their underlying protocols packaged and encapsulated, making it inflexible to expand some functions. Moreover, the function implementation and configuration of devices from devices highly depend on the gateway. Since the customization level in the smart home field is relatively high, there is also a high demand for scenarios without a gateway and without a network. Therefore, a self-organizing wireless communication method for smart home based on the 2.4GHz frequency band is proposed to solve the above problems. Summary of the Invention
[0003] The purpose of the present invention is to provide a self-organizing wireless communication method for smart home based on the 2.4GHz frequency band, aiming to solve the limitations of the existing communication protocols in smart home and the problems of inflexibility and difficulty in expansion in the background art. A self-organizing wireless communication method for smart home based on the 2.4GHz frequency band is provided, which has the characteristics of high stability, high encryption and high expandability, low dependence on the external network, and realizes the interconnection and intercommunication between intelligent products. To achieve the above purpose, the technical solution adopted by the present invention is: a self-organizing wireless communication method for smart home based on the 2.4GHz frequency band, including a master device and a slave device. Both the master device and the slave device are equipped with a wireless radio frequency chip, an MCU, a UART interface unit, and a power supply. The MCU sends user data to the wireless network according to corresponding command requests through the wireless radio frequency chip. The MCU interacts with user data through the UART interface unit, and at the same time, the MCU stores and processes the user data and the data received by the wireless radio frequency chip. At the same time, a networking interaction method between products is formulated: the host enters the networking listening state by long pressing the switch button for 10 seconds, and the slave machine completes the sending of the networking command by quickly clicking the switch button 4 times. When the networking is successful, the host will have an indicator light switch display. The wireless radio frequency chip encodes the packaged user data and sends it to the wireless network in a timely manner, processes and stores the received data. The networking process between the host and the slave does not require relying on an external network or a gateway. Moreover, the master device and the slave device are only distinguished for description. In actual use, the functions of the master and slave devices can be interchanged, and the master-slave relationship of the devices can be determined by the function.
[0004] After the slave device performs an action, the MCU broadcasts a data packet through the radio frequency chip, automatically searches for the paired slave devices. If the handshake is successful, the slave device obtains the corresponding commands in the data packet.
[0005] When new devices form a network, it specifically includes the following steps:
[0006] S1. The master device and the slave device are powered on. The master device enters the pairing mode by long-pressing the switch button for 10 seconds, and the slave device completes the sending of the "request to form a network" data packet by quickly clicking the switch button 4 times.
[0007] S2. After the master device receives the "request to form a network" data packet through the radio frequency chip, the MCU processes the data packet, parses out the "command", "slave device code", and "data" of the data packet, pre-stores them, and sends the "add slave device" command.
[0008] S3. After the slave device receives the "add slave device" data packet from the master device through the radio frequency chip, the MCU processes the data packet. If the data packet contains "pairable", "slave device code", and "master device code", the slave device successfully joins the network. After the MCU stores the "master device code", it sends out the "confirm successful network access" data packet.
[0009] S4. After the master device receives the "confirm successful network access" data packet through the radio frequency chip, the MCU processes the data packet, encodes the slave device, and stores the slave device encoding information.
[0010] Using the radio frequency chip, all smart home products can build a wireless local area network, and their mutual control and status synchronization do not rely on an external network. During the development of the smart ecosystem, product categories can be increased, or product functions can be added / removed according to actual needs.
[0011] For a further description of the foregoing solution, the data packet includes 'length','version', 'command', 'type', 'data', and a checksum. The 'command' includes query, control, broadcast, request for pairing, and confirm success. The 'type' is the product type code, and the data includes product status information, product communication frequency band, and product ID.
[0012] Furthermore, when new devices form a network, multiple slave devices can be paired with the master device, or a single slave device can be paired with multiple master devices, enabling multi-control-one or one-control-many.
[0013] When the new devices are networked, the host enters the network listening state by long-pressing the switch button for 10 seconds, and the slave device sends the network command by quickly clicking the switch button 4 times. The slave device sends the "Request to Network" data packet more than 3 times to ensure that all master devices in the range in the pairing mode can receive it. When the networking is successful, the host will have an indicator light switch display. The master devices include intelligent switches, intelligent gateways, wireless switches, remote controls, sensors, etc. The slave devices include intelligent switches with wireless radio frequency chips, dimming drivers, curtain motors, intelligent sockets, lamps, and door locks. The master and slave devices are only distinguished for description purposes. In actual use, the functions of the master and slave devices can be interchanged, and the master-slave relationship of the devices can be determined by their functions.
[0014] Furthermore, the master device is equipped with an indicator light and is connected to the MCU. The indicator light is used to indicate various working states of the device.
[0015] Specifically, the model of the wireless radio frequency chip is LT8910. LT8910 is a low-cost and highly integrated 2.4GHZ wireless transceiver chip, which integrates a transmitter, a receiver, a frequency synthesizer, and a GFSK modem on the chip. The transmitter supports adjustable power, and the receiver adopts a digital extended communication mechanism, which can achieve excellent transceiver performance under complex environments and strong interference conditions. The power supply includes batteries, low-voltage 12-24V DC power supplies, and 110V-220V AC power supplies.
[0016] More preferably, the master and slave devices also include a wifi module and a signal amplification module. The wifi module and the signal amplification module are electrically connected to the MCU. The signal amplification module can use the RFC2401C chip, which can increase the wireless signal transmission distance. It also includes a corresponding gateway and an app. The user can control the master device alone through the app, or the user can send commands to the gateway device through the app, and then the gateway device sends commands to the slave device through the wireless radio frequency chip for communication. It also supports the control of offline devices, and the host performs local control of the slave device.
[0017] The receiving process of the master and slave devices is as follows: GFSK modulation, NRZ, decryption layer decrypts the data, the protocol stack converts it into valid data, the receiving buffer, data validity judgment, event queue task, basic detection event task, software protocol processing task, and the receiving process ends; the sending process is as follows: software protocol processing task, hardware control processing task, sending data, sending buffer, queue sending data, protocol stack converts it into valid data, encryption layer encrypts the data to be sent, NRZ, GFSK modulation, and the sending process ends.
[0018] This application mainly uses the wireless radio frequency chip LT8910 in combination with the corresponding driving MCU. As long as the intelligent products are equipped with the proprietary module of LT8910, they can communicate with each other, including the sending mechanism, receiving mechanism and compensation mechanism of the intelligent products, realizing the reporting of the status of intelligent products, wireless control of slave devices, wireless control, etc., and achieving functions such as single control, multi-control, single transmission, and group transmission among intelligent products.
[0019] Compared with the prior art, the present invention uses LT8910 and MCU to build a wireless local area network for all smart home products. The mutual control and status synchronization between them do not rely on an external network, realizing decentralization. According to actual needs, product categories can be quickly added or deleted, or product functions can be added / deleted. The master device and slave device of this application realize functions such as single control, multi-control, single transmission, and group transmission among intelligent products through LT8910 and MCU. At the same time, the gateway product can be added with a wifi module and an app to realize the interconnection of intelligent products through the Internet and the app. The operation during networking is simple and convenient, the automation degree of the networking method is high, and the networking is simpler, easier, more convenient and faster. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic diagram of the use provided by an embodiment of the present invention;
[0021] Figure 2 It is a schematic diagram of the sending process provided by an embodiment of the present invention;
[0022] Figure 3 It is a schematic diagram of the reception provided by an embodiment of the present invention;
[0023] Figure 4 It is a schematic diagram of the communication architecture provided by an embodiment of the present invention;
[0024] Figure 5 It is a schematic diagram of the connection principle of the master device and the slave device provided by an embodiment of the present invention;
[0025] Figure 6 It is a schematic diagram of the usage scenario provided by an embodiment of the present invention;
[0026] Figure 7 It is a schematic diagram of the data packet provided by an embodiment of the present invention.
[0027] Glossary:
[0028] Hardware scenario: It refers to the scenario command settings stored in the device itself, which can be manually set, deleted, etc. by the user. It can form a linkage scenario with products using the same Ez-Net protocol. Corresponding operations can be executed without the participation of a network and a gateway.
[0029] Scene master device: Refers to the hardware device for setting scenes, generally a switch button, and can also be a sensor device. A three-way switch panel can set three different scenes.
[0030] Scene controlled device: Refers to the device added to the scene master device through pairing, generally a switch button, a lighting module, a curtain motor, etc. Multiple controlled devices together can form a scene required by the user. A single controlled device can be added to the scenes of multiple different master devices.
[0031] Same-direction scene: Refers to the situation where the switch states of the controlled devices are the same as those of the master device, that is, when the master is turned on, all the controlled devices are also turned on; when the master is turned off, all the controlled devices are also turned off. It can be used to set the all-on / all-off scene. Specific implementation mode
[0032] To facilitate the understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. The preferred embodiments of the present invention are shown in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the disclosure of the present invention more thorough and comprehensive.
[0033] The technical solutions of this patent will be further described in detail below in combination with specific implementation modes.
[0034] Please refer to Figure 1-7 As shown, this application provides a self-organizing wireless communication method for smart homes based on the 2.4GHz frequency band, including a master device and a slave device. Both the master device and the slave device are provided with a wireless radio frequency chip, an MCU, a UART interface unit, and a power supply, as Figure 5 As shown, the user interface includes buttons, motors, lamps, relays, etc. The MCU sends user data to the wireless network according to corresponding command requests through the wireless radio frequency chip. The MCU interacts with user data through the UART interface unit, and at the same time, the MCU stores and processes user data and the data received by the wireless radio frequency chip. The wireless radio frequency chip encodes the packaged user data and sends it to the wireless network in a timely manner, processes and stores the received data.
[0035] After the slave device performs an action, the MCU broadcasts a data packet through the wireless radio frequency chip to automatically search for the paired master device. If the handshake is successful, the master device obtains the corresponding commands in the data packet.
[0036] When a new device is networking, it specifically includes the following steps:
[0037] S1. The master device and the slave device are powered on. The master device enters the pairing mode by long pressing the switch button for 10 seconds, and the slave device completes sending a "request for networking" data packet by quickly clicking the switch button 4 times;
[0038] S2. After the master device receives the "request to form a network" data packet through the radio frequency chip, the MCU processes the data packet, parses out the "command", "slave device code", and "data" of the data packet, pre-stores them, and sends an "add slave device" command.
[0039] S3. After the slave device receives the "add slave device" data packet from the master device through the radio frequency chip, the MCU processes the data packet. If the data packet contains "pairable", "slave device code", and "master device code", the slave device successfully joins the network. After the MCU stores the "master device code", it sends an "acknowledge successful network entry" data packet.
[0040] S4. After the master device receives the "acknowledge successful network entry" data packet through the radio frequency chip, the MCU processes the data packet, encodes the slave device, and stores the slave device coding information.
[0041] As Figure 7 shown, the data packet includes 'length','version', 'command', 'type', 'data', and a checksum. The 'command' includes query, control, broadcast, request pairing, acknowledge success, etc. The 'type' is the product type code. The data includes product status information, product communication frequency band, and product ID. Generally, the size of a data packet is 10 - 50 bytes, which is convenient for transmission and storage.
[0042] When new devices form a network, multiple slave devices can be wirelessly connected to the master device through the radio frequency chip, or a single slave device can be paired with multiple master devices, enabling multi - control - one, one - control - multi, or one - to - one. When new devices form a network, the host enters the network formation listening state by long - pressing the switch button for 10 seconds, and the slave device completes the sending of the network formation command by quickly clicking the switch button 4 times.
[0043] If the slave device sends the "request to form a network" data packet more than 3 times to ensure that all master devices within the range in the pairing mode can receive it, the host indicator light shows when the network formation is successful. The master devices include intelligent switches, intelligent gateways, wireless switches, remote controls, sensors, etc. The slave devices include intelligent switches with radio frequency chips, dimming drivers, curtain motors, intelligent sockets, lamps, and door locks. The master device is equipped with an indicator light and is connected to the MCU. The indicator light is used to indicate various working states of the device.
[0044] As Figure 5 shown, the master device and the slave device also include a wifi module and a signal amplification module. The wifi module and the signal amplification module are electrically connected to the MCU. It also includes a corresponding gateway and an app. Users can control the master device individually through the app, or users can send commands to the gateway device through the app, and then the gateway device sends commands to the slave device through the radio frequency chip for communication. As Figure 2 、3 As shown in the figure, the receiving processes of the master device and the slave device are as follows: GFSK modulation, NRZ, data decryption by the decryption layer, protocol stack conversion into valid data, receiving buffer, data validity judgment, event queue task, basic detection event task, software protocol processing task, end of the receiving process; the sending processes are as follows: software protocol processing task, hardware control processing task, sending data, sending buffer, queuing and sending data, protocol stack conversion into valid data, encryption layer encrypting the data to be sent, NRZ, GFSK modulation, end of the sending process.
[0045] In the actual usage process, the wireless radio frequency chip of model LT8910 is adopted. LT8910 is a low-cost and highly integrated 2.4GHZ wireless transceiver chip, which integrates a transmitter, a receiver, a frequency synthesizer, and a GFSK modem on the chip. The transmitter supports adjustable power, and the receiver adopts a digital extended communication mechanism, which can achieve excellent transceiver performance under complex environments and strong interference conditions. The power supply includes batteries, low-voltage 12 - 24V DC power supply, and 110V - 220V AC power supply. Both the master and slave devices have transceiver functions. For example, for a lamp equipped with a wireless radio frequency chip, when a new switch needs to be added, first long-press the new switch for 10 - 15 seconds to make the switch turn on and off and enter the configuration mode. At the same time, the lamp continuously operates 4 times to enter the configuration mode. The lamp sends a "request to form a network" data packet. After the switch receives the "request to form a network" data packet through the wireless radio frequency chip, it processes the data packet through the MCU, parses out the "command", "slave device code", and "data" of the data packet, pre-stores them, and sends an "add slave device" command; after the lamp receives the "add slave device" data packet of the switch through the wireless radio frequency chip, it processes the data packet through the MCU. If there are "pairable", "slave device code", and "master device code" in the data packet, the lamp successfully forms a network. After the MCU stores the "master device code", it sends a "confirmation of successful network access" data packet; after the switch receives the "confirmation of successful network access" data packet through the wireless radio frequency chip, it processes the data packet through the MCU, encodes the lamp and stores the slave device encoding information. If one switch is required to turn on the lamp, close the curtain, and turn on the air conditioner, then repeat the above steps to add the lamp, curtain, and air conditioner devices in sequence. After successful pairing, this switch can control the above intelligent home appliances simultaneously.
[0046] Such as Figure 6As shown, the app of the mobile phone, or NFC, fingerprint, or password can be used to unlock the door lock. After the door lock is opened, it sends a signal to the slave devices: the light and the display panel. At this time, the light turns on, and the display panel shows that the door is unlocked. After the light turns on, it becomes the master device and sends a signal to the control panel. Switch 1 can wirelessly control the opening and closing of the door lock. Switch 2 can control Switch 1, the lamp, and Switch 3 simultaneously. When Switch 3 is pressed, Switch 3 sends a signal to Switch 1, Switch 3, and the lamp, and Switch 1 sends a signal to the door lock, while Switch 3 sends a signal to the curtain motor. The curtain motor and the lamp can send status information to the display panel, and the display panel uploads the information to the gateway. The user can view the information of each device at home through the mobile phone app.
[0047] If the master and slave devices are equipped with wifi modules, as Figure 6 shown, they can be controlled by intelligent devices such as mobile phones. The master and slave devices communicate with the gateway, and the working status of all smart homes can be viewed on the mobile phone app. If the slave device does not have a wifi module and the master device has a wifi module, the mobile phone app is docked with the gateway through the server. The gateway controls the master device through wifi, and the master device controls the slave device through a wireless radio frequency chip.
[0048] In real life, when the master device is a switch panel, there are the following modes:
[0049] Enter the setting mode: Long press the power key for 10 - 15 seconds until the panel light flashes. At this time, this key enters the hardware scene setting mode (i.e., the scene key).
[0050] Same - direction scene setting: After long - pressing to enter the setting, the same - direction scene mode is entered by default. At this time, perform the pairing operation on the device that needs to be added to the scene. If the pairing is successful, the scene light will flash to remind that it is successful. After the addition is completed, press the scene key again to save the scene. It should be noted that for the controlled switch button, press it 4 to 6 times within 2 seconds to send the pairing information to the scene key. If the status light of the controlled switch key flashes, it means that the pairing is completed, and the addition of the next switch key can be carried out.
[0051] Directional scene setting: After long - pressing to enter the setting, quickly press the button 2 times. At this time, it will switch to the directional scene mode. Perform the pairing operation on the device that needs to be added to the scene. The directional scene uses the last reported status when the device is paired as the status when the scene is executed.
[0052] Simple re - control scene setting: After long - pressing to enter the setting, only press one button. After the addition is completed, press the scene key again to generate a simple re - control scene. When the re - control scene is executed, the controlled device will reverse its own status (i.e., on becomes off, and off becomes on). Then the master device will turn off its own status light.
[0053] Synchronous Re-control Scene Setting: This setting involves many steps, and both switch buttons need to be set to synchronize the status. Now, take buttons A and B as examples. First, long-press button A for 10 - 15 seconds to enter the setting mode, then press button B 4 times (anywhere from 4 to 6 times) and add it to button A. If the addition is successful, the status light on button A will flash to indicate success. Then repeat the operation, press button B 4 times (anywhere from 4 to 6 times) and add it to button A again. If the addition is successful, the status light on button A will flash to indicate success. Then press button A once to save the scene of button A. Then long-press button B for 10 - 15 seconds to enter the setting mode, then press button A 4 times (anywhere from 4 to 6 times) and add it to button B. If the addition is successful, the status light on button B will flash to indicate success. Then repeat the operation, press button A 4 times (anywhere from 4 to 6 times) and add it to button B again. If the addition is successful, the status light on button B will flash to indicate success. Then press button B once to save the scene of button B.
[0054] Check Scene Setting: Quickly press 4 times on the switch panel to determine whether there is a hardware scene for this button. If there is, the button status light will flash in response. If not, the button status light will have no other reaction.
[0055] Clear Scene Setting: After long-pressing to enter the setting, long-press again for 10 - 15 seconds. When the panel light flashes, the originally set scene content on the button can be cleared. To confirm whether the deletion is successful, you can refer to "Check Scene Setting" for verification.
[0056] It should be noted that: After entering the scene setting, the corresponding scene content needs to be set. Otherwise, the timeout of addition will cause the abnormal display of the original button light status. It needs to clear the scene before it can return to normal display. If an error occurs during the setting, after saving the scene, first delete the original scene and then reconfigure it.
[0057] This application mainly uses the wireless radio frequency chip LT8910 with the corresponding driving MCU. As long as the intelligent products are equipped with LT8910, they can communicate with each other, including the sending mechanism, receiving mechanism, and compensation mechanism of the intelligent products, realizing functions such as intelligent product status reporting, wireless control of slaves, and wireless being controlled, achieving functions such as single control, multi-control, single sending, and group sending among intelligent products. Using LT8910 and MCU to build a wireless local area network for all smart home products, the mutual control and status synchronization between smart home products do not rely on an external network, achieving decentralization. According to actual needs, product categories can be quickly added or deleted, or product functions can be added / removed. The master device and slave device of this application achieve functions such as single control, multi-control, single sending, and group sending among intelligent products through LT8910 and MCU. At the same time, a wifi module and an app are added to enable the intelligent products to be interconnected with the app through the Internet. The operation during networking is simple and convenient, and the networking method has a high degree of automation, making networking simpler, easier, more convenient, and faster.
[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terms used in the description of the present invention herein are for the purpose of describing particular embodiments only and are not intended to limit the present invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0059] The above embodiments are only used to illustrate the present invention and are not intended to limit the present invention. Those of ordinary skill in the relevant art can still make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the present invention. The patent protection scope of the present invention shall be defined by the claims.
Claims
1. A self-organizing wireless communication method for smart homes based on the 2.4GHz frequency band, including a master device and a slave device, characterized in that: Both the master device and the slave device are equipped with a radio frequency chip, an MCU, a UART interface unit, and a power supply. The MCU sends user data to the wireless network according to corresponding command requests through the radio frequency chip. The MCU interacts with user data through the UART interface unit. At the same time, the MCU stores and processes user data and the data received by the radio frequency chip. The radio frequency chip encodes the packaged user data and sends it to the wireless network in a timely manner, processes and stores the received data. After the master device takes an action, the MCU broadcasts a data packet through the radio frequency chip and automatically searches for the paired slave devices. If the handshake is successful, the slave device obtains the corresponding commands in the data packet. When new devices are networked, it specifically includes the following steps: S1. The master device and the slave device are powered on. The master device enters the pairing mode by long pressing the switch button for 10 seconds, and the slave device completes sending the "Request for networking" data packet by quickly clicking the switch button 4 times. S2. After the master device receives the "Request for networking" data packet through the radio frequency chip, the MCU processes the data packet, parses out the "command", "slave device code", and "data" of the data packet, pre-stores them, and sends the "Add slave device" command. S3. After the slave device receives the "Add slave device" data packet from the master device through the radio frequency chip, the MCU processes the data packet. If the data packet contains "pairable", "slave device code", and "master device code", the slave device successfully accesses the network. After the MCU stores the "master device code", it sends out the "Confirm successful network access" data packet. S4. After the master device receives the "Confirm successful network access" data packet through the radio frequency chip, the MCU processes the data packet, encodes the slave device, and stores the slave device coding information. When new devices are networked, multiple slave devices are paired with the master device, or a single slave device is paired with multiple master devices, or a single slave device is paired with a single master device. The master device includes an intelligent switch, an intelligent gateway, a wireless switch, a remote control, and a sensor. The slave device includes an intelligent switch with a radio frequency chip, a dimming driver, a curtain motor, an intelligent socket, a lamp, and a door lock. The functions of the master and slave devices can be interchanged, and the master-slave relationship of the devices is determined by the function. The data packet includes 'length','version', 'command', 'type', 'data', and a check code. The 'command' includes query, control, broadcast, request for pairing, and confirm success. The 'type' is the product type code. The data includes product status information, product communication frequency band, and product ID. The master device is equipped with an indicator light, which is connected to the MCU. The indicator light is used to indicate various working states of the device. The master device and the slave device also include a wifi module and a signal amplification module. The wifi module and the signal amplification module are electrically connected to the MCU. There is also a corresponding gateway and an app. Users can control the master device separately through the app, or users can send commands to the gateway device through the app, and then the gateway device sends commands to the slave device through the radio frequency chip for communication. The receiving processes of the master device and the slave device are in sequence: GFSK modulation, NRZ, data decryption by the decryption layer, conversion of the protocol stack into valid data, receiving buffer, data validity judgment, event queue task, basic detection event task, software protocol processing task, end of the receiving process; The sending processes are in sequence: software protocol processing task, hardware control processing task, sending data, sending buffer, queuing and sending data, conversion of the protocol stack into valid data, encryption of the data to be sent by the encryption layer, NRZ, GFSK modulation, end of the sending process.
2. The smart home self-organizing wireless communication method based on the 2.4GHz frequency band according to claim 1, wherein: When the new device forms a network, if the slave device sends the "request to form a network" data packet more than 3 times, the host enters the network formation listening state by long pressing the switch button for 10 seconds, and the slave device completes the sending of the network formation command by quickly clicking the switch button 4 times. When the network formation is successful, the host indicator light switch shows.
3. A wireless communication method for self-organizing network of smart home based on 2.4GHz frequency band according to any one of claims 1 to 2, characterized in that: The model of the radio frequency chip is LT8910, and the power supply includes a battery, a low-voltage 12 - 24V DC power supply, and a 110V - 220V AC power supply.
Citation Information
Patent Citations
Wireless local area sub-network of the Internet of things and data interaction method among networking devices thereof
CN105306332A