CN106209176B - Bluetooth adapter, on board unit and its bluetooth adaptation method - Google Patents

Bluetooth adapter, on board unit and its bluetooth adaptation method Download PDF

Info

Publication number
CN106209176B
CN106209176B CN201510225092.8A CN201510225092A CN106209176B CN 106209176 B CN106209176 B CN 106209176B CN 201510225092 A CN201510225092 A CN 201510225092A CN 106209176 B CN106209176 B CN 106209176B
Authority
CN
China
Prior art keywords
bluetooth adapter
electric terminal
pairing mode
operating system
bluetooth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510225092.8A
Other languages
Chinese (zh)
Other versions
CN106209176A (en
Inventor
吴先星
丁兆健
钟香
晁战飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Genvict Technology Co Ltd
Original Assignee
Shenzhen Genvict Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Genvict Technology Co Ltd filed Critical Shenzhen Genvict Technology Co Ltd
Priority to CN201510225092.8A priority Critical patent/CN106209176B/en
Publication of CN106209176A publication Critical patent/CN106209176A/en
Application granted granted Critical
Publication of CN106209176B publication Critical patent/CN106209176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

A kind of Bluetooth adapter, on board unit and its bluetooth adaptation method, after Bluetooth adapter and the first electric terminal establish wireless connection, obtain the information at least carrying the OS Type of the first electric terminal, judge whether the current pairing mode of Bluetooth adapter matches with the OS Type of the first electric terminal later, when determining mismatch, secondary configuration Bluetooth adapter, so that secondary match with the pairing mode for postponing Bluetooth adapter with the OS Type of the first electric terminal.To solve the problem that Bluetooth adapter cannot be adapted to electric terminal and Bluetooth adapter the operational consistency difference when being communicated with the electric terminal of same operation system of different operating system well.

Description

Bluetooth adapter, on board unit and its bluetooth adaptation method
Technical field
This application involves technical field of bluetooth communication, and in particular to a kind of Bluetooth adapter, on board unit and its bluetooth are suitable Method of completing the square.
Background technique
Electronic non-parking automatic charging (ETC, Electronic Toll Collection) system is a kind of without parking Payment carrys out the scheme by charge station, utilizes roadside unit (RSU, Road Side Unit, also referred to as road side base station) and installation On board unit (OBU, On Board Unit) in the car is in communication with each other and information exchange, to reach to the automatic of vehicle Identification, and communication expense is deducted from the specified account of vehicle user automatically, to realize automatic charging.Wherein, OBU, which is equipped with, supports To the interface of ESAM card read-write, which belongs to contact read-write mode, and by the interface, OBU can be written and read behaviour to ESAM card Make, ESAM card system information can be read, generate process secret key etc..Currently used for highway or the electronic non-parking in parking lot The OBU of charge can not be directly connected to internet, therefore it, which supplements all stored value card with money, to be user in fixed site progress It makes troubles.Therefore, user self-help recharging technique is introduced in industry, user is filled using the mobile terminal of oneself to stored value card Value.Telecommunication media of the Bluetooth adapter being connected on OBU using one as mobile terminal and OBU.However, due to now big Part mobile phone all can cut Android operation system, be transplanted according to mobile phone hardware, lead to its compatibility with bluetooth, behaviour Make in consistency that there are some differences.In addition, the operating system that current phone uses is varied, including Android, IOS, Windows etc., so, if guaranteeing that Bluetooth adapter can be adapted to the mobile phone of different operating system and urgently to be resolved ask Topic.
Summary of the invention
This application provides a kind of Bluetooth adapter, on board unit and its bluetooth adaptation methods, solve Bluetooth adapter The electric terminal and Bluetooth adapter that different operating system cannot be adapted to well are in the electric terminal with same operation system The problem of operational consistency difference when being communicated.
According to a first aspect of the present application, this application provides a kind of bluetooth adaptation methods of Bluetooth adapter, comprising:
Bluetooth adapter and the first electric terminal, which are established, to be wirelessly connected;
Bluetooth adapter obtains the OS Type at least carrying the first electric terminal from first electric terminal Information;
Bluetooth adapter itself or the electronic equipment communicated with Bluetooth adapter judge the current pairing of Bluetooth adapter Whether mode matches with the OS Type of the first electric terminal, when determining mismatch, secondary configuration Bluetooth adapter, It is secondary to be matched with the pairing mode for postponing Bluetooth adapter with the OS Type of the first electric terminal, the pairing mode packet Include activly request pairing mode and passive request pairing mode.
In certain embodiments, judge Bluetooth adapter current pairing mode whether the operation system with the first electric terminal System type matching, specifically:
If the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter is Passive request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and the first electric terminal is not Matching;
If the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter is Activly request pairing mode, it is determined that the current pairing mode of Bluetooth adapter and the OS Type of the first electric terminal Match;
If the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter is Passive request pairing mode, it is determined that the current pairing mode of Bluetooth adapter and the OS Type of the first electric terminal Match;
If the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter is Activly request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and the first electric terminal is not Matching.
In certain embodiments, the Bluetooth adapter is got from first electric terminal at least carries the first electricity After the information of the OS Type of sub- terminal, data communication is carried out with the first electric terminal, and getting the first electronics end After the instruction for the disconnection wireless connection that end is sent, then judge Bluetooth adapter current pairing mode whether with the first electronics The OS Type of terminal matches.
In certain embodiments, after secondary configuration Bluetooth adapter, Bluetooth adapter, which also carries out resetting, restarts, and again It establishes and is wirelessly connected with the first electric terminal, it is also electric with first again after establishing wireless connection with the first electric terminal again Sub- terminal is matched, and carries out data communication.
In certain embodiments, first operating system is ios operating system, and the second operating system is Android behaviour Make system.
In certain embodiments, the electronic equipment is car-mounted terminal, is passed through with the Bluetooth adapter internal or outer Portion's interface is communicated.
According to a second aspect of the present application, this application provides a kind of Bluetooth adapter, comprising:
Bluetooth module is wirelessly connected for establishing with the first electric terminal, and is obtained at least from first electric terminal Carry the information of the OS Type of the first electric terminal;
Control module, for itself judge Bluetooth adapter current pairing mode whether the operation with the first electric terminal System type matching, or the current pairing mode is supplied to electronic equipment, Bluetooth adapter is judged by the electronic equipment Current pairing mode whether matched with the OS Type of the first electric terminal, when determining mismatch, secondary configuration Bluetooth adapter, secondary to be matched with the pairing mode for postponing Bluetooth adapter with the OS Type of the first electric terminal, institute Stating pairing mode includes activly request pairing mode and passive request pairing mode;
Interface module, for being connected to electronic equipment, the electronic equipment passes through Bluetooth adapter and the first electric terminal It is communicated.
In certain embodiments, whether control module or electronic equipment judge the current pairing mode of Bluetooth adapter with When the OS Type matching of one electric terminal,
If the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter is Passive request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and the first electric terminal is not Matching;
If the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter is Activly request pairing mode, it is determined that the current pairing mode of Bluetooth adapter and the OS Type of the first electric terminal Match;
If the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter is Passive request pairing mode, it is determined that the current pairing mode of Bluetooth adapter and the OS Type of the first electric terminal Match;
If the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter is Activly request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and the first electric terminal is not Matching.
In certain embodiments, the control module, which is also used to get in bluetooth module, at least carries the first electronics end After the information of the OS Type at end, control bluetooth module and the first electric terminal progress data communication, and getting the After the instruction for the disconnection wireless connection that one electric terminal is sent, itself judge Bluetooth adapter current pairing mode whether It is matched with the OS Type of the first electric terminal, or the current pairing mode is supplied to electronic equipment, by the electricity Sub- equipment judges whether the current pairing mode of Bluetooth adapter matches with the OS Type of the first electric terminal.
According to the third aspect of the application, this application provides a kind of on board unit, for being connect with Bluetooth adapter or Embedded with bluetooth adapter, comprising:
Bluetooth interface module, for being communicated by either internally or externally interface with Bluetooth adapter;
Bluetooth configuration module, for judging that bluetooth is suitable after Bluetooth adapter and the first electric terminal are established and be wirelessly connected Whether the current pairing mode of orchestration matches with the OS Type of the first electric terminal, and when determining mismatch, and two Secondary configuration Bluetooth adapter makes the secondary OS Type with the pairing mode and the first electric terminal that postpone Bluetooth adapter Matching, the pairing mode include activly request pairing mode and passive request pairing mode.
Bluetooth adapter, on board unit and its bluetooth adaptation method provided by the present application, Bluetooth adapter and the first electronics After terminal establishes wireless connection, the information at least carrying the OS Type of the first electric terminal is obtained, judgement is blue later Whether the current pairing mode of tooth adapter matches with the OS Type of the first electric terminal, when determining mismatch, Secondary configuration Bluetooth adapter, so that the secondary operating system with the pairing mode and the first electric terminal that postpone Bluetooth adapter Type matching.To solve the electric terminal and bluetooth adaptation that Bluetooth adapter cannot be adapted to different operating system well The problem of device operational consistency difference when being communicated with the electric terminal of same operation system.
Detailed description of the invention
Fig. 1 is that electronic equipment is communicated by Bluetooth adapter with the first electric terminal in a kind of embodiment of the application Schematic diagram;
Fig. 2 is the structural schematic diagram of Bluetooth adapter in a kind of embodiment of the application;
Fig. 3 is the flow diagram of bluetooth adaptation method in a kind of embodiment of the application;
Fig. 4 is the flow diagram of bluetooth adaptation method in the application another kind embodiment.
Specific embodiment
Bluetooth adapter equipment can configure it by some instructions after factory, its working method is arranged (i.e. Pairing mode), and this configuration can repeatedly be repeated.It secondary can be configured using the pairing mode of Bluetooth adapter This point, present invention design are: electric terminal (such as mobile phone, tablet computer, earphone etc.) is at the beginning of with Bluetooth adapter When secondary connection, the information at least carrying the OS Type of the electric terminal is sent to Bluetooth adapter, Bluetooth adapter Bluetooth can be adapted to when necessary according to its OS Type (OS Type includes Android, iOS, Windows etc.) Device carries out secondary configuration, so that Bluetooth adapter is matched when with using the electric terminal of same operating system to be communicated It is with uniformity to operating.
For using the iPhone of iOS system and use the mobile phone of Android system, match in mobile phone and Bluetooth adapter When to connection, if the pairing mode of Bluetooth adapter is set as " passively requesting pairing mode (waiting pairing request mode) ", Then dialog box can not be matched by automatic spring in connection using the iPhone of iOS system, be unable to complete pairing;It uses at this time The mobile phone of Android system then can be completed to match, and need to only match a mobile phone and can remember the Bluetooth adapter matched, It is matched after connection next time without repeating, operation has consistency.If the pairing mode of Bluetooth adapter is set as, " activly request is matched To mode (without waiting, directly initiating pairing request mode) ", then it can be normally carried out and be matched using the iPhone of iOS system It is right;Find that part Android mobile phone (such as HTC series mobile phone) will appear each use and require when testing Android system mobile phone Again the situation matched, each use require input PIN code and are matched, to influence user experience, made to user's operation At inconvenience.
Bluetooth pairing and data transmission are independent from each other process, and data can be carried out during not matching or matching Transmission.Only before successful matching, data bit plaintext transmission, after successful matching, the transmission of data bit ciphertext.If two Bluetooth terminals (the first electric terminal and Bluetooth adapter) is communicated, it is necessary to first be connected, this is the premise of the two communication.Pairing is main For two purposes: 1, between bluetooth communication data encryption;2, after matching, it is whole that Bluetooth terminal will record paired bluetooth The information at end, such as pin code use after convenient, both subsequent pin code that input other side is no longer needed to clock synchronization.
The electronic equipment that the application mentions can be any one have Bluetooth adapter electric terminal, such as mobile phone, Tablet computer, bluetooth headset, Bluetooth audio device, OBU etc..And first the name of electric terminal and electronic equipment to be intended merely to difference blue Two different terminals in tooth transmission process, under different consideration angles, the first electric terminal can also be referred to as electronics and set Standby, electronic equipment is referred to as the first electric terminal.It is mobile phone with the first electric terminal in the embodiment of the present application, electronic equipment is It is illustrated for OBU.
The application is described in further detail below by specific embodiment combination attached drawing.
Embodiment one
Referring to FIG. 1, passing through the signal that Bluetooth adapter 30 is communicated with the first electric terminal 10 for electronic equipment 20 Figure.In the present embodiment, by taking mobile terminal as an example, electronic equipment is illustrated the first electric terminal by taking on board unit (OBU) as an example, Bluetooth adapter is inserted on OBU, so that OBU is communicated by Bluetooth adapter with mobile terminal.
Wherein, on board unit, for connect with Bluetooth adapter or embedded with bluetooth adapter, including Bluetooth interface module with Bluetooth configuration module.
Bluetooth interface module by either internally or externally interface with Bluetooth adapter for being communicated.
Bluetooth configuration module can be used for after Bluetooth adapter and mobile terminal establish wireless connection for the first time, and it is suitable to read bluetooth The current pairing mode of OS Type and Bluetooth adapter that orchestration is obtained from mobile terminal judges that bluetooth is suitable with this Whether the current pairing mode of orchestration matches with the OS Type of the first electric terminal, and when determining mismatch, to Bluetooth adapter, which is sent, instructs secondary configuration Bluetooth adapter, makes secondary with the pairing mode for postponing Bluetooth adapter and the first electricity The OS Type of sub- terminal matches, and pairing mode includes activly request pairing mode and passive request pairing mode.
Certainly in the case where Bluetooth adapter itself can do the above judgement, on board unit only need and Bluetooth adapter into Row normal communication, in other words, on board unit need to only be communicated by Bluetooth adapter with mobile terminal, realize that on board unit is filled The functions such as value.
Referring to FIG. 2, Bluetooth adapter 30 includes bluetooth module 301, control module 302 and interface module 303.
Bluetooth module 301 is used to establish with the first electric terminal and be wirelessly connected, and in first connection from the first electronics end End obtains the information at least carrying the OS Type of the first electric terminal.First electric terminal can be mobile terminal, Such as mobile phone.Control module 302 for judge the current pairing mode of bluetooth module 301 whether the operation system with the first electric terminal System type matching, when determining mismatch, secondary configuration Bluetooth adapter 301 is secondary with the pairing for postponing bluetooth module 301 Mode is matched with the OS Type of the first electric terminal, and pairing mode includes that activly request pairing mode and passive request are matched To mode.
Or in the case where judgement more than on board unit progress, on board unit can read Bluetooth adapter from mobile terminal Obtained OS Type, control module are used to current pairing match pattern being supplied to electronic equipment, be sentenced by board unit Whether the current pairing mode of disconnected Bluetooth adapter matches with the OS Type of the first electric terminal.
Control module 302 is also used to record the pin code of the first paired electric terminal, uses after convenient, subsequent Bluetooth adapter and first electric terminal no longer need to the pin code of input other side with clock synchronization.
Interface module 303 for being connected to electronic equipment, i.e. OBU, OBU by Bluetooth adapter and the first electric terminal into Row communication.
In the present embodiment, control module 302 judge Bluetooth adapter current pairing mode whether with the first electric terminal OS Type matching when, including following several situations:
If 1, the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter Passively to request pairing mode, it is determined that the current pairing mode of Bluetooth adapter and the OS Type of the first electric terminal It mismatches.
If 2, the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter For activly request pairing mode, it is determined that the current pairing mode of Bluetooth adapter and the OS Type of the first electric terminal Matching.
If 3, the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter Passively to request pairing mode, it is determined that the current pairing mode of Bluetooth adapter and the OS Type of the first electric terminal Matching.
If 4, the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter For activly request pairing mode, it is determined that the current pairing mode of Bluetooth adapter and the OS Type of the first electric terminal It mismatches.
Above-mentioned first operating system can be ios operating system, and the second operating system can be Android operation system. It should be noted that the present embodiment is only by taking most common ios operating system and Android operation system as an example, at other In embodiment, the first operating system and the second operating system are also possible to other operating systems, such as window operating system.For First electric terminal of the first electric terminal and Android operation system that make ios operating system can normal and bluetooth adaptation Device pairing uses, and distinguishes on ios operating system and Android operation system APP (application program) to Bluetooth adapter Configuration, match the mobile terminal device of two kinds of operating system can normally with Bluetooth adapter and connect.
Such as using mode of the invention, if Bluetooth adapter pairing mode is set in advance as passively requesting matched dies Formula:
When the mobile terminal with Android operation system is matched with Bluetooth adapter for the first time to be connected, OBU judges bluetooth The current pairing mode of adapter is matched with the OS Type of mobile terminal, without carrying out secondary configuration, since APP can lead to It crosses mobile terminal and initiates pairing request to Bluetooth adapter, therefore be easily achieved pairing, and need to only match a mobile terminal Pairing Bluetooth adapter can be remembered, matched without repeating next time, operation has consistency.
When the mobile terminal with ios operating system is matched with Bluetooth adapter for the first time to be connected, OBU judges that bluetooth is adapted to The OS Type of the current pairing mode of device and mobile terminal mismatches, and needs to carry out secondary configuration, secondary with postponing indigo plant The pairing mode of tooth adapter is activly request pairing mode, can actively be initiated to mobile terminal with mobile terminal with clock synchronization next time Pairing request, and need to only match a mobile terminal and can remember pairing Bluetooth adapter, next time matches without repeating, and operation has Consistency.
In the present embodiment, control module 302, which is also used to get in bluetooth module 301, at least carries the first electric terminal OS Type information after, control bluetooth module 301 and the first electric terminal progress data communication, and getting the One electric terminal send disconnection of wireless connection instruction after, judge Bluetooth adapter current pairing mode whether with first electricity The OS Type of sub- terminal matches.
Specifically, Bluetooth adapter may include BLE (bluetooth low energy consumption) chip of shell and encapsulation inside housings, control Molding block 302 is MCU, and interface module 303 is UART interface.Bluetooth adapter is connected to the work electricity of OBU by UART interface On road 102.OBU can also pass through its internal Bluetooth adapter and communication of mobile terminal.
Referring to FIG. 3, being a kind of flow diagram of the bluetooth adaptation method of Bluetooth adapter provided in this embodiment, packet Include below step:
The Bluetooth adapter and mobile terminal of step 1.1:OBU establishes wireless connection for the first time.
Step 1.2: Bluetooth adapter at least carries the letter of the OS Type of mobile terminal from acquisition for mobile terminal Breath, which can be by mobile terminal active transmission.In certain embodiments, which is known by the bluetooth module of Bluetooth adapter It not and saves, can also be stored in the operating circuit of OBU.
Step 1.3: mobile terminal and OBU are by Bluetooth adapter progress data communication, for example, user uses mobile terminal OBU is carried out once to supplement operation with money.
It should be noted that in general, Bluetooth adapter after establishing connection for the first time with mobile terminal, can be matched immediately Operation, if successful matching, the data communication carried out in step 1.3 belongs to ciphertext transmission;If pairing failure, step The data communication carried out in 1.3 belongs to plaintext transmission, it is of course also possible to use technological means commonly used in the art is to the plaintext number According to certain processing is carried out, to guarantee its safety.
Step 1.4: after completing data communication, mobile terminal sends the instruction for disconnecting and currently connecting to Bluetooth adapter.
After step 1.5:OBU gets the instruction disconnected, Bluetooth adapter itself or communicated with Bluetooth adapter Electronic equipment (OBU) judge whether the current pairing mode of Bluetooth adapter matches with the OS Type of mobile terminal. With the OBU that Bluetooth adapter communicates judge Bluetooth adapter current pairing mode whether the operating system class with mobile terminal When type matches, OBU by custom instruction, can read the current pairing mode of Bluetooth adapter and the operation system of mobile terminal System type, to judge whether the current pairing mode of Bluetooth adapter matches with the OS Type of mobile terminal.
Pairing mode includes activly request pairing mode and passive request pairing mode.
In the present embodiment, judge Bluetooth adapter current pairing mode whether the OS Type with mobile terminal Match, specifically:
1), if the operating system of mobile terminal is the first operating system, and the current pairing mode of Bluetooth adapter is Passive request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and mobile terminal is not Match.
2), if the operating system of mobile terminal is the first operating system, and the current pairing mode of Bluetooth adapter is Activly request pairing mode, it is determined that the current pairing mode of Bluetooth adapter is matched with the OS Type of mobile terminal.
3), if the operating system of mobile terminal is the second operating system, and the current pairing mode of Bluetooth adapter is Passive request pairing mode, it is determined that the current pairing mode of Bluetooth adapter is matched with the OS Type of mobile terminal.
4), if the operating system of mobile terminal is the second operating system, and the current pairing mode of Bluetooth adapter is Activly request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and mobile terminal is not Match.
Step 1.6: when the current pairing mode and mobile terminal that determine Bluetooth adapter OS Type not Timing, Bluetooth adapter itself or the secondary configuration Bluetooth adapter of instruction after being judged according to OBU (configure blue in protocol stack Tooth pairing mode), it is secondary to be matched with the OS Type of mobile terminal with postponing the pairing mode of Bluetooth adapter.
Step 1.7: secondary with postponing in completion, mobile terminal is disconnected with OBU.In certain embodiments, it disconnects Before connection, OBU can send the message for indicating secondary configuration successful to mobile terminal.Carry out secondary with postponing, the movement is whole End is with OBU when being attached again, can smooth successful matching, to improve the consistency of bluetooth connection matching operation.
When the mobile terminal and Bluetooth adapter next time are attached, the two can successfully realize pairing, Bluetooth adapter meeting Record the pin code of paired mobile terminal, used after convenient, subsequent Bluetooth adapter and the mobile terminal with clock synchronization without The pin code of other side need to be inputted again.
Certainly, if determining the current pairing mode of Bluetooth adapter and the operation system of mobile terminal in step 1.5 System type matching, then pass directly to step 1.7, disconnect.
After Bluetooth adapter and mobile terminal disconnect, OBU power-off carries out dormant state.
Embodiment two
The structure of Bluetooth adapter provided in this embodiment is similar to embodiment one, and difference is: control module is used for After secondary configuration Bluetooth adapter, bluetooth module reset and is restarted, control bluetooth module is built with the first electric terminal again It is vertical to be wirelessly connected, and control bluetooth module and matched with the first electric terminal, data communication is carried out later.
Referring to FIG. 4, for the flow diagram of the bluetooth adaptation method of Bluetooth adapter in the present embodiment, including following step It is rapid:
The Bluetooth adapter and mobile terminal of step 2.1:OBU establishes wireless connection for the first time.
Step 2.2: Bluetooth adapter obtains the information at least carrying the OS Type of mobile terminal, which can By mobile terminal active transmission.In certain embodiments, which is identified and is saved by the bluetooth module of Bluetooth adapter, It can be stored in the operating circuit of OBU.
Step 2.3: Bluetooth adapter itself or the electronic equipment communicated with Bluetooth adapter (OBU) judge that bluetooth is adapted to Whether the current pairing mode of device matches with the OS Type of mobile terminal.Pairing mode includes activly request pairing mode With passive request pairing mode.Judge that main body and judgment mode are the same as example 1.
Step 2.4: when the current pairing mode and mobile terminal that determine Bluetooth adapter OS Type not Timing, secondary configuration Bluetooth adapter (configure Bluetooth pairing mode) in protocol stack, secondary with postponing matching for Bluetooth adapter Mode is matched with the OS Type of mobile terminal.
Step 2.5: Bluetooth adapter reset is restarted.In certain embodiments, before Bluetooth adapter reset is restarted, OBU can send the message for indicating secondary configuration successful to mobile terminal.Certainly, suitable if determining bluetooth in step 2.3 The current pairing mode of orchestration is matched with the OS Type of mobile terminal, then passes directly to step 2.7, and it is logical to carry out data Letter.
The Bluetooth adapter and mobile terminal of step 2.6:OBU, which is established, to be wirelessly connected.It, will be blue due in step 2.4 The pairing mode of tooth adapter is configured to match with the OS Type of mobile terminal, so, in step 2.6, bluetooth is suitable It, can successful matching after orchestration and mobile terminal establish wireless connection.Bluetooth adapter will record paired mobile terminal Pin code, used after convenient, subsequent Bluetooth adapter and the mobile terminal no longer need to the pin code of input other side with clock synchronization.
Step 2.7: mobile terminal and OBU are by Bluetooth adapter progress data communication, for example, user uses mobile terminal OBU is carried out once to supplement operation with money.
It is supplemented with money due to OBU through transport and is related to pecuniary exchange, should transmitted as far as possible using ciphertext during supplementing with money, it is therefore desirable to mobile Data communication is carried out after terminal and Bluetooth adapter pairing.In the present embodiment, since mobile terminal and Bluetooth adapter have matched, Therefore, the safety of data communication process is higher.
Step 2.8: after completing data communication, mobile terminal sends the instruction for disconnecting and currently connecting to Bluetooth adapter, Mobile terminal is disconnected with OBU.
After Bluetooth adapter and mobile terminal disconnect, OBU power-off carries out dormant state.
Bluetooth adapter provided by the embodiments of the present application and its bluetooth adaptation method, solve Bluetooth adapter with difference The problem of mobile terminal of OS Type matches clock synchronization, and operation is inconsistent and can not match, mobile terminal can not influenced Under the premise of OBU normal communication, largely improve user experience.
The embodiment of the present application carries out Bluetooth adapter and its bluetooth adaptation method by taking the OBU for the field ETC as an example Illustrate, but should not be understood as the electric terminal provided by the present application including above-mentioned Bluetooth adapter and be only limitted to OBU.
It will be understood by those skilled in the art that all or part of the steps of various methods can pass through in above embodiment Program instructs related hardware to complete, which can be stored in a computer readable storage medium, storage medium can wrap It includes: read-only memory, random access memory, disk or CD etc..
The foregoing is a further detailed description of the present application in conjunction with specific implementation manners, and it cannot be said that this Shen Specific implementation please is only limited to these instructions.For those of ordinary skill in the art to which this application belongs, it is not taking off Under the premise of from the present application design, a number of simple deductions or replacements can also be made.

Claims (7)

1. a kind of bluetooth adaptation method of Bluetooth adapter characterized by comprising
Bluetooth adapter and the first electric terminal, which are established, to be wirelessly connected;
Bluetooth adapter obtains the letter at least carrying the OS Type of the first electric terminal from first electric terminal Breath;
Bluetooth adapter itself or the electronic equipment communicated with Bluetooth adapter judge the current pairing mode of Bluetooth adapter Whether matched with the OS Type of the first electric terminal;
When determining mismatch, secondary configuration Bluetooth adapter is secondary with the pairing mode and first for postponing Bluetooth adapter The OS Type of electric terminal matches, and the pairing mode includes activly request pairing mode and passive request matched dies Formula;Wherein:
Judge whether the current pairing mode of Bluetooth adapter matches with the OS Type of the first electric terminal, specifically:
If the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter is passive Request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and the first electric terminal is not Match;
If the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter is actively Request pairing mode, it is determined that the current pairing mode of Bluetooth adapter is matched with the OS Type of the first electric terminal;
If the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter is passive Request pairing mode, it is determined that the current pairing mode of Bluetooth adapter is matched with the OS Type of the first electric terminal;
If the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter is actively Request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and the first electric terminal is not Match;
First operating system is ios operating system, and the second operating system is Android operation system.
2. the method as described in claim 1, which is characterized in that the Bluetooth adapter is got from first electric terminal After the information at least carrying the OS Type of the first electric terminal, with the first electric terminal carry out data communication, and After getting the instruction of the disconnection wireless connection of the first electric terminal transmission, then judge the current matched dies of Bluetooth adapter Whether formula matches with the OS Type of the first electric terminal.
3. the method as described in claim 1, which is characterized in that after secondary configuration Bluetooth adapter, Bluetooth adapter also into Row, which resets, restarts, and establishes and be wirelessly connected with the first electric terminal again, is wirelessly connected establishing again with the first electric terminal Afterwards, it is also matched again with the first electric terminal, and carries out data communication.
4. method according to any one of claims 1 to 3, which is characterized in that the electronic equipment is car-mounted terminal, with institute Bluetooth adapter is stated to be communicated by either internally or externally interface.
5. a kind of Bluetooth adapter characterized by comprising
Bluetooth module is wirelessly connected for establishing with the first electric terminal, and is at least carried from first electric terminal acquisition There is the information of the OS Type of the first electric terminal;
Control module, for itself judge Bluetooth adapter current pairing mode whether the operating system with the first electric terminal Type matching, or the current pairing mode is supplied to electronic equipment, working as Bluetooth adapter, is judged by the electronic equipment Whether preceding pairing mode matches with the OS Type of the first electric terminal;
When determining mismatch, secondary configuration Bluetooth adapter is secondary with the pairing mode and first for postponing Bluetooth adapter The OS Type of electric terminal matches, and the pairing mode includes activly request pairing mode and passive request matched dies Formula;
Interface module, for being connected to electronic equipment, the electronic equipment is carried out by Bluetooth adapter and the first electric terminal Communication;Wherein:
Control module or electronic equipment judge Bluetooth adapter current pairing mode whether the operation system with the first electric terminal When type matching of uniting,
If the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter is passive Request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and the first electric terminal is not Match;
If the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter is actively Request pairing mode, it is determined that the current pairing mode of Bluetooth adapter is matched with the OS Type of the first electric terminal;
If the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter is passive Request pairing mode, it is determined that the current pairing mode of Bluetooth adapter is matched with the OS Type of the first electric terminal;
If the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter is actively Request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and the first electric terminal is not Match;
First operating system is ios operating system, and the second operating system is Android operation system.
6. Bluetooth adapter as claimed in claim 5, which is characterized in that the control module is also used to obtain in bluetooth module To after the information for the OS Type at least carrying the first electric terminal, controls bluetooth module and the first electric terminal carries out Data communication, and after getting the instruction of the disconnection wireless connection of the first electric terminal transmission, itself judge that bluetooth is suitable Whether the current pairing mode of orchestration matches with the OS Type of the first electric terminal, or the current pairing mode is mentioned Supply electronic equipment, by the electronic equipment judge Bluetooth adapter current pairing mode whether the behaviour with the first electric terminal Make system type matching.
7. a kind of on board unit, for being connect with Bluetooth adapter or embedded with bluetooth adapter characterized by comprising
Bluetooth interface module, for being communicated by either internally or externally interface with Bluetooth adapter;
Bluetooth configuration module, for judging Bluetooth adapter after Bluetooth adapter and the first electric terminal are established and be wirelessly connected Current pairing mode whether matched with the OS Type of the first electric terminal;
When determining mismatch, secondary configuration Bluetooth adapter makes secondary with the pairing mode for postponing Bluetooth adapter and the The OS Type of one electric terminal matches, and the pairing mode includes activly request pairing mode and passive request matched dies Formula;Wherein:
Judge whether the current pairing mode of Bluetooth adapter matches with the OS Type of the first electric terminal, specifically:
If the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter is passive Request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and the first electric terminal is not Match;
If the operating system of the first electric terminal is the first operating system, and the current pairing mode of Bluetooth adapter is actively Request pairing mode, it is determined that the current pairing mode of Bluetooth adapter is matched with the OS Type of the first electric terminal;
If the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter is passive Request pairing mode, it is determined that the current pairing mode of Bluetooth adapter is matched with the OS Type of the first electric terminal;
If the operating system of the first electric terminal is the second operating system, and the current pairing mode of Bluetooth adapter is actively Request pairing mode, it is determined that the OS Type of the current pairing mode of Bluetooth adapter and the first electric terminal is not Match;
First operating system is ios operating system, and the second operating system is Android operation system.
CN201510225092.8A 2015-05-05 2015-05-05 Bluetooth adapter, on board unit and its bluetooth adaptation method Active CN106209176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510225092.8A CN106209176B (en) 2015-05-05 2015-05-05 Bluetooth adapter, on board unit and its bluetooth adaptation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510225092.8A CN106209176B (en) 2015-05-05 2015-05-05 Bluetooth adapter, on board unit and its bluetooth adaptation method

Publications (2)

Publication Number Publication Date
CN106209176A CN106209176A (en) 2016-12-07
CN106209176B true CN106209176B (en) 2019-07-02

Family

ID=57458918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510225092.8A Active CN106209176B (en) 2015-05-05 2015-05-05 Bluetooth adapter, on board unit and its bluetooth adaptation method

Country Status (1)

Country Link
CN (1) CN106209176B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919974A (en) * 2017-02-27 2017-07-04 北京工业大学 Bluetooth USB flash disk, the roll-call based on Bluetooth USB flash disk are registered system and method
CN109413557B (en) * 2018-10-17 2020-12-15 杭州兆华电子有限公司 Bluetooth headset testing system using android mobile phone as Bluetooth adapter and testing method thereof
CN110944313B (en) * 2019-12-04 2023-03-24 惠州Tcl移动通信有限公司 Bluetooth connection method, device, storage medium and terminal
CN112767565B (en) * 2020-12-03 2023-07-28 北京万集智能网联技术有限公司 Method and device for OBU issuing and activating based on vehicle machine and electronic equipment
CN116567858B (en) * 2023-04-27 2024-06-07 百洋智能科技集团股份有限公司 Cross-platform BLE equipment automatic connection method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497420A (en) * 2011-12-12 2012-06-13 中国电信股份有限公司 Content adaptation method and server
CN103945046A (en) * 2013-01-21 2014-07-23 目酷实验室有限公司 Photographing control method and control device
CN203882427U (en) * 2014-05-06 2014-10-15 张胜昔 Toggle switch switching type wireless bluetooth remote photographic device
CN203984504U (en) * 2014-05-20 2014-12-03 陈甲洲 A kind of bluetooth cellular phone automatic timer
CN104468667A (en) * 2013-09-22 2015-03-25 腾讯科技(深圳)有限公司 Message pushing method, device and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7706750B2 (en) * 2007-05-07 2010-04-27 Dell Products L.P. Enabling bluetooth support within a secondary and/or across multiple operating system partitions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497420A (en) * 2011-12-12 2012-06-13 中国电信股份有限公司 Content adaptation method and server
CN103945046A (en) * 2013-01-21 2014-07-23 目酷实验室有限公司 Photographing control method and control device
CN104468667A (en) * 2013-09-22 2015-03-25 腾讯科技(深圳)有限公司 Message pushing method, device and server
CN203882427U (en) * 2014-05-06 2014-10-15 张胜昔 Toggle switch switching type wireless bluetooth remote photographic device
CN203984504U (en) * 2014-05-20 2014-12-03 陈甲洲 A kind of bluetooth cellular phone automatic timer

Also Published As

Publication number Publication date
CN106209176A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106209176B (en) Bluetooth adapter, on board unit and its bluetooth adaptation method
CN104868521B (en) The method for handling wireless charging verification
EP1851865B1 (en) Method for ensuring a secure nfc functionality of a wireless mobile communication device and wireless mobile communication device having a secure nfc functionality
CN106028264B (en) Electronic equipment Bluetooth pairing methods and system
CN102780513A (en) Mobile terminal and method for realizing Bluetooth communication between mobile terminals
CN100561926C (en) A kind of remote wakening system and terminal based on WAN module
CN103108326A (en) Session relationship establishing method and device and system
CN102832976A (en) NFC (Near Field Communication) communication method and device
KR20170032428A (en) Mobile payment method and apparatus as well as near field communication device
CN102723971A (en) Bluetooth device and Bluetooth pairing method thereof
CN112398187B (en) Wearable device, charging control method, and storage medium
CN102486858A (en) Radio frequency identification (RFID) mobile phone payment method and system utilizing over air technology (OTA) to recharge
CN111526516A (en) Charging pile and charging vehicle identity verification method and system
CN103873256A (en) Working method of NFC token
CN113949116B (en) Data transmission method and device
CN105867214A (en) Vehicle control method, device and system
US11360448B2 (en) Power supply apparatus and system, and method for using the same
CN107567014A (en) A kind of method, system and mobile terminal for realizing IMEI programmings
CN204168282U (en) A kind of wearable device pair system
CN104331649A (en) Identity recognition system and method based on network connection
CN105809788A (en) Electronic lock system and unlocking method thereof
CN106604412A (en) Method and device for communication between terminals
CN115065966B (en) Terminal and communication method
CN113194447B (en) Information acquisition system and communication method thereof
CN116185429B (en) Firmware upgrading method, device, receiving terminal equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant