Summary of the invention
Embodiments provide method and the terminal of the foundation of a kind of annexation, the operating experience of user can be improved.
Embodiments provide a kind of method that annexation is 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 first ultrasonic wave according to described instruction, receive described receiving terminal second ultrasonic wave according to described first ultrasound feedback after receiving described first ultrasonic wave.
Wherein, described first ultrasonic wave carries the first configuration information of the second communication modes, described second ultrasonic wave carries the second configuration information that described receiving terminal feeds back for described first configuration information, then 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 second ultrasonic wave feeds back for described first configuration information;
The second annexation is set up according to described second configuration information and described receiving terminal.
Wherein, the step of the second configuration information that the described receiving terminal carried in described second ultrasonic wave of described acquisition feeds back for described first configuration information comprises:
Detect described hyperacoustic amplitude variations information, thus obtain corresponding data message, wherein, described amplitude variations information comprises the change information of amplitude, and described data message comprises binary data information, and the corresponding data message of described acquisition comprises:
Described hyperacoustic amplitude and default amplitude threshold are contrasted, if described hyperacoustic amplitude is greater than described default amplitude threshold, then be judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, is then judged as " 0 " in binary data information and preserves;
Processing said data information, thus obtain described second configuration information.
Wherein, the second configuration information that the described receiving terminal carried in described second ultrasonic wave of described acquisition feeds back for described first configuration information comprises:
Detect described second hyperacoustic phase place change information, thus obtain corresponding data message; And/or,
Detect described second hyperacoustic frequency change information, thus obtain corresponding data message;
Processing said data information, thus obtain described second configuration information.
Correspondingly, the embodiment of the present invention additionally provides a kind of terminal, comprising:
Command reception module, for receiving the instruction that user establishes a connection;
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;
Second link block, for the ultrasonic wave annexation set 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 sending described first ultrasonic wave according to described instruction;
Ultrasonic wave receives submodule, for receiving second ultrasonic wave of described receiving terminal according to described first ultrasound feedback.
Wherein, described first ultrasonic wave carries the first configuration information of the second communication modes, and described second ultrasonic wave carries the second configuration information that described receiving terminal feeds back for described first configuration information, then described second link block comprises:
Configuration information obtains submodule, for obtaining the second configuration information that the described receiving terminal that carries in described second ultrasonic wave feeds back for described first configuration information;
Second connexon module, sets up the second annexation for described second configuration information and described receiving terminal obtaining submodule acquisition according to described configuration information.
Wherein, described configuration information acquisition submodule comprises:
Amplitude detection units, for detecting described hyperacoustic amplitude variations information, thus obtains corresponding data message, wherein, described amplitude variations information comprises the change information of amplitude, and described data message comprises binary data information, and the corresponding data message of described acquisition comprises:
Described hyperacoustic amplitude and default amplitude threshold are contrasted, if described hyperacoustic amplitude is greater than described default amplitude threshold, then be judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, is then judged as " 0 " in binary data information and preserves;
First configuration information acquiring unit, for the treatment of described data message, thus obtains described second configuration information.
Wherein, described configuration information acquisition submodule comprises:
Phase detection unit, for detecting described second hyperacoustic phase place change information, thus obtains corresponding data message; And/or,
Frequency detecting unit, for detecting described second hyperacoustic frequency change information, thus obtains corresponding data message;
Second configuration information acquiring unit, for the treatment of the described data message that described phase detection unit and/or frequency detecting unit obtain, thus obtains described 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, improve the operating experience of user.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, Fig. 1 is the method flow diagram of a kind of annexation foundation that the embodiment of the present invention provides, and the method that in the present embodiment, annexation is set up can be implemented on the communication terminals such as such as mobile phone, notebook computer and PAD.The flow process that annexation as shown in Figure 1 in the present embodiment is set up can comprise:
S110, receives the instruction that user establishes a connection.
Concrete, user can grow by the target data on transmitting terminal, thus the instruction making this transmitting terminal receive user to establish a connection, wherein, described target data comprises the tinkle of bells, picture, video or application installation kit etc.; Transmitting terminal can also by the icon established a connection preset or button, and receive the instruction that establishes a connection of user, such as, user clicks the default icon established a connection, thus the instruction making transmitting terminal receive user to establish a connection; Transmitting terminal can also obtain the time that user sets up for annexation, and when transmitting terminal detects that present system time is identical with the time that this obtained annexation is set up, transmitting terminal can confirm as the instruction receiving user and establish a connection.When transmitting terminal receives the instruction that user establishes a connection, then 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 first ultrasonic wave according to described instruction, receive described receiving terminal second ultrasonic wave according to described first ultrasound feedback after receiving described first ultrasonic wave, transmitting terminal sets up ultrasonic wave annexation according to received described second ultrasonic wave and described receiving terminal.Wherein, receiving terminal receives the first ultrasonic wave, and specifically comprise the following steps according to the first ultrasound feedback second ultrasonic wave: whether first receiving terminal scans exists the first ultrasonic wave, if, then obtain first hyperacoustic transmission parameter, send parameter and comprise transmission frequency or send amplitude or send phase place; Obtain after sending parameter, receiving terminal regulates receiving parameter according to transmission parameter automatic or manual, to mate completely or to send parameter close to coupling; After having mated, receiving terminal receives the first ultrasonic wave, and according to the second ultrasonic wave of the first ultrasound feedback match parameters to transmitting terminal, finally, transmitting terminal and receiving terminal 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 first ultrasonic wave carries the first configuration information of the second communication modes, described second ultrasonic wave carries the second configuration information that described receiving terminal feeds back for described first configuration information, transmitting terminal can obtain the second configuration information that the described receiving terminal that carries in described second ultrasonic wave feeds back for described first configuration information, sets up the second annexation according to described second configuration information and described receiving terminal.In specific implementation, when transmitting terminal receives the instruction that user establishes a connection, then send the first ultrasonic wave according to described instruction, described first ultrasonic wave carries the first configuration information of the second communication modes, transmitting terminal receives receiving terminal after receiving described first ultrasonic wave according to the second ultrasonic wave of described first ultrasound feedback, described second ultrasonic wave carries the second configuration information that described receiving terminal feeds back for described first configuration information, the second configuration information that the described receiving terminal carried in described second ultrasonic wave of transmitting terminal acquisition feeds back for described first configuration information, and the annexation of described second communication modes is set up according to described second configuration information and described receiving terminal.
Wherein, transmitting terminal can send the first ultrasonic wave of default carrier frequency, when first hyperacoustic overlay area that transmitting terminal as described in there is receiving terminal (as mobile phone, notebook computer or PAD etc.) and entering sends, receiving terminal can regulate or the receive frequency of ultrasonic probe, ultrasonic receiver of manual adjustments own terminal automatically, when the receive frequency of receiving terminal is close or identical with described default carrier frequency, receiving terminal then receives described first ultrasonic wave, thus obtains the first configuration information of the second communication modes entrained by described first ultrasonic wave.After receiving terminal receives the first ultrasonic wave, feedback carries the second ultrasonic wave of the second configuration information of the second communication modes to transmitting terminal, and transmitting terminal sets up ultrasonic wave annexation according to received described second ultrasonic wave and described receiving terminal.
Optionally, transmitting terminal can pass through FSK(Frequency-shiftkeying, i.e. frequency shift keying), ASK(Amplitude-ShiftKeying, i.e. amplitude shift keying) or PSK(phase-shiftkeying, i.e. phase shift keying) modulate the first ultrasonic wave, thus make described first ultrasonic wave carry the first configuration information of the second communication modes, receiving terminal also can modulate the second ultrasonic wave by FSK, ASK or PSK, thus makes described second ultrasonic wave carry the second configuration information of the second communication modes.
Wherein, described second communication modes comprises the communication such as bluetooth or WIFI, first configuration information is the relevant configuration information of the second communication modes of transmitting terminal, second configuration information is the relevant configuration information of the second communication modes of receiving terminal, such as, second communication modes is bluetooth, and the first configuration information is the bluetooth parameters configuration of transmitting terminal, and the second configuration information is the bluetooth configuration parameter of receiving terminal.
As the optional execution mode of one, the step of the second configuration information that the described receiving terminal carried in described second ultrasonic wave of transmitting terminal acquisition feeds back for described first configuration information specifically can comprise:
Detect described hyperacoustic amplitude variations information, thus 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, thus obtains described second configuration information.In specific implementation, described hyperacoustic amplitude and default amplitude threshold can contrast by transmitting terminal, if described hyperacoustic amplitude is greater than described default amplitude threshold, then be judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, is then judged as " 0 " in binary data information and preserves; Transmitting terminal is by detecting described second hyperacoustic amplitude variations information thus obtaining binary data information, the transforming relationship of the described binary data information acquired according to binary system and the second configuration information is changed, thus obtains described second configuration information.
As the optional execution mode of one, the step of the second configuration information that the described receiving terminal carried in described second ultrasonic wave of transmitting terminal acquisition feeds back for described first configuration information specifically can comprise:
Transmitting terminal can detect described second hyperacoustic phase place change information, thus obtains corresponding data message, processing said data information, thus obtains described second configuration information; Or,
Transmitting terminal can detect described second hyperacoustic frequency change information, thus obtains corresponding data message, processing said data information, thus obtains described second configuration information; Or,
Transmitting terminal can detect described second hyperacoustic frequency change information and phase place change information simultaneously, the data message that acquisition frequency change information and phase place change information replace, and processes described alternate data, thus obtains described second configuration information.Meanwhile, data message also comprises octal data information or hexadecimal data information, is the second configuration information according to transforming relationship by octal data information or hexadecimal data convert information after acquisition.
It should be noted that, the embodiment of the present invention is by modulation first ultrasonic wave and the second ultrasonic wave, the first ultrasonic wave is made to carry the first configuration information of the second communication modes, second ultrasonic wave carries the second configuration information of the second communication modes, in other embodiment, first ultrasonic wave and the second ultrasonic wave can comprise carrier signal and modulation intelligence, when 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 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 signal, obtain the first configuration information in the corresponding way.
Further alternative, when described transmitting terminal and described receiving terminal set up the second annexation by the second communication modes, transmitting terminal can send target data by described second communication modes to receiving terminal.Wherein, described target data can obtain before transmitting terminal and receiving terminal set up ultrasonic wave annexation, and namely user passes through long according to target data thus makes transmitting terminal and receiving terminal set up ultrasonic wave annexation; Described target data also can be the data to be sent that transmitting terminal presets storage, such as, market is set in transmission of a certain set time discount information, when transmitting terminal detects that present system time arrives the described set time, then the discount information prestored is sent as target data by the second communication modes; Described target data also can be obtain according to the selection instruction of user after transmitting terminal and receiving terminal set up the second annexation.
As the optional execution mode of one, target data can be sent to multiple receiving terminal by the second communication modes by transmitting terminal.Such as, described second communication modes is bluetooth, when transmitting terminal and receiving terminal set up ultrasonic wave annexation, described transmitting terminal record and this receiving terminal set up the temporal information of ultrasonic wave annexation, when described transmitting terminal and receiving terminal 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 according to the temporal information setting up the second annexation with receiving terminal successively.Again such as, described second communication modes is WIFI, and when transmitting terminal and multiple receiving terminal are in same local area network (LAN), transmitting terminal can be shared by WIFI and described target data is pushed to the receiving terminal that this is in a same local area network (LAN).
Refer to Fig. 2, Fig. 2 is the flow chart of the method for the another kind of annexation foundation that the embodiment of the present invention provides, the method that annexation in the present embodiment is set up can be implemented 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 as shown in Figure 2 in the present embodiment send can comprise:
S210, transmitting terminal receives the instruction that user establishes a connection.
Concrete, user can grow by the target data on transmitting terminal, thus the instruction making this transmitting terminal receive user to establish a connection, wherein, described target data comprises the tinkle of bells, picture, video or application installation kit etc.; Transmitting terminal can also by the icon established a connection preset or button, and receive the instruction that establishes a connection of user, such as, user clicks the default icon established a connection, thus the instruction making transmitting terminal receive user to establish a connection; Transmitting terminal can also obtain the time that user sets up for annexation, and when transmitting terminal detects that present system time is identical with the time that this obtained annexation is set up, transmitting terminal can confirm as the instruction receiving user and establish a connection.When transmitting terminal receives the instruction that user establishes a connection, then send out modulation first ultrasonic wave according to described instruction, make described first ultrasonic wave carry the first configuration information of the second communication modes.
S220, transmitting terminal, according to described vector modulation first ultrasonic wave, makes described first ultrasonic wave carry the first configuration information of the second communication modes.
Concrete, transmitting terminal can modulate the first ultrasonic wave by FSK, ASK or PSK, thus makes described first ultrasonic wave carry the first configuration information of the second communication modes.Wherein, described second communication modes comprises the communication such as bluetooth or WIFI, first configuration information is the relevant configuration information of the second communication modes of transmitting terminal, such as, second communication modes is bluetooth, first configuration information is the bluetooth parameters configuration of transmitting terminal, as Bluetooth address and bluetooth OBEX transformation parameter etc.
S230, the first ultrasonic wave is sent to receiving terminal by ultrasonic transmission device by transmitting terminal.
Concrete, transmitting terminal can send first and preset first ultrasonic wave carrying the first configuration information of the second communication modes of carrier frequency to receiving terminal, and wherein, described first presets carrier frequency can be pre-set by user and obtain; Described transmitting terminal also can obtain a frequency at random and preset carrier frequency as described first in the frequency range of ultrasonic signal.
S240, receiving terminal receives described first ultrasonic wave, and obtains the first configuration information entrained by described first ultrasonic wave.
Concrete, when as described in receiving terminal (as mobile phone, notebook computer or PAD etc.) detects during the first ultrasonic wave, can automatically regulate or the receive frequency of ultrasonic probe, ultrasonic receiver of manual adjustments own terminal, when the receive frequency of receiving terminal is close or identical with the described first default carrier frequency, receiving terminal then receives described first ultrasonic wave, and can obtain the first configuration information of the second communication modes entrained by described first ultrasonic wave according to first hyperacoustic amplitude variations information or phase place change information or frequency change information.
S250, receiving terminal modulates the second ultrasonic wave, makes described second ultrasonic wave carry the second configuration information of the second communication modes.
Concrete, receiving terminal can modulate the second ultrasonic wave by FSK, ASK or PSK, thus makes described second ultrasonic wave carry the second configuration information of the second communication modes.Wherein, described second configuration information is the relevant configuration information of the second communication modes of receiving terminal, and such as, the second communication modes is bluetooth, and the second configuration information is the bluetooth parameters configuration of receiving terminal, as Bluetooth address and bluetooth OBEX transformation parameter etc.
S260, receiving terminal is to described second ultrasonic wave of transmitting terminal feedback.
Concrete, receiving terminal can send by the ultrasonic transmission device of own terminal the second ultrasonic wave carrying the second configuration information of the second communication modes that second presets carrier frequency, wherein, the described second default carrier frequency can be pre-set by user and obtain; Described transmitting terminal also can obtain a frequency at random and preset carrier frequency as described second in the frequency range of ultrasonic signal.It should be noted that, whether described first presets carrier frequency equals the described second default carrier frequency, and can determine according to actual conditions, the present invention does not limit.
S270, transmitting terminal receives described second ultrasonic wave, and obtains the second configuration information entrained by described second ultrasonic wave.
Concrete, when transmitting terminal detects described second ultrasonic wave, can automatically regulate or the receive frequency of ultrasonic probe, ultrasonic receiver of manual adjustments own terminal, when the receive frequency of transmitting terminal is close or identical with the described second default carrier frequency, transmitting terminal then receives described second ultrasonic wave, and obtains the second configuration information entrained by described second ultrasonic wave.
Optionally, transmitting terminal can detect described hyperacoustic amplitude variations information, thus 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, thus obtains described second configuration information.In specific implementation, described hyperacoustic amplitude and default amplitude threshold can contrast by transmitting terminal, if described hyperacoustic amplitude is greater than described default amplitude threshold, then be judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, is then judged as " 0 " in binary data information and preserves; Transmitting terminal is by detecting described second hyperacoustic amplitude variations information thus obtaining binary data information, the transforming relationship of the described binary data information acquired according to binary system and the second configuration information is changed, thus obtains described second configuration information.
Optionally, transmitting terminal can detect described second hyperacoustic phase place change information, thus obtains corresponding data message, processing said data information, thus obtains described second configuration information; Or,
Transmitting terminal can detect described second hyperacoustic frequency change information, thus obtains corresponding data message, processing said data information, thus obtains described second configuration information; Or,
Transmitting terminal can detect described second hyperacoustic frequency change information and phase place change information simultaneously, the data message that acquisition frequency change information and phase place change information replace, and processes described alternate data, thus obtains described second configuration information.Meanwhile, data message also comprises octal data information or hexadecimal data information, is the second configuration information according to transforming relationship by octal data information or hexadecimal data convert information after acquisition.
S280, transmitting terminal sets up the second annexation according to described second configuration information and receiving terminal.
S290, target data is sent to receiving terminal by described second annexation by transmitting terminal.
Concrete, when described transmitting terminal and described receiving terminal set up the second annexation by the second communication modes, transmitting terminal can send target data by described second communication modes to receiving terminal.Wherein, described target data can obtain before transmitting terminal and receiving terminal set up ultrasonic wave annexation, and namely user passes through long according to target data thus makes transmitting terminal and receiving terminal set up ultrasonic wave annexation; Described target data also can be the data to be sent that transmitting terminal presets storage, such as, market is set in transmission of a certain set time discount information, when transmitting terminal detects that present system time arrives the described set time, then the discount information prestored is sent as target data by the second communication modes; Described target data also can be obtain according to the selection instruction of user after transmitting terminal and receiving terminal set up the second annexation.
Refer to Fig. 3, Fig. 3 is the flow chart of the method for the another kind of annexation foundation that the embodiment of the present invention provides, the method that annexation in the present embodiment is set up can be implemented on the communication terminals such as such as mobile phone, notebook computer and PAD, the method of the annexation foundation of the embodiment of the present invention is mainly used in the scene of transmitting terminal and receiving terminal one-to-many, and such as market sends the scene of various discount information.The flow process that annexation as shown in Figure 3 in the present embodiment is set up can comprise:
S310, transmitting terminal receives the instruction that user establishes a connection.
Concrete, user can grow by the target data on transmitting terminal, thus the instruction making this transmitting terminal receive user to establish a connection, wherein, described target data comprises the tinkle of bells, picture, video or application installation kit etc.; Transmitting terminal can also by the icon established a connection preset or button, and receive the instruction that establishes a connection of user, such as, user clicks the default icon established a connection, thus the instruction making transmitting terminal receive user to establish a connection; Transmitting terminal can also obtain the time that user sets up for annexation, and when transmitting terminal detects that present system time is identical with the time that this obtained annexation is set up, transmitting terminal can confirm as the instruction receiving user and establish a connection.When transmitting terminal receives the instruction that user establishes a connection, then according to described vector modulation first ultrasonic wave.
S320, transmitting terminal, according to described vector modulation first ultrasonic wave, makes described first ultrasonic wave carry the first configuration information of the second communication modes.
Concrete, when transmitting terminal receives the instruction that user establishes a connection, transmitting terminal can modulate the first ultrasonic wave by FSK, ASK or PSK, thus makes described first ultrasonic wave carry the first configuration information of the second communication modes.Wherein, described second communication modes comprises the communication such as bluetooth or WIFI, first configuration information is the relevant configuration information of the second communication modes of transmitting terminal, such as, second communication modes is bluetooth, first configuration information is the bluetooth parameters configuration of transmitting terminal, as Bluetooth address and bluetooth OBEX transformation parameter etc.
S330, transmitting terminal sends the first ultrasonic wave carrying the first configuration information presetting carrier frequency.
Concrete, transmitting terminal can send by the ultrasonic transmission device of own terminal the first ultrasonic wave carrying the first configuration information of the second communication modes presetting carrier frequency, and wherein, described default carrier frequency can be pre-set by user and obtain; Described transmitting terminal also can obtain a frequency at random as described default carrier frequency in the frequency range of ultrasonic signal.
S340, transmitting terminal receives second ultrasonic wave of multiple receiving terminal for described first ultrasound feedback, sets up ultrasonic wave annexation successively with described multiple receiving terminal.
Concrete, when there is multiple receiving terminal (as mobile phone, notebook computer or PAD etc.) enter described transmitting terminal send first hyperacoustic signal coverage areas time, receiving terminal can regulate or the receive frequency of manual adjustments ultrasonic probe, ultrasonic receiver automatically, the receive frequency of described receiving terminal is mated with the default carrier frequency of described transmitting terminal, receiving terminal then receives described first ultrasonic wave, thus obtain the first configuration information of the second communication modes entrained by described first ultrasonic wave, and the second configuration information that feedback carries the second communication modes sends out transmitting terminal, transmitting terminal sets up ultrasonic wave annexation with the hyperacoustic receiving terminal of feedback second successively.
S350, in transmitting terminal record and described multiple receiving terminal, each receiving terminal sets up the temporal information of described ultrasonic wave annexation.
Concrete, transmitting terminal can record the temporal information setting up ultrasonic wave annexation with each receiving terminal, such as, set up the present system time of ultrasonic wave annexation.It should be noted that, when described second communication modes is WIFI, then, when described transmitting terminal sets up ultrasonic wave annexation with multiple receiving terminal respectively, the temporal information setting up ultrasonic wave annexation with receiving terminal can be recorded.
S360, transmitting terminal obtains the second configuration information of the second communication modes entrained by described second ultrasonic wave.
As the optional execution mode of one, transmitting terminal can detect described hyperacoustic amplitude variations information, thus 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, thus obtains described second configuration information.
In specific implementation, described hyperacoustic amplitude and default amplitude threshold can contrast by transmitting terminal, if described hyperacoustic amplitude is greater than described default amplitude threshold, then be judged as " 1 " in binary data information and preserve, if described amplitude is less than described default amplitude threshold, is then judged as " 0 " in binary data information and preserves; Transmitting terminal is by detecting described second hyperacoustic amplitude variations information thus obtaining binary data information, the transforming relationship of the described binary data information acquired according to binary system and the second configuration information is changed, thus obtains described second configuration information.
As the optional execution mode of one, transmitting terminal can detect described second hyperacoustic phase place change information, thus obtains corresponding data message, processing said data information, thus obtains described second configuration information; Or,
Transmitting terminal can detect described second hyperacoustic frequency change information, thus obtains corresponding data message, processing said data information, thus obtains described second configuration information; Or,
Transmitting terminal can detect described second hyperacoustic frequency change information and phase place change information simultaneously, the data message that acquisition frequency change information and phase place change information replace, and processes described alternate data, thus obtains described 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, target data is sent to corresponding receiving terminal by described second annexation according to described temporal information by transmitting terminal successively.
Concrete, when transmitting terminal and receiving terminal set up the second annexation by the second communication modes, target data can be sent to corresponding receiving terminal according to described temporal information by the second annexation by transmitting terminal successively, wherein, described target data can obtain before transmitting terminal and receiving terminal set up ultrasonic wave annexation, and namely user passes through long according to target data thus makes transmitting terminal and receiving terminal set up ultrasonic wave annexation; Described target data also can be the data to be sent that transmitting terminal presets storage, such as, market is set in transmission of a certain set time discount information, when transmitting terminal detects that present system time arrives the described set time, then the discount information prestored is sent as target data by the second communication modes; Described target data also can be obtain according to the selection instruction of user after transmitting terminal and receiving terminal set up the second annexation.It should be noted that, when the second communication modes is WIFI, transmitting terminal and described multiple receiving terminal are in local area network (LAN), then the mode that can be shared by WIFI of transmitting terminal, is 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 that the embodiment of the present invention provides, and the terminal in the present embodiment can comprise the communication terminals such as such as mobile phone, notebook computer and PAD.Terminal as shown in Figure 4 in the present embodiment at least can comprise command reception module 4100, ultrasonic wave link block 4200 and the second link block 4300, wherein:
Command reception module 4100, for receiving the instruction that user establishes a connection.
In specific implementation, user can grow by the target data on transmitting terminal, thus the instruction making command reception module 4100 receive user to establish a connection, wherein, described target data comprises the tinkle of bells, picture, video or application installation kit etc.; Command reception module 4100 can also by the default icon established a connection or button, receive the instruction that user establishes a connection, such as, user clicks the default icon established a connection, thus the instruction making command reception module 4100 receive user to establish a connection; Command reception module 4100 can also obtain the time that user sets up for annexation, when transmitting terminal detects that present system time is identical with the time that this obtained annexation is set up, command reception module 4100 can confirm as the instruction receiving user and establish 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 ultrasonic wave as shown in Figure 5 and sends submodule 4210 and ultrasonic wave reception submodule 4220, wherein:
Ultrasonic wave sends submodule 4210, for sending described first ultrasonic wave according to described instruction.In specific implementation, when command reception module 4100 receives the instruction that user establishes a connection, ultrasonic wave sends submodule 4210 and sends the first ultrasonic wave presetting carrier frequency.
Ultrasonic wave receives submodule 4220, for receiving second ultrasonic wave of described receiving terminal according to described first ultrasound feedback.
Second link block 4300, for the ultrasonic wave annexation set 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 first ultrasonic wave carries the first configuration information of the second communication modes, described second ultrasonic wave carries the second configuration information that described receiving terminal feeds back for described first configuration information, then described second link block 4300 can comprise configuration information acquisition submodule 4310 and the second connexon module 4320 as shown in Figure 6 further, wherein:
Configuration information obtains submodule 4310, for obtaining the second configuration information that the described receiving terminal that carries in described second ultrasonic wave feeds back for described first configuration information.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, second ultrasonic wave of ultrasonic wave reception submodule 4220 receiving terminal carries the second configuration information of the second communication modes of receiving terminal, and configuration information obtains submodule 4310 and obtains described second configuration information.Wherein, described second communication modes comprises bluetooth or WIFI.
Second connexon module 4320, sets up the second annexation for described second configuration information and described receiving terminal obtaining submodule 4310 acquisition according to described configuration information.
Optionally, described configuration information obtains submodule 4310 can comprise amplitude detection units 4311 and the first configuration information acquiring unit 4312 as shown in Figure 7 further, wherein:
Amplitude detection units 4311, for detecting described hyperacoustic amplitude variations information, thus obtains corresponding data message, wherein, described amplitude variations information comprises the change information of amplitude, and described data message comprises binary data information, and the corresponding data message of described acquisition can comprise:
Described hyperacoustic amplitude and default amplitude threshold are contrasted, if described hyperacoustic amplitude is greater than described default amplitude threshold, amplitude detection units 4311 is judged as " 1 " in binary data information and preserves, if described amplitude is less than described default amplitude threshold, amplitude detection units 4311 is judged as " 0 " in binary data information and preserves.
First configuration information acquiring unit 4312, for the treatment of described data message, thus obtains described second configuration information.In specific implementation, the first configuration information acquiring unit 4312 according to the transformational relation processing said data information of data message and the second configuration information, thus can obtain described second configuration information.
Optionally, described configuration information obtains submodule 4310 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 further, wherein:
Phase detection unit 4313, for detecting described second hyperacoustic phase place change information, thus obtains corresponding data message.
Frequency detecting unit 4314, for detecting described second hyperacoustic frequency change information, thus obtains corresponding data message.
Second configuration information acquiring unit 4315, for the treatment of the described data message that described phase detection unit 4313 and/or frequency detecting unit 4314 obtain, thus obtains described 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, improve the operating experience of user; Further, by the second annexation transmission data, extend transmission range, improve 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 described in detail, can see the associated description of other embodiments.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Module in embodiment of the present invention device, unit or subelement can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.