CN104602364B - The method and wireless device, intelligent terminal of wireless device connection wireless access point - Google Patents

The method and wireless device, intelligent terminal of wireless device connection wireless access point Download PDF

Info

Publication number
CN104602364B
CN104602364B CN201410855115.9A CN201410855115A CN104602364B CN 104602364 B CN104602364 B CN 104602364B CN 201410855115 A CN201410855115 A CN 201410855115A CN 104602364 B CN104602364 B CN 104602364B
Authority
CN
China
Prior art keywords
intelligent terminal
data frame
configuration information
audio signal
wireless device
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
CN201410855115.9A
Other languages
Chinese (zh)
Other versions
CN104602364A (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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN201410855115.9A priority Critical patent/CN104602364B/en
Publication of CN104602364A publication Critical patent/CN104602364A/en
Application granted granted Critical
Publication of CN104602364B publication Critical patent/CN104602364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses the methods and wireless device, intelligent terminal of wireless device connection wireless access point, this method comprises: intelligent terminal obtains the configuration information of wireless access point;Configuration information is packaged into data frame, voice modulation is carried out to data frame and obtains continuous audio signal, continuous audio signal is played by the pronunciation device of itself;Audio signal is received by the radio reception device of itself with the wireless device at a distance from intelligent terminal within a predetermined range;Audio demodulation is carried out to audio signal and obtains data frame, configuration information is extracted from data frame;Wireless access point is connected using configuration information.Technical solution of the present invention solves the problems, such as when the wireless device without human-computer interaction interface accesses AP wrong access that may be present, increased costs and complicated for operation.And this programme is not easily susceptible to the interference of ambient noise in the actual use environment using continuous audio signal transmission wireless aps configuration information, transmits the strong antijamming capability of configuration information.

Description

The method and wireless device, intelligent terminal of wireless device connection wireless access point
Technical field
The present invention relates to the wireless device communications field, in particular to the method for a kind of wireless device connection wireless access point and Wireless device, intelligent terminal.
Background technique
The method and step of usual wireless device access internet is: the first step, search periphery AP (wireless access point, Wireless Access Point);Second step, selected SSID (service set, the Service Set that access AP Identifier);Third step inputs the password of the wireless access point by man-machine interface.But wireless device is encountered without such as Keyboard, display screen etc. facilitate the case where man-machine interface of input and display, and which just becomes extremely complex.
Existing solution has: 1) exchanging matching for wireless access point by OOB (out of band data, Out of Band) Confidence breath.Out of band data is the data transmission that transport layer protocol uses when communicating a side has important data to need to notify other side Mode, transport layer protocol rapidly sends other side for these important data by out of band data, in order to send out of band data, Transport layer protocol does not use channel identical with general data generally, but uses additional channels, and common additional channels have NFC (close range wireless communication, Near Field Communication) and USB (universal serial bus, Universal Serial Bus) cable connects, and the shortcomings that this mode is and not all wireless device has a NFC and USB interface, and when realization needs to increase Add additional hardware cost.
2) scheme of another wireless device connection AP is: AP and wireless device all support a kind of realization secure connection skill Art, such as WPS technology (Wi-Fi protection setting, Wi-Fi Protected Setup), realize wireless device by the technology Access AP.But the defect of this scheme is: both wireless device and AP require the certification by the technology, either party It all cannot achieve wireless device and the connection of AP when unauthenticated, and there is also have multiple wireless devices all to use for the program The problem of being possibly connected to wrong AP when the technology.
Summary of the invention
The main purpose of the present invention is to provide a kind of wireless device connection wireless access point method and wireless device, Intelligent terminal, access that may be present mistake, cost increasing when the wireless device for solving without human-computer interaction interface accesses AP It is subject to and problem complicated for operation.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
The present invention provides a kind of methods of wireless device connection wireless access point, this method comprises:
The configuration information of intelligent terminal acquisition wireless access point;Configuration information is packaged into data frame, data frame is carried out Voice modulation obtains continuous audio signal, plays continuous audio signal by the pronunciation device of itself;
Audio signal is received by the radio reception device of itself with the wireless device at a distance from intelligent terminal within a predetermined range; Audio demodulation is carried out to audio signal and obtains data frame, configuration information is extracted from data frame;It is connected using configuration information wireless Access point.
Optionally, before intelligent terminal plays continuous audio signal by the pronunciation device of itself, method further include:
The volume range value that continuous audio signal is arranged in intelligent terminal is less than volume amplitude threshold;
The continuous audio signal of pronunciation device broadcasting that then intelligent terminal passes through itself includes:
Intelligent terminal plays continuous audio signal according to the volume range value of setting.
Optionally, this method further include:
The preset-key of intelligent terminal acquisition wireless device;
Intelligent terminal encrypts configuration information before configuration information is packaged into data frame, using preset-key, Encrypted data are packaged into data frame;
Data frame is decrypted using preset-key before extracting configuration information in data frame for wireless device, from Configuration information is extracted in the data frame decrypted.
Optionally, encrypted data are packaged into data frame according to predefined frame structure by intelligent terminal;
The data frame that wireless device is obtained according to predefined frame structure verification audio demodulation;
Wherein, the information that predefined frame structure includes is successively are as follows: lead code, length, serial number, type, elongated encryption The cyclic redundancy check of information and encryption information, wherein length, serial number and type configuration information head.
Optionally, encrypted data are packaged into data frame according to predefined frame structure and include: by intelligent terminal
Encrypted data are encapsulated in predefined frame structure by intelligent terminal, and are recycled to encrypted data Redundancy check calculates cyclic redundancy check, is added to frame end;
Wireless device verifies the data frame that audio demodulation obtains according to predefined frame structure
Wireless device carries out information header judgement to the data frame that audio demodulation obtains, and recalculates the school CRC to data frame Code is tested, is compared with frame end institute band cyclic redundancy check, data frame is decrypted using preset-key if all consistent.
Optionally, intelligent terminal carries out voice modulation to data frame and obtains audio signal and include: intelligent terminal is by data frame FSK audio signal is modulated by shift keying modulation transformation;
Wireless device carries out audio demodulation to obtain data frame including: that wireless device does FSK audio signal to audio signal Frequency shift-keying demodulation converts to obtain data frame.
Optionally, data frame is modulated into FSK audio signal and includes by intelligent terminal by shift keying modulation transformation:
Intelligent terminal distinguishes selecting frequency difference and is greater than the two frequency bins of predetermined threshold as first frequency and second frequency;
When by FSK modulation data frame, the digital signaling zero in the data flow of data frame is modulated to first frequency, it will In the modulation to second frequency of digital signal 1 in the data flow of data frame.
Optionally, the configuration information of wireless access point includes: service set SSID, authentication mode and authentication password;
The configuration information that intelligent terminal obtains wireless access point includes: that intelligent terminal is obtained by search wireless connection information To the service set SSID and authentication mode of wireless access point, intelligent terminal passes through itself after selected wireless access point interaction Interface receives the authentication password of the wireless access point of user's input;Alternatively, intelligent terminal is by the configuration information of wireless access point It is stored in advance in local, from middle acquisition is locally stored when needing;And
The preset-key that intelligent terminal obtains wireless device includes: that intelligent terminal is wirelessly set by the camera scanning of itself The mode of standby preset-key bar code obtains;Alternatively, intelligent terminal receives the nothing of user's input by the interactive interface of itself The mode of the preset-key of line equipment obtains.
The present invention also provides a kind of intelligent terminals, comprising:
Configuration information obtains module, for obtaining the configuration information of wireless access point;
Key Acquisition Module, for obtaining the preset-key of wireless device;
Encrypting module is encrypted for configuration information of the preset-key using acquisition to acquisition;
Package module, for encrypted data to be packaged into data frame according to predefined frame structure;
Modulation module, the data frame for obtaining encapsulation are modulated into FSK audio signal by shift keying modulation transformation;
Audio playing module, for playing FSK audio signal by the pronunciation device of itself.
Invention further provides a kind of wireless devices, comprising:
Audio receiving module, for receiving FSK audio signal by the radio reception device of itself, FSK audio signal is carried The configuration information of wireless access point;
Demodulation module converts to obtain data frame for doing frequency shift-keying demodulation to received FSK audio signal;
Parsing module, the data frame for being obtained according to the verification demodulation of predefined frame structure;
Deciphering module, the data frame for passing through to verification are decrypted using preset-key;
Configuration information extraction module, for extracting the configuration information of wireless access point from the data frame decrypted;
Link block, for connecting the wireless access point using the configuration information of the wireless access point extracted.
Technical solution of the present invention gets the configuration information of wireless access point by intelligent terminal, at the configuration information Continuous audio signal is managed into, and continuous audio signal is played by the pronunciation device of itself;In this way, with intelligent terminal away from The audio signal can be received by the radio reception device of itself from wireless device within a predetermined range, and handle reduction and obtain nothing The configuration information of line access point connects the wireless access point by the configuration information.This programme does not need to increase additional transmission Channel saves hardware cost, and access that may be present is wrong when solving the wireless device access AP without human-computer interaction interface Accidentally, increased costs and problem complicated for operation.And this programme uses continuous audio signal transmission wireless aps configuration information, In the actual use environment, it is not easily susceptible to the interference of ambient noise, transmits the strong antijamming capability of configuration information.
Detailed description of the invention
Fig. 1 is the method flow signal that a kind of wireless device provided by one embodiment of the present invention connects wireless access point Figure;
Fig. 2 is the method flow signal that a kind of wireless device that another embodiment of the present invention provides connects wireless access point Figure;
Fig. 3 is a kind of predefined frame structure schematic diagram provided by one embodiment of the present invention;
Fig. 4 is FSK audio coding schematic illustration provided by one embodiment of the present invention;
Fig. 5 is a kind of block diagram of intelligent terminal provided by one embodiment of the present invention;
A kind of Fig. 6 block diagram of wireless device provided by one embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Integral Thought of the invention is: utilizing the radio reception device building one of the pronunciation device and wireless device of intelligent terminal Item transmits the transmission channel of wireless access point AP configuration information, does not increase additional hardware cost, i.e., is obtained by intelligent terminal The configuration information is processed into continuous audio signal and played via the pronunciation device of itself by the configuration information of wireless aps, with The distance of intelligent terminal receives the audio signal by the radio reception device of itself in the wireless device of preset range, and from the audio The configuration information that wireless aps are restored in signal is connected to AP according to the configuration information, to solve without human-computer interaction circle The wireless device in face accesses access mistake, increased costs and problem complicated for operation that may be present when AP.
In an embodiment of the present invention, intelligent terminal can be smart phone, tablet computer etc. with pronunciation device (such as Loudspeaker) terminal device, wireless device can be support wireless communication technique and with radio reception device equipment (such as with The wireless acoustics of microphone), wherein wireless communication technique can be Wi-Fi, bluetooth, infrared etc..
Fig. 1 is the method flow schematic diagram that a kind of wireless device provided in an embodiment of the present invention connects wireless access point, ginseng See Fig. 1, the method for this wireless device connection wireless access point of the invention includes:
Step S110, intelligent terminal obtain the configuration information of wireless access point;
The configuration information is packaged into data frame by step S120, is carried out voice modulation to the data frame and is obtained continuously Audio signal;
Step S130 plays the continuous audio signal by the pronunciation device of itself;
Step S140, the wireless device at a distance from intelligent terminal within a predetermined range are received by the radio reception device of itself The audio signal;
Step S150 carries out audio demodulation to the audio signal and obtains data frame, configuration information is extracted from data frame;
Step S160 connects wireless access point using the configuration information.
By above-mentioned steps, wireless device access wireless aps are realized.This programme using intelligent terminal pronunciation device with And the radio reception device of wireless device constructs the transmission channel of a transmission wireless aps configuration information, does not increase hardware cost additionally, It solves access that may be present mistake, increased costs and operation when the wireless device without human-computer interaction interface accesses AP to answer Miscellaneous problem.And this programme is not easy in the actual use environment using continuous audio signal transmission wireless aps configuration information By the interference of ambient noise, the strong antijamming capability of configuration information is transmitted.
In addition, in order to reduce the influence for playing continuous audio signal to user and environment, in the present embodiment, at intelligent end Before end plays continuous audio signal by the pronunciation device of itself, this method further include:
The volume range value that continuous audio signal is arranged in intelligent terminal is less than volume amplitude threshold, according to the volume of setting Range value plays the continuous audio signal.
By adjusting the volume range value of continuous audio signal to volume amplitude threshold values is less than, intelligent end can reduce Hold the continuous audio signal issued to user and the possible interference of environment.For example, volume amplitude threshold values is 20 decibels, this In embodiment, the volume range value that continuous audio signal is arranged in intelligent terminal is 15 decibels < 20 decibels, and according to 15 decibels Volume range value plays the continuous audio signal.
Fig. 2 is the method flow schematic diagram that another wireless device provided in an embodiment of the present invention connects wireless access point, Referring to fig. 2, the method for this wireless device of the invention connection wireless access point includes:
Step S200, intelligent terminal obtain the configuration information of AP and the preset-key of wireless device;
Wherein, the configuration information of AP includes: the SSID (service set, Service Set Identifier) of AP, recognizes Card mode and authentication password.
The configuration information of intelligent terminal acquisition AP includes: the clothes that intelligent terminal gets AP by searching for wireless connection information Be engaged in set identifier SSID and authentication mode, select intelligent terminal after AP by the interactive interface of itself receive user's input this is wireless The authentication password of access point;Alternatively, the configuration information of AP is stored in advance in local by intelligent terminal, when needing from being locally stored It obtains;
Specifically, the authentication mode that intelligent terminal is supported by SSID and AP that the AP around scanning obtains AP, user After selected AP and authentication mode, the authentication password of selected AP is inputted on the interactive interface of intelligent terminal.Here user Need to know in advance the authentication password of the AP.
If it is domestic consumer, since the AP of domestic consumer is usually unique, wireless device is only possible to access this A unique AP, it is selected without user.In this way intelligent terminal can by the SSID for the AP that user selectes for the first time, authentication mode and The authentication password of input, which is recorded, to be saved in locally in case use in the future.It is wirelessly set when user reuses intelligent terminal control When standby access AP, there is no need to repeat selection and input authentication password.
The preset-key that intelligent terminal obtains wireless device includes: that intelligent terminal is wirelessly set by the camera scanning of itself The mode of standby preset-key bar code obtains;Alternatively, intelligent terminal receives the nothing of user's input by the interactive interface of itself The mode of the preset-key of line equipment obtains.
Specifically, intelligent terminal needs have the function of scanning bar code, (for example, intelligent terminal, which has, can read one The camera of dimension or two-dimensional code information) by scanning the preset-key bar code of wireless device to obtain the pre- of wireless device If key.Alternatively, user knows the preset-key of wireless device in advance, in this case, intelligent terminal can provide interactive boundary Face to user and receive user input wireless device preset-key.
Step S210, intelligent terminal encrypt the configuration information of AP and are packaged into data frame;
In order to guarantee the safety of data communication between intelligent terminal and wireless device, in the present embodiment, intelligent terminal is also To be added according to the preset-key of the wireless device got in step S200 using configuration information of the preset-key to AP It is close, encrypted data are then packaged into data frame.
Specifically, intelligent terminal can use AES (Advanced Encryption Standard, Advanced Encryption Standard) Encryption Algorithm encrypts the configuration information of AP, and AES uses symmetric block ciphers system, AES encryption data block block length It is necessary for 128 bits, key length can be 128 bits, 192 bits, any one in 256 bits, and aes algorithm is easy to logical Various hardware and softwares are crossed to realize.
After the configuration information encryption to AP, encrypted data are packaged by intelligent terminal according to predefined frame structure Data frame.Fig. 3 is a kind of predefined frame structure schematic diagram provided by one embodiment of the present invention;Referring to Fig. 3, this is predefined The information that frame structure includes is successively are as follows: lead code (6byte), length (2byte), serial number (2byte), type (2byte), elongated Encryption information and encryption information cyclic redundancy check, wherein totally six bytes constitute for three length, serial number and type fields The information header of data frame.Information header is existed using 1/3 forward error correction coding (Forward Error Correction, abbreviation FEC) In digital data transmission, outer signals interference protection signal integrity, will carry out multiple error correcting code setting in order to prevent.Forward direction entangles Wrong FEC is a very important anti-tampering algorithm, can reduce the bit error rate of digital signal by FEC forward error correction, is improved The reliability of signal transmission.
Step S220, intelligent terminal increase check code to data frame;
Encrypted data are encapsulated in predefined frame structure by intelligent terminal, and are recycled to encrypted data Redundancy check calculates cyclic redundancy check, is added to the end of frame.
Logarithm is gone back after step S210 obtains data frame in order to further increase the integrality and safety of data transmission The end of frame is attached to as cyclic redundancy check according to frame calculating CRC16 cyclic redundancy check code.Cyclic redundancy check be using division and The principle of remainder carries out error detection, and the code character received carries out division arithmetic and illustrated if divisible by receiving end It transmits errorless;If do not eliminated, show that transmission goes wrong.CRC16 is used for the verification to 8 bit strings of transmission.
The data frame for increasing check code is modulated into FSK audio signal by step S230, intelligent terminal;
The data frame for increasing check code is modulated into FSK audio signal by shift keying modulation transformation by intelligent terminal.
In the present embodiment, data frame is modulated into FSK audio signal by shift keying modulation transformation and includes by intelligent terminal: Intelligent terminal distinguishes selecting frequency difference and is greater than the two frequency bins of predetermined threshold as first frequency and second frequency;Pass through FSK When modulation data frame, the digital signaling zero in the data flow of data frame is modulated to first frequency, it will be in the data flow of data frame The modulation of digital signal 1 on second frequency.
Specific modulated process is: digital signaling zero being become the audio signal of a frequency, and digital signal 1 is become The audio signal of another frequency.By the method for the audio signal of the different frequency of digital signaling zero and 1 modulation, intelligence ensure that The audio signal of energy terminal plays is that continuously, i.e., intelligent terminal is when transmitting the configuration information of AP in the present embodiment, audio letter It number always exists.From the modulating transformation phase for the audio signal for digital signaling zero and 1 being modulated into existing scheme different amplitudes Than being to distinguish digital signal by the presence or absence of sound in existing scheme.It is modulated in the present embodiment using by digital signaling zero and 1 The method of the audio signal of different frequencies, in practical application, can guarantee that the signal of transmission is not easily susceptible to ambient noise Interference, to improve the accuracy and reliability of signal transmission.
Frequency shift keying fsk is with the modulation system of Digital Signals carrier frequency variation, and amplitude is constant, according to Whether the Phase Continuation of harmonic, frequency shift keying fsk is divided into two classes: the frequency of phase discontinuous frequency shift keying fsk and Phase Continuation Move keying FSK.Fig. 4 is FSK audio coding schematic illustration provided by one embodiment of the present invention, as shown in figure 4, uppermost Waveform indicates unmodulated preceding data, and what intermediate waveform indicated is carrier wave, and nethermost waveforms stands obtain after carrying out FSK modulation The signal arrived.
In the present embodiment, indicate that digital signaling zero, frequency f1=1200Hz indicate digital signal using frequency f0=2200Hz 1。
It is emphasized that the value of frequency f0 and f1 are the example data in one embodiment, in other embodiments In, other frequencies can be used, as long as guaranteeing that the frequency difference between the two frequencies is greater than predetermined threshold, so as to distinguish The corresponding audio signal of two digital signals (0 and 1) out.
It also, is the Binary Frequency Shift Keying (2FSK) that data frame is modulated into Phase Continuation in the present embodiment.At other In embodiment, data frame can also be modulated into the discontinuous Binary Frequency Shift Keying of phase, it is without limitation.
Step S240, intelligent terminal transmit audio signal by the pronunciation device of itself;
After step S230 has obtained audio signal, intelligent terminal passes through the audio signal of different frequency (f0, f1) It crosses after digital to analog conversion D/A and output is played by the pronunciation device of itself, so that the radio reception device of wireless device receives.
It is emphasized that according to step S230 it is found that intelligent terminal broadcasting is continuous audio signal, in order to eliminate It audio signal transmission anti-interference and avoid playing continuous audio signal user's bring is influenced, intelligent terminal is by audio The volume range value of signal is adjusted to volume amplitude threshold values is less than, that is, the volume of audio signal is arranged in certain volume range, The volume range value meets and if only if the pronunciation device of intelligent terminal and the radio reception device of wireless device in predetermined distance range Can communicate (export-receive voice signal), environment and user may be interfered so as to avoid volume is excessive.Nothing Line equipment and the predetermined distance range of intelligent terminal are to guarantee that intelligent terminal and wireless device are able to carry out the range of normal communication, For example, can be at a distance of 10 meters or 5 meters of range between wireless device and intelligent terminal.
Step S250, wireless device receive the audio signal that intelligent terminal plays by the radio reception device of itself;
Specifically, wireless device converts, sound after the radio reception device of itself receives the audio signal of simulation by A/D Frequency signal is transformed to digital signal.
Step S260, wireless device do the processing of FSK demodulation to the digital signal after analog to digital conversion A/D;
Specifically, obtained digital signal is FFT (fast Fourier transform, Fast Fourier by wireless device Transformation it) handles, i.e., by digital signal conversion to frequency domain, obtains frequency-region signal, frequency shift keying is done to frequency-region signal Demodulation transformation obtains data frame.FFT is the characteristics such as odd, even, empty, real according to discrete fourier transform, to Discrete Fourier Transform Algorithm improve acquisition.
Step S270, wireless device verify the data after demodulation according to the cyclic redundancy check in data frame;
Specifically, wireless device is judged by the information header of the data frame after demodulation;Wireless device according to information header, The numerical value of a CRC16 is recalculated to data frame, and is compared with the cyclic redundancy check at attached data frame end, if compared Result it is consistent, then by the data after the demodulation pass to step S280 processing.
The frame data by verifying are decrypted in step S280, wireless device;
Specifically, the configuration information that wireless device is AP encrypted to intelligent terminal is decrypted, and here, wireless device Decryption key used is derived by according to the content of the bar code of wireless device, this includes straight according to the content of bar code It connects to obtain or obtains decrypting key used by certain operation.
Step S290, wireless device extract the configuration information of AP from the data after decryption, and are connect according to the configuration information Enter AP;
Specifically, wireless device parses corresponding data frame, extracts user name, authentication password, authentication mode of AP etc. and match Confidence breath, and AP is accessed using the configuration information of AP.
By the above process, wireless device gets the configuration information of AP and is successfully accessed AP, does not increase additional hardware Cost realizes and controls wireless device access AP by intelligent terminal.
The present invention also provides a kind of intelligent terminal, Fig. 5 is a kind of intelligent terminal provided by one embodiment of the present invention Block diagram, referring to Fig. 5, which includes:
Configuration information obtains module 510, for obtaining the configuration information of wireless access point;
Key Acquisition Module 520, for obtaining the preset-key of wireless device;
Encrypting module 530 is encrypted for configuration information of the preset-key using acquisition to acquisition;
Package module 540, for encrypted data to be packaged into data frame according to predefined frame structure;
Modulation module 550, the data frame for obtaining encapsulation are modulated into FSK audio letter by shift keying modulation transformation Number;
Audio playing module 560, for playing FSK audio signal by the pronunciation device of itself.
In the present embodiment, configuration information obtains module 510 and is specifically used for, and is got wirelessly by searching for wireless connection information The service set SSID and authentication mode of access point, select wireless access point after by itself interactive interface receive user it is defeated The authentication password of the wireless access point entered;Alternatively, the configuration information of wireless access point is stored in advance in local, when needing from Middle acquisition is locally stored;Wherein, the configuration information of wireless access point includes: that service set SSID, authentication mode and certification are close Code.
Key Acquisition Module 520 scans the preset-key bar code of wireless device specifically for the camera by itself Mode obtain;Alternatively, being obtained in such a way that the interactive interface of itself receives the preset-key of the wireless device of user's input.
Encrypting module 530 is specifically used for, and the preset-key of the wireless device obtained according to Key Acquisition Module 520 is to utilization Preset-key encrypts configuration information.
Package module 540 is specifically used for, and encrypted data is encapsulated in predefined frame structure, and to encrypted Data carry out cyclic redundancy check and calculate cyclic redundancy check, are added to frame end;Wherein, the information that predefined frame structure includes Successively are as follows: lead code, length, serial number, type, the cyclic redundancy check of elongated encryption information and encryption information, wherein length, sequence Number and type configuration information head.
Modulation module 550 is specifically used for, and selecting frequency difference is greater than the two frequency bins of predetermined threshold as the first frequency respectively Rate and second frequency;When by FSK modulation data frame, the digital signaling zero in the data flow of data frame is modulated to first frequency On, it will be in the modulation to second frequency of digital signal 1 in the data flow of data frame.
This intelligent terminal provided in an embodiment of the present invention have sound-playing function, the configuration information of available AP, And played after the configuration information is processed into audio signal, after being received without the wireless device of human-computer interaction interface Reason restores the configuration information of AP, accesses AP using the configuration information, thus in the case where not increasing additional hardware cost, it is real Show and wireless device access AP is controlled by intelligent terminal, and intelligent terminal is matched using continuous audio signal transmission wireless aps Confidence breath, in the actual use environment, is not easily susceptible to the interference of ambient noise, transmits the strong antijamming capability of configuration information.
The present invention also provides a kind of wireless device, a kind of Fig. 6 block diagram of wireless device provided in an embodiment of the present invention, ginseng See Fig. 6, which includes:
Audio receiving module 610 receives FSK audio signal for the radio reception device by itself, and FSK audio signal carries There is the configuration information of wireless access point;
Demodulation module 620 converts to obtain data frame for doing frequency shift-keying demodulation to received FSK audio signal;
Parsing module 630, the data frame for being obtained according to the verification demodulation of predefined frame structure;
Deciphering module 640, the data frame for passing through to verification are decrypted using preset-key;
Configuration information extraction module 650, for extracting the configuration information of wireless access point from the data frame decrypted;
Link block 660, for connecting the wireless access point using the configuration information of the wireless access point extracted.
In the present embodiment, the configuration of the wireless access point carried in the FSK audio signal that audio receiving module 610 receives Information includes: service set SSID, authentication mode and authentication password.
Parsing module 630 is specifically used for, and carries out according to predefined frame structure to the data frame that audio signal demodulates Information header judgement, and cyclic redundancy check is recalculated to data frame, it is compared with frame end institute with cyclic redundancy check;Wherein, in advance The information that the frame structure of definition includes is successively are as follows: lead code, length, serial number, type, elongated encryption information and encryption information Cyclic redundancy check, wherein length, serial number and type configuration information head.
This wireless device of the embodiment of the present invention has sound receiver part, and what available intelligent terminal played includes The audio signal of the configuration information of AP, and the configuration information that AP is restored after the Audio Signal Processing is accessed into AP, be not in Access mistake.Improve the efficiency and speed of access AP.
In conclusion the method and wireless device, intelligence of this wireless device connection wireless access point provided by the invention Terminal constructs matching for a transmission wireless access point AP using the pronunciation device of intelligent terminal and the radio reception device of wireless device The transmission channel of confidence breath, does not increase hardware cost additionally, i.e., obtains the configuration information of AP by intelligent terminal, this is matched confidence Breath is processed into continuous audio signal and plays via the pronunciation device of itself, in the nothing of preset range at a distance from intelligent terminal Line equipment receives the continuous audio signal by the radio reception device of itself, and restores AP after handling the audio signal Configuration information, AP is fast and easily connected to according to the configuration information, to solve without the wireless of human-computer interaction interface Equipment accesses access mistake, increased costs and problem complicated for operation that may be present when AP.And this programme is using continuous Audio signal transmission wireless aps configuration information be not easily susceptible to the interference of ambient noise in the actual use environment, transmitting configuration The strong antijamming capability of information.
In preferred embodiment, the application is encrypted using the preset-key of wireless device, this symmetric key encryption algorithm Reach the confidentiality of data transmission, it is ensured that the safety of configuration information transmitting;The application is used according to predefined frame knot Encrypted configuration information is packaged into data frame by structure, can guarantee the reliability of configuration information transmitting;The application use will count Be modulated into FSK audio signal according to frame, FSK modulation method be it is a kind of it is simple, effectively more suitable for the modulation system of this scene, energy Enough improve the anti-interference ability of configuration information transmitting.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (7)

1. a kind of method of wireless device connection wireless access point, which is characterized in that this method comprises:
The configuration information of intelligent terminal acquisition wireless access point;The configuration information is packaged into data frame, to the data frame It carries out voice modulation and obtains continuous audio signal, the continuous audio signal is played by the pronunciation device of itself;
The audio signal is received by the radio reception device of itself with the wireless device at a distance from intelligent terminal within a predetermined range; Audio demodulation is carried out to the audio signal and obtains data frame, the configuration information is extracted from the data frame;Using described Configuration information connects the wireless access point;
This method further include: the preset-key of intelligent terminal acquisition wireless device;Intelligent terminal is encapsulated by the configuration information Before data frame, the configuration information is encrypted using the preset-key, and will be added according to predefined frame structure Data after close are packaged into data frame;
The wireless device verifies sound according to predefined frame structure before extracting the configuration information in the data frame Frequency demodulation obtains data frame, and the data frame is decrypted using preset-key, and institute is extracted from the data frame decrypted State configuration information;
Wherein, the information that the predefined frame structure includes is successively are as follows: lead code, length, serial number, type, elongated encryption The cyclic redundancy check of information and encryption information, wherein length, serial number and type configuration information head, and information header using before 1/3 to entangling Miscoding;
It includes: that intelligent terminal will add that encrypted data are packaged into data frame according to predefined frame structure by the intelligent terminal Data after close are encapsulated in the predefined frame structure, and are carried out cyclic redundancy check to encrypted data and calculated CRC Check code is added to frame end;The wireless device obtains data frame according to predefined frame structure verification audio demodulation Wireless device carries out information header judgement to the data frame that audio demodulation obtains, and recalculates cyclic redundancy check to data frame, with frame End institute band cyclic redundancy check is compared, and the data frame is decrypted using preset-key if all consistent.
2. the method according to claim 1, wherein described in being played in the pronunciation device that intelligent terminal passes through itself Before continuous audio signal, the method also includes:
The volume range value that the continuous audio signal is arranged in intelligent terminal is less than volume amplitude threshold;
The pronunciation device broadcasting continuous audio signal that then intelligent terminal passes through itself includes:
Intelligent terminal plays the continuous audio signal according to the volume range value of setting.
3. the method according to claim 1, wherein
The intelligent terminal obtains audio signal to data frame progress voice modulation: data frame is passed through frequency displacement by intelligent terminal Keying modulation transformation is modulated into FSK audio signal;
The wireless device carries out audio demodulation to obtain data frame including: wireless device to the FSK sound to the audio signal Frequency signal does frequency shift-keying demodulation and converts to obtain data frame.
4. according to the method described in claim 3, it is characterized in that, data frame is passed through shift keying modulation by the intelligent terminal Transformation is modulated into FSK audio signal and includes:
Intelligent terminal distinguishes selecting frequency difference and is greater than the two frequency bins of predetermined threshold as first frequency and second frequency;
When by FSK modulation data frame, the digital signaling zero in the data flow of data frame is modulated to first frequency, by data In the modulation to second frequency of digital signal 1 in the data flow of frame.
5. the method according to claim 1, wherein the configuration information of wireless access point includes: service set SSID, authentication mode and authentication password;
The configuration information that the intelligent terminal obtains wireless access point includes: that intelligent terminal is obtained by search wireless connection information To the service set SSID and authentication mode of wireless access point, intelligent terminal passes through itself after selected wireless access point interaction Interface receives the authentication password of the wireless access point of user's input;Alternatively, intelligent terminal is by the configuration information of wireless access point It is stored in advance in local, from middle acquisition is locally stored when needing;And
The preset-key that the intelligent terminal obtains wireless device includes: that intelligent terminal is wirelessly set by the camera scanning of itself The mode of standby preset-key bar code obtains;Alternatively, intelligent terminal receives the nothing of user's input by the interactive interface of itself The mode of the preset-key of line equipment obtains.
6. a kind of intelligent terminal characterized by comprising
Configuration information obtains module, for obtaining the configuration information of wireless access point;
Key Acquisition Module, for obtaining the preset-key of wireless device;
Encrypting module is encrypted for the configuration information of the preset-key using acquisition to acquisition;
Package module, for encrypted data to be packaged into data frame according to predefined frame structure;Package module is specifically used In, encrypted data are encapsulated in predefined frame structure, and to encrypted data carry out cyclic redundancy check calculating Cyclic redundancy check is added to frame end;Wherein, the information that predefined frame structure includes is successively are as follows: lead code, length, serial number, The cyclic redundancy check of type, elongated encryption information and encryption information, wherein length, serial number and type configuration information head, and information Head uses 1/3 forward error correction coding;
Modulation module, the data frame for obtaining encapsulation are modulated into FSK audio signal by shift keying modulation transformation;
Audio playing module, for playing the FSK audio signal by the pronunciation device of itself.
7. a kind of wireless device characterized by comprising
Audio receiving module, for receiving FSK audio signal by the radio reception device of itself, the FSK audio signal is carried The configuration information of wireless access point;
Demodulation module converts to obtain data frame for doing frequency shift-keying demodulation to the received FSK audio signal;
Parsing module, the data frame for being obtained according to the verification demodulation of predefined frame structure;Parsing module is specifically used for, according to Predefined frame structure carries out information header judgement to the data frame that audio signal demodulates, and recalculates CRC to data frame Check code is compared with frame end institute with cyclic redundancy check;Wherein, the information that predefined frame structure includes is successively are as follows: leading Code, length, serial number, type, the cyclic redundancy check of elongated encryption information and encryption information, wherein length, serial number and type are constituted Information header, and information header uses 1/3 forward error correction coding;
Deciphering module, the data frame for passing through to verification are decrypted using preset-key;
Configuration information extraction module, for extracting the configuration information of wireless access point from the data frame decrypted;
Link block, for connecting the wireless access point using the configuration information of the wireless access point extracted.
CN201410855115.9A 2014-12-31 2014-12-31 The method and wireless device, intelligent terminal of wireless device connection wireless access point Active CN104602364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410855115.9A CN104602364B (en) 2014-12-31 2014-12-31 The method and wireless device, intelligent terminal of wireless device connection wireless access point

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410855115.9A CN104602364B (en) 2014-12-31 2014-12-31 The method and wireless device, intelligent terminal of wireless device connection wireless access point

Publications (2)

Publication Number Publication Date
CN104602364A CN104602364A (en) 2015-05-06
CN104602364B true CN104602364B (en) 2018-12-25

Family

ID=53127755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410855115.9A Active CN104602364B (en) 2014-12-31 2014-12-31 The method and wireless device, intelligent terminal of wireless device connection wireless access point

Country Status (1)

Country Link
CN (1) CN104602364B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883720A (en) * 2015-05-29 2015-09-02 北京奇虎科技有限公司 Object network access method, object network access guiding and control methods, and corresponding terminals
CN104955044B (en) * 2015-05-29 2019-05-21 北京奇虎科技有限公司 Target network access and its guidance method and its corresponding terminal
CN105873047A (en) * 2015-10-21 2016-08-17 乐卡汽车智能科技(北京)有限公司 Wireless local area network user authentication method and system, and terminal device
CN105682188A (en) * 2016-01-19 2016-06-15 青岛海尔智能家电科技有限公司 WiFi network access method and device and WiFi access device
CN105790854B (en) * 2016-03-01 2018-11-20 济南中维世纪科技有限公司 A kind of short range data transmission method and device based on sound wave
CN106102047A (en) * 2016-05-24 2016-11-09 深圳聚点互动科技有限公司 A kind of self adaptation sound wave wireless network configuration method
CN106211223B (en) * 2016-07-13 2020-03-27 杭州索那声美科技有限公司 Method and device for wireless network configuration by using audio signal for communication terminal
CN106304078A (en) * 2016-08-12 2017-01-04 美的智慧家居科技有限公司 The method and apparatus of home appliance access network
CN108012263A (en) * 2016-10-28 2018-05-08 努比亚技术有限公司 A kind of method and terminal for transmitting data
CN108024120B (en) * 2016-11-04 2020-04-17 上海动听网络科技有限公司 Audio generation, playing and answering method and device and audio transmission system
CN108093400B (en) * 2016-11-22 2021-01-29 南宁富桂精密工业有限公司 Device and method for transmitting and receiving WiFi parameters
CN108174405B (en) * 2017-12-22 2021-06-29 歌尔科技有限公司 Product testing method and device
CN109982320A (en) * 2017-12-27 2019-07-05 田雪松 Verification information processing method and system
CN108494553B (en) * 2018-05-03 2020-09-01 深圳市无限动力发展有限公司 Intelligent sound box and encryption communication method thereof
CN112118610B (en) * 2019-06-19 2023-08-22 杭州萤石软件有限公司 Network distribution method and system for wireless intelligent equipment
CN111600662A (en) * 2020-04-13 2020-08-28 云知声智能科技股份有限公司 System and method for verifying and shortening WIFI hotspot information transmitted by sound waves through crc16
CN112533185B (en) * 2020-11-17 2023-11-07 国光电器股份有限公司 Sound network distribution method and device, computer equipment and storage medium
CN113938215B (en) * 2021-09-10 2023-10-03 佳格科技(浙江)股份有限公司 Multipath duplex acoustic wave communication system
CN114301773A (en) * 2021-12-29 2022-04-08 深圳市联洲国际技术有限公司 Configuration method of network equipment, device thereof and electronic equipment
CN115314379B (en) * 2022-08-10 2023-11-07 汉桑(南京)科技股份有限公司 Configuration method, system, device and medium for equipment parameters

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060078123A1 (en) * 2003-01-09 2006-04-13 Guillaume Bichot Method and apparatus for banding multiple access points
CN1930862A (en) * 2004-03-15 2007-03-14 讯宝科技公司 Method and apparatus for configuring a mobile device
CN103517377A (en) * 2012-06-30 2014-01-15 华为终端有限公司 Wireless network access method, Wifi access point and terminal
CN103795578A (en) * 2014-03-05 2014-05-14 广州天通智能技术有限公司 Method and system for setting wireless internet access of WIFI equipment, intelligent terminal and WIFI equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100595984B1 (en) * 2004-04-12 2006-07-03 한국전력공사 Transceiver Frame Structure for Control Communication Network of Distributed Control System

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060078123A1 (en) * 2003-01-09 2006-04-13 Guillaume Bichot Method and apparatus for banding multiple access points
CN1930862A (en) * 2004-03-15 2007-03-14 讯宝科技公司 Method and apparatus for configuring a mobile device
CN103517377A (en) * 2012-06-30 2014-01-15 华为终端有限公司 Wireless network access method, Wifi access point and terminal
CN103795578A (en) * 2014-03-05 2014-05-14 广州天通智能技术有限公司 Method and system for setting wireless internet access of WIFI equipment, intelligent terminal and WIFI equipment

Also Published As

Publication number Publication date
CN104602364A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
CN104602364B (en) The method and wireless device, intelligent terminal of wireless device connection wireless access point
Fomichev et al. Survey and systematization of secure device pairing
CN102223234B (en) Electronic signature system and method based on audio communication
CN102355308A (en) Information transmission method, receiving method and terminal equipment
CN107005927A (en) Cut-in method, equipment and the system of user equipment (UE)
CN104955044B (en) Target network access and its guidance method and its corresponding terminal
CN105227537A (en) Method for authenticating user identity, terminal and service end
CN105376059B (en) The method and system of application signature is carried out based on electron key
CN103354461A (en) Sound-based near field communication system and method thereof
CN103944723A (en) Bluetooth device authentication method and Bluetooth devices
CN109150508A (en) Equipment control and controlled method, device, computer equipment and storage medium
CN108093400B (en) Device and method for transmitting and receiving WiFi parameters
CN106817346A (en) Data transmission method and device and electronic equipment
CN104702373A (en) Device and method for using acoustic code to perform network configuration for equipment
CN112182624A (en) Encryption method, encryption device, storage medium and electronic equipment
US9949122B2 (en) Challenge-response-test image to phone for secure pairing
CN103929297A (en) Communication method, encryption method and device for POS and mobile terminal and POS
CN107508814A (en) Data ciphering method, decryption method, apparatus and system
CN105681256A (en) Audio communication method and audio communication application device
CN105657640A (en) Wireless network access parameter obtaining method and device of intelligent communication devices
CN203537408U (en) End-to-end voice communication privacy device with assignable secret key
EP3041185A1 (en) A method for authenticating a user equipment in order to established a secured communication session with a server
CN104980266A (en) Data communication method and system
CN115334480A (en) Bluetooth peripheral and central equipment and verification method
WO2018076242A1 (en) Information transmition method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268

Applicant after: Goertek Inc.

Address before: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268

Applicant before: Goertek Inc.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant