Equipment network distribution method and device of smart home system, equipment and medium

By using acoustic signal automatic network distribution technology, multimodal sensors and microphone arrays are used to realize device identification verification and spatial positioning, which solves the problem that existing smart device network distribution relies on manual operation and improves the efficiency and convenience of network distribution.

CN121125381AActive Publication Date: 2025-12-12GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1

Patent Information

Application Number
CN202511669387.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-14
Publication Date
2025-12-12
Estimated Expiration
2045-11-14

AI Technical Summary

Technical Problem

Existing smart device network configuration methods rely on manual operation, resulting in low network connection efficiency and cumbersome user interaction.

Method used

Automatic network configuration of devices is achieved through sound wave signals. Multimodal sensors detect changes in light intensity and acceleration to trigger devices to send sound wave signals. The home control unit verifies device identification information and locates the device spatially through a microphone array. The user terminal generates an authorization command, and the device automatically connects to the network.

Benefits of technology

It enables devices to configure networks autonomously, improves the convenience and automation of network configuration, reduces user intervention, and optimizes the initial access experience of home smart systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121125381A_ABST
    Figure CN121125381A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an equipment network distribution method and device of a smart home system, equipment and a medium. The method comprises the following steps: receiving a sound wave signal sent by equipment to be subjected to network distribution through a sound wave channel; the sound wave signal is sent by the to-be-distributed network equipment under the condition that a preset multi-mode triggering condition is met; verifying the sound wave signal, and extracting the equipment identification information of the equipment to be subjected to network distribution in the sound wave signal after the verification is passed; determining the spatial position of the equipment to be subjected to network distribution based on the received sound wave signal; sending a network distribution notice of the equipment to be subjected to network distribution to the user side, so that the user side generates an authorization instruction according to the network distribution notice; the distribution network notification comprises equipment identification information and a spatial position; and responding to an authorization instruction sent by the user side, and issuing network distribution information to the to-be-network-distributed equipment, so that the to-be-network-distributed equipment is connected to the network according to the network distribution information. The equipment is automatically awakened and the network distribution process is started through the multi-mode triggering condition, a user does not need any manual operation, and the network distribution convenience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of device network configuration technology, and in particular to a device network configuration method for a smart home system, a device network configuration apparatus for a smart home system, an electronic device, and a computer-readable storage medium. Background Technology

[0002] In the current field of intelligent networking of IoT devices, device discovery and network configuration mainly rely on manual operation or short-range wireless technology. Traditional network configuration methods for smart devices include QR code configuration, barcode configuration, and Bluetooth configuration. The most common configuration method for home appliances is to use a remote control to reset the network configuration information. This is done by connecting to the device's built-in Wi-Fi hotspot or by connecting via Bluetooth, sending the hotspot information to the device, and then the device enters the network configuration process after receiving the information.

[0003] These existing solutions mainly achieve device network configuration through manual settings, relying on users to manually trigger the device to enter network configuration mode (such as long-pressing a button), actively scan a QR code on a mobile device, or manually search for and connect to the device hotspot. This "human-to-device" interaction mode is cumbersome and affects the efficiency of device network connection. Summary of the Invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a device configuration method for a smart home system, a device configuration device for a smart home system, an electronic device, and a computer-readable storage medium to overcome or at least partially solve the above problems.

[0005] To address the aforementioned problems, a first aspect of this invention provides a device configuration method for a smart home system, the method comprising: Receive acoustic signals transmitted by the device to be distributed to the network through an acoustic channel; the acoustic signals are transmitted by the device to be distributed to the network under preset multi-mode triggering conditions; The acoustic signal is verified, and the device identification information of the device to be distributed in the network is extracted from the acoustic signal after the verification is successful. Based on the received acoustic wave signal, the spatial location of the device to be distributed to the network is determined; Send a network configuration notification to the user terminal for the device to be configured, so that the user terminal can generate an authorization instruction based on the network configuration notification; the network configuration notification includes the device identification information and the spatial location; In response to the authorization command sent by the user terminal, network distribution information is sent to the device to be configured, so that the device to be configured can connect to the network according to the network distribution information.

[0006] Optionally, the method further includes: Acquire ambient noise and analyze the spectral characteristics of the ambient noise in multiple predefined alternative acoustic communication frequency bands; Based on the spectral characteristics, the frequency band with the highest signal-to-noise ratio is selected from the plurality of predefined candidate acoustic communication frequency bands, and the target acoustic channel is determined based on the frequency band; The target acoustic channel information is sent to the device to be configured on the network, so that the device to be configured on the network can send the acoustic signal through the target acoustic channel.

[0007] Optionally, the preset multimodal triggering conditions include changes in light intensity detected by the photosensitive sensor on the device to be configured and movement of the device to be configured detected by the accelerometer on the device to be configured.

[0008] Optionally, the method further includes: After the device to be configured connects to the network according to the configuration information, an encrypted acoustic signal containing an authentication token is sent to the device to be configured, so that the device already connected to the network can receive the encrypted acoustic signal and decrypt the encrypted acoustic signal to obtain the authentication token. Receive the authentication token returned by the device and verify the authentication token; After successful verification, the device is granted the corresponding network access permission.

[0009] Optionally, determining the spatial location of the device to be distributed to the network based on the received acoustic signal includes: Determine the time difference between the arrival of the acoustic signal at different microphones in the microphone array, and determine the initial coordinates of the device to be networked based on the time difference; Determine the signal strength of the acoustic signal at different microphones in the microphone array, and generate a heatmap of the probability distribution of the signal strength based on the signal strength; The initial coordinates are fused and compared with the signal strength probability distribution heatmap, and the spatial location of the device to be distributed is determined based on the probability distribution results.

[0010] Optionally, sending the network configuration notification of the device to be configured to the user terminal includes: Detect whether the user terminal is on the same local area network as the home wireless network; If the user terminal and the home wireless network are on the same local area network, a network configuration notification is sent to the user terminal; If the user terminal and the home wireless network are not on the same local area network, the network configuration notification will be pushed to one or more preset family member control terminals via the cloud server.

[0011] Optionally, the acoustic signal includes an encrypted network distribution request data packet from the device to be distributed. The verification of the acoustic signal includes: The acoustic signal is filtered to suppress noise, and the filtered acoustic signal is restored to a digital stream signal; The digital stream signal is clocked and bit-synchronized, and the clocked and bit-synchronized digital stream signal is decoded back into the original encrypted network distribution request data packet; The encrypted network configuration request data packet is decrypted by a preset decryption module to obtain the corresponding plaintext data, and the checksum is extracted from the plaintext data. Recalculate the checksum for the plaintext data other than the checksum itself; Verify the extracted checksum and the recalculated checksum to determine whether the verification is successful.

[0012] Optionally, the step of verifying the extracted checksum and the recalculated checksum to determine whether the verification passes includes: The extracted checksum is compared with the recalculated checksum. If the extracted checksum matches the recalculated checksum, the verification is considered successful. If the extracted checksum is inconsistent with the recalculated checksum, the verification is determined to be unsuccessful, and the network configuration request data packet is discarded.

[0013] According to a second aspect of the present invention, a device configuration apparatus for a smart home system is provided, the apparatus comprising: An acoustic signal receiving module is used to receive acoustic signals transmitted by the device to be distributed to the network through an acoustic channel; the acoustic signals are transmitted by the device to be distributed to the network under preset multi-mode triggering conditions; The acoustic signal verification module is used to verify the acoustic signal and extract the device identification information of the device to be distributed in the acoustic signal after the verification is successful. The device location determination module is used to determine the spatial location of the device to be distributed to the network based on the received acoustic wave signal; A network distribution notification sending module is used to send a network distribution notification to the user terminal for the device to be configured, so that the user terminal can generate an authorization instruction based on the network distribution notification; the network distribution notification includes the device identification information and the spatial location. The authorization instruction response module is used to respond to the authorization instruction sent by the user terminal and send network distribution information to the device to be configured, so that the device to be configured can connect to the network according to the network distribution information.

[0014] Optionally, the device further includes: An environmental noise analysis module is used to acquire environmental noise and analyze the spectral characteristics of the environmental noise in multiple predefined alternative acoustic communication frequency bands. The target acoustic channel determination module is used to select the frequency band with the highest signal-to-noise ratio from the plurality of predefined candidate acoustic communication frequency bands according to the spectral characteristics, and determine the target acoustic channel according to the frequency band; The acoustic channel information transmission module is used to send the acoustic channel information of the target acoustic channel to the device to be networked, so that the device to be networked can transmit the acoustic signal through the target acoustic channel.

[0015] Optionally, the preset multimodal triggering conditions include changes in light intensity detected by the photosensitive sensor on the device to be configured and movement of the device to be configured detected by the accelerometer on the device to be configured.

[0016] Optionally, the device further includes: The authentication token sending module is used to send an encrypted acoustic signal containing an authentication token to the device to be configured after the device is connected to the network according to the network configuration information, so that the device already connected to the network can receive the encrypted acoustic signal and decrypt the encrypted acoustic signal to obtain the authentication token. The authentication token verification module is used to receive the authentication token returned by the device and verify the authentication token; The access permission granting module is used to grant the corresponding network access permission to the device after successful verification.

[0017] Optionally, the device location determination module includes: The initial coordinate determination submodule is used to determine the time difference between the arrival of the acoustic signal at different microphones in the microphone array, and to determine the initial coordinates of the device to be networked based on the time difference; The heatmap determination submodule is used to determine the signal strength of the acoustic signal at different microphones in the microphone array, and generate a signal strength probability distribution heatmap based on the signal strength. The coordinate heatmap comparison submodule is used to fuse and compare the initial coordinates with the signal strength probability distribution heatmap, and determine the spatial location of the device to be distributed to the network based on the probability distribution results.

[0018] Optionally, the distribution network notification sending module includes: The local area network detection submodule is used to detect whether the user terminal is on the same local area network as the home wireless network; if the user terminal is on the same local area network as the home wireless network, a network configuration notification is sent to the user terminal; if the user terminal is not on the same local area network as the home wireless network, the network configuration notification is pushed to one or more preset family member control terminals through the cloud server.

[0019] Optionally, the acoustic signal includes an encrypted network distribution request data packet from the device to be networked; the acoustic signal verification module includes: The acoustic signal filtering submodule is used to filter the acoustic signal to suppress noise and restore the filtered acoustic signal into a digital stream signal. The signal decoding submodule is used to perform clock recovery and bit synchronization on the digital stream signal, and decode the clock-recovered and bit-synchronized digital stream signal back into the original encrypted network distribution request data packet; The verification code extraction submodule is used to decrypt the encrypted network configuration request data packet through a preset decryption module, obtain the corresponding plaintext data, and extract the verification code from the plaintext data. The check code calculation submodule is used to recalculate the check code for the plaintext data other than the check code itself. The checksum verification submodule is used to verify the extracted checksum and the recalculated checksum to determine whether the verification is successful.

[0020] Optionally, the verification code verification submodule includes: The verification code comparison unit is used to compare the extracted verification code with the recalculated verification code; if the extracted verification code is consistent with the recalculated verification code, the verification is determined to be successful; if the extracted verification code is inconsistent with the recalculated verification code, the verification is determined to be unsuccessful, and the network configuration request data packet is discarded.

[0021] According to a third aspect of the present invention, an electronic device is provided, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the device configuration method of the smart home system as described in any of the preceding embodiments.

[0022] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, wherein when executed by a processor, the computer program implements the steps of the device configuration method of the smart home system as described in any of the preceding embodiments.

[0023] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects: This invention discloses a device configuration method, apparatus, equipment, and medium for a smart home system. The method includes: receiving an acoustic signal transmitted by a device to be configured via an acoustic channel; the acoustic signal is transmitted by the device under preset multimodal triggering conditions; verifying the acoustic signal and extracting the device identification information of the device to be configured from the acoustic signal after successful verification; determining the spatial location of the device to be configured based on the received acoustic signal; sending a configuration notification of the device to be configured to a user terminal, so that the user terminal generates an authorization command according to the configuration notification; the configuration notification includes the device identification information and spatial location; responding to the authorization command sent by the user terminal, and issuing configuration information to the device to be configured, so that the device to be configured connects to the network according to the configuration information. By automatically waking up the device and initiating the configuration process through multimodal triggering conditions, the user does not need to perform any manual operation, achieving autonomous configuration of the device and improving configuration convenience. Utilizing the received acoustic signal, the spatial location is calculated simultaneously while completing device verification, reducing user intervention and improving the level and efficiency of automated configuration of home smart system devices. It can be regarded as an effective supplement to the new generation of mobile communication access network in indoor IoT scenarios, optimizing the initial access experience of smart terminals in complex home environments and improving the reliability of mobile data communication services. Attached Figure Description

[0024] Figure 1 This is a flowchart illustrating the steps of a device network configuration method for a smart home system provided in an embodiment of the present invention. Figure 2 This is a flowchart of another device configuration method for a smart home system provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of a smart home system network configuration method provided in an embodiment of the present invention. Figure 4 This is a schematic diagram of the network configuration encoding and decoding process of a device configuration method for a smart home system provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the device positioning process for a device network configuration method in a smart home system provided by an embodiment of the present invention; Figure 6 This is a structural block diagram of a device configuration device for a smart home system provided in an embodiment of the present invention. Detailed Implementation

[0025] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0026] These existing solutions mainly achieve device network configuration through manual settings, relying on users to manually trigger the device to enter network configuration mode (such as long-pressing a button), actively scan a QR code on a mobile device, or manually search for and connect to the device hotspot. This "human-to-device" interaction mode is cumbersome and affects the efficiency of device network connection.

[0027] One of the core concepts of this invention is that it automatically wakes up the device and initiates the network configuration process through multimodal triggering conditions, eliminating the need for any manual operation by the user and enabling autonomous network configuration, thus improving the convenience of network configuration. Utilizing received acoustic signals, the device's spatial location is calculated simultaneously while completing device verification, reducing user intervention and improving the level and efficiency of automated network configuration for home smart system devices.

[0028] This invention can be applied to digital professional audio equipment, high-fidelity ultra-thin audio products, and digital broadcast television transmitting / receiving equipment. Through seamless network configuration and automatic positioning, the deployment and expansion of smart consumer devices such as home theaters and multi-room background music systems become extremely convenient.

[0029] Reference Figure 1 The diagram illustrates a flowchart of a device network configuration method for a smart home system according to an embodiment of the present invention. The method specifically includes the following steps: Step 101: Receive the acoustic signal sent by the device to be distributed through the acoustic channel; the acoustic signal is sent by the device to be distributed under the condition of meeting the preset multi-mode triggering conditions; Devices to be configured for network access are intelligent devices that already possess network connectivity capabilities (such as Wi-Fi and Bluetooth) but have not yet been connected to the target local area network and require network configuration. In this embodiment of the invention, the device to be configured for network access is equipped with multimodal sensors (such as photosensors and accelerometers). It can autonomously determine the user's intent when it is removed from its packaging (changes in light sensitivity and acceleration), automatically identifying it as ready to use the device. After this determination, it no longer waits but actively broadcasts its "identity fingerprint" (an encrypted network configuration request) via an acoustic channel.

[0030] The device emits encrypted and modulated sound signals via a modified buzzer or speaker, containing its unique identifier (such as a MAC address) and network configuration request. A pre-set encryption key ensures that its broadcast "identity fingerprint" cannot be forged.

[0031] An acoustic channel is a proprietary communication link that uses sound waves of a specific frequency as a carrier to transmit data between smart devices and a home control center. It is a physical channel and a set of logical rules that govern the transmission of data according to a preset communication protocol. Most noise in the home environment (human voices, appliance operating sounds) is concentrated in the low to mid-frequency range. This invention selects high-frequency sound waves as the carrier, which naturally avoids most environmental noise interference, providing a relatively clean physical environment for communication.

[0032] Acoustic signals are structured sound waves that carry encrypted data, undergo complex modulation, and are specifically designed for machine communication. They serve as the information carrier enabling the entire seamless power distribution system. They are physical signals formed by loading digitized device identity information onto high-frequency sound waves using specific modulation and coding techniques. In this embodiment of the invention, the acoustic signal is generated by the main control MCU of the device to be connected to the network, which generates a power distribution request data packet including [frame header 0xAA55], [device type 0x01], [6-byte MAC address], [4-byte random number], and [2-byte CRC16 checksum]. This data packet is then encrypted and converted into an acoustic signal using specific modulation and coding techniques.

[0033] The smart home system of this invention includes a device to be networked, a home smart control center, and a user control center. The device to be networked emits a high-frequency acoustic fingerprint (18-20kHz) containing the device ID as an identification identifier. The microphone array of the home control center (host / gateway) analyzes the acoustic fingerprint and authorizes network connection through the user control center.

[0034] The preset multimodal triggering conditions include changes in light intensity detected by the photosensitive sensor on the device to be connected to the network and movement of the device to be connected to the network detected by the accelerometer on the device to be connected to the network.

[0035] When a new device joins the network, a high-confidence trigger for seamless network configuration is achieved through the fusion of multimodal information, including acoustic waves, vibration, and light sensing. While the device is still in its packaging, it is in an ultra-low-power sleep mode with stable accelerometer readings and a dark ambient light. When the user opens the packaging, a light sensor detects a change in light intensity. After the user picks up the device, the accelerometer detects a vector change. Upon powering on, the device periodically broadcasts its acoustic fingerprint. When the smart control unit's microphone receives and successfully decodes the acoustic fingerprint, the system records the light sensing and acceleration events prior to receiving the acoustic wave. If all events are true, it is determined to be a high-confidence new device joining event, and a high-priority network configuration request is immediately pushed to the user. If all three conditions cannot be met simultaneously, it is determined to be a false trigger or interference event, and no network configuration request is sent.

[0036] In this embodiment of the invention, the transmission of the acoustic signal is autonomously triggered by the intelligent sensing system of the device to be distributed. When the device detects a sequence of physical events conforming to preset logic through its built-in multimodal sensors (such as photosensors and accelerometers)—typically manifested as sudden changes in light intensity and acceleration vectors occurring sequentially when the device is removed from its packaging—the system determines that the user has a genuine intention to distribute the network and automatically activates the acoustic transmission module. This multimodal triggering mechanism ensures that the transmission of the acoustic signal originates from genuine user behavior, rather than environmental interference or false triggering, thus laying a solid foundation for achieving truly "seamless" network distribution.

[0037] Based on this, the acoustic signal emitted by the device is an encrypted data packet carrying its unique identification information. This signal is encrypted using AES-128, Manchester encoded, and FSK modulated, and broadcast as a high-frequency sound wave of 18-22kHz. After the microphone array of the home smart control system captures this signal, it can both decrypt the device identifier for authentication and use the same signal for sound source localization. This design enables a single acoustic signal to simultaneously achieve device discovery, authentication, and spatial positioning, constituting the core technical feature of this seamless network distribution solution.

[0038] Step 102: Verify the acoustic signal, and extract the device identification information of the device to be distributed in the acoustic signal after the verification is successful; Device identification information is a core set of data used by devices to be configured on the network to prove "who I am" and "that I am legitimate" to the home smart control center. It is not just a simple MAC address, but a structured and security-hardened device identity credential. In essence, it is a set of data that can uniquely identify the device and is encrypted and verified for integrity, used in the secure network configuration process.

[0039] In this embodiment of the invention, the home smart control unit verifies the received acoustic signal. First, it performs bandpass filtering and automatic gain control through a signal processing unit. Then, it uses the Goertzel algorithm to detect specific frequencies, completes FSK demodulation, and uses Manchester encoding rules to achieve clock synchronization and decoding, restoring the encrypted data packet. Next, it enters the security verification stage. After decrypting the data packet using a preset AES-128 key, it immediately performs a CRC16 checksum comparison on the decrypted plaintext data. Only if the verification passes is the data integrity and legality confirmed.

[0040] After successful verification, the system accurately extracts key device identification information from the decrypted plaintext, including core elements such as device type, unique MAC address, and random number. This verified device identification information will form the basis for subsequent network configuration processes. It is used to push trusted notifications containing device type and location to user terminals, and also serves as the basis for binding device identity credentials with network access permissions, ensuring that only legitimate devices can enter the subsequent network configuration process.

[0041] Step 103: Determine the spatial location of the device to be distributed to the network based on the received acoustic signal; In this embodiment of the invention, spatial positioning of the device to be distributed is achieved synchronously through a microphone array based on the received acoustic wave signal. First, the minute time difference between the arrival of the acoustic wave signal at each microphone unit in the array is accurately calculated, and the initial three-dimensional coordinates of the device are calculated by using the Chan algorithm to construct a hyperboloid equation system.

[0042] Meanwhile, the system generates a signal strength probability distribution heatmap by combining the signal strength values ​​received by each microphone. The initial coordinates calculated by the algorithm are then fused with the heatmap for confidence analysis: if the initial coordinates are located in a high-probability area of ​​the heatmap, they are directly adopted; if they are located in a low-probability area, the core area of ​​the heatmap is selected first or a weighted correction is performed. Finally, the device spatial location with high confidence is output, thereby achieving precise room-level positioning.

[0043] Step 104: Send a network configuration notification for the device to be configured to the user terminal, so that the user terminal can generate an authorization instruction based on the network configuration notification; the network configuration notification includes the device identification information and the spatial location; The authorization command is the final decision signal made by the user regarding whether a device detected by the system is allowed to access the home network. It is a crucial link in the entire seamless network configuration process, connecting the automated system with the user's will, ensuring that the configuration process is both intelligent and controllable. After the user confirms the network configuration notification issued by the home smart control center through their smart terminal app, a digital command is generated allowing the system to continue executing subsequent network configuration operations.

[0044] In this embodiment of the invention, after completing device verification and location, the home smart control center will proactively send a structured network configuration notification to the user's mobile app. This notification precisely includes decrypted device type, MAC address, and other device identification information, as well as the room-level location of the device determined through acoustic positioning technology.

[0045] Sending network configuration notifications to users, including device identification information and spatial location of devices awaiting network configuration, provides users with sufficient decision-making basis, enabling them to accurately know "which devices are where" awaiting network configuration without on-site confirmation. Users can generate authorization commands by clicking to confirm the notification, thus seamlessly transforming the unnoticed discovery into an authorization action, achieving a smooth transition from system automation to user decision-making.

[0046] Step 105: In response to the authorization command sent by the user terminal, network distribution information is sent to the device to be configured, so that the device to be configured can connect to the network according to the network distribution information.

[0047] Network configuration information is the core configuration data issued by the home smart control center to devices after obtaining user authorization, enabling them to access the target wireless network. Essentially, it is a data set containing network identity credentials and necessary configuration parameters, and is crucial for the device's "networked" intelligence. Network configuration information typically includes the target network's SSID, i.e., the name of the home wireless network. The device needs to know which network to connect to, the target network's password, i.e., the wireless network's access key. This information includes credentials for successful network authentication, gateway DNS server information, etc., which are not limited in this embodiment of the invention.

[0048] In this embodiment of the invention, after receiving the authorization command sent by the user terminal, the home smart control center immediately sends network configuration information to the device to be configured via a wireless radio frequency channel. This information includes core credentials such as the target network's SSID and password, and is transmitted via a highly reliable Wi-Fi or Bluetooth connection, effectively avoiding the error-prone nature of transmitting long data through acoustic channels.

[0049] After successfully receiving the network configuration information, the device awaiting network configuration automatically invokes its network module to use these credentials to connect to the designated wireless network, complete identity authentication and network registration, and finally reports a successful connection status to the home smart control center, achieving a complete transition from the pending network configuration state to the online operating state. This process is fully automated, requiring no further user intervention.

[0050] Reference Figure 2 This diagram illustrates a flowchart of another device network configuration method for a smart home system provided by an embodiment of the present invention. The preset multimodal triggering conditions include changes in light intensity detected by a photosensitive sensor on the device to be configured and movement of the device to be configured detected by an accelerometer on the device to be configured. The method specifically includes the following steps: Step 201: Receive the acoustic signal sent by the device to be distributed through the acoustic channel; the acoustic signal is sent by the device to be distributed under the condition of meeting the preset multi-mode triggering conditions; In this embodiment of the invention, the transmission of the acoustic signal is autonomously triggered by the intelligent sensing system of the device to be distributed. When the device detects a sequence of physical events conforming to preset logic through its built-in multimodal sensors (such as photosensors and accelerometers)—typically manifested as sudden changes in light intensity and acceleration vectors occurring sequentially when the device is removed from its packaging—the system determines that the user has a genuine intention to distribute the network and automatically activates the acoustic transmission module. This multimodal triggering mechanism ensures that the transmission of the acoustic signal originates from genuine user behavior, rather than environmental interference or false triggering, thus laying a solid foundation for achieving truly "seamless" network distribution.

[0051] Based on this, the acoustic signal emitted by the device is an encrypted data packet carrying its unique identification information. This signal is encrypted using AES-128, Manchester encoded, and FSK modulated, and broadcast as a high-frequency sound wave of 18-22kHz. After the microphone array of the home smart control system captures this signal, it can both decrypt the device identifier for authentication and use the same signal for sound source localization. This design enables a single acoustic signal to simultaneously achieve device discovery, authentication, and spatial positioning, constituting the core technical feature of this seamless network distribution solution.

[0052] Reference Figure 3 This diagram illustrates a smart home system network configuration method according to an embodiment of the present invention. Figure 3 This invention demonstrates the complete system architecture and workflow for seamless network configuration of smart devices. It consists of three core components: the device to be configured generates a configuration request via the main control MCU, and the encrypted device information is transmitted uplink via 19kHz carrier FSK modulation by a sound wave generator; the home smart control unit receives the sound wave signal through a microphone array, decodes and decrypts it through a signal processing unit and a digital signal processor, and then the main control CPU extracts the device information and pushes a notification to the user control terminal via a Wi-Fi / Bluetooth module; after the user confirms via a smartphone APP on the user control terminal, the authorized control unit sends the Wi-Fi SSID and password to the device via the radio frequency channel downlink, ultimately completing the automatic connection between the device and the home wireless network.

[0053] Step 202: Verify the acoustic signal, and extract the device identification information of the device to be distributed in the acoustic signal after the verification is successful; In this embodiment of the invention, the home smart control unit verifies the received acoustic signal. First, it performs bandpass filtering and automatic gain control through a signal processing unit. Then, it uses the Goertzel algorithm to detect specific frequencies, completes FSK demodulation, and uses Manchester encoding rules to achieve clock synchronization and decoding, restoring the encrypted data packet. Next, it enters the security verification stage. After decrypting the data packet using a preset AES-128 key, it immediately performs a CRC16 checksum comparison on the decrypted plaintext data. Only if the verification passes is the data integrity and legality confirmed.

[0054] After successful verification, the system accurately extracts key device identification information from the decrypted plaintext, including core elements such as device type, unique MAC address, and random number. This verified device identification information will form the basis for subsequent network configuration processes. It is used to push trusted notifications containing device type and location to user terminals, and also serves as the basis for binding device identity credentials with network access permissions, ensuring that only legitimate devices can enter the subsequent network configuration process.

[0055] In some embodiments, the acoustic signal includes an encrypted network configuration request data packet from the device to be configured; step 202 may include the following sub-steps: Sub-step S11: Filter the acoustic signal to suppress noise, and restore the filtered acoustic signal to a digital stream signal; Filtering is the first crucial signal preprocessing operation performed by the home smart control system after receiving the raw sound wave signal. Its core purpose is to accurately separate the effective sound wave signal sent by the device from the mixed sound filled with various environmental noises.

[0056] In this embodiment of the invention, the received acoustic signal is first subjected to bandpass filtering to suppress common low-frequency household appliance noise and mid-frequency human voice interference in the home environment, thereby significantly improving the signal-to-noise ratio. This preprocessing step lays a solid foundation for subsequent accurate decoding, ensuring that the effective signal is reliably separated from the complex acoustic environment. Based on the filtering optimization, the Goertzel algorithm is used to perform precise energy detection at specific FSK frequency points to achieve signal demodulation, ultimately accurately restoring the analog acoustic signal into a digital bitstream carrying device identity information, preparing structured data for subsequent decryption and verification.

[0057] Sub-step S12 involves clock recovery and bit synchronization of the digital stream signal, and decoding the clock-recovered and bit-synchronized digital stream signal back into the original encrypted network distribution request data packet. Clock recovery and bit synchronization are crucial steps that a home smart controller must perform after demodulating the acoustic signal into a digital bitstream. Its purpose is to resolve minute clock frequency differences between the device and the receiving controller, thereby accurately determining the start and end positions of each bit of data and ensuring correct data reading.

[0058] In this embodiment of the invention, clock recovery and bit synchronization of the digital stream signal are performed. Specifically, the start and end boundaries of each bit data are accurately located by leveraging the inherent bit mid-level transition characteristics of Manchester encoding, thereby achieving clock synchronization between the transmitting and receiving ends and eliminating timing drift caused by device deviations.

[0059] After clock synchronization is completed, the synchronized digital stream signal is decoded and restored according to the Manchester encoding rules, the synchronization clock component in the encoding is removed, and a complete encrypted network distribution request data packet is reconstructed, providing structurally regular original encrypted data for subsequent decryption operations.

[0060] Sub-step S13: Decrypt the encrypted network distribution request data packet using a preset decryption module to obtain the corresponding plaintext data, and extract the check code from the plaintext data; In this embodiment of the invention, after decoding the acoustic signal carrying the encrypted network configuration request, the data packet is decrypted using the same AES-128 key preset on the device side, restoring plaintext data containing device type, MAC address, and random number. Subsequently, the CRC16 checksum field calculated by the sending end is accurately extracted from the decrypted plaintext data structure, providing a comparison benchmark for subsequent data integrity verification.

[0061] This decryption and verification code extraction process constitutes the core link of security verification: the decryption operation ensures the confidentiality and authenticity of the device's identity information, while the extraction of the verification code provides a unique basis for comparison to determine whether the data has been interfered with or tampered with during sound wave transmission. Together, they establish a dual basis for judging the legitimacy of the device.

[0062] Sub-step S14: Recalculate the check code for the plaintext data other than the check code; In this embodiment of the invention, based on the decrypted plaintext data (including key device identification information such as device type, MAC address, and random number), the system recalculates the checksum for all data content except for the extracted original checksum field, according to the same CRC16 algorithm specification as the sending end. By accurately comparing the independently generated checksum with the received original checksum, it is possible to effectively detect whether any bit changes have occurred during the sound wave transmission due to channel interference or transmission errors, providing an objective technical basis for determining the legality of the data packet.

[0063] Sub-step S15 verifies the extracted check code and the recalculated check code to determine whether the verification is successful.

[0064] In this embodiment of the invention, the original checksum extracted from the received data packet is precisely compared with the locally recalculated checksum. If the two are completely identical, the verification is confirmed as successful, proving that the data remained intact and uninterrupted throughout the sound wave transmission. If any discrepancy occurs in the checksum, the verification is immediately determined to have failed, indicating that data tampering or a channel error occurred during transmission. The system automatically discards the data packet and waits for subsequent broadcasts from the device. This stringent integrity verification mechanism ensures that only completely reliable data can enter the subsequent network distribution process.

[0065] A progressive verification structure is formed through a four-layer processing flow: signal layer filtering, encoding layer clock synchronization, data layer decryption, and verification layer integrity verification. This layered design enables the system to eliminate risks such as environmental noise, timing misalignment, unauthorized equipment, and data tampering at different levels, significantly improving the reliability of the power distribution network.

[0066] In some embodiments, step S15 may include the following sub-steps: Sub-step S151: Compare the extracted check code with the recalculated check code; In sub-step S152, if the extracted check code matches the recalculated check code, the verification is confirmed to be successful; if the extracted check code does not match the recalculated check code, the verification is confirmed to be unsuccessful, and the network configuration request data packet is discarded.

[0067] In this embodiment of the invention, during the integrity verification phase, the original checksum extracted by the receiving end is precisely compared with the locally recalculated checksum, and the basis for determining the legality of the data packet is established through consistency verification. Verification is successful only if the two sets of checksums match completely; otherwise, verification fails immediately upon discovery of any discrepancy, and the abnormal data packet is automatically discarded. This zero-tolerance mechanism ensures that subsequent network configuration processes are executed only based on complete and reliable data.

[0068] This comparison mechanism constitutes the final decision-making link in data integrity verification: if the verification is successful, the device identity information extraction process is initiated; if the verification fails, the data packet discarding and waiting for retransmission mechanism is triggered. This not only ensures the security principle that the system only processes valid requests, but also avoids resource waste through the fast failure strategy, forming an efficient and reliable quality control closed loop.

[0069] Reference Figure 4 This diagram illustrates the network configuration encoding and decoding process of a device configuration method for a smart home system according to an embodiment of the present invention. Figure 4This demonstrates the complete encoding and decoding process of acoustic communication in this embodiment of the invention, divided into two core parts: the transmitting end and the receiving end. The transmitting end (the device to be networked) process begins with the assembly of the original data structure (including frame header, device type, MAC address, random number, and CRC checksum). After securely encrypting the data packet using an AES-128 encryption module, Manchester encoding and FSK modulation (using dual frequencies of 10.5kHz and 18.8kHz) are performed sequentially. Finally, the physical signal is transmitted via an acoustic wave generator. This entire process constructs a complete uplink from data encapsulation and secure encryption to acoustic wave modulation, ensuring the confidentiality and reliability of device identity information during transmission.

[0070] The receiving end (home control unit) constructs a corresponding signal processing chain: bandpass filtering (cutoff frequency 18kHz) and automatic gain control are applied to the sound wave signal collected by the microphone. Then, frequency detection and FSK demodulation are performed using the Goertzel algorithm. Manchester encoding characteristics are used to complete clock recovery and bit synchronization, accurately restoring the sound wave signal into digital data packets. Finally, the data packets undergo dual verification using AES-128 decryption and CRC check. Only valid data that passes the integrity check is adopted by the system, forming a complete parsing path from physical signal to trusted data. The transmitting end ensures secure data transmission through encryption and modulation, while the receiving end ensures complete data restoration through signal processing and verification mechanisms, together forming the technical foundation for seamless network distribution.

[0071] The transmitting end is controlled by the device's main control MCU, which generates the raw data packets, calls the encryption algorithm, and encodes them. The sound wave generator is the final step in this process, responsible for receiving electrical signals and converting them into physical sound waves. The receiving end is controlled by the digital signal processor (DSP) within the home control system; the DSP excels at performing extensive digital calculations for sound wave signal processing. The random number generator at the transmitting end is typically used by a hardware random number generator or a hardware-based pseudo-random number generator. The AES-128 key for the transmitting end's encoding process is pre-programmed during production, usually in a one-device-one-key format. A unique key is burned into each device on the production line, and this key, along with the device's MAC address, is pre-registered with the device's cloud management platform for subsequent network configuration.

[0072] After encryption by the encryption module, the transmitting end's encoding process requires further encoding and modulation, specifically Manchester encoding and FSK modulation. Encryption addresses information security, ensuring that data content remains unreadable even if intercepted. Encoding makes digital signals more suitable for transmission over physical channels, falling under data transmission. Modulation loads digital signals onto high-frequency sound waves for transmission and reception. All three are indispensable and alternative components of the communication link. Manchester encoding features a level transition in the middle of each bit of data. The receiving end can use this characteristic to synchronize clock signals, reducing the risk of decoding errors caused by minor time differences between devices. It also avoids DC component offset, ensuring a near balance of 0s and 1s in the data stream. FSK modulation uses two different frequencies to transmit data; if one frequency is briefly interfered with, the other frequency may remain clear, improving reliability.

[0073] The receiving end operates in the opposite manner to the transmitting end. First, the DSP performs demodulation and decoding: the raw signal sampled by the ADC is first filtered by a bandpass filter to remove most environmental noise. Then, the Goertzel algorithm is used to detect the frequencies containing specific "0"s and "1"s in each data frame, thus restoring the acoustic signal to a digital stream signal. Next, utilizing the transition rules of Manchester encoding, the start and end positions of each bit in the digital stream are precisely located to achieve clock synchronization, and the encoded digital stream is decoded back into the original encrypted data packet. Then, decryption and verification are performed: using the same preset AES-128 key, the received data packet is decrypted to obtain the plaintext (containing device type, MAC address, and random number). The CRC16 checksum calculated by the transmitting end is then extracted from the decrypted plaintext. The receiving end recalculates the CRC16 for the plaintext data excluding the checksum and compares the two checksums. If they match perfectly, no errors occurred during transmission; if they do not match, it indicates an error or interference during transmission, and the data packet is discarded, awaiting the next broadcast from the device. Only after the CRC check passes will the home control system consider the data packet to be legitimate, and then read the MAC information and other information to perform subsequent push notifications and network configuration processes.

[0074] Step 203: Determine the spatial location of the device to be distributed to the network based on the received acoustic signal; In this embodiment of the invention, spatial positioning of the device to be distributed is achieved synchronously through a microphone array based on the received acoustic wave signal. First, the minute time difference between the arrival of the acoustic wave signal at each microphone unit in the array is accurately calculated, and the initial three-dimensional coordinates of the device are calculated by using the Chan algorithm to construct a hyperboloid equation system.

[0075] Meanwhile, the system generates a signal strength probability distribution heatmap by combining the signal strength values ​​received by each microphone. The initial coordinates calculated by the algorithm are then fused with the heatmap for confidence analysis: if the initial coordinates are located in a high-probability area of ​​the heatmap, they are directly adopted; if they are located in a low-probability area, the core area of ​​the heatmap is selected first or a weighted correction is performed. Finally, the device spatial location with high confidence is output, thereby achieving precise room-level positioning.

[0076] In some embodiments, step 203 may include the following sub-steps: Sub-step S21: Determine the time difference between the arrival of the acoustic signal at different microphones in the microphone array, and determine the initial coordinates of the device to be networked based on the time difference; Sub-step S22: Determine the signal strength of the sound wave signal at different microphones in the microphone array, and generate a signal strength probability distribution heatmap based on the signal strength; Sub-step S23: The initial coordinates are fused and compared with the signal strength probability distribution heatmap, and the spatial location of the device to be distributed is determined based on the probability distribution result.

[0077] A signal strength probability distribution heatmap is a graphical data model used to visualize and assist in determining the most likely location of devices in a distribution network. It uses color intensity to visually represent the probability of a device being located at a certain point in space.

[0078] In this embodiment of the invention, based on the spatial propagation characteristics of acoustic signals, the system first calculates the time difference between the arrival of the signal at each unit of the microphone array and uses the Chan algorithm to calculate the initial three-dimensional coordinates of the device to be networked. Subsequently, by collecting the signal strength values ​​received by each microphone, a spatial interpolation algorithm is used to generate a heatmap of the signal strength probability distribution, and the probability of the device's presence in different areas is visually displayed using color gradients.

[0079] During the data fusion phase, the initial coordinates calculated by the algorithm are analyzed in conjunction with the probability distribution of the heatmap: if the initial coordinates are located in a high-confidence area of ​​the heatmap, they are directly adopted; if they are located in a low-probability area, the core area of ​​the heatmap is selected first, or a weighted correction is performed. This dual-mechanism fusion positioning method retains the accuracy advantage of time-of-arrival positioning while compensating for environmental reflection interference through signal strength distribution, ultimately outputting a highly reliable device spatial location.

[0080] Reference Figure 5 This diagram illustrates the device location process of a device network configuration method for a smart home system according to an embodiment of the present invention. Figure 5This demonstrates the complete implementation path of the device positioning function in this embodiment of the invention. The system captures the acoustic signal emitted by the device to be connected to the network using the M1-M4 microphone array of the home smart control unit. The Chan positioning algorithm is then used to calculate the device's three-dimensional coordinates, and a signal strength probability distribution heatmap is generated simultaneously for confidence calibration. After obtaining the accurate coordinates verified by the heatmap, the home smart control unit combines pre-stored home floor plan map data to comprehensively determine the specific room location of the device. Finally, the structured information "New device found in room xx" is pushed to the user's mobile app, completing the fully automated process from acoustic signal acquisition to room-level positioning push.

[0081] Step 204: Send a network configuration notification for the device to be configured to the user terminal, so that the user terminal can generate an authorization instruction based on the network configuration notification; the network configuration notification includes the device identification information and the spatial location; In this embodiment of the invention, after completing device verification and location, the home smart control system proactively sends a structured network configuration notification to the user's mobile app. This notification precisely includes decrypted device type, MAC address, and other device identification information, as well as the room-level location of the device determined through acoustic positioning technology. Sending a network configuration notification to the user, including the device identification information and spatial location of the device to be configured, provides the user with sufficient decision-making basis, allowing the user to accurately know "which device is where" awaiting network configuration without on-site confirmation. By clicking to confirm the notification, the user can generate an authorization command, thus seamlessly transforming the unnoticed discovery into an authorization action, achieving a smooth transition from system automation to user decision-making.

[0082] In some embodiments, step 204 may include the following sub-steps: Sub-step S31: Detect whether the user terminal is on the same local area network as the home wireless network; Sub-step S32: If the user terminal and the home wireless network are on the same local area network, then send a network configuration notification to the user terminal; Sub-step S33: If the user terminal and the home wireless network are not on the same local area network, the network configuration notification is pushed to one or more preset family group member control terminals through the cloud server.

[0083] In a home, office, or building, multiple computers, printers, smartphones, smart TVs, and other devices are connected together to share files and printers. This small network is called a local area network (LAN), which is usually limited to a small geographical area, such as a home, a classroom, or an office building.

[0084] The user clicks to confirm and connects to the network. This "user confirmation" is not a traditional "user-initiated operation," but rather a lightweight "authorization" step after seamless discovery. The fundamental difference is that traditionally, users need to actively search for devices according to the network configuration process, then find the "scan code" or button "" function or device list. In this invention, the system automatically discovers the device and notifies the user via a system-level push notification, requiring only a simple decision from the user. Remote authorization is supported. For example, the system can determine if the user is home by detecting whether their mobile phone and home Wi-Fi are on the same network. If the user is not home, a notification is sent to the app of all family members (or only the administrator). When a member performs an "authorization" operation, the network configuration process is triggered. An automatic timeout mechanism is also set up to treat the request as a rejection. Additionally, the administrator can set up a guest mode (e.g., a temporary authorization code that does not require real-time confirmation from the homeowner) and a trusted device whitelist.

[0085] In this embodiment of the invention, the network environment of the user terminal device is first detected. When it is confirmed that the device is on the same local area network as the home wireless network, a local communication link is directly established to send a network configuration notification, achieving low-latency, real-time interaction. This design fully ensures the real-time operation of the user when at home. When the system detects that the user is on an external network, it automatically switches to cloud push mode, routing the network configuration notification to the control terminals of all preset family members. This dual-mode communication architecture not only solves the device authorization problem when the homeowner is not at home, but also improves the response efficiency of network configuration requests through a group notification mechanism, while setting the boundaries for remote management capabilities of the system.

[0086] Step 205: In response to the authorization command sent by the user terminal, network configuration information is sent to the device to be configured, so that the device to be configured can connect to the network according to the network configuration information.

[0087] In this embodiment of the invention, after receiving the authorization command sent by the user terminal, the home smart control center immediately sends network configuration information to the device to be configured via a wireless radio frequency channel. This information includes core credentials such as the target network's SSID and password, transmitted via highly reliable Wi-Fi or Bluetooth connections, effectively avoiding the error-prone nature of long data transmission via acoustic channels. After successfully receiving the network configuration information, the device to be configured automatically invokes its network module to use these credentials to connect to the designated wireless network, complete identity authentication and network registration, and finally reports a successful connection status to the home smart control center, achieving a complete transition from the pending network configuration state to the online operating state. This process is fully automated, requiring no further user intervention.

[0088] Step 206: Acquire ambient noise and analyze the spectral characteristics of the ambient noise in multiple predefined candidate acoustic communication frequency bands; Step 207: Select the frequency band with the highest signal-to-noise ratio from the plurality of predefined candidate acoustic communication frequency bands according to the spectral characteristics, and determine the target acoustic channel according to the frequency band; Step 208: Send the acoustic channel information of the target acoustic channel to the device to be configured on the network, so that the device to be configured on the network can send the acoustic signal through the target acoustic channel.

[0089] Acoustic communication frequency bands are specific ranges of acoustic frequencies used for transmitting data between smart devices and home control systems. Choosing the right frequency band is a core decision in the entire system design, directly affecting communication reliability, stealth, and anti-interference capabilities.

[0090] Spectral characteristics are the energy distribution of a sound signal at different frequency components, revealed by mathematical analysis (usually Fourier transform).

[0091] Signal-to-noise ratio (SNR) is the ratio between the intensity of the desired signal and the intensity of the background noise. "Signal" refers to the target signal to be received. "Noise" refers to the intensity of all unwanted interference signals in the same channel, including human voices, appliance noise, and other environmental noise. The ratio is the sum of these two.

[0092] Before the microphone array receives the sound waves from the monitoring device, it first samples the noise for a period of time. Then, the system analyzes the spectral characteristics of the ambient noise in real time (such as low-frequency noise from a robot vacuum cleaner, mid-frequency interference from people talking, and high-frequency noise from a television). By pre-setting multiple backup frequency band pairs through the protocol, the system automatically selects the frequency band with the lowest ambient noise and the highest signal-to-noise ratio as the current communication channel. In environments with poor signal-to-noise ratio, it can automatically downgrade from higher-order modulation (such as FSK) to more robust modulation (such as OOK) and reduce the data transmission rate to improve reliability.

[0093] In this embodiment of the invention, a dynamic adaptive acoustic communication channel selection mechanism is constructed. First, environmental noise samples are collected using a microphone array, and real-time spectrum analysis is performed on multiple predefined candidate acoustic communication frequency bands to accurately identify the degree of interference from environmental noise in each band. Based on the spectrum analysis results, the system automatically selects the frequency band with the optimal signal-to-noise ratio as the target acoustic channel, thus forming a channel decision. Subsequently, acoustic channel information is sent to the device to be connected to the network through the established communication link, guiding the device to use the optimal channel to transmit acoustic signals, thereby maintaining communication quality and reliability even in complex home noise environments.

[0094] In some embodiments, the method further includes the following steps: After the device to be configured connects to the network according to the configuration information, an encrypted acoustic signal containing an authentication token is sent to the device to be configured, so that the device already connected to the network can receive the encrypted acoustic signal and decrypt it to obtain the authentication token; the device receives the authentication token returned by the device and verifies it; after successful verification, the device is granted the corresponding network access permission.

[0095] An authentication token is an electronic credential used to prove a user's or device's identity, permissions, and access rights. It's similar to a physical access card, electronic key, or one-time digital password, allowing the holder to gain authorization in specific scenarios and for specific times without repeatedly presenting core secrets (such as a master password). Tokens typically have a lifespan, which can be a few minutes, a few hours, or a one-time use token.

[0096] In addition, in this embodiment of the invention, after the device to be configured is connected to the network, the home control unit can play a special encrypted sound wave containing a one-time key through a speaker (or loudspeaker). If the new device has a microphone, it must correctly receive and decrypt the sound wave in order to obtain the full permission to finally activate the network.

[0097] In this embodiment of the invention, a secondary security authentication mechanism based on acoustic wave communication is constructed. After the device completes the initial network connection, the home smart control center sends an authentication token containing a one-time key to the device through an encrypted acoustic wave channel, utilizing the physical spatial transmission characteristics of acoustic waves to establish device presence proof. The device must successfully receive and decrypt the acoustic wave signal to obtain the token, and then transmit it back to the control center through the established network connection to complete the verification. This dual-channel verification mode of acoustic wave transmission and network feedback ensures that only legitimate devices that pass verification can obtain full network access permissions, effectively defending against logical privilege escalation attacks and achieving refined management of device access permissions.

[0098] This invention discloses a device configuration method, apparatus, equipment, and medium for a smart home system. The method includes: receiving an acoustic signal transmitted by a device to be configured via an acoustic channel; the acoustic signal is transmitted by the device under preset multimodal triggering conditions; verifying the acoustic signal and extracting the device identification information of the device to be configured from the acoustic signal after successful verification; determining the spatial location of the device to be configured based on the received acoustic signal; sending a configuration notification of the device to be configured to a user terminal, so that the user terminal generates an authorization command according to the configuration notification; the configuration notification includes the device identification information and spatial location; responding to the authorization command sent by the user terminal, and issuing configuration information to the device to be configured, so that the device to be configured connects to the network according to the configuration information. By automatically waking up the device and initiating the configuration process through multimodal triggering conditions, the user does not need any manual operation, achieving autonomous configuration of the device and improving the convenience of configuration. Utilizing the received acoustic signal, the spatial location is calculated simultaneously while completing device verification, greatly improving the level and efficiency of automated configuration of home smart system devices. It can be regarded as an effective supplement to the new generation of mobile communication access network in indoor IoT scenarios, optimizing the initial access experience of smart terminals in complex home environments and improving the reliability of mobile data communication services.

[0099] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0100] Reference Figure 6 The diagram illustrates a structural block diagram of a device configuration device for a smart home system according to an embodiment of the present invention. The device includes: The acoustic signal receiving module 301 is used to receive acoustic signals sent by the device to be distributed to the network through the acoustic channel; the acoustic signals are sent by the device to be distributed to the network under the condition of meeting the preset multi-mode triggering conditions; The acoustic signal verification module 302 is used to verify the acoustic signal and extract the device identification information of the device to be distributed in the acoustic signal after the verification is passed. The device location determination module 303 is used to determine the spatial location of the device to be distributed to the network based on the received acoustic wave signal; The network distribution notification sending module 304 is used to send a network distribution notification of the device to be distributed to the user terminal, so that the user terminal can generate an authorization instruction according to the network distribution notification; the network distribution notification includes the device identification information and the spatial location. The authorization instruction response module 305 is used to respond to the authorization instruction sent by the user terminal and send network distribution information to the device to be configured, so that the device to be configured can connect to the network according to the network distribution information.

[0101] In some embodiments, the apparatus further includes: An environmental noise analysis module is used to acquire environmental noise and analyze the spectral characteristics of the environmental noise in multiple predefined alternative acoustic communication frequency bands. The target acoustic channel determination module is used to select the frequency band with the highest signal-to-noise ratio from the plurality of predefined candidate acoustic communication frequency bands according to the spectral characteristics, and determine the target acoustic channel according to the frequency band; The acoustic channel information transmission module is used to send the acoustic channel information of the target acoustic channel to the device to be networked, so that the device to be networked can transmit the acoustic signal through the target acoustic channel.

[0102] In some embodiments, the preset multimodal triggering conditions include changes in light intensity detected by the photosensitive sensor on the device to be configured and movement of the device to be configured detected by the accelerometer on the device to be configured.

[0103] In some embodiments, the apparatus further includes: The authentication token sending module is used to send an encrypted acoustic signal containing an authentication token to the device to be configured after the device is connected to the network according to the network configuration information, so that the device already connected to the network can receive the encrypted acoustic signal and decrypt the encrypted acoustic signal to obtain the authentication token. The authentication token verification module is used to receive the authentication token returned by the device and verify the authentication token; The access permission granting module is used to grant the corresponding network access permission to the device after successful verification.

[0104] In some embodiments, the device location determination module 303 includes: The initial coordinate determination submodule is used to determine the time difference between the arrival of the acoustic signal at different microphones in the microphone array, and to determine the initial coordinates of the device to be networked based on the time difference; The heatmap determination submodule is used to determine the signal strength of the acoustic signal at different microphones in the microphone array, and generate a signal strength probability distribution heatmap based on the signal strength. The coordinate heatmap comparison submodule is used to fuse and compare the initial coordinates with the signal strength probability distribution heatmap, and determine the spatial location of the device to be distributed to the network based on the probability distribution results.

[0105] In some embodiments, the distribution network notification sending module 304 includes: The local area network detection submodule is used to detect whether the user terminal is on the same local area network as the home wireless network; if the user terminal is on the same local area network as the home wireless network, a network configuration notification is sent to the user terminal; if the user terminal is not on the same local area network as the home wireless network, the network configuration notification is pushed to one or more preset family member control terminals through the cloud server.

[0106] In some embodiments, the acoustic signal includes an encrypted network configuration request data packet from the device to be configured; the acoustic signal verification module 302 includes: The acoustic signal filtering submodule is used to filter the acoustic signal to suppress noise and restore the filtered acoustic signal into a digital stream signal. The signal decoding submodule is used to perform clock recovery and bit synchronization on the digital stream signal, and decode the clock-recovered and bit-synchronized digital stream signal back into the original encrypted network distribution request data packet; The verification code extraction submodule is used to decrypt the encrypted network configuration request data packet through a preset decryption module, obtain the corresponding plaintext data, and extract the verification code from the plaintext data. The check code calculation submodule is used to recalculate the check code for the plaintext data other than the check code itself. The checksum verification submodule is used to verify the extracted checksum and the recalculated checksum to determine whether the verification is successful.

[0107] In some embodiments, the verification code verification submodule includes: The verification code comparison unit is used to compare the extracted verification code with the recalculated verification code; if the extracted verification code is consistent with the recalculated verification code, the verification is determined to be successful; if the extracted verification code is inconsistent with the recalculated verification code, the verification is determined to be unsuccessful, and the network configuration request data packet is discarded.

[0108] As the apparatus embodiment is basically similar to the method embodiment, it is described in a relatively simple manner. For relevant details, please refer to the description of the method embodiment.

[0109] This invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various processes of the device configuration method embodiment of the smart home system described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0110] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the device configuration method embodiment of the smart home system described above and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0111] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0112] Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present invention is not limited to performing functions in the order shown or discussed. It may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0113] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0114] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of the present invention.

Claims

1. A device configuration method for a smart home system, characterized in that, The method includes: Receive acoustic signals transmitted by the device to be distributed to the network through an acoustic channel; the acoustic signals are transmitted by the device to be distributed to the network under preset multi-mode triggering conditions; The acoustic signal is verified, and the device identification information of the device to be distributed in the network is extracted from the acoustic signal after the verification is successful. Based on the received acoustic wave signal, the spatial location of the device to be distributed to the network is determined; Send a network configuration notification to the user terminal for the device to be configured, so that the user terminal can generate an authorization instruction based on the network configuration notification; the network configuration notification includes the device identification information and the spatial location; In response to the authorization command sent by the user terminal, network configuration information is sent to the device to be configured, so that the device to be configured can connect to the network according to the network configuration information; The method further includes: Acquire ambient noise and analyze the spectral characteristics of the ambient noise in multiple predefined alternative acoustic communication frequency bands; Based on the spectral characteristics, the frequency band with the highest signal-to-noise ratio is selected from the plurality of predefined candidate acoustic communication frequency bands, and the target acoustic channel is determined based on the frequency band; The target acoustic channel information is sent to the device to be configured on the network, so that the device to be configured on the network can send the acoustic signal through the target acoustic channel.

2. The device configuration method for a smart home system according to claim 1, wherein the preset multimodal triggering conditions include changes in light intensity detected by the photosensitive sensor on the device to be configured and movement of the device to be configured detected by the accelerometer on the device to be configured.

3. The device configuration method for a smart home system according to claim 1, characterized in that, The method further includes: After the device to be configured connects to the network according to the configuration information, an encrypted acoustic signal containing an authentication token is sent to the device to be configured, so that the device already connected to the network can receive the encrypted acoustic signal and decrypt the encrypted acoustic signal to obtain the authentication token. Receive the authentication token returned by the device and verify the authentication token; After successful verification, the device is granted the corresponding network access permission.

4. The device configuration method for a smart home system according to claim 1, characterized in that, Determining the spatial location of the device to be distributed to the network based on the received acoustic signal includes: Determine the time difference between the arrival of the acoustic signal at different microphones in the microphone array, and determine the initial coordinates of the device to be networked based on the time difference; Determine the signal strength of the acoustic signal at different microphones in the microphone array, and generate a heatmap of the probability distribution of the signal strength based on the signal strength; The initial coordinates are fused and compared with the signal strength probability distribution heatmap, and the spatial location of the device to be distributed is determined based on the probability distribution results.

5. The device configuration method for a smart home system according to claim 1, characterized in that, Sending the network configuration notification of the device to be configured to the user terminal includes: Detect whether the user terminal is on the same local area network as the home wireless network; If the user terminal and the home wireless network are on the same local area network, a network configuration notification is sent to the user terminal; If the user terminal and the home wireless network are not on the same local area network, the network configuration notification will be pushed to one or more preset family member control terminals via the cloud server.

6. The device configuration method for a smart home system according to claim 1, characterized in that, The acoustic signal includes encrypted network configuration request data packets from the device to be configured. The verification of the acoustic signal includes: The acoustic signal is filtered to suppress noise, and the filtered acoustic signal is restored to a digital stream signal; The digital stream signal is clocked and bit-synchronized, and the clocked and bit-synchronized digital stream signal is decoded back into the original encrypted network distribution request data packet; The encrypted network configuration request data packet is decrypted by a preset decryption module to obtain the corresponding plaintext data, and the checksum is extracted from the plaintext data. Recalculate the checksum for the plaintext data other than the checksum itself; Verify the extracted checksum and the recalculated checksum to determine whether the verification is successful.

7. The device configuration method for a smart home system according to claim 6, characterized in that, The step of verifying the extracted checksum and the recalculated checksum to determine whether the verification passes includes: The extracted checksum is compared with the recalculated checksum. If the extracted checksum matches the recalculated checksum, the verification is considered successful. If the extracted checksum is inconsistent with the recalculated checksum, the verification is determined to be unsuccessful, and the network configuration request data packet is discarded.

8. A device configuration device for a smart home system, characterized in that, The device includes: An acoustic signal receiving module is used to receive acoustic signals transmitted by the device to be distributed to the network through an acoustic channel; the acoustic signals are transmitted by the device to be distributed to the network under preset multi-mode triggering conditions; The acoustic signal verification module is used to verify the acoustic signal and extract the device identification information of the device to be distributed in the acoustic signal after the verification is successful. The device location determination module is used to determine the spatial location of the device to be distributed to the network based on the received acoustic wave signal; A network distribution notification sending module is used to send a network distribution notification to the user terminal for the device to be configured, so that the user terminal can generate an authorization instruction based on the network distribution notification; the network distribution notification includes the device identification information and the spatial location. The authorization instruction response module is used to respond to the authorization instruction sent by the user terminal and send network distribution information to the device to be configured, so that the device to be configured can connect to the network according to the network distribution information; The device further includes: An environmental noise analysis module is used to acquire environmental noise and analyze the spectral characteristics of the environmental noise in multiple predefined alternative acoustic communication frequency bands. The target acoustic channel determination module is used to select the frequency band with the highest signal-to-noise ratio from the plurality of predefined candidate acoustic communication frequency bands according to the spectral characteristics, and determine the target acoustic channel according to the frequency band; The acoustic channel information transmission module is used to send the acoustic channel information of the target acoustic channel to the device to be networked, so that the device to be networked can transmit the acoustic signal through the target acoustic channel.

9. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the device configuration method for a smart home system as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the device configuration method for the smart home system as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Method and device for network distribution of intelligent equipment and electronic equipment

    CN109714782A

  • Network distribution method and device, equipment to be subjected to network distribution, electronic device and readable storage medium

    CN115103359A

  • Sound wave network distribution method and system

    CN115189979A

  • Smart home equipment network distribution method and device, electronic equipment and readable storage medium

    CN119906597A

  • Ai-controlled sensor network for threat mapping and characterization and risk adjusted response

    US20250175456A1

Cited By

  • Equipment network distribution method and equipment network distribution system

    CN121984849A