Voice network distribution method and system for intelligent equipment
Technical Field
The disclosure relates to the field of internet of things and sound wave communication, in particular to a network distribution method and system for voice of intelligent equipment.
Background
With the rapid development of the internet of things and the AI technology, more and more intelligent hardware is produced, such as an intelligent sound box and the like, and actively appears in various intelligent home scenes. Networking is necessary when many intelligent hardware is playing an intelligent role in an intelligent home scenario. Traditional distribution network mode takes the input device such as screen can the direct input wifi ssid and passsword. For the intelligent hardware of the input device, the network is generally distributed through Ap or promiscuous mode, and some devices with bluetooth can be distributed through bluetooth. However, the traditional distribution network mode has the following disadvantages:
1) ap or mixed mode distribution network needs to switch the working mode of wifi back and forth, so that the distribution network efficiency is low;
2) the distribution network mode generally needs to be assisted by third-party equipment such as a mobile phone, but due to the problems of hardware or system versions of the third-party equipment and the like, the distribution network failure rate is high, and in addition, the operation of the ios equipment in an Ap distribution network mode is very complicated;
3) the problem of router setting, such as Ap isolation or channel setting, also causes network distribution failure, which is often difficult to solve by common users;
4) because wifi is in a fixed 2.4G frequency band, Ap or a hybrid mode distribution network, wifi passwords and other information are circularly sent in a broadcasting or multicasting mode generally, data is easy to be stolen by packet capture, and the safety factor is low;
based on the above problems, with the development of the voice technology, a plurality of novel network distribution modes based on the voice technology appear in succession. Because pronunciation are a big data entry of thing networking, more and more smart machines all have collection and pronunciation functions such as microphone and speaker, adopt speech technology to join in marriage the net, some problems that meet when can evade traditional smart machine and join in marriage the net, but also bring new technical bottleneck and defect simultaneously:
1) the network is distributed by people, the safety factor is very low, the network can be easily stolen by others, and even if an encryption algorithm is used, the encryption method which is fixed conventionally is easy to crack;
2) the frequency band of the common human voice is between 85 Hz and 1100Hz, and the frequency band has a lot of external noises such as television, sound and the like, and the background noises of the equipment such as thermal noise, alternating current noise, mechanical noise and the like, so that the interference sources are too many and the requirement of voice noise reduction is higher;
under the condition of the prior art, after the intelligent equipment is awakened by an awakening word, multi-round voice interaction is carried out, and the distribution network can be completed.
Disclosure of Invention
The invention aims to provide a voice network distribution method and system of intelligent equipment, and aims to improve the security and efficiency of network distribution.
The technical purpose of the present disclosure is achieved by the following technical solutions:
a voice network distribution method of intelligent equipment comprises the following steps:
triggering a distribution network function of the first networked device, and acquiring current timestamp Ts and current wifi information;
the Ts and the characters are combined and coded to be converted into Ts ', and the Ts' is encrypted by using an encryption algorithm to generate a dynamic encryption key;
encrypting the wifi information by using the dynamic encryption key to generate a dynamic encryption sequence info-data;
performing DAC digital-to-analog conversion on the dynamic encryption sequence info-data to generate low-frequency PCM original audio;
the first equipment sends out a sound of a wake-up word to wake up second equipment of a network to be distributed, and the low-frequency PCM original audio is played in a circulating mode;
after the second device is awakened, ADC analog-to-digital conversion is carried out on the low-frequency PCM original audio to obtain the dynamic encryption sequence info-data, the dynamic encryption sequence info-data is decrypted to obtain the wifi information, the second device is started to be networked according to the wifi information, after the networking is successful, the second device sends information that the network is successfully distributed to the first device, and the first device stops playing.
Further, the encryption process of the dynamic encryption sequence info-data comprises:
encrypting the Ts' by using a first encryption algorithm to generate dynamic encryption keys data-s and data-p;
generating a random number by using a random algorithm, wherein the random number is mapped with a second encryption algorithm;
encrypting the data-s and the data-p using the second encryption algorithm to generate data-s 'and data-p';
performing interval interpolation processing on the data-s 'and the data-p' to synthesize a characteristic identification data frame data-k of the current distribution network;
the wifi information comprises a wifi name info-s and a password character info-p, the info-s and the info-p respectively use the data-s and the data-p as secret keys and are encrypted by adopting the second encryption algorithm to generate a characteristic identification sequence frame s-info-s and s-info-p;
the s-info-s, the s-info-p, and the data-k are the dynamic encrypted sequence info-data, and the first device performs DAC digital-to-analog conversion on the dynamic encrypted sequence info-data to generate low-frequency PCM raw audio A, B, C.
Further, the first encryption algorithm is an MD5 algorithm.
Further, the frequency of the low frequency PCM is below 250 Hz.
Further, comprising:
taking the low-frequency PCM original audio as a modulation wave, and modulating a sine wave carrier wave with a fixed frequency to obtain a modulation wave audio signal, wherein the fixed frequency is less than 15 kHz;
the first equipment sends out sound of a wake-up word to wake up second equipment of a network to be distributed, and the modulation wave audio signal is played circularly;
after the second device is awakened, the modulation wave audio signal is demodulated and signal parameter analysis is carried out, the modulation wave audio signal with the first signal parameter score is selected to carry out ADC analog-to-digital conversion to obtain the dynamic encryption sequence info-data, the dynamic encryption sequence info-data is decrypted to obtain the wifi information, the second device is started to be networked according to the wifi information, after the networking is successful, the second device sends information that the network is successfully distributed to the first device, and the first device stops playing.
Further, the fixed frequencies are nine, and are 1kHz, 2kHz, 3kHz, 4kHz, 5kHz, 6kHz, 7kHz, 8kHz, and 9kHz, respectively.
A network system is joined in marriage to pronunciation of smart machine includes:
a signal processor, namely a CPU, a control center and an operation center of the system;
the first equipment triggers the distribution network function of the first equipment which is already connected with the network, and acquires the current timestamp Ts and the current wifi information;
the encryption system is used for carrying out combined encoding on the Ts and the characters to convert the Ts' into a dynamic encryption key by using an encryption algorithm; encrypting the wifi information by using the dynamic encryption key to generate a dynamic encryption sequence info-data;
the DAC is arranged on the first equipment or independently arranged, and is used for performing DAC conversion on the dynamic encryption sequence to generate low-frequency PCM original audio;
the second equipment comprises a sound acquisition unit, receives the sound of the awakening word sent by the first equipment so as to be awakened;
the ADC analog-to-digital converter is arranged on the second equipment or is independently arranged, and after the second equipment is awakened, ADC analog-to-digital conversion is carried out on the low-frequency PCM original audio to obtain the dynamic encryption sequence info-data;
and the decryption system is used for decrypting the dynamic encryption sequence info-data to obtain the wifi information, transmitting the wifi information to the second equipment, and the second equipment starts networking according to the wifi information.
Further, the encryption system includes:
a first encryption unit that encrypts Ts' using a first encryption algorithm to generate dynamic encryption keys data-s and data-p;
a second encryption unit comprising:
generating a random number by using a random algorithm, wherein the random number is mapped with a second encryption algorithm;
encrypting the data-s and the data-p using the second encryption algorithm to generate data-s 'and data-p';
performing interval interpolation processing on the data-s 'and the data-p' to synthesize a characteristic identification data frame data-k of the current distribution network;
the wifi information comprises a wifi name info-s and a password character info-p, the info-s and the info-p respectively use the data-s and the data-p as secret keys and are encrypted by adopting the second encryption algorithm to generate a characteristic identification sequence frame s-info-s and s-info-p;
the s-info-s, the s-info-p, and the data-k are the dynamic encrypted sequence info-data, and the first device performs DAC digital-to-analog conversion on the dynamic encrypted sequence info-data to generate low-frequency PCM raw audio A, B, C.
Further, the first encryption algorithm is an MD5 algorithm.
Further, the frequency of the low frequency PCM is below 250 Hz.
Further, the first device comprises a modulator, which modulates a sine wave carrier wave with a fixed frequency by using the low-frequency PCM original audio frequency as a modulation wave to obtain a modulation wave audio signal, wherein the fixed frequency is less than 15 kHz;
the second device comprises a band-pass filter and a frequency discriminator, after the second device is awakened, the modulation wave audio signal is demodulated through the band-pass filter and the frequency discriminator, the signal processor analyzes the signal parameters, the modulation wave audio signal with the first signal parameter score is selected to be subjected to ADC, and the dynamic encryption sequence info-data is obtained.
Further, the fixed frequencies are nine, and are 1kHz, 2kHz, 3kHz, 4kHz, 5kHz, 6kHz, 7kHz, 8kHz, and 9kHz, respectively.
Further, the number of the second devices is at least one.
In conclusion, the beneficial effects of the present disclosure are: the method and the system for the voice network distribution of the intelligent equipment obtain a current timestamp Ts and current wifi information of first equipment which is networked, an encryption system encodes and encrypts the Ts to obtain a dynamic encryption key, the wifi information is encrypted by using the dynamic encryption key to obtain a dynamic encryption sequence, and then the dynamic encryption sequence is subjected to digital-to-analog conversion to generate low-frequency PCM original audio; the first equipment sends out the sound of the awakening word to awaken the second equipment of the network to be distributed, and meanwhile, the first equipment circularly plays the low-frequency PCM original audio. And after the second equipment is awakened, performing analog-to-digital conversion on the low-frequency PCM original audio to obtain the dynamic encryption sequence, decrypting the dynamic encryption sequence by the decryption system to obtain wifi information, networking the second equipment according to the wifi information, sending a successful distribution network message to the first equipment after the second equipment is successfully networked, and stopping playing by the first equipment. The method and the system are used for distribution network, so that the safety in the process of distribution network is greatly improved, and the efficiency of distribution network is also improved.
Drawings
FIG. 1 is a flow chart of the disclosed method;
FIG. 2 is a schematic diagram of an embodiment of the disclosed method;
FIG. 3 is a schematic diagram of a second embodiment of the disclosed method;
FIG. 4 is a schematic view of the disclosed system;
FIG. 5 is a schematic diagram of an embodiment of the disclosed system;
FIG. 6 is a schematic diagram of a second embodiment of the disclosed system;
fig. 7 is a third schematic diagram of the disclosed system embodiment.
Detailed Description
The present disclosure is described in further detail below with reference to the attached drawing figures.
It is to be understood that in the description of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated, but merely as being used to distinguish between different elements.
Fig. 1 is a schematic flow diagram of the method, which is used for triggering a distribution network function of a first device that is networked, acquiring information of a current timestamp Ts and wifi, performing combinatorial coding on Ts and characters to convert the information into Ts ', encrypting the Ts' with an encryption algorithm to generate a dynamic encryption key, and encrypting the wifi information with the dynamic encryption key to generate a dynamic encryption sequence info-data. Performing DAC digital-to-analog conversion on the dynamic encryption sequence info-data to generate low-frequency PCM original audio; meanwhile, the first device sends out a sound of a wake-up word, for example, the wake-up word can be 'small dimension and small dimension', the second device of the network to be distributed is woken up, and the original audio is played in a circulating mode. After the second device is awakened, ADC analog-to-digital conversion is carried out on the original audio to obtain a dynamic encryption sequence info-data, the dynamic encryption sequence is decrypted to obtain wifi information, the second device is started to be networked according to the wifi information, after the networking is successful, the second device sends information of successful distribution to the first device, and the first device stops playing.
The first embodiment of the method comprises the following steps:
as shown in fig. 2, the encryption process of the dynamic encryption sequence info-data is divided into several steps, and Ts' is first encrypted by using a first encryption algorithm to generate dynamic encryption keys data-s and data-p; in addition, a random number is generated by using a random algorithm, a second encryption algorithm is mapped on the random number, the data-s and the data-p are encrypted by using the second encryption algorithm to generate data-s 'and data-p', and the data-s 'and the data-p' are subjected to interval interpolation processing to synthesize a feature identification data frame data-k of the current distribution network.
Acquiring the name info-s and password characters info-p of wifi information which are connected currently, wherein the info-s and info-p respectively use the data-s and the data-p as keys and are encrypted by adopting a second encryption algorithm to generate a characteristic identification sequence frame s-info-s and s-info-p; and the s-info-s, the s-info-p and the data-k are dynamic encrypted sequence info-data, and DAC audio transcoding is carried out on the dynamic encrypted sequence info-data to generate low-frequency PCM original audio A, B, C.
Here, DAC audio transcoding for s-info-s corresponds to low frequency PCM original audio A, s-info-p for B, data-k for C, and A, B, C are all low frequency PCM in the 250Hz range. The process steps after obtaining the low frequency PCM raw audio are the same as those shown in fig. 1.
The second method embodiment:
FIG. 3 is a schematic diagram of a second embodiment, in which after obtaining a low-frequency PCM original audio frequency, the low-frequency PCM original audio frequency within 250Hz generated by s-info-s, s-info-p and data-k is used as a modulation wave to sequentially modulate nine sine wave carriers of fixed frequencies, i.e. 1kHz, 2kHz, 3kHz, 4kHz, 5kHz, 6kHz, 7kHz, 8kHz and 9 kHz; wherein the fixed frequency is within 15kHz, s-info-s corresponds to 1kHz, 4kHz and 7kHz, s-info-p corresponds to 2kHz, 5kHz and 8kHz, and the rest three frequency points correspond to data-k; the contents in the three frequency points of 1kHz, 4kHz and 7kHz are the same and are all s-info-s, the contents in the frequency points of 2kHz, 5kHz and 8kHz are all the contents of s-info-p, and the contents in the frequency points of 3kHz, 6kHz and 9kHz are all data-k.
After the work is finished, the first equipment sends out sound of a wake-up word of 'small dimension and small dimension', wakes up the second equipment of the network to be distributed, and circularly plays modulated wave audio signals of 9 frequency points. After the second device is awakened, firstly, the modulated wave audio signals of 9 frequency points are demodulated, and then the low-frequency PCM original audio is obtained after the demodulation. Because the data content in every 3 frequency points in the 9 frequency points is the same, the demodulated low-frequency PCM original audio can be subjected to audio quality parameter analysis such as signal-to-noise ratio, and an optimal group of data is selected. And performing analog-to-digital conversion on the selected optimal data to obtain a dynamic encryption sequence info-data, and then decrypting the dynamic encryption sequence info-data.
Fig. 4 is a schematic diagram of the system of the present disclosure, where the voice distribution network system of the present disclosure includes a signal processor, an encryption system, a decryption system, a first device, a second device, a DAC digital-to-analog converter, and an ADC analog-to-digital converter, where the second device includes a sound collection unit, and the signal processor is connected to other components. The DAC may be provided independently or on a first device, and likewise the ADC may be provided independently or on a second device.
The first embodiment of the system:
fig. 5 is a schematic diagram of a first embodiment of the system of the present disclosure, and as shown in fig. 5, the encryption system includes a first encryption unit and a second encryption unit, and the first encryption unit and the second encryption unit refer to the first embodiment of the method of the present disclosure in the encryption process.
The second embodiment of the system:
second embodiment as shown in fig. 6, the first device further includes a modulator, where the modulator modulates a sine wave carrier wave with a fixed frequency by using an original audio frequency as a modulation wave to obtain a modulation wave audio signal; the second device comprises a band-pass filter and a frequency discriminator, the band-pass filter and the frequency discriminator demodulate modulation wave audio signals after the second device is awakened, the signal processor performs parameter analysis on the demodulated signals, selects a group of signals with optimal parameters, and then the ADC performs analog-to-digital conversion on the selected group of signals, and the specific process refers to the second embodiment of the method.
The third embodiment of the system:
fig. 7 is a third schematic diagram of an embodiment of the system of the present disclosure, and as can be seen from fig. 7, a plurality of second devices to be networked can be woken up and networked by a first device already networked, and not limited to a certain second device. On the other hand, the roles of the first device and the second device can be interchanged, the second device is a device already networked, the first device is a device to be networked, namely, after any device is networked, other devices can be awakened and networked, and all devices are provided with parts such as a DAC (digital-to-analog converter), an ADC (analog-to-digital converter) and a sound acquisition unit, so that the devices can be awakened and networked or other devices can be awakened and networked at any time.
The foregoing is a description of several exemplary embodiments of the present disclosure, the scope of which is defined by the claims and their equivalents.