Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
For technical solutions according to the invention are described, describe below by specific embodiment.
embodiment mono-:
Fig. 1 shows the framework of the communication system that the embodiment of the present invention one provides, and for convenience of explanation, only shows the part relevant to the present embodiment.
As shown in Figure 1, this system comprises at least one first terminal equipment 1, at least one second terminal equipment 2, and at least one third terminal equipment 3.
Wherein, described first terminal equipment 1, the second terminal equipment 2 and third terminal equipment 3 all have Bluetooth function, the distance of described first terminal equipment 1 and described the second terminal equipment 2 in the first preset range (wherein, the transmission range that described the first preset range is bluetooth, for example 10 meters) in, the distance of described the second terminal equipment 2 and described third terminal equipment 3 is also in described the first preset range, and described first terminal equipment 1 and described third terminal equipment 3 are outside described the first preset range.Described terminal equipment includes but not limited to mobile phone, panel computer, desktop computer, notebook computer, printer etc.
In the present embodiment, described first terminal equipment 1, the second terminal equipment 2 and third terminal equipment 3 are all opened Bluetooth function, and to search for, within the scope of Bluetooth transmission, other open the terminal equipment of Bluetooth function.Be first terminal equipment 1 and the third terminal equipment 3 that the second terminal equipment 2, the second terminal equipment 2 search unlatching Bluetooth functions of Bluetooth function are opened in 1 search of first terminal equipment, the second terminal equipment 2 of Bluetooth function is opened in 3 search of third terminal equipment.
In order to realize telecommunication, the present embodiment first terminal equipment 1, the second terminal equipment 2 and third terminal equipment 3 are searching after the other-end equipment of opening Bluetooth function, the information of storing respectively the other-end equipment of its unlatching Bluetooth function searching.Described information comprises terminal equipment title, unique identifier, position information etc.
Preferably, for fear of closing in terminal equipment bluetooth or after terminal equipment position changes, connection makes mistakes, the present embodiment also comprises:
Interval is (for example at preset timed intervals for described first terminal equipment 1, the second terminal equipment 2 and third terminal equipment 3, search in every 10 minutes 1 time) search opens the other-end equipment of Bluetooth function, and upgrade the information of the other-end equipment of the unlatching Bluetooth function that memory search arrives.
In the present embodiment, because the distance of first terminal equipment 1 and the second terminal equipment 2 is within the scope of Bluetooth transmission, therefore when first terminal equipment 1 and the second terminal equipment 2 are being opened after Bluetooth function successful matching, can directly pass through Bluetooth communication, the described communication information comprises the information such as unique identifier and word, picture and/or voice for the treatment of communication terminal.Because the distance of first terminal equipment 1 and third terminal equipment 3 is outside Bluetooth transmission scope, but the distance of the second terminal equipment 2 and third terminal equipment 3 is within the scope of Bluetooth transmission, therefore in the time that first terminal equipment 1 is want to communicate by letter with third terminal equipment 3, need first the communication information to be sent to the second terminal equipment 2 by bluetooth, the second terminal equipment 2 is according to the unique identifier of the third terminal equipment 3 carrying in the described communication information, find corresponding third terminal equipment 3 by canned data, and the described communication information is transmitted to the third terminal equipment 3 of described correspondence by bluetooth, thereby realize the communication between first terminal equipment 1 and third terminal equipment 3.
As a preferable examples of the present invention, in the time that first terminal equipment 1 forwards the communication information by the second terminal equipment 2 to third terminal equipment 3, the present embodiment also comprises:
Described first terminal equipment 1, the second terminal equipment 2 and third terminal equipment 3, after opening Bluetooth function, indicate its current residing positional information;
The positional information that described first terminal equipment 1 indicates according to the second terminal equipment 2 searching, to sending connectivity request message apart from self the second nearest terminal equipment 2.
Concrete can be, described first terminal equipment 1 shows the information of the second terminal equipment 2 searching in the mode of list, the information of described the second terminal equipment 2 comprises its positional information, receive user selected apart from self the second nearest terminal equipment 2 according to the positional information of the second terminal equipment 2 showing in described list, and send connectivity request message to this second terminal equipment 2.Or first terminal equipment 1 is the positional information with the second terminal equipment 2 searching according to the positional information of self, the distance of the second terminal equipment 2 that calculates first terminal equipment 1 and search, and (first send connectivity request message to the second nearest terminal equipment 2 according to the connectivity request message that sends closely far successively that calculates the distance obtaining, if the information of not storing described third terminal equipment 3 in the second nearest terminal equipment 2, send connectivity request message to distance second the second near terminal equipment 2 again, the like, until find the second terminal equipment 2 of described third terminal equipment 3 information of storage).
Further, in order to improve the fail safe of transfer of data, the present embodiment, when by Bluetooth communication, is packaged into the communication information packets of information of specific format, and the packet header different to information definitions different in described packets of information, the each terminal equipment of concrete meaning in described packet header is arranged before transmission.
For a better understanding of the present invention, describe (taking 10 meters of Bluetooth transmission distances as example) below by concrete application scenarios:
As shown in Figure 2, the distance of terminal equipment A and terminal equipment B and terminal equipment C within the scope of Bluetooth transmission, terminal equipment A with terminal equipment B and terminal equipment C successful matching after, the information of storage terminal equipment B and terminal equipment C.In like manner, terminal equipment B with terminal equipment A, C, D, E successful matching after, the information of storage terminal device A, C, D, E; Terminal equipment C with terminal equipment A, B, D, E, N successful matching after, the information of storage terminal device A, B, D, E, N; Terminal equipment D with terminal equipment B, C, E, N successful matching after, the information of storage terminal equipment B, C, E, N; Terminal equipment E with terminal equipment B, C, D, N successful matching after, the information of storage terminal equipment B, C, D, N; Terminal equipment N with terminal equipment C, D, E successful matching after, the information of storage terminal equipment C, D, E.
As shown in Figure 3, terminal equipment C is moved to apart from terminal equipment D5 rice, apart from the place of terminal equipment B15 rice.Each terminal equipment upgrades institute's canned data.Now, terminal equipment A is apart from terminal equipment C20 rice, if terminal equipment A need to communicate by letter with terminal equipment C, storage INFORMATION DISCOVERY after upgrading by terminal equipment A, terminal equipment A can only carry out Bluetooth communication with terminal equipment B, the communication information of issuing terminal equipment C is first sent to terminal equipment B by terminal equipment A, terminal equipment B is receiving after the described communication information, according to the unique identifier for the treatment of communication terminal device carrying in the described communication information, know that terminal equipment A need to send to terminal equipment C by the described communication information, so search the storage INFORMATION DISCOVERY after terminal equipment B upgrades, terminal equipment B can carry out Bluetooth communication with terminal equipment D and E, the described communication information is sent to terminal equipment D and E by terminal equipment B, terminal equipment D and E search the storage INFORMATION DISCOVERY after self upgrading, in terminal equipment D, there is the information of described terminal equipment C, in time terminal equipment D the described communication information is sent to terminal equipment C, complete communicating by letter of terminal equipment A and terminal equipment C, and after communication completes, to the successful information of each terminal equipment feedback communication.
In addition, do not find yet and treat communication terminal device C if traveled through all terminal equipments, to the information of terminal equipment A feedback communication failure.
It should be noted that, above-mentioned application scenarios is only for explaining the present invention, the protection range being not intended to limit the present invention.
embodiment bis-:
Fig. 4 shows the realization flow of the communication means that the embodiment of the present invention two provides, and is applied in the system shown in Fig. 1, and the executive agent of the method is arbitrary terminal equipment in system shown in Figure 1, and details are as follows for the method process:
In step S401, described terminal equipment is opened Bluetooth function.
In the present embodiment, described terminal equipment is the terminal equipment with Bluetooth function.Described terminal equipment, receiving after the information of opening Bluetooth function, is opened Bluetooth function.The information of described unlatching Bluetooth function comprises that (described instruction is preferably: be at 2 and touch and after sliding trace is longitudinal relative sliding monitoring the touch action of user on terminal equipment touch-screen, whether the speed whether the range difference whether displacement that judge the two longitudinal relative slidings in touch point is greater than default first threshold, the described two final drop points in touch point is simultaneously less than default Second Threshold and described two touch points slips is greater than the 3rd default threshold value simultaneously for the instruction of the unlatching Bluetooth function that user sends; Or be that 2 touches and described sliding trace are after rightabout slides monitoring described touch action, judge whether range difference that whether displacement that two touch point rightabouts slide is greater than default first threshold, the described two final drop points in touch point is simultaneously greater than the speed of the 4th default threshold value and described two touch points sliding and whether is greater than the 3rd default threshold value simultaneously, (if being that above-mentioned three condition judgment results are all "Yes"), be judged to be to open the instruction of Bluetooth function, open Bluetooth function; (judged result of above-mentioned three conditions has one at least for "No"), does not carry out if not, finishes current operation), or according to the trigger message of the unlatching Bluetooth function of default time interval generation.
In step S402, the other-end equipment of Bluetooth function is opened in the search of described terminal equipment, and the information of the other-end equipment of the unlatching Bluetooth function that arrives of memory search.
In the present embodiment, described terminal equipment is being opened after Bluetooth function, in automatic search certain limit (be Bluetooth transmission distance), open the other-end equipment of Bluetooth function, and the information of the other-end equipment of the unlatching Bluetooth function that arrives of memory search.Described information comprises title, unique identifier, position information of terminal equipment etc.
Preferably, for fear of closing in terminal equipment bluetooth or after terminal equipment position changes, connection makes mistakes, the present embodiment also comprises:
Described terminal equipment at preset timed intervals interval (for example, every 10 minutes search 1 time) search is opened the other-end equipment of Bluetooth function, and upgrades the information of the other-end equipment of the unlatching Bluetooth function that memory search arrives.
In step S403, described terminal equipment is receiving after the communication request information that other-end equipment sends by bluetooth, according to the unique identifier for the treatment of communication terminal device carrying in described communication request information, search the information that whether has the terminal equipment corresponding with described unique identifier in the information of other-end equipment of stored unlatching Bluetooth function.
In the present embodiment, described terminal equipment is receiving after the communication request information that other-end equipment sends by bluetooth, can be according to the unique identifier for the treatment of communication terminal device carrying in described communication request information, first judge whether it is with self communication, if not, then search the information that whether has the terminal equipment corresponding with described unique identifier in the information of other-end equipment of stored unlatching Bluetooth function.
Wherein, described communication request information comprises the information such as unique identifier and word, picture and/or voice for the treatment of communication terminal device.
It should be noted that, before described terminal equipment is receiving the communication request information that other-end equipment sends by bluetooth, also comprise:
Described terminal equipment is receiving after the connectivity request message of described other-end equipment transmission, connects to realize bluetooth to described other-end equipment feedback link response message.Need to after successful matching, could realize Bluetooth communication.
In step S404, when described terminal equipment exists the information of the terminal equipment corresponding with described unique identifier in the information of the other-end equipment of stored unlatching Bluetooth function, send to the terminal equipment corresponding with described unique identifier to realize communication described communication request information by bluetooth.
It should be noted that, by bluetooth, described communication request information is sent to the terminal equipment corresponding with described unique identifier with before realizing communication at described terminal equipment, also comprise:
Described terminal equipment sends connectivity request message to the terminal equipment corresponding with described unique identifier, and realizes bluetooth connection after the connection response information that receives the terminal equipment feedback corresponding with described unique identifier.Need to after successful matching, could realize Bluetooth communication.
Further, if there is not the information of the terminal equipment corresponding with described unique identifier in the information of the other-end equipment of the unlatching Bluetooth function of storing, the present embodiment also comprises:
Described communication request information is sent to all terminal equipments in described storage information, so that described all terminal equipments are treated communication terminal device by searching self canned data described in finding.
Not only make each terminal equipment not be deployed with under the occasion of spider lines or wireless network by the embodiment of the present invention, also can realize communication by bluetooth.And according to the information of the other-end equipment of terminal equipment storage, can further expand the scope of communication, make the terminal equipment outside Bluetooth transmission distance also can realize indirect communication.
embodiment tri-:
Fig. 5 shows the composition structure of the terminal equipment that the embodiment of the present invention three provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
This terminal equipment 5 is for having the terminal equipment of Bluetooth function, and this terminal equipment 5 comprises:
Bluetooth function is opened unit 51, for opening the Bluetooth function of described terminal equipment;
Information memory cell 52, opens the other-end equipment of Bluetooth function for searching for, and the information of the other-end equipment of the unlatching Bluetooth function that arrives of memory search;
Communication request unit 53, for receiving after the communication request information that other-end equipment sends by bluetooth, according to the unique identifier for the treatment of communication terminal device carrying in described communication request information, search the information that whether has the terminal equipment corresponding with described unique identifier in the information of other-end equipment of stored unlatching Bluetooth function;
Communication realizes unit 54, for in the time that the information of the other-end equipment of stored unlatching Bluetooth function exists the information of the terminal equipment corresponding with described unique identifier, send to the terminal equipment corresponding with described unique identifier to communicate by letter to realize described communication request information by bluetooth.
Further, described information memory cell 52 for:
IV interval is opened the other-end equipment of Bluetooth function at preset timed intervals, and upgrades the information of the other-end equipment of the unlatching Bluetooth function that memory search arrives.
Further, described terminal equipment 5 also comprises:
The first linkage unit 55, for receiving after the connectivity request message of described other-end equipment transmission, connects to realize bluetooth to described other-end equipment feedback link response message.
Further, described terminal equipment 5 also comprises:
The second linkage unit 56, sends connectivity request message for the terminal equipment to corresponding with described unique identifier, and realizes bluetooth connection after the connection response information that receives the terminal equipment feedback corresponding with described unique identifier.
Further, it is characterized in that, described Bluetooth function open unit 51 specifically for:
Receiving after the information of opening Bluetooth function, open Bluetooth function; Wherein, the information of described unlatching Bluetooth function comprises the instruction of the unlatching Bluetooth function that user sends or the trigger message of the unlatching Bluetooth function that produces according to the default time interval.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional unit, in practical application, can above-mentioned functions be distributed and completed by different functional units as required, be divided into different functional units or module by the internal structure of described terminal equipment, to complete all or part of function described above.Each functional unit in embodiment can be integrated in a processing unit, also can be that the independent physics of unit exists, also can be integrated in a unit two or more unit, above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.In addition, the concrete title of each functional unit also, just for the ease of mutual differentiation, is not limited to the application's protection range.The specific works process of unit in above-mentioned terminal equipment, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In sum, not only make each terminal equipment not be deployed with under the occasion of spider lines or wireless network by the embodiment of the present invention, also can realize communication by bluetooth.And according to the information of the other-end equipment of terminal equipment storage, can further expand the scope of communication, make the terminal equipment outside Bluetooth transmission distance also can realize indirect communication.In addition, by Bluetooth communication, do not need to consume the network traffics of terminal equipment.Because Bluetooth communication process is low in energy consumption, described terminal equipment adopts Bluetooth communication, and the consumption of its electric weight is far below the communication of passing through cable network or wireless network.The embodiment of the present invention is in the process of communication, and each terminal equipment does not need to increase extra hardware, and easy to operate, quick, has stronger ease for use and practicality.
Those of ordinary skill in the art it is also understood that, the all or part of step realizing in above-described embodiment method is can carry out the hardware that instruction is relevant by program to complete, described program can be being stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention; make without departing from the inventive concept of the premise some alternative or obvious modification that are equal to; and performance or purposes identical, all should be considered as belonging to the present invention by the definite scope of patent protection of submitted to claims.