The present invention relates to communication technical field, particularly relate to a kind of Wi-Fi link information sharing method and dress
Put.
Summary of the invention
A kind of Wi-Fi link information sharing method of offer and device are provided, it is intended to
Simple and fast carry out sharing of Wi-Fi account and password.
For achieving the above object, the present invention provides a kind of Wi-Fi link information sharing method, this Wi-Fi
Link information sharing method comprises the following steps:
Detecting when sharing instruction of Wi-Fi link information, terminal obtains Wi-Fi link to be shared
Information, wherein, described Wi-Fi link information at least includes Wi-Fi account and Wi-Fi password;
The described Wi-Fi link information obtained is performed the encoding operation by described terminal, carries described with generation
The acoustic signals of Wi-Fi link information;
Described terminal exports described acoustic signals, receives and parses through out described acoustic signals for other terminal
The Wi-Fi link information carried.
Optionally, before described terminal obtains the step of Wi-Fi link information to be shared, also include:
Preset frequency of sound wave and the mapping relations of Wi-Fi link information;
The step that the described Wi-Fi link information obtained is performed the encoding operation by described terminal includes:
The described terminal mapping relations based on default frequency of sound wave and the Wi-Fi link information institute to obtaining
State Wi-Fi link information to perform the encoding operation.
Optionally, described Wi-Fi link information sharing method also includes:
When the reception detecting Wi-Fi link information instructs, described terminal receives and parses through other terminal
The acoustic signals of output;
When successfully resolved, the Wi-Fi link information that described terminal storage parses.
Optionally, after the step of the Wi-Fi link information that described terminal storage parses, also include:
When the Wi-Fi Hotspot that the described Wi-Fi link information detecting storage is corresponding can use, described end
End group is set up Wi-Fi in the described Wi-Fi link information stored with described Wi-Fi Hotspot and is connected.
Optionally, while performing the Wi-Fi link information that described terminal storage parses, also perform
Following steps:
Described terminal output Wi-Fi link information receives successful information.
Additionally, for achieving the above object, the present invention also provides for a kind of Wi-Fi link information sharing apparatus,
Described Wi-Fi link information sharing apparatus includes:
Acquisition module, is used for when when the sharing instruction of Wi-Fi link information detecting its place terminal,
Obtaining Wi-Fi link information to be shared, wherein, described Wi-Fi link information at least includes Wi-Fi
Account and Wi-Fi password;
Coding module, for performing the encoding operation the described Wi-Fi link information obtained, takes to produce
Acoustic signals with described Wi-Fi link information;
Output module, is used for exporting described acoustic signals, receives and parses through out described sound for other terminal
The Wi-Fi link information that ripple signal carries.
Optionally, described Wi-Fi link information sharing apparatus also includes:
Presetting module, for presetting frequency of sound wave and the mapping relations of Wi-Fi link information;
Described coding module is additionally operable to based on default frequency of sound wave and the mapping relations of Wi-Fi link information
The described Wi-Fi link information obtained is performed the encoding operation.
Optionally, described Wi-Fi link information sharing apparatus also includes:
Parsing module, for when the reception instruction detecting Wi-Fi link information based on its place terminal
Time, receive and parse through the acoustic signals of other terminal output;
Memory module, is used for when successfully resolved, the Wi-Fi link information that storing and resolving goes out.
Optionally, described Wi-Fi link information sharing apparatus also includes:
Link block, for the Wi-Fi Hotspot corresponding at the described Wi-Fi link information detecting storage
Time available, described Wi-Fi link information based on storage is set up Wi-Fi with described Wi-Fi Hotspot and is connected.
Optionally, described Wi-Fi link information sharing apparatus also includes:
Reminding module, is used for while the Wi-Fi link information that described memory module storing and resolving goes out,
Output Wi-Fi link information receives successful information.
The present invention enters by producing acoustic signals after treating the Wi-Fi link information shared and performing the encoding operation
Row output, receives and parses through out the Wi-Fi link information entrained by acoustic signals for other terminal, its
In, Wi-Fi link information at least includes Wi-Fi account and Wi-Fi password, compared to prior art, this
Invention is remembered Wi-Fi account and password without user and is manually entered Wi-Fi account and password so that
Share Wi-Fi account between user and password is simpler fast.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit
Determine the present invention.
The present invention provides a kind of Wi-Fi link information sharing method, with reference to Fig. 1, at Wi-Fi of the present invention
In the first embodiment of link information sharing method, this Wi-Fi link information sharing method includes:
Step S10, detecting when sharing instruction of Wi-Fi link information, terminal obtains to be shared
Wi-Fi link information, wherein, described Wi-Fi link information at least includes that Wi-Fi account and Wi-Fi are close
Code;
It should be noted that the terminal described in the present embodiment can be mobile phone, notebook computer, numeral wide
Broadcast receptor, PDA (personal digital assistant), PAD (panel computer), PMP (portable multimedia broadcasting
Put device) etc. mobile terminal.Such as, it is applied to when the Wi-Fi link information sharing method that the present invention is provided
During parking by mobile phone, parking by mobile phone user is when sharing Wi-Fi account number cipher, it is not necessary to be manually entered Wi-Fi account
Password, simple to operate, it is possible to increase Consumer's Experience.Wherein, parking by mobile phone is a vehicle intelligent hardware,
Generally carry Android system to run.
In the specific implementation, user can be shared interface chosen by the Wi-Fi link information that terminal is preset
The Wi-Fi link information of Wi-Fi Hotspot to be shared is shared, and wherein, Wi-Fi link information is at least
Including Wi-Fi account and Wi-Fi password, in addition, it can include the bandwidth of this Wi-FI focus, MAC
(Media Access Control, media interviews control) information such as address and port is concrete by reality
Needs are configured.Terminal detect user trigger when sharing instruction of Wi-Fi link information, obtain
Take the Wi-Fi link information of the Wi-Fi Hotspot to be shared that family is chosen.
Step S20, the described Wi-Fi link information obtained is performed the encoding operation by described terminal, to produce
The raw acoustic signals carrying described Wi-Fi link information;
In the present embodiment, terminal is after getting Wi-Fi link information, to the Wi-Fi link obtained
Information performs the encoding operation to produce acoustic signals so that the acoustic signals of generation carries Wi-Fi link letter
Which kind of coding rule breath, wherein, use, with specific reference to being actually needed selection, but, for guaranteeing coding
Information can correctly be resolved, and coding information transmitting terminal and coding information receiving end need to use identical volume
Code rule.
Step S30, described terminal exports described acoustic signals, receives and parses through out institute for other terminal
State the Wi-Fi link information that acoustic signals carries.
After completing the encoding operation of Wi-Fi link information and producing acoustic signals, terminal output coding
The acoustic signals produced, receives and parses through out, for other terminal, the Wi-Fi chain that described acoustic signals carries
Connecing information, concrete, other terminal, when receiving acoustic signals, uses afore-mentioned code operation identical
Coding rule can parse its Wi-Fi link information entrained by acoustic signals received.Easy to understand
, the Wi-Fi link information that the use of other terminal parses can be corresponding with this Wi-Fi link information
Wi-Fi Hotspot set up Wi-Fi connect, to access network.Wherein, terminal export acoustic signals time,
Directly can play acoustic signals by the speaker arranged, accordingly, for realizing acoustic signals output, need
Want the sound wave sending function that user opens a terminal in advance, or complete the coding of Wi-Fi link information
When operation and current sound wave sending function are closed, terminal automatically open up sound wave sending function.
The Wi-Fi link information sharing method that the present embodiment proposes is by treating the Wi-Fi link letter shared
Breath produces acoustic signals after performing the encoding operation and exports, and receives and parses through out sound wave for other terminal
Wi-Fi link information entrained by signal, wherein, Wi-Fi link information at least include Wi-Fi account and
Wi-Fi password, compared to prior art, the present invention remembers Wi-Fi account and password and hands without user
Dynamic input Wi-Fi account and password so that share Wi-Fi account between user and password is simpler soon
Prompt.
Further, based on first embodiment, the of Wi-Fi link information sharing method of the present invention is proposed
Two embodiments, in the present embodiment, before step S10, also include:
Preset frequency of sound wave and the mapping relations of Wi-Fi link information;
Step S10 includes:
The described terminal mapping relations based on default frequency of sound wave and the Wi-Fi link information institute to obtaining
State Wi-Fi link information to perform the encoding operation.
It will be appreciated by persons skilled in the art that acoustic signals is generally determined by characteristic quantity loudness and tone.
Wherein, the size (being commonly called as volume) of the subjective perceived sounds of loudness i.e. people, by " amplitude " and people from sound
The distance in source determines, the biggest loudness of amplitude is the biggest, and the distance of people and sound source is the least, and loudness is the biggest;Tone
I.e. people's subjective perceived sounds height (high pitch, bass), is determined by " frequency ", frequency gets over high-pitched tone
The highest.For realizing sharing accurately of Wi-Fi link information, reduce the error that external interference causes, this
Embodiment builds the coding rule of Wi-Fi link information based on frequency.
Concrete, the present embodiment builds the coding rule of Wi-Fi link information based on unifrequency acoustic signals,
Such as, it is stipulated that the sinusoidal wave corresponding numeral 1 of 1500Hz, the sinusoidal wave corresponding numeral 2,1700Hz of 1600Hz
Sinusoidal wave corresponding numeral 3 etc., then numeric string 3123 with regard to corresponding 4 band frequencies be followed successively by 1700Hz,
The sine wave of 1500Hz, 1600Hz and 1700Hz.In the specific implementation, for guaranteeing the sound wave of output
Signal can accurately be received and parsed through, it is stipulated that every period of sinusoidal wave persistent period is 100ms, then " 3123 "
The acoustic segment of corresponding 400 milliseconds.
After the coding rule that acoustic signals is set, when needing to share Wi-Fi link information, can make
Treat the Wi-Fi link information shared to perform the encoding operation, such as with this coding rule, it is stipulated that 1400Hz
Corresponding numeral 0, the sinusoidal wave corresponding numeral 1 of 1500Hz, the sinusoidal wave corresponding numeral 2 of 1600Hz,
The sinusoidal wave corresponding numeral 3 etc. of 1700Hz, Wi-Fi account to be shared is " 021 ", Wi-Fi password
For " 123 ", then the Wi-Fi account after coding is that frequency is followed successively by 1400Hz, 1600Hz and 1500Hz
Acoustic segment, the Wi-Fi password after coding is that frequency is followed successively by 1500Hz, 1600Hz and 1700Hz
Acoustic segment.
Further, owing to Wi-Fi link information at least includes Wi-Fi password and Wi-Fi account,
When coding rule is set, the sine wave of 20KHz can be set as default blank character (or by reality
Need the acoustic signals that corresponding frequencies is set as blank character), i.e. when coding, at Wi-Fi password and
Need between Wi-Fi account to add blank character to show differentiation.
Further, based on first or second embodiments, the Wi-Fi link information side of sharing of the present invention is proposed
3rd embodiment of method, in the present embodiment, described Wi-Fi link information sharing method also includes:
When the reception detecting Wi-Fi link information instructs, described terminal receives and parses through other terminal
The acoustic signals of output;
When successfully resolved, the Wi-Fi link information that described terminal storage parses.
It should be noted that terminal described in this enforcement both can as the sender of Wi-Fi link information,
Can also be as the recipient of Wi-Fi link information.In the present embodiment, divide when user needs to receive the other side
During the Wi-Fi link information enjoyed, interface can be shared by the Wi-Fi link information that terminal is preset and open
Acoustic receiver function, now will trigger the reception instruction of Wi-Fi link information, and terminal receives other terminal
The acoustic signals of output;After receiving the acoustic signals of other terminal output, terminal uses reception
The coding rule that acoustic signals is identical is decoded, and parses the Wi-Fi link letter that this acoustic signals carries
Breath;When successfully resolved, the Wi-Fi link information that terminal storage parses, can make when needed
Set up Wi-Fi with this Wi-Fi link information with corresponding Wi-Fi Hotspot to connect.
Further, in the present embodiment, the reception state of Wi-Fi link information is understood for ease of user,
Promote user's Consumer's Experience, while performing the Wi-Fi link information that described terminal storage parses, also
Execution following steps:
Described terminal output Wi-Fi link information receives successful information.
Further, in this embodiment, for reducing user operation further, Consumer's Experience is promoted, at this
In embodiment, after the step of the Wi-Fi link information that described terminal storage parses, also include:
When the Wi-Fi Hotspot that the described Wi-Fi link information detecting storage is corresponding can use, described end
End group is set up Wi-Fi in the described Wi-Fi link information stored with described Wi-Fi Hotspot and is connected.
The present invention also provides for a kind of Wi-Fi link information sharing apparatus, with reference to Fig. 2, at Wi-Fi of the present invention
In the first embodiment of link information sharing apparatus, described Wi-Fi link information sharing apparatus includes:
Acquisition module 10, is used for when when the sharing instruction of Wi-Fi link information detecting its place terminal,
Obtaining Wi-Fi link information to be shared, wherein, described Wi-Fi link information at least includes Wi-Fi
Account and Wi-Fi password;
It should be noted that the terminal described in the present embodiment can be mobile phone, notebook computer, numeral wide
Broadcast receptor, PDA (personal digital assistant), PAD (panel computer), PMP (portable multimedia broadcasting
Put device) etc. mobile terminal.Concrete, Wi-Fi link information sharing apparatus is built in terminal operating.Such as,
When the Wi-Fi link information sharing apparatus present invention provided is applied to parking by mobile phone, parking by mobile phone user exist
When sharing Wi-Fi account number cipher, it is not necessary to be manually entered Wi-Fi account number cipher, simple to operate, it is possible to carry
High Consumer's Experience.Wherein, parking by mobile phone is a vehicle intelligent hardware, generally carries Android system and runs.
In the specific implementation, user can be shared interface chosen by the Wi-Fi link information that terminal is preset
The Wi-Fi link information of Wi-Fi Hotspot to be shared is shared, and wherein, Wi-Fi link information is at least
Including Wi-Fi account and Wi-Fi password, in addition, it can include the bandwidth of this Wi-FI focus, MAC
(Media Access Control, media interviews control) information such as address and port is concrete by reality
Needs are configured.Acquisition module 10 is detecting the Wi-Fi link that user triggers based on its place terminal
When sharing instruction of information, obtain the Wi-Fi link information of the Wi-Fi Hotspot to be shared that user chooses.
Coding module 20, for performing the encoding operation the described Wi-Fi link information obtained, to produce
Carry the acoustic signals of described Wi-Fi link information;
In the present embodiment, after acquisition module 10 gets Wi-Fi link information, coding module 20
Perform the encoding operation to produce acoustic signals to the Wi-Fi link information obtained so that the sound wave letter of generation
Number carry Wi-Fi link information, wherein, use which kind of coding rule, with specific reference to being actually needed selection,
But, for guaranteeing that coding information can correctly be resolved, coding information transmitting terminal and coding information receiving end
Need to use identical coding rule.
Output module 30, is used for exporting described acoustic signals, receives and parses through out described for other terminal
The Wi-Fi link information that acoustic signals carries.
After coding module 20 completes the encoding operation of Wi-Fi link information and produces acoustic signals, defeated
Go out the acoustic signals that module 30 output coding produces, receive and parse through out described sound wave letter for other terminal
Number Wi-Fi link information carried, concrete, other terminal is when receiving acoustic signals, before employing
State the identical coding rule of encoding operation and can parse its Wi-Fi chain entrained by acoustic signals received
Connect information.It is easily understood that the Wi-Fi link information that the use of other terminal parses can be with this
The Wi-Fi Hotspot that Wi-Fi link information is corresponding is set up Wi-Fi and is connected, to access network.Wherein, output
Module 30 is when exporting acoustic signals, and the speaker that can be directly arranged by its place terminal is play sound wave and believed
Number, accordingly, for realizing acoustic signals output, need the sound wave sending function that user opens a terminal in advance,
Or when the encoding operation and current sound wave sending function completing Wi-Fi link information is closed, by defeated
Go out module 30 and automatically open up the sound wave sending function of its place terminal.
The Wi-Fi link information sharing apparatus that the present embodiment proposes is by by Wi-Fi link letter to be shared
Produce acoustic signals after breath coding and export, receiving and parsing through out entrained by acoustic signals for other terminal
Wi-Fi link information, wherein, Wi-Fi link information at least includes Wi-Fi account and Wi-Fi password,
Compared to prior art, the present invention remembers Wi-Fi account and password without user and is manually entered Wi-Fi
Account and password so that share Wi-Fi account between user and password is simpler fast.
Further, based on first embodiment, the of Wi-Fi link information analytical equipment of the present invention is proposed
Two embodiments, in the present embodiment, described Wi-Fi link information sharing apparatus also includes:
Presetting module, for presetting frequency of sound wave and the mapping relations of Wi-Fi link information;
Described coding module 20 is additionally operable to mapping based on default frequency of sound wave and Wi-Fi link information and closes
It is that the described Wi-Fi link information obtained is performed the encoding operation.
It will be appreciated by persons skilled in the art that acoustic signals is generally determined by characteristic quantity loudness and tone.
Wherein, the size (being commonly called as volume) of the subjective perceived sounds of loudness i.e. people, by " amplitude " and people from sound
The distance in source determines, the biggest loudness of amplitude is the biggest, and the distance of people and sound source is the least, and loudness is the biggest;Tone
I.e. people's subjective perceived sounds height (high pitch, bass), is determined by " frequency ", frequency gets over high-pitched tone
The highest.For realizing sharing accurately of Wi-Fi link information, reduce the error that external interference causes, this
Embodiment builds the coding rule of Wi-Fi link information based on frequency.
Concrete, the present embodiment builds the coding rule of Wi-Fi link information based on unifrequency acoustic signals,
Such as, it is stipulated that the sinusoidal wave corresponding numeral 1 of 1500Hz, the sinusoidal wave corresponding numeral 2,1700Hz of 1600Hz
Sinusoidal wave corresponding numeral 3 etc., then numeric string 3123 with regard to corresponding 4 band frequencies be followed successively by 1700Hz,
The sine wave of 1500Hz, 1600Hz and 1700Hz.In the specific implementation, for guaranteeing the sound wave of output
Signal can accurately be received and parsed through, it is stipulated that every period of sinusoidal wave persistent period is 100ms, then " 3123 "
The acoustic segment of corresponding 400 milliseconds.
After the coding rule that acoustic signals is set, when needing to share Wi-Fi link information, encode mould
Block 20 can use this coding rule to treat the Wi-Fi link information shared and perform the encoding operation, such as,
Regulation 1400Hz correspondence numeral 0, the sinusoidal wave corresponding numeral 1 of 1500Hz, the sine wave of 1600Hz is right
Answer numeral 2, the sinusoidal wave corresponding numeral 3 etc. of 1700Hz, Wi-Fi account to be shared is " 021 ",
Wi-Fi password is " 123 ", then the Wi-Fi account after coding module 20 coding is that frequency is followed successively by
The acoustic segment of 1400Hz, 1600Hz and 1500Hz, the Wi-Fi password after coding is that frequency is followed successively by
The acoustic segment of 1500Hz, 1600Hz and 1700Hz.
Further, owing to Wi-Fi link information at least includes Wi-Fi password and Wi-Fi account,
When coding rule is set, presetting module can arrange the sine wave of 20KHz as default blank character (or
Person arranges the acoustic signals of corresponding frequencies according to actual needs as blank character), i.e. when coding, at Wi-Fi
Need between password and Wi-Fi account to add blank character to show differentiation.
Further, based on first or second embodiments, propose Wi-Fi link information of the present invention and share dress
The 3rd embodiment put, in the present embodiment, described Wi-Fi link information sharing apparatus also includes:
Parsing module, for when the reception instruction detecting Wi-Fi link information based on its place terminal
Time, receive and parse through the acoustic signals of other terminal output;
Memory module, is used for when successfully resolved, the Wi-Fi link information that storing and resolving goes out.
It should be noted that terminal described in this enforcement both can as the sender of Wi-Fi link information,
Can also be as the recipient of Wi-Fi link information.In the present embodiment, divide when user needs to receive the other side
During the Wi-Fi link information enjoyed, interface can be shared by the Wi-Fi link information that terminal is preset and open
Acoustic receiver function, now will trigger the reception instruction of Wi-Fi link information, the now parsing mould of terminal
Block receives the acoustic signals of other terminal output;After receiving the acoustic signals of other terminal output,
Parsing module uses the coding rule that the acoustic signals received is identical to be decoded, and parses this acoustic signals
The Wi-Fi link information carried;When successfully resolved, store the Wi-Fi link that module stores parses
Information, can use this Wi-Fi link information to set up Wi-Fi with corresponding Wi-Fi Hotspot when needed
Connect.
Further, in the present embodiment, the reception state of Wi-Fi link information is understood for ease of user,
Promoting user's Consumer's Experience, described Wi-Fi link information sharing apparatus also includes:
Reminding module, is used for while the Wi-Fi link information that described memory module storing and resolving goes out,
Output Wi-Fi link information receives successful information.
Further, in this embodiment, for reducing user operation further, Consumer's Experience is promoted, at this
In embodiment, described Wi-Fi link information sharing apparatus also includes:
Link block, for the Wi-Fi Hotspot corresponding at the described Wi-Fi link information detecting storage
Time available, described Wi-Fi link information based on storage is set up Wi-Fi with described Wi-Fi Hotspot and is connected.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every
Utilize equivalent structure or equivalence flow process conversion that description of the invention and accompanying drawing content made, or directly or
Connect and be used in other relevant technology neighborhoods, be the most in like manner included in the scope of patent protection of the present invention.