CN113098629B - Network distribution method, device and storage medium - Google Patents

Network distribution method, device and storage medium Download PDF

Info

Publication number
CN113098629B
CN113098629B CN202110351106.6A CN202110351106A CN113098629B CN 113098629 B CN113098629 B CN 113098629B CN 202110351106 A CN202110351106 A CN 202110351106A CN 113098629 B CN113098629 B CN 113098629B
Authority
CN
China
Prior art keywords
network configuration
frequency
data
gmsk
pcm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110351106.6A
Other languages
Chinese (zh)
Other versions
CN113098629A (en
Inventor
赵升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110351106.6A priority Critical patent/CN113098629B/en
Publication of CN113098629A publication Critical patent/CN113098629A/en
Application granted granted Critical
Publication of CN113098629B publication Critical patent/CN113098629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B14/00Transmission systems not characterised by the medium used for transmission
    • H04B14/02Transmission systems not characterised by the medium used for transmission characterised by the use of pulse modulation
    • H04B14/04Transmission systems not characterised by the medium used for transmission characterised by the use of pulse modulation using pulse code modulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/10Frequency-modulated carrier systems, i.e. using frequency-shift keying
    • H04L27/12Modulator circuits; Transmitter circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0631Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a network distribution method, a network distribution device and a storage medium, wherein network configuration information can be acquired through a first terminal; performing high-frequency Gaussian Minimum Shift Keying (GMSK) coding modulation on the network configuration information to obtain first coded data, and performing low-frequency GMSK coding modulation on the network configuration information to obtain second coded data; determining Pulse Code Modulation (PCM) sound wave data according to the first encoding data and the second encoding data; generating a playable audio file corresponding to the PCM sound wave data; and when the playable audio file is played, the generated sound wave is recorded by a second terminal to obtain the PCM sound wave data, so that the second terminal performs network configuration according to the PCM sound wave data.

Description

Network distribution method, device and storage medium
Technical Field
The present disclosure relates to the field of distribution networks based on acoustic communications, and in particular, to a distribution network method, device, and storage medium.
Background
The sound wave communication is a mode of transmitting data in a short distance by using sound signals, has the advantages of convenience, rapidness, low cost and the like, and is widely applied to the fields of smart home, a voiceprint anti-theft system, mobile phone sound wave payment and the like along with the rapid development of communication technology and the popularization of smart phones.
In the related art, when a network is distributed to intelligent equipment (such as an intelligent camera), in order to simplify the complexity of network distribution operation and save cost, the network can be distributed based on a sound wave communication technology.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a network distribution method, apparatus, and storage medium.
According to a first aspect of the embodiments of the present disclosure, a network distribution method is provided, which is applied to a first terminal, and includes acquiring network configuration information; performing high-frequency Gaussian Minimum Shift Keying (GMSK) coding modulation on the network configuration information to obtain first coded data, and performing low-frequency GMSK coding modulation on the network configuration information to obtain second coded data; determining Pulse Code Modulation (PCM) sound wave data according to the first encoding data and the second encoding data; generating a playable audio file corresponding to the PCM sound wave data; and when the playable audio file is played, the generated sound waves are recorded by a second terminal to obtain the PCM sound wave data, so that the second terminal performs network configuration according to the PCM sound wave data.
Optionally, the network configuration information includes network access information and user information associated with a terminal to be configured, where the performing high-frequency Gaussian Minimum Shift Keying (GMSK) coding modulation on the network configuration information to obtain first coded data, and performing low-frequency GMSK coding modulation on the network configuration information to obtain second coded data includes: acquiring a preset high-frequency central frequency and a preset low-frequency central frequency; performing high-frequency GMSK code modulation on the network access information and the user information according to the preset high-frequency center frequency to obtain first coded data; and performing low-frequency GMSK coding modulation on the network access information and the user information according to the preset low-frequency center frequency to obtain second coded data.
Optionally, said determining pulse code modulation PCM acoustic data from said first encoded data and said second encoded data comprises: generating high-frequency PCM data by the aid of an NCO (numerically controlled oscillator) according to a preset sound wave sampling rate through the first coded data, and generating low-frequency PCM data by the aid of the NCO according to the second coded data according to the preset sound wave sampling rate; and performing digital voice superposition on the high-frequency PCM data and the low-frequency PCM data to obtain the PCM sound wave data.
Optionally, before the performing the high-frequency gaussian minimum shift keying GMSK coding modulation on the network configuration information to obtain first encoded data, and performing the low-frequency GMSK coding modulation on the network configuration information to obtain second encoded data, the method further includes: carrying out Advanced Encryption Standard (AES) encryption processing on the network configuration information to obtain network configuration encryption information; adding a check code and a forward error correction code to the network configuration encryption information to obtain a network configuration data frame; the performing high-frequency Gaussian Minimum Shift Keying (GMSK) coding modulation on the network configuration information to obtain first coded data, and performing low-frequency GMSK coding modulation on the network configuration information to obtain second coded data includes: and performing high-frequency GMSK coding modulation on the network configuration data frame to obtain the first coding data, and performing low-frequency GMSK coding modulation on the network configuration data frame to obtain the second coding data.
Optionally, the adding a check code and a forward error correction code to the network configuration encryption information to obtain a network configuration data frame includes: generating a Cyclic Redundancy Check (CRC) 32 check code for the network configuration encryption information through byte XOR calculation, and generating the forward error correction code for the network configuration encryption information through a Forward Error Correction (FEC) algorithm; and generating the network configuration data frame according to the network configuration encryption information, the CRC32 check code and the forward error correction code.
According to a second aspect of the embodiments of the present disclosure, a network distribution method is provided, which is applied to a second terminal, and the method includes: recording a playable audio file played by a first terminal to obtain PCM sound wave data, wherein the PCM sound wave data are generated by the first terminal after performing high-frequency and low-frequency GMSK coding modulation on network configuration information respectively; GMSK demodulation is carried out on the PCM sound wave data to obtain a network configuration data frame; determining the network configuration information according to the network configuration data frame; and carrying out network configuration according to the network configuration information.
Optionally, the performing GMSK demodulation on the PCM acoustic data to obtain a network configuration data frame includes: and performing GMSK demodulation on the PCM sound wave data according to a preset frequency supported by the second terminal to obtain the network configuration data frame, wherein the preset frequency comprises high frequency or low frequency.
Optionally, the performing GMSK demodulation on the PCM acoustic data to obtain a network configuration data frame includes: and respectively carrying out high-frequency GMSK demodulation and low-frequency GMSK demodulation on the PCM sound wave data to obtain the network configuration data frame.
Optionally, the determining the network configuration information according to the network configuration data frame includes: performing CRC32 verification and FEC forward error correction processing on the network configuration data frame to obtain network configuration encryption information; and carrying out AES decryption processing on the network configuration encryption information to obtain the network configuration information.
According to a third aspect of the embodiments of the present disclosure, there is provided a distribution network apparatus applied to a first terminal, the apparatus including: a first obtaining module configured to obtain network configuration information; the encoding module is configured to perform high-frequency Gaussian Minimum Shift Keying (GMSK) encoding modulation on the network configuration information to obtain first encoded data, and perform low-frequency GMSK encoding modulation on the network configuration information to obtain second encoded data; a first determining module configured to determine Pulse Code Modulation (PCM) acoustic data from the first encoded data and the second encoded data; an audio generating module configured to generate a playable audio file corresponding to the PCM sound wave data; and the audio playing module is configured to acquire the PCM sound wave data after a sound wave generated when the playable audio file is played is recorded by a second terminal, so that the second terminal performs network configuration according to the PCM sound wave data.
Optionally, the network configuration information includes network access information and user information associated with a terminal to be configured, and the encoding module is configured to obtain a preset high-frequency center frequency and a preset low-frequency center frequency; performing high-frequency GMSK code modulation on the network access information and the user information according to the preset high-frequency center frequency to obtain first coded data; and performing low-frequency GMSK coding modulation on the network access information and the user information according to the preset low-frequency center frequency to obtain second coded data.
Optionally, the first determining module is configured to generate high-frequency PCM data by a numerically controlled oscillator NCO according to a preset acoustic wave sampling rate by using the first coded data, and generate low-frequency PCM data by the NCO according to the preset acoustic wave sampling rate by using the second coded data; and performing digital voice superposition on the high-frequency PCM data and the low-frequency PCM data to obtain the PCM sound wave data.
Optionally, the apparatus further comprises: the encryption module is configured to perform Advanced Encryption Standard (AES) encryption processing on the network configuration information to obtain network configuration encryption information; the processing module is configured to add a check code and a forward error correction code to the network configuration encryption information to obtain a network configuration data frame; the encoding module is configured to perform high-frequency GMSK encoding modulation on the network configuration data frame to obtain the first encoded data, and perform low-frequency GMSK encoding modulation on the network configuration data frame to obtain the second encoded data.
Optionally, the processing module is configured to generate a cyclic redundancy check CRC32 check code by performing a byte xor calculation on the network configuration encryption information, and generate the forward error correction code by using a forward error correction FEC algorithm on the network configuration encryption information; and generating the network configuration data frame according to the network configuration encryption information, the CRC32 check code and the forward error correction code.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a distribution network apparatus applied to a second terminal, the apparatus including: the second acquisition module is configured to acquire PCM sound wave data after recording a playable audio file played by a first terminal, wherein the PCM sound wave data are generated after the first terminal performs high-frequency and low-frequency GMSK modulation on network configuration information respectively; the decoding module is configured to perform GMSK demodulation on the PCM sound wave data to obtain a network configuration data frame; a second determining module configured to determine the network configuration information according to the network configuration data frame; and the distribution network module is configured to carry out network configuration according to the network configuration information.
Optionally, the decoding module is configured to perform GMSK demodulation on the PCM acoustic wave data according to a preset frequency supported by the second terminal to obtain the network configuration data frame, where the preset frequency includes a high frequency or a low frequency.
Optionally, the decoding module is configured to perform high-frequency GMSK demodulation and low-frequency GMSK demodulation on the PCM acoustic data, respectively, to obtain the network configuration data frame.
Optionally, the second determining module is configured to perform CRC32 check and FEC forward error correction processing on the network configuration data frame to obtain network configuration encryption information; and carrying out AES decryption processing on the network configuration encryption information to obtain the network configuration information.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a network distribution device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: acquiring network configuration information; performing high-frequency Gaussian Minimum Shift Keying (GMSK) coding modulation on the network configuration information to obtain first coding data, and performing low-frequency GMSK coding modulation on the network configuration information to obtain second coding data; determining Pulse Code Modulation (PCM) sound wave data according to the first encoding data and the second encoding data; generating a playable audio file corresponding to the PCM sound wave data; when the playable audio file is played, the generated sound waves are recorded by a second terminal to obtain the PCM sound wave data, so that the second terminal performs network configuration according to the PCM sound wave data; alternatively, the first and second electrodes may be,
the processor is configured to: recording a playable audio file played by a first terminal to obtain PCM sound wave data, wherein the PCM sound wave data are generated by performing high-frequency and low-frequency GMSK (Gaussian minimum shift keying) coding modulation on network configuration information by the first terminal; performing GMSK demodulation on the PCM sound wave data to obtain a network configuration data frame; determining the network configuration information according to the network configuration data frame; and carrying out network configuration according to the network configuration information.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the network distribution method provided by the first aspect of the present disclosure; alternatively, the program instructions, when executed by the processor, implement the steps of the network distribution method provided by the second aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: acquiring network configuration information through a first terminal; performing high-frequency Gaussian Minimum Shift Keying (GMSK) coding modulation on the network configuration information to obtain first coding data, and performing low-frequency GMSK coding modulation on the network configuration information to obtain second coding data; determining Pulse Code Modulation (PCM) sound wave data according to the first encoding data and the second encoding data; generating a playable audio file corresponding to the PCM sound wave data; when the playable audio file is played, the generated sound waves are recorded by the second terminal and then the PCM sound wave data are obtained, so that the second terminal carries out network configuration according to the PCM sound wave data, in this way, the network configuration information is coded by adopting high frequency and low frequency, the second terminal (namely, a terminal to be configured with a network) can obtain the network configuration information after receiving the sound waves as long as the data of one frequency is decoded, the detection rate of the network configuration information is improved, and the network distribution efficiency and the success rate of a network distribution are further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow diagram illustrating a first method of network distribution in accordance with an exemplary embodiment;
fig. 2 is a flow diagram illustrating a second method of network distribution in accordance with an exemplary embodiment;
fig. 3 is a flow diagram illustrating a third method of configuring a network in accordance with an example embodiment;
fig. 4 is a schematic view illustrating a scene interaction of a network for a smart camera by a mobile phone according to an exemplary embodiment;
fig. 5 is a block diagram illustrating a first type of distribution network apparatus in accordance with an exemplary embodiment;
fig. 6 is a block diagram illustrating a second type of distribution network apparatus in accordance with an exemplary embodiment;
fig. 7 is a block diagram illustrating a third network distribution apparatus in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating a configuration of a distribution network device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
First, the application scenario of the present disclosure is introduced, and the present disclosure is mainly applied to a scenario of a network distribution for intelligent devices (such as an intelligent camera, an intelligent sound box, etc.) based on a sound wave communication technology, and in the related technology, the sound wave network distribution is mainly performed based on a frequency code table, specifically, characters to be transmitted may be mapped into a frequency table, then corresponding characters are encoded by sound signals of corresponding frequencies to generate single-frequency sine waves, then the single-frequency sine wave sounds are played, a receiving party receives the sounds, identifies the frequencies, then decodes data according to a frequency table, for example, a sine wave of 800HZ may be mapped to a number 1, a sine wave of 900HZ may be mapped to a letter a, and a sine wave of 1000HZ may be mapped to a number 3, the character string 31a3 corresponds to 4 segments of sine waves, each segment of sine wave is specified to last for 100ms, the character string 31a3 corresponds to a sound segment of 400 ms, the receiving party records sound, the received sound is analyzed, four segments of sine wave frequencies of 1000hz,800hz,900hz and 1000hz are identified, then a code table is searched, the decoded character string is 31a3, however, only the character to be transmitted is coded based on one frequency, if the receiving end does not support the decoding of the frequency, the distribution network information detection rate is influenced, the problems of low distribution network information detection rate and low accuracy rate are caused, and the distribution network efficiency is low.
In order to solve the existing problems, the present disclosure provides a network distribution method, device and storage medium, which may obtain network configuration information through a first terminal (e.g., a smart phone); performing high-frequency GMSK (Gaussian Minimum Shift Keying) coding modulation on the network configuration information to obtain first coded data, and performing low-frequency GMSK coding modulation on the network configuration information to obtain second coded data; determining PCM (Pulse Code Modulation) sound wave data according to the first coded data and the second coded data; and generating a playable audio file corresponding to the PCM sound wave data, playing the playable audio file, and when the playable audio file is played, recording the generated sound wave by a second terminal to obtain the PCM sound wave data so that the second terminal performs network configuration according to the PCM sound wave data.
In addition, the method can also carry out AES (Advanced Encryption Standard) Encryption processing on the network configuration information to be transmitted, improves the safety of data communication, and can also improve the accuracy and the reliability of communication data transmission by adding check codes and forward error correction codes to the data to be transmitted.
Specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a network distribution method according to an exemplary embodiment, which is applied to a first terminal (e.g., a mobile phone), and as shown in fig. 1, the method includes the following steps:
in step S101, network configuration information is acquired.
The network configuration information may include network access information and user information associated with a terminal to be configured (i.e., a second terminal), specifically, the network access information may include a router ID and a password of a network to be connected to the second terminal, the user information may include encrypted information of a user name of a user who inputs the network configuration information, and in addition, the user information may also include information such as encrypted information of an area where the user is located.
In addition, the first terminal may combine the network configuration information input by the user into a character string of a specific format, so that the character string is generated into a playable audio file for playing by performing subsequent steps, and the specific format may be a preset internal data protocol format.
In step S102, the network configuration information is subjected to high-frequency GMSK code modulation to obtain first coded data, and the network configuration information is subjected to low-frequency GMSK code modulation to obtain second coded data.
In order to improve the detection rate of data, two frequencies (namely high frequency and low frequency) can be adopted to encode the network configuration data frame, so that after the second terminal receives sound, the second terminal can obtain the network configuration information as long as the data of one frequency is decoded, the detection rate of the network configuration information is improved, and the network distribution efficiency and the success rate of the network distribution are further improved.
In this step, a preset high-frequency center frequency and a preset low-frequency center frequency may be obtained; then, according to the preset high-frequency center frequency, high-frequency GMSK coding modulation is carried out on the network access information and the user information to obtain first coding data; and performing low-frequency GMSK coding modulation on the network access information and the user information according to the preset low-frequency center frequency to obtain the second coded data.
For example, the preset high-frequency center frequency may be 7200HZ, and the preset low-frequency center frequency may be 3200HZ, which are only exemplified here, and in practical applications, the high-frequency center frequency and the low-frequency center frequency may be arbitrarily set according to specific requirements.
In step S103, PCM acoustic wave data is determined from the first encoded data and the second encoded data.
In this step, the first coded data may be passed through an NCO (numerically controlled oscillator) at a preset acoustic sampling rate to generate high frequency PCM data, and the second coded data may be passed through the NCO at the preset acoustic sampling rate to generate low frequency PCM data; and performing digital voice superposition on the high-frequency PCM data and the low-frequency PCM data to obtain the PCM sound wave data.
The preset acoustic wave sampling rate can also be set according to actual requirements, and for example, can be set to 32K.
In step S104, a playable audio file corresponding to the PCM sound wave data is generated.
Wherein the playable audio files may include WAV audio files.
In this step, after the PCM sound wave data is written into a preset file, the WAV audio file may be generated by adding WAV file format header data to the PCM sound wave data.
In step S105, when the playable audio file is played, the generated sound wave is recorded by the second terminal to obtain the PCM sound wave data, so that the second terminal performs network configuration according to the PCM sound wave data.
By adopting the method, the first terminal encodes the network configuration information by adopting the high-frequency and the low-frequency, so that the second terminal can acquire the network configuration information by decoding the data of one frequency after receiving the sound, the detection rate of the network configuration information is improved, and the efficiency of the distribution network and the success rate of the distribution network are further improved.
Fig. 2 is a flowchart illustrating a network distribution method according to an exemplary embodiment, which is applied to a second terminal (e.g., a camera, a smart speaker, etc.), and as shown in fig. 2, the method includes the following steps:
in step S201, PCM sound wave data is obtained after recording a playable audio file played by a first terminal, where the PCM sound wave data is generated by the first terminal by performing high-frequency and low-frequency GMSK coding modulation on network configuration information, respectively.
In step S202, GMSK demodulation is performed on the PCM acoustic data to obtain a network configuration data frame.
In this step, the second terminal may perform GMSK demodulation on the PCM acoustic data in any one of the following two ways:
in the first mode, the GMSK demodulation is performed on the PCM acoustic data according to a preset frequency supported by the second terminal to obtain the network configuration data frame, where the preset frequency includes a high frequency or a low frequency.
And secondly, respectively carrying out high-frequency GMSK demodulation and low-frequency GMSK demodulation on the PCM sound wave data to obtain the network configuration data frame.
In step S203, the network configuration information is determined according to the network configuration data frame.
In this step, CRC32 check and FEC forward error correction processing may be performed on the network configuration data frame to obtain network configuration encryption information; and carrying out AES decryption processing on the network configuration encryption information to obtain the network configuration information.
In step S204, network configuration is performed according to the network configuration information.
By adopting the method, the first terminal encodes the network configuration information by adopting the high-frequency and the low-frequency, so that the second terminal can acquire the network configuration information by decoding the data of one frequency after receiving the sound, the detection rate of the network configuration information is improved, and the efficiency of the distribution network and the success rate of the distribution network are further improved.
Fig. 3 is a flowchart illustrating a method for distributing a network according to an exemplary embodiment, where in the embodiment illustrated in fig. 3, the first terminal is a mobile phone, and the second terminal is a camera, for example, to describe, that is, in the embodiment illustrated in fig. 3, a network distribution method provided by the present disclosure is described by taking a mobile phone as a camera, as illustrated in fig. 3, the method includes the following steps:
in step S301, the mobile phone acquires network configuration information.
The network configuration information may include network access information and user information associated with a terminal (i.e., a second terminal) to be configured with a network, specifically, the network access information may include a router ID and a password of a network to be connected to the camera, the user information may include encrypted information of a user name of a user who inputs the network configuration information, and in addition, the user information may further include information such as encrypted information of an area where the user is located, fig. 4 is a scene interaction diagram illustrating how a mobile phone performs network distribution for a smart camera according to an exemplary embodiment, as shown in fig. 4, in a specific network distribution scene, the camera is initialized first, the user may input the router ID, the password and other network configuration information in an interface of a mobile phone application program, and then, a mobile phone terminal may combine the network configuration information input by the user into a character string in a specific format, so as to generate a playable audio file based on the character string.
For example, the internal data protocol format may be b = xxxxx & s = xxxxx & p = xxxxx & r = xxxxx, where s and p fields are used to store character strings corresponding to router IDs and passwords, b field is used to store a character string corresponding to encryption information of a user name of a user who inputs the network configuration information, and r field is used to store a character string corresponding to encryption information of an area where the user who inputs the network configuration information is located, so that the network configuration information input by the user may be combined into a character string in a specific format, which is described in the above example only by way of example, and the disclosure is not limited thereto.
In step S302, the mobile phone performs AES encryption processing on the network configuration information to obtain network configuration encryption information.
In this step, in order to improve the security of data communication, the network configuration information to be transmitted may be encrypted, and the mobile phone may perform AES encryption on a character string of a specific format combined based on the network configuration information.
Any AES encryption algorithm such as AES128, AES256, AES192, etc. may be used to encrypt the character string, and the specific encryption process may refer to descriptions in related documents, which is not limited in this disclosure.
In step S303, a check code and a forward error correction code are added to the network configuration encryption information to obtain a network configuration data frame.
In order to improve the accuracy and the reliability of communication data transmission, a Check code and a forward error correction code may be added to the data to be transmitted, where the Check code may be a CRC (Cyclic Redundancy Check) 32 Check code, and the forward error correction code may be an FEC forward error correction code.
In this step, the mobile phone may generate a Cyclic Redundancy Check (CRC) 32 check code for the network configuration encryption information through byte exclusive-or calculation, and generate the forward error correction code for the network configuration encryption information through a Forward Error Correction (FEC) algorithm; and then combining the network configuration encryption information, the CRC32 check code and the FEC forward error correction code to obtain a network configuration data frame.
In step S304, the mobile phone performs high-frequency GMSK code modulation on the network configuration data frame to obtain the first encoded data, and performs low-frequency GMSK code modulation on the network configuration data frame to obtain the second encoded data.
In order to improve the detection rate of data, the network configuration data frame can be encoded by adopting two frequencies (namely high frequency and low frequency), so that after a camera end receives sound, the network configuration information can be obtained by decoding data of one frequency, the detection rate of the network configuration information is improved, and the efficiency of a distribution network and the success rate of the distribution network are further improved.
In this step, a preset high-frequency center frequency and a preset low-frequency center frequency may be obtained; then, according to the preset high-frequency central frequency, high-frequency GMSK coding modulation is carried out on the network configuration data frame to obtain first coding data; and performing low-frequency GMSK coding modulation on the network configuration data frame according to the preset low-frequency central frequency to obtain the second coding data.
For example, the preset high frequency center frequency may be 7200HZ, and the preset low frequency center frequency may be 3200HZ, which are only examples, and in practical applications, the high frequency center frequency and the low frequency center frequency may be set arbitrarily according to specific requirements.
In step S305, the mobile phone determines pulse code modulation PCM acoustic data from the first encoded data and the second encoded data.
In this step, the mobile phone may generate the high frequency PCM data by the NCO according to a preset acoustic wave sampling rate from the first encoded data, generate the low frequency PCM data by the NCO according to the preset acoustic wave sampling rate from the second encoded data, and then superimpose the digital voice on the high frequency PCM data and the low frequency PCM data to obtain the PCM acoustic wave data.
The preset acoustic wave sampling rate can also be set according to actual requirements, and for example, can be set to 32K.
In step S306, after writing the PCM sound wave data into a preset file, the mobile phone generates a WAV audio file by adding WAV file format header data to the PCM sound wave data, and plays the WAV audio file.
In order to enable the mobile phone end to normally play the generated PCM sound wave data, the PCM sound wave data also needs to be converted into a playable audio file in a preset audio format, for example, the preset audio format may be any audio format such as WAV and mp3, and in consideration of the fact that the audio file in the WAV format is not distorted, in order to further ensure the accuracy of data transmission, in this embodiment, the mobile phone may convert the PCM sound wave data into the WAV audio file.
The WAV file format may be specifically set according to experience and a preset sound wave sampling rate when the PCM sound wave data is generated by the NCO, for example, the WAV file format may be set to a mono channel/32K sampling rate/16-bit wide, which is only an example here, and the disclosure does not limit this.
In step S307, the camera records the WAV audio file played by the mobile phone to obtain PCM sound wave data.
The PCM sound wave data is generated by the mobile phone after network configuration information is subjected to high-frequency and low-frequency GMSK coding modulation respectively.
In a possible implementation manner of this step, the camera may first create a ring buffer queue, and may start two threads, one thread may call a BSP interface of the camera to record, collect PCM sound wave data, and set a format of the PCM sound wave data to be monaural/32K sampling rate/16 bit wide, the recorded data is written into the ring buffer queue, and the other thread may loop to read the ring buffer data, and perform S308 to complete data demodulation.
In step S308, the camera performs GMSK demodulation on the PCM acoustic data to obtain a network configuration data frame.
As described above, the mobile phone encodes the network location information by using two frequencies, i.e. high frequency + low frequency, and considering that the decoding frequencies supported by different cameras may be different, in this step, the camera may demodulate by using any one of the following two methods:
in the first mode, the PCM sound wave data is subjected to GMSK demodulation according to a preset frequency supported by the camera to obtain the network configuration data frame, where the preset frequency includes a high frequency or a low frequency.
In the first mode, assuming that the preset frequency supported by the camera is a low frequency, the PCM sound wave data encoded by the low frequency can be analyzed after the PCM sound wave data is decoded and modulated, and assuming that the preset frequency supported by the camera is a high frequency, the PCM sound wave data encoded by the high frequency can be analyzed after the PCM sound wave data is decoded and modulated, so that the camera is compatible with devices supporting different frequencies, and the detection rate of data is improved.
And secondly, respectively carrying out high-frequency GMSK demodulation and low-frequency GMSK demodulation on the PCM sound wave data to obtain the network configuration data frame.
In the second mode, it is assumed that the camera supports both high-frequency decoding and low-frequency decoding, and in order to further improve the detection rate of network configuration information data, high-frequency GMSK demodulation and low-frequency GMSK demodulation may be performed on the PCM sound wave data, so that network configuration information may be obtained as long as data of one frequency is decoded, and the success rate and efficiency of sound wave communication are improved.
In step S309, the camera performs CRC32 check and FEC forward error correction processing on the network configuration data frame to obtain network configuration encryption information; and carrying out AES decryption processing on the network configuration encryption information to obtain the network configuration information.
The specific implementation manner of this step may refer to the related descriptions in steps S302 and S303, and is not described herein again.
In step S310, network configuration is performed according to the network configuration information.
After the camera analyzes the network configuration information, the distribution network can be set according to the network configuration information.
By adopting the method, the mobile phone end can encode the network configuration information by adopting two frequencies, namely high frequency and low frequency, so that the network configuration information can be obtained as long as data of one frequency is decoded after the sound wave is received by the camera end, the detection rate of the network configuration information is improved, and the distribution network efficiency and the distribution network success rate are further improved.
In addition, the method can also carry out AES encryption processing on the network configuration information to be transmitted, improves the safety of data communication, and can also improve the accuracy and the reliability of communication data transmission by adding check codes and forward error correction codes to the data to be transmitted.
Fig. 5 is a block diagram of a distribution network apparatus according to an exemplary embodiment, applied to a first terminal, and as shown in fig. 5, the apparatus includes:
a first obtaining module 501 configured to obtain network configuration information;
the encoding module 502 is configured to perform high-frequency Gaussian Minimum Shift Keying (GMSK) encoding modulation on the network configuration information to obtain first encoded data, and perform low-frequency GMSK encoding modulation on the network configuration information to obtain second encoded data;
a first determining module 503 configured to determine pulse code modulation PCM acoustic data from the first encoded data and the second encoded data;
an audio generating module 504 configured to generate a playable audio file corresponding to the PCM sound wave data;
the audio playing module 505 is configured to obtain the PCM sound wave data after the sound wave generated when the playable audio file is played is recorded by the second terminal, so that the second terminal performs network configuration according to the PCM sound wave data.
Optionally, the network configuration information includes network access information and user information associated with a terminal to be configured, and the encoding module 502 is configured to obtain a preset high-frequency center frequency and a preset low-frequency center frequency; performing high-frequency GMSK coding modulation on the network access information and the user information according to the preset high-frequency center frequency to obtain first coded data; and performing low-frequency GMSK code modulation on the network access information and the user information according to the preset low-frequency center frequency to obtain the second coded data.
Optionally, the first determining module 503 is configured to generate high-frequency PCM data by the NCO through the numerically controlled oscillator NCO according to a preset acoustic wave sampling rate, and generate low-frequency PCM data by the NCO through the second encoded data according to the preset acoustic wave sampling rate; and performing digital voice superposition on the high-frequency PCM data and the low-frequency PCM data to obtain the PCM sound wave data.
Optionally, fig. 6 is a block diagram of a distribution network apparatus shown in the embodiment shown in fig. 5, and as shown in fig. 6, the apparatus further includes:
an encryption module 506, configured to perform advanced encryption standard AES encryption processing on the network configuration information to obtain network configuration encryption information;
a processing module 507 configured to add a check code and a forward error correction code to the network configuration encryption information to obtain a network configuration data frame;
the encoding module 502 is configured to perform high-frequency GMSK code modulation on the network configuration data frame to obtain the first encoded data, and perform low-frequency GMSK code modulation on the network configuration data frame to obtain the second encoded data.
Optionally, the processing module 507 is configured to generate a Cyclic Redundancy Check (CRC) 32 check code by byte exclusive-or calculation on the network configuration encryption information, and generate the forward error correction code by a Forward Error Correction (FEC) algorithm on the network configuration encryption information; and generating the network configuration data frame according to the network configuration encryption information, the CRC32 check code and the forward error correction code.
Fig. 7 is a block diagram of a distribution network apparatus according to an exemplary embodiment, applied to a second terminal, as shown in fig. 7, the apparatus including:
a second obtaining module 701, configured to obtain PCM sound wave data after recording a playable audio file played by a first terminal, where the PCM sound wave data is generated after the first terminal performs high-frequency and low-frequency GMSK coding modulation on network configuration information respectively;
a decoding module 702, configured to perform GMSK demodulation on the PCM acoustic data to obtain a network configuration data frame;
a second determining module 703 configured to determine the network configuration information according to the network configuration data frame;
and a distribution network module 704 configured to perform network configuration according to the network configuration information.
Optionally, the decoding module 702 is configured to perform GMSK demodulation on the PCM acoustic wave data according to a preset frequency supported by the second terminal to obtain the network configuration data frame, where the preset frequency includes a high frequency or a low frequency.
Optionally, the decoding module 702 is configured to perform high-frequency GMSK demodulation and low-frequency GMSK demodulation on the PCM acoustic data, respectively, to obtain the network configuration data frame.
Optionally, the second determining module 703 is configured to perform CRC32 check and FEC forward error correction processing on the network configuration data frame to obtain network configuration encryption information; and carrying out AES decryption processing on the network configuration encryption information to obtain the network configuration information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
By adopting the device, the first terminal can encode the network configuration information by adopting two frequencies, namely high frequency and low frequency, so that the second terminal can acquire the network configuration information after receiving the sound wave as long as data of one frequency is decoded, the detection rate of the network configuration information is improved, and the efficiency of a distribution network and the success rate of the distribution network are further improved.
In addition, the method can also carry out AES encryption processing on the network configuration information to be transmitted, improves the safety of data communication, and can also improve the accuracy and the reliability of communication data transmission by adding check codes and forward error correction codes to the data to be transmitted.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the network distribution method provided by the present disclosure.
Fig. 8 is a block diagram illustrating an apparatus 800 for a distribution network in accordance with an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, a camera, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the network distribution method described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a Microphone (MIC) configured to receive external audio signals when apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The apparatus 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the network distribution method described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned distribution network method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (20)

1. A network distribution method is applied to a first terminal, and comprises the following steps:
acquiring network configuration information;
performing high-frequency Gaussian Minimum Shift Keying (GMSK) coding modulation on the network configuration information to obtain first coded data, and performing low-frequency GMSK coding modulation on the network configuration information to obtain second coded data;
determining Pulse Code Modulation (PCM) sound wave data according to the first encoding data and the second encoding data;
generating a playable audio file corresponding to the PCM sound wave data;
and when the playable audio file is played, the generated sound wave is recorded by a second terminal to obtain the PCM sound wave data, so that the second terminal performs network configuration according to the PCM sound wave data.
2. The method of claim 1, wherein the network configuration information includes network access information and user information associated with a terminal to be configured, and the performing high-frequency Gaussian Minimum Shift Keying (GMSK) coding modulation on the network configuration information to obtain first encoded data and performing low-frequency GMSK coding modulation on the network configuration information to obtain second encoded data includes:
acquiring a preset high-frequency central frequency and a preset low-frequency central frequency;
performing high-frequency GMSK code modulation on the network access information and the user information according to the preset high-frequency center frequency to obtain first coded data; and performing low-frequency GMSK coding modulation on the network access information and the user information according to the preset low-frequency center frequency to obtain second coded data.
3. The method of claim 1, wherein said determining pulse code modulated PCM acoustic data from said first encoded data and said second encoded data comprises:
generating high-frequency PCM data by a digital control oscillator NCO according to the first coding data at a preset sound wave sampling rate, and generating low-frequency PCM data by the second coding data through the NCO according to the preset sound wave sampling rate;
and performing digital voice superposition on the high-frequency PCM data and the low-frequency PCM data to obtain the PCM sound wave data.
4. The method according to any of claims 1-3, wherein before said performing a Gaussian Minimum Shift Keying (GMSK) coded modulation of a high frequency on said network configuration information to obtain first encoded data and performing a GMSK coded modulation of a low frequency on said network configuration information to obtain second encoded data, said method further comprises:
carrying out Advanced Encryption Standard (AES) encryption processing on the network configuration information to obtain network configuration encryption information;
adding a check code and a forward error correction code to the network configuration encryption information to obtain a network configuration data frame;
the performing high-frequency Gaussian Minimum Shift Keying (GMSK) coding modulation on the network configuration information to obtain first coded data, and performing low-frequency GMSK coding modulation on the network configuration information to obtain second coded data includes:
and performing high-frequency GMSK modulation on the network configuration data frame to obtain the first encoding data, and performing low-frequency GMSK modulation on the network configuration data frame to obtain the second encoding data.
5. The method of claim 4, wherein adding a check code and a forward error correction code to the network configuration encryption information to obtain a network configuration data frame comprises:
generating a Cyclic Redundancy Check (CRC) 32 check code by byte exclusive or calculation on the network configuration encryption information, and generating the forward error correction code by a Forward Error Correction (FEC) algorithm on the network configuration encryption information;
and generating the network configuration data frame according to the network configuration encryption information, the CRC32 check code and the forward error correction code.
6. A network distribution method is applied to a second terminal, and comprises the following steps:
recording a playable audio file played by a first terminal to obtain PCM sound wave data, wherein the PCM sound wave data are generated by performing high-frequency and low-frequency GMSK (Gaussian minimum shift keying) coding modulation on network configuration information by the first terminal;
performing GMSK demodulation on the PCM sound wave data to obtain a network configuration data frame;
determining the network configuration information according to the network configuration data frame;
and carrying out network configuration according to the network configuration information.
7. The method of claim 6, wherein the GMSK demodulating the PCM acoustic data to obtain a network configuration data frame comprises:
and performing GMSK demodulation on the PCM sound wave data according to a preset frequency supported by the second terminal to obtain the network configuration data frame, wherein the preset frequency comprises high frequency or low frequency.
8. The method of claim 6, wherein the GMSK demodulating the PCM acoustic data to obtain a network configuration data frame comprises:
and respectively carrying out high-frequency GMSK demodulation and low-frequency GMSK demodulation on the PCM sound wave data to obtain the network configuration data frame.
9. The method according to any of claims 6-8, wherein said determining the network configuration information from the network configuration data frame comprises:
performing CRC32 verification and FEC forward error correction processing on the network configuration data frame to obtain network configuration encryption information;
and carrying out AES decryption processing on the network configuration encryption information to obtain the network configuration information.
10. A distribution network device, applied to a first terminal, the device comprising:
a first obtaining module configured to obtain network configuration information;
the encoding module is configured to perform high-frequency Gaussian Minimum Shift Keying (GMSK) encoding modulation on the network configuration information to obtain first encoded data, and perform low-frequency GMSK encoding modulation on the network configuration information to obtain second encoded data;
a first determination module configured to determine Pulse Code Modulation (PCM) acoustic wave data from the first encoded data and the second encoded data;
an audio generating module configured to generate a playable audio file corresponding to the PCM sound wave data;
and the audio playing module is configured to acquire the PCM sound wave data after a sound wave generated when the playable audio file is played is recorded by a second terminal, so that the second terminal performs network configuration according to the PCM sound wave data.
11. The apparatus according to claim 10, wherein the network configuration information includes network access information and user information associated with a terminal to be networked, and the encoding module is configured to obtain a preset high frequency center frequency and a preset low frequency center frequency; performing high-frequency GMSK coding modulation on the network access information and the user information according to the preset high-frequency center frequency to obtain first coded data; and performing low-frequency GMSK coding modulation on the network access information and the user information according to the preset low-frequency center frequency to obtain second coded data.
12. The apparatus according to claim 10, wherein the first determining module is configured to generate high frequency PCM data by a numerically controlled oscillator NCO with the first coded data at a preset acoustic sampling rate, and generate low frequency PCM data by the NCO with the second coded data at the preset acoustic sampling rate; and performing digital voice superposition on the high-frequency PCM data and the low-frequency PCM data to obtain the PCM sound wave data.
13. The apparatus of any one of claims 10-12, further comprising:
the encryption module is configured to perform Advanced Encryption Standard (AES) encryption processing on the network configuration information to obtain network configuration encryption information;
the processing module is configured to add a check code and a forward error correction code to the network configuration encryption information to obtain a network configuration data frame;
the encoding module is configured to perform high-frequency GMSK encoding modulation on the network configuration data frame to obtain the first encoded data, and perform low-frequency GMSK encoding modulation on the network configuration data frame to obtain the second encoded data.
14. The apparatus according to claim 13, wherein the processing module is configured to generate a Cyclic Redundancy Check (CRC) 32 check code by byte exclusive-or (XOR) calculation on the network configuration encryption information, and generate the forward error correction code by a Forward Error Correction (FEC) algorithm on the network configuration encryption information; and generating the network configuration data frame according to the network configuration encryption information, the CRC32 check code and the forward error correction code.
15. A network distribution apparatus, for use in a second terminal, the apparatus comprising:
the second acquisition module is configured to acquire PCM sound wave data after recording a playable audio file played by a first terminal, wherein the PCM sound wave data are generated after the first terminal performs high-frequency and low-frequency GMSK modulation on network configuration information respectively;
the decoding module is configured to perform GMSK demodulation on the PCM sound wave data to obtain a network configuration data frame;
a second determination module configured to determine the network configuration information from the network configuration data frame;
and the distribution network module is configured to carry out network configuration according to the network configuration information.
16. The apparatus of claim 15, wherein the decoding module is configured to perform GMSK demodulation on the PCM sonic data according to a preset frequency supported by the second terminal, so as to obtain the network configuration data frame, and the preset frequency includes a high frequency or a low frequency.
17. The apparatus according to claim 15, wherein the decoding module is configured to perform high-frequency GMSK demodulation and low-frequency GMSK demodulation on the PCM acoustic data, respectively, to obtain the network configuration data frame.
18. The apparatus according to any of claims 15-17, wherein the second determining module is configured to perform CRC32 check and FEC forward error correction on the network configuration data frame to obtain network configuration encryption information; and carrying out AES decryption processing on the network configuration encryption information to obtain the network configuration information.
19. A network distribution apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: acquiring network configuration information; performing high-frequency Gaussian Minimum Shift Keying (GMSK) coding modulation on the network configuration information to obtain first coded data, and performing low-frequency GMSK coding modulation on the network configuration information to obtain second coded data; determining Pulse Code Modulation (PCM) sound wave data according to the first encoding data and the second encoding data; generating a playable audio file corresponding to the PCM sound wave data; when the playable audio file is played, the generated sound waves are recorded by a second terminal to obtain the PCM sound wave data, so that the second terminal carries out network configuration according to the PCM sound wave data; alternatively, the first and second electrodes may be,
the processor is configured to: recording a playable audio file played by a first terminal to obtain PCM sound wave data, wherein the PCM sound wave data are generated by the first terminal after performing high-frequency and low-frequency GMSK coding modulation on network configuration information respectively; GMSK demodulation is carried out on the PCM sound wave data to obtain a network configuration data frame; determining the network configuration information according to the network configuration data frame; and carrying out network configuration according to the network configuration information.
20. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 5; alternatively, the program instructions, when executed by a processor, implement the steps of the method of any one of claims 6 to 9.
CN202110351106.6A 2021-03-31 2021-03-31 Network distribution method, device and storage medium Active CN113098629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110351106.6A CN113098629B (en) 2021-03-31 2021-03-31 Network distribution method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110351106.6A CN113098629B (en) 2021-03-31 2021-03-31 Network distribution method, device and storage medium

Publications (2)

Publication Number Publication Date
CN113098629A CN113098629A (en) 2021-07-09
CN113098629B true CN113098629B (en) 2022-12-27

Family

ID=76672947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110351106.6A Active CN113098629B (en) 2021-03-31 2021-03-31 Network distribution method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113098629B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114005469A (en) * 2021-10-20 2022-02-01 广州市网星信息技术有限公司 Audio playing method and system capable of automatically skipping mute segment
CN114301773A (en) * 2021-12-29 2022-04-08 深圳市联洲国际技术有限公司 Configuration method of network equipment, device thereof and electronic equipment
CN115001625A (en) * 2022-05-12 2022-09-02 Oppo广东移动通信有限公司 Information transmission method, information transmission device, storage medium, and electronic apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683294A (en) * 2013-11-27 2015-06-03 阿里巴巴集团控股有限公司 Data processing method and system
CN104702373A (en) * 2015-02-28 2015-06-10 深圳市宝德软件开发有限公司 Device and method for using acoustic code to perform network configuration for equipment
CN108988957A (en) * 2018-07-20 2018-12-11 广州市欧智智能科技有限公司 One kind being based on chirped air acoustic communication coding method
CN108988958A (en) * 2018-08-20 2018-12-11 广东工业大学 A kind of sound wave communication method and device
CN111573448A (en) * 2020-03-19 2020-08-25 北京声智科技有限公司 Elevator control method, elevator equipment and terminal equipment
CN112565135A (en) * 2020-05-22 2021-03-26 苏州迪芬德物联网科技有限公司 Sound wave frequency modulation communication system and communication method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640923A (en) * 2009-08-20 2010-02-03 深圳华为通信技术有限公司 Method and device for acquiring network configuration information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683294A (en) * 2013-11-27 2015-06-03 阿里巴巴集团控股有限公司 Data processing method and system
CN104702373A (en) * 2015-02-28 2015-06-10 深圳市宝德软件开发有限公司 Device and method for using acoustic code to perform network configuration for equipment
CN108988957A (en) * 2018-07-20 2018-12-11 广州市欧智智能科技有限公司 One kind being based on chirped air acoustic communication coding method
CN108988958A (en) * 2018-08-20 2018-12-11 广东工业大学 A kind of sound wave communication method and device
CN111573448A (en) * 2020-03-19 2020-08-25 北京声智科技有限公司 Elevator control method, elevator equipment and terminal equipment
CN112565135A (en) * 2020-05-22 2021-03-26 苏州迪芬德物联网科技有限公司 Sound wave frequency modulation communication system and communication method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
2.4GHz无线VoIP发射器和接收器的开发;葛海江;《机电工程》;20130120(第01期);全文 *

Also Published As

Publication number Publication date
CN113098629A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN113098629B (en) Network distribution method, device and storage medium
US9843583B2 (en) System and method for authentication across devices
CN104852911B (en) Safe verification method, apparatus and system
CN108243481B (en) File transmission method and device
KR101306119B1 (en) Apparatus for offering information using short message service in portable terminal and Method thereof
US9406305B2 (en) Messaging by writing an image into a spectrogram
WO2018227547A1 (en) Method and device for determining time of transmitting synchronization block, , user equipment and base station
US20210326429A1 (en) Access control method and device, electronic device and storage medium
EP3338258A1 (en) System and method for audio signal mediated interactions
CN106296170A (en) The method of Quick Response Code payment, Apparatus and system
CN107819740B (en) Terminal device verification method, terminal device, sound box, server and medium
CN110086549A (en) Audio data transmission method and device
CN110049062A (en) Verify code check method, device, electronic equipment and storage medium
TW201607357A (en) Toning control method of WiFi device setting by smart device
CN110278273B (en) Multimedia file uploading method, device, terminal, server and storage medium
WO2018130048A1 (en) Contact adding method, electronic device and server
CN112533185B (en) Sound network distribution method and device, computer equipment and storage medium
CN108469991B (en) Multimedia data processing method and device
CN104967966B (en) A kind of method and device of binding bluetooth equipment
CN111050209A (en) Multimedia resource playing method and device
US20240064519A1 (en) Method and apparatus for verifying personal identification number pin code
CN107704911A (en) Generation, read method and the device of Quick Response Code
CN110392299B (en) Volume processing method and device, electronic equipment and storage medium
WO2018018636A1 (en) Information writing method and device
CN106507027A (en) Video calling recording method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant