A kind of vehicle-mounted many amusement equipment bluetooth changing method, amusement equipment and system
Technical field
The present invention relates to Bluetooth technology field, particularly relate to a kind of vehicle-mounted many amusement equipment bluetooth changing method, amusement equipment and system.
Background technology
Bluetooth technology is a kind of short-distance wireless communication technology, through development for many years, is used widely in a lot of fields.The automobile market currently developed rapidly, provides wide development space for Bluetooth technology in the application of automotive field.Vehicular amusement apparatus combines with Bluetooth technology, uses to automobile and services and brings bigger facility.
Bluetooth technology application on automobile mainly has: car phone, car entertainment, security protection diagnosis and on-vehicle information application etc..Such as car phone, smart mobile phone is set up after bluetooth is connected by user with on-vehicle acoustic apparatus, when having incoming call or calling, can carry out Tone Via, the convenience conversed in raising driving conditions by on-vehicle acoustic apparatus, and improve traffic safety.For another example, car entertainment, smart mobile phone is set up after being connected by user with on-vehicle acoustic apparatus or display device etc., the transmission such as the music downloaded on smart mobile phone, video can be played out to vehicular amusement apparatus, and play out control by the control knob on vehicle-mounted.For another example, on-vehicle information is applied, and vehicular amusement apparatus is connected with smart mobile phone foundation by bluetooth wireless links, is connected to the Internet, composition car networking, can obtain such as weather, news, information, Real-time Traffic Information, parking space information etc. by the Internet.
At present, vehicular amusement apparatus is only limitted to a smart mobile phone and the connection of a vehicular amusement apparatus with the connection of smart mobile phone, when automobile exists multiple vehicular amusement apparatus, and smart mobile phone needs when the current vehicular amusement apparatus connected is switched to another vehicular amusement apparatus, existing changing method is: the bluetooth first disconnected between smart mobile phone with the vehicular amusement apparatus being currently connected connects, and then with another vehicular amusement apparatus, smart mobile phone is re-established bluetooth and is connected.Need to again search bluetooth equipment when bluetooth is connected re-establishing with another vehicular amusement apparatus, when there is bluetooth connection and just setting password, connection password need to be re-entered, connection could be set up.Existing bluetooth switching mode, needs user to re-connect operation, troublesome poeration, poor user experience.
Summary of the invention
The embodiment of the present invention provides a kind of vehicle-mounted many amusement equipment bluetooth changing method, amusement equipment and system, needs user to re-connect operation, troublesome poeration, the defect of poor user experience in order to solving in prior art in handoff procedure.
The embodiment of the present invention provides a kind of vehicle-mounted many amusement equipment bluetooth changing method, including:
Source amusement equipment receive the handover request that terminal sends, and described handover request includes the beacon information of target amusement equipment;
Described source amusement equipment, according to described handover request, send to target amusement equipment and connect data, and described connection data are that described source amusement equipment set up data when being connected with terminal;
Described source amusement equipment, after sending connection data, disconnect the connection with terminal;
Wherein, described source amusement equipment are current in vehicle to set up the equipment that bluetooth is connected with terminal, and described target amusement equipment are to be cut in vehicle to shift to set up the equipment that bluetooth is connected with terminal.
The embodiment of the present invention also provides for a kind of vehicle-mounted many amusement equipment bluetooth changing method, including:
Target amusement equipment receive the connection data that source amusement equipment send, described connection data be described source amusement equipment after receiving the handover request that terminal sends, to target amusement equipment send for setting up data when being connected with terminal;
Described target amusement equipment, according to described connection data, are set up bluetooth with terminal and are connected;
Wherein, described source amusement equipment are current in vehicle to set up the equipment that bluetooth is connected with terminal, and described target amusement equipment are to be cut in vehicle to shift to set up the equipment that bluetooth is connected with terminal.
The embodiment of the present invention also provides for a kind of amusement equipment, including:
Handover request receiver module, for receiving the handover request that terminal sends, described handover request includes the identification information of another amusement equipment;
Connecting data forwarding module, for according to described handover request, send to another amusement equipment described and connect data, described connection data are that described amusement equipment set up data when being connected with terminal;
First bluetooth link control module, is used for controlling described amusement equipment after sending and connecting data, disconnects with terminal.
The embodiment of the present invention also provides for a kind of amusement equipment, including:
Connect data reception module, for receiving the connection data that another amusement equipment send, described connection data be another amusement equipment described after receiving the handover request that terminal sends, to described amusement equipment send for setting up data when being connected with terminal;
Second bluetooth link control module, for according to described connection data, controls described amusement equipment and sets up bluetooth with terminal and be connected.
The embodiment of the present invention also provides for a kind of vehicle-mounted many amusement equipment bluetooth switched system, including the amusement equipment described in the amusement equipment described in an above-mentioned embodiment of the present invention and another embodiment of the present invention above-mentioned;
Wherein, communicate between above-mentioned two amusement equipment.
nullVehicle-mounted many amusement equipment bluetooth changing method that the embodiment of the present invention provides、Amusement equipment and system,By vehicle-mounted multiple amusement equipment are set up communication two-by-two,When terminal is intended to be switched to other amusement equipment from the current source amusement equipment connected,Time i.e. on target amusement equipment,Source amusement equipment can set up the connection data transmission being connected to target amusement equipment by being used for terminal,Terminal disconnects after being connected with the bluetooth between the amusement equipment of source,Owing to there are this connection data on target amusement equipment,Therefore directly can set up with terminal and be connected,Change prior art is carried out bluetooth switching time,Owing to being not set up communication between multiple amusement equipment,After the terminal of user disconnects the connection with source amusement equipment,User needs the most again to search target amusement equipment,The troublesome operation re-connected,Improve switching efficiency,Promote Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of vehicle-mounted many amusement equipment bluetooth changing method in one embodiment of the invention;
Fig. 2 is the flow chart of vehicle-mounted many amusement equipment bluetooth changing method in further embodiment of this invention;
Fig. 3 is the flow chart determining target amusement equipment in one embodiment of the invention;
Fig. 4 is the flow chart of vehicle-mounted many amusement equipment bluetooth changing method in one embodiment of the invention;
Fig. 5 is the structural representation of amusement equipment in one embodiment of the invention;
Fig. 6 is the structural representation of amusement equipment in one embodiment of the invention;
The structural representation of Fig. 7 embodiment of the present invention vehicle-mounted many amusement equipment bluetooth switched system.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
Hereinafter the partial words mentioned in the embodiment of the present invention is illustrated.
The terminal that the embodiment of the present invention is mentioned refers to the terminal unit with function of Bluetooth communication, such as smart mobile phone, panel computer etc..
The source amusement equipment mentioned in the embodiment of the present invention are current in referring to vehicle sets up the equipment that bluetooth is connected with terminal.The target amusement equipment mentioned in the embodiment of the present invention are to be cut in referring to vehicle shifts to set up the equipment that bluetooth is connected with terminal.
Fig. 1 be the present embodiment with source amusement equipment as executive agent, the flow chart of vehicle-mounted many amusement equipment bluetooth changing method, as it is shown in figure 1, the method includes:
S101, source amusement equipment receive the handover request that terminal sends, and described handover request includes the identification information of target amusement equipment;
S102, described source amusement equipment, according to described handover request, send to target amusement equipment and connect data, and described connection data are that described source amusement equipment set up data when being connected with terminal;
S103, described source amusement equipment, after sending connection data, disconnect the connection with terminal;
Wherein, described source amusement equipment are current in vehicle to set up the equipment that bluetooth is connected with terminal, and described target amusement equipment are to be cut in vehicle to shift to set up the equipment that bluetooth is connected with terminal.
When being embodied as, the present embodiment is connected with bluetooth between n amusement equipment in vehicle for switching terminal.Source amusement equipment in n amusement equipment are set up with the n-1 in addition to the amusement equipment of source other amusement equipment respectively and are communicated, and wherein, n is positive integer and n >=2.
nullThe present embodiment is by setting up communication two-by-two by vehicle-mounted multiple amusement equipment,Source amusement equipment in i.e. n amusement equipment are set up with the n-1 in addition to the amusement equipment of source other amusement equipment respectively and are communicated,When terminal is intended to be switched to other amusement equipment from the current source amusement equipment connecting terminal,Time i.e. on target amusement equipment,Source amusement equipment can set up the connection data transmission being connected to target amusement equipment by being used for terminal,Terminal disconnects after being connected with the bluetooth between the amusement equipment of source,Owing to there are this connection data on target amusement equipment,Therefore directly can set up with intelligent terminal and be connected,Change prior art is carried out bluetooth switching time,Owing to being not set up communication between multiple amusement equipment,After the terminal of user disconnects the connection with source amusement equipment,User needs the most again to search target amusement equipment,The troublesome operation re-connected,Improve switching efficiency,Promote Consumer's Experience.
It should be noted that the amusement equipment mentioned in the present embodiment include but not limited to on-vehicle acoustic apparatus, in-car TV, Vehicular display device, radio, mike etc..When after handover success, i.e. terminal is set up after bluetooth is connected with target amusement equipment, corresponding data can be sent in target amusement equipment be shown by terminal, as after smart mobile phone connects on-vehicle acoustic apparatus, the voice data downloaded transmission can be played out to on-vehicle acoustic apparatus in smart mobile phone.
Understandable, each amusement equipment are respectively provided with the hardware serial ports for connecting external equipment, and when being embodied as, n amusement equipment can be attached by hardware serial ports, and sets up communication, it is achieved the data transmission between each amusement equipment.
Describe for convenience, following have on vehicle four amusement equipment, terminals as smart mobile phone as a example by be specifically described, four amusement equipment are respectively as follows: amusement equipment A, amusement equipment B, amusement equipment C and amusement equipment D, arbitrary amusement equipment connect other amusement equipment respectively, as amusement equipment A is connected with amusement equipment B, amusement equipment C, amusement equipment D by serial ports respectively.Amusement equipment A is the amusement equipment currently connecting smart mobile phone, i.e. source amusement equipment, and amusement equipment D is that user is intended to switch to set up the equipment that bluetooth is connected, i.e. target amusement equipment with smart mobile phone.
In order to avoid in bluetooth handoff procedure, cause smart mobile phone while disconnecting the connection with source amusement equipment due to a certain target amusement equipment bluetooth fault, the situation of these target amusement equipment cannot be connected again, bluetooth as own in amusement equipment D breaks down, bluetooth cannot be normally carried out connect, if now, smart mobile phone sends bluetooth to amusement equipment A and switches to the handover request of amusement equipment D, if amusement equipment A is after sending connection data to amusement equipment D, perform switching, disconnect the connection with smart mobile phone, will necessarily occur that smart mobile phone had not only disconnected with amusement equipment A but also cannot normally be connected the situation of amusement equipment D, now, to again be switched to other amusement equipment, such as amusement equipment B, connection with amusement equipment A already off due to smart mobile phone, user is then needed manually to re-connect operation.In order to improve the reliability of bluetooth switching, alternatively, the present embodiment also included following steps as shown in Figure 2 before above-mentioned steps S102:
S203, according to described handover request, sends switching command to target amusement equipment;
S204, receives the response message corresponding with switching command that target amusement equipment send;
When response message is the information receiving switching, send described connection data to target amusement equipment.
As the optional mode of one, when the information that response message is refusal switching or no answer information, whether reselect target amusement equipment to smart mobile phone transmission and carry out the information of bluetooth switching.Understandable it is, it is also possible to be alternate manner, as when the information that response message is refusal switching or no answer information, directly to send the information of handoff failure to smart mobile phone, terminate switching.
When being embodied as, as in figure 2 it is shown, the present embodiment vehicle-mounted many amusement equipment bluetooth changing method specifically includes following steps:
S201, amusement equipment A set up bluetooth with smart mobile phone and are connected;
S202, amusement equipment A receive the handover request that smart mobile phone sends, and described handover request includes the identification information of target amusement equipment, such as the correlated identities information that selected target amusement equipment are amusement equipment D;
S203, source amusement equipment, according to described handover request, send switching command to amusement equipment D;
S204, amusement equipment A judge whether to receive the response message corresponding with switching command in step S203 that target amusement equipment D sends, and when receiving response message, enter step S205, when no answer information, enter step S207;
S205, it is judged that whether response message is the information receiving switching, the most then enter step S206, otherwise, enter step S207;
S206, sends to amusement equipment D and connects data, and these connection data are that amusement equipment A sets up data when being connected with smart mobile phone, and enter step S208;
Whether S207, reselect target amusement equipment to smart mobile phone transmission and carry out the information of bluetooth switching, the most then return step S202 and repeat;Otherwise, handoff failure;
S208, performs switching, and source amusement equipment disconnect the connection with smart mobile phone.
It should be noted that above-mentioned steps S202 and step S101 are same steps, above-mentioned steps S206 and step S102 are same steps, and above-mentioned steps S208 and step S103 are same steps.
You need to add is that, when not including the identification information of target amusement equipment in the handover request in step S101, in order to realize the intelligence switching of terminal and each amusement equipment, alternatively, the present embodiment also included following steps as shown in Figure 3 before step S102:
S301, the configuration information stored in obtaining source amusement equipment, described configuration information includes the priority of m the amusement equipment preset, and wherein m is positive integer, 2≤m≤n;
S302, selects the amusement equipment that priority level is the highest as target amusement equipment.
Understandable it is, above-mentioned configuration information pre-sets and is stored on each amusement equipment, when the identification information of driftlessness amusement equipment in the handover request that user sends, audio frequency apparatus as to be switched in user, but not specified target audio equipment, such as any audio frequency apparatus in on-vehicle acoustic apparatus, Vehicular display device or in-car TV, source amusement equipment can be according to the priority of audio frequency apparatus above-mentioned in configuration information, select the audio frequency apparatus that priority level is the highest as target amusement equipment, it is achieved intelligence switching.
When being embodied as, optionally, above-mentioned connection packet includes the physical address of smart mobile phone.When source amusement equipment exist recognition code during being connected with smart mobile phone foundation, i.e. during pin code, the most above-mentioned connection data also include that smart mobile phone sets up the recognition code arranged when bluetooth is connected with source amusement equipment.
It should be added that, when smart mobile phone is set up with any of the above-described amusement equipment after bluetooth is connected, if relating to audio-frequency information, can be played out by sound card.After being connected with on-vehicle acoustic apparatus foundation such as smart mobile phone, automatically the voice data downloaded in smart mobile phone can be transmitted to on-vehicle acoustic apparatus, and be played out by sound card.
Fig. 4 be the present embodiment with target amusement equipment as executive agent, the flow chart of vehicle-mounted many amusement equipment bluetooth changing method, as shown in Figure 4, the method includes:
S401, target amusement equipment receive the connection data that source amusement equipment send, described connection data be described source amusement equipment after receiving the handover request that terminal sends, to target amusement equipment send for setting up, with terminal, the data being connected;
S402, described target amusement equipment, according to described connection data, are set up bluetooth with terminal and are connected;
Wherein, described source amusement equipment are current in vehicle to set up the equipment that bluetooth is connected with terminal, and described target amusement equipment are to be cut in vehicle to shift to set up the equipment that bluetooth is connected with terminal.
Vehicle-mounted multiple amusement equipment are set up communication by the present embodiment two-by-two, when needs carry out bluetooth switching, target amusement equipment can be received, and source amusement equipment send for setting up the connection data that bluetooth is connected with terminal, and then directly set up bluetooth with terminal and be connected, user is without re-executing the troublesome operation of connection between target amusement equipment and terminal, including again searching equipment, re-enter pin code etc., improve switching efficiency.
Alternatively, in order to improve the reliability of bluetooth switching, the present embodiment also included the following steps not shown in Fig. 4 before above-mentioned steps S401:
S401a, receives the switching command that described source amusement equipment send;Described switching command is described source amusement equipment after receiving the handover request that terminal sends, and sends to target amusement equipment according to described handover request;
S401b, sends the response message corresponding with described switching command to source amusement equipment, and described response message is information or the information of refusal switching receiving switching;
When sending the information receiving switching, perform step S401.
Fig. 5 shows that the present embodiment amusement equipment are currently to set up the amusement equipment that bluetooth is connected with terminal, the structural representation that when i.e. serving as source amusement equipment, it is internal, including:
Handover request receiver module 51, for receiving the handover request that terminal sends, described handover request includes the identification information of another amusement equipment;
Connecting data forwarding module 52, for according to described handover request, send to another amusement equipment described and connect data, described connection data are that described amusement equipment set up data when being connected with terminal;
First bluetooth link control module 53, is used for controlling described amusement equipment after sending and connecting data, disconnects with terminal.
When being embodied as, the present embodiment amusement equipment serve as source amusement equipment, then another amusement equipment refer to that to be cut the shifting to setting up communication with amusement equipment in the present embodiment sets up the target amusement equipment that bluetooth is connected with terminal.Describe for convenience, use target amusement equipment to be described another amusement equipment communicated with the present embodiment below.
Alternatively, the present embodiment amusement equipment, when serving as source amusement equipment and implementing, also include:
Switching command sending module, for according to described handover request, sending switching command to target amusement equipment;
Response message receiver module, for receiving first response message corresponding with described switching command that described target amusement equipment send;
Judge module, is used for judging described first response message, when the first response message is the information receiving switching, sends described connection data to target amusement equipment.
Alternatively, the present embodiment amusement equipment are when serving as source amusement equipment and implementing, above-mentioned judge module is additionally operable to, when the information that the first response message that target amusement equipment send is refusal switching or no answer information, whether reselect target amusement equipment to terminal transmission and carry out the information of bluetooth switching.
Alternatively, the present embodiment amusement equipment, when serving as source amusement equipment and implementing, also include:
Priority judges control module, during for not including the identification information of target amusement equipment in described handover request, obtain the configuration information of the interior storage of amusement equipment and select the amusement equipment that priority level is the highest to set up, as to be cut shifting to, the target amusement equipment that bluetooth is connected with terminal, wherein, configuration information includes the priority of m the amusement equipment preset, m is positive integer, 2≤m≤n.
Optionally, the present embodiment amusement equipment are when serving as source amusement equipment and implementing, and above-mentioned connection data forwarding module 52 specifically for sending the physical address of terminal to target amusement equipment;
And/or, terminal sets up the recognition code arranged when bluetooth is connected with the present embodiment amusement equipment.
Fig. 6 shows that the present embodiment amusement equipment are to be cut to shift to set up the amusement equipment that bluetooth is connected with terminal, the structural representation that when i.e. serving as target amusement equipment, it is internal, including:
Connecting data reception module 61, for receiving the connection data that another amusement equipment send, described connection data are another source amusement equipment after receiving the handover request that terminal sends, to described amusement equipment send for setting up data when being connected with terminal;
Second bluetooth link control module 62, for according to described connection data, controls described amusement equipment and sets up bluetooth with terminal and be connected.
When being embodied as, the present embodiment amusement equipment serve as target amusement equipment, then another amusement equipment refer to that set up the current of communication with amusement equipment in the present embodiment set up the source amusement equipment that bluetooth is connected with terminal.Describe for convenience, use source amusement equipment to be described another amusement equipment communicated with the present embodiment below.
Alternatively, when the present embodiment amusement equipment serve as the enforcement of target amusement equipment, also include:
Switching command receiver module, for receiving the switching command that source amusement equipment send;Described switching command is described source amusement equipment after receiving the handover request that terminal sends, and sends to the present embodiment amusement equipment according to described handover request;
Response message sending module, for sending the response message corresponding with described switching command to source amusement equipment, described response message is information or the information of refusal switching receiving switching.
The present embodiment is also disclosed a kind of vehicle-mounted many amusement equipment bluetooth switched system, this system includes n the above-mentioned amusement equipment being positioned at vehicle, communicate between each amusement equipment, a certain amusement equipment in i.e. n amusement equipment connect n-1 amusement equipment in addition to these a certain amusement equipment respectively, wherein, n is positive integer and n >=2.When being embodied as, each amusement equipment can be attached by the way of hardware serial ports, it is achieved communication.
As a kind of embodiment, vehicle-mounted many amusement equipment bluetooth switched system disclosed in the present embodiment, including four above-mentioned amusement equipment, as shown in Figure 7, including amusement equipment A, amusement equipment B, amusement equipment C and amusement equipment D, arbitrary amusement equipment connect other amusement equipment respectively.As amusement equipment A is connected with amusement equipment B, amusement equipment C, amusement equipment D by serial ports respectively, set up communication.
When being embodied as, arbitrary amusement equipment are currently set up bluetooth with terminal and are connected, then these amusement equipment serve as source amusement equipment in bluetooth handoff procedure, such as the amusement equipment A in Fig. 7, its internal structure at least includes handover request receiver module, connects data forwarding module, the first bluetooth link control module, specific descriptions see above, and do not repeat them here.Arbitrary amusement equipment shift to set up, for be cut, the equipment that bluetooth is connected with terminal in bluetooth handoff procedure, when i.e. serving as target amusement equipment, its internal structure at least includes connecting data reception module, the second bluetooth link control module, and specific descriptions see above, and do not repeat them here.Therefore, understandable, each amusement equipment in the present embodiment vehicle-mounted many amusement equipment bluetooth switched system the most at least include: handover request receiver module, connection data forwarding module, the first bluetooth link control module, connection data reception module, the second bluetooth link control module.
For the amusement equipment embodiment corresponding with method, due to itself and embodiment of the method basic simlarity, so describe is fairly simple, relevant part sees the part of embodiment of the method and illustrates.
Device embodiment described above is only schematically, the wherein said unit illustrated as separating component can be or may not be physically separate, the parts shown as unit can be or may not be physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.Those of ordinary skill in the art, in the case of not paying performing creative labour, are i.e. appreciated that and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that can add the mode of required general hardware platform by software to each embodiment and realize, naturally it is also possible to pass through hardware.Based on such understanding, the part that prior art is contributed by technique scheme the most in other words can embody with the form of software product, this computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment or embodiment.
It is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although the present invention being described in detail with reference to previous embodiment, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein portion of techniques feature is carried out equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.