A device network distribution method, device, apparatus and medium of a smart home system
By receiving acoustic signals from devices to be distributed to the network, the system automatically verifies device identification and location, achieving seamless network distribution. This solves the problem of cumbersome manual operation in existing technologies and improves network connection efficiency and user experience.
Patent Information
- Application Number
- CN202511669387.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-14
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2045-11-14
AI Technical Summary
Existing smart device network configuration methods rely on manual operation, resulting in low network connection efficiency and cumbersome user interaction.
By receiving acoustic signals sent by the device to be distributed under multimodal triggering conditions, the device identification information is verified, the spatial location is determined, and a distribution network notification is sent to the user terminal, thus automatically completing the network connection of the device.
It enables autonomous network configuration without manual user intervention, improving the convenience of network configuration and the automation level of home smart systems, and optimizing the initial device connection experience.
Smart Images

Figure CN121125381B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of device network configuration, and in particular to a device network configuration method of a smart home system, a device network configuration apparatus of a smart home system, an electronic device and a computer readable storage medium. BACKGROUND
[0002] In the current field of intelligent networking of Internet of Things devices, device discovery and network configuration mainly rely on manual operation or short-range wireless technology. The traditional network configuration methods of intelligent devices include two-dimensional code network configuration, barcode network configuration and Bluetooth network configuration. The network configuration method commonly used for home appliances is to use a remote controller to reset network configuration information, connect to the Wi-Fi hotspot information provided by the device or connect to the Bluetooth information, send the hotspot information to be connected to the device, and then the device enters the network configuration process after obtaining the information.
[0003] These existing solutions mainly achieve device network configuration through manual setting, and rely on the user to manually trigger the device to enter the network configuration mode (such as long-pressing a key), actively scan a two-dimensional code or manually search for and connect to a device hotspot. This "device finding" interaction mode is cumbersome to operate and affects the efficiency of device network connection. SUMMARY
[0004] In view of the above problems, the present application embodiments are proposed to provide a device network configuration method of a smart home system, a device network configuration apparatus of a smart home system, an electronic device and a computer readable storage medium which overcome the above problems or at least partially solve the above problems.
[0005] To solve the above problems, the first aspect of the present application embodiments provides a device network configuration method of a smart home system, which comprises:
[0006] receiving a sound wave signal sent by a device to be network configured through a sound wave channel; the sound wave signal is sent by the device to be network configured under the condition that a preset multi-modal trigger condition is met;
[0007] verifying the sound wave signal, and extracting device identification information of the device to be network configured in the sound wave signal after verification;
[0008] determining the spatial position of the device to be network configured based on the received sound wave signal;
[0009] sending a network configuration notification of the device to be network configured to a user end, so that the user end generates an authorization instruction according to the network configuration notification; the network configuration notification comprises the device identification information and the spatial position;
[0010] In response to the authorization instruction sent by the user terminal, the network configuration information is sent to the network device to be configured, so that the network device to be configured connects to the network according to the network configuration information.
[0011] Optionally, the method further comprises:
[0012] Obtaining environmental noise and analyzing spectral characteristics of the environmental noise on a plurality of predefined alternative sound wave communication frequency bands;
[0013] Selecting a frequency band with the highest signal-to-noise ratio from the plurality of predefined alternative sound wave communication frequency bands according to the spectral characteristics, and determining a target sound wave channel according to the frequency band;
[0014] Sending sound wave channel information of the target sound wave channel to the network device to be configured, so that the network device to be configured sends the sound wave signal through the target sound wave channel.
[0015] Optionally, the preset multi-modal trigger condition includes a change in light intensity detected by a light-sensitive sensor on the network device to be configured and movement of the network device to be configured detected by an acceleration sensor on the network device to be configured.
[0016] Optionally, the method further comprises:
[0017] After the network device to be configured connects to the network according to the network configuration information, an encrypted sound wave signal containing an authentication token is sent to the network device to be configured, so that a device connected to the network receives the encrypted sound wave signal and decrypts the encrypted sound wave signal to obtain the authentication token;
[0018] Receiving the authentication token returned by the device and verifying the authentication token;
[0019] Granting the corresponding network access right to the device after verification.
[0020] Optionally, the spatial position of the network device to be configured is determined based on the received sound wave signal, comprising:
[0021] Determining a time difference of the sound wave signal arriving at different microphones in the microphone array, and determining an initial coordinate of the network device to be configured according to the time difference;
[0022] Determining signal intensity of the sound wave signal at different microphones in the microphone array, and generating a signal intensity probability distribution heat map according to the signal intensity;
[0023] Fusing and comparing the initial coordinate with the signal intensity probability distribution heat map, and determining the spatial position of the network device to be configured according to the probability distribution result.
[0024] Optionally, the sending of the network configuration notification of the device to be configured to the user terminal comprises:
[0025] detecting whether the user terminal is in the same local area network as the home wireless network;
[0026] if the user terminal is in the same local area network as the home wireless network, sending a network configuration notification to the user terminal;
[0027] if the user terminal is not in the same local area network as the home wireless network, pushing the network configuration notification to one or more preset home group member control terminals through a cloud server.
[0028] Optionally, the sound wave signal comprises an encrypted network configuration request data packet of the device to be configured.
[0029] The verification of the sound wave signal comprises:
[0030] filtering noise from the sound wave signal and restoring the filtered sound wave signal into a digital stream signal;
[0031] clock recovery and bit synchronization are performed on the digital stream signal, and the digital stream signal after clock recovery and bit synchronization is decoded back into the original encrypted network configuration request data packet;
[0032] the encrypted network configuration request data packet is decrypted through a preset decryption module, corresponding plaintext data is obtained, and a check code is extracted from the plaintext data;
[0033] a check code is recalculated from the plaintext data excluding the check code;
[0034] the extracted check code and the recalculated check code are verified to determine whether the verification is passed.
[0035] Optionally, the verification of the extracted check code and the recalculated check code to determine whether the verification is passed comprises:
[0036] the extracted check code and the recalculated check code are compared;
[0037] if the extracted check code is consistent with the recalculated check code, it is determined that the verification is passed;
[0038] if the extracted check code is not consistent with the recalculated check code, it is determined that the verification is not passed, and the network configuration request data packet is discarded.
[0039] According to a second aspect of an embodiment of the present application, a device network configuration device of a smart home system is provided, and the device comprises:
[0040] The sound wave signal receiving module is configured to receive a sound wave signal sent by the device to be configured in a network through a sound wave channel; the sound wave signal is sent by the device to be configured in a network under a condition that a preset multi-modal trigger condition is met;
[0041] The sound wave signal verifying module is configured to verify the sound wave signal and extract device identification information of the device to be configured in a network in the sound wave signal after verification;
[0042] The device position determining module is configured to determine a spatial position of the device to be configured in a network based on the received sound wave signal;
[0043] The network configuration notification sending module is configured to send a network configuration notification of the device to be configured in a network to a user end, so that the user end generates an authorization instruction according to the network configuration notification; the network configuration notification comprises the device identification information and the spatial position;
[0044] The authorization instruction responding module is configured to respond to the authorization instruction sent by the user end and issue network configuration information to the device to be configured in a network, so that the device to be configured in a network connects to a network according to the network configuration information.
[0045] Optionally, the apparatus further comprises:
[0046] The environmental noise analyzing module is configured to acquire environmental noise and analyze spectral characteristics of the environmental noise on a plurality of predefined alternative sound wave communication frequency bands;
[0047] The target sound wave channel determining module is configured to select a frequency band with the highest signal-to-noise ratio from the plurality of predefined alternative sound wave communication frequency bands according to the spectral characteristics, and determine a target sound wave channel according to the frequency band;
[0048] The sound wave channel information sending module is configured to send sound wave channel information of the target sound wave channel to the device to be configured in a network, so that the device to be configured in a network sends the sound wave signal through the target sound wave channel.
[0049] Optionally, the preset multi-modal trigger condition comprises a light intensity change detected by a light-sensitive sensor on the device to be configured in a network and a movement of the device to be configured in a network detected by an acceleration sensor on the device to be configured in a network.
[0050] Optionally, the apparatus further comprises:
[0051] The authentication token sending module is configured to send an encrypted sound wave signal containing an authentication token to the device to be configured in a network after the device to be configured in a network connects to a network according to the network configuration information, so that a device connected to the network receives the encrypted sound wave signal and decrypts the encrypted sound wave signal to obtain the authentication token;
[0052] The authentication token verification module is configured to receive the authentication token returned by the device and verify the authentication token.
[0053] The access right granting module is configured to grant the corresponding network access right to the device after verification.
[0054] Optionally, the device location determination module comprises:
[0055] The initial coordinate determination submodule is configured to determine the time difference of the sound wave signal reaching different microphones in the microphone array, and determine the initial coordinates of the device to be configured with a network according to the time difference;
[0056] The heat map determination submodule is configured to determine the signal intensity of the sound wave signal at different microphones in the microphone array, and generate a signal intensity probability distribution heat map according to the signal intensity;
[0057] The coordinate heat map comparison submodule is configured to fuse and compare the initial coordinates with the signal intensity probability distribution heat map, and determine the spatial position of the device to be configured with a network according to the probability distribution result.
[0058] Optionally, the network configuration notification sending module comprises:
[0059] The local area network detection submodule is configured to detect whether the user terminal is in the same local area network as the home wireless network; if the user terminal is in 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 in the same local area network as the home wireless network, the network configuration notification is pushed to one or more preset home group member control terminals through a cloud server.
[0060] Optionally, the sound wave signal comprises an encrypted network configuration request data packet of the device to be configured with a network; and the sound wave signal verification module comprises:
[0061] The sound wave signal filtering submodule is configured to filter the sound wave signal to suppress noise, and restore the filtered sound wave signal to a digital stream signal;
[0062] The signal decoding submodule is configured to perform clock recovery and bit synchronization on the digital stream signal, and decode the digital stream signal subjected to clock recovery and bit synchronization back to the original encrypted network configuration request data packet;
[0063] The check code extraction submodule is configured to decrypt the encrypted network configuration request data packet through a preset decryption module, obtain corresponding plaintext data, and extract a check code from the plaintext data;
[0064] The check code calculation submodule is configured to recalculate a check code for the plaintext data excluding the check code.
[0065] The check code verification submodule is configured to verify the extracted check code and the recalculated check code, and determine whether the verification is passed.
[0066] Optionally, the check code verification submodule comprises:
[0067] The check code comparison unit is configured to compare the extracted check code with the recalculated check code, and determine that the verification is passed if the extracted check code is consistent with the recalculated check code, and determine that the verification is not passed if the extracted check code is inconsistent with the recalculated check code, and discard the network configuration request data packet.
[0068] According to a third aspect of embodiments of the present application, 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 network configuration method of the smart home system according to any one of the above embodiments.
[0069] According to a fourth aspect of embodiments of the present application, a computer readable storage medium is provided, wherein a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, the steps of the device network configuration method of the smart home system according to any one of the above embodiments are implemented.
[0070] The technical solutions provided by the embodiments of the present application can have the following beneficial effects:
[0071] The embodiment of the application discloses a device network configuration method, device and medium of a smart home system, which comprises the following steps: receiving a sound wave signal sent by a device to be configured through a sound wave channel; the sound wave signal is sent by the device to be configured under the condition that a preset multi-modal trigger condition is met; verifying the sound wave signal, and extracting device identification information of the device to be configured in the sound wave signal after verification; determining the spatial position of the device to be configured based on the received sound wave signal; sending a network configuration notification of the device to be configured to a user end, so that the user end generates an authorization instruction according to the network configuration notification; the network configuration notification comprises the device identification information and the spatial position; and in response to the authorization instruction sent by the user end, network configuration information is issued to the device to be configured, so that the device to be configured is connected to the network according to the network configuration information. The device is automatically woken up and the network configuration process is started through the multi-modal trigger condition, the user does not need any manual operation, the self-network configuration of the device is realized, and the network configuration convenience is improved. The spatial position of the device to be configured is calculated synchronously while the device verification is completed by using the received sound wave signal, the user intervention is reduced, and the automatic network configuration level and the network configuration efficiency of the smart home system device are improved. It can be regarded as an effective supplement of a new generation of mobile communication access network in an indoor Internet of Things scene, optimizes the initial access experience of the smart terminal in a complex home environment, and improves the reliability of mobile data communication services. BRIEF DESCRIPTION OF DRAWINGS
[0072] Figure 1 is a step flow chart of a device network configuration method of a smart home system provided by the embodiment of the application;
[0073] Figure 2 is a step flow chart of another device network configuration method of a smart home system provided by the embodiment of the application;
[0074] Figure 3 is a smart home system network configuration schematic diagram of a device network configuration method provided by the embodiment of the application;
[0075] Figure 4 is a network configuration encoding and decoding flow chart schematic diagram of a device network configuration method provided by the embodiment of the application;
[0076] Figure 5 is a device positioning flow chart schematic diagram of a device network configuration method provided by the embodiment of the application;
[0077] Figure 6 is a structure block diagram of a device network configuration device provided by the embodiment of the application. DETAILED DESCRIPTION
[0078] In order to make the above-mentioned purpose, features and advantages of the application more obvious and easy to understand, the application will be further described in detail in combination with the drawings and specific embodiments.
[0079] These existing solutions mainly achieve device network configuration through manual setting, rely on user manual triggering of the device to enter the network configuration mode (such as long-pressing a key), actively scanning a two-dimensional code or manually searching and connecting a device hotspot on a mobile terminal, and the interaction mode of "people finding devices" is cumbersome and affects the efficiency of device network connection.
[0080] One of the core ideas of the embodiments of the present application is to automatically wake up the device and start the network configuration process through a multi-modal trigger condition, so that the user does not need any manual operation, and the device can be automatically network configured, thereby improving the convenience of network configuration. By using the received sound wave signal, the spatial position is calculated synchronously while the device is verified, so that the user intervention is reduced and the automatic network configuration level and efficiency of the home intelligent system device are improved.
[0081] The embodiments of the present application can be applied to digital professional audio equipment, high-fidelity ultra-thin sound products, and digital broadcast television transmitting / receiving equipment. Through inductive network configuration and automatic positioning, the deployment and expansion of intelligent consumer devices such as home theaters and multi-room background music systems become extremely convenient.
[0082] Reference Figure 1 , a step flowchart of a device network configuration method of a smart home system provided by an embodiment of the present application is shown, and the method specifically includes the following steps:
[0083] Step 101, receiving a sound wave signal sent by a device to be network configured through a sound wave channel; the sound wave signal is sent by the device to be network configured under the condition that a preset multi-modal trigger condition is met;
[0084] The device to be network configured is an intelligent device that has network connection capability (such as Wi-Fi, Bluetooth) but has not yet been connected to a target local area network and needs to be network configured. The device to be network configured in the embodiments of the present application is equipped with a multi-modal sensor (such as a light-sensitive sensor and an accelerometer). When it is taken out of a packaging box (light change + acceleration change), it can autonomously determine the user's intention and automatically determine that the user is ready to use it. After the determination, instead of waiting, it actively broadcasts its "identity fingerprint" (encrypted network configuration request) through the sound wave channel.
[0085] Through a modified buzzer or loudspeaker, an encrypted and modulated sound wave signal is emitted, which contains its unique identifier (such as a MAC address) and a network configuration request. At the same time, an encryption key is preset to ensure that the "identity fingerprint" broadcasted by it cannot be forged.
[0086] The sound wave channel is a dedicated communication link between the intelligent device and the home control, which uses a specific frequency of sound wave as a carrier to transmit data in a preset communication protocol, and is a collection of physical channels and logical rules. Most of the noise (human voice, appliance running sound) in the home environment is concentrated in the low frequency. The embodiment of the present application selects high frequency sound wave as the carrier, which can naturally avoid the interference of most environmental noise, and provides a relatively clean physical environment for communication.
[0087] The sound wave signal is a structured sound wave designed for machine communication, which carries encrypted data and is complexly modulated. It is the information carrier for the entire non-sensing network configuration system. The digital device identity information is loaded onto the high frequency sound wave to form a physical signal through specific modulation and coding technology. The sound wave signal of the embodiment of the present application is generated by the main control MCU of the device to be configured in the network: including [frame header 0xAA55], [device type 0x01], [6-byte MAC address], [4-byte random number], [2-byte CRC16 check code], then encrypt the network configuration request data packet, and convert it into a sound wave signal through specific modulation and coding technology.
[0088] The smart home system of the embodiment of the present application includes a device to be configured in the network, a home intelligent control end and a user control end, uses the high frequency sound wave fingerprint (18-20kHz) containing the device ID emitted by the device to be configured in the network as the identity, analyzes the sound wave fingerprint by the microphone array of the home control (host / gateway), and connects the network through the user control end.
[0089] The preset multi-modal trigger condition includes the light intensity change detected by the light sensor on the device to be configured in the network and the movement of the device to be configured in the network detected by the acceleration sensor on the device to be configured in the network.
[0090] The high-confidence trigger for non-sensing network configuration is performed by fusing multi-modal information such as sound wave, vibration, light sensing, etc. when a new device is configured in the network. When the device is still in the packaging box, the device is in an ultra-low power sleep mode, at this time the accelerometer reading is stable, the ambient light is dark, the light sensor detects the change of light intensity when the user opens the packaging box, then the accelerometer detects the vector change after picking up the device, then the device is powered on and activates the periodic broadcast of its sound wave fingerprint. When the microphone of the intelligent control receives the sound wave fingerprint and successfully decodes it, the system records the light sensing and acceleration events before receiving the sound wave. If all the events are true, it is determined that it is a high-confidence new device network entry event, at this time a high-priority network configuration request is pushed to the user. If the three conditions cannot be met at the same time, it is determined as a false trigger or interference event, and no network configuration request is performed.
[0091] In the embodiment of the present application, the sending of the sound wave signal is autonomously triggered by the intelligent sensing system of the device to be configured. When the device to be configured detects a physical event sequence conforming to the preset logic through its built-in multi-modal sensor (such as a light-sensitive sensor and an accelerometer), typically a light intensity mutation and an acceleration vector change occurring in sequence when the device is taken out of the packaging box, the system determines that the user has a real network configuration intention, and automatically activates the sound wave emission module. This multi-modal triggering mechanism ensures that the sending of the sound wave signal originates from the real user behavior, rather than environmental interference or false triggering, thereby laying a solid foundation for realizing truly "unconscious" network configuration.
[0092] On this basis, the sound wave signal emitted by the device is an encrypted data packet carrying its unique identity information. The signal is processed by AES-128 encryption, Manchester coding and FSK modulation, and is broadcast in the form of high-frequency sound waves of 18-22 kHz. After the microphone array of the home smart central control captures this signal, it can not only decrypt the device identification to complete identity authentication, but also use the same signal for sound source positioning. This design enables a single sound wave signal to simultaneously realize device discovery, identity verification and spatial positioning, which constitutes the core technical feature of the unconscious network configuration of the present scheme.
[0093] Step 102, verifying the sound wave signal and extracting the device identification information of the device to be configured in the sound wave signal after verification;
[0094] Device identification information is a core data set used by the device to be configured to prove "who I am" and "I am legal" to the home smart central control. It is not just a simple MAC address, but a structured and secure device identity credential. Its essence is a set of data that can uniquely identify the device identity, and is encrypted and integrity checked for secure network configuration process.
[0095] In the embodiment of the present application, the home smart central control verifies the received sound wave signal, first performs band-pass filtering and automatic gain control through the signal processing unit, then detects specific frequencies using the Goertzel algorithm, completes FSK demodulation and uses the Manchester coding rule to realize clock synchronization and decoding, and restores the encrypted data packet. Then enter the security verification stage, use the pre-set AES-128 key to decrypt the data packet, and immediately perform CRC16 check code comparison on the plaintext data obtained by decryption, only after passing the verification, the data integrity and legality are confirmed.
[0096] After verification, the system accurately extracts the key device identification information from the decrypted plaintext, including device type, unique MAC address, and random number, and other core elements. These verified device identification information will become the basis for subsequent network configuration process, both for pushing the trusted notification containing device type and location to the user end, and as the basis for establishing the binding between device identity credentials and network access permissions, ensuring that only legitimate devices can enter the subsequent network configuration link.
[0097] Step 103, based on the received sound wave signal, determining the spatial position of the device to be configured in network;
[0098] In the embodiment of the application, based on the received sound wave signal, the spatial positioning of the device to be configured in network is realized by the microphone array synchronization. First, the small time difference of the sound wave signal arriving at each microphone unit in the array is accurately calculated, and the initial three-dimensional coordinates of the device are solved by using the Chan algorithm to construct a hyperboloid equation set.
[0099] At the same time, the system generates a signal strength probability distribution heat map combining the signal strength values received by each microphone, and performs confidence fusion analysis on the initial coordinates solved by the algorithm and the heat map: when the initial coordinates are located in the high probability area of the heat map, they are directly adopted, if they are located in the low probability area, the core area of the heat map is preferentially selected or weighted correction is performed, and finally the device spatial position with high confidence is output, so as to realize the room-level accurate positioning.
[0100] Step 104, sending the network configuration notification of the device to be configured in network to the user end, so that the user end generates an authorization instruction according to the network configuration notification; the network configuration notification includes the device identification information and the spatial position;
[0101] The authorization instruction is the final decision signal of the user on whether the device to be configured in network discovered by the system is allowed to access the home network. It is the key link connecting the automation system and the user's will in the entire no-sense network configuration process, ensuring that the network configuration process is intelligent and controllable. After the user confirms the network configuration notification issued by the home smart central control through the smart terminal APP, a digital command is generated, which allows the system to continue the subsequent network configuration operation.
[0102] In the embodiment of the application, after completing device verification and positioning, the home smart central control will actively send a structured network configuration notification to the user's mobile phone APP. The notification accurately contains the decrypted device identification information such as device type and MAC address, and the room-level position of the device determined by the sound wave positioning technology.
[0103] The network deployment notification sent to the user terminal includes the device identification information and the spatial position of the device to be deployed, thereby providing sufficient decision basis for the user, so that the user can accurately know "which device is deployed at which position" without on-site confirmation. The user can generate an authorization instruction by clicking the notification confirmation, thereby seamlessly converting the non-perception discovery into an authorized action, and realizing smooth transition from system automation to user decision.
[0104] Step 105, in response to the authorization instruction sent by the user terminal, network deployment information is sent to the device to be deployed, so that the device to be deployed is connected to the network according to the network deployment information.
[0105] The network deployment information is the core configuration data sent by the home intelligent central control to the device to be deployed after obtaining the user authorization, so that the device to be deployed can access the target wireless network. The network deployment information is essentially a set of data including network identity credentials and necessary configuration parameters, and is the key of the device "networking" intelligent body. The network deployment information usually includes the SSID of the target network, that is, the name of the home wireless network. The device needs to know which network to connect to, the password of the target network, that is, the access key of the wireless network. This is the information of the device through authentication, successful network access credentials, gateway DNS server, and the like, which is not limited by the embodiments of the present application.
[0106] In the embodiments of the present application, after receiving the authorization instruction sent by the user terminal, the home intelligent central control immediately sends the network deployment information to the device to be deployed through a wireless radio frequency channel. The information includes the SSID and password of the target network and other core credentials, and is transmitted through a high-reliability Wi-Fi or Bluetooth connection, effectively avoiding the defect that long data transmission through a sound wave channel is prone to errors.
[0107] After the device to be deployed successfully receives the network deployment information, the network module of the device to be deployed automatically uses the credentials to connect to the specified wireless network, completes identity authentication and network registration, and finally feeds back a connection success state to the home intelligent central control, thereby realizing complete conversion from the state of the device to be deployed to the online running state. This process is completely automated and the user does not need to perform any operation.
[0108] Reference Figure 2 Fig. 2 shows a step flowchart of a device network deployment method of another smart home system provided by the embodiments of the present application, wherein the preset multi-modal trigger condition includes a light intensity change detected by a light sensor on the device to be deployed and movement of the device to be deployed detected by an acceleration sensor on the device to be deployed. The method specifically includes the following steps:
[0109] Step 201, receiving a sound wave signal sent by a device to be deployed through a sound wave channel; the sound wave signal is sent by the device to be deployed under the condition that a preset multi-modal trigger condition is met;
[0110] In the embodiment of the present application, the sending of the sound wave signal is triggered autonomously by the intelligent sensing system of the device to be configured. When the device to be configured detects a physical event sequence conforming to the preset logic through its built-in multi-modal sensor (such as a light-sensitive sensor and an accelerometer), typically a light intensity mutation and an acceleration vector change occurring in sequence when the device is taken out of the packaging box, the system determines that the user has a real network configuration intention, and automatically activates the sound wave emission module. This multi-modal triggering mechanism ensures that the sending of the sound wave signal is derived from the real user behavior, rather than environmental interference or false triggering, thereby laying a solid foundation for realizing truly "unconscious" network configuration.
[0111] On this basis, the sound wave signal emitted by the device is an encrypted data packet carrying its unique identity information. The signal is processed by AES-128 encryption, Manchester coding and FSK modulation, and is broadcast in the form of high-frequency sound wave of 18-22 kHz. After the microphone array of the home smart central control captures the signal, it can not only decrypt the device identification to complete the identity authentication, but also use the same signal for sound source positioning. This design enables a single sound wave signal to simultaneously realize device discovery, identity verification and spatial positioning, which constitutes the core technical feature of the unconscious network configuration of the present scheme.
[0112] Referring to Figure 3 , a smart home system network configuration diagram of a device network configuration method of a smart home system provided by an embodiment of the present application is shown, Figure 3 The complete system architecture and workflow for realizing unconscious network configuration of smart devices in the embodiment of the present application are shown. It consists of three core parts: the device to be configured generates a network configuration request through the main control MCU, and the encrypted device information is transmitted upward by the sound wave generator after FSK modulation on the 19 kHz carrier; the home smart central control receives the sound wave signal through the microphone array, decodes and decrypts it through the signal processing unit and the digital signal processor, extracts the device information through the main control CPU, and pushes the notification to the user control end through the Wi-Fi / Bluetooth module; after the user clicks to confirm on the smart phone APP of the user control end, the central control is authorized to send the Wi-Fi SSID and password downward to the device end through the radio frequency channel, and finally the automatic connection of the device and the home wireless network is completed.
[0113] Step 202, verifying the sound wave signal, and extracting the device identification information of the device to be configured in the sound wave signal after verification;
[0114] In the embodiment of the present application, the home smart central control verifies the received sound wave signal, first passes through the signal processing unit to carry out band pass filtering and automatic gain control, then uses Goertzel algorithm to detect specific frequency, completes FSK demodulation and realizes clock synchronization and decoding by using Manchester coding rule, restores the encrypted data packet. Then enter the security verification stage, use the preset AES-128 key to decrypt the data packet, immediately after the plaintext data obtained by decryption is executed CRC16 check code comparison, only the verification passes to confirm the data integrity and legality.
[0115] After verification, the system accurately extracts the key device identification information from the decrypted plaintext, including device type, unique MAC address and random number and other core elements. These verified device identification information will become the basis for subsequent network configuration process, which is used to push the trusted notification containing device type and location to the user end, and also used as the basis for establishing device identity certificate and network access permission binding, to ensure that only legal devices can enter the subsequent network configuration link.
[0116] In some embodiments, the sound wave signal includes an encrypted network configuration request data packet of the device to be configured; the step 202 can include the following sub-steps:
[0117] Sub-step S11, filtering the sound wave signal to suppress noise, and restoring the filtered sound wave signal into a digital stream signal;
[0118] Filtering is the first key signal preprocessing operation of the home smart central control after receiving the original sound wave signal. The core purpose is to accurately separate the effective sound wave signal sent by the device from the mixed sound full of various environmental noise.
[0119] In the embodiment of the present application, the received sound wave signal is first subjected to band pass filtering, to suppress the common low frequency household appliance noise and medium 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. On the basis of filtering optimization, Goertzel algorithm is used to accurately detect the energy of specific FSK frequency points, to realize signal demodulation, and finally accurately restore the analog sound wave signal to a digital bit stream carrying device identity information, to prepare structured data for subsequent decryption verification.
[0120] Sub-step S12, clock recovery and bit synchronization are performed on the digital stream signal, and the digital stream signal subjected to clock recovery and bit synchronization is decoded back to the original encrypted network configuration request data packet;
[0121] Clock recovery and bit synchronization is a key step that the home intelligent central control must perform after demodulating the sound wave signal into a digital bit stream. Its purpose is to solve the micro clock frequency difference between the device and the receiving end central control, so as to accurately determine the start and end position of each bit data, and ensure that the data is correctly read.
[0122] In the embodiment of the application, clock recovery and bit synchronization are performed on the digital stream signal. Specifically, the start and end boundaries of each bit of data are accurately positioned by using the inherent bit intermediate level jump characteristic of Manchester coding, clock synchronization is achieved at both the transmitting and receiving ends, and the timing drift caused by device deviation is eliminated.
[0123] After completing the clock synchronization, the synchronized digital stream signal is decoded according to the Manchester coding rule, the synchronization clock component in the coding is removed, and the complete encrypted network configuration request data packet is reconstructed, thereby providing the original encrypted data with a structured structure for subsequent decryption operation.
[0124] In the step S13, the encrypted network configuration request data packet is decrypted by a preset decryption module, the corresponding plaintext data is obtained, and the check code is extracted from the plaintext data.
[0125] In the embodiment of the application, after the sound wave signal carrying the encrypted network configuration request is decoded, the data packet is decrypted using the same AES-128 key as that preset by the device end, and the plaintext data containing the device type, MAC address and random number is restored. Then, the CRC16 check code field calculated by the sending end is accurately extracted from the decrypted plaintext data structure, thereby providing a comparison reference for subsequent data integrity verification.
[0126] This decryption and check code extraction process constitutes the core link of security verification: the decryption operation ensures the confidentiality and authenticity of the device identity information, and the extraction of the check code provides a unique comparison basis for judging whether the data has been disturbed or tampered with in the sound wave transmission process, and the two together establish a double-judgment basis for the legality of the device.
[0127] In the step S14, a check code is recalculated for the plaintext data excluding the check code.
[0128] In the embodiment of the application, based on the decrypted plaintext data (containing the device type, MAC address and random number, and other key device identification information), the system recalculates the check code for all data contents excluding the original check code field that has been extracted, according to the same CRC16 algorithm specification as that of the sending end. By accurately comparing the independently generated check code with the received original check code, it can be effectively detected whether any bit change has occurred in the data in the sound wave transmission process due to channel interference or transmission error, thereby providing an objective technical basis for judging the legality of the data packet.
[0129] Sub-step S15, verifying the extracted check code and the recalculated check code to determine whether the verification is passed.
[0130] In the embodiment of the present application, the original check code extracted from the received data packet is compared with the locally recalculated check code. If the two are completely consistent, it is confirmed that the verification is passed, proving that the data is kept intact and not interfered in the whole process of acoustic wave transmission. If there is any difference in the check codes, it is immediately determined that the verification fails, indicating that data tampering or channel error occurs in the transmission process. The system automatically discards the data packet and waits for subsequent broadcast of the device, and through this strict integrity verification mechanism, it is ensured that only completely reliable data can enter the subsequent network configuration process.
[0131] Through the four-layer processing flow of "signal layer filtering-coding layer clock synchronization-data layer decryption-integrity verification of check layer", a progressive verification structure is formed. This layered design enables the system to exclude the risks of environmental noise, timing misplacement, illegal devices and data tampering at different levels, greatly improving the reliability of the network configuration process.
[0132] In some embodiments, the step S15 can include the following sub-steps:
[0133] Sub-step S151, comparing the extracted check code and the recalculated check code;
[0134] Sub-step S152, if the extracted check code is consistent with the recalculated check code, it is determined that the verification is passed; if the extracted check code is not consistent with the recalculated check code, it is determined that the verification is not passed, and the network configuration request data packet is discarded.
[0135] In the embodiment of the present application, in the integrity verification phase, the original check code extracted by the receiving end is compared with the locally recalculated check code, and the consistency test is used to establish the basis for determining the legitimacy of the data packet. Only when the two sets of check codes are completely matched, it is confirmed that the data has withstood the test of the transmission environment and has not been tampered with, and the verification is passed. Once any difference is found, it is immediately determined that the verification fails, and the abnormal data packet is automatically discarded. Through this zero-tolerance mechanism, it is ensured that the subsequent network configuration process is only based on complete and reliable data.
[0136] This comparison mechanism constitutes the final decision link of data integrity verification: if the verification is successful, the device identity information extraction process is started; if the verification fails, the data packet discard and waiting for retransmission mechanism is triggered, which not only guarantees the safety 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.
[0137] Reference Figure 4, and a network coding and decoding flowchart of a device network configuration method of a smart home system provided by an embodiment of the present application is shown, Figure 4 The complete encoding and decoding flow of the sound wave communication in the embodiment of the present application is shown, which is divided into two core parts of a transmitting end and a receiving end. The flow of the transmitting end (the device end to be configured in the network) starts from the assembly of the original data structure (including the frame header, the device type, the MAC address, the random number and the CRC check code), and after the data packet is securely encrypted by the AES-128 encryption module, the Manchester coding and FSK modulation (using 10.5 kHz and 18.8 kHz double frequency points) are sequentially performed, and finally the physical signal transmission is completed by the sound wave generator. The whole process builds a complete uplink from data encapsulation, secure encryption to sound wave modulation, ensuring the confidentiality and reliability of the device identity information in the transmission.
[0138] The receiving end (the home control end) builds a corresponding signal processing chain: the sound wave signal collected by the microphone is subjected to band-pass filtering (cutoff frequency 18 kHz) and automatic gain control, and then subjected to frequency detection and FSK demodulation by the Goertzel algorithm, and the clock recovery and bit synchronization are completed by using the Manchester coding characteristics, so that the sound wave signal is accurately restored to a digital data packet. Finally, the data packet is subjected to AES-128 decryption and CRC check double verification, and only the valid data passing the integrity check will be adopted by the system, forming a complete analysis path from the physical signal to the reliable data. The transmitting end ensures the safe transmission of data by encryption and modulation, and the receiving end ensures the complete recovery of data by signal processing and verification mechanism, which together constitute the technical basis for device non-sensing network configuration.
[0139] The transmitting end is completed by the device main control MCU, which generates the original data packet, calls the encryption algorithm, and performs encoding. The sound wave generator is the last step in this process, which is responsible for receiving the electrical signal and converting it into a physical sound wave. The receiving end is completed by the digital signal processor in the home control, which is good at performing a large number of digital operations for sound wave signal processing. The random number of the transmitting end is usually generated by a hardware random number generator or a hardware-based pseudo-random number generator. The AES-128 key of the transmitting end encoding flow encryption module is pre-set in the production link, which is generally in the form of one machine one secret, and the unique key is separately programmed for each device on the production line, and the key is pre-registered to the cloud management platform of the device together with the MAC address of the device for subsequent network configuration.
[0140] The transmitting end coding process needs to be coded and modulated after being encrypted by the encryption module, Manchester coding and FSK modulation. Encryption is to solve the information security problem and ensure that the data content cannot be understood even if it is intercepted. Coding is to make the digital signal more suitable for transmission in the physical channel, which belongs to the data transmission problem. Modulation is to load the digital signal onto a high-frequency sound wave for transmission and reception. The three belong to indispensable and alternative parts of the communication link. Manchester coding has a level jump in every bit of data. The receiving end can use this feature to synchronize the clock signal, reduce the risk of decoding errors caused by small time differences between devices, and avoid the DC component offset of the signal, ensuring that the number of 0 and 1 in the data stream is basically balanced. FSK modulation uses two different frequencies to transmit data, so if one frequency is temporarily disturbed, the other frequency may still be clear, improving reliability.
[0141] The receiving end is just the opposite of the transmitting end. First of all, the DSP demodulates and decodes: the original signal after ADC sampling is first filtered by a band-pass filter to filter out most of the environmental noise, and then the Goertzel algorithm is used to detect the specific "0" and "1" frequencies contained in each data frame, thereby restoring the sound wave signal to a digital stream signal. Then use the jump rule of Manchester coding to accurately locate the start and end position of each bit in the digital stream, complete clock synchronization, and decode the encoded digital stream back to the original encrypted data packet; then decrypt and verify: use the same pre-set AES-128 key to decrypt the received data packet to obtain the plaintext (including device type, MAC address, random number), and then extract the CRC16 check code calculated by the transmitting end from the decrypted plaintext. The receiving end recalculates the CRC16 of the plaintext data excluding the check code, and compares the check codes of the two. If they are completely consistent, there is no error in the transmission process. If they are not consistent, there is an error or interference in the transmission process, and the packet data is directly discarded, waiting for the next broadcast of the device. Only after the CRC check is passed, the home control will consider the packet data legal, and then read the MAC information in it for subsequent push notification and network configuration process execution.
[0142] In step 203, based on the received sound wave signal, the spatial position of the device to be configured is determined.
[0143] In the embodiment of the application, based on the received sound wave signal, the spatial positioning of the device to be configured is realized by a microphone array. First, the small time difference of the sound wave signal arriving at each microphone unit in the array is accurately calculated, and the Chan algorithm is used to construct a hyperboloid equation set to solve the initial three-dimensional coordinates of the device.
[0144] Meanwhile, the system generates a signal strength probability distribution heat map in combination with the signal strength values received by each microphone, and performs confidence fusion analysis on the initial coordinates calculated by the algorithm and the heat map: when the initial coordinates are located in a high-probability area of the heat map, they are directly adopted; if they are located in a low-probability area, the core area of the heat map is preferentially selected or weighted correction is performed, and finally a device spatial position with high confidence is output, so that room-level accurate positioning is realized.
[0145] In some embodiments, the step 203 can include the following sub-steps:
[0146] Sub-step S21, determining the time difference of the sound wave signal arriving at different microphones in the microphone array, and determining the initial coordinates of the device to be networked according to the time difference;
[0147] Sub-step S22, determining the signal strength of the sound wave signal at different microphones in the microphone array, and generating a signal strength probability distribution heat map according to the signal strength;
[0148] Sub-step S23, performing fusion comparison on the initial coordinates and the signal strength probability distribution heat map, and determining the spatial position of the device to be networked according to the probability distribution result.
[0149] The signal strength probability distribution heat map is a graphical data model for visualizing and assisting in determining the most likely position of the device to be networked. It directly represents the probability of the device being located at a certain point in space through color depth.
[0150] In the embodiments of the present application, based on the spatial propagation characteristics of the sound wave signal, the system first calculates the time difference of the signal arriving 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. Then, by collecting the signal strength values received by each microphone, a signal strength probability distribution heat map is generated using a spatial interpolation algorithm to directly display the existence probability of the device in different areas through color gradient.
[0151] In the data fusion stage, the initial coordinates calculated by the algorithm are analyzed in coordination with the probability distribution of the heat map: if the initial coordinates are located in a high-confidence area of the heat map, they are directly adopted; if they are located in a low-probability area, the core area of the heat map is preferentially selected or weighted correction is performed. This dual-mechanism fusion positioning method not only retains the accuracy advantage of time-of-arrival positioning, but also compensates for environmental reflection interference through signal strength distribution, and finally outputs a device spatial position with high reliability.
[0152] Referring to Figure 5 Fig. 1 shows a device positioning flowchart of a device network configuration method of an intelligent home system provided by an embodiment of the present application, Figure 5The complete implementation path of the device positioning function of the embodiment of the application is shown. The system captures the sound wave signal emitted by the device to be configured in the network by the M1-M4 microphone array of the home intelligent central control, then calculates the three-dimensional coordinates of the device by the Chan positioning algorithm, and synchronously generates a signal strength probability distribution heat map to calibrate the confidence. After obtaining the accurate coordinates verified by the heat map, the home intelligent central control combines the pre-stored home house type map data to comprehensively judge the specific room position of the device, and finally pushes the structured information of "finding the new device in the xx room" to the user's mobile phone APP, completing the whole automatic processing from sound wave signal collection to room-level positioning push.
[0153] In step 204, a network configuration notification of the device to be configured in the network is sent to the user end, so that the user end generates an authorization instruction according to the network configuration notification; the network configuration notification includes the device identification information and the spatial position;
[0154] In the embodiment of the application, after completing device verification and positioning, the home intelligent central control actively sends a structured network configuration notification to the user's mobile phone APP. The notification accurately includes the decrypted device type, MAC address and other device identification information, and the room-level position of the device determined by the sound wave positioning technology. The network configuration notification including the device identification information and the spatial position of the device to be configured in the network is sent to the user end, providing sufficient decision basis for the user, so that the user can accurately know "what kind of device is in which place" waiting for network configuration without on-site confirmation. The user can generate an authorization instruction by clicking the notification confirmation, so as to seamlessly convert the non-perception discovery into an authorized action, realizing the smooth transition from system automation to user decision.
[0155] In some embodiments, the step 204 can include the following sub-steps:
[0156] In sub-step S31, it is detected whether the user end is in the same local area network as the home wireless network.
[0157] In sub-step S32, if the user end is in the same local area network as the home wireless network, a network configuration notification is sent to the user end.
[0158] In sub-step S33, if the user end is not in the same local area network as the home wireless network, the network configuration notification is pushed to one or more pre-set home group member control ends through a cloud server.
[0159] In a home, an office or a building, multiple computers, printers, smart phones, smart TVs and other devices are connected together, and can share files and printers with each other. This small network composed of these devices is called a local area network, which is usually limited to a small geographical area, such as a home, a classroom or an office building.
[0160] The user clicks to confirm and then connects to the network. Here, "user confirmation" is not a traditional "user active operation", but a lightweight "authorization" step after passive discovery. The essential difference is that the traditional user needs to actively find the device according to the network configuration process, and then find the "code scanning" or button "function" or device list. The embodiment of the application is automatically discovered by the system, and the user is only required to make a simple decision through the system-level push notification interruptive notification. Remote authorization can be supported, for example, the system can determine whether the user is at home by detecting whether the user's mobile phone and the home WIFI are in the same network. When it is detected that the user is not at home, a notification is sent to the APP of all family members (or only the administrator). When a member makes an "authorization" operation, the network configuration process is triggered, and a timeout automatic rejection mechanism is set. In addition, a visitor mode (such as a temporary authorization code without real-time confirmation of the homeowner) and a trusted device whitelist can also be set by the administrator.
[0161] In the embodiment of the application, the network environment of the user terminal device is first detected. When it is confirmed that it is in the same local area network as the home wireless network, a local communication link is directly established to send a network configuration notification, realizing low-delay instant interaction. This design fully guarantees the real-time operation of the user at home. When it is detected that the user is in an external network, the system automatically switches to a cloud push mode, and routes the network configuration notification to the control terminal of all preset family members. This dual-mode communication architecture not only solves the problem of device authorization when the homeowner is not at home, but also improves the response efficiency of the network configuration request through the group notification mechanism, and sets the ability boundary of remote management for the system.
[0162] Step 205, in response to the authorization instruction sent by the user terminal, network configuration information is sent to the device to be configured, so that the device to be configured connects to the network according to the network configuration information.
[0163] In the embodiment of the application, after the home smart central control receives the authorization instruction sent by the user terminal, the network configuration information is immediately sent to the device to be configured through a wireless radio frequency channel. The information includes core credentials such as the SSID and password of the target network, and is transmitted through a high-reliability Wi-Fi or Bluetooth connection, effectively avoiding the defect that long data is prone to error in sound wave channel transmission. After the device to be configured successfully receives the network configuration information, it automatically calls its network module to connect to the specified wireless network using these credentials, completes identity authentication and network registration, and finally feeds back the connection success status to the home smart central control, realizing the complete conversion from the device to be configured to the online running state. This process is completely automated and the user does not need to perform any operation.
[0164] Step 206, obtaining environmental noise and analyzing the spectral characteristics of the environmental noise on a plurality of predefined alternative sound wave communication frequency bands;
[0165] Step 207, selecting a frequency band with the highest signal-to-noise ratio from the plurality of predefined alternative sound wave communication frequency bands according to the spectrum characteristics, and determining a target sound wave channel according to the frequency band;
[0166] Step 208, sending sound wave channel information of the target sound wave channel to the device to be networked, so that the device to be networked transmits the sound wave signal through the target sound wave channel.
[0167] The sound wave communication frequency band is a specific sound wave frequency range specially used for transmitting data between the smart device and the home control. Selecting which frequency band is a core decision in the entire system design, which is directly related to the reliability, concealment and anti-interference ability of communication.
[0168] The spectrum characteristics are the energy distribution of the signal at different frequency components revealed after mathematical analysis (usually Fourier transform) of the sound signal.
[0169] The signal-to-noise ratio is the ratio between the strength of the useful signal and the strength of the background noise. The signal refers to the target signal that is intended to be received. The noise refers to the strength of all unwanted interference signals in the same channel, including human voice, household appliance noise, and other environmental noise. The ratio is the ratio of the two.
[0170] The microphone array first performs a period of noise sampling before listening to the device sound wave, and then the system analyzes the spectrum characteristics of the environmental noise in real time (for example, the low-frequency noise of the sweeper, the medium-frequency interference of someone speaking, and the high-frequency noise of the television), and through the protocol preset multiple backup frequency band pairs, the system automatically selects the frequency band with the lowest environmental noise and the highest signal-to-noise ratio as the current communication channel. In the environment with poor signal-to-noise ratio, the system can automatically downgrade from high-order modulation (such as FSK) to more robust modulation (such as OOK) and reduce the data transmission rate, in order to obtain reliability.
[0171] In the embodiment of the present application, a dynamic and adaptive sound wave communication channel selection mechanism is constructed. First, the environmental noise samples are collected through the microphone array, and real-time spectrum analysis is performed on a plurality of predefined alternative sound wave communication frequency bands to accurately identify the degree of interference of each frequency band by environmental noise. Based on the spectrum analysis result, the system automatically selects the frequency band with the optimal signal-to-noise ratio as the target sound wave channel to form the channel decision. Then, the sound wave channel information is issued to the device to be networked through the established communication link, guiding the device to be networked to use the optimal channel to transmit the sound wave signal, so as to always maintain the communication quality and reliability in the complex home noise environment.
[0172] In some embodiments, the method further comprises the following steps:
[0173] After the to-be-networking device connects the network according to the networking information, an encrypted sound wave signal containing an authentication token is sent to the to-be-networking device, so that the device connected to the network receives the encrypted sound wave signal, and the encrypted sound wave signal is decrypted to obtain the authentication token; the authentication token returned by the device is received, and the authentication token is verified; after verification, the device is granted corresponding network access permission.
[0174] The authentication token is an electronic certificate used to prove the identity, permission and access qualification of a user or a device. It is like a door access card, an electronic key or a one-time digital password in the real world. The holder can obtain authorization without repeatedly presenting the core secret (such as the master password) in a specific scene and time. The token usually has a life cycle, which can be a few minutes, a few hours or one-time.
[0175] In addition, the embodiment of the application can also play a special encrypted sound wave containing a one-time key through a sound box (or a loudspeaker) after the to-be-networking device connects the network, and if the new device has a microphone, the final complete permission to activate the network can be obtained only after the sound wave is correctly received and decrypted.
[0176] In the embodiment of the application, a secondary security authentication mechanism based on sound wave communication is constructed. After the device completes the primary network connection, the home intelligent control center sends an authentication token containing a one-time key to the device through an encrypted sound wave channel, and establishes a device presence proof by using the physical space transmission characteristics of the sound wave. The device end needs to successfully receive and decrypt the sound wave signal to obtain the token, and then transmits it back to the control center through the established network connection to complete the verification. This dual-channel verification mode of sound wave transmission and network transmission ensures that only the legal device that passes the verification can obtain the complete network access permission, effectively prevents logical privilege escalation attacks, and realizes the fine management of device access permission.
[0177] The method comprises the following steps: receiving a sound wave signal sent by a device to be commissioned through a sound wave channel; the sound wave signal is sent by the device to be commissioned under the condition that a preset multi-modal trigger condition is met; verifying the sound wave signal, and extracting device identification information of the device to be commissioned in the sound wave signal after verification; determining a spatial position of the device to be commissioned based on the received sound wave signal; sending a commissioning notification of the device to be commissioned to a user end, so that the user end generates an authorization instruction according to the commissioning notification; the commissioning notification comprises the device identification information and the spatial position; and in response to the authorization instruction sent by the user end, and issuing commissioning information to the device to be commissioned, so that the device to be commissioned connects to a network according to the commissioning information. Through the multi-modal trigger condition, the device is automatically awakened and the commissioning process is started, the user does not need any manual operation, the self-commissioning of the device is realized, and the convenience of commissioning is improved. The spatial position is calculated synchronously while the device verification is completed by using the received sound wave signal, the automation and efficiency of the automatic commissioning of the home intelligent system device are greatly improved. It can be considered as an effective supplement of a new generation of mobile communication access network in an indoor Internet of Things scene, optimizes the initial access experience of the intelligent terminal in a complex home environment, and improves the reliability of mobile data communication services.
[0178] It should be noted that, for the method embodiments, in order to simply describe, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited by the order of the described actions, because according to the embodiments of the present application, certain steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present application.
[0179] Reference Figure 6 , a structure block diagram of a device commissioning apparatus of a smart home system provided by the embodiments of the present application is shown, the apparatus comprises:
[0180] The sound wave signal receiving module 301 is used for receiving a sound wave signal sent by a device to be commissioned through a sound wave channel; the sound wave signal is sent by the device to be commissioned under the condition that a preset multi-modal trigger condition is met;
[0181] The sound wave signal verification module 302 is used for verifying the sound wave signal, and extracting device identification information of the device to be commissioned in the sound wave signal after verification;
[0182] The device position determination module 303 is used for determining a spatial position of the device to be commissioned based on the received sound wave signal;
[0183] The network configuration notification sending module 304 is configured to send a network configuration notification of the device to be configured to a user terminal, so that the user terminal generates an authorization instruction according to the network configuration notification; the network configuration notification comprises the device identification information and the spatial position;
[0184] The authorization instruction response module 305 is configured to respond to the authorization instruction sent by the user terminal, and send network configuration information to the device to be configured, so that the device to be configured connects to the network according to the network configuration information.
[0185] In some embodiments, the apparatus further comprises:
[0186] The environmental noise analysis module is configured to acquire environmental noise and analyze spectral characteristics of the environmental noise on a plurality of pre-defined alternative sound wave communication frequency bands;
[0187] The target sound wave channel determination module is configured to select a frequency band with the highest signal-to-noise ratio from the plurality of pre-defined alternative sound wave communication frequency bands according to the spectral characteristics, and determine a target sound wave channel according to the frequency band;
[0188] The sound wave channel information sending module is configured to send sound wave channel information of the target sound wave channel to the device to be configured, so that the device to be configured sends the sound wave signal through the target sound wave channel.
[0189] In some embodiments, the pre-set multi-modal trigger condition comprises a change in light intensity detected by a light-sensitive sensor on the device to be configured and movement of the device to be configured detected by an acceleration sensor on the device to be configured.
[0190] In some embodiments, the apparatus further comprises:
[0191] The authentication token sending module is configured to send an encrypted sound wave signal containing an authentication token to the device to be configured after the device to be configured connects to the network according to the network configuration information, so that a device connected to the network receives the encrypted sound wave signal and decrypts the encrypted sound wave signal to obtain the authentication token;
[0192] The authentication token verification module is configured to receive the authentication token returned by the device and verify the authentication token;
[0193] The access permission granting module is configured to grant the corresponding network access permission to the device after verification.
[0194] In some embodiments, the device position determination module 303 comprises:
[0195] An initial coordinate determination submodule is configured to determine a time difference of arrival of the sound wave signal at different microphones in the microphone array, and determine an initial coordinate of the device to be configured based on the time difference;
[0196] A heat map determination submodule is configured to determine signal intensity of the sound wave signal at different microphones in the microphone array, and generate a signal intensity probability distribution heat map based on the signal intensity;
[0197] A coordinate heat map comparison submodule is configured to fuse and compare the initial coordinate with the signal intensity probability distribution heat map, and determine a spatial position of the device to be configured based on a probability distribution result.
[0198] In some embodiments, the configuration notification sending module 304 comprises:
[0199] A local area network detection submodule is configured to detect whether the user terminal is in the same local area network as the home wireless network, and if so, send a configuration notification to the user terminal, and if not, push the configuration notification to one or more preset home group member control terminals through a cloud server.
[0200] In some embodiments, the sound wave signal comprises an encrypted configuration request data packet of the device to be configured; and the sound wave signal verification module 302 comprises:
[0201] A sound wave signal filtering submodule is configured to filter and suppress noise of the sound wave signal, and restore the filtered sound wave signal into a digital stream signal;
[0202] A signal decoding submodule is configured to perform clock recovery and bit synchronization on the digital stream signal, and decode the digital stream signal after clock recovery and bit synchronization back into the original encrypted configuration request data packet;
[0203] A check code extraction submodule is configured to decrypt the encrypted configuration request data packet through a preset decryption module, obtain corresponding plaintext data, and extract a check code from the plaintext data;
[0204] A check code calculation submodule is configured to recalculate a check code from the plaintext data excluding the check code;
[0205] A check code verification submodule is configured to verify the extracted check code and the recalculated check code, and determine whether the verification is passed.
[0206] In some embodiments, the check code verification submodule comprises:
[0207] The check code comparison unit is configured to compare the extracted check code with the recalculated check code; if the extracted check code is consistent with the recalculated check code, it is determined that the verification is passed; if the extracted check code is inconsistent with the recalculated check code, it is determined that the verification is not passed, and the network configuration request data packet is discarded.
[0208] For the device embodiment, it is basically similar to the method embodiment, so it is described more simply, and the relevant part can refer to the part of the method embodiment.
[0209] The embodiment of the application further provides an electronic device, comprising a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program is executed by the processor to realize each process of the device network configuration method of the smart home system and achieve the same technical effect, and details are not repeated here.
[0210] The embodiment of the application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize each process of the device network configuration method of the smart home system and achieve the same technical effect, and details are not repeated here.
[0211] It should be noted that in this paper, the term "including", "containing" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0212] In addition, it should be noted that the scope of the method and device in the embodiment of the application is not limited to the order of the functions shown or discussed, and can also include the functions performed in a substantially simultaneous manner or in the opposite order according to the functions involved, for example, the described method can be performed in an order different from the described order, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.
[0213] Those skilled in the art can clearly understand the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, also can be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application essentially or say the part of contribution to the prior art can be embodied in the form of software product, the computer software product is stored in a storage medium (such as ROM / RAM, disk, optical disk), including a plurality of instructions to make a terminal (may be a mobile phone, computer, server, air conditioner, or network equipment, etc.) executes the method described in various embodiments of the present application.
[0214] The embodiments of the present application are described above in conjunction with the drawings, but the present application is not limited to the above-mentioned specific embodiments, the above-mentioned specific embodiments are only illustrative, but not restrictive, those skilled in the art can make many forms under the inspiration of the present application without departing from the purpose of the present application and the scope protected by the claims, all of which belong to the protection of the present application.
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; A network configuration notification for the device to be configured is sent 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 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 configured on the network, so that the device to be configured on the network 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