Wireless connection method and system for acoustic wave encryption pairing of conference machine networks
The wireless connection method of acoustic wave encryption pairing realizes the automated, convenient and secure networking of wireless devices, solves the problems of insufficient convenience and security of wireless network distribution in existing technologies, and is suitable for smart devices and Internet of Things devices.
Patent Information
- Application Number
- CN202510323460.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-19
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-03-19
AI Technical Summary
Existing wireless network distribution technology has shortcomings in automation, convenience and security, especially in temporary meeting environments where it is difficult to achieve efficient and secure connections between multiple devices.
It uses a wireless connection method that uses acoustic wave encryption pairing. It obtains the AP hotspot name and password of the host device, converts them into encoded audio signals, and uses spectrum analysis and frequency character mapping to achieve wireless networking. It supports automatic retry and fault recovery.
It realizes automatic network configuration without manual input of Wi-Fi configuration information, improves user experience and system compatibility, reduces connection failure rate, and is suitable for smart devices and IoT devices.
Smart Images

Figure CN119854788B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless connection of conference machine networks, and in particular to a wireless connection method and system for acoustic wave encryption pairing of conference machine networks. Background Art
[0002] Currently, the main wireless network configuration technologies on the market include Bluetooth pairing, QR code scanning, and Wi-Fi Direct. These methods offer advantages in specific scenarios, but most rely on complex setup processes or additional hardware support, which limits their application. For example, Bluetooth is suitable for connecting devices over short distances, but is susceptible to bandwidth and stability limitations when multiple devices are connected simultaneously. While QR code scanning is simple and intuitive, it is significantly affected by lighting conditions and struggles to adapt to highly dynamic environments. Wi-Fi Direct typically requires users to manually enter a password, which increases the complexity of manual operation and can easily lead to connection failures due to input errors, impacting device networking efficiency.
[0003] However, existing wireless network configuration technologies still face shortcomings in automation, convenience, and security, particularly in achieving efficient and secure multi-device connections in ad hoc meeting environments. Traditional methods struggle to simultaneously meet the requirements of minimal human intervention, high security, and high compatibility, reducing the efficiency of wireless collaboration between devices. Summary of the Invention
[0004] In order to improve the efficiency of wireless collaboration between devices, the present application provides a wireless connection method and system for acoustic wave encryption pairing of conference machine networks.
[0005] The above-mentioned invention objective of this application is achieved through the following technical solutions:
[0006] A wireless connection method for acoustic wave encryption pairing for a conference machine network, the wireless connection method for acoustic wave encryption pairing for a conference machine network comprising:
[0007] Get the AP hotspot name and AP hotspot password of the host device;
[0008] Converting the AP hotspot name and the AP hotspot password into a character string in a preset format, and converting the character string into a coded audio signal based on a sound wave coding algorithm;
[0009] Playing the encoded audio signal using the host device, obtaining the encoded audio signal recorded by the slave device, and performing spectrum analysis on the encoded audio signal using a fast Fourier transform algorithm to obtain a spectrum analysis result;
[0010] Extracting the corresponding sine wave frequency from the spectrum analysis result, and decoding the sine wave frequency into the AP hotspot name and the AP hotspot password based on a preset frequency character mapping relationship;
[0011] The slave device connects to the wireless AP created by the host device based on the AP hotspot name and the AP hotspot password. After the connection is successful, the slave device sends a networking confirmation message to the host device to complete the wireless networking.
[0012] This technical solution enables automatic Wi-Fi network configuration without manual input of Wi-Fi configuration information, effectively improving the user experience. It is particularly suitable for scenarios such as screenless devices, multi-device collaborative connectivity, and automated networking of smart devices. Compared to traditional Wi-Fi Direct, Bluetooth network configuration, or QR code scanning methods, this method does not rely on additional hardware. Only a speaker and microphone are required for secure and efficient wireless networking, significantly improving system compatibility and application scope. Furthermore, this solution utilizes a pre-defined frequency character mapping and CRC checksum mechanism to ensure the integrity and reliability of Wi-Fi configuration information transmitted via acoustic waves. It also supports automatic retry and fault recovery, reducing connection failures due to signal interference or data loss, and improving the success rate and stability of wireless networking. Without the need for additional hardware support such as NFC and QR code scanning, it can be directly integrated into devices such as smart conferencing systems, smart homes, and the Industrial Internet of Things, reducing system complexity and deployment costs. Furthermore, batch audio broadcasting improves the efficiency of connecting multiple devices simultaneously, reduces manual intervention, and makes device networking more efficient and convenient.
[0013] In a preferred example, the present application may be further configured as follows: converting the AP hotspot name and the AP hotspot password into a character string in a preset format includes:
[0014] Merging the AP hotspot name and the AP hotspot password using a preset identifier format to obtain a merged string, wherein the identifier format includes a first field for storing the AP hotspot name and a second field for storing the AP hotspot password, and the first field and the second field are separated by a preset separator;
[0015] Performing Base64 encoding on the combined string to obtain an encoded string;
[0016] A cyclic redundancy check algorithm is used to calculate a CRC check value of the encoded character string, and the CRC check value is appended to the encoded character string to generate a character string in the preset format.
[0017] By adopting the above technical solution, the security, stability and parsability of AP configuration information are effectively improved through structured data organization, Base64 encoding to enhance compatibility, and CRC verification to ensure data integrity. It is particularly suitable for application scenarios such as wireless network automatic configuration, wireless connection of smart devices, and networking of IoT devices, improving the accuracy of data transmission and reducing the failure rate of network configuration.
[0018] In a preferred example, the present application may be further configured as follows: calculating the CRC check value of the encoded character string using a cyclic redundancy check algorithm includes:
[0019] A generator polynomial is selected according to a preset CRC standard, where the generator polynomial is a fixed-order binary polynomial;
[0020] According to the bit length of the generator polynomial, padding bits of corresponding length are added to the end of the encoded character string to generate an extended encoded character string;
[0021] A bit-by-bit or byte-by-byte binary division operation is performed on the extended code string according to the generating polynomial, and XOR is used to calculate the remainder during the calculation process. After all data bits are processed, the final calculated remainder is taken as the CRC check value.
[0022] By adopting the above technical solution, an appropriate fixed-order binary polynomial is selected based on the preset CRC standard, ensuring that the CRC checksum calculation complies with international standards and improving the versatility and compatibility of data verification. Furthermore, based on the bit length of the selected generator polynomial, padding bits of a corresponding length are appended to the end of the encoded string to ensure that the data structure conforms to the CRC calculation rules, thereby ensuring the integrity of the verification process. Furthermore, binary division is used to calculate the CRC checksum value, and XOR is used for remainder calculation during the calculation process to ensure efficient and accurate data verification. This allows for rapid error detection and correction during data transmission. If bit errors occur, the CRC value can be recalculated and compared to ensure data integrity and correctness.
[0023] In a preferred example, the present application may be further configured as follows: converting the character string into a coded audio signal based on a sound wave coding algorithm includes:
[0024] Parsing the character string, extracting each character in turn, and converting each character into a corresponding numerical code;
[0025] Based on a preset character frequency mapping relationship, the numerical code is converted into a corresponding sine wave frequency, and a corresponding sine wave signal is generated;
[0026] The sine wave signal is modulated, and the modulation includes controlling the amplitude, phase or frequency of the sine wave to generate the encoded audio signal.
[0027] By adopting the above technical solution, the character string is parsed, each character is extracted in turn, and converted into a corresponding numerical code, ensuring that the character data can be standardized and providing accurate input for subsequent frequency mapping. Based on the preset character-frequency mapping relationship, the numerical code is converted into a unique corresponding sine wave frequency, and a stable sine wave signal is generated to ensure that the data can be efficiently transmitted through the audio channel. In addition, by modulating the amplitude, phase or frequency of the sine wave signal, the transmission quality of the audio signal is optimized and the anti-interference ability is improved, so that the encoded audio signal can maintain good recognizability and decoding accuracy in different devices and environments.
[0028] In a preferred example, the present application may be further configured as follows: extracting the corresponding sine wave frequency from the spectrum analysis result includes:
[0029] Perform data screening on the spectrum analysis results to remove noise frequency components whose amplitudes are lower than the set amplitude threshold to obtain filtered spectrum data;
[0030] In the filtered spectrum data, the main frequency component is detected, and the peak frequency corresponding to the main frequency component is extracted. The sine wave frequency corresponding to the peak frequency is determined through a preset symbol-frequency mapping relationship.
[0031] By employing this technical solution, the spectrum analysis results are filtered to remove noise frequency components with amplitudes below a set threshold, effectively reducing the interference of ambient noise on signal analysis and ensuring the purity and stability of the spectrum data. Furthermore, the dominant frequency component is detected in the filtered spectrum data, and the corresponding peak frequency is extracted. Based on a preset symbol-frequency mapping, this peak frequency is accurately converted to the corresponding sine wave frequency, improving decoding accuracy and anti-interference capabilities.
[0032] In a preferred example, the present application may be further configured as follows: decoding the sine wave frequency into the AP hotspot name and the AP hotspot password based on a preset frequency-character mapping relationship includes:
[0033] Based on a preset frequency-character mapping relationship, convert the sine wave frequency into a corresponding character;
[0034] Concatenate the characters to form an encoded string, perform Base64 decoding on the encoded string, and restore the original string of the AP hotspot name and the AP hotspot password;
[0035] An integrity check is performed on the decoded AP hotspot name and AP hotspot password. If the integrity check passes, it is confirmed that the AP hotspot name and the AP hotspot password can be used for wireless connection.
[0036] By adopting the above technical solution, the received sine wave frequency is converted into corresponding characters based on a preset frequency-character mapping relationship, ensuring that the audio signal can be accurately decoded into the original data. Subsequently, the parsed characters are spliced in the transmission order to form a complete encoded string. Through Base64 decompression, the AP hotspot name and AP hotspot password are successfully restored, ensuring the accurate transmission of wireless network configuration information. At the same time, an integrity check mechanism is used to verify the decoded AP connection information to ensure that the data has not been tampered with or damaged during transmission. If the check passes, it is confirmed that the AP hotspot name and password can be used for wireless connection, thereby ensuring the reliability and security of the wireless network.
[0037] In a preferred example, the present application may be further configured as follows: the slave device connects to the wireless AP created by the host device based on the AP hotspot name and the AP hotspot password; after the connection is successful, the slave device sends a networking confirmation message to the host device to complete the wireless networking, and further includes:
[0038] In the event of a connection failure, the slave device executes a preset retry mechanism, the retry mechanism including a set number of retries, and executes a fault handling mechanism after the set number of retries is exhausted;
[0039] According to the fault handling mechanism, after a connection failure, the slave device sends connection failure status information to the host device and requests resending of the AP hotspot name and the AP hotspot password;
[0040] After receiving the AP hotspot name and the AP hotspot password resent by the host device, the slave device re-executes decoding and attempts to connect to the wireless AP;
[0041] In the event of multiple connection failures, the slave device triggers a timeout mechanism and provides an error prompt or generates a manual connection prompt message.
[0042] By implementing the above technical solution, a preset retry mechanism automatically performs multiple attempts when a connection fails, increasing the success rate of wireless AP connections. After the set number of retries is exhausted, a fault handling mechanism is triggered, ensuring the system can respond quickly in abnormal situations. If the connection still fails, the slave device sends a connection failure status message to the master device and requests the AP hotspot name and password to be resent, thereby preventing network failures caused by initial transmission errors. After receiving the AP configuration information resent by the master device, the slave device re-decodes the data and re-attempts the Wi-Fi connection to ensure the correct configuration information and connection reliability. Furthermore, if multiple retries fail, the slave device triggers a timeout mechanism and provides an error prompt, such as an LED indicator, a buzzer warning, an on-screen error message, or generates a manual connection prompt (such as a QR code or Bluetooth-assisted network configuration) to guide the user to complete the wireless connection through other means.
[0043] The second object of the present invention is achieved through the following technical solutions:
[0044] A wireless connection system for acoustic wave encryption pairing of a conference machine network, the wireless connection system for acoustic wave encryption pairing of a conference machine network comprising:
[0045] AP configuration information acquisition and encoding module, used to obtain the AP hotspot name and AP hotspot password of the host device;
[0046] A sound wave transmission and receiving module, configured to convert the AP hotspot name and the AP hotspot password into a character string in a preset format, and convert the character string into a coded audio signal based on a sound wave coding algorithm;
[0047] a spectrum analysis and sine wave frequency extraction module, configured to play the encoded audio signal using the host device, obtain the encoded audio signal recorded by the slave device, perform spectrum analysis on the encoded audio signal using a fast Fourier transform algorithm, and obtain a spectrum analysis result;
[0048] A decoding and information recovery module, configured to extract the corresponding sine wave frequency from the spectrum analysis result, and decode the sine wave frequency into the AP hotspot name and the AP hotspot password based on a preset frequency character mapping relationship;
[0049] The wireless connection and networking confirmation module is used for the slave device to connect to the wireless AP created by the host device based on the AP hotspot name and the AP hotspot password. After the connection is successful, the slave device sends a networking confirmation message to the host device to complete the wireless networking.
[0050] This technical solution enables automatic Wi-Fi network configuration without manual input of Wi-Fi configuration information, effectively improving the user experience. It is particularly suitable for scenarios such as screenless devices, multi-device collaborative connectivity, and automated networking of smart devices. Compared to traditional Wi-Fi Direct, Bluetooth network configuration, or QR code scanning methods, this method does not rely on additional hardware. Only a speaker and microphone are required for secure and efficient wireless networking, significantly improving system compatibility and application scope. Furthermore, this solution utilizes a pre-defined frequency character mapping and CRC checksum mechanism to ensure the integrity and reliability of Wi-Fi configuration information transmitted via acoustic waves. It also supports automatic retry and fault recovery, reducing connection failures due to signal interference or data loss, and improving the success rate and stability of wireless networking. Without the need for additional hardware support such as NFC and QR code scanning, it can be directly integrated into devices such as smart conferencing systems, smart homes, and the Industrial Internet of Things, reducing system complexity and deployment costs. Furthermore, batch audio broadcasting improves the efficiency of connecting multiple devices simultaneously, reduces manual intervention, and makes device networking more efficient and convenient.
[0051] In summary, this application includes at least one of the following beneficial technical effects:
[0052] 1. It realizes automatic network configuration without manual input of Wi-Fi configuration information, effectively improving the user experience, and is particularly suitable for scenarios such as screenless devices, multi-device collaborative connection, and automated networking of smart devices. Compared with traditional Wi-Fi direct connection, Bluetooth network configuration or QR code scanning methods, this method does not rely on additional hardware. It only requires the device to have a speaker and microphone to complete safe and efficient wireless networking, greatly improving the system compatibility and application scope. In addition, this solution uses a preset frequency character mapping and CRC check mechanism to ensure that the Wi-Fi configuration information transmitted by sound waves is complete and reliable, and supports automatic retry and fault recovery, reducing the connection failure rate due to signal interference or data loss, and improving the success rate and stability of wireless networking. It does not require additional hardware support such as NFC and QR code scanning, and can be directly integrated into smart conference systems, smart homes, industrial Internet of Things and other devices, reducing system complexity and deployment costs. At the same time, the batch audio broadcast method can improve the efficiency of simultaneous access of multiple devices, reduce manual intervention, and make the device networking process more efficient and convenient;
[0053] 2. By parsing the character string, extracting each character in turn and converting it into a corresponding numerical code, the character data can be standardized and accurate input can be provided for subsequent frequency mapping. Based on the preset character-frequency mapping relationship, the numerical code is converted into a unique corresponding sine wave frequency, and a stable sine wave signal is generated to ensure that the data can be efficiently transmitted through the audio channel. In addition, by modulating the amplitude, phase or frequency of the sine wave signal, the transmission quality of the audio signal is optimized and the anti-interference ability is improved, so that the encoded audio signal can maintain good recognizability and decoding accuracy in different devices and environments;
[0054] 3. A preset retry mechanism automatically performs multiple attempts when a connection fails, increasing the success rate of wireless AP connections. After the set number of retries is exhausted, a fault handling mechanism is triggered to ensure the system can respond quickly in abnormal situations. If the connection still fails, the slave device sends a connection failure status message to the master device and requests the AP hotspot name and password to be resent to avoid network failures caused by initial transmission errors. After receiving the AP configuration information resent by the master device, the slave device re-decodes the data and re-attempts the Wi-Fi connection to ensure the correct configuration information and connection reliability. Furthermore, if multiple retries fail, the slave device triggers a timeout mechanism and provides an error prompt, such as an LED indicator, a buzzer warning, an on-screen error message, or generates a manual connection prompt (such as a QR code or Bluetooth-assisted network configuration) to guide the user to complete the wireless connection through other means. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 This is a schematic structural diagram of a wireless connection method for acoustic wave encryption pairing for a conference machine network in an embodiment of the application;
[0056] Figure 2 This is a flowchart for implementing step S20 in a wireless connection method for acoustic wave encryption pairing of a conference machine network in one embodiment of the present application;
[0057] Figure 3 This is a flowchart for implementing step S203 in a wireless connection method for acoustic wave encryption pairing of a conference machine network in one embodiment of the present application;
[0058] Figure 4 This is another implementation flowchart of step S20 in the wireless connection method for acoustic wave encryption pairing of a conference machine network in one embodiment of the present application;
[0059] Figure 5 This is a flowchart for implementing step S40 in a wireless connection method for acoustic wave encryption pairing of a conference machine network in one embodiment of the present application;
[0060] Figure 6 This is another implementation flowchart of step S40 in the wireless connection method for acoustic wave encryption pairing of a conference machine network in one embodiment of the present application;
[0061] Figure 7 This is a flowchart for implementing the step S50 in the wireless connection method for acoustic wave encryption pairing of a conference machine network in one embodiment of the present application;
[0062] Figure 8 This is a principle block diagram of a wireless connection system for acoustic wave encryption pairing of conference machine networks in one embodiment of the present application. DETAILED DESCRIPTION
[0063] The present application is further described in detail below with reference to the accompanying drawings.
[0064] In one embodiment, if Figure 1 As shown, the present application discloses a wireless connection method for acoustic wave encryption pairing of a conference machine network, which specifically includes the following steps:
[0065] S10: Obtain the AP hotspot name and AP hotspot password of the host device.
[0066] In this embodiment, the AP hotspot name refers to the service set identifier of a wireless local area network (Wi-Fi) access point. The AP hotspot password refers to the authentication key used to access a Wi-Fi network, typically consisting of letters, numbers, and special characters.
[0067] Specifically, read the wireless network configuration data of the host device, including the Wi-Fi SSID (Service Set Identifier, i.e., the AP hotspot name) and the AP hotspot password. You can obtain the currently connected AP information by calling the network management interface of the device operating system, or access the network configuration file stored in the device to obtain the saved Wi-Fi configuration information. For example, on Android devices, you can obtain the currently connected SSID through WifiManager. On Linux or Windows devices, you can query the detailed parameters of the connected Wi-Fi through the nmcli or netsh wlan showprofile command. In embedded devices, you can obtain Wi-Fi configuration data by reading the network parameter storage area in EEPROM or Flash to ensure that the extracted AP information is complete and available.
[0068] S20: Convert the AP hotspot name and the AP hotspot password into a character string in a preset format, and convert the character string into a coded audio signal based on a sound wave coding algorithm.
[0069] Specifically, a preset data format is used to combine the AP hotspot name and the AP hotspot password to form a unified configuration information string. For example, this can be encapsulated using "SSID:xxx;PWD:yyy" or the JSON structure {"SSID":"xxx","PWD":"yyy"} to ensure clear identification during data parsing. Next, the string is Base64-encoded to ensure stable transmission in different character set environments and reduce the impact of special characters on decoding. After encoding, a cyclic redundancy check (CRC) is calculated on the string, and the CRC checksum is added to ensure data integrity and prevent decoding errors caused by transmission errors. Then, a sound wave encoding algorithm is used to convert the string into an audio signal. Specifically, frequency-shift keying (FSK) or sine wave modulation is used to convert each character into a preset sine wave frequency. For example, different fixed frequencies are set for 0-9, A-Z, a-z, and special symbols. The character sequence is modulated sequentially to generate an audio waveform. The generated audio signal is stored in a PCM sampling format, and the sampling rate and bit rate are controlled to ensure that the audio signal can be accurately played and received on different speakers and microphone devices, thereby obtaining an encoded audio signal that can be used for wireless transmission.
[0070] S30: Using the host device to play the encoded audio signal, obtaining the encoded audio signal recorded by the slave device, and performing spectrum analysis on the encoded audio signal using a fast Fourier transform algorithm to obtain a spectrum analysis result.
[0071] Specifically, the encoded audio signal is played through the speaker of the host device. During the playback process, the volume output range is controlled to avoid sound distortion due to excessive signal strength or the receiving device being unable to correctly pick up the signal due to excessive signal weakness. At the same time, a synchronization signal is inserted at the beginning and end of the audio signal, such as using a fixed-frequency pilot signal or burst pulse signal, so that the slave device can accurately identify the start and end of the audio data. The slave device records the audio signal through a microphone and uses automatic gain control (AGC) to adjust the audio input strength to adapt to different recording environments and avoid environmental noise or device differences affecting the decoding effect. After recording, the audio signal is digitized, including noise reduction, normalization and filtering, to remove environmental noise and irrelevant frequency components. Then, the audio signal is spectrally analyzed using fast Fourier transform (FFT), and the time domain waveform is converted into frequency domain data to obtain the spectrum distribution of the audio signal at different time points, and the main frequency component is extracted to obtain the spectrum analysis result for decoding.
[0072] S40: extracting the corresponding sine wave frequency from the spectrum analysis result, and decoding the sine wave frequency into the AP hotspot name and the AP hotspot password based on a preset frequency character mapping relationship.
[0073] Specifically, by analyzing the spectrum data after FFT transformation, frequency components with amplitudes greater than a set threshold are screened out, and noise frequencies and low-intensity interference signals are removed to ensure that only valid sinusoidal wave frequencies in the encoded audio signal are extracted; according to the preset character-frequency mapping relationship, the extracted sinusoidal wave frequencies are converted into corresponding characters. Specifically, a lookup table or a mathematical mapping function can be used. For example, if each character corresponds to a fixed frequency interval, the corresponding character is quickly matched through binary search or hash index. If a dynamic encoding scheme is used, the character offset is calculated based on the received frequency sequence to restore the original character data; after the character data is parsed, it is spliced in sequence to form a complete encoded string, and Base64 de-decoding is performed to restore the original string of the AP hotspot name and AP hotspot password. Subsequently, the CRC checksum is calculated and compared with the CRC checksum value of the received data. If the checksum passes, the data is confirmed to be complete and the subsequent connection process continues, thereby obtaining the correctly parsed AP hotspot name and AP hotspot password.
[0074] S50: The slave device connects to the wireless AP created by the host device based on the AP hotspot name and the AP hotspot password. After the connection is successful, the slave device sends a networking confirmation message to the host device to complete the wireless networking.
[0075] Specifically, the parsed AP hotspot name and AP hotspot password are used as Wi-Fi connection parameters, and the connection is made through the wireless network card interface of the slave device. First, the wireless connection management module is called to scan the currently available Wi-Fi networks and match the parsed AP hotspot name. If the target AP exists, the Wi-Fi connection request is executed, the WLAN authentication module is called to enter the AP hotspot password, and WPA2-PSK or other encryption protocol authentication is initiated. If the verification is successful, the wireless network is successfully accessed; after the connection is established, the assigned IP address is obtained, and the network initialization is completed through DHCP or static IP configuration. Subsequently, the networking confirmation information is sent to the host device through UDP broadcast, TCP handshake or HTTP request. After receiving the confirmation information, the host device completes the wireless networking process and can establish further data interaction or device collaboration functions according to application requirements. If the connection fails, the preset retry mechanism can be executed, including rescanning the AP network, requesting the host device to resend Wi-Fi configuration parameters, or prompting the user to manually enter Wi-Fi information, thereby finally completing the entire process of wireless networking.
[0076] In one embodiment, if Figure 2 As shown, in step S20, the AP hotspot name and the AP hotspot password are converted into a character string in a preset format, including:
[0077] S201: Merge the AP hotspot name and the AP hotspot password through a preset identifier format to obtain a merged string. The identifier format includes a first field for storing the AP hotspot name and a second field for storing the AP hotspot password. The first field and the second field are distinguished by a preset separator.
[0078] Specifically, a predefined string format is used to merge the AP hotspot name and AP hotspot password so that they have a unified data structure, which is convenient for subsequent encoding and parsing. The optional identifier formats include fixed-length format, delimiter format or key-value pair format. For example, when using the fixed-length format, the length of the AP hotspot name and password needs to be preset, such as a 32-byte SSID + a 64-byte password, and the insufficient part is filled with specific characters; when using the delimiter format, SSID=xxx;PWD=yyy or SSID:xxx|PWD:yyy can be used to ensure that the AP hotspot name and password can be clearly separated during parsing; when using the key-value pair format, the JSON structure {"SSID":"xxx","PWD":"yyy"} can be used to ensure that the data is structured and extensible. The final generated merged string meets the unified standard, thereby ensuring the consistency and accuracy of the subsequent encoding and decoding processes.
[0079] S202: Perform Base64 encoding on the combined character string to obtain an encoded character string.
[0080] Specifically, the Base64 encoding algorithm is used to convert the merged string to ensure good compatibility of the data in different environments and avoid parsing errors caused by control characters or special symbols. The core process of Base64 encoding includes reading data in groups of 3 bytes, converting each 3 bytes into 4 Base64 encoded characters, and padding the part less than 3 bytes with =; during the encoding process, the standard Base64 alphabet AZ, az, 0-9, +, or the URL-compatible Base64 variant AZ, az, 0-9, -, _ can be selected to adapt to different application scenarios. The length of the encoded string is approximately 1.33 times that of the original string, thus generating an encoded string suitable for transmission and storage.
[0081] S203: Calculate a CRC check value of the encoded character string using a cyclic redundancy check algorithm, and append the CRC check value to the encoded character string to generate a character string in a preset format.
[0082] Specifically, a cyclic redundancy check (CRC) algorithm is used to calculate a checksum value on the Base64-encoded string to ensure data is not disturbed during transmission and decoding, preventing parsing errors caused by bit errors. The CRC calculation process includes initializing the CRC remainder, calculating the CRC checksum byte by byte, and ultimately obtaining the CRC remainder as the checksum. The generator polynomial P(x) for the CRC calculation is set. You can choose CRC-16-CCITT (generator polynomial 0x1021) or CRC-32 (generator polynomial 0x04C11DB7). The CRC remainder R is initialized, typically with an initial value of 0xFFFF (for CRC-16) or 0xFFFFFFFF (for CRC-32). The encoded string is then processed byte by byte. Each byte is XORed with the high byte of the CRC remainder. The CRC remainder is then shifted left one bit. If the highest bit is 1, it is XORed with the generator polynomial P(x). Otherwise, it remains unchanged. This process continues until all bytes have been processed. The resulting CRC remainder serves as the checksum.
[0083] The mathematical expression for CRC calculation is as follows:
[0084] , where R(x) is the final CRC check value, D(x) is the input data, that is, the binary representation of the Base64-encoded string; x n is the data extension term, where n is the CRC code length (e.g., n = 16 for CRC-16), and P(x) is the CRC generator polynomial, for example, 0x1021 (CRC-16-CCITT). The final calculated CRC checksum is typically represented as 16 bits (CRC-16) or 32 bits (CRC-32) and appended to the end of the encoded string in hexadecimal or Base64 format.
[0085] In one embodiment, if Figure 3 As shown, in step S203, the CRC check value of the encoded string is calculated using a cyclic redundancy check algorithm, including:
[0086] S2031: Select a generator polynomial based on a preset CRC standard, where the generator polynomial is a fixed-order binary polynomial.
[0087] Specifically, according to different CRC standards, a suitable generating polynomial P(x)P(x)P(x) is selected. The generating polynomial is a fixed-order binary polynomial whose order is determined by the selected CRC scheme. For example, under the CRC-16 standard, the commonly used generating polynomial is 0x1021 (corresponding to x 16 +x 12 +x 5+1), and under the CRC-32 standard, the commonly used generating polynomial is 0x04C11DB7 (corresponding to x 32 +x 26 +x 23 +x 22 +x 16 +x 12 +x 11 +x 10 +x 8 + x7 +x 5 +x 4 +x 2 +x+1), ensuring that the selected polynomial has good error detection capability and low collision probability to meet data verification requirements.
[0088] S2032: According to the bit length of the generating polynomial, padding bits of corresponding length are added to the end of the encoded character string to generate an extended encoded character string.
[0089] Specifically, based on the selected CRC scheme, the bit length of the CRC remainder register is determined. For example, CRC-16 requires 16 bits and CRC-32 requires 32 bits. Then, padding bits of corresponding length are appended to the end of the encoded string data. These padding bits are initially all set to 0. That is, if CRC-16 is used, 16 zeros are appended to the data. If CRC-32 is used, 32 zeros are appended. In this way, the length of the extended string is increased by n bits (where n is the number of CRC remainder bits). The generated extended encoded string can be used for subsequent CRC calculations to ensure that the calculation process is complete and the final CRC check value can be correctly obtained.
[0090] S2033: Perform bit-by-bit or byte-by-byte binary division on the extended coded string according to the generating polynomial, and use XOR to calculate the remainder during the calculation process. After all data bits are processed, the final calculated remainder is taken as the CRC check value.
[0091] Specifically, binary division is performed on the extended coded string bit by bit or byte by byte, using the CRC generator polynomial P(x) as the divisor. The entire operation process is similar to long division. Each time, the current data bit is compared with the highest bit of the polynomial. If the highest bit is 1, an XOR operation is performed, and the current data is compared with the generator polynomial modulo 2 (i.e., 1⊕1=0, 0⊕1=1, 0⊕0=0, 1⊕0=1). The result is then shifted left by one bit, and the next data bit is processed until the entire string is processed. At this point, the value in the CRC remainder register is the final CRC checksum. The length of this checksum is consistent with the CRC scheme. For example, the remainder of the CRC-16 calculation is 16 bits, and the remainder of the CRC-32 calculation is 32 bits. Finally, this CRC checksum is appended to the end of the coded string to form a complete checksum string. During data transmission and decoding, the same calculation method can be used to verify data integrity. If the calculated CRC remainder matches the appended CRC value, it indicates that the data is intact. Otherwise, the data needs to be re-requested or error handling is required to ensure the reliability and accuracy of data transmission.
[0092] In one embodiment, if Figure 4 As shown, in step S20, the character string is converted into a coded audio signal based on the sound wave coding algorithm, including:
[0093] S204: Perform character parsing on the character string, extract each character in turn, and convert each word into a corresponding numerical code.
[0094] Specifically, the input string is parsed according to the character encoding standard, and the characters in the string are extracted one by one and converted into corresponding numerical codes. ASCII encoding can be used for conversion. For example, if ASCII encoding is used, the character 'A' corresponds to the numerical value 65, and the character '0' corresponds to the numerical value 48. All characters are converted according to the standard numerical mapping to ensure that the numerical values after character conversion are unique and non-overlapping. In addition, if a custom mapping table is used, it can be optimized based on the usage scenario. For example, commonly used characters can be assigned to a lower encoding range to reduce bandwidth usage during transmission. Finally, the converted numerical codes are arranged in the original character order to form a numerical code.
[0095] S205: Based on a preset character frequency mapping relationship, convert the numerical code into a corresponding sine wave frequency, and generate a corresponding sine wave signal.
[0096] Specifically, a preset character frequency mapping relationship is used to convert the numerical code into a unique corresponding sinusoidal wave frequency to ensure that the characters can be correctly distinguished in the sound wave signal. The specific methods include fixed frequency mapping, dynamic frequency allocation or segmented frequency coding. Among them, the fixed frequency mapping method assigns a fixed frequency range to each character in the order of the character code value. For example, 0-9 corresponds to 1800-2800Hz, AZ corresponds to 3000-4000Hz, and az corresponds to 4200-5200Hz. Each character is mapped to an independent frequency point to avoid interference from adjacent characters; in the dynamic frequency allocation mode, the frequency mapping can be adjusted according to the usage environment to improve the anti-interference ability; in the segmented frequency coding mode, different character categories are mapped to different frequency bands. For example, numbers, letters, and special characters are mapped to low frequency, medium frequency, and high frequency respectively to improve the accuracy of the analysis. Finally, the corresponding sinusoidal wave signals are generated in sequence according to the character sequence.
[0097] S206: Modulate the sine wave signal, where the modulation includes controlling the amplitude, phase or frequency of the sine wave to generate a coded audio signal.
[0098] Specifically, amplitude modulation (AM), frequency modulation (FM) or phase modulation (PM) is used to process the sinusoidal signal to enhance the signal's transmission stability and anti-interference ability. Amplitude modulation (AM) controls the amplitude of the signal so that the sinusoidal signals corresponding to different characters have different intensities, thereby improving the resolvability in a low signal-to-noise ratio environment. Frequency modulation (FM) improves the signal's anti-interference ability by applying a small offset to the basic frequency. For example, minimum shift keying (MSK) can be used to ensure the smoothness of frequency conversion. Phase modulation (PM) adjusts the phase offset of the sinusoidal wave so that adjacent characters have a recognizable phase difference to reduce the possibility of miscoding. During the modulation process, the signal envelope can be controlled to ensure that the signal can be correctly transmitted between different speakers and microphone devices, and synchronization signals, such as a fixed preamble frequency or a specific pulse sequence, are added at the beginning and end of the audio data to help the receiving device correctly parse the signal boundary, thereby ultimately generating a coded audio signal that can be used for sound wave transmission.
[0099] In one embodiment, if Figure 5 As shown, in step S40, the corresponding sine wave frequency is extracted from the spectrum analysis result, including:
[0100] S401: Filter the spectrum analysis results to remove noise frequency components whose amplitudes are lower than a set amplitude threshold, and obtain filtered spectrum data.
[0101] Specifically, after obtaining spectral data through a fast Fourier transform (FFT), the data is first normalized to ensure that volume differences between different recording devices and environments do not affect subsequent analysis. An amplitude threshold is then set to filter out valid frequency components. This amplitude threshold can be determined based on experimental data, signal-to-noise ratio calculations, or an adaptive algorithm. For example, the average amplitude of the entire spectral data is calculated and a multiple of this value (e.g., 3× the average) is set as the threshold to effectively remove ambient noise and background interference signals. During the amplitude filtering process, a band-pass filter (BPF) can be used to retain signals within a preset frequency range. For example, if the frequency range of the encoded signal is set to 1800Hz-5000Hz, only frequency components within this range are retained, removing low-frequency ambient noise (e.g., wind noise, air conditioning noise) and high-frequency interference (e.g., electromagnetic noise). Furthermore, a sliding window averaging method or Gaussian filtering can be used to smooth the spectral data to reduce spectral fluctuations caused by transient noise, thereby obtaining spectral data that has been noise-filtered and amplitude-filtered.
[0102] S402: Detecting the main frequency component in the filtered spectrum data, extracting the peak frequency corresponding to the main frequency component, and determining the sine wave frequency corresponding to the peak frequency through a preset symbol-frequency mapping relationship.
[0103] Specifically, in the filtered spectrum data, a peak detection algorithm is used to identify the main frequency component. The specific method includes finding the local maximum value, setting frequency interval constraints and calculating the signal energy concentration. First, in the filtered spectrum data, all frequency points are traversed to find the main frequency component with the highest amplitude to ensure that the selected frequency point is the true main frequency of the signal rather than a noise pseudo-peak. The neighborhood comparison method can be used, that is, only the highest peak within a certain bandwidth range (such as ±50Hz) is selected as the main frequency to avoid misjudgment due to harmonics or interference signals. Subsequently, according to the preset character frequency mapping relationship, the standard frequency corresponding to the main frequency component is found. For example, if the frequency mapping table sets 2000Hz to correspond to character A and 2200Hz to correspond to character B, the character corresponding to the main frequency is determined according to the matching result.
[0104] In one embodiment, if Figure 6 As shown, in step S40, the sine wave frequency is decoded into the AP hotspot name and AP hotspot password based on the preset frequency character mapping relationship, including:
[0105] S403: Convert the sine wave frequency into a corresponding character based on a preset frequency-character mapping relationship.
[0106] Specifically, the peak frequency of the main frequency component is parsed and converted using the preset frequency-character mapping relationship. First, the system uses a frequency lookup table (LUT), which defines the standard sinusoidal wave frequency range corresponding to each character. For example, 2000Hz corresponds to the character 'A', 2200Hz corresponds to the character 'B', 2400Hz corresponds to the character 'C', and so on. To improve the accuracy of the matching, a nearest neighbor matching algorithm or an interpolation algorithm can be used for correction. That is, if the received frequency f is offset due to the influence of the transmission environment, the closest standard frequency is selected as the match by calculating the minimum absolute difference between it and all standard frequencies in the lookup table. To further improve the robustness of the parsing, a redundant check frequency can be set between characters. That is, during data transmission, each character can be accompanied by an additional frequency for cross-verification. If the parsed character matches the check frequency, the character is confirmed to be correct. Otherwise, re-parsing or data retransmission may be required. Finally, all parsed characters are arranged in the order of receipt to form a preliminary decoded character sequence.
[0107] S404: Concatenate the characters to form a coded string, perform Base64 decoding on the coded string, and restore the original strings of the AP hotspot name and the AP hotspot password.
[0108] Specifically, the parsed characters are concatenated in the order they were received to form a complete encoded string. To prevent character loss or misordering, a start identifier, end identifier, or length field can be introduced into the data structure. For example, the parsed data may contain a structure similar to "SSID=U3NkMDIz;PWD=MTIzNDU2;", where U3NkMDIz and MTIzNDU2 are the Base64-encoded AP name and password. After confirming that the character concatenation is complete, the system calls the Base64 decryption function for decoding. The core process of Base64 decryption involves parsing every four Base64 characters into three original bytes. If padding characters (=) are encountered, the padding is removed before conversion. During the decoding process, if illegal Base64 characters are found or the decoded result does not conform to the expected format of the AP name and password, data corruption may exist. The integrity of the identifier can be verified to determine whether the data needs to be re-requested. After decoding is complete, the original strings of the AP hotspot name and password are finally obtained.
[0109] S405: Perform integrity check on the decoded AP hotspot name and AP hotspot password. If the integrity check passes, confirm that the AP hotspot name and AP hotspot password can be used for wireless connection.
[0110] Specifically, to ensure that the data is not damaged during the acoustic wave transmission process, the system needs to perform integrity verification on the decoded AP hotspot name and AP hotspot password. The integrity verification is usually verified using a cyclic redundancy check (CRC) or a hash check (such as SHA-256 or MD5). First, the additional CRC check value is extracted from the decoded data, and the CRC value of the current data is recalculated using the same CRC calculation method. The two are then compared. If the two match, it indicates that the data has not been tampered with or damaged. Otherwise, the data needs to be re-requested or error correction is required. In addition, format verification can also be used to improve reliability, that is, to check whether the decoded AP name complies with the SSID naming rules (such as length limit, character range) and whether the password complies with the WPA / WPA2 specification (such as 8-63 ASCII characters). If the verification passes, it is confirmed that the AP hotspot name and AP hotspot password can be used for wireless connection, and then the wireless network configuration process is entered. If the verification fails, the system can prompt the user to manually enter or re-receive the acoustic wave data to ensure that the connection to the target AP is finally successful.
[0111] In one embodiment, if Figure 7 As shown, in step S50, the slave device connects to the wireless AP created by the host device based on the AP hotspot name and the AP hotspot password. After the connection is successful, the slave device sends a networking confirmation message to the host device to complete the wireless networking, which also includes:
[0112] S501: In the case of a connection failure, the slave device executes a preset retry mechanism, which includes setting a number of retries. After the set number of retries is exhausted, a fault handling mechanism is executed.
[0113] Specifically, after a connection fails, the slave device triggers a retry mechanism based on a set maximum number of retries, which can usually be configured to 3-5 times to ensure a smooth connection even in the event of temporary interference or network instability. The retry mechanism is implemented using delayed retries and an exponential backoff algorithm. That is, after each failed connection attempt, there will be a short delay (e.g., 1s). If it still fails, the delay time will be doubled (e.g., 2s, 4s, 8s) to reduce unnecessary resource usage. In addition, the retry strategy can be adjusted through error code analysis. For example, if the cause of the failure is authentication failure (wrong password), the fault handling mechanism can be triggered immediately without multiple retries. If the cause of the failure is a weak signal or unreachable AP, the scan interval can be increased or the signal gain of the Wi-Fi module can be adjusted. After all set retries are exhausted, the slave device enters the fault handling mechanism.
[0114] S502: According to the fault handling mechanism, after the connection fails, the slave device sends connection failure status information to the master device and requests to resend the AP hotspot name and AP hotspot password.
[0115] Specifically, after the retry mechanism fails, the slave device will send connection failure status information to the host device. This information can be sent via UDP broadcast, TCP reliable transmission or MQTT IoT protocol to ensure that the host device can correctly receive the failure report. The message content includes the failure reason code (such as timeout, authentication failure, signal abnormality), and is accompanied by the MAC address or device ID of the slave device so that the host device can identify the device identity. Subsequently, the slave device requests the host device to re-obtain the AP configuration information through a request instruction. After receiving the request, the host device will re-encode the AP name and password, and send the audio signal again according to the sound wave transmission process. The slave device enters the waiting mode and prepares to re-obtain the configuration information.
[0116] S503: After receiving the AP hotspot name and AP hotspot password resent by the host device, the slave device re-decodes and attempts to connect to the wireless AP.
[0117] Specifically, after the slave device receives the AP name and password resent by the host device via sound waves, it first records the audio signal, and then performs spectrum analysis, peak detection, frequency decoding, Base64 de-encoding, and CRC check according to the established process to ensure that the received AP configuration information is complete and correct. If the data is found to be incomplete during the decoding process (such as CRC check failure), the host device can be immediately requested to send the data again to avoid using incorrect configuration information. After successfully parsing the AP configuration information, the slave device executes the Wi-Fi connection process, scans for available APs in the current environment, and compares the received SSID. If a match is successful, the parsed Wi-Fi password is used for identity authentication. If the Wi-Fi authentication is successful, the IP address is obtained, and a network success confirmation message is sent to the host device.
[0118] S504: In the case of multiple connection failures, the slave device triggers a timeout mechanism and provides an error prompt or generates a manual connection prompt message.
[0119] Specifically, if a slave device fails to successfully connect to the wireless AP after retrying all possible methods, a timeout mechanism is triggered. This timeout mechanism can be set by setting a maximum allowed connection duration (e.g., 60 seconds) or a maximum number of failures (e.g., 5). This mechanism primarily prevents devices from falling into an infinite retry loop, thereby conserving resources and improving the user experience. After a timeout is triggered, the slave device can provide two error recovery options: automatic prompts or manual network configuration. Automatic prompts can display an error code via an LED indicator, buzzer, or screen. For example, a red LED flashes three times to indicate a timeout error, or a two-second buzzer beeps to indicate a connection failure. If the device has a screen, it can display the message "Wi-Fi connection failed, please check the network." Furthermore, to avoid the inconvenience of users manually entering Wi-Fi information, the slave device can generate a manual connection prompt, such as a QR code displayed on the screen or mobile app. Users can scan this QR code to access the AP connection page. Manual configuration can also be performed through Bluetooth or NFC configuration, ultimately ensuring the device successfully connects to the wireless AP.
[0120] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0121] In one embodiment, a wireless connection system for acoustic wave encryption pairing of conference machine networks is provided. The wireless connection system for acoustic wave encryption pairing of conference machine networks corresponds one-to-one with the wireless connection method for acoustic wave encryption pairing of conference machine networks in the above embodiment. Figure 8 As shown, the wireless connection system for acoustic encryption pairing for conference machine networking includes an AP configuration information acquisition and encoding module, an acoustic wave transmission and reception module, a spectrum analysis and sine wave frequency extraction module, a decoding and information recovery module, and a wireless connection and networking confirmation module. The functional modules are described in detail below:
[0122] AP configuration information acquisition and encoding module, used to obtain the AP hotspot name and AP hotspot password of the host device;
[0123] The sound wave transmission and receiving module is used to convert the AP hotspot name and AP hotspot password into a string in a preset format, and convert the string into a coded audio signal based on a sound wave encoding algorithm;
[0124] The spectrum analysis and sine wave frequency extraction module is used to play the encoded audio signal using the host device, obtain the encoded audio signal recorded by the slave device, perform spectrum analysis on the encoded audio signal using the fast Fourier transform algorithm, and obtain the spectrum analysis result;
[0125] The decoding and information recovery module is used to extract the corresponding sine wave frequency from the spectrum analysis results and decode the sine wave frequency into the AP hotspot name and AP hotspot password based on the preset frequency character mapping relationship;
[0126] The wireless connection and networking confirmation module is used for the slave device to connect to the wireless AP created by the host device based on the AP hotspot name and AP hotspot password. After the connection is successful, the slave device sends a networking confirmation message to the host device to complete the wireless networking.
[0127] Optionally, the sound wave transmission and reception module includes:
[0128] An AP configuration information merging submodule, configured to merge the AP hotspot name and the AP hotspot password using a preset identifier format to obtain a merged string, wherein the identifier format includes a first field for storing the AP hotspot name and a second field for storing the AP hotspot password, and the first field and the second field are distinguished by a preset delimiter;
[0129] The Base64 encoding submodule is used to perform Base64 encoding on the merged string to obtain the encoded string;
[0130] The CRC check appending submodule is used to calculate the CRC check value of the encoded character string using a cyclic redundancy check algorithm, and append the CRC check value to the encoded character string to generate a character string in a preset format.
[0131] Optionally, the CRC check additional submodule includes:
[0132] A CRC generator polynomial selection unit is used to select a generator polynomial according to a preset CRC standard, where the generator polynomial is a fixed-order binary polynomial;
[0133] an extended code string generating unit, configured to append padding bits of a corresponding length to the end of the encoded character string according to the bit length of the generating polynomial, thereby generating an extended code string;
[0134] The CRC calculation and check value generation unit is used to perform bit-by-bit or byte-by-byte binary division operations on the extended code string according to the generating polynomial, and use XOR to calculate the remainder during the calculation process. When all data bits are processed, the final calculated remainder is taken as the CRC check value.
[0135] Optionally, the sound wave transmission and reception module includes:
[0136] The character parsing and numerical encoding submodule is used to parse the character string, extract each character in turn, and convert each word into the corresponding numerical code;
[0137] The character frequency mapping and sine wave generation submodule is used to convert the numerical code into the corresponding sine wave frequency based on the preset character frequency mapping relationship and generate the corresponding sine wave signal;
[0138] The sine wave signal modulation and audio coding submodule is used to modulate the sine wave signal. The modulation includes controlling the amplitude, phase or frequency of the sine wave to generate a coded audio signal.
[0139] Optionally, the decoding and information recovery module includes:
[0140] The spectrum data filtering submodule is used to filter the spectrum analysis results, remove the noise frequency components whose amplitude is lower than the set amplitude threshold, and obtain the filtered spectrum data;
[0141] The main frequency component detection and mapping submodule is used to detect the main frequency component in the filtered spectrum data, extract the peak frequency corresponding to the main frequency component, and determine the sine wave frequency corresponding to the peak frequency through the preset symbol frequency mapping relationship.
[0142] Optionally, the decoding and information recovery module includes:
[0143] The sine wave frequency analysis and character mapping submodule is used to convert the sine wave frequency into the corresponding character based on the preset frequency-character mapping relationship;
[0144] The character concatenation and Base64 de-decoding submodule is used to concatenate characters to form an encoded string, perform Base64 decoding on the encoded string, and restore the original strings of the AP hotspot name and AP hotspot password;
[0145] The integrity check and wireless connection authentication submodule is used to perform integrity check on the decoded AP hotspot name and AP hotspot password. If the integrity check passes, it is confirmed that the AP hotspot name and AP hotspot password can be used for wireless connection.
[0146] Optionally, the wireless connection and networking confirmation module includes:
[0147] The connection retry mechanism submodule is used to execute a preset retry mechanism on the slave device in the event of a connection failure. The retry mechanism includes setting a number of retries. After the set number of retries is exhausted, a fault handling mechanism is executed.
[0148] The fault handling and resending request submodule is used to send the connection failure status information to the host device and request the resending of the AP hotspot name and AP hotspot password according to the fault handling mechanism after the connection fails;
[0149] The AP configuration information re-decoding and connection submodule is used for the slave device to re-decode and attempt to connect to the wireless AP after receiving the AP hotspot name and AP hotspot password resent by the host device;
[0150] The timeout mechanism and error prompt submodule is used to trigger the timeout mechanism of the slave device and provide an error prompt or generate a manual connection prompt message when multiple connection failures occur.
[0151] The specific limitations of the wireless connection system for acoustic wave encryption pairing of a conference machine network can be found in the limitations of the wireless connection method for acoustic wave encryption pairing of a conference machine network described above and will not be repeated here. Each module in the aforementioned wireless connection system for acoustic wave encryption pairing of a conference machine network can be implemented in whole or in part through software, hardware, or a combination thereof.
[0152] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0153] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A wireless connection method for acoustic encryption pairing of conference machine networks, characterized in that: The wireless connection method for acoustic wave encryption pairing of a conference machine network includes: Get the AP hotspot name and AP hotspot password of the host device; Converting the AP hotspot name and the AP hotspot password into a character string in a preset format, and converting the character string into a coded audio signal based on a sound wave coding algorithm; The step of converting the AP hotspot name and the AP hotspot password into a character string in a preset format includes: Merging the AP hotspot name and the AP hotspot password using a preset identifier format to obtain a merged string, wherein the identifier format includes a first field for storing the AP hotspot name and a second field for storing the AP hotspot password, and the first field and the second field are separated by a preset separator; Performing Base64 encoding on the combined string to obtain an encoded string; Calculating a CRC check value of the encoded character string using a cyclic redundancy check algorithm, and appending the CRC check value to the encoded character string to generate a character string in the preset format; Playing the encoded audio signal using the host device, obtaining the encoded audio signal recorded by the slave device, and performing spectrum analysis on the encoded audio signal using a fast Fourier transform algorithm to obtain a spectrum analysis result; Extracting the corresponding sine wave frequency from the spectrum analysis result, and decoding the sine wave frequency into the AP hotspot name and the AP hotspot password based on a preset frequency character mapping relationship; Decoding the sine wave frequency into the AP hotspot name and the AP hotspot password based on a preset frequency-character mapping relationship includes: Based on a preset frequency-character mapping relationship, convert the sine wave frequency into a corresponding character; Concatenate the characters to form an encoded string, perform Base64 decoding on the encoded string, and restore the original string of the AP hotspot name and the AP hotspot password; Performing an integrity check on the decoded AP hotspot name and AP hotspot password, and if the integrity check passes, confirming that the AP hotspot name and the AP hotspot password can be used for wireless connection; The slave device connects to the wireless AP created by the host device based on the AP hotspot name and the AP hotspot password. After the connection is successful, the slave device sends a networking confirmation message to the host device to complete the wireless networking; The slave device connects to the wireless AP created by the host device based on the AP hotspot name and the AP hotspot password. After the connection is successful, the slave device sends a networking confirmation message to the host device to complete the wireless networking. The method further includes: In the event of a connection failure, the slave device executes a preset retry mechanism, the retry mechanism including a set number of retries, and executes a fault handling mechanism after the set number of retries is exhausted; According to the fault handling mechanism, after a connection failure, the slave device sends connection failure status information to the host device and requests resending of the AP hotspot name and the AP hotspot password; After receiving the AP hotspot name and the AP hotspot password resent by the host device, the slave device re-executes decoding and attempts to connect to the wireless AP; In the event of multiple connection failures, the slave device triggers a timeout mechanism and provides an error prompt or generates a manual connection prompt message.
2. The wireless connection method for acoustic encryption pairing of conference machine networking according to claim 1, characterized in that: The step of calculating the CRC check value of the encoded character string using a cyclic redundancy check algorithm includes: A generator polynomial is selected according to a preset CRC standard, where the generator polynomial is a fixed-order binary polynomial; According to the bit length of the generator polynomial, padding bits of corresponding length are added to the end of the encoded character string to generate an extended encoded character string; A bit-by-bit or byte-by-byte binary division operation is performed on the extended code string according to the generating polynomial, and XOR is used to calculate the remainder during the calculation process. After all data bits are processed, the final calculated remainder is taken as the CRC check value.
3. The wireless connection method for acoustic encryption pairing for conference machine networking according to claim 1, characterized in that: The step of converting the character string into a coded audio signal based on a sound wave coding algorithm comprises: Parsing the character string, extracting each character in turn, and converting each character into a corresponding numerical code; Based on a preset character frequency mapping relationship, the numerical code is converted into a corresponding sine wave frequency, and a corresponding sine wave signal is generated; The sine wave signal is modulated, and the modulation includes controlling the amplitude, phase or frequency of the sine wave to generate the encoded audio signal.
4. The wireless connection method for acoustic encryption pairing for conference machine networking according to claim 1, characterized in that: The extracting the corresponding sine wave frequency from the spectrum analysis result includes: Perform data screening on the spectrum analysis results to remove noise frequency components whose amplitudes are lower than the set amplitude threshold to obtain filtered spectrum data; In the filtered spectrum data, the main frequency component is detected, and the peak frequency corresponding to the main frequency component is extracted. The sine wave frequency corresponding to the peak frequency is determined through a preset symbol-frequency mapping relationship.
5. A wireless connection device for acoustic encryption pairing of conference machine networks, characterized in that: The wireless connection device for acoustic wave encryption pairing of a conference machine network includes: AP configuration information acquisition and encoding module, used to obtain the AP hotspot name and AP hotspot password of the host device; A sound wave transmission and receiving module, configured to convert the AP hotspot name and the AP hotspot password into a character string in a preset format, and convert the character string into a coded audio signal based on a sound wave coding algorithm; An AP configuration information merging submodule, configured to merge the AP hotspot name and the AP hotspot password using a preset identifier format to obtain a merged string, wherein the identifier format includes a first field for storing the AP hotspot name and a second field for storing the AP hotspot password, and the first field and the second field are distinguished by a preset delimiter; A Base64 encoding submodule, used to perform Base64 encoding on the merged string to obtain an encoded string; A CRC check appending submodule, configured to calculate a CRC check value of the encoded character string using a cyclic redundancy check algorithm, and append the CRC check value to the encoded character string to generate a character string in the preset format; a spectrum analysis and sine wave frequency extraction module, configured to play the encoded audio signal using the host device, obtain the encoded audio signal recorded by the slave device, perform spectrum analysis on the encoded audio signal using a fast Fourier transform algorithm, and obtain a spectrum analysis result; A decoding and information recovery module, configured to extract the corresponding sine wave frequency from the spectrum analysis result, and decode the sine wave frequency into the AP hotspot name and the AP hotspot password based on a preset frequency character mapping relationship; The decoding and information recovery module includes: A sine wave frequency analysis and character mapping submodule, configured to convert the sine wave frequency into corresponding characters based on a preset frequency-character mapping relationship; A character concatenation and Base64 de-decoding submodule, configured to concatenate the characters to form an encoded string, perform Base64 decoding on the encoded string, and restore the original strings of the AP hotspot name and the AP hotspot password; The integrity check and wireless connection authentication submodule is used to perform integrity check on the decoded AP hotspot name and AP hotspot password. If the integrity check passes, it is confirmed that the AP hotspot name and the AP hotspot password can be used for wireless connection; A wireless connection and networking confirmation module is used for the slave device to connect to the wireless AP created by the host device based on the AP hotspot name and the AP hotspot password. After the connection is successful, the slave device sends a networking confirmation message to the host device to complete the wireless networking; A connection retry mechanism submodule, configured to cause the slave device to execute a preset retry mechanism in the event of a connection failure, wherein the retry mechanism includes setting a number of retries and executing a fault handling mechanism after the set number of retries is exhausted; A fault handling and resending request submodule, configured to, according to the fault handling mechanism, cause the slave device to send connection failure status information to the master device after a connection failure, and request resending of the AP hotspot name and the AP hotspot password; The AP configuration information re-decoding and connection submodule is configured to cause the slave device to re-decode and attempt to connect to the wireless AP after receiving the AP hotspot name and the AP hotspot password resent by the host device; The timeout mechanism and error prompt submodule is used for triggering the timeout mechanism of the slave device and providing an error prompt or generating a manual connection prompt message in the event of multiple connection failures.
6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the wireless connection method for acoustic wave encryption pairing for conference machine networking as described in any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the wireless connection method for acoustic wave encryption pairing for conference machine networking as claimed in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Method for connecting WI-FI network by intelligent hardware terminal based on sound waves and system for realizing same
CN104796888A
Acoustic configuration method and acoustic configuration system for Internet-of-things intelligent devices
CN106487454A