CN106131771A - A kind of mobile phone and payment terminal Bluetooth pairing methods and device - Google Patents
A kind of mobile phone and payment terminal Bluetooth pairing methods and device Download PDFInfo
- Publication number
- CN106131771A CN106131771A CN201610515550.6A CN201610515550A CN106131771A CN 106131771 A CN106131771 A CN 106131771A CN 201610515550 A CN201610515550 A CN 201610515550A CN 106131771 A CN106131771 A CN 106131771A
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- payment terminal
- pairing
- pair
- key information
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of mobile phone and payment terminal Bluetooth pairing methods and device, belongs to communication technical field.Described mobile phone and payment terminal matching method specifically include that mobile phone and payment terminal set up physical connection;Mobile phone sends data request information to payment terminal, and payment terminal returns the data response message with equipment identification information;Mobile phone initiates pairing request according to equipment identification information;Mobile phone generates the first pair-wise key information, and payment terminal generates the second pair-wise key information;Payment terminal sends the second pair-wise key information to mobile phone, and the second pair-wise key information shows at mobile phone;The first pair-wise key information that confirms phone is the most consistent with the second pair-wise key information, if it is consistent, pairing completes, the invention enables the input operation of payment terminal and the display information without input equipment, without display screen can be at hands hands-operation, not only increase the safety of pairing process, also make payment terminal not only can only select Just Works pairing mode passively.
Description
Technical field
The present invention relates to Bluetooth technology field, particularly relate to a kind of mobile phone and payment terminal Bluetooth pairing methods and dress
Put.
Background technology
Along with the use of Bluetooth technology is more and more extensive, payment terminal obtains the most widely should on the communications field
With.But having many mobile phones payment terminals all there is no input equipment and display screen so that mobile phone and these payment terminals carry out indigo plant
During tooth pairing, Just Works pattern can only be used passively, and process of matching is without any checking so that safety is significantly
Reduce, payment process be will result in great risk.
Summary of the invention
For solving above-mentioned technical problem, inventor provide the method and apparatus of a kind of mobile phone and payment terminal pairing,
Setting up physical connection between mobile phone and payment terminal, payment terminal sends various response message to mobile phone, response by physical connection
Information shows on mobile phone so that the input of payment terminal is operable on mobile phone with display operation to be completed.
For reaching above-mentioned purpose, the invention discloses a kind of mobile phone and payment terminal Bluetooth pairing methods, the technology of employing
Scheme is:
Mobile phone and payment terminal set up physical connection;
Mobile phone sends data request information by described physical connection to payment terminal, and payment terminal is by described physics even
Connecing return data response message, described data response message at least includes the equipment identification information of payment terminal;
Mobile phone initiates pairing request according to the equipment identification information of described payment terminal to counterpart expenditure terminal;
Mobile phone generates the first pair-wise key information, and payment terminal generates the second pair-wise key information;
Payment terminal sends described second pair-wise key information by described physical connection to mobile phone, and described second pairing is close
Key information shows on mobile phone;
The described first pair-wise key information that confirms phone is the most consistent with described second pair-wise key information, if unanimously,
The two is set up bluetooth and connects.
The invention has the beneficial effects as follows: by described physical connection, the data that payment terminal can produce itself oneself are rung
Answering information to be sent to mobile phone mobile phone, data message shows on mobile phone mobile phone, then just can mobile phone on mobile phone the most intuitively
The step operated the data message of payment terminal and confirm, not only increases the two safety during pairing and asks
Topic, also making payment terminal during the pairing of the two is no longer can only to use Just Works pairing mode passively.
The present invention optimizes further, in order to improve the safety of pairing process further, " is confirming phone and described first is joining
The most consistent with described second pair-wise key information to key information " after, further comprise the steps of:
Mobile phone sends pairing confirmation by described physical connection to payment terminal;
Payment terminal returns pairing response message by described physical connection to mobile phone, and described pairing response message is at mobile phone
Upper display;
The described pairing response message that confirms phone is the most correct, if correctly, the two is set up bluetooth and connects.
The present invention optimizes further, in order to closer to actual scene, and the bluetooth discovery of a lot of payment terminals in actual scene
Observability is to close, " mobile phone initiates pairing according to the equipment identification information of described payment terminal to counterpart expenditure terminal please
Ask and " before step, further comprise the steps of:
Mobile phone is initiated to payment terminal by described physical connection according to the equipment identification information of described payment terminal, mobile phone
Request, request payment terminal opens bluetooth discovery observability.
The present invention optimizes further, in order to mobile phone obtains more useful payment terminal information, setting of described payment terminal
Standby identification information includes the display Name of payment terminal, physical address, serial number.
The present invention optimizes further, and mobile phone and payment terminal set up physical connection by tone frequency channel wire.
For reaching above-mentioned purpose, the invention also discloses a kind of mobile phone and payment terminal Bluetooth pairing device, the skill of employing
Art scheme is:
Module is set up in communication connection, sets up physical connection for mobile phone and payment terminal;
Data demand module, sends data request information by described physical connection to payment terminal for mobile phone, pays
Terminal returns data response message by described physical connection, and described data response message at least includes the equipment mark of payment terminal
Knowledge information;
Pairing request module, initiates pairing request according to described equipment identification information to counterpart expenditure terminal for mobile phone;
Mobile phone generates the first pair-wise key information, and payment terminal generates the second pair-wise key information;Payment terminal is by described physics even
Connecing and send described second pair-wise key information to mobile phone, described second pair-wise key information shows on mobile phone;
Pairing confirms module, and the described first pair-wise key information that is used for confirming phone with described second pair-wise key information is
No unanimously, if unanimously, the two set up bluetooth connect.
The medicine have the advantages that by described physical connection, the data response that payment terminal can produce itself oneself
Information is sent to mobile phone, and data message shows on mobile phone, then just can number to payment terminal on mobile phone the most intuitively
It is believed that breath carries out the step operating and confirming, not only increase the two safety issue during pairing, also make the two
Pairing during payment terminal be no longer can only to use Just Works pairing mode passively.Mobile phone mobile phone mobile phone
The present invention optimizes further, and in order to improve the safety of pairing process further, described pairing confirms that module is also used
In:
After " the described first pair-wise key information that confirms phone is the most consistent with described second pair-wise key information ", mobile phone
Pairing confirmation is sent to payment terminal by described physical connection;
Payment terminal returns pairing response message by described physical connection to mobile phone, and described pairing response message is at mobile phone
Upper display;
The pairing response message confirming phone described is the most correct, if correctly, the two is set up bluetooth and connects.
The present invention optimizes further, in order to closer to actual scene, and the bluetooth discovery of a lot of payment terminals in actual scene
Observability is to close, and described data demand module is additionally operable to: " mobile phone according to the equipment identification information of described payment terminal to
Counterpart expenditure terminal initiation pairing request " it is front,
Mobile phone is initiated to payment terminal by described physical connection according to the equipment identification information of described payment terminal, mobile phone
Request, request payment terminal opens bluetooth discovery observability.
The present invention optimizes further, in order to mobile phone obtains more useful payment terminal information, described data demand module
It is additionally operable to:
The equipment identification information of described payment terminal includes the display Name of payment terminal, physical address, serial number.
The present invention optimizes further, and described communication connection is set up module and is additionally operable to:
Mobile phone and payment terminal set up physical connection by tone frequency channel wire.
For reaching above-mentioned purpose, the invention also discloses the Bluetooth pairing methods of a kind of mobile phone, the technical scheme of employing is:
Mobile phone passes through physical connection to equipment sending data solicited message to be paired;
Mobile phone receives, by physical connection, the data response message that equipment to be paired returns, and described data response message is at least
Equipment identification information including equipment to be paired;
Mobile phone initiates pairing request according to described equipment identification information to corresponding equipment to be paired;
Mobile phone generates the first pair-wise key information, and mobile phone receives, by physical connection, the second pairing that equipment to be paired sends
Key information, described second pair-wise key information shows on mobile phone;
The described first pair-wise key information that confirms phone is the most consistent with described second pair-wise key information, if unanimously,
The two is set up bluetooth and connects.
The medicine have the advantages that mobile phone receives, by physical connection, the data response message that equipment to be paired returns, and
And described data response message shows on mobile phone mobile phone, then just can treat paired device on mobile phone mobile phone the most intuitively
Data response message carry out the step that operates and confirm, not only increase the two safety issue during pairing, also
It is no longer can only to use Just Works pairing mode passively during making the pairing of the two.
The present invention optimizes further, in order to improve the safety of pairing process further, " confirms phone described described
One pair-wise key information is the most consistent with described second pair-wise key information " after, further comprise the steps of:
Mobile phone sends pairing confirmation by physical connection to equipment to be paired;
Mobile phone receives the pairing response message that equipment to be paired is returned by physical connection, and described pairing response message is at hands
Show on machine;
The pairing response message confirming phone described is the most correct, if correctly, the two is set up bluetooth and connects.
The present invention optimizes further, and " mobile phone is initiated to corresponding equipment to be paired according to described equipment identification information described
Pairing request " before step, further comprises the steps of:
Mobile phone initiates request by physical connection to equipment to be paired according to described equipment identification information, mobile phone, and request is treated
Paired device opens bluetooth discovery observability.
The present invention optimizes further, and mobile phone sets up physical connection by tone frequency channel wire and equipment to be paired.
For reaching above-mentioned purpose, the invention also discloses a kind of mobile phone, the technical scheme of employing is: data demand module,
For mobile phone by physical connection to equipment sending data solicited message to be paired;Mobile phone receives to be paired setting by physical connection
The standby data response message returned, described data response message at least includes the equipment identification information of equipment to be paired;
Pairing request module, initiating pairing according to described equipment identification information to corresponding equipment to be paired for mobile phone please
Ask;Mobile phone generates the first pair-wise key information, and mobile phone receives, by physical connection, the second pair-wise key that equipment to be paired sends
Information, described second pair-wise key information shows on mobile phone;
Pairing confirms module, and the described first pair-wise key information that is used for confirming phone with described second pair-wise key information is
No unanimously, if unanimously, the two set up bluetooth connect.
The medicine have the advantages that mobile phone receives, by physical connection, the data response message that equipment to be paired returns, and
And described data response message shows on mobile phone mobile phone, then just can treat paired device on mobile phone mobile phone the most intuitively
Data response message carry out the step that operates and confirm, not only increase the two safety issue during pairing, also
It is no longer can only to use Just Works pairing mode passively during making the pairing of the two.
The present invention optimizes further, and in order to improve the safety of pairing process further, described pairing confirms that module is also used
In: after described " the described first pair-wise key information that confirms phone is the most consistent with described second pair-wise key information ",
Mobile phone sends pairing confirmation by physical connection to equipment to be paired;
Mobile phone receives the pairing response message that equipment to be paired is returned by physical connection, and described pairing response message is at hands
Show on machine;
The pairing response message confirming phone described is the most correct, if correctly, the two is set up bluetooth and connects.
The present invention optimizes further, and described data demand module is additionally operable to: " mobile phone is believed according to described device identification described
Cease to corresponding equipment to be paired initiate pairing request " front,
Mobile phone initiates request by physical connection to equipment to be paired according to described equipment identification information, mobile phone, and request is treated
Paired device opens bluetooth discovery observability.
The present invention optimizes further, and described data demand module is additionally operable to:
Mobile phone sets up physical connection by tone frequency channel wire and equipment to be paired.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of mobile phone described in the embodiment of the present invention 1 and payment terminal matching method;
Fig. 2 is the flow chart of mobile phone described in the embodiment of the present invention 1 and payment terminal matching method;
Fig. 3 is the flow chart of mobile phone described in the embodiment of the present invention 2 and payment terminal matching method;
Fig. 4 is the flow chart of mobile phone described in the embodiment of the present invention 3 and payment terminal matching method;
Fig. 5 is the module map of mobile phone of the present invention and payment terminal contrast means;
Fig. 6 is the flow chart of the Bluetooth pairing methods of mobile phone described in the embodiment of the present invention 7;
Fig. 7 is the flow chart of the Bluetooth pairing methods of mobile phone described in the embodiment of the present invention 8;
Fig. 8 is the flow chart of the Bluetooth pairing methods of mobile phone described in the embodiment of the present invention 9;
Fig. 9 is the module map of mobile phone of the present invention.
Detailed description of the invention
By describing the technology contents of technical scheme, structural feature in detail, being realized purpose and effect, below in conjunction with concrete real
Execute example and coordinate accompanying drawing to be explained in detail.
Embodiment 1
Referring to Fig. 1 and Fig. 2, in the present embodiment, mobile phone 116 is set up by 3.5mm tone frequency channel wire with payment terminal 117
Physical connection, payment terminal uses the tool of userconfirm pairing mode, a kind of mobile phone of the present invention and payment terminal matching method
Body step is as follows:
Step S101:
Mobile phone is installed correspondence application software (APP), user authorize application software record authority because mobile phone with
Pay and when terminal is communicated by tone frequency channel wire, need dependence media play to realize two-way communication with recording;After these operations, handset starting
APP, starts to match flow process.
Step S102:
Application software initializes audio resource, and mobile phone sends data request information by audio frequency alignment payment terminal, at this
Embodiment is specially and sends " #1 " instruction to payment terminal, the facility information of request payment terminal, including bluetooth display Name,
The identification information such as physical address, serial number.
Step S103:
Corresponding equipment identification information is sent to mobile phone by tone frequency channel wire by payment terminal.
Step S104:
Mobile phone video data response message: application software points out the target of user's pairing to prop up by UI interface or informing
Pay the equipment identification information of terminal.
Step S107:
Mobile phone, according to equipment identification information, finds target payment terminal according to title, clicks on target payment terminal and initiates to join
To request.
Step S108:
Mobile phone generates the first pair-wise key information, both one group of 6 figure place word string, and paired box is ejected at mobile phone cell phone system interface,
Comprising this 6 figure place word string, user is optional to be confirmed or cancels.
Step S109:
Payment terminal also generates the second pair-wise key information simultaneously, is also one group of 6 figure place word string.
Step S110:
Mobile phone asks unpaired message by audio frequency alignment payment terminal.
Step S111:
Payment terminal is sent to mobile phone by tone frequency channel wire the information of 6 figure place word strings, and application software, at running background, receives
To 6 figure place word strings of payment terminal, point out user by informing.
Step S112:
Contrast the first pair-wise key information and the second pair-wise key information: user contrast 6 bit digital that informing shows with
6 bit digital of system prompt frame are the most consistent, if numeral is consistent, user selects confirmation system paired box mandate to match.
Step S115:
Successful matching, pairing flow process completes.
In the present embodiment, mobile phone 116 also includes mobile phone radio frequency, photographic head, flash lamp, receiver etc., wherein mobile phone radio frequency
For receiving, send and processing high frequency radio wave.
Tone frequency channel wire can be changed into other iOS device in other embodiments and support running background, self-defining data and point
To point or the scheme of near-field communication, such as acoustic communication, near field iBeacon, NFC (ApplePay) etc., indigo plant in other real-time examples
Tooth peripheral hardware may be used without Pincode pairing mode and PassKey pairing mode.
Embodiment 2
Refer to Fig. 3
In view of in actual scene, a lot of in the case of payment terminal be to close bluetooth discovery observability, therefore this enforcement
Example has had more step S105 and step S106, step before this and embodiment 1 all before step S107 of embodiment 1
Sample;
Step S105:
Mobile phone selects target payment terminal to send request according to the equipment identification information of payment terminal, and request payment terminal is opened
Open bluetooth discovery observability: application software sends " #2 " instruction by tone frequency channel wire and opens indigo plant to payment terminal, notice payment terminal
Tooth search observability, prepares pairing;Bluetooth configuration interface during changing interface is arranged by user to system simultaneously, application software enters
Enter running background, continue to keep voice communication;User arranges interface in bluetooth and opens bluetooth scanning, searches mesh according to device name
Marking device, after finding, initiates pairing request.
Step S106:
Payment terminal opens search observability.
The present embodiment is put into step S107 subsequently, and subsequent step is the most same as in Example 1, does not the most do here and repeats
Bright.
Embodiment 3
Refer to Fig. 4
For improving safety further, the present embodiment has more step S113 and step S114 after embodiment 1 step S112,
Institute before this is the most same as in Example 1, does not the most do repeat specification here,
Step S113:
Consistent in numeral, after user selects confirmation system paired box mandate pairing, user's interface switching is to application software circle
Face, reaffirms mandate pairing, and application software sends " #3 " instruction notification payment terminal by tone frequency channel wire and confirms pairing.
Step S114:
Payment terminal response 0x00 identifies successful matching, and other identify error code.
Embodiment 4
Referring to Fig. 1 and Fig. 5, in the present embodiment, mobile phone 116 is set up by 3.5mm tone frequency channel wire with payment terminal 117
Physical connection, payment terminal uses userconfirm pairing mode,.A kind of mobile phone of the present invention and payment terminal contrast means
Technical scheme is as follows:
Module is set up in 201 communication connections, specifically for:
Mobile phone is installed correspondence application software (APP), user authorize application software record authority because mobile phone with
Pay and when terminal is communicated by tone frequency channel wire, need dependence media play to realize two-way communication with recording;After these operations, handset starting
APP, starts to match flow process.
202 data demand modules, specifically for:
Application software initializes audio resource, and mobile phone sends data request information by audio frequency alignment payment terminal, at this
Embodiment is specially and sends " #1 " instruction to payment terminal, the facility information of request payment terminal, including bluetooth display Name,
The identification information such as physical address, serial number;
Corresponding equipment identification information is sent to mobile phone by tone frequency channel wire by payment terminal;
Mobile phone video data response message: application software points out the target of user's pairing to prop up by UI interface or informing
Pay the equipment identification information of terminal.
203 pairing request modules, specifically for:
Mobile phone, according to equipment identification information, finds target payment terminal according to title, clicks on target payment terminal and initiates to join
To request;
Mobile phone generates the first pair-wise key information, both one group of 6 figure place word string, and paired box is ejected at cell phone system interface, comprises
This 6 figure place word string, user is optional to be confirmed or cancels;
Payment terminal also generates the second pair-wise key information simultaneously, is also one group of 6 figure place word string;
Mobile phone asks unpaired message by audio frequency alignment payment terminal;
Payment terminal is sent to mobile phone by tone frequency channel wire the information of 6 figure place word strings, and application software, at running background, receives
To 6 figure place word strings of payment terminal, point out user by informing.
204 pairings confirm module, specifically for:
Contrast the first pair-wise key information and the second pair-wise key information: user contrast 6 bit digital that informing shows with
6 bit digital of system prompt frame are the most consistent, if numeral is consistent, user selects confirmation system paired box mandate to match;Pairing
Success, pairing flow process completes.
Tone frequency channel wire can be changed into other iOS device in other embodiments and support running background, self-defining data and point
To point or the scheme of near-field communication, such as acoustic communication, near field iBeacon, NFC (ApplePay) etc., indigo plant in other real-time examples
Tooth peripheral hardware may be used without Pincode pairing mode and PassKey pairing mode.
Embodiment 5
Refer to Fig. 5
In view of in actual scene, a lot of in the case of payment terminal be to close bluetooth discovery observability, therefore implementing
Pairing described in example confirms that module is additionally operable to:
After described " the described first pair-wise key information that confirms phone is the most consistent with described second pair-wise key information ",
Mobile phone selects target payment terminal to send request according to the equipment identification information of payment terminal, and request payment terminal is opened
Open bluetooth discovery observability: application software sends " #2 " instruction by tone frequency channel wire and opens indigo plant to payment terminal, notice payment terminal
Tooth search observability, prepares pairing;Bluetooth configuration interface during changing interface is arranged by user to system simultaneously, application software
Enter running background, continue to keep voice communication;User arranges interface in bluetooth and opens bluetooth scanning, searches according to device name
Target device, after finding, initiates pairing request;
Payment terminal opens search observability.
Embodiment 6
Refer to Fig. 5
For improving safety further, the most described data demand module is additionally operable to:
Consistent in numeral, after user selects confirmation system paired box mandate pairing, user's interface switching is to application software circle
Face, reaffirms mandate pairing, and application software sends " #3 " instruction notification payment terminal by tone frequency channel wire and confirms pairing;
Payment terminal response 0x00 identifies successful matching, and other identify error code.
Embodiment 7
Refer to Fig. 6
Mobile phone sets up physical connection with equipment to be paired by tone frequency channel wire in the present embodiment, and equipment to be paired uses
Userconfirm pairing mode.
Step S301:
Mobile phone is to equipment sending data solicited message to be paired: install the application software (APP) of correspondence, user on mobile phone
Authorize application software recording authority, because needing when mobile phone is communicated by tone frequency channel wire with equipment to be paired to rely on media play and record
Sound realizes two-way communication;After these operations, handset starting APP, start to match flow process.
Application software initializes audio resource, and mobile phone passes through audio frequency alignment equipment sending data to be paired solicited message,
The present embodiment is specially transmission " #1 " instruct to equipment to be paired, asks the facility information of equipment to be paired, show including bluetooth
Show the identification informations such as title, physical address, serial number.
Step S302:
Mobile phone receives the data response message that equipment to be paired returns: application software is pointed out by UI interface or informing
The equipment identification information of the target payment terminal of user's pairing.
Step S304:
Mobile phone initiates pairing request to equipment to be paired: mobile phone, according to equipment identification information, finds target to treat according to title
Paired device, clicks on target device and initiates pairing request.
Step S305:
Mobile phone receives the second pair-wise key information that equipment to be paired sends: equipment to be paired generates the second pair-wise key letter
Breath, is one group of 6 figure place word string, and mobile phone receives, by tone frequency channel wire, the second pair-wise key information that equipment to be paired sends, by logical
Know that user is pointed out on hurdle;
Step S306:
Mobile phone generates the first pair-wise key information: mobile phone generates the first pair-wise key information, both one group of 6 figure place word string, hands
Machine system interface ejects paired box, comprises this 6 figure place word string, and user is optional to be confirmed or cancels.
Step S307:
First pair-wise key information is the most consistent with the second pair-wise key information: user contrasts 6 figure places that informing shows
Word is the most consistent with 6 bit digital of system prompt frame, if numeral is consistent, user selects confirmation system paired box mandate to match.
Step S311:
If the first pair-wise key information is consistent with the second pair-wise key information, successful matching, pairing flow process completes.
In the present embodiment, mobile phone also includes mobile phone radio frequency, photographic head, flash lamp, receiver etc., and wherein mobile phone radio frequency is used for
Receive, send and process high frequency radio wave.
Tone frequency channel wire can be changed into other iOS device in other embodiments and support running background, self-defining data and point
To point or the scheme of near-field communication, such as acoustic communication, near field iBeacon, NFC (ApplePay) etc., indigo plant in other real-time examples
Tooth peripheral hardware may be used without Pincode pairing mode and PassKey pairing mode.
Embodiment 8
Refer to Fig. 7
In view of in actual scene, a lot of in the case of equipment to be paired be to close bluetooth discovery observability, therefore this reality
Execute example and had more step S303 before step S304 of embodiment 1, other step and embodiment 1 all as;
Step S303:
Mobile phone initiates request according to described identification information to equipment to be paired, asks the opening of device bluetooth discovery to be paired can
Opinion property: application software sends " #2 " by tone frequency channel wire and instructs to equipment to be paired, notifies that opening of device bluetooth discovery to be paired can
Opinion property, prepares pairing;Bluetooth configuration interface during changing interface is arranged by user to system simultaneously, application software enters backstage fortune
OK, continue to keep voice communication;User arranges interface in bluetooth and opens bluetooth scanning, searches target device according to device name,
After finding, initiate pairing request.
Embodiment 9
Refer to Fig. 8
For improving safety further, the present embodiment have more after embodiment 1 step S307 step S308, step S309 and
Step S310, other step is the most same as in Example 1, does not the most do repeat specification here,
Step S308:
Consistent with the second pair-wise key information in the first pair-wise key information, user selects confirmation system paired box mandate to join
To rear, user's interface switching, to software interface, reaffirms mandate pairing, and application software sends " #3 " by tone frequency channel wire and refers to
Order notifies that equipment to be paired confirms pairing.
Step S309:
Mobile phone receives the return information of equipment to be paired by tone frequency channel wire.
Step S310:
Whether judge equipment response to be paired is 0x00 mark, if it is, mark successful matching.
Embodiment 10
Refer to Fig. 9
In the present embodiment, mobile phone sets up physical connection with equipment to be paired by tone frequency channel wire, and equipment to be paired uses
Userconfirm pairing mode,.The technical scheme of a kind of mobile phone of the present invention is as follows:
401 data demand modules, specifically for:
Application software initializes audio resource, and mobile phone passes through audio frequency alignment equipment sending data to be paired solicited message,
The present embodiment is specially transmission " #1 " instruct to equipment to be paired, asks the facility information of equipment to be paired, show including bluetooth
Show the identification informations such as title, physical address, serial number;
Mobile phone video data response message: application software points out the to be paired of user's pairing by UI interface or informing
The equipment identification information of equipment.
402 pairing request modules, specifically for:
Mobile phone, according to equipment identification information, finds equipment to be paired according to title, clicks on target equipment to be paired and initiates to join
To request;
Mobile phone generates the first pair-wise key information, both one group of 6 figure place word string, and paired box is ejected at cell phone system interface, comprises
This 6 figure place word string, user is optional to be confirmed or cancels;
Mobile phone receives, by tone frequency channel wire, the second pair-wise key information that payment terminal generates, and described second day pair-wise key is believed
Breath is also one group of 6 figure place word string, and application software, at running background, is received 6 figure place word strings of payment terminal, carried by informing
Show user.
403 pairings confirm module, specifically for:
Contrast the first pair-wise key information and the second pair-wise key information: user contrast 6 bit digital that informing shows with
6 bit digital of system prompt frame are the most consistent, if numeral is consistent, user selects confirmation system paired box mandate to match;Pairing
Success, pairing flow process completes.
Tone frequency channel wire can be changed into other mobile phones in other embodiments and support running background, self-defining data and point-to-point
Or the scheme of near-field communication, such as wave communication, near field iBeacon, ApplePay etc., in other real-time examples, payment terminal also can be adopted
With Pincode pairing mode and PassKey pairing mode.
Embodiment 11
Refer to Fig. 9
In view of in actual scene, a lot of in the case of equipment to be paired be to close bluetooth discovery observability, therefore this reality
Execute the most described pairing of example and confirm that module is additionally operable to:
After described " the described first pair-wise key information that confirms phone is the most consistent with described second pair-wise key information ",
Mobile phone selects target equipment to be paired to send request according to equipment identification information, asks opening of device bluetooth to be paired
Search observability: application software sends " #2 " by tone frequency channel wire and instructs to equipment to be paired, notifies opening of device bluetooth to be paired
Search observability, prepares pairing;Bluetooth configuration interface during changing interface is arranged by user to system simultaneously, application software enters
Running background, continues to keep voice communication;User arranges interface in bluetooth and opens bluetooth scanning, searches target according to device name
Equipment, after finding, initiates pairing request.
Embodiment 12
Refer to Fig. 9
For improving safety further, the most described data demand module is additionally operable to:
Consistent in numeral, after user selects confirmation system paired box mandate pairing, user's interface switching is to application software circle
Face, reaffirms mandate pairing, and application software sends " #3 " instruction notification equipment to be paired by tone frequency channel wire and confirms pairing;
Equipment response 0x00 to be paired identifies successful matching, and other identify error code.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality
Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating
Relation or order in any this reality.And, term " includes ", " comprising " or its any other variant are intended to
Comprising of nonexcludability, so that include that the process of a series of key element, method, article or terminal unit not only include those
Key element, but also include other key elements being not expressly set out, or also include for this process, method, article or end
The key element that end equipment is intrinsic.In the case of there is no more restriction, statement " including ... " or " comprising ... " limit
Key element, it is not excluded that there is also other key element in including the process of described key element, method, article or terminal unit.This
Outward, in this article, " be more than ", " being less than ", " exceeding " etc. are interpreted as not including this number;More than " ", " below ", " within " etc. understand
For including this number.
Those skilled in the art are it should be appreciated that the various embodiments described above can be provided as method, device or computer program product
Product.These embodiments can use complete hardware embodiment, complete software implementation or combine software and hardware in terms of embodiment
Form.All or part of step in the method that the various embodiments described above relate to can instruct relevant hardware by program
Completing, described program can be stored in the storage medium that computer equipment can read, and is used for performing the various embodiments described above side
All or part of step described in method.Described computer equipment, includes but not limited to: personal computer, server, general-purpose computations
Machine, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, Wearable
Smart machine, vehicle intelligent equipment etc.;Described storage medium, includes but not limited to: RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle
Deposit, the storage of USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc..
The various embodiments described above are with reference to according to the method described in embodiment, equipment (system) and computer program
Flow chart and/or block diagram describe.It should be understood that can every by computer program instructions flowchart and/or block diagram
Flow process in one flow process and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computers can be provided
Programmed instruction to the processor of computer equipment to produce a machine so that the finger performed by the processor of computer equipment
Order produces for realizing specifying in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame
The device of function.
These computer program instructions may be alternatively stored in the computer that computer equipment can be guided to work in a specific way and set
In standby readable memory so that the instruction being stored in this computer equipment readable memory produces the manufacture including command device
Product, this command device realizes at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame middle finger
Fixed function.
These computer program instructions also can be loaded on computer equipment so that performs a series of on a computing device
Operating procedure is to produce computer implemented process, thus the instruction performed on a computing device provides for realizing in flow process
The step of the function specified in one flow process of figure or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although being described the various embodiments described above, but those skilled in the art once know basic wound
The property made concept, then can make other change and amendment to these embodiments, so the foregoing is only embodiments of the invention,
Not thereby the scope of patent protection of the present invention, every equivalent structure utilizing description of the invention and accompanying drawing content to be made are limited
Or equivalence flow process conversion, or directly or indirectly it is used in other relevant technical fields, the most in like manner it is included in the patent of the present invention
Within protection domain.
Claims (18)
1. a mobile phone and payment terminal Bluetooth pairing methods, it is characterised in that include step:
Mobile phone and payment terminal set up physical connection;
Mobile phone sends data request information by described physical connection to payment terminal, and payment terminal is returned by described physical connection
Returning data response message, described data response message at least includes the equipment identification information of payment terminal;
Mobile phone initiates pairing request according to described equipment identification information to counterpart expenditure terminal;
Mobile phone generates the first pair-wise key information, and payment terminal generates the second pair-wise key information;
Payment terminal sends described second pair-wise key information, described second pair-wise key letter by described physical connection to mobile phone
Breath shows on mobile phone;
The described first pair-wise key information that confirms phone is the most consistent with described second pair-wise key information, if unanimously, the two
Set up bluetooth to connect.
A kind of mobile phone the most according to claim 1 and payment terminal Bluetooth pairing methods, it is characterised in that at described " hands
Machine confirms that described first pair-wise key information is the most consistent with described second pair-wise key information " after, further comprise the steps of:
Mobile phone sends pairing confirmation by described physical connection to payment terminal;
Payment terminal returns pairing response message by described physical connection to mobile phone, and described pairing response message is aobvious on mobile phone
Show;
The pairing response message confirming phone described is the most correct, if correctly, the two is set up bluetooth and connects.
A kind of mobile phone the most according to claim 1 and payment terminal Bluetooth pairing methods, it is characterised in that at described " hands
Machine is initiated pairing request according to the equipment identification information of described payment terminal to counterpart expenditure terminal and " before step, is further comprised the steps of:
Mobile phone initiates request by described physical connection to payment terminal according to described equipment identification information, mobile phone, and request pays
Terminal opens bluetooth discovery observability.
A kind of mobile phone the most according to claim 1 and payment terminal Bluetooth pairing methods, it is characterised in that
The equipment identification information of described payment terminal includes the bluetooth title of payment terminal, physical address, serial number.
A kind of mobile phone the most according to claim 1 and payment terminal Bluetooth pairing methods, it is characterised in that
Mobile phone and payment terminal set up physical connection by tone frequency channel wire.
6. a mobile phone and payment terminal Bluetooth pairing device, it is characterised in that including:
Module is set up in communication connection, sets up physical connection for mobile phone and payment terminal;
Data demand module, sends data request information, payment terminal by described physical connection to payment terminal for mobile phone
Returning data response message by described physical connection, described data response message at least includes the device identification letter of payment terminal
Breath;
Pairing request module, initiates pairing request according to described equipment identification information to counterpart expenditure terminal for mobile phone;Mobile phone
Generating the first pair-wise key information, payment terminal generates the second pair-wise key information;Payment terminal by described physical connection to
Mobile phone sends described second pair-wise key information, and described second pair-wise key information shows on mobile phone;
Pairing confirms module, and be used for confirming phone described first pair-wise key information and described second pair-wise key information whether one
Causing, if unanimously, the two is set up bluetooth and connects.
A kind of mobile phone the most according to claim 6 and payment terminal Bluetooth pairing device, it is characterised in that described pairing is true
Recognize module to be additionally operable to:
After described " the described first pair-wise key information that confirms phone is the most consistent with described second pair-wise key information "
Mobile phone sends pairing confirmation by described physical connection to payment terminal;Payment terminal by described physical connection to
Mobile phone returns pairing response message, and described pairing response message shows on mobile phone;The pairing response message confirming phone described
The most correct, if correctly, the two is set up bluetooth and connects.
8. according to claim the 6 a kind of mobile phones stated and payment terminal Bluetooth pairing device, it is characterised in that described data please
Modulus block is additionally operable to:
Described " mobile phone according to the equipment identification information of described payment terminal to counterpart expenditure terminal initiate pairing request " front, hands
Machine initiates request, request by described physical connection to payment terminal according to the equipment identification information of described payment terminal, mobile phone
Payment terminal opens bluetooth discovery observability.
A kind of mobile phone the most according to claim 6 and payment terminal Bluetooth pairing device, it is characterised in that described data please
Modulus block is additionally operable to:
The equipment identification information of described payment terminal includes the display Name of payment terminal, physical address, serial number.
A kind of mobile phone the most according to claim 6 and payment terminal Bluetooth pairing device, it is characterised in that described communication
Connection establishment module is additionally operable to:
Mobile phone and payment terminal set up physical connection by tone frequency channel wire.
The Bluetooth pairing methods of 11. 1 kinds of mobile phones, it is characterised in that include step:
Mobile phone passes through physical connection to equipment sending data solicited message to be paired;
Mobile phone receives, by physical connection, the data response message that equipment to be paired returns, and described data response message at least includes
The equipment identification information of equipment to be paired;
Mobile phone initiates pairing request according to described equipment identification information to corresponding equipment to be paired;
Mobile phone generates the first pair-wise key information, and mobile phone receives, by physical connection, the second pair-wise key that equipment to be paired sends
Information, described second pair-wise key information shows on mobile phone;
The described first pair-wise key information that confirms phone is the most consistent with described second pair-wise key information, if unanimously, the two
Set up bluetooth to connect.
The Bluetooth pairing methods of 12. a kind of mobile phones according to claim 11, it is characterised in that " confirm phone described
Described first pair-wise key information is the most consistent with described second pair-wise key information " after, further comprise the steps of:
Mobile phone sends pairing confirmation by physical connection to equipment to be paired;
Mobile phone receives the pairing response message that equipment to be paired is returned by physical connection, and described pairing response message is on mobile phone
Display;
The pairing response message confirming phone described is the most correct, if correctly, the two is set up bluetooth and connects.
The Bluetooth pairing methods of 13. a kind of mobile phones according to claim 11, it is characterised in that described " mobile phone according to
Described equipment identification information is initiated pairing request to corresponding equipment to be paired and " before step, is further comprised the steps of:
Mobile phone is initiated request by physical connection to equipment to be paired according to described equipment identification information, mobile phone, is asked to be paired
Opening of device bluetooth discovery observability.
The Bluetooth pairing methods of 14. a kind of mobile phones according to claim 11, it is characterised in that
Mobile phone sets up physical connection by tone frequency channel wire and equipment to be paired.
15. 1 kinds of mobile phones, it is characterised in that including:
Data demand module, for mobile phone by physical connection to equipment sending data solicited message to be paired;Mobile phone passes through thing
Reason connects the data response message receiving equipment to be paired return, and described data response message at least includes setting of equipment to be paired
Standby identification information;
Pairing request module, initiates pairing request according to described equipment identification information to corresponding equipment to be paired for mobile phone;Hands
Machine generates the first pair-wise key information, and mobile phone receives, by physical connection, the second pair-wise key information that equipment to be paired sends,
Described second pair-wise key information shows on mobile phone;
Pairing confirms module, and be used for confirming phone described first pair-wise key information and described second pair-wise key information whether one
Causing, if unanimously, the two is set up bluetooth and connects.
16. a kind of mobile phones according to claim 15, it is characterised in that described pairing confirms that module is additionally operable to:
After described " the described first pair-wise key information that confirms phone is the most consistent with described second pair-wise key information ", mobile phone
Pairing confirmation is sent to equipment to be paired by physical connection;Mobile phone receives what equipment to be paired was returned by physical connection
Pairing response message, described pairing response message shows on mobile phone;The pairing response message confirming phone described is the most correct,
If correct, the two is set up bluetooth and connects.
17. a kind of mobile phones according to claim 15, it is characterised in that described data demand module is additionally operable to:
Described " mobile phone according to described equipment identification information to corresponding equipment to be paired initiate pairing request " front, mobile phone is according to institute
Stating equipment identification information, mobile phone initiates request by physical connection to equipment to be paired, asks opening of device bluetooth to be paired to be searched
Rope observability.
18. a kind of mobile phones according to claim 15, it is characterised in that described data demand module is additionally operable to:
Mobile phone sets up physical connection by tone frequency channel wire and equipment to be paired.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610515550.6A CN106131771B (en) | 2016-07-01 | 2016-07-01 | Bluetooth pairing method and device for mobile phone and payment terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610515550.6A CN106131771B (en) | 2016-07-01 | 2016-07-01 | Bluetooth pairing method and device for mobile phone and payment terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106131771A true CN106131771A (en) | 2016-11-16 |
CN106131771B CN106131771B (en) | 2020-06-19 |
Family
ID=57469074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610515550.6A Active CN106131771B (en) | 2016-07-01 | 2016-07-01 | Bluetooth pairing method and device for mobile phone and payment terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106131771B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018171272A1 (en) * | 2017-03-22 | 2018-09-27 | 深圳付贝科技有限公司 | Payment method and device, system and electronic apparatus thereof |
CN112687382A (en) * | 2019-10-17 | 2021-04-20 | 通快医疗系统两合公司 | System comprising a medical apparatus and a remote control device, method of pairing and method of operating a medical apparatus |
CN114143908A (en) * | 2021-11-17 | 2022-03-04 | 武汉领普科技有限公司 | Wireless pairing method, device and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009104131A1 (en) * | 2008-02-19 | 2009-08-27 | Nxp B.V. | System and method for entering a pairing mode without user intervention |
CN102780513A (en) * | 2011-05-13 | 2012-11-14 | 希姆通信息技术(上海)有限公司 | Mobile terminal and method for realizing Bluetooth communication between mobile terminals |
WO2013181778A1 (en) * | 2012-06-04 | 2013-12-12 | Qualcomm Incorporated | Automatic connection of bluetooth human interface devices |
CN103632119A (en) * | 2013-12-20 | 2014-03-12 | 朱少昕 | Data processing device and processing method for card with audio standard interface |
CN104158567A (en) * | 2014-07-25 | 2014-11-19 | 天地融科技股份有限公司 | Pairing method and system and data interaction method and system for Bluetooth equipment |
CN104797005A (en) * | 2015-04-29 | 2015-07-22 | 深圳市文鼎创数据科技有限公司 | Bluetooth pairing method and equipment |
CN105188019A (en) * | 2015-08-17 | 2015-12-23 | 广东欧珀移动通信有限公司 | Method and device for Bluetooth pairing and Bluetooth terminals |
WO2016033677A1 (en) * | 2014-09-02 | 2016-03-10 | Ian Lo | Systems and methods for implementing a point-of-sale device using a smartphone or tablets without hardware add-ons |
-
2016
- 2016-07-01 CN CN201610515550.6A patent/CN106131771B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009104131A1 (en) * | 2008-02-19 | 2009-08-27 | Nxp B.V. | System and method for entering a pairing mode without user intervention |
CN102780513A (en) * | 2011-05-13 | 2012-11-14 | 希姆通信息技术(上海)有限公司 | Mobile terminal and method for realizing Bluetooth communication between mobile terminals |
WO2013181778A1 (en) * | 2012-06-04 | 2013-12-12 | Qualcomm Incorporated | Automatic connection of bluetooth human interface devices |
CN103632119A (en) * | 2013-12-20 | 2014-03-12 | 朱少昕 | Data processing device and processing method for card with audio standard interface |
CN104158567A (en) * | 2014-07-25 | 2014-11-19 | 天地融科技股份有限公司 | Pairing method and system and data interaction method and system for Bluetooth equipment |
WO2016033677A1 (en) * | 2014-09-02 | 2016-03-10 | Ian Lo | Systems and methods for implementing a point-of-sale device using a smartphone or tablets without hardware add-ons |
CN104797005A (en) * | 2015-04-29 | 2015-07-22 | 深圳市文鼎创数据科技有限公司 | Bluetooth pairing method and equipment |
CN105188019A (en) * | 2015-08-17 | 2015-12-23 | 广东欧珀移动通信有限公司 | Method and device for Bluetooth pairing and Bluetooth terminals |
Non-Patent Citations (1)
Title |
---|
徐金苟: ""蓝牙4.0底层核心技术协议研究与实现"", 《上海交通大学硕士学位论文》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018171272A1 (en) * | 2017-03-22 | 2018-09-27 | 深圳付贝科技有限公司 | Payment method and device, system and electronic apparatus thereof |
CN112687382A (en) * | 2019-10-17 | 2021-04-20 | 通快医疗系统两合公司 | System comprising a medical apparatus and a remote control device, method of pairing and method of operating a medical apparatus |
CN114143908A (en) * | 2021-11-17 | 2022-03-04 | 武汉领普科技有限公司 | Wireless pairing method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106131771B (en) | 2020-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107277754B (en) | Bluetooth connection method and Bluetooth peripheral equipment | |
CN105450655B (en) | Apparatus bound method and apparatus | |
CN103826226A (en) | Method and device for controlling wireless internet access | |
CN106257940A (en) | A kind of iOS device and bluetooth peripheral hardware matching method and device | |
WO2020010676A1 (en) | Bluetooth pairing method and system | |
CN105516902A (en) | Method and system for Bluetooth connection and Bluetooth device | |
CN102299729B (en) | A kind of information transferring method and device | |
CN102149167A (en) | Method for automatic pairing to a wireless network | |
CN105979324A (en) | Method and device of intelligent TV for controlling remote controller microphone | |
CN106452512A (en) | Role transition method and device based on Bluetooth connection | |
CN104796385A (en) | Terminal binding method, device and system | |
CN104798031A (en) | Handsfree device with continuous keyword recognition | |
WO2020038145A1 (en) | Service data processing method and apparatus, and related device | |
CN103108326A (en) | Session relationship establishing method and device and system | |
CN104797005A (en) | Bluetooth pairing method and equipment | |
US9286462B2 (en) | Apparatus and method for automatic login | |
CN107426069A (en) | Intelligent domestic system and its control method based on bluetooth | |
CN108899020A (en) | Information search method, device and computer readable storage medium | |
CN104683002A (en) | Method and device for pairing Bluetooth equipment | |
CN103108066A (en) | Achieving vehicle hands-free method and system based on bluetooth communication | |
CN104917612A (en) | Identity verification method and device | |
CN111314897B (en) | Method for recording vehicle Bluetooth key white list | |
CN105892822A (en) | Mobile terminal and rapid setting method and device thereof | |
CN106131771A (en) | A kind of mobile phone and payment terminal Bluetooth pairing methods and device | |
CN105120528A (en) | A method, apparatus and system for carrying out configuration setting between devices |
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 |