Bluetooth connection switching system and method based on big data
Technical Field
The invention relates to the technical field of big data, in particular to a Bluetooth connection switching system and method based on big data.
Background
Bluetooth is a radio technology supporting short-distance communication of equipment, and can exchange wireless information among a plurality of equipment including mobile phones, PDAs, wireless headphones, notebook computers, related peripherals and the like. The Bluetooth technology effectively simplifies communication between mobile communication terminal devices, so that our life is more convenient.
When a driver receives an incoming call through a mobile phone during driving, the driver can answer the call through a Bluetooth headset, a vehicle-mounted Bluetooth and the like, so that the safety of the user during driving is improved. However, when more passengers are on the vehicle, if the mobile phone is directly connected to the vehicle-mounted Bluetooth, the passengers on the vehicle can hear the call content, so that the trouble is brought to the driver.
Disclosure of Invention
The invention aims to provide a Bluetooth connection switching system and method based on big data, so as to solve the problems in the background technology.
In order to solve the technical problems, the invention provides a Bluetooth connection switching system based on big data, which comprises a pre-connection module and a Bluetooth selection module, wherein the pre-connection module is used for pre-establishing Bluetooth communication connection between a mobile terminal and two Bluetooth devices, and the Bluetooth selection module is used for selecting a target Bluetooth device from the Bluetooth devices according to call communication content and vehicle running state when the mobile terminal receives call communication, and accessing the mobile terminal into the target Bluetooth device.
Further, the bluetooth selection module comprises a communication pre-classification module, a call communication identification module, a primary identification module, a secondary identification module and a tertiary identification module, wherein the communication pre-classification module, the call communication identification module, the primary identification module, the secondary identification module and the tertiary identification module are used for pre-establishing an address book of the mobile terminal, the address book comprises a primary communication contact, a secondary communication contact and a tertiary communication contact, the call communication identification is used for identifying the type of the contact initiating the call communication, the primary identification module takes a bluetooth headset as a target bluetooth device when the type of the contact initiating the call communication is the primary communication contact, the secondary identification module selects the target bluetooth device according to the driving state of a vehicle when the type of the contact initiating the call communication is the secondary communication contact, and the tertiary identification module selects the bluetooth device which is connected with the mobile terminal at the latest time from a bluetooth headset and vehicle-mounted bluetooth as the target bluetooth device when the type of the contact initiating the call communication is the tertiary communication contact.
Further, the secondary identification module comprises a driving speed acquisition module, a driving speed comparison module, a reminding message sending module, an accelerator depth acquisition module, a Bluetooth switching module and a Bluetooth direct connection module, wherein the driving speed acquisition module is used for acquiring the current driving speed of a vehicle, the driving speed comparison module is used for comparing the driving speed with a driving speed threshold, when the driving speed is greater than the driving speed threshold, the driving speed of the vehicle is continuously monitored, when the driving speed of the vehicle is less than or equal to the driving speed threshold and the duration is greater than or equal to the duration threshold, the mobile terminal of a user is reminded to receive call communication, when the driving speed is less than or equal to the driving speed threshold, the reminding message sending module sends reminding information according to the situation of the Bluetooth device which is connected last time, wherein the reminding information user reminds the mobile terminal to receive call communication, after the reminding message sending module works, the current accelerator depth of the vehicle is acquired, and compared with the accelerator depth before the reminding information is sent, the accelerator depth of the Bluetooth switching module relatively sends reminding information, the accelerator depth before the current accelerator depth is reduced, the Bluetooth switching module switches off the Bluetooth device which is connected last time, and the Bluetooth device which is connected with the mobile terminal, and the Bluetooth device is used as the Bluetooth device which is connected last time, and the Bluetooth device is not connected with the Bluetooth device which is connected last time.
Further, the reminding message sending module comprises a last connection identification module and an in-ear detection module, wherein the last connection identification module is used for identifying whether the last connected Bluetooth device is a Bluetooth headset or not, when the last connected Bluetooth device is the Bluetooth headset, the in-ear detection module is used for carrying out in-ear detection on the Bluetooth headset, if the Bluetooth headset is detected not to be in-ear, reminding information is sent to the vehicle-mounted Bluetooth, and if the Bluetooth headset is detected to be in-ear, the reminding information is sent to the Bluetooth headset.
A bluetooth connection switching method based on big data, the switching method comprising the steps of:
Step S1, a mobile terminal and two Bluetooth devices are pre-connected in a Bluetooth communication mode, wherein the two Bluetooth devices are a Bluetooth earphone and a vehicle-mounted Bluetooth respectively;
and step S2, when the mobile terminal receives the call communication, selecting a target Bluetooth device from the Bluetooth devices according to the call communication content and the vehicle running state, and accessing the mobile terminal into the target Bluetooth device.
Further, the step S2 further includes:
The method comprises the steps that an address book of the mobile terminal is established in advance, the address book comprises a first-level communication contact, a second-level communication contact and a third-level communication contact, wherein the privacy of communication with the first-level communication contact is higher than that of communication with the second-level communication contact, and the privacy of communication with the third-level communication contact is higher than that of communication with the first-level communication contact;
When the received call communication is initiated by the primary communication contact person, the Bluetooth headset is used as a target Bluetooth device;
when the received call communication is initiated by the secondary communication contact person, selecting a target Bluetooth device according to the running state of the vehicle;
when the received call communication is initiated by the three-level communication contact person, selecting the Bluetooth equipment which is connected with the mobile terminal for the last time from the Bluetooth earphone and the vehicle-mounted Bluetooth as target Bluetooth equipment.
Further, the selecting the target bluetooth device according to the running state of the vehicle includes the following steps:
collecting the current running speed of the vehicle, and when the running speed is smaller than or equal to a running speed threshold value, sending reminding information according to the last connected Bluetooth equipment condition, wherein a reminding information user reminds the mobile terminal to receive calling communication;
The current throttle depth of the vehicle is collected and compared with the throttle depth before the reminding information is sent, if the current throttle depth is reduced relative to the throttle depth before the reminding information is sent, the Bluetooth device which is connected with the mobile terminal in the last time is switched off, the other Bluetooth device is used as the target Bluetooth device, and if the throttle depth is kept unchanged, the Bluetooth device which is connected with the mobile terminal in the last time is directly used as the target Bluetooth device.
Further, the running speed threshold value is 1.1 times of the average speed of all running vehicles in the last week on the current running road of the vehicle.
Further, the sending the reminding information according to the last connected bluetooth device condition includes:
when the Bluetooth equipment which is connected last time is a Bluetooth earphone, carrying out in-ear detection on the Bluetooth earphone, and if the Bluetooth earphone is detected to be not in-ear, sending reminding information to the vehicle-mounted Bluetooth;
and if the Bluetooth headset is detected to be in the ear, sending reminding information to the Bluetooth headset.
Further, the collecting the current running speed of the vehicle further includes:
And continuously monitoring the running speed of the vehicle when the running speed is greater than the running speed threshold, and reminding the user that the mobile terminal receives the call communication when the running speed of the vehicle is less than or equal to the running speed threshold and the duration is greater than or equal to the duration threshold.
Compared with the prior art, the method has the beneficial effects that contacts in the address book are classified in advance, different Bluetooth connection modes are determined according to the contacts which initiate the call currently, when the contacts which initiate the call are two-cascade contacts, the Bluetooth connection modes are determined according to the current running speed and the accelerator depth of the vehicle, and the user experience of a driver when the driver receives a call by using Bluetooth is improved.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
Fig. 1 is a schematic block diagram of a bluetooth connection switching system based on big data according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the invention provides a technical scheme that a bluetooth connection switching system based on big data comprises a pre-connection module and a bluetooth selection module, wherein the pre-connection module is used for pre-establishing bluetooth communication connection between a mobile terminal and two bluetooth devices, and the bluetooth selection module is used for selecting a target bluetooth device from the bluetooth devices according to call communication content and vehicle running state when the mobile terminal receives call communication, and accessing the mobile terminal into the target bluetooth device.
The Bluetooth selecting module comprises a communication pre-classifying module, a calling communication identifying module, a first-level identifying module, a second-level identifying module and a third-level identifying module, wherein the communication pre-classifying module, the calling communication identifying module, the first-level identifying module, the second-level identifying module and the third-level identifying module are used for pre-establishing an address book of the mobile terminal, the address book comprises a first-level communication contact, a second-level communication contact and a third-level communication contact, the calling communication identifies the type of the contact for initiating the calling communication, the first-level identifying module takes a Bluetooth headset as a target Bluetooth device when the type of the contact for calling communication is the first-level communication contact, the second-level identifying module selects the target Bluetooth device according to the running state of a vehicle when the type of the contact for calling communication is the third-level communication contact, and the third-level identifying module selects the last Bluetooth device connected with the mobile terminal from the Bluetooth headset and the vehicle Bluetooth device as the target Bluetooth device when the type of the contact for calling communication is the third-level communication contact.
The secondary identification module comprises a running speed acquisition module, a running speed comparison module, a reminding message sending module, an accelerator depth acquisition module, a Bluetooth switching module and a Bluetooth direct connection module, wherein the running speed acquisition module is used for acquiring the current running speed of a vehicle, the running speed comparison module is used for comparing the running speed with a running speed threshold, when the running speed is greater than the running speed threshold, the running speed of the vehicle is continuously monitored, when the running speed of the vehicle is less than or equal to the running speed threshold and the duration is greater than or equal to the duration threshold, a reminding user mobile terminal is reminded of receiving call communication, when the running speed is less than or equal to the running speed threshold, the reminding message sending module sends reminding information according to the condition of the Bluetooth equipment which is connected last time, wherein the reminding information user reminds the mobile terminal of receiving call communication, after the reminding message sending module works, the accelerator depth acquisition module acquires the current accelerator depth of the vehicle and compares the current accelerator depth of the vehicle with the accelerator depth before sending reminding information, when the current accelerator depth is relatively sent with the accelerator depth, the Bluetooth switching module reduces the accelerator depth before the reminding information, and switches off the Bluetooth equipment which is connected last time of the mobile terminal, and takes another Bluetooth equipment as the Bluetooth equipment which is connected last time, and the Bluetooth equipment is not connected with the Bluetooth equipment.
The reminding message sending module comprises a last connection identification module and an in-ear detection module, wherein the last connection identification module is used for identifying whether the last connected Bluetooth device is a Bluetooth headset or not, when the last connected Bluetooth device is the Bluetooth headset, the in-ear detection module is used for carrying out in-ear detection on the Bluetooth headset, if the last connected Bluetooth device is detected not to be in-ear, reminding information is sent to the vehicle-mounted Bluetooth, and if the last connected Bluetooth device is detected to be in-ear, the reminding information is sent to the Bluetooth headset.
A bluetooth connection switching method based on big data, the switching method comprising the steps of:
Step S1, a mobile terminal and two Bluetooth devices are pre-connected in a Bluetooth communication mode, wherein the two Bluetooth devices are a Bluetooth earphone and a vehicle-mounted Bluetooth respectively;
step S2, when the mobile terminal receives call communication, selecting a target Bluetooth device from the Bluetooth devices according to the call communication content and the vehicle running state, and accessing the mobile terminal into the target Bluetooth device:
The step S2 further includes:
the method comprises the steps of establishing an address book of the mobile terminal in advance, wherein the address book comprises a first-level communication contact person, a second-level communication contact person and a third-level communication contact person, the privacy of communication with the first-level communication contact person is higher than that of communication with the second-level communication contact person, and the privacy of communication with the third-level communication contact person;
When the received call communication is initiated by the primary communication contact person, the Bluetooth headset is used as a target Bluetooth device;
when the received call communication is initiated by the secondary communication contact person, selecting a target Bluetooth device according to the running state of the vehicle;
the selecting the target Bluetooth device according to the running state of the vehicle comprises the following steps:
collecting the current running speed of the vehicle, and when the running speed is smaller than or equal to a running speed threshold value, sending reminding information according to the last connected Bluetooth equipment condition, wherein a reminding information user reminds the mobile terminal to receive calling communication;
Collecting the current accelerator depth of the vehicle, comparing the current accelerator depth with the accelerator depth before sending the reminding information, switching off the Bluetooth device which is connected with the mobile terminal last time if the current accelerator depth is reduced relative to the accelerator depth before sending the reminding information, taking the other Bluetooth device as a target Bluetooth device, and directly taking the Bluetooth device which is connected with the mobile terminal last time as the target Bluetooth device if the accelerator depth is kept unchanged;
the running speed threshold value is 1.1 times of the average speed of all running vehicles in the last week on the current running road of the vehicle;
the sending the reminding information according to the last connected Bluetooth equipment condition comprises the following steps:
when the Bluetooth equipment which is connected last time is a Bluetooth earphone, carrying out in-ear detection on the Bluetooth earphone, and if the Bluetooth earphone is detected to be not in-ear, sending reminding information to the vehicle-mounted Bluetooth;
and if the Bluetooth headset is detected to be in the ear, sending reminding information to the Bluetooth headset.
When the running speed is smaller than or equal to the running speed threshold, the running speed of the vehicle is continuously monitored, when the running speed of the vehicle is smaller than or equal to the running speed threshold and the duration is larger than or equal to the duration threshold, the mobile terminal of the user is reminded of receiving call communication, and the mobile terminal of the user is reminded of dividing the call communication into two cases when the mobile terminal of the user receives the call communication, wherein one case is that the contact is still calling the user (driver), at the moment, the contact stops calling the user (driver) according to the processing mode when the running speed is smaller than or equal to the running speed threshold, at the moment, the contact can be directly informed of the user which contact is powered on at which time through vehicle-mounted Bluetooth, or the contact is directly informed of the user which contact is powered on at which time through the last connected Bluetooth equipment;
The pre-judging of the running speed is to improve the accuracy of selecting the Bluetooth headset connection mode according to the accelerator depth, when the running speed of the vehicle is high, the accelerator depth is possibly reduced because the running speed of the vehicle is too high, the vehicle is decelerated, and the judgment error can be reduced by judging the running speed in advance before judging the accelerator depth;
when the received call communication is initiated by the three-level communication contact person, selecting the Bluetooth equipment which is connected with the mobile terminal for the last time from the Bluetooth earphone and the vehicle-mounted Bluetooth as target Bluetooth equipment.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the above-mentioned embodiments are merely preferred embodiments of the present invention, and the present invention is not limited thereto, but may be modified or substituted for some of the technical features thereof by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.