WO2017113790A1 - 实现扫码蓝牙自动连接方法、主设备、从设备和系统 - Google Patents

实现扫码蓝牙自动连接方法、主设备、从设备和系统 Download PDF

Info

Publication number
WO2017113790A1
WO2017113790A1 PCT/CN2016/093137 CN2016093137W WO2017113790A1 WO 2017113790 A1 WO2017113790 A1 WO 2017113790A1 CN 2016093137 W CN2016093137 W CN 2016093137W WO 2017113790 A1 WO2017113790 A1 WO 2017113790A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
information
server
module
code
Prior art date
Application number
PCT/CN2016/093137
Other languages
English (en)
French (fr)
Inventor
张成博
Original Assignee
福建联迪商用设备有限公司
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 福建联迪商用设备有限公司 filed Critical 福建联迪商用设备有限公司
Publication of WO2017113790A1 publication Critical patent/WO2017113790A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the invention relates to a connection between Bluetooth devices, in particular a Bluetooth device is a fast automatic connection.
  • Bluetooth completes the transmission of information between mobile payment terminals (such as POS machines) and mobile communication terminals (such as mobile phones).
  • each customer opens the mobile phone's Bluetooth function and prepares to connect to the mobile payment terminal of the cashier.
  • customers search for Bluetooth devices, they will find a lot of Bluetooth devices, so customers need to identify these Bluetooth devices one by one to determine which is the mobile payment terminal at the cashier. This causes great inconvenience to the customer's mobile payment.
  • the Bluetooth connection is a point-to-point connection.
  • the existing operation modes are as follows: manually turn on the Bluetooth function, manually search for the surrounding Bluetooth devices, and find the Bluetooth-connected Bluetooth device, manually input the information needed to pair, complete the Bluetooth connection. According to the above existing operation modes, the operation is quite complicated, the user experience is poor, and the user cannot recognize which is an illegal camouflage Bluetooth device. Connecting the camouflaged Bluetooth device may cause the user to leak information or cause illegal camouflage. Bluetooth device transfer.
  • the invention provides a method for scanning code Bluetooth automatic connection, which solves the security problem of the Bluetooth connection and the automatic connection problem.
  • the inventors provide a method for automatically connecting a scan code Bluetooth, which includes the following steps:
  • the first graphic code corresponds to the first device
  • the second device takes a photo to acquire the first graphic code, and parses the first graphic code to obtain the first information
  • the second device uploads the first information to the first server, where the first server stores the verification information of the legally registered Bluetooth device, and if the first information is not included in the verification information of the legally registered Bluetooth device stored by the first server, And prohibiting the second device from connecting to the Bluetooth device of the Bluetooth device name including the first information;
  • the second device connects to the first device according to the first information.
  • the verification information is an SN or a MAC.
  • the second device photographs the first graphic code, and parses the first graphic code to obtain the first information and the second information;
  • the second device connects to the first device according to the first information Bluetooth Bluetooth.
  • the method further includes the steps of: displaying a prompt indicating that the first device is an illegal device, and recording the first information corresponding to the first device in the first Disabling the connection device table in a server, after the second device uploads the first information to the first server, if the first information is recorded in the forbidden connection device table, prohibiting the second device and the Bluetooth device name from including the first information Bluetooth device Bluetooth connection.
  • the inventor also provides a master device for implementing a Bluetooth automatic connection method for scanning code, comprising an acquisition module, a parsing module, a connection module, and a network module;
  • the collecting module is configured to collect a first graphic code
  • the parsing module is configured to parse the first graphics code to obtain first information.
  • the connection module is configured to connect the first device to the Bluetooth according to the first information
  • the network module is configured to upload the first information to the first server, where the first server stores the verification information of the legally registered Bluetooth device, and if the verification information of the legally registered Bluetooth device stored by the first server does not include the first a message, the connection module is prohibited from being connected to the Bluetooth device whose Bluetooth device name includes the first information; if the verification information of the legally registered Bluetooth device stored by the first server includes the first information of the first device, the connection module is triggered according to the The first information Bluetooth is connected to the first device.
  • the verification information is an SN or a MAC.
  • the parsing module is configured to parse the first graphic code to obtain the first information and the second information, and decrypt the second information by using the first decryption algorithm to obtain a decrypted character string;
  • the network module is configured to: if the decryption string is not equal to the first information, trigger a Bluetooth connection of the Bluetooth device that prohibits the connection module and the Bluetooth device name including the first information;
  • the trigger connection module connects the first device according to the first information Bluetooth Bluetooth.
  • the network module is further configured to display a prompt indicating that the first device is an illegal device.
  • the inventor also provides a slave device for implementing a method for automatically scanning a code Bluetooth, and a first graphic code corresponding to the slave device is attached to the outer casing of the slave device.
  • the inventor also provides a system for implementing a scan code Bluetooth automatic connection method, the system comprising a master device, a slave device and a server;
  • the server includes a storage module and a network module, where the storage module is configured to store legally registered Bluetooth device information; and the network module is configured to communicate with the primary device;
  • the master device is the master device for implementing the method for automatically scanning the code Bluetooth automatic connection.
  • the slave device is the slave device described above for implementing the scan code Bluetooth automatic connection method.
  • the second device obtains the first information according to the collected first graphic code, parses the first graphic code, and passes the verification information of the legally registered Bluetooth device recorded in the first server. It is determined that if the first device corresponding to the first graphic code is a legally registered Bluetooth device, the second device automatically connects to the first device. Therefore, it is possible to quickly find out which Bluetooth devices in the current communication range are legally registered Bluetooth devices, thereby actively initiating a Bluetooth connection. Therefore, the user does not need to judge and select the target of the Bluetooth connection, and the user is convenient to connect to the specific Bluetooth device, and the first device connected to the second device is legally registered, thereby improving the connection of the second device to the reliable target Bluetooth device. The possibility to avoid connecting illegal Bluetooth devices and improve the reliability of data interaction via Bluetooth connection.
  • the second device is a mobile phone
  • the legally registered bluetooth device is a POS machine as an example.
  • the mobile phone When the user pays at the cashier, the mobile phone only needs to click the corresponding app or trigger the corresponding function, the mobile phone That is, the first graphic code on the POS machine will be photographed (it may require a certain shooting angle selection of the mobile phone operator), the mobile phone parses the first graphic code to obtain the first information; and then the mobile phone automatically uploads the first information to the first server, first The server stores the verification information of the legally registered Bluetooth device.
  • the connection between the mobile phone and the POS device is prohibited; if the first server stores The first information is included in the verification information of the legally registered Bluetooth device, and the mobile phone automatically connects to the first device according to the first information.
  • the POS machine that the user is connected to the POS machine is legally registered; on the other hand, the user is prevented from recognizing the searched Bluetooth device one by one, thereby reducing the manual operation of the user, thereby improving the user experience; on the other hand, saving the checkout station Waiting time of other users to increase the speed of water flow.
  • the first information is verified in the server, and the Bluetooth device that is not legally registered is prevented from posing as a POS machine, thereby enhancing the security of the user's mobile payment transaction.
  • FIG. 1 is a schematic diagram of steps of a method according to an embodiment of the present invention.
  • FIG. 2a is a schematic diagram of a module of a main device for implementing a Bluetooth automatic connection method for scanning codes according to an embodiment of the present invention.
  • 2b is a schematic block diagram of a server according to a specific implementation manner
  • FIG. 3 is a schematic diagram of a system according to a specific embodiment of the present invention.
  • a master device for implementing a Bluetooth automatic connection method
  • connection module 130 a connection module
  • a slave device for implementing a Bluetooth automatic connection method is provided.
  • MAC Media Access Control or Medium Access Control, media access control, also known as physical address or hardware address.
  • the Bluetooth automatic connection method for the scan code of the present invention includes the following steps:
  • the first graphic code corresponds to the first device
  • S101 The second device photographs the first graphic code, and parses the first graphic code to obtain the first information
  • the second device uploads the first information to the first server, where the first server stores the verification information of the legally registered Bluetooth device, and if the S103 first server stores the legally registered Bluetooth device, the verification information does not include the first Information, then S104 prohibits the second device from Bluetooth connection with the Bluetooth device name including the first information of the Bluetooth device;
  • the first device and the second device are Bluetooth devices.
  • the Bluetooth device in this document is a device with a Bluetooth hardware module, and the name of the Bluetooth device is a letter, a number, etc., which is a string displayed in the Bluetooth device list when searching for Bluetooth.
  • the first graphic code may be a one-dimensional code, a two-dimensional code or other code formed after the encoding, and the first graphic code carries the first information.
  • the first graphic code can be printed on the label or the casing on the first device, and if the first device has a display screen, the Bluetooth can also be displayed on the first device screen.
  • Parsing the first graphic code to obtain the first information is an encoding rule according to the first graphic code, and inversely decoding the barcode to obtain character information corresponding to the first graphic code.
  • the character can be a Chinese character, an English character, or a Chinese character. Wait.
  • the first server is a client server in some cases, and the client server stores information about the Bluetooth device that the client has or is related to.
  • the information of the Bluetooth device is legally registered Bluetooth device information; the Bluetooth device information is recorded in the legally registered Bluetooth device.
  • the Bluetooth device in the message is a legally registered Bluetooth device.
  • the information of the Bluetooth device stored in the first server may be a mac address or sn including the Bluetooth device, or other identifier uniquely corresponding to the Bluetooth device.
  • the device information saved in the first server is generated by the vendor server (also referred to as the second server) according to the Bluetooth device purchased by the client. After the generation, the generated device information is sent to the first server by using a secure communication manner.
  • the POS device information corresponding to the customer is generated, and the POS device information is sent to the first server through VPN or HTTPS or other means.
  • the device information of the POS machine includes at least SN or MAC, and may also include one or more of the following: SN, MAC, ID, certificate, date of manufacture, customer name, customer ID, and the like.
  • the second server initializes the legally registered Bluetooth device information, which reduces the workload of the client to manage the legal registration of the Bluetooth device information, and ensures the accuracy and validity of the initially legally registered Bluetooth device information.
  • the verification information of the legally registered Bluetooth device in different embodiments may be set random characters, preferably the verification information is different for different legally registered Bluetooth devices; the legally registered Bluetooth device in the first server
  • the information includes a random string corresponding to the Bluetooth setting.
  • the verification information may also be a sn or mac of a legally registered Bluetooth device, or another string that uniquely identifies the Bluetooth device.
  • the authentication information of the legally registered Bluetooth device is different to facilitate management and setting of the status of different Bluetooth devices on the first server. For example, in the process of using a legally registered Bluetooth device, if the Bluetooth device is damaged, the corresponding Bluetooth device information on the client server is modified.
  • the POS device For example, in the field of mobile payment, for a POS device with a Bluetooth hardware module, if the POS device owned by the customer is permanently damaged or eliminated or lost, the POS device is no longer available. In the state of use, the record of the device is deleted in the client server, or the device is marked as invalid; if the device of the POS device is in the state of repair or repair, the identifier is temporarily unavailable; otherwise, the identifier is normal or otherwise; The POS device information and the set identified as normal in the client server are the legally registered Bluetooth device information. For different legally registered Bluetooth devices, the verification information is a different string, so that when the legally registered Bluetooth device exhibits the above situation, the status of the legally registered Bluetooth device is modified on the server without affecting other Bluetooth devices.
  • the scanning code Bluetooth automatic connection method of the present invention is used. Through the above method, the customer directly realizes the modification and update of the POS machine information of the client server through the self-management of the customer, and avoids the POS machine equipment disguised by the criminals to be used as a normal POS device through the scrapped or repaired POS device, thereby improving the customer connection. POS machine security.
  • the Bluetooth device name of the legally registered Bluetooth device may be initialized to corresponding first information at the factory, or include the first information; then the value of the Bluetooth device's sn or mac or other attribute, and the first information are stored in the first In a server.
  • the second device obtains the first information according to the collected first graphic code, parses the first graphic code, and passes the verification information of the legally registered Bluetooth device recorded in the first server. It is determined that if the first device corresponding to the first graphic code is a legally registered Bluetooth device, the second device automatically connects to the first device. Therefore, it is possible to quickly find out which Bluetooth devices in the current communication range are legally registered Bluetooth devices, thereby actively initiating a Bluetooth connection. Therefore, the user does not need to judge and select the target of the Bluetooth connection, and the user is convenient to connect to the specific Bluetooth device, and the first device connected to the second device is legally registered, thereby improving the connection of the second device to the reliable target Bluetooth device. The possibility to avoid connecting illegal Bluetooth devices and improve the reliability of data interaction via Bluetooth connection.
  • the second device is a mobile phone
  • the legally registered bluetooth device is a POS machine as an example.
  • the mobile phone When the user pays at the cashier, the mobile phone only needs to click the corresponding app or trigger the corresponding function, the mobile phone That will take a photo to capture the first graphic code on the POS machine (may require the mobile phone operator to shoot at a certain angle), the mobile phone parses the first graphic code to obtain the first information; then the mobile phone Automatically uploading the first information to the first server, where the first server stores the SN or MAC (SN or MAC as the authentication information) of the legally registered Bluetooth device, if the MAC or SN of the legally registered Bluetooth device stored by the first server If the first information is not included, the mobile phone is prohibited from being connected to the POS device; if the first information is included in the verification information of the legally registered Bluetooth device stored by the first server, the mobile phone automatically connects to the first information according to the first information.
  • the SN or MAC SN or MAC as the authentication information
  • the Bluetooth device corresponding to the first information is the POS device corresponding to the first graphic code collected by the photo, and the POS device is a legally registered Bluetooth device, and the mobile phone actively Bluetooth.
  • the invention ensures the POS machine legally registered by the user to ensure the POS machine is legally registered; on the other hand, the user is prevented from identifying the searched Bluetooth device one by one, thereby reducing the manual operation of the user, thereby improving the user experience; thereby saving other players in the checkout counter.
  • the user's waiting time increases the speed of the flow.
  • the first information is verified in the server, and the Bluetooth device that is not legally registered is prevented from posing as a POS machine, thereby enhancing the security of the user's mobile payment transaction.
  • the present invention is particularly suitable for the following usage scenarios: other Bluetooth devices exist within the communication range, and the target Bluetooth devices do not have: audio input and output devices, character input and output devices, and image input and output devices.
  • the audio input and output device refers to a headphone speaker
  • the character input device is a keyboard or a button for inputting characters
  • the character output device is, for example, a display, an ink screen
  • the image input device is a camera, etc.
  • the image output device is a printer, a display, and a projection. Instrument and so on.
  • a legally registered Bluetooth device cannot actively select a Bluetooth device connected to it by pressing a button.
  • the target Bluetooth device can only learn the Bluetooth pairing information of the target Bluetooth device from the third device, or can only actively select the Bluetooth device that interfaces with the target Bluetooth device through the third device. Therefore, the target Bluetooth device in the communication range is automatically screened by the method of the invention, and actively connected with the device, so that the second device can be quickly connected with the first device in the communication range.
  • a display output device refers to a device that can output images or characters.
  • Bluetooth pairing information refers to the information obtained or sent by the master device or the name of the slave device or when Bluetooth, such as mac or sn, is not paired.
  • the third device is physically separable from the first device and may not be sold as a combined product, for example, the third device may be a mouse and keyboard smartphone or the like.
  • the Bluetooth device is connected to the Bluetooth device whose Bluetooth device name includes the first information; the second device displays a prompt indicating that the first device is an illegal device, and records the first information corresponding to the first device in the first server. It is forbidden to connect the device table. After the second device uploads the first information to the first server, if the first information is recorded in the forbidden device list, the second device and the Bluetooth device name include the first information of the Bluetooth device Bluetooth. connection.
  • the prompt can prompt the user through the notification bar or message box of the mobile phone, or prompt the user by means of short message, so that the user knows the connection result and the reason of the current Bluetooth automatic connection, and also alerts the user.
  • the illegal Bluetooth device refers to an illegal POS device, that is, It is registered in the legally registered Bluetooth device information table in the first server.
  • the second device sends the first information, the current location information, the time information, and the like to the first server, where the first server records the information in the first server. Do not connect device tables.
  • the Bluetooth name of the illegal Bluetooth device in the connected device table, and preferably includes other information, such as the MAC, the time and location of the first illegal Bluetooth device, and the like, by prohibiting the connection of the device table by querying, which is convenient for quickly determining the corresponding first graphic code. Whether the first device is a legitimate Bluetooth device. At the same time, by prohibiting the connection of the device table, it is advantageous for the user to collect information of the illegal Bluetooth device, such as the transaction location and the like.
  • the second device takes a picture to acquire the first graphic code, and parses the first graphic code to obtain the first information and the second information;
  • the second device connects to the first device according to the first information Bluetooth Bluetooth.
  • the second device is connected to the first device by using the first encryption algorithm; and if the second information is not the first information, the first information is obtained by the first encryption algorithm. , prohibiting the second device and the bluetooth device name including the blue of the first information
  • the dental device is connected; that is, the first device is prohibited from being connected by scanning the first graphic code.
  • the first encryption algorithm and the first decryption algorithm are a pair of corresponding encryption algorithms. It may be an algorithm for data encryption, ie a piece of data may be encrypted by a first encryption algorithm and restored using the first decrypted data. For example, it may correspond to an RSA encryption algorithm and an RSA decryption algorithm, or an AES encryption algorithm and an AES decryption algorithm, respectively.
  • the first encryption algorithm and the first decryption algorithm may also be used for digital signature algorithms, such as SHA encryption algorithm and SHA decryption algorithm, or MD5 encryption algorithm or MD5 decryption algorithm, respectively.
  • digital signature algorithms such as SHA encryption algorithm and SHA decryption algorithm, or MD5 encryption algorithm or MD5 decryption algorithm, respectively.
  • other existing encryption and decryption algorithms based on the above methods which may be algorithms for data encryption or algorithms for digital signatures
  • the key or random number that the first encryption algorithm or the first decryption algorithm needs to use may be pre-existing in the first device, or the first device is acquired from the first server. It can be understood that it is preferred that the executable program corresponding to the first encryption algorithm and the second encryption algorithm is not publicly available in the mobile phone or the server.
  • the second information is verified by the above method, and the criminals are prevented from masquerading as a legally registered Bluetooth device by modifying the device name of the Bluetooth device to ensure the security of the Bluetooth connection.
  • the second device after the second device is prohibited from Bluetooth Bluetooth connection with the first device, it may be by restricting network access of a specific payment program on the mobile phone; for example, prohibiting the Taobao app from accessing the wireless network on the mobile phone within a set time. It may also be an interface that invokes a third-party payment platform to implement mobile payment for supervising the second device, such as online banking, Alipay, JD payment, and the like, such as limiting the single or daily transaction amount of mobile payment through the second mobile phone. It may also be that the second device is locked, and the payment related short message received by the second device is sent to the security number corresponding to the second device. The security number corresponding to the second device is a preset security number.
  • the payment related short message received by the second device is a payment short message sent by the financial institution or the payment platform to the second device.
  • a payment short message sent by the financial institution or the payment platform to the second device.
  • a service call for example, 95588
  • a payment platform name or abbreviated name or an amount appears in the short message
  • the short message is considered to be a payment related text message.
  • the inventor also provides a master device for implementing a scan code Bluetooth automatic connection method, including collecting Module 110, parsing module 120, connection module 130, network module 140;
  • the collecting module 110 is configured to collect a first graphic code.
  • the parsing module 120 is configured to parse the first graphics code to obtain first information.
  • the connection module 130 is configured to connect to the first device according to the first information Bluetooth;
  • the network module 140 is configured to upload the first information to the first server, where the first server stores the verification information of the legally registered Bluetooth device, and the verification information of the legally registered Bluetooth device stored by the first server does not include the The first information prohibits the Bluetooth connection of the Bluetooth device with the Bluetooth device name including the first information; if the authentication information of the legally registered Bluetooth device stored by the first server includes the first information of the first device, the connection module The Bluetooth device is connected to the first device according to the first information.
  • the first information is an SN or a MAC.
  • the parsing module is configured to parse the first graphics code to obtain the first information and the second information;
  • the network module 140 is configured to: if the decryption string is not equal to the first information, prohibit the connection module from connecting to the Bluetooth device of the Bluetooth device name including the first information;
  • the connection module connects to the first device according to the first information Bluetooth Bluetooth.
  • the monitoring module 150 is further configured to: after prohibiting the second device from being Bluetooth connected with the first device, further comprising supervising mobile payment by the second device within a set time.
  • the inventor also provides a slave device for implementing a scan code Bluetooth automatic connection method, a first graphic code corresponding to the slave device is attached to the outer casing of the slave device, and the slave device does not have: an audio input and output device, Character input and output devices and image input and output devices.
  • the attachment may be a label to which the first graphic code is printed, or the first graphic code may be printed on the surface of the slave device by laser or ink, or a protrusion integrated with the outer casing may be provided on the outer casing of the device.
  • a graphic code may be a label to which the first graphic code is printed, or the first graphic code may be printed on the surface of the slave device by laser or ink, or a protrusion integrated with the outer casing may be provided on the outer casing of the device.
  • the invention is particularly suitable for the following use scenarios: there are other Bluetooth devices in the communication range, and
  • the Bluetooth device registered by the law does not have: an audio input/output device, a character input/output device, and an image input and output device.
  • the audio input and output device refers to a headphone speaker
  • the character input device is a keyboard or a button for inputting characters
  • the character output device is, for example, a display, an ink screen
  • the image input device is a camera, etc.
  • the image output device is a printer, a display, and a projection. Instrument and so on.
  • a legally registered Bluetooth device cannot actively select a Bluetooth device to which it is connected.
  • the legally registered Bluetooth device is that the user can only know the Bluetooth pairing information of the legally registered Bluetooth device from the third device, or can only actively select the Bluetooth Bluetooth device that is connected to the legally registered Bluetooth device through the third device. Therefore, by automatically filtering out the legally registered Bluetooth device within the communication range by the method of the present invention and actively connecting with the same, the first device can be quickly connected with the legally registered Bluetooth device within the communication range.
  • the inventor also provides a system for implementing a scan code Bluetooth automatic connection method, the system comprising a master device 10, a slave device 30 and a server 20;
  • the server 20 includes a storage module 210 and a network module 220, where the storage module 210 is configured to store legally registered Bluetooth device information; the network module 220 is configured to communicate with the master device;
  • the master device is the master device for implementing the method for automatically scanning the code Bluetooth automatic connection.
  • the slave device is the slave device described above for implementing the scan code Bluetooth automatic connection method.
  • a Bluetooth device is a device with a Bluetooth hardware module, and the name of the Bluetooth device is also called a Bluetooth name, or simply a name, which is composed of letters, numbers, etc., when searching for Bluetooth.
  • a string displayed in the list of Bluetooth devices, and two Bluetooth devices in this document are connected, meaning that two Bluetooth devices establish a connection through their respective Bluetooth hardware modules, which may also be referred to as a Bluetooth connection or simply a connection. It will be understood that herein "A includes B” or "A contains B”, and in some embodiments may be A equal to B.
  • the master device is a device with a Bluetooth hardware module, and the master device and the slave device are only for distinguishing two entities.
  • the master device may also be a slave device. That is, in one scenario, device A is the master device, device B is the slave device, and in another scenario, device A can be the slave device and device B is the master device.
  • relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation. It is required or implied that there is any such actual relationship or order between these entities or operations.
  • the terms “comprises” or “comprising” or “comprising” or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, or terminal device that includes a plurality of elements includes not only those elements but also Other elements that are included, or include elements inherent to such a process, method, article, or terminal device.
  • An element defined by the phrase “including” or “comprising” does not exclude the presence of additional elements in the process, method, article or terminal device including the element.
  • “greater than”, “less than”, “exceeded”, etc. are understood as not including the number; “above”, “below”, “inside”, etc. are understood to include the number.
  • the computer device includes but is not limited to: a personal computer, a server, a general purpose computer, a special purpose computer, a network device, an embedded device, a programmable device, a smart mobile terminal, a smart home device, a wearable smart device, a vehicle smart device, and the like;
  • the storage medium includes, but is not limited to, a RAM, a ROM, a magnetic disk, a magnetic tape, an optical disk, a flash memory, a USB flash drive, a mobile hard disk, a memory card, a memory stick, a network server storage, a network cloud storage, and the like.
  • the computer program instructions can also be stored in a computer device readable memory that can direct the computer device to operate in a particular manner, such that instructions stored in the computer device readable memory produce an article of manufacture comprising the instruction device, the instruction device being implemented in the process Figure One or more processes and/or block diagrams of the functions specified in a block or blocks.
  • These computer program instructions can also be loaded onto a computer device such that a series of operational steps are performed on the computer device to produce computer-implemented processing, such that instructions executed on the computer device are provided for implementing one or more processes in the flowchart And/or block diagram of the steps of a function specified in a box or blocks.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请提供实现扫码蓝牙自动连接方法、主设备、从设备和系统,解决蓝牙连接的安全问题和自动连接问题,涉及实现蓝牙设备之间的连接,特别是快速自动连接。该方法包括以上步骤:第一图形码与第一设备对应,第二设备拍照采集第一图形码,并解析第一图形码获得第一信息;第二设备将第一信息上传至第一服务器,第一服务器中存储有合法登记的蓝牙设备的验证信息,若第一服务器存储的合法登记的蓝牙设备的验证信息中不包含该第一信息,则禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;若第一服务器存储的合法登记的蓝牙设备的验证信息中包含第一信息,则第二设备根据第一信息蓝牙连接第一设备。

Description

实现扫码蓝牙自动连接方法、主设备、从设备和系统 技术领域
本发明创造涉及一种实现蓝牙设备之间的连接,特别蓝牙设备是快速自动连接。
背景技术
蓝牙技术在当下的电子产品上的应用是非常普遍,较为常见的如手机蓝牙、蓝牙耳机、蓝牙手环等可穿戴设备。在移动支付终端上也开始出现了蓝牙模块的身影,蓝牙作为一种通讯连接方式,完成移动支付终端(例如POS机)与移动通讯终端(例如手机)之间的信息传输。
在实现本发明的过程中,发明人发现现有技术中存在如下问题:在移动支付的场景中,例如在收银处,每个顾客都打开手机的蓝牙功能准备连接收银处的移动支付终端,此时顾客搜索蓝牙设备,将发现非常多的蓝牙设备,因此顾客需要逐个辨识这些蓝牙设备,才能确定哪个是收银处的移动支付终端。这给顾客的移动支付造成了极大的不便。
以及蓝牙连接是点对点的连接方式,处于正在使用蓝牙连接的蓝牙设备要想和其它蓝牙设备进行蓝牙连接,其现有的操作方式以下:手动打开蓝牙功能,手动搜索周边的蓝牙设备,找到要进行蓝牙连接的蓝牙设备,手动动输入配对所需要的信息,完成蓝牙连接。根据上述现有的操作方式可知,其操作相当复杂,用户体验差,而且用户无法辨识哪些是非法的伪装的蓝牙设备,连接上了伪装的蓝牙设备可能会导致用户泄露信息或导致向非法的伪装的蓝牙设备转账。
发明内容
以下给出对一个或更多个方面的简化概述以力图提供对此类方面的基本 理解。此概述不是所有构想到的方面的详尽综览,并且既非旨在指认出所有方面的关键性或决定性要素亦非试图界定任何或所有方面的范围。其唯一的目的是要以简化形式给出一个或更多个方面的一些概念以作为稍后给出的更加具体的说明之序。
本发明提供一种扫码蓝牙自动连接的方法,解决蓝牙连接的安全问题和自动连接问题。
为实现上述目的,发明人提供了一种扫码蓝牙自动连接方法,其包括以下步骤:
第一图形码与第一设备对应,
第二设备拍照采集第一图形码,并解析第一图形码获得第一信息;
第二设备将第一信息上传至第一服务器,第一服务器中存储有合法登记的蓝牙设备的验证信息,若第一服务器存储的合法登记的蓝牙设备的验证信息中不包含该第一信息,则禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;
若第一服务器存储的合法登记的蓝牙设备的验证信息中包含第一设备的第一信息,则第二设备根据第一信息蓝牙连接第一设备。
进一步,所述验证信息为SN或MAC。
进一步,第二设备拍照采集第一图形码,并解析第一图形码获得第一信息和第二信息;
使用第一解密算法解密第二信息得到解密字符串;
若解密字符串不等于第一信息,则禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;
若解密字符串等于第一信息,则第二设备根据第一信息蓝牙蓝牙连接第一设备。
进一步,在禁止第二设备与第一设备蓝牙连接之后,还包括步骤:显示指示第一设备为非法设备的提示,并且将第一设备对应的第一信息记录在第 一服务器中的禁止连接设备表,所述步骤第二设备将第一信息上传至第一服务器之后,若第一信息记录于禁止连接设备表,则禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接。
发明人还提供一种用于实现扫码蓝牙自动连接方法的主设备,包括采集模块、解析模块、连接模块、网络模块;
所述采集模块用于采集第一图形码;
所述解析模块用于解析第一图形码,获得第一信息;
所述连接模块用于根据第一信息蓝牙连接第一设备;
所述网络模块用于将第一信息上传至第一服务器,第一服务器中存储有合法登记的蓝牙设备的验证信息,若第一服务器存储的合法登记的蓝牙设备的验证信息中不包含该第一信息,则禁止连接模块与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;若第一服务器存储的合法登记的蓝牙设备的验证信息中包含第一设备的第一信息,则触发连接模块根据第一信息蓝牙连接第一设备。
进一步,所述验证信息为SN或MAC。
进一步,所述解析模块用于解析第一图形码获得第一信息和第二信息,并使用第一解密算法解密第二信息得到解密字符串;
所述网络模块用于若解密字符串不等于第一信息,则触发禁止连接模块与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;
若解密字符串等于第一信息,则触发连接模块根据第一信息蓝牙蓝牙连接第一设备。
进一步,所述网络模块还用于显示指示第一设备为非法设备的提示。发明人还提供一种用于实现扫码蓝牙自动连接方法的从设备,所述从设备的外壳上附着有对应该从设备的第一图形码。
发明人还提供一种用于实现扫码蓝牙自动连接方法的系统,该系统,包括主设备、从设备和服务器;
所述服务器包括存储模块和网络模块,所述存储模块用于存储合法登记的蓝牙设备信息;所述网络模块用于与主设备通讯;
所述主设备为上述用于实现扫码蓝牙自动连接方法的主设备
所述从设备为上述用于实现扫码蓝牙自动连接方法的从设备。
区别于现有技术,上述技术方案中第二设备根据采集到的第一图形码,并解析第一图形码获得第一信息,并通过记录于第一服务器中的合法登记的蓝牙设备的验证信息判断,若第一图形码对应的第一设备为合法登记的蓝牙设备,则第二设备自动连接第一设备。因而可以快速找出当前通讯范围内哪些蓝牙设备是合法登记的蓝牙设备,从而主动发起蓝牙连接。从而不需要用户判断和选择蓝牙连接的目标,方便用户连接到特定的蓝牙设备,并且保证第二设备连接的第一设备是经过合法登记的,进而提高了第二设备连接到可靠的目标蓝牙设备的可能性,进而避免连接非法蓝牙设备,提高了通过蓝牙连接进行数据交互的可靠性。
特别是在移动支付领域,以第二设备为手机,合法登记的蓝牙设备为POS机为例说明,用户在收银台支付时,只需要在手机上通过点击对应的app或触发相应的功能,手机即会拍照采集POS机上的第一图形码(可能需要手机操作者一定的拍摄角度选择),手机解析第一图形码获得第一信息;而后手机自动将第一信息上传至第一服务器,第一服务器中存储有合法登记的蓝牙设备的验证信息,若第一服务器存储的合法登记的蓝牙设备的验证信息中不包含该第一信息,则禁止手机与该POS机连接;若第一服务器存储的合法登记的蓝牙设备的验证信息中包含该上述第一信息,则手机自动根据第一信息蓝牙连接第一设备。一方面保证用户连接的POS机位合法登记的POS机;另一方面避免了用户逐个辨识搜索到的蓝牙设备,减少了用户的手动操作,从而提高用户的体验;另一方面也节约了收银台中其他用户的等待时间,提高流水速度。同时在服务器中通过对第一信息验证也避免了未经合法登记的蓝牙设备冒充POS机,增强了用户移动支付交易安全。
为能达成前述及相关目的,这一个或更多个方面包括在下文中充分描述并在所附权利要求中特别指出的特征。以下描述和附图详细阐述了这一个或更多个方面的某些说明性特征。但是,这些特征仅仅是指示了可采用各种方面的原理的各种方式中的若干种,并且本描述旨在涵盖所有此类方面及其等效方面。
附图说明
以下将结合附图来描述所公开的方面,提供附图是为了说明而非限定所公开的方面,附图中相似的标号标示相似要素,并且在其中:
图1为本发明具体实施例所述方法步骤示意图;
图2a为具体实施方式所述用于实现扫码蓝牙自动连接方法的主设备的模块示意图。
图2b为具体实施方式所述服务器的模块示意图;
图3为本发明具体实施例系统示意图。
附图标记说明:
10、用于实现蓝牙自动连接方法的主设备;
110、采集模块;
120、解析模块;
130、连接模块;
140、网络模块;
150、监管模块;
20、服务器;
210、存储模块;
220、网络模块;
30、用于实现蓝牙自动连接方法的从设备。
具体实施方式
为详细说明技术方案的技术内容、构造特征、所实现目的及效果,以下结合具体实施例并配合附图详予说明。在以下描述中,出于解释目的阐述了众多的具体细节以提供对一个或更多个方面的透彻理解。但是显而易见的是,没有这些具体细节也可实践此类方面。
首字母缩写列表
SN:Serial Number,序列号。
MAC:Media Access Control或Medium Access Control,媒体访问控制,又称物理地址或硬件地址。
请参阅图1-3,本发明提扫码蓝牙自动连接方法,包括以下步骤:
第一图形码与第一设备对应,
S101第二设备拍照采集第一图形码,并解析第一图形码获得第一信息;
S102第二设备将第一信息上传至第一服务器,第一服务器中存储有合法登记的蓝牙设备的验证信息,若S103第一服务器存储的合法登记的蓝牙设备的验证信息中不包含该第一信息,则S104禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;
S103若第一服务器存储的合法登记的蓝牙设备的验证信息中包含第一设备的第一信息,则S105第二设备根据第一信息蓝牙连接第一设备。
第一设备和第二设备为蓝牙设备,本文中的蓝牙设备为具备蓝牙硬件模块的设备,而蓝牙设备的名称为字母、数字等组成,为蓝牙搜索时显示在蓝牙设备列表中的字符串。
第一图形码可以是一维码、二维码或编码后形成的其他编码,第一图形码携带第一信息。第一图形码可以在第一设备上的标签或外壳上印制,若第一设备具有显示屏幕,也可在第一设备屏幕上显示蓝牙。
解析第一图形码获得第一信息为根据第一图形码的编码规则,反向解码该条码,获得该第一图形码对应字符信息,可以理解的是字符可以是中文字符、英文字符、或汉字等。
第一服务器在一些情况下为客户服务器,客户服务器中保存该客户具有的或相关的蓝牙设备的信息,这些蓝牙设备的信息为合法登记的蓝牙设备信息;蓝牙设备信息记录于合法登记的蓝牙设备信息中的蓝牙设备即为合法登记的蓝牙设备。保存在第一服务器中的蓝牙设备的信息可以是包括蓝牙设备的mac地址或sn,或其他与蓝牙设备唯一对应的标识。优选的第一服务器中保存的设备信息为厂商服务器(也称为第二服务器)根据客户购买的蓝牙设备而生成的,生成后通过安全通讯方式将上述生成的设备信息发送到第一服务器上。例如对于POS机厂商,其根据某一客户的订单或订单历史,生成该客户对应的POS机设备信息,并将这些POS机设备信息通过VPN或HTTPS或其他方式发送到第一服务器上。POS机的设备信息至少包括SN或MAC,以及还可以包括以下的一种或多种:SN、MAC,ID、证书、出产日期、客户名称、客户ID等。通过第二服务器初始化合法登记的蓝牙设备信息,减少了客户的管理合法登记蓝牙设备信息的工作量,同时保证了初始的合法登记的蓝牙设备信息的准确性和有效性。
在不同的实施例中合法登记的蓝牙设备的验证信息可以是设置的随机字符,优选的对于不同的合法登记的蓝牙设备其验证信息是不同的字符串;第一服务器中的合法登记的蓝牙设备信息包括该蓝牙设对应的随机字符串。验证信息还可以是合法登记的蓝牙设备的sn或mac,或其他能唯一标识该蓝牙设备的字符串。合法登记的蓝牙设备的验证信息不同便于在第一服务器上管理和设置不同的蓝牙设备的状态。例如客户在使用合法登记的蓝牙设备的过程中,若发生蓝牙设备损坏,则对应的修改客户服务器上的蓝牙设备信息。例如在移动支付领域,对于具有蓝牙硬件模块的POS机设备,对于客户拥有的POS机设备,若是永久损坏或者淘汰或遗失等使POS机设备处于不可再使 用的状态,则在客户服务器中对应删除该设备的记录,或标识该设备为无效状态;若POS机设备处于维修或待维修的状态,则标识为暂时不可用;否则标识为正常或其他;在客户服务器中标识为正常的POS机设备信息和集合为合法登记的蓝牙设备信息。而对于不同的合法登记的蓝牙设备其验证信息是不同的字符串,使得当合法登记的蓝牙设备出现上述状况时,通过在服务器修改合法登记的蓝牙设备的状态,而不会影响其他蓝牙设备的使用本发明的扫码蓝牙自动连接方法。通过上述方法,使得客户直接通过客户的自主管理,实现客户服务器的中POS机设备信息的修改和更新,避免不法分子通过报废或报修的POS机设备伪装为正常使用的POS机设备,提高客户连接POS机的安全性。
合法登记的蓝牙设备的蓝牙设备名称可以是在出厂前初始化为对应的第一信息,或包含第一信息;再将该蓝牙设备的sn或mac或其他属性的值,以及第一信息存于第一服务器中。
区别于现有技术,上述技术方案中第二设备根据采集到的第一图形码,并解析第一图形码获得第一信息,并通过记录于第一服务器中的合法登记的蓝牙设备的验证信息判断,若第一图形码对应的第一设备为合法登记的蓝牙设备,则第二设备自动连接第一设备。因而可以快速找出当前通讯范围内哪些蓝牙设备是合法登记的蓝牙设备,从而主动发起蓝牙连接。从而不需要用户判断和选择蓝牙连接的目标,方便用户连接到特定的蓝牙设备,并且保证第二设备连接的第一设备是经过合法登记的,进而提高了第二设备连接到可靠的目标蓝牙设备的可能性,进而避免连接非法蓝牙设备,提高了通过蓝牙连接进行数据交互的可靠性。
特别是在移动支付领域,以第二设备为手机,合法登记的蓝牙设备为POS机为例说明,用户在收银台支付时,只需要在手机上通过点击对应的app或触发相应的功能,手机即会拍照采集POS机上的第一图形码(可能需要手机操作者以一定的角度拍摄),手机解析第一图形码获得第一信息;而后手机 自动将第一信息上传至第一服务器,第一服务器中存储有合法登记的蓝牙设备的SN或MAC(SN或MAC作为验证信息),若第一服务器存储的合法登记的蓝牙设备的MAC或SN中不包含该第一信息,则禁止手机与该POS机连接;若第一服务器存储的合法登记的蓝牙设备的验证信息中包含该上述第一信息,则手机自动根据第一信息蓝牙连接第一设备。即若第一信息为合法登记蓝牙设备的MAC或SN,则第一信息对应的蓝牙设备为拍照采集的第一图形码对应的POS机,并且该pos机为合法登记的蓝牙设备,手机主动蓝牙连接该POS机。本发明一方面保证用户连接的POS机位合法登记的POS机;另一方面避免了用户逐个辨识搜索到的蓝牙设备,减少了用户的手动操作,从而提高用户的体验;从而节约了收银台中其他用户的等待时间,提高流水速度。同时在服务器中通过对第一信息验证也避免了未经合法登记的蓝牙设备冒充POS机,增强了用户移动支付交易安全。
本发明特别适合于以下使用场景:通讯范围内存在其他蓝牙设备,而目标蓝牙设备不具有:音频输入输出设备、字符输入输出设备和图像输入输出设备。音频输入输出设备指耳机音箱等,字符输入设备为键盘或用于输入字符的按键等、字符输出设备为例如显示器、ink屏等、图像输入设备为摄像机等,图像输出设备为打印机、显示器、投影仪等。合法登记的蓝牙设备无法通过按键主动选择与其连接的蓝牙设备。即目标蓝牙设备为用户只能从第三设备获知该目标蓝牙设备的蓝牙配对信息,或只能通过第三设备主动选择与目标蓝牙设备对接的蓝牙设备。从而通过本发明的方法自动筛选出通讯范围内的目标蓝牙设备,并与其主动连接,即可方便第二设备与通讯范围内的第一设备的快速连接。
显示输出设备指的是能输出图像或字符的设备。蓝牙配对信息指的是主设备或从设备的名称或mac或sn等蓝牙没配对时获取或发送的信息。第三设备是与第一设备物理上可分开的,并且可以是不作为组合商品销售,例如第三设备可以为鼠标键盘智能手机等。
在止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;第二设备显示指示第一设备为非法设备的提示,并且将第一设备对应的第一信息记录在第一服务器中的禁止连接设备表,所述步骤第二设备将第一信息上传至第一服务器之后,若第一信息记录于禁止连接设备表,则禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接。提示可以通过手机通知栏或消息框提示用户,或通过短信的方式提示用户,使得用户得知当前蓝牙自动连接的连接结果及原因,同时也有警示用户的作用。禁止连接设备表中保存禁止用户连接的蓝牙设备,也可称为非法蓝牙设备,与合法蓝牙设备相对,例如在第一设备为POS机的实施例中,非法蓝牙设备指非法的POS设备,即为登记于第一服务器中的合法登记的蓝牙设备信息表中。在一些实施例中,在禁止第二设备连接第一设备之后,第二设备将第一信息以及当前位置信息、时间信息等发送到第一服务器,第一服务器,第一服务器将这些信息记录于禁止连接设备表。禁止连接设备表中至少包含非法蓝牙设备的蓝牙名称,优选的还包括其他信息,例如MAC、首次发现非法蓝牙设备的时间、地点等;通过查询禁止连接设备表有利于快速确定第一图形码对应的第一设备是否为合法的蓝牙设备。同时通过禁止连接设备表有利于用户收集非法蓝牙设备的信息,例如交易地点等信息。在一些实施例中,第二设备拍照采集第一图形码,并解析第一图形码获得第一信息和第二信息;
使用第一解密算法解密第二信息得到解密字符串;
若解密字符串不等于第一信息,则禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备连接;
若解密字符串等于第一信息,则第二设备根据第一信息蓝牙蓝牙连接第一设备。
通过上述方法判断,若判断所述第二信息为第一信息经过第一加密算法加密得到,则第二设备蓝牙连接第一设备;若判断第二信息不是第一信息经过第一加密算法得到的,则禁止第二设备与蓝牙设备名称包括第一信息的蓝 牙设备连接;也即禁止通过扫码上述第一图形码连接第一设备。
第一加密算法和第一解密算法是一对对应的加密算法。其可以是用于数据加密的算法,即可以通过第一加密算法加密一段数据,并使用第一解密数据还原该数据。例如其可分别对应RSA加密算法和RSA解密算法,或AES加密算法和AES解密算法。
第一加密算法和第一解密算法也可是用于数字签名算法,例如可以分别是SHA加密算法和SHA解密算法,或MD5加密算法或MD5解密算。根据上述说明,应该了解,其他的现有的基于上述方法改进的加密和解密算法(可以是用于数据加密的算法或用于数字签名的算法)也是可行的。可以理解的是第一加密算法或第一解密算法需要使用的密钥或随机数可以是预存在第一设备中,或第一设备从第一服务器获取。可以理解的是,优选第一加密算法和第二加密算法对应的可执行程序在手机或服务器中为加密的不为公众所能获取的。
通过上述方法验证第二信息,避免不法分子通过修改蓝牙设备的设备名称,将作案工具伪装为合法登记的蓝牙设备,保证蓝牙连接的安全。
在一些实施例中,在禁止第二设备与第一设备蓝牙蓝牙连接之后,可以是通过限定手机上的特定的支付程序的网络访问;例如在设定时间内手机上禁止淘宝app访问无线网络。其也可以是调用第三方支付平台的接口实现监管第二设备的移动支付,例如网银、支付宝、京东支付等相关接口,例如限制通过第二手机的移动支付的单笔或每日的交易额度。其也可以是锁定该第二设备,并向第二设备对应的安全号码发送第二设备收到的支付相关的短信。第二设备对应的安全号码为预先设置的安全号码。第二设备收到的支付相关的短信为金融机构或支付平台发送给第二设备的支付短信。例如若短信中出现银行名称、名称缩写、服务电话(例如95588)或支付平台名称或名称缩写、或金额等则认为该短信为支付相关的短信。
发明人还提供一种用于实现扫码蓝牙自动连接方法的主设备,包括采集 模块110、解析模块120、连接模块130、网络模块140;
所述采集模块110用于采集第一图形码;
所述解析模块120用于解析第一图形码,获得第一信息;
所述连接模块130用于根据第一信息蓝牙连接第一设备;
所述网络模块140用于将第一信息上传至第一服务器,第一服务器中存储有合法登记的蓝牙设备的验证信息,若第一服务器存储的合法登记的蓝牙设备的验证信息中不包含该第一信息,则禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;若第一服务器存储的合法登记的蓝牙设备的验证信息中包含第一设备的第一信息,则连接模块130根据第一信息蓝牙连接第一设备。
在一些实施例中,所述第一信息为SN或MAC。
在一些实施例中,,所述解析模块用于解析第一图形码获得第一信息和第二信息;
所述网络模块140用于若解密字符串不等于第一信息,则禁止连接模块与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;
若解密字符串等于第一信息,则连接模块根据第一信息蓝牙蓝牙连接第一设备。
在一些实施例中,还包括监管模块150,所述监管模块用于在禁止第二设备与第一设备蓝牙连接之后,还包括在设定的时间内,监管通过第二设备的移动支付。
发明人还提供一种用于实现扫码蓝牙自动连接方法的从设备,所述从设备的外壳上附着有对应该从设备的第一图形码,所述从设备不具有:音频输入输出设备、字符输入输出设备和图像输入输出设备。附着可以是粘贴有打印有第一图形码的标签,或通过激光或墨将第一图形码打印在从设备的表面,或从设备的外壳上有与外壳一体的突起部,该突起部显示第一图形码。
本发明特别适合于以下使用场景:通讯范围内存在其他蓝牙设备,而合 法登记的蓝牙设备不具有:音频输入输出设备、字符输入输出设备和图像输入输出设备。音频输入输出设备指耳机音箱等,字符输入设备为键盘或用于输入字符的按键等、字符输出设备为例如显示器、ink屏等、图像输入设备为摄像机等,图像输出设备为打印机、显示器、投影仪等。合法登记的蓝牙设备的无法按键主动选择与其连接的蓝牙设备。即合法登记的蓝牙设备为用户只能从第三设备获知该合法登记的蓝牙设备的蓝牙配对信息,或只能通过第三设备主动选择与合法登记的蓝牙设备对接的蓝牙蓝牙设备。从而通过本发明的方法自动筛选出通讯范围内的合法登记的蓝牙设备,并与其主动连接,即可方便第一设备与通讯范围内的合法登记的蓝牙设备的快速连接。
发明人还提供一种用于实现扫码蓝牙自动连接方法的系统,该系统,包括主设备10、从设备30和服务器20;
所述服务器20包括存储模块210和网络模块220,所述存储模块210用于存储合法登记的蓝牙设备信息;所述网络模块220用于与主设备通讯;
所述主设备为上述用于实现扫码蓝牙自动连接方法的主设备
所述从设备为上述用于实现扫码蓝牙自动连接方法的从设备。
本文中的术语优先采用其在蓝牙技术领域的解释,蓝牙设备为具备蓝牙硬件模块的设备,而蓝牙设备的名称也称为蓝牙名称,或简称名称,为字母、数字等组成,为蓝牙搜索时显示在蓝牙设备列表中的字符串,而本文中两个蓝牙设备连接,指两个蓝牙设备通过各自的蓝牙硬件模块建立连接,也可称为蓝牙连接或简称连接。可以理解的是,本文中“A包括B”或“A包含B”,在一些实施例中可以是A等于B。可以理解,本文中从设备,主设备都是具有蓝牙硬件模块的设备,而主设备和从设备只是仅仅为了将两个实体区分开来,在一些场景中主设备也可以是作为从设备的,即在一个场景中设备A作为主设备,设备B作为从设备,而在另一场景中,可以是设备A作为从设备,设备B作为主设备。需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一 定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括……”或“包含……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的要素。此外,在本文中,“大于”、“小于”、“超过”等理解为不包括本数;“以上”、“以下”、“以内”等理解为包括本数。
本领域内的技术人员应明白,上述各实施例可提供为方法、装置、或计算机程序产品。这些实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。上述各实施例涉及的方法中的全部或部分步骤可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机设备可读取的存储介质中,用于执行上述各实施例方法所述的全部或部分步骤。所述计算机设备,包括但不限于:个人计算机、服务器、通用计算机、专用计算机、网络设备、嵌入式设备、可编程设备、智能移动终端、智能家居设备、穿戴式智能设备、车载智能设备等;所述的存储介质,包括但不限于:RAM、ROM、磁碟、磁带、光盘、闪存、U盘、移动硬盘、存储卡、记忆棒、网络服务器存储、网络云存储等。
上述各实施例是参照根据实施例所述的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到计算机设备的处理器以产生一个机器,使得通过计算机设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机设备以特定方式工作的计算机设备可读存储器中,使得存储在该计算机设备可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机设备上,使得在计算机设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已经对上述各实施例进行了描述,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改,所以以上所述仅为本发明的实施例,并非因此限制本发明的专利保护范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围之内。

Claims (10)

  1. 一种扫码蓝牙自动连接方法,其特征在于,包括以下步骤:
    第一图形码与第一设备对应,
    第二设备拍照采集第一图形码,并解析第一图形码获得第一信息;
    第二设备将第一信息上传至第一服务器,第一服务器中存储有合法登记的蓝牙设备的验证信息,若第一服务器存储的合法登记的蓝牙设备的验证信息中不包含该第一信息,则禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;
    若第一服务器存储的合法登记的蓝牙设备的验证信息中包含该第一信息,则第二设备根据第一信息蓝牙连接第一设备。
  2. 根据权利要求1所述的一种扫码蓝牙自动连接方法,其特征在于,所述验证信息为SN或MAC。
  3. 根据权利要求1所述的一种扫码蓝牙自动连接方法,其特征在于,第二设备拍照采集第一图形码,并解析第一图形码获得第一信息和第二信息;
    使用第一解密算法解密第二信息得到解密字符串;
    若解密字符串不等于第一信息,则禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;
    若解密字符串等于第一信息,则第二设备根据第一信息蓝牙连接第一设备。
  4. 根据权利要求1所述的一种扫码蓝牙自动连接方法,其特征在于,在禁止第二设备与第一设备蓝牙连接之后,还显示指示第一设备为非法设备的提示,并且将第一设备对应的第一信息记录在第一服务器中的禁止连接设备表,所述步骤第二设备将第一信息上传至第一服务器之后,若第一信息记录于禁止连接设备表,则禁止第二设备与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接。
  5. 一种用于实现扫码蓝牙自动连接方法的主设备,其特征在于,包括采集模块、解析模块、连接模块、网络模块;
    所述采集模块用于采集第一图形码;
    所述解析模块用于解析第一图形码,获得第一信息;
    所述连接模块用于根据第一信息蓝牙连接第一设备;
    所述网络模块用于将第一信息上传至第一服务器,第一服务器中存储有合法登记的蓝牙设备的验证信息,若第一服务器存储的合法登记的蓝牙设备的验证信息中不包含该第一信息,则触发连接模块禁止连接模块与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;若第一服务器存储的合法登记的蓝牙设备的验证信息中包含该第一信息,则触发连接模块根据第一信息蓝牙连接第一设备。
  6. 根据权利要求5所述的一种用于实现扫码蓝牙自动连接方法的主设备,其特征在于,所述验证信息为SN或MAC。
  7. 根据权利要求5所述的一种用于实现扫码蓝牙自动连接方法的主设备,其特征在于,所述解析模块用于解析第一图形码获得第一信息和第二信息,并使用第一解密算法解密第二信息得到解密字符串;
    所述网络模块用于若解密字符串不等于第一信息,则触发禁止连接模块与蓝牙设备名称包括第一信息的蓝牙设备蓝牙连接;若解密字符串等于第一信息,则触发连接模块根据第一信息蓝牙蓝牙连接第一设备。
  8. 根据权利要求5所述的一种用于实现扫码蓝牙自动连接方法的主设备,其特征在于,所述网络模块还用于显示指示第一设备为非法设备的提示。
  9. 一种用于实现扫码蓝牙自动连接方法的从设备,其特征在于,所述从设备的外壳上附着有对应该从设备的第一图形码,所述从设备不具有:音频输入输出设备、字符输入输出设备和图像输入输出设备。
  10. 一种用于实现扫码蓝牙自动连接方法的系统,其特征在于,包括主设备、从设备和服务器;
    所述服务器包括存储模块和网络模块,所述存储模块用于存储合法登记的蓝牙设备信息;所述网络模块用于与主设备通讯;
    所述主设备为任一权利要求5-8所述的用于实现扫码蓝牙自动连接方法的主设备
    所述从设备为权利要求9所述的用于实现扫码蓝牙自动连接方法的从设备。
PCT/CN2016/093137 2015-12-31 2016-08-03 实现扫码蓝牙自动连接方法、主设备、从设备和系统 WO2017113790A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511027674.1 2015-12-31
CN201511027674.1A CN105554908A (zh) 2015-12-31 2015-12-31 实现扫码蓝牙自动连接方法、主设备、从设备和系统

Publications (1)

Publication Number Publication Date
WO2017113790A1 true WO2017113790A1 (zh) 2017-07-06

Family

ID=55833777

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/093137 WO2017113790A1 (zh) 2015-12-31 2016-08-03 实现扫码蓝牙自动连接方法、主设备、从设备和系统

Country Status (2)

Country Link
CN (1) CN105554908A (zh)
WO (1) WO2017113790A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788577A (zh) * 2020-12-24 2021-05-11 深圳市民德电子科技股份有限公司 一种蓝牙手持扫码枪及蓝牙手持扫码枪系统

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554908A (zh) * 2015-12-31 2016-05-04 福建联迪商用设备有限公司 实现扫码蓝牙自动连接方法、主设备、从设备和系统
CN106231104A (zh) * 2016-08-03 2016-12-14 广东乐源数字技术有限公司 一种手环与智能手机绑定的方法
CN107018123B (zh) * 2016-11-14 2020-05-15 郭铮铮 一种管理设备访问权限的方法、装置和系统
CN107172571A (zh) * 2017-04-21 2017-09-15 上海掌门科技有限公司 一种智能设备自动配对连接方法和系统
CN107454558B (zh) * 2017-08-02 2020-11-24 神州融安科技(北京)有限公司 一种主从设备通过共享信息达到蓝牙自动连接的方法
CN107872800A (zh) * 2018-01-08 2018-04-03 深圳市芯中芯科技有限公司 一种基于软件双因子认证的蓝牙设备ble接入方法
CN108322902A (zh) * 2018-01-17 2018-07-24 深圳喆行科技有限公司 一种数据传输方法与数据传输系统
CN109831762B (zh) * 2018-12-17 2022-04-26 福建新大陆支付技术有限公司 Pos数据通讯方法、装置、终端设备及系统
CN109769240A (zh) * 2019-03-12 2019-05-17 百度在线网络技术(北京)有限公司 蓝牙连接方法、装置和系统
CN116074793A (zh) * 2021-11-01 2023-05-05 华为技术有限公司 蓝牙配对方法、设备、系统和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120196539A1 (en) * 2011-01-31 2012-08-02 Hanjin Lee HID protocol-based Soft Keyboard Toggle With Initialization and Synchronization Capability for Mobile Phones and PDAs Connected to a Peripheral Device
CN102932037A (zh) * 2012-10-15 2013-02-13 天地融科技股份有限公司 一种蓝牙key与终端建立连接的方法和系统
CN103701503A (zh) * 2013-12-25 2014-04-02 深圳市文鼎创数据科技有限公司 蓝牙配对方法及系统、蓝牙key
CN103997735A (zh) * 2014-04-24 2014-08-20 北京大学 一种基于流动型网络的移动监护方法与系统
CN204119250U (zh) * 2013-12-25 2015-01-21 深圳市文鼎创数据科技有限公司 蓝牙key
CN105025433A (zh) * 2015-07-09 2015-11-04 广东欧珀移动通信有限公司 一种蓝牙配对方法及终端
CN105554908A (zh) * 2015-12-31 2016-05-04 福建联迪商用设备有限公司 实现扫码蓝牙自动连接方法、主设备、从设备和系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779263A (zh) * 2012-06-19 2012-11-14 袁开国 基于pki和数字签名的可信二维码方案
CN103607710A (zh) * 2013-12-02 2014-02-26 北京东方泰华投资有限公司 一种无线设备与智能终端的快速连接方法及装置
CN103763786A (zh) * 2014-01-20 2014-04-30 梅平 一种设备配对的方法、终端及系统
CN103929297B (zh) * 2014-04-17 2017-05-17 福建联迪商用设备有限公司 一种pos和移动终端通信方法、加密方法和装置及一种pos
CN104378145B (zh) * 2014-11-27 2018-08-31 北京深思数盾科技股份有限公司 蓝牙设备的配对方法及系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120196539A1 (en) * 2011-01-31 2012-08-02 Hanjin Lee HID protocol-based Soft Keyboard Toggle With Initialization and Synchronization Capability for Mobile Phones and PDAs Connected to a Peripheral Device
CN102932037A (zh) * 2012-10-15 2013-02-13 天地融科技股份有限公司 一种蓝牙key与终端建立连接的方法和系统
CN103701503A (zh) * 2013-12-25 2014-04-02 深圳市文鼎创数据科技有限公司 蓝牙配对方法及系统、蓝牙key
CN204119250U (zh) * 2013-12-25 2015-01-21 深圳市文鼎创数据科技有限公司 蓝牙key
CN103997735A (zh) * 2014-04-24 2014-08-20 北京大学 一种基于流动型网络的移动监护方法与系统
CN105025433A (zh) * 2015-07-09 2015-11-04 广东欧珀移动通信有限公司 一种蓝牙配对方法及终端
CN105554908A (zh) * 2015-12-31 2016-05-04 福建联迪商用设备有限公司 实现扫码蓝牙自动连接方法、主设备、从设备和系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788577A (zh) * 2020-12-24 2021-05-11 深圳市民德电子科技股份有限公司 一种蓝牙手持扫码枪及蓝牙手持扫码枪系统
CN112788577B (zh) * 2020-12-24 2024-04-09 深圳市民德电子科技股份有限公司 一种蓝牙手持扫码枪及蓝牙手持扫码枪系统

Also Published As

Publication number Publication date
CN105554908A (zh) 2016-05-04

Similar Documents

Publication Publication Date Title
WO2017113790A1 (zh) 实现扫码蓝牙自动连接方法、主设备、从设备和系统
WO2017113792A1 (zh) 一种蓝牙自动连接方法和主设备、从设备和系统
US12067553B2 (en) Methods for locating an antenna within an electronic device
KR101773885B1 (ko) 이미지 인증을 이용한 증강현실 객체 제공 방법 및 제공 서버
CN112819475B (zh) 信息处理方法、装置、电子设备、服务器及介质
CN104903904B (zh) 用于资源请求的条形码认证
AU2013101034A4 (en) Registration and authentication of computing devices using a digital skeleton key
CN105490711B (zh) 蓝牙自动连接方法以及主设备、从设备和系统
CN108880791A (zh) 密钥保护方法、终端及计算机可读存储介质
CN104680078B (zh) 一种拍摄照片的方法、查看图片的方法、系统和终端
CN109597727B (zh) 电子设备的检测方法、检测装置、服务器及检测系统
EP3016349B1 (en) Method and apparatus for verifying terminal and computer program product
TWI529641B (zh) 驗證行動端動態顯示之資料之系統及其方法
EP3114571B1 (en) Information processing system, management device, and information output method
US20210195055A1 (en) Systems and methods for authenticating an image
CN113421100A (zh) 物品信息记录、流转、鉴别发起及服务方法、终端和系统
US20180293399A1 (en) Patient privacy de-identification in firewall switches forming VLAN segregation
US20160225004A1 (en) Token verification
TW202032453A (zh) 支付方法和裝置
CN110598421B (zh) 二维码加密方法、装置及二维码解密方法、装置
WO2017113791A1 (zh) 蓝牙自动连接方法和主设备、从设备和系统
US20130090059A1 (en) Identity verification
KR102464357B1 (ko) 준동형 암호화를 이용한 식별코드 생성 장치 및 그 방법
CN111259407A (zh) 一种图片处理方法、装置、存储介质及终端
JP2016015578A (ja) 暗号情報コードを利用した復号システム、プログラム及び方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16880585

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16880585

Country of ref document: EP

Kind code of ref document: A1