A kind of communication means and system
Technical field
The invention belongs to communication technical field, particularly relate to a kind of communication means and system.
Background technology
Along with the development of network technology, existing terminal unit (such as mobile phone, computer etc.) mostly has net
Network access function, increasing occasion is the most all deployed with cable network (for example with coaxial cable, multiple twin
The computer network that line and optical fiber connect) or wireless network (such as WIFI network), facilitate terminal to set
Standby user is communicated by described cable network or wireless network.
But, not disposing the occasion of cable network or wireless network at some, terminal user will be unable to
Realize communication.
Summary of the invention
The purpose of the embodiment of the present invention is to provide a kind of communication means and system, to solve be not deployed with
Gauze network or the occasion of wireless network, the problem that terminal user cannot be carried out communication.
The embodiment of the present invention is achieved in that a kind of communication means, is applied to comprise multiple terminal unit
System, described terminal unit all has Bluetooth function, and described method includes:
Described terminal unit opens Bluetooth function;
The other-end equipment of Bluetooth function is opened in the search of described terminal unit, and it is blue to store the unlatching searched
The information of the other-end equipment of tooth function;
Described terminal unit after receiving the communication request information that other-end equipment is sent by bluetooth, root
According to the unique identifier of the terminal unit to be communicated carried in described communication request information, what lookup was stored opens
Whether the information of the other-end equipment opening Bluetooth function exists the terminal corresponding with described unique identifier
The information of equipment;
Described terminal unit exists and institute in the information of the other-end equipment opening Bluetooth function stored
When stating the information of the corresponding terminal unit of unique identifier, by bluetooth, described communication request information is sent
Give the terminal unit corresponding with described unique identifier to realize communication.
The another object of the embodiment of the present invention is to provide a kind of communication system, and described system includes:
Multiple terminal units, described terminal unit all has Bluetooth function;
Described terminal unit includes:
Bluetooth function opens unit, for opening the Bluetooth function of described terminal unit;
Information memory cell, for searching for the other-end equipment opening Bluetooth function, and stores and searches
Open the information of the other-end equipment of Bluetooth function;
Communication request unit, for receiving the communication request information that other-end equipment is sent by bluetooth
After, according to the unique identifier of the terminal unit to be communicated carried in described communication request information, search and deposited
Whether the information of the other-end equipment opening Bluetooth function of storage exist corresponding with described unique identifier
The information of terminal unit;
Communication realizes unit, deposits in the information at the other-end equipment opening Bluetooth function stored
When the information of the terminal unit corresponding with described unique identifier, by bluetooth, described communication request is believed
Breath is sent to the terminal unit corresponding with described unique identifier to realize communication.
The embodiment of the present invention compared with prior art exists and provides the benefit that: by the embodiment of the present invention, makes
Obtain each terminal unit under not disposing the occasion of cable network or wireless network, it is also possible to realized by bluetooth
Communication.Especially in Bluetooth transmission distance outward, it is also possible to according to the letter of the other-end equipment of terminal unit storage
The lookup of breath one-level one-level and coupling, it is achieved telecommunication.And pass through Bluetooth communication, it is not necessary to consume
The network traffics of terminal unit.Further, since Bluetooth communication process is low in energy consumption, described terminal unit uses indigo plant
Tooth communicates, consuming far below by cable network or the communication of wireless network of its electricity.The embodiment of the present invention
During communication, each terminal unit need not increase extra hardware, and easy to operate, quick, tool
There is stronger usability and practicality.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to embodiment or existing skill
In art description, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only
It is only some embodiments of the present invention, for those of ordinary skill in the art, is not paying creative labor
On the premise of dynamic property, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the Organization Chart of the communication system that the embodiment of the present invention one provides;
Fig. 2 is the exemplary plot of the communication system applications scene that the embodiment of the present invention one provides;
Fig. 3 is another exemplary plot of the communication system applications scene that the embodiment of the present invention one provides;
Fig. 4 is the flowchart of the communication means that the embodiment of the present invention two provides;
Fig. 5 is the composition structure chart of the terminal unit that the embodiment of the present invention three provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
In order to technical solutions according to the invention are described, illustrate below by specific embodiment.
Embodiment one:
Fig. 1 shows the framework of the communication system that the embodiment of the present invention one provides, and for convenience of description, only shows
Go out part related to the present embodiment.
As it is shown in figure 1, this system includes that at least one first terminal equipment 1, at least one second terminal set
Standby 2, and at least one third terminal equipment 3.
Wherein, described first terminal equipment the 1, second terminal unit 2 and third terminal equipment 3 all have indigo plant
Tooth function, the distance of described first terminal equipment 1 and described second terminal unit 2 is at the first preset range (its
In, described first preset range is the transmission range of bluetooth, such as 10 meters) in, described second terminal unit
2 with the distance of described third terminal equipment 3 also in described first preset range, described first terminal equipment 1
With described third terminal equipment 3 outside described first preset range.Described terminal unit includes but not limited to hands
Machine, panel computer, desktop computer, notebook computer, printer etc..
In the present embodiment, described first terminal equipment the 1, second terminal unit 2 and third terminal equipment 3
It is switched on Bluetooth function, to search in Bluetooth transmission range other terminal units opening Bluetooth functions.I.e.
The second terminal unit 2 of Bluetooth function is opened in one terminal unit 1 search, and the second terminal unit 2 search is opened
The first terminal equipment 1 of Bluetooth function and third terminal equipment 3, bluetooth is opened in third terminal equipment 3 search
Second terminal unit 2 of function.
In order to realize telecommunication, the present embodiment first terminal equipment the 1, second terminal unit 2 and the 3rd
Terminal unit 3 is after searching the other-end equipment opening Bluetooth function, and store that it searches respectively opens
Open the information of the other-end equipment of Bluetooth function.Described information include terminal unit title, unique identifier,
Position information etc..
Preferably, in order to avoid, after terminal unit bluetooth is closed or terminal unit position changes, connecting
Picking out mistake, the present embodiment also includes:
Described first terminal equipment the 1, second terminal unit 2 and third terminal equipment 3 are spaced at preset timed intervals
(such as, searching for 1 time for every 10 minutes) search is opened the other-end equipment of Bluetooth function, and is updated storage
The information of the other-end equipment opening Bluetooth function searched.
In the present embodiment, owing to the distance of first terminal equipment 1 and the second terminal unit 2 is in Bluetooth transmission
In the range of, therefore opening Bluetooth function successful matching when first terminal equipment 1 and the second terminal unit 2
After, can directly pass through Bluetooth communication, the described communication information include terminal to be communicated unique identifier and
The information such as word, picture and/or voice.Owing to the distance of first terminal equipment 1 and third terminal equipment 3 exists
Outside Bluetooth transmission range, but the distance of the second terminal unit 2 and third terminal equipment 3 is at Bluetooth transmission range
In, therefore when first terminal equipment 1 is want to communicate with third terminal equipment 3, need first the communication information to be led to
Crossing bluetooth and be sent to the second terminal unit 2, the second terminal unit 2 is according to carried in the described communication information
The unique identifier of three terminal units 3, by the information searching of storage to corresponding third terminal equipment 3,
And the described communication information is transmitted to by bluetooth the third terminal equipment 3 of described correspondence, thus realize first
Communication between terminal unit 1 and third terminal equipment 3.
As a preferable examples of the present invention, at first terminal equipment 1 by the second terminal unit 2 to the 3rd
When terminal unit 3 forwards the communication information, the present embodiment also includes:
Described first terminal equipment the 1, second terminal unit 2 and third terminal equipment 3 are opening Bluetooth function
Afterwards, its positional information being presently in is indicated;
The positional information that described first terminal equipment 1 is indicated according to the second terminal unit 2 searched, to
Second terminal unit 2 nearest apart from self sends connectivity request message.
It is concrete it may be that described first terminal equipment 1 shows the second terminal searched in the way of list
The information of equipment 2, the information of described second terminal unit 2 includes its positional information, receives user according to institute
State the second terminal that in list, the distance selected by positional information self of the second terminal unit 2 of display is nearest
Equipment 2, and send connectivity request message to this second terminal unit 2.Or first terminal equipment 1 basis
The positional information of self and the positional information of the second terminal unit 2 searched, calculate first terminal equipment 1
With the distance of the second terminal unit 2 searched, and according to calculating the nearly remote company of transmission the most successively of the distance obtained
Connect solicited message (i.e. first send connectivity request message to the second closest terminal unit 2, if nearest
Second terminal unit 2 do not stores the information of described third terminal equipment 3, then to distance second near second
Terminal unit 2 sends connectivity request message, the like, until finding the described third terminal equipment of storage
Second terminal unit 2 of 3 information).
Further, in order to improve the safety of data transmission, the present embodiment, will when by Bluetooth communication
The communication information is packaged into the information bag of specific format, and different to information definitions different in described information bag
Packet header, each terminal unit of concrete meaning in described packet header is arranged before sending.
In order to be better understood from the present invention, illustrate (with Bluetooth transmission below by concrete application scenarios
As a example by distance 10 meters):
As in figure 2 it is shown, the distance of terminal unit A and terminal unit B and terminal unit C is at Bluetooth transmission model
In enclosing, terminal unit A with terminal unit B and terminal unit C successful matching after, store terminal unit B
Information with terminal unit C.In like manner, terminal unit B with terminal unit A, C, D, E successful matching
After, the information of storage terminal unit A, C, D, E;Terminal unit C with terminal unit A, B, D,
After E, N successful matching, the information of storage terminal unit A, B, D, E, N;Terminal unit D with
After terminal unit B, C, E, N successful matching, the information of storage terminal unit B, C, E, N;Terminal
Equipment E with terminal unit B, C, D, N successful matching after, store terminal unit B, C, D, N
Information;Terminal unit N with terminal unit C, D, E successful matching after, storage terminal unit C, D,
The information of E.
As it is shown on figure 3, terminal unit C is moved to distance terminal unit D5 rice, distance terminal unit B15
The place of rice.Each terminal unit updates the information stored.Now, terminal unit A distance terminal unit C
20 meters, if terminal unit A needs to communicate with terminal unit C, depositing after being updated by terminal unit A
Storage INFORMATION DISCOVERY, terminal unit A can only carry out Bluetooth communication with terminal unit B, then terminal unit A will
Issue the communication information of terminal unit C be first sent to terminal unit B, terminal unit B receiving described logical
After letter information, according to the unique identifier of the terminal unit to be communicated carried in the described communication information it is known that end
End device A needs the described communication information is sent to terminal unit C, after being to look for terminal unit B renewal
Storage INFORMATION DISCOVERY, terminal unit B can carry out Bluetooth communication with terminal unit D and E, then terminal sets
The described communication information is sent to terminal unit D and E, terminal unit D and E and searches self renewal by standby B
After storage INFORMATION DISCOVERY, terminal unit D exists the information of described terminal unit C, in time terminal unit
The described communication information is sent to terminal unit C by D, completes the communication of terminal unit A and terminal unit C,
And after communication completes, to each successful information of terminal unit feedback communication.
If it addition, having traveled through all terminal units not find terminal unit C to be communicated yet, then to terminal
The information that device A feedback communication is failed.
It should be noted that above-mentioned application scenarios is served only for explaining the present invention, it is not intended to limit the present invention
Protection domain.
Embodiment two:
What Fig. 4 showed the communication means that the embodiment of the present invention two provides realizes flow process, is applied to shown in Fig. 1
System in, the executive agent of the method is any terminal equipment in system shown in Figure 1, and the method process is detailed
State as follows:
In step S401, described terminal unit opens Bluetooth function.
In the present embodiment, described terminal unit is the terminal unit with Bluetooth function.Described terminal unit
After receiving the information opening Bluetooth function, open Bluetooth function.The information bag of described unlatching Bluetooth function
(described instruction is preferably: set in terminal monitoring user to include the instruction opening Bluetooth function that user sends
Touch action on standby touch screen is two touch and after sliding trace is longitudinally opposed slip, it is judged that two touch
The first threshold that the displacement of the longitudinally opposed slip of point is the most simultaneously greater than preset, the described two final drop points in touch point
The speed whether slided less than the Second Threshold preset and described two touch points of range difference whether be simultaneously greater than
The 3rd threshold value preset;Or it is two touch and described sliding trace is phase monitoring described touch action
After opposite direction is slided, it is judged that the first threshold that the displacement that two touch point rightabouts slide the most simultaneously greater than is preset
Whether value, the range difference of the described two final drop points in touch point touch more than the 4th threshold value preset and described two
The 3rd threshold value that the speed that point slides the most simultaneously greater than is preset, if (i.e. above three conditional judgment result
It is all "Yes"), then it is judged to open the instruction of Bluetooth function, opens Bluetooth function;If not (above-mentioned three
The judged result of individual condition at least one be "No"), do not perform, terminate current operation), or
The trigger message opening Bluetooth function produced according to default time interval.
In step S402, the other-end equipment of Bluetooth function is opened in the search of described terminal unit, and stores
The information of the other-end equipment opening Bluetooth function searched.
In the present embodiment, described terminal unit, after opening Bluetooth function, searches for certain limit (i.e. automatically
Bluetooth transmission distance) the interior other-end equipment opening Bluetooth function, and store the unlatching bluetooth merit searched
The information of the other-end equipment of energy.Described information includes the title of terminal unit, unique identifier, place
Positional information etc..
Preferably, in order to avoid, after terminal unit bluetooth is closed or terminal unit position changes, connecting
Picking out mistake, the present embodiment also includes:
Described terminal unit is spaced (such as, searching for 1 time for every 10 minutes) search at preset timed intervals and opens bluetooth
The other-end equipment of function, and update the letter of the other-end equipment opening Bluetooth function that storage searches
Breath.
In step S403, described terminal unit is receiving the communication that other-end equipment is sent by bluetooth
After solicited message, according to the unique identifier of the terminal unit to be communicated carried in described communication request information,
Search in the information of the other-end equipment opening Bluetooth function stored and whether exist and described unique mark
Accord with the information of corresponding terminal unit.
In the present embodiment, described terminal unit is receiving the communication that other-end equipment is sent by bluetooth
After solicited message, can be according to unique mark of the terminal unit to be communicated carried in described communication request information
Symbol, first judges whether it is with self communication, if it is not, other of the unlatching Bluetooth function that lookup is stored again are whole
Whether the information of end equipment exists the information of the terminal unit corresponding with described unique identifier.
Wherein, described communication request information includes unique identifier and word, the figure of terminal unit to be communicated
The information such as sheet and/or voice.
It should be noted that receiving other-end equipment by leading to that bluetooth sends at described terminal unit
Before letter solicited message, also include:
Described terminal unit is after receiving the connectivity request message that described other-end equipment sends, to described
Other-end equipment feedback link response message connects to realize bluetooth.I.e. needing could be real after successful matching
Existing Bluetooth communication.
In step s 404, described terminal unit is at the other-end equipment opening Bluetooth function stored
When information exists the information of the terminal unit corresponding with described unique identifier, by bluetooth by described logical
Letter solicited message is sent to the terminal unit corresponding with described unique identifier to realize communication.
It should be noted that described communication request information is sent to and institute by bluetooth at described terminal unit
State the corresponding terminal unit of unique identifier with realize communication before, also include:
Described terminal unit sends connectivity request message to the terminal unit corresponding with described unique identifier,
And realize indigo plant after the connection response information receiving the terminal unit feedback corresponding with described unique identifier
Tooth connects.I.e. need could realize Bluetooth communication after successful matching.
Further, if the information of the other-end equipment opening Bluetooth function stored does not exists and institute
Stating the information of the corresponding terminal unit of unique identifier, the present embodiment also includes:
Described communication request information is sent to all of terminal unit in described storage information, in order to described
All of terminal unit finds described terminal unit to be communicated by the information searching self storage.
Not only made each terminal unit not dispose cable network or wireless network by the embodiment of the present invention
Under occasion, it is also possible to realize communication by bluetooth.And according to the other-end equipment of terminal unit storage
Information, can expand the scope of communication further so that the terminal unit outside Bluetooth transmission distance can also be real
Existing indirect communication.
Embodiment three:
Fig. 5 shows the composition structure of the terminal unit that the embodiment of the present invention three provides, for convenience of description,
Illustrate only the part relevant to the embodiment of the present invention.
This terminal unit 5 is the terminal unit with Bluetooth function, and this terminal unit 5 includes:
Bluetooth function opens unit 51, for opening the Bluetooth function of described terminal unit;
Information memory cell 52, for searching for the other-end equipment opening Bluetooth function, and storage searches
The information of other-end equipment opening Bluetooth function;
Communication request unit 53, for receiving the communication request letter that other-end equipment is sent by bluetooth
After breath, according to the unique identifier of the terminal unit to be communicated carried in described communication request information, search institute
Whether the information of the other-end equipment opening Bluetooth function of storage exist relative with described unique identifier
The information of the terminal unit answered;
Communication realizes unit 54, in the information at the other-end equipment opening Bluetooth function stored
When there is the information of the terminal unit corresponding with described unique identifier, by bluetooth by described communication request
Information is sent to the terminal unit corresponding with described unique identifier to realize communication.
Further, described information memory cell 52 is used for:
IV interval opens the other-end equipment of Bluetooth function at preset timed intervals, and updates what storage searched
Open the information of the other-end equipment of Bluetooth function.
Further, described terminal unit 5 also includes:
First connects unit 55, for receiving the connectivity request message that described other-end equipment sends
After, connect to realize bluetooth to described other-end equipment feedback link response message.
Further, described terminal unit 5 also includes:
Second connects unit 56, asks for sending to connect to the terminal unit corresponding with described unique identifier
Seek information, and receive the connection response information of the terminal unit feedback corresponding with described unique identifier
After realize bluetooth connect.
Further, it is characterised in that described Bluetooth function open unit 51 specifically for:
After receiving the information opening Bluetooth function, open Bluetooth function;Wherein, described unlatching bluetooth merit
Can information include the instruction opening Bluetooth function that user sends or produce according to default time interval
Open the trigger message of Bluetooth function.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, only with above-mentioned
The division of each functional unit is illustrated, and in actual application, can above-mentioned functions be divided as desired
Join and completed by different functional units, the internal structure of described terminal unit will be divided into different function lists
Unit or module, to complete all or part of function described above.Each functional unit in embodiment is permissible
It is integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or two
Above unit is integrated in a unit, and above-mentioned integrated unit both can realize, also to use the form of hardware
Can realize to use the form of SFU software functional unit.It addition, the specific name of each functional unit is also intended merely to
It is easy to mutually distinguish, is not limited to the protection domain of the application.In above-mentioned terminal unit, unit is concrete
Work process, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In sum, not only made by the embodiment of the present invention each terminal unit do not dispose cable network or
Under the occasion of wireless network, it is also possible to realize communication by bluetooth.And according to terminal unit storage other
The information of terminal unit, can expand the scope of communication further so that the terminal outside Bluetooth transmission distance sets
For realizing indirect communication.It addition, pass through Bluetooth communication, it is not necessary to consume the network flow of terminal unit
Amount.Owing to Bluetooth communication process is low in energy consumption, described terminal unit uses Bluetooth communication, and the consumption of its electricity is remote
Less than by cable network or the communication of wireless network.The embodiment of the present invention communication during, each terminal
Equipment need not increase extra hardware, and easy to operate, quick, has stronger usability and practicality.
Those of ordinary skill in the art it is also understood that, it is achieved all or part of step in above-described embodiment method
Suddenly the program that can be by completes to instruct relevant hardware, and described program can be stored in a calculating
In machine read/write memory medium, described storage medium, including ROM/RAM, disk, CD etc..
Above content is to combine concrete preferred implementation further description made for the present invention, no
Can assert the present invention be embodied as be confined to these explanations.Common for the technical field of the invention
For technical staff, make some equivalents without departing from the inventive concept of the premise and substitute or obvious modification,
And performance or purposes are identical, all should be considered as belonging to the present invention by the claims submitted to determine special
Profit protection domain.