CN106131771B - Bluetooth pairing method and device for mobile phone and payment terminal - Google Patents

Bluetooth pairing method and device for mobile phone and payment terminal Download PDF

Info

Publication number
CN106131771B
CN106131771B CN201610515550.6A CN201610515550A CN106131771B CN 106131771 B CN106131771 B CN 106131771B CN 201610515550 A CN201610515550 A CN 201610515550A CN 106131771 B CN106131771 B CN 106131771B
Authority
CN
China
Prior art keywords
mobile phone
pairing
payment terminal
information
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.)
Active
Application number
CN201610515550.6A
Other languages
Chinese (zh)
Other versions
CN106131771A (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.)
Fujian Landi Commercial Equipment Co Ltd
Original Assignee
Fujian Landi Commercial Equipment 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 Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Priority to CN201610515550.6A priority Critical patent/CN106131771B/en
Publication of CN106131771A publication Critical patent/CN106131771A/en
Application granted granted Critical
Publication of CN106131771B publication Critical patent/CN106131771B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services 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 invention provides a Bluetooth pairing method and device for a mobile phone and a payment terminal, and belongs to the technical field of communication. The method for pairing the mobile phone and the payment terminal mainly comprises the following steps: establishing physical connection between the mobile phone and the payment terminal; the mobile phone sends data request information to the payment terminal, and the payment terminal returns data response information with equipment identification information; the mobile phone initiates a pairing request according to the equipment identification information; the mobile phone generates first pairing key information, and the payment terminal generates second pairing key information; the payment terminal sends second pairing key information to the mobile phone, and the second pairing key information is displayed on the mobile phone; the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information, if so, the pairing is completed, the invention enables the input operation and the display information of the payment terminal without input equipment and display screen to be operated on the mobile phone, not only improves the security of the pairing process, but also enables the payment terminal to only passively select Just Works pairing mode.

Description

Bluetooth pairing method and device for mobile phone and payment terminal
Technical Field
The invention relates to the technical field of Bluetooth, in particular to a Bluetooth pairing method and device for a mobile phone and a payment terminal.
Background
With the wider and wider use of the bluetooth technology, the payment terminal is applied to the communication field more and more widely. However, many mobile phone payment terminals do not have input devices and display screens, so that when the mobile phone is paired with the payment terminals, only the Just Works mode can be passively used, and the pairing process does not need any verification, so that the security is greatly reduced, and a great risk is caused to the payment process.
Disclosure of Invention
In order to solve the technical problems, the inventor provides a method and a device for pairing a mobile phone and a payment terminal, wherein physical connection is established between the mobile phone and the payment terminal, the payment terminal sends various response messages to the mobile phone through the physical connection, and the response messages are displayed on the mobile phone, so that the input and display operations of the payment terminal can be completed on the mobile phone.
In order to achieve the purpose, the invention discloses a method for pairing a mobile phone and a payment terminal by Bluetooth, which adopts the technical scheme that:
establishing physical connection between the mobile phone and the payment terminal;
the mobile phone sends data request information to the payment terminal through the physical connection, the payment terminal returns data response information through the physical connection, and the data response information at least comprises equipment identification information of the payment terminal;
the mobile phone initiates a pairing request to a corresponding payment terminal according to the equipment identification information of the payment terminal;
the mobile phone generates first pairing key information, and the payment terminal generates second pairing key information;
the payment terminal sends the second pairing key information to the mobile phone through the physical connection, and the second pairing key information is displayed on the mobile phone;
the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information or not, and if so, the first pairing key information and the second pairing key information establish Bluetooth connection.
The invention has the beneficial effects that: through the physical connection, the payment terminal can send data response information generated by the payment terminal to the mobile phone of the mobile phone, and the data information is displayed on the mobile phone, so that the steps of operating and confirming the data information of the payment terminal on the mobile phone can be intuitively carried out, the safety problem of the payment terminal and the mobile phone in the pairing process is improved, and the payment terminal can not only passively use a Just Works pairing mode in the pairing process.
The invention further optimizes, and in order to further improve the security of the pairing process, after the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information, the invention further comprises the following steps:
the mobile phone sends pairing confirmation information to the payment terminal through the physical connection;
the payment terminal returns pairing response information to the mobile phone through the physical connection, and the pairing response information is displayed on the mobile phone;
the mobile phone confirms whether the pairing response information is correct or not, and if the pairing response information is correct, the mobile phone and the pairing response information establish Bluetooth connection.
The invention is further optimized, in order to be closer to the actual scene, the Bluetooth searching visibility of a plurality of payment terminals in the actual scene is closed, and before the step that the mobile phone initiates the pairing request to the corresponding payment terminal according to the equipment identification information of the payment terminal, the invention also comprises the following steps:
and the mobile phone initiates a request to the payment terminal through the physical connection according to the equipment identification information of the payment terminal, and requests the payment terminal to start Bluetooth searching visibility.
The invention further optimizes that in order to obtain more useful payment terminal information by the mobile phone, the equipment identification information of the payment terminal comprises the display name, the physical address and the serial number of the payment terminal.
The invention is further optimized, and the mobile phone and the payment terminal are physically connected through the audio cable.
In order to achieve the purpose, the invention also discloses a device for pairing the mobile phone with the payment terminal by Bluetooth, which adopts the technical scheme that:
the communication connection establishing module is used for establishing physical connection between the mobile phone and the payment terminal;
the data request module is used for sending data request information to the payment terminal through the physical connection by the mobile phone, returning data response information by the payment terminal through the physical connection, and the data response information at least comprises equipment identification information of the payment terminal;
the pairing request module is used for initiating a pairing request to the corresponding payment terminal by the mobile phone according to the equipment identification information; the mobile phone generates first pairing key information, and the payment terminal generates second pairing key information; the payment terminal sends the second pairing key information to the mobile phone through the physical connection, and the second pairing key information is displayed on the mobile phone;
and the pairing confirmation module is used for confirming whether the first pairing key information is consistent with the second pairing key information or not by the mobile phone, and if so, establishing Bluetooth connection between the first pairing key information and the second pairing key information.
The invention has the beneficial effects that: through the physical connection, the payment terminal can send data response information generated by the payment terminal to the mobile phone, and the data response information is displayed on the mobile phone, so that the steps of operating and confirming the data information of the payment terminal on the mobile phone can be intuitively carried out, the safety problem of the payment terminal and the mobile phone in the pairing process is improved, and the payment terminal can not only passively use the Just Works pairing mode in the pairing process. Mobile phone handset
The invention further optimizes that, in order to further improve the security of the pairing process, the pairing confirmation module is further configured to:
after the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information, the mobile phone sends pairing confirmation information to the payment terminal through the physical connection;
the payment terminal returns pairing response information to the mobile phone through the physical connection, and the pairing response information is displayed on the mobile phone;
the mobile phone confirms whether the pairing response information is correct or not, and if the pairing response information is correct, the mobile phone and the pairing response information establish Bluetooth connection.
The invention further optimizes that in order to be closer to the actual scene, the bluetooth search visibility of many payment terminals in the actual scene is closed, and the data request module is further used for: before the mobile phone initiates a pairing request to the corresponding payment terminal according to the equipment identification information of the payment terminal,
and the mobile phone initiates a request to the payment terminal through the physical connection according to the equipment identification information of the payment terminal, and requests the payment terminal to start Bluetooth searching visibility.
The invention further optimizes that in order to obtain more useful payment terminal information by the mobile phone, the data request module is also used for:
the equipment identification information of the payment terminal comprises a display name, a physical address and a serial number of the payment terminal.
The invention further optimizes that the communication connection establishing module is further used for:
and the mobile phone and the payment terminal are physically connected through an audio line.
In order to achieve the above purpose, the invention also discloses a bluetooth pairing method of the mobile phone, which adopts the technical scheme that:
the mobile phone sends data request information to the equipment to be paired through physical connection;
the mobile phone receives data response information returned by the equipment to be paired through physical connection, wherein the data response information at least comprises equipment identification information of the equipment to be paired;
the mobile phone initiates a pairing request to the corresponding equipment to be paired according to the equipment identification information;
the mobile phone generates first pairing key information, receives second pairing key information sent by equipment to be paired through physical connection, and the second pairing key information is displayed on the mobile phone;
the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information or not, and if so, the first pairing key information and the second pairing key information establish Bluetooth connection.
The invention has the beneficial effects that: the mobile phone receives the data response information returned by the equipment to be paired through physical connection, and the data response information is displayed on the mobile phone, so that the steps of operating and confirming the data response information of the equipment to be paired on the mobile phone can be intuitively carried out, the safety problem of the equipment to be paired in the pairing process is improved, and the Just work pairing mode can not be used passively in the pairing process.
The invention further optimizes, and in order to further improve the security of the pairing process, after the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information, the invention further comprises the following steps:
the mobile phone sends pairing confirmation information to the equipment to be paired through physical connection;
the method comprises the steps that the mobile phone receives pairing response information returned by the equipment to be paired through physical connection, and the pairing response information is displayed on the mobile phone;
the mobile phone confirms whether the pairing response information is correct or not, and if the pairing response information is correct, the mobile phone and the pairing response information establish Bluetooth connection.
The invention further optimizes, before the step that the mobile phone initiates the pairing request to the equipment to be paired according to the equipment identification information, the invention also comprises the following steps:
and the mobile phone initiates a request to the equipment to be paired through physical connection according to the equipment identification information and requests the equipment to be paired to start Bluetooth searching visibility.
The invention is further optimized, and the mobile phone establishes physical connection with the equipment to be paired through the audio line.
In order to achieve the purpose, the invention also discloses a mobile phone, which adopts the technical scheme that:
the data request module is used for sending data request information to the equipment to be paired through physical connection by the mobile phone; the mobile phone receives data response information returned by the equipment to be paired through physical connection, wherein the data response information at least comprises equipment identification information of the equipment to be paired;
the pairing request module is used for initiating a pairing request to the corresponding equipment to be paired by the mobile phone according to the equipment identification information; the mobile phone generates first pairing key information, receives second pairing key information sent by equipment to be paired through physical connection, and the second pairing key information is displayed on the mobile phone;
and the pairing confirmation module is used for confirming whether the first pairing key information is consistent with the second pairing key information or not by the mobile phone, and if so, establishing Bluetooth connection between the first pairing key information and the second pairing key information.
The invention has the beneficial effects that: the mobile phone receives the data response information returned by the equipment to be paired through physical connection, and the data response information is displayed on the mobile phone, so that the steps of operating and confirming the data response information of the equipment to be paired on the mobile phone can be intuitively carried out, the safety problem of the equipment to be paired in the pairing process is improved, and the Just work pairing mode can not be used passively in the pairing process.
The invention further optimizes that, in order to further improve the security of the pairing process, the pairing confirmation module is further configured to: after the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information,
the mobile phone sends pairing confirmation information to the equipment to be paired through physical connection;
the method comprises the steps that the mobile phone receives pairing response information returned by the equipment to be paired through physical connection, and the pairing response information is displayed on the mobile phone;
the mobile phone confirms whether the pairing response information is correct or not, and if the pairing response information is correct, the mobile phone and the pairing response information establish Bluetooth connection.
The invention further optimizes, and the data request module is further configured to: before the mobile phone initiates a pairing request to the equipment to be paired according to the equipment identification information,
and the mobile phone initiates a request to the equipment to be paired through physical connection according to the equipment identification information and requests the equipment to be paired to start Bluetooth searching visibility.
The invention further optimizes, and the data request module is further configured to:
the mobile phone establishes physical connection with the equipment to be paired through the audio line.
Drawings
Fig. 1 is a schematic diagram of a method for pairing a mobile phone and a payment terminal according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a method for pairing a mobile phone and a payment terminal according to embodiment 1 of the present invention;
fig. 3 is a flowchart of a method for pairing a mobile phone and a payment terminal according to embodiment 2 of the present invention;
fig. 4 is a flowchart of a method for pairing a mobile phone and a payment terminal according to embodiment 3 of the present invention;
FIG. 5 is a block diagram of a device for pairing a mobile phone with a payment terminal according to the present invention;
fig. 6 is a flowchart of a bluetooth pairing method for a mobile phone according to embodiment 7 of the present invention;
fig. 7 is a flowchart of a bluetooth pairing method for a mobile phone according to embodiment 8 of the present invention;
fig. 8 is a flowchart of a bluetooth pairing method for a mobile phone according to embodiment 9 of the present invention;
fig. 9 is a block diagram of the mobile phone according to the present invention.
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Example 1
Referring to fig. 1 and fig. 2, in this embodiment, a physical connection is established between a mobile phone 116 and a payment terminal 117 through a 3.5mm audio line, and the payment terminal adopts a userconfirm pairing mode, and the specific steps of the method for pairing the mobile phone and the payment terminal of the present invention are as follows:
step S101:
installing corresponding application software (APP) on the mobile phone, and authorizing the recording permission of the APP by a user, wherein the mobile phone and the payment terminal need to rely on media playing and recording to realize two-way communication when communicating through an audio line; after these operations, the mobile phone starts the APP and starts the pairing process.
Step S102:
the application software initializes the audio resource, and the mobile phone sends data request information to the payment terminal through the audio line, specifically in this embodiment, sends a "# 1" instruction to the payment terminal to request the device information of the payment terminal, including identification information such as a bluetooth display name, a physical address, a serial number, and the like.
Step S103:
and the payment terminal sends the corresponding equipment identification information to the mobile phone through the audio cable.
Step S104:
the mobile phone displays data response information: and the application software prompts the equipment identification information of the target payment terminal paired by the user through a UI interface or a notification bar.
Step S107:
and the mobile phone finds the target payment terminal according to the equipment identification information and the name, and clicks the target payment terminal to initiate a pairing request.
Step S108:
the mobile phone generates first pairing key information, namely a group of 6-digit strings, a pairing box pops up on a mobile phone system interface of the mobile phone, the 6-digit strings are contained, and a user can select to confirm or cancel.
Step S109:
the payment terminal also generates second pairing key information, which is also a set of 6-digit numeric strings.
Step S110:
the mobile phone requests the pairing information to the payment terminal through the audio line.
Step S111:
the payment terminal sends the information of the 6-digit character string to the mobile phone through the audio line, the application software runs in the background, receives the 6-digit character string of the payment terminal, and prompts a user through a notification bar.
Step S112:
comparing the first pairing key information with the second pairing key information: and the user compares whether the 6 digits displayed on the notification bar are consistent with the 6 digits of the system prompt box or not, and if the digits are consistent, the user selects to confirm that the system pairing box authorizes pairing.
Step S115:
and (5) successfully pairing, and completing the pairing process.
In this embodiment, the mobile phone 116 further includes a mobile phone radio frequency for receiving, transmitting and processing high frequency radio waves, a camera, a flash lamp, a receiver, etc.
In other embodiments, the audio line may be replaced with a scheme that other iOS devices support background operation, data customization and point-to-point or near field communication, such as sound wave communication, near field iBeacon, NFC (ApplePay), and the like, and in other real-time embodiments, the bluetooth peripheral may also adopt a Pincode pairing mode and PassKey pairing mode.
Example 2
Please refer to fig. 3
Considering that in practical scenarios, the payment terminal is in many cases turned off the visibility of bluetooth search, so this embodiment adds step S105 and step S106 before step S107 of embodiment 1, and the steps before this are the same as those of embodiment 1;
step S105:
the mobile phone selects a target payment terminal to send a request according to the equipment identification information of the payment terminal, and requests the payment terminal to start Bluetooth searching visibility: the application software sends a #2 instruction to the payment terminal through the audio line, and informs the payment terminal to start Bluetooth searching visibility to prepare for pairing; meanwhile, the user switches the interface to a Bluetooth configuration interface in system setting, and the application software enters a background to run and continues to maintain audio communication; and starting Bluetooth scanning on a Bluetooth setting interface by a user, searching the target equipment according to the equipment name, and initiating a pairing request after finding the target equipment.
Step S106:
the payment terminal turns on the search visibility.
Subsequently, the present embodiment proceeds to step S107, and the subsequent steps are the same as those in embodiment 1, and a description thereof will not be repeated.
Example 3
Please refer to fig. 4
In order to further improve the safety, the embodiment has the steps S113 and S114 after the step S112 in the embodiment 1, all the steps up to this point are the same as those in the embodiment 1, and the description is not repeated here,
step S113:
and after the numbers are consistent and the user selects and confirms the authorized pairing of the system pairing frame, the user switches the interface to the application software interface, the authorized pairing is confirmed again, and the application software sends a #3 instruction to inform the payment terminal of confirming the pairing through the audio line.
Step S114:
the payment terminal responds 0x00 that the pairing was successful, otherwise identifying an error code.
Example 4
Referring to fig. 1 and 5, in the embodiment, the mobile phone 116 and the payment terminal 117 establish a physical connection through a 3.5mm audio line, and the payment terminal adopts a userconfirm pairing mode. The invention discloses a device for pairing a mobile phone with a payment terminal, which has the technical scheme that:
201 communication connection establishment module, specifically configured to:
installing corresponding application software (APP) on the mobile phone, and authorizing the recording permission of the APP by a user, wherein the mobile phone and the payment terminal need to rely on media playing and recording to realize two-way communication when communicating through an audio line; after these operations, the mobile phone starts the APP and starts the pairing process.
202 a data request module, specifically configured to:
the application software initializes audio resources, the mobile phone sends data request information to the payment terminal through an audio line, in this embodiment, specifically, sends a "# 1" instruction to the payment terminal to request the payment terminal for device information, including identification information such as a bluetooth display name, a physical address, a serial number, and the like;
the payment terminal sends the corresponding equipment identification information to the mobile phone through the audio line;
the mobile phone displays data response information: and the application software prompts the equipment identification information of the target payment terminal paired by the user through a UI interface or a notification bar.
203, a pairing request module, specifically configured to:
the mobile phone finds the target payment terminal according to the name and the equipment identification information, and clicks the target payment terminal to initiate a pairing request;
the mobile phone generates first pairing key information, namely a group of 6-digit strings, a pairing box pops up on a system interface of the mobile phone and contains the 6-digit strings, and a user can select to confirm or cancel;
the payment terminal also generates second pairing key information which is also a group of 6-digit numeric strings;
the mobile phone requests pairing information to the payment terminal through the audio line;
the payment terminal sends the information of the 6-digit character string to the mobile phone through the audio line, the application software runs in the background, receives the 6-digit character string of the payment terminal, and prompts a user through a notification bar.
204 pairing confirmation module, specifically configured to:
comparing the first pairing key information with the second pairing key information: the user compares whether the 6 digits displayed on the notification bar are consistent with the 6 digits of the system prompt box or not, and if the digits are consistent, the user selects to confirm that the system pairing box authorizes pairing; and (5) successfully pairing, and completing the pairing process.
In other embodiments, the audio line may be replaced with a scheme that other iOS devices support background operation, data customization and point-to-point or near field communication, such as sound wave communication, near field iBeacon, NFC (ApplePay), and the like, and in other real-time embodiments, the bluetooth peripheral may also adopt a Pincode pairing mode and PassKey pairing mode.
Example 5
Please refer to fig. 5
Considering that in practical scenarios, the payment terminal is in many cases turned off the visibility of bluetooth search, in an embodiment, the pairing confirmation module is further configured to:
after the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information,
the mobile phone selects a target payment terminal to send a request according to the equipment identification information of the payment terminal, and requests the payment terminal to start Bluetooth searching visibility: the application software sends a #2 instruction to the payment terminal through the audio line, and informs the payment terminal to start Bluetooth searching visibility to prepare for pairing; meanwhile, the user switches the interface to a Bluetooth configuration interface in system setting, and the application software enters a background to run and continues to maintain audio communication; starting Bluetooth scanning on a Bluetooth setting interface by a user, searching a target device according to the device name, and initiating a pairing request after finding the target device;
the payment terminal turns on the search visibility.
Example 6
Please refer to fig. 5
To further improve the security, in this embodiment, the data request module is further configured to:
after the numbers are consistent and the user selects and confirms the authorized pairing of the system pairing frame, the user switches the interface to the application software interface, the authorized pairing is confirmed again, and the application software sends a #3 instruction to inform the payment terminal to confirm the pairing through the audio line;
the payment terminal responds 0x00 that the pairing was successful, otherwise identifying an error code.
Example 7
Please refer to fig. 6
In this embodiment, the mobile phone and the device to be paired establish a physical connection through an audio line, and the device to be paired adopts a userconfirrm pairing mode.
Step S301:
the mobile phone sends data request information to the equipment to be paired: installing corresponding application software (APP) on the mobile phone, and authorizing the recording permission of the APP by a user, wherein the mobile phone and the device to be paired need to rely on media playing and recording to realize two-way communication when communicating through an audio line; after these operations, the mobile phone starts the APP and starts the pairing process.
The application software initializes the audio resource, and the mobile phone sends data request information to the device to be paired through the audio line, specifically in this embodiment, sends a "# 1" instruction to the device to be paired, and requests device information of the device to be paired, including identification information such as a bluetooth display name, a physical address, and a serial number.
Step S302:
the mobile phone receives data response information returned by the equipment to be paired: and the application software prompts the equipment identification information of the target payment terminal paired by the user through a UI interface or a notification bar.
Step S304:
the mobile phone initiates a pairing request to the equipment to be paired: the mobile phone finds the target equipment to be paired according to the equipment identification information and the name, and clicks the target equipment to initiate a pairing request.
Step S305:
the mobile phone receives second pairing key information sent by the equipment to be paired: the device to be paired generates second pairing key information which is a group of 6-digit character strings, the mobile phone receives the second pairing key information sent by the device to be paired through an audio line, and a notification bar prompts a user;
step S306:
the mobile phone generates first pairing key information: the mobile phone generates first pairing key information, namely a group of 6-digit strings, a pairing box pops up on a system interface of the mobile phone and contains the 6-digit strings, and a user can select to confirm or cancel.
Step S307:
whether the first pairing key information and the second pairing key information are consistent: and the user compares whether the 6 digits displayed on the notification bar are consistent with the 6 digits of the system prompt box or not, and if the digits are consistent, the user selects to confirm that the system pairing box authorizes pairing.
Step S311:
and if the first pairing key information is consistent with the second pairing key information, the pairing is successful, and the pairing process is finished.
In this embodiment, the mobile phone further includes a mobile phone radio frequency, a camera, a flash lamp, a receiver, and the like, wherein the mobile phone radio frequency is used for receiving, sending, and processing high-frequency radio waves.
In other embodiments, the audio line may be replaced with a scheme that other iOS devices support background operation, data customization and point-to-point or near field communication, such as sound wave communication, near field iBeacon, NFC (ApplePay), and the like, and in other real-time embodiments, the bluetooth peripheral may also adopt a Pincode pairing mode and PassKey pairing mode.
Example 8
Please refer to fig. 7
Considering that in an actual scene, in many cases, the visibility of bluetooth search is turned off for the device to be paired, this embodiment adds step S303 before step S304 in embodiment 1, and the other steps are the same as those in embodiment 1;
step S303:
the mobile phone initiates a request to the equipment to be paired according to the identification information, and requests the equipment to be paired to start the Bluetooth searching visibility: the application software sends a #2 instruction to the equipment to be paired through the audio line, informs the equipment to be paired of starting Bluetooth searching visibility and prepares for pairing; meanwhile, the user switches the interface to a Bluetooth configuration interface in system setting, and the application software enters a background to run and continues to maintain audio communication; and starting Bluetooth scanning on a Bluetooth setting interface by a user, searching the target equipment according to the equipment name, and initiating a pairing request after finding the target equipment.
Example 9
Please refer to FIG. 8
In order to further improve the safety, the embodiment has additional steps S308, S309 and S310 after step S307 in embodiment 1, and other steps are the same as in embodiment 1, and the description is not repeated here,
step S308:
and when the first pairing key information is consistent with the second pairing key information, and the user selects to confirm that the system pairing box authorizes pairing, the user switches the interface to the application software interface, and confirms authorized pairing again, and the application software sends a #3 instruction to inform the equipment to be paired to confirm pairing through the audio line.
Step S309:
the mobile phone receives the return information of the equipment to be paired through the audio line.
Step S310:
and judging whether the equipment to be paired responds to the 0x00 identification, and if so, successfully pairing the identification.
Example 10
Please refer to fig. 9
In this embodiment, the mobile phone and the device to be paired establish a physical connection through an audio line, and the device to be paired adopts a userconfirm pairing mode. The technical scheme of the mobile phone is as follows:
the 401 data request module is specifically configured to:
the application software initializes audio resources, and the mobile phone sends data request information to the device to be paired through an audio line, specifically in this embodiment, sends a "# 1" instruction to the device to be paired, and requests device information of the device to be paired, including identification information such as a bluetooth display name, a physical address, a serial number, and the like;
the mobile phone displays data response information: and the application software prompts the equipment identification information of the equipment to be paired matched paired by the user through a UI interface or a notification bar.
The 402 pairing request module is specifically configured to:
the mobile phone finds the equipment to be paired according to the equipment identification information and the name, and clicks the target equipment to be paired to initiate a pairing request;
the mobile phone generates first pairing key information, namely a group of 6-digit strings, a pairing box pops up on a system interface of the mobile phone and contains the 6-digit strings, and a user can select to confirm or cancel;
the mobile phone receives second pairing key information generated by the payment terminal through an audio line, the second day pairing key information is also a group of 6-digit strings, the application software runs in a background, receives the 6-digit strings of the payment terminal, and prompts a user through a notification bar.
403 pairing confirmation module, specifically configured to:
comparing the first pairing key information with the second pairing key information: the user compares whether the 6 digits displayed on the notification bar are consistent with the 6 digits of the system prompt box or not, and if the digits are consistent, the user selects to confirm that the system pairing box authorizes pairing; and (5) successfully pairing, and completing the pairing process.
In other embodiments, the audio line may be replaced with a scheme that other mobile phones support background operation, customize data, and perform point-to-point or near field communication, such as wave communication, near field iBeacon, ApplePay, and the like, and in other real-time embodiments, the payment terminal may also adopt a Pincode pairing mode and PassKey pairing mode.
Example 11
Please refer to fig. 9
Considering that in an actual scenario, in many cases, the device to be paired is to turn off the visibility of bluetooth search, in this embodiment, the pairing confirmation module is further configured to:
after the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information,
the mobile phone selects a target device to be paired according to the device identification information to send a request, and requests the device to be paired to start Bluetooth searching visibility: the application software sends a #2 instruction to the equipment to be paired through the audio line, informs the equipment to be paired of starting Bluetooth searching visibility and prepares for pairing; meanwhile, the user switches the interface to a Bluetooth configuration interface in system setting, and the application software enters a background to run and continues to maintain audio communication; and starting Bluetooth scanning on a Bluetooth setting interface by a user, searching the target equipment according to the equipment name, and initiating a pairing request after finding the target equipment.
Example 12
Please refer to fig. 9
To further improve the security, in this embodiment, the data request module is further configured to:
after the numbers are consistent, the user selects and confirms the system pairing frame to authorize pairing, the user switches the interface to the application software interface to confirm authorized pairing again, and the application software sends a "# 3" instruction to inform the equipment to be paired to confirm pairing through the audio line;
the device to be paired responds 0x00 that the identification is successful, and other identification error codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising … …" or "comprising … …" does not exclude the presence of additional elements in a process, method, article, or terminal that comprises the element. Further, herein, "greater than," "less than," "more than," and the like are understood to exclude the present numbers; the terms "above", "below", "within" and the like are to be understood as including the number.
As will be appreciated by one skilled in the art, the above-described embodiments may be provided as a method, apparatus, or computer program product. These embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. All or part of the steps in the methods according to the embodiments may be implemented by a program instructing associated hardware, where the program may be stored in a storage medium readable by a computer device and used to execute all or part of the steps in the methods according to the embodiments. The computer devices, including but not limited to: personal computers, servers, general-purpose computers, special-purpose computers, network devices, embedded devices, programmable devices, intelligent mobile terminals, intelligent home devices, wearable intelligent devices, vehicle-mounted intelligent devices, and the like; the storage medium includes but is not limited to: RAM, ROM, magnetic disk, magnetic tape, optical disk, flash memory, U disk, removable hard disk, memory card, memory stick, network server storage, network cloud storage, etc.
The various embodiments described above are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a computer apparatus to produce a machine, such that the instructions, which execute via the processor of the computer apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer apparatus to cause a series of operational steps to be performed on the computer apparatus to produce a computer implemented process such that the instructions which execute on the computer apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although the embodiments have been described, once the basic inventive concept is obtained, other variations and modifications of these embodiments can be made by those skilled in the art, so that the above embodiments are only examples of the present invention, and not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes using the contents of the present specification and drawings, or any other related technical fields, which are directly or indirectly applied thereto, are included in the scope of the present invention.

Claims (14)

1. A Bluetooth pairing method for a mobile phone and a payment terminal is characterized by comprising the following steps:
establishing physical connection between the mobile phone and the payment terminal;
the mobile phone sends data request information to the payment terminal through the physical connection, the payment terminal returns data response information through the physical connection, and the data response information at least comprises equipment identification information of the payment terminal;
the mobile phone initiates a pairing request to a corresponding payment terminal according to the equipment identification information;
the mobile phone generates first pairing key information, and the payment terminal generates second pairing key information;
the payment terminal sends the second pairing key information to the mobile phone through the physical connection, and the second pairing key information is displayed on the mobile phone;
the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information or not, and if so, the first pairing key information and the second pairing key information establish Bluetooth connection;
after the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information, the method further comprises the following steps:
the mobile phone sends pairing confirmation information to the payment terminal through the physical connection;
the payment terminal returns pairing response information to the mobile phone through the physical connection, and the pairing response information is displayed on the mobile phone;
the mobile phone confirms whether the pairing response information is correct or not, and if the pairing response information is correct, the mobile phone and the pairing response information establish Bluetooth connection;
the payment terminal has no input and display functions.
2. The method for pairing the mobile phone with the payment terminal through the bluetooth as claimed in claim 1, wherein before the step of initiating the pairing request to the corresponding payment terminal by the mobile phone according to the device identification information of the payment terminal, the method further comprises the steps of:
and the mobile phone initiates a request to the payment terminal through the physical connection according to the equipment identification information and requests the payment terminal to start the Bluetooth searching visibility.
3. The Bluetooth pairing method for the mobile phone and the payment terminal as claimed in claim 1,
the equipment identification information of the payment terminal comprises a Bluetooth name, a physical address and a serial number of the payment terminal.
4. The Bluetooth pairing method for the mobile phone and the payment terminal as claimed in claim 1,
and the mobile phone and the payment terminal are physically connected through an audio line.
5. The utility model provides a device is paired with payment terminal bluetooth which characterized in that includes:
the communication connection establishing module is used for establishing physical connection between the mobile phone and the payment terminal;
the data request module is used for sending data request information to the payment terminal through the physical connection by the mobile phone, returning data response information by the payment terminal through the physical connection, and the data response information at least comprises equipment identification information of the payment terminal;
the pairing request module is used for initiating a pairing request to the corresponding payment terminal by the mobile phone according to the equipment identification information; the mobile phone generates first pairing key information, and the payment terminal generates second pairing key information; the payment terminal sends the second pairing key information to the mobile phone through the physical connection, and the second pairing key information is displayed on the mobile phone;
the pairing confirmation module is used for confirming whether the first pairing key information is consistent with the second pairing key information or not by the mobile phone, and if so, establishing Bluetooth connection between the first pairing key information and the second pairing key information;
the pairing confirmation module is further configured to:
after the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information or not
The mobile phone sends pairing confirmation information to the payment terminal through the physical connection; the payment terminal returns pairing response information to the mobile phone through the physical connection, and the pairing response information is displayed on the mobile phone; the mobile phone confirms whether the pairing response information is correct or not, and if the pairing response information is correct, the mobile phone and the pairing response information establish Bluetooth connection;
the payment terminal has no input and display functions.
6. The device for Bluetooth pairing of a mobile phone and a payment terminal as claimed in claim 5, wherein the data request module is further configured to:
before the mobile phone initiates a pairing request to the corresponding payment terminal according to the equipment identification information of the payment terminal, the mobile phone initiates a request to the payment terminal through the physical connection according to the equipment identification information of the payment terminal, and requests the payment terminal to start the Bluetooth searching visibility.
7. The device for Bluetooth pairing of a mobile phone and a payment terminal as claimed in claim 5, wherein the data request module is further configured to:
the equipment identification information of the payment terminal comprises a display name, a physical address and a serial number of the payment terminal.
8. The device as claimed in claim 5, wherein the communication connection establishing module is further configured to:
and the mobile phone and the payment terminal are physically connected through an audio line.
9. A Bluetooth pairing method of a mobile phone is characterized by comprising the following steps:
the mobile phone sends data request information to the equipment to be paired through physical connection;
the mobile phone receives data response information returned by the equipment to be paired through physical connection, wherein the data response information at least comprises equipment identification information of the equipment to be paired;
the mobile phone initiates a pairing request to the corresponding equipment to be paired according to the equipment identification information;
the mobile phone generates first pairing key information, receives second pairing key information sent by equipment to be paired through physical connection, and the second pairing key information is displayed on the mobile phone;
the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information or not, and if so, the first pairing key information and the second pairing key information establish Bluetooth connection;
after the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information, the method further comprises the following steps:
the mobile phone sends pairing confirmation information to the equipment to be paired through physical connection;
the method comprises the steps that the mobile phone receives pairing response information returned by the equipment to be paired through physical connection, and the pairing response information is displayed on the mobile phone;
the mobile phone confirms whether the pairing response information is correct or not, and if the pairing response information is correct, the mobile phone and the pairing response information establish Bluetooth connection;
the device to be paired has no input and display functions.
10. The bluetooth pairing method for a mobile phone according to claim 9, wherein before the step of initiating a pairing request to a device to be paired by the mobile phone according to the device identification information, the method further comprises the steps of:
and the mobile phone initiates a request to the equipment to be paired through physical connection according to the equipment identification information and requests the equipment to be paired to start Bluetooth searching visibility.
11. The Bluetooth pairing method for mobile phones of claim 9,
the mobile phone establishes physical connection with the equipment to be paired through the audio line.
12. A cellular phone, comprising:
the data request module is used for sending data request information to the equipment to be paired through physical connection by the mobile phone; the mobile phone receives data response information returned by the equipment to be paired through physical connection, wherein the data response information at least comprises equipment identification information of the equipment to be paired;
the pairing request module is used for initiating a pairing request to the corresponding equipment to be paired by the mobile phone according to the equipment identification information; the mobile phone generates first pairing key information, receives second pairing key information sent by equipment to be paired through physical connection, and the second pairing key information is displayed on the mobile phone;
the pairing confirmation module is used for confirming whether the first pairing key information is consistent with the second pairing key information or not by the mobile phone, and if so, establishing Bluetooth connection between the first pairing key information and the second pairing key information;
the pairing confirmation module is further configured to:
after the mobile phone confirms whether the first pairing key information is consistent with the second pairing key information, the mobile phone sends pairing confirmation information to the equipment to be paired through physical connection; the method comprises the steps that the mobile phone receives pairing response information returned by the equipment to be paired through physical connection, and the pairing response information is displayed on the mobile phone; the mobile phone confirms whether the pairing response information is correct or not, and if the pairing response information is correct, the mobile phone and the pairing response information establish Bluetooth connection;
the device to be paired has no input and display functions.
13. The handset of claim 12, wherein the data request module is further configured to:
before the mobile phone initiates a pairing request to the corresponding to-be-paired equipment according to the equipment identification information, the mobile phone initiates a request to the to-be-paired equipment through physical connection according to the equipment identification information, and requests the to-be-paired equipment to start Bluetooth searching visibility.
14. The handset of claim 12, wherein the data request module is further configured to:
the mobile phone establishes physical connection with the equipment to be paired through the audio line.
CN201610515550.6A 2016-07-01 2016-07-01 Bluetooth pairing method and device for mobile phone and payment terminal Active CN106131771B (en)

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 CN106131771A (en) 2016-11-16
CN106131771B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122969A (en) * 2017-03-22 2017-09-01 深圳付贝科技有限公司 A kind of method of payment and its device, system and electronic equipment
EP3809733A1 (en) * 2019-10-17 2021-04-21 TRUMPF Medizin Systeme GmbH + Co. KG System comprising a medical apparatus and a remote control device, method for pairing the remote control device and the medical apparatus, and method for operating the medical apparatus
CN114143908A (en) * 2021-11-17 2022-03-04 武汉领普科技有限公司 Wireless pairing method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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
WO2013181778A1 (en) * 2012-06-04 2013-12-12 Qualcomm Incorporated Automatic connection of bluetooth human interface devices
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780513A (en) * 2011-05-13 2012-11-14 希姆通信息技术(上海)有限公司 Mobile terminal and method for realizing Bluetooth communication between mobile terminals
CN103632119B (en) * 2013-12-20 2016-08-17 朱少昕 The card data processing equipment of a kind of band audio standard interface and processing method thereof
CN104158567B (en) * 2014-07-25 2016-05-18 天地融科技股份有限公司 Matching method between bluetooth equipment and system, data interactive method and system
CN104797005A (en) * 2015-04-29 2015-07-22 深圳市文鼎创数据科技有限公司 Bluetooth pairing method and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
WO2013181778A1 (en) * 2012-06-04 2013-12-12 Qualcomm Incorporated Automatic connection of bluetooth human interface devices
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
CN105188019A (en) * 2015-08-17 2015-12-23 广东欧珀移动通信有限公司 Method and device for Bluetooth pairing and Bluetooth terminals

Also Published As

Publication number Publication date
CN106131771A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
US11729594B2 (en) Network access method, device, and system
US20220264431A1 (en) Method for Provisioning of Smart Device, System, and Readable Medium
KR101782070B1 (en) Method for controlling smart apparatus, terminal and server
EP3151628B1 (en) Method, device and system for accessing a wireless network
CN109040099B (en) Verification method, terminal and system for application
CN110868748A (en) Intelligent equipment network access method, device, equipment, system and medium
TWI512489B (en) Multi-screen interactive method, center equipment, terminal equipment and systems
CN104780154A (en) Device binding method and device binding device
EP3588890B1 (en) Method and device for wireless connection of multiple devices
KR20130037710A (en) Indirect device communication
KR102173242B1 (en) Local wireless data communication system, method and apparatus for automactic setup of imformation
CN102149167A (en) Method for automatic pairing to a wireless network
CN106131771B (en) Bluetooth pairing method and device for mobile phone and payment terminal
CN108650671B (en) Method, device, mobile terminal, storage medium and system for establishing Bluetooth connection
CN104797005A (en) Bluetooth pairing method and equipment
CN105407070A (en) Logging-in authorization method and device
CN106257940A (en) A kind of iOS device and bluetooth peripheral hardware matching method and device
US20180176767A1 (en) Methods and Apparatuses for Activating a Mobile Subscription
EP2874465B1 (en) Method and system for remote equipment data installation
KR20150067876A (en) display appratus and user terminal device and method for communicating the same
CN109936840B (en) Communication method and device and electronic equipment
CN105260026A (en) Terminal device control method, apparatus and system
KR20150060109A (en) Method and apparatus for connecting terminals by using near field communication
CN107135075B (en) Authorization method and device for user operation
US20200213838A1 (en) Method and Apparatus for Communication Authentication Processing, and Electronic Device

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