Summary of the invention
Method and terminal that the embodiment of the present invention provides a kind of annexation to set up, can improve user's operating experience.
A kind of method that the embodiment of the present invention provides annexation to set up, comprising:
Receive the instruction that user establishes a connection;
Send the first ultrasonic wave according to described instruction, with receive described first hyperacoustic receiving terminal and set up ultrasonic wave annexation;
By described ultrasonic wave annexation, set up the second annexation with described receiving terminal by the second communication modes.
Wherein, describedly send the first ultrasonic wave according to described instruction, with receive the step that described first hyperacoustic receiving terminal sets up ultrasonic wave annexation and comprise:
Send described the first ultrasonic wave according to described instruction, receive described receiving terminal and receiving after described the first ultrasonic wave according to the second ultrasonic wave of described the first ultrasonic wave feedback.
Wherein, described the first ultrasonic wave carries the first configuration information of the second communication modes, described the second ultrasonic wave carries the second configuration information that described receiving terminal feeds back for described the first configuration information, described by described ultrasonic wave annexation, set up the second annexation with described receiving terminal by the second communication modes and comprise:
Obtain the second configuration information that the described receiving terminal that carries in described the second ultrasonic wave feeds back for described the first configuration information;
Set up the second annexation according to described the second configuration information and described receiving terminal.
Wherein, the step of obtaining the second configuration information that the described receiving terminal that carries in described the second ultrasonic wave feeds back for described the first configuration information described in comprises:
Detect described hyperacoustic amplitude variations information, thereby obtain corresponding data message, wherein, described amplitude variations information comprises the change information of amplitude, and described data message comprises binary data information, described in obtain corresponding data message and comprise:
Described hyperacoustic amplitude and default amplitude threshold are contrasted, if described hyperacoustic amplitude is greater than described default amplitude threshold, be judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, is judged as " 0 " in binary data information and preserves;
Processing said data information, thus described the second configuration information obtained.
Wherein, described in, obtaining the second configuration information that the described receiving terminal that carries in described the second ultrasonic wave feeds back for described the first configuration information comprises:
Detect described second hyperacoustic phase place change information, thereby obtain corresponding data message; And/or,
Detect described second hyperacoustic frequency change information, thereby obtain corresponding data message;
Processing said data information, thus described the second configuration information obtained.
Correspondingly, the embodiment of the present invention also provides a kind of terminal, comprising:
Command reception module, the instruction establishing a connection for receiving user;
Ultrasonic wave link block, for sending the first ultrasonic wave according to described instruction, with receive described first hyperacoustic receiving terminal and set up ultrasonic wave annexation;
The second link block, for the ultrasonic wave annexation of setting up by described ultrasonic wave link block, sets up the second annexation with described receiving terminal by the second communication modes.
Wherein, described ultrasonic wave link block comprises:
Ultrasonic wave sends submodule, for send described the first ultrasonic wave according to described instruction;
Ultrasonic wave receives submodule, for receiving described receiving terminal according to the second ultrasonic wave of described the first ultrasonic wave feedback.
Wherein, described the first ultrasonic wave carries the first configuration information of the second communication modes, and described the second ultrasonic wave carries the second configuration information that described receiving terminal feeds back for described the first configuration information, and described the second link block comprises:
Configuration information obtains submodule, the second configuration information feeding back for described the first configuration information for obtaining described receiving terminal that described the second ultrasonic wave carries;
The second connexon module, sets up the second annexation for obtain described the second configuration information and the described receiving terminal that submodule obtains according to described configuration information.
Wherein, described configuration information obtains submodule and comprises:
Amplitude detection units, for detection of described hyperacoustic amplitude variations information, thereby obtains corresponding data message, wherein, described amplitude variations information comprises the change information of amplitude, and described data message comprises binary data information, described in obtain corresponding data message and comprise:
Described hyperacoustic amplitude and default amplitude threshold are contrasted, if described hyperacoustic amplitude is greater than described default amplitude threshold, be judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, is judged as " 0 " in binary data information and preserves;
The first configuration information acquiring unit, for the treatment of described data message, thereby obtains described the second configuration information.
Wherein, described configuration information obtains submodule and comprises:
Phase detection unit, for detection of described second hyperacoustic phase place change information, thereby obtains corresponding data message; And/or,
Frequency detecting unit, for detection of described second hyperacoustic frequency change information, thereby obtains corresponding data message;
The second configuration information acquiring unit, the described data message obtaining for the treatment of described phase detection unit and/or frequency detecting unit, thus obtain described the second configuration information.
Implement the embodiment of the present invention, transmitting terminal can by ultrasonic wave annexation automatically and receiving terminal set up the second annexation by the second communication modes, improved user's operating experience.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, Fig. 1 is the method flow diagram that a kind of annexation that the embodiment of the present invention provides is set up, and the method that in the present embodiment, annexation is set up can realize on the communication terminals such as such as mobile phone, notebook computer and PAD.The flow process that annexation in the present embodiment is set up as shown in Figure 1 can comprise:
S110, receives the instruction that user establishes a connection.
Concrete, user can grow by the target data on transmitting terminal, thereby makes this transmitting terminal receive the instruction that user establishes a connection, and wherein, described target data comprises the tinkle of bells, picture, video or application installation kit etc.; Transmitting terminal can also, by the default icon establishing a connection or button, receive the instruction that user establishes a connection, and for example, user clicks the default icon establishing a connection, thereby makes transmitting terminal receive the instruction that user establishes a connection; Transmitting terminal can also obtain the time that user sets up for annexation, and in the time that transmitting terminal detects that time of current system time and obtained this annexation foundation is identical, transmitting terminal can be confirmed as and receive the instruction that user establishes a connection.In the time that transmitting terminal receives the instruction that user establishes a connection, send the first ultrasonic wave according to described instruction.
S120, sends the first ultrasonic wave according to described instruction, with receive described first hyperacoustic receiving terminal and set up ultrasonic wave annexation.
As the optional execution mode of one, transmitting terminal can send described the first ultrasonic wave according to described instruction, receive described receiving terminal and receiving the second ultrasonic wave feeding back according to described the first ultrasonic wave after described the first ultrasonic wave, transmitting terminal is set up ultrasonic wave annexation according to received described the second ultrasonic wave and described receiving terminal.Wherein, receiving terminal receives the first ultrasonic wave, and feed back the second ultrasonic wave according to the first ultrasonic wave and specifically comprise the following steps: first receiving terminal scans whether there is the first ultrasonic wave, if, obtain first hyperacoustic transmission parameter, send parameter and comprise transmission frequency or send amplitude or send phase place; Obtain and send after parameter, receiving terminal regulates reception parameter according to sending parameter automatic or manual, sends parameter to mate completely or to approach coupling; After having mated, receiving terminal receives the first ultrasonic wave, and the second ultrasonic wave matching according to the first ultrasonic wave feedback parameter is to transmitting terminal, and final, transmitting terminal and receiving terminal are set up ultrasonic wave annexation.
S130, by described ultrasonic wave annexation, sets up the second annexation with described receiving terminal by the second communication modes.
As the optional execution mode of one, described the first ultrasonic wave carries the first configuration information of the second communication modes, described the second ultrasonic wave carries the second configuration information that described receiving terminal feeds back for described the first configuration information, transmitting terminal can obtain the second configuration information that the described receiving terminal that carries in described the second ultrasonic wave feeds back for described the first configuration information, sets up the second annexation according to described the second configuration information and described receiving terminal.In specific implementation, in the time that transmitting terminal receives the instruction that user establishes a connection, send the first ultrasonic wave according to described instruction, described the first ultrasonic wave carries the first configuration information of the second communication modes, transmitting terminal receives receiving terminal and is receiving after described the first ultrasonic wave according to the second ultrasonic wave of described the first ultrasonic wave feedback, described the second ultrasonic wave carries the second configuration information that described receiving terminal feeds back for described the first configuration information, transmitting terminal obtains the second configuration information that the described receiving terminal that carries in described the second ultrasonic wave feeds back for described the first configuration information, and set up the annexation of described the second communication modes according to described the second configuration information and described receiving terminal.
Wherein, transmitting terminal can send the first ultrasonic wave of default carrier frequency, when exist receiving terminal (as mobile phone, notebook computer or PAD etc.) enter as described in transmitting terminal send first hyperacoustic overlay area time, receiving terminal can regulate or the receive frequency of the ultrasonic probe, ultrasonic receiver of manual adjustments self terminal automatically, in the time that the receive frequency of receiving terminal is close or identical with described default carrier frequency, receiving terminal receives described the first ultrasonic wave, thereby obtains the first configuration information of the second entrained communication modes of described the first ultrasonic wave.Receiving terminal receives the second ultrasonic wave that feeds back the second configuration information that carries the second communication modes after the first ultrasonic wave to transmitting terminal, and transmitting terminal is set up ultrasonic wave annexation according to received described the second ultrasonic wave and described receiving terminal.
Optionally, transmitting terminal can pass through FSK(Frequency-shift keying, be frequency shift keying), ASK(Amplitude-Shift Keying, be amplitude shift keying) or PSK(phase-shift keying, be phase shift keying) modulation the first ultrasonic wave, thereby make described the first ultrasonic wave carry the first configuration information of the second communication modes, receiving terminal also can be modulated the second ultrasonic wave by FSK, ASK or PSK, thereby makes described the second ultrasonic wave carry the second configuration information of the second communication modes.
Wherein, described the second communication modes comprises the communication such as bluetooth or WIFI, the first configuration information is the relevant configuration information of the second communication modes of transmitting terminal, the second configuration information is the relevant configuration information of the second communication modes of receiving terminal, for example, the second communication modes is bluetooth, the bluetooth parameters configuration that the first configuration information is transmitting terminal, the bluetooth configuration parameter that the second configuration information is receiving terminal.
As the optional execution mode of one, the step that transmitting terminal obtains the second configuration information that the described receiving terminal that carries in described the second ultrasonic wave feeds back for described the first configuration information specifically can comprise:
Detect described hyperacoustic amplitude variations information, thereby obtain corresponding data message, wherein, described amplitude variations information comprises the change information of amplitude, described data message comprises binary data information, processes described binary data information, thereby obtains described the second configuration information.In specific implementation, transmitting terminal can contrast described hyperacoustic amplitude and default amplitude threshold, if described hyperacoustic amplitude is greater than described default amplitude threshold, be judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, is judged as " 0 " in binary data information and preserves; Thereby transmitting terminal obtains binary data information by detecting described second hyperacoustic amplitude variations information, the described binary data information acquiring is changed according to the transforming relationship of binary system and the second configuration information, thereby obtained described the second configuration information.
As the optional execution mode of one, the step that transmitting terminal obtains the second configuration information that the described receiving terminal that carries in described the second ultrasonic wave feeds back for described the first configuration information specifically can comprise:
Transmitting terminal can detect described second hyperacoustic phase place change information, thereby obtains corresponding data message, processing said data information, thus obtain described the second configuration information; Or,
Transmitting terminal can detect described second hyperacoustic frequency change information, thereby obtains corresponding data message, processing said data information, thus obtain described the second configuration information; Or,
Transmitting terminal can detect described the second hyperacoustic frequency change information and phase place change information simultaneously, obtains the data message that frequency change information and phase place change information replace, and processes described alternate data, thereby obtains described the second configuration information.Meanwhile, data message also comprises octal data information or hexadecimal data information, obtains according to transforming relationship, octal data information or hexadecimal data information to be converted into the second configuration information afterwards.
It should be noted that, the embodiment of the present invention is by modulation the first ultrasonic wave and the second ultrasonic wave, make the first ultrasonic wave carry the first configuration information of the second communication modes, the second ultrasonic wave carries the second configuration information of the second communication modes, in other optional embodiment, the first ultrasonic wave and the second ultrasonic wave can comprise carrier signal and modulation intelligence, in the time that the receive frequency of receiving terminal is identical with the carrier frequency of transmitting terminal carrier signal, receiving terminal can receive the modulation signal in described the first ultrasonic wave, receiving terminal obtains the first configuration information of the second communication modes according to described modulation signal, wherein, modulation signal comprises FM signal, amplitude-modulated signal or phase-modulated signal, receiving terminal is according to the difference of various modulation signals, obtain in the corresponding way the first configuration information.
Further alternative, in the time that described transmitting terminal and described receiving terminal are set up the second annexation by the second communication modes, transmitting terminal can send target data to receiving terminal by described the second communication modes.Wherein, described target data can obtain before transmitting terminal and receiving terminal are set up ultrasonic wave annexation, thereby user makes transmitting terminal and receiving terminal set up ultrasonic wave annexation by long according to target data; Described target data can be also the data to be sent of the default storage of transmitting terminal, for example, market is set in a certain set time transmission discount information, arrive the described set time when transmitting terminal detects the current system time, send by the second communication modes pre-stored discount information as target data; Described target data can be also to obtain according to user's selection instruction after transmitting terminal and receiving terminal are set up the second annexation.
As the optional execution mode of one, transmitting terminal can send to multiple receiving terminals by the second communication modes by target data.For example, described the second communication modes is bluetooth, in the time that transmitting terminal and receiving terminal are set up ultrasonic wave annexation, described transmitting terminal record and this receiving terminal are set up the temporal information of ultrasonic wave annexation, in the time that described transmitting terminal and receiving terminal are set up the second annexation, target data is sent to corresponding receiving terminal successively according to the temporal information of record, and wherein, transmitting terminal also can send described target data successively according to the temporal information of setting up the second annexation with receiving terminal.Again for example, described the second communication modes is WIFI, and when transmitting terminal and multiple receiving terminal are during in same local area network (LAN), transmitting terminal can be shared described target data is pushed to this in the receiving terminal with a local area network (LAN) by WIFI.
Refer to Fig. 2, Fig. 2 is the flow chart of the method set up of another kind of annexation that the embodiment of the present invention provides, the method that annexation in the present embodiment is set up can realize on the communication terminals such as such as mobile phone, notebook computer and PAD, and the method that the annexation of the embodiment of the present invention is set up is mainly used in transmitting terminal and the man-to-man scene of receiving terminal.The flow process that data in the present embodiment send as shown in Figure 2 can comprise:
S210, transmitting terminal receives the instruction that user establishes a connection.
Concrete, user can grow by the target data on transmitting terminal, thereby makes this transmitting terminal receive the instruction that user establishes a connection, and wherein, described target data comprises the tinkle of bells, picture, video or application installation kit etc.; Transmitting terminal can also, by the default icon establishing a connection or button, receive the instruction that user establishes a connection, and for example, user clicks the default icon establishing a connection, thereby makes transmitting terminal receive the instruction that user establishes a connection; Transmitting terminal can also obtain the time that user sets up for annexation, and in the time that transmitting terminal detects that time of current system time and obtained this annexation foundation is identical, transmitting terminal can be confirmed as and receive the instruction that user establishes a connection.In the time that transmitting terminal receives the instruction that user establishes a connection, send out modulation the first ultrasonic wave according to described instruction, make described the first ultrasonic wave carry the first configuration information of the second communication modes.
S220, transmitting terminal is modulated the first ultrasonic wave according to described instruction, makes described the first ultrasonic wave carry the first configuration information of the second communication modes.
Concrete, transmitting terminal can be modulated the first ultrasonic wave by FSK, ASK or PSK, thereby makes described the first ultrasonic wave carry the first configuration information of the second communication modes.Wherein, described the second communication modes comprises the communication such as bluetooth or WIFI, the first configuration information is the relevant configuration information of the second communication modes of transmitting terminal, for example, the second communication modes is bluetooth, the first configuration information is the bluetooth parameters configuration of transmitting terminal, as Bluetooth address and bluetooth OBEX transformation parameter etc.
S230, transmitting terminal sends to receiving terminal by the first ultrasonic wave by ultrasonic transmission device.
Concrete, transmitting terminal can send first ultrasonic wave of the first configuration information that carries the second communication modes of the first default carrier frequency to receiving terminal, and wherein, the described first default carrier frequency can be set in advance and be obtained by user; Described transmitting terminal also can obtain at random a frequency as the described first default carrier frequency in the frequency range of ultrasonic signal.
S240, receiving terminal receives described the first ultrasonic wave, and obtains the first entrained configuration information of described the first ultrasonic wave.
Concrete, when as described in receiving terminal (as mobile phone, notebook computer or PAD etc.) detects when the first ultrasonic wave, can automatically regulate or the receive frequency of the ultrasonic probe, ultrasonic receiver of manual adjustments self terminal, in the time that the receive frequency of receiving terminal is close or identical with the described first default carrier frequency, receiving terminal receives described the first ultrasonic wave, and can be according to the first configuration information of the second entrained communication modes of the first ultrasonic wave described in first hyperacoustic amplitude variations information or phase place change information or frequency change acquisition of information.
S250, receiving terminal is modulated the second ultrasonic wave, makes described the second ultrasonic wave carry the second configuration information of the second communication modes.
Concrete, receiving terminal can be modulated the second ultrasonic wave by FSK, ASK or PSK, thereby makes described the second ultrasonic wave carry the second configuration information of the second communication modes.Wherein, the relevant configuration information of the second communication modes that described the second configuration information is receiving terminal, for example, the second communication modes is bluetooth, the bluetooth parameters configuration that the second configuration information is receiving terminal, as Bluetooth address and bluetooth OBEX transformation parameter etc.
S260, receiving terminal feeds back described the second ultrasonic wave to transmitting terminal.
Concrete, receiving terminal can send by the ultrasonic transmission device of self terminal the second ultrasonic wave of second configuration information that carries the second communication modes of the second default carrier frequency, wherein, the described second default carrier frequency can be set in advance and be obtained by user; Described transmitting terminal also can obtain at random a frequency as the described second default carrier frequency in the frequency range of ultrasonic signal.It should be noted that, whether the described first default carrier frequency equals the described second default carrier frequency, can determine according to actual conditions, and the present invention does not limit.
S270, transmitting terminal receives described the second ultrasonic wave, and obtains the second entrained configuration information of described the second ultrasonic wave.
Concrete, in the time that transmitting terminal detects described the second ultrasonic wave, can automatically regulate or the receive frequency of the ultrasonic probe, ultrasonic receiver of manual adjustments self terminal, in the time that the receive frequency of transmitting terminal is close or identical with the described second default carrier frequency, transmitting terminal receives described the second ultrasonic wave, and obtains the second entrained configuration information of described the second ultrasonic wave.
Optionally, transmitting terminal can detect described hyperacoustic amplitude variations information, thereby obtain corresponding data message, wherein, described amplitude variations information comprises the change information of amplitude, described data message comprises binary data information, processes described binary data information, thereby obtains described the second configuration information.In specific implementation, transmitting terminal can contrast described hyperacoustic amplitude and default amplitude threshold, if described hyperacoustic amplitude is greater than described default amplitude threshold, be judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, is judged as " 0 " in binary data information and preserves; Thereby transmitting terminal obtains binary data information by detecting described second hyperacoustic amplitude variations information, the described binary data information acquiring is changed according to the transforming relationship of binary system and the second configuration information, thereby obtained described the second configuration information.
Optionally, transmitting terminal can detect described second hyperacoustic phase place change information, thereby obtains corresponding data message, processing said data information, thus obtain described the second configuration information; Or,
Transmitting terminal can detect described second hyperacoustic frequency change information, thereby obtains corresponding data message, processing said data information, thus obtain described the second configuration information; Or,
Transmitting terminal can detect described the second hyperacoustic frequency change information and phase place change information simultaneously, obtains the data message that frequency change information and phase place change information replace, and processes described alternate data, thereby obtains described the second configuration information.Meanwhile, data message also comprises octal data information or hexadecimal data information, obtains according to transforming relationship, octal data information or hexadecimal data information to be converted into the second configuration information afterwards.
S280, transmitting terminal is set up the second annexation according to described the second configuration information and receiving terminal.
S290, transmitting terminal sends to receiving terminal by target data by described the second annexation.
Concrete, in the time that described transmitting terminal and described receiving terminal are set up the second annexation by the second communication modes, transmitting terminal can send target data to receiving terminal by described the second communication modes.Wherein, described target data can obtain before transmitting terminal and receiving terminal are set up ultrasonic wave annexation, thereby user makes transmitting terminal and receiving terminal set up ultrasonic wave annexation by long according to target data; Described target data can be also the data to be sent of the default storage of transmitting terminal, for example, market is set in a certain set time transmission discount information, arrive the described set time when transmitting terminal detects the current system time, send by the second communication modes pre-stored discount information as target data; Described target data can be also to obtain according to user's selection instruction after transmitting terminal and receiving terminal are set up the second annexation.
Refer to Fig. 3, Fig. 3 is the flow chart of the method set up of another kind of annexation that the embodiment of the present invention provides, the method that annexation in the present embodiment is set up can realize on the communication terminals such as such as mobile phone, notebook computer and PAD, the method that the annexation of the embodiment of the present invention is set up is mainly used in the scene of transmitting terminal and receiving terminal one-to-many, and for example market sends the scene of various discount information.The flow process that annexation in the present embodiment is set up as shown in Figure 3 can comprise:
S310, transmitting terminal receives the instruction that user establishes a connection.
Concrete, user can grow by the target data on transmitting terminal, thereby makes this transmitting terminal receive the instruction that user establishes a connection, and wherein, described target data comprises the tinkle of bells, picture, video or application installation kit etc.; Transmitting terminal can also, by the default icon establishing a connection or button, receive the instruction that user establishes a connection, and for example, user clicks the default icon establishing a connection, thereby makes transmitting terminal receive the instruction that user establishes a connection; Transmitting terminal can also obtain the time that user sets up for annexation, and in the time that transmitting terminal detects that time of current system time and obtained this annexation foundation is identical, transmitting terminal can be confirmed as and receive the instruction that user establishes a connection.In the time that transmitting terminal receives the instruction that user establishes a connection, modulate the first ultrasonic wave according to described instruction.
S320, transmitting terminal is modulated the first ultrasonic wave according to described instruction, makes described the first ultrasonic wave carry the first configuration information of the second communication modes.
Concrete, in the time that transmitting terminal receives the instruction that user establishes a connection, transmitting terminal can be modulated the first ultrasonic wave by FSK, ASK or PSK, thereby makes described the first ultrasonic wave carry the first configuration information of the second communication modes.Wherein, described the second communication modes comprises the communication such as bluetooth or WIFI, the first configuration information is the relevant configuration information of the second communication modes of transmitting terminal, for example, the second communication modes is bluetooth, the first configuration information is the bluetooth parameters configuration of transmitting terminal, as Bluetooth address and bluetooth OBEX transformation parameter etc.
S330, transmitting terminal sends first ultrasonic wave that carries the first configuration information of default carrier frequency.
Concrete, transmitting terminal can send by the ultrasonic transmission device of self terminal the first ultrasonic wave of first configuration information that carries the second communication modes of default carrier frequency, and wherein, described default carrier frequency can be set in advance and be obtained by user; Described transmitting terminal also can obtain at random a frequency as described default carrier frequency in the frequency range of ultrasonic signal.
S340, transmitting terminal receives second ultrasonic wave of multiple receiving terminals for described the first ultrasonic wave feedback, sets up ultrasonic wave annexation successively with described multiple receiving terminals.
Concrete, when existing multiple receiving terminals (as mobile phone, notebook computer or PAD etc.) while entering first hyperacoustic signal coverage areas that described transmitting terminal sends, receiving terminal can regulate or the receive frequency of manual adjustments ultrasonic probe, ultrasonic receiver automatically, the receive frequency of described receiving terminal and the default carrier frequency of described transmitting terminal are mated, receiving terminal receives described the first ultrasonic wave, thereby obtain the first configuration information of the second entrained communication modes of described the first ultrasonic wave, and the second configuration information that feedback is carried the second communication modes is sent out transmitting terminal, transmitting terminal is set up ultrasonic wave annexation with feedback second hyperacoustic receiving terminal successively.
S350, in transmitting terminal record and described multiple receiving terminals, each receiving terminal is set up the temporal information of described ultrasonic wave annexation.
Concrete, transmitting terminal can record the temporal information of setting up ultrasonic wave annexation with each receiving terminal, for example, set up the current system time of ultrasonic wave annexation.It should be noted that, in the time that described the second communication modes is WIFI, when described transmitting terminal is set up ultrasonic wave annexation with multiple receiving terminals respectively, can record the temporal information of setting up ultrasonic wave annexation with receiving terminal.
S360, transmitting terminal obtains the second configuration information of the second entrained communication modes of described the second ultrasonic wave.
As the optional execution mode of one, transmitting terminal can detect described hyperacoustic amplitude variations information, thereby obtain corresponding data message, wherein, described amplitude variations information comprises the change information of amplitude, described data message comprises binary data information, processes described binary data information, thereby obtains described the second configuration information.
In specific implementation, transmitting terminal can contrast described hyperacoustic amplitude and default amplitude threshold, if described hyperacoustic amplitude is greater than described default amplitude threshold, be judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, is judged as " 0 " in binary data information and preserves; Thereby transmitting terminal obtains binary data information by detecting described second hyperacoustic amplitude variations information, the described binary data information acquiring is changed according to the transforming relationship of binary system and the second configuration information, thereby obtained described the second configuration information.
As the optional execution mode of one, transmitting terminal can detect described second hyperacoustic phase place change information, thereby obtains corresponding data message, processing said data information, thus obtain described the second configuration information; Or,
Transmitting terminal can detect described second hyperacoustic frequency change information, thereby obtains corresponding data message, processing said data information, thus obtain described the second configuration information; Or,
Transmitting terminal can detect described the second hyperacoustic frequency change information and phase place change information simultaneously, obtains the data message that frequency change information and phase place change information replace, and processes described alternate data, thereby obtains described the second configuration information.
S370, transmitting terminal according to described in the second configuration information of acquiring set up the second annexation with corresponding receiving terminal.
S380, transmitting terminal is sent to corresponding receiving terminal by described the second annexation by target data successively according to described temporal information.
Concrete, when transmitting terminal and receiving terminal are set up the second annexation by the second communication modes, transmitting terminal can send to target data corresponding receiving terminal by the second annexation successively according to described temporal information, wherein, described target data can obtain before transmitting terminal and receiving terminal are set up ultrasonic wave annexation, thereby user makes transmitting terminal and receiving terminal set up ultrasonic wave annexation by long according to target data; Described target data can be also the data to be sent of the default storage of transmitting terminal, for example, market is set in a certain set time transmission discount information, arrive the described set time when transmitting terminal detects the current system time, send by the second communication modes pre-stored discount information as target data; Described target data can be also to obtain according to user's selection instruction after transmitting terminal and receiving terminal are set up the second annexation.It should be noted that, in the time that the second communication modes is WIFI, transmitting terminal and described multiple receiving terminal are in a same local area network (LAN), and transmitting terminal can, by the shared mode of WIFI, be pushed to described multiple receiving terminal by described target data simultaneously.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of terminal of providing of the embodiment of the present invention, and the terminal in the present embodiment can comprise the communication terminals such as such as mobile phone, notebook computer and PAD.Terminal in the present embodiment at least can comprise command reception module 4100, ultrasonic wave link block 4200 and the second link block 4300 as shown in Figure 4, wherein:
Command reception module 4100, the instruction establishing a connection for receiving user.
In specific implementation, user can grow by the target data on transmitting terminal, thereby makes command reception module 4100 receive the instruction that user establishes a connection, and wherein, described target data comprises the tinkle of bells, picture, video or application installation kit etc.; Command reception module 4100 can also be by the default icon establishing a connection or button, receive the instruction that user establishes a connection, for example, user clicks the default icon establishing a connection, thereby makes command reception module 4100 receive the instruction that user establishes a connection; Command reception module 4100 can also be obtained the time that user sets up for annexation, in the time that transmitting terminal detects that time that the current system time sets up with obtained this annexation is identical, command reception module 4100 can be confirmed as and receive the instruction that user establishes a connection.
Ultrasonic wave link block 4200, for sending the first ultrasonic wave according to described instruction, with receive described first hyperacoustic receiving terminal and set up ultrasonic wave annexation.
As the optional execution mode of one, described ultrasonic wave link block 4200 may further include as shown in Figure 5 ultrasonic wave and sends submodule 4210 and ultrasonic wave reception submodule 4220, wherein:
Ultrasonic wave sends submodule 4210, for send described the first ultrasonic wave according to described instruction.In specific implementation, in the time that command reception module 4100 receives the instruction that user establishes a connection, ultrasonic wave sends 4210 of submodules and sends the first ultrasonic wave of default carrier frequencies.
Ultrasonic wave receives submodule 4220, for receiving described receiving terminal according to the second ultrasonic wave of described the first ultrasonic wave feedback.
The second link block 4300, for the ultrasonic wave annexation of setting up by described ultrasonic wave link block 4200, sets up the second annexation with described receiving terminal by the second communication modes.
As the optional execution mode of one, described the first ultrasonic wave carries the first configuration information of the second communication modes, described the second ultrasonic wave carries the second configuration information that described receiving terminal feeds back for described the first configuration information, described the second link block 4300 further can comprise that configuration information obtains submodule 4310 and the second connexon module 4320 as shown in Figure 6, wherein:
Configuration information obtains submodule 4310, the second configuration information feeding back for described the first configuration information for obtaining described receiving terminal that described the second ultrasonic wave carries.In specific implementation, the first ultrasonic wave that described ultrasonic wave transmission submodule 4210 sends carries the first configuration information of the second communication modes, the second ultrasonic wave of ultrasonic wave reception submodule 4220 receiving terminals carries the second configuration information of the second communication modes of receiving terminal, and configuration information obtains submodule 4310 and obtains described the second configuration information.Wherein, described the second communication modes comprises bluetooth or WIFI.
The second connexon module 4320, sets up the second annexation for obtain described the second configuration information and the described receiving terminal that submodule 4310 obtains according to described configuration information.
Optionally, described configuration information obtains submodule 4310 further can comprise amplitude detection units 4311 and the first configuration information acquiring unit 4312 as shown in Figure 7, wherein:
Amplitude detection units 4311, for detection of described hyperacoustic amplitude variations information, thereby obtains corresponding data message, wherein, described amplitude variations information comprises the change information of amplitude, and described data message comprises binary data information, described in obtain corresponding data message and can comprise:
Described hyperacoustic amplitude and default amplitude threshold are contrasted, if described hyperacoustic amplitude is greater than described default amplitude threshold, 4311 of amplitude detection units are judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, 4311 of amplitude detection units are judged as " 0 " in binary data information and preserve.
The first configuration information acquiring unit 4312, for the treatment of described data message, thereby obtains described the second configuration information.In specific implementation, the first configuration information acquiring unit 4312 can be according to the transformational relation processing said data information of data message and the second configuration information, thereby obtain described the second configuration information.
Optionally, described configuration information obtains submodule 4310 further can comprise phase detection unit 4313 and/or frequency detecting unit 4314 and the second configuration information acquiring unit 4315 as shown in Figure 7, wherein:
Phase detection unit 4313, for detection of described second hyperacoustic phase place change information, thereby obtains corresponding data message.
Frequency detecting unit 4314, for detection of described second hyperacoustic frequency change information, thereby obtains corresponding data message.
The second configuration information acquiring unit 4315, the described data message obtaining for the treatment of described phase detection unit 4313 and/or frequency detecting unit 4314, thus obtain described the second configuration information.
Implement the embodiment of the present invention, transmitting terminal can by ultrasonic wave annexation automatically and receiving terminal set up the second annexation by the second communication modes, improved user's operating experience; Further, by the second annexation transmission data, extend transmission range, improved transmission rate.
It should be noted that, in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Module, unit or subelement in embodiment of the present invention device can merge according to actual needs, divide and delete.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.