WO2018000570A1 - Bluetooth pairing method, apparatus and system - Google Patents
Bluetooth pairing method, apparatus and system Download PDFInfo
- Publication number
- WO2018000570A1 WO2018000570A1 PCT/CN2016/097478 CN2016097478W WO2018000570A1 WO 2018000570 A1 WO2018000570 A1 WO 2018000570A1 CN 2016097478 W CN2016097478 W CN 2016097478W WO 2018000570 A1 WO2018000570 A1 WO 2018000570A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- pressure value
- pressing duration
- request message
- pairing
- response
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
- H04M1/72502—Cordless telephones with one base station connected to a single line
- H04M1/72505—Radio link set-up procedures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
- H04M1/72502—Cordless telephones with one base station connected to a single line
- H04M1/72505—Radio link set-up procedures
- H04M1/72511—Searching for available channels
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a Bluetooth pairing method, apparatus, and system.
- Bluetooth technology is widely used due to its advantages of low power consumption, anti-interference, and global standard unification.
- it is necessary to perform Bluetooth pairing on at least two terminals to be established with a communication connection.
- the method for performing Bluetooth pairing can be implemented as: requesting the device to search for a connectable device, and selecting a response device among the searched devices, and then sending a pairing request to the answering device; after the answering device receives the pairing request, the answering device The pairing request prompt is displayed on the display screen. At this time, the answering device needs to input the pairing password to implement the Bluetooth pairing process between the requesting device and the answering device.
- the Bluetooth pairing method it is required to request the device to search for a connectable device, and the answering device needs to input a pairing password to achieve Bluetooth pairing between the two.
- the requesting device not only needs to complete data interaction with the answering device, but also needs to complete the input process of the specific information through the answering device, the Bluetooth pairing process is relatively cumbersome, and the Bluetooth pairing time is too long.
- the name of the device that the device is requested to search for is the same or similar, when the user selects the answering device, the user may need to re-pair due to the device selection error, which also prolongs the Bluetooth pairing. time. That is to say, with the above Bluetooth pairing method, it takes a long time between the requesting device and the answering device to complete the Bluetooth pairing process.
- the embodiment of the invention provides a method, device and system for Bluetooth pairing, which can reduce the time for completing Bluetooth pairing between the requesting device and the answering device.
- the embodiment of the present invention adopts the following technical solutions:
- an embodiment of the present invention provides a method for Bluetooth pairing, where the method is applied to a network communication system, where the network communication system includes a request device and a response device, and the method includes:
- the response device receives the request message sent by the requesting device, where the request message carries the first pressing duration and the first pressure value collected by the requesting device;
- the response device collects a second pressing duration and a second pressure value, where the second pressing duration is a length of time after the user receives the request message, and the second pressure value is received. After the request message, the user presses the pressure value of the answering device;
- the answering device sends a response message to the request message to the requesting device.
- an embodiment of the present invention provides a method for Bluetooth pairing, where the method is applied to a network communication system, where the network communication system includes a request device and a response device, and the method includes:
- the requesting device sends a request message, where the request message carries a first pressing duration and a first pressure value, so that the response device collects the second pressing duration and the second pressure value when receiving the request message. And determining, according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value, whether a pairing condition is satisfied;
- the requesting device receives a response message sent by the answering device if the pairing condition is met.
- an embodiment of the present invention provides a Bluetooth pairing device, where the device is applied to a network communication system, where the network communication system includes a requesting device and a response device, and the device includes:
- a communication module configured to receive a request message sent by the requesting device, where the request message carries a first pressing duration and a first pressure value collected by the requesting device;
- a monitoring module configured to collect a second pressing duration and a second pressure value, where the second pressing duration is a length of time that the user presses the response device after the communication module receives the request message, and the second pressure The value is a pressure value of the response device after the communication module receives the request message;
- a verification module configured to determine, according to the first pressing duration received by the communication module, the first pressure value, the second pressing duration collected by the monitoring module, and the second pressure value Meet the pairing conditions;
- the communication module is further configured to: when the verification module determines that the pairing condition is met, send a response message of the request message to the requesting device.
- an embodiment of the present invention provides a Bluetooth pairing device, where the device is applied to a network communication system, where the network communication system includes a requesting device and a response device, and the device includes:
- a communication module configured to send a request message, where the request message carries a first pressing duration and a first pressure value, so that the response device collects the second pressing duration and the second pressure when receiving the request message And determining, according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value, whether a pairing condition is satisfied;
- the communication module is further configured to receive a response message sent by the answering device if the pairing condition is met.
- an embodiment of the present invention provides a network communication system, where the network communication system includes a processor and a memory, where the memory stores a set of program codes, and the processor is used to invoke the memory.
- Stored program code to do the following:
- the sent response message is received.
- the method, device, and system for Bluetooth pairing provided by the embodiment of the present invention, when the first pressing time of the requesting device is greater than a time threshold, and the first pressure value is greater than the pressure threshold, the sending is carried a request message of the first pressing duration and the first pressure value; after the response device receives the request message, collecting the second pressing duration and the second pressure value, and according to the first pressing duration, the first pressure value, and the second pressing duration And determining a pairing condition by the second pressure value; when the pairing condition is met, the answering device sends a response message to the requesting device to complete the Bluetooth pairing.
- the requesting device After the user selects the answering device in the prior art, the requesting device sends a pairing request to the answering device; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention detects the When the pressing duration is greater than the time threshold, and the first pressure value is greater than the pressure threshold, the requesting device may directly send the request message without selecting the answering device, and according to the first pressing duration, the first pressure value, and the second pressing duration And the second pressure value, determining whether the answering device can complete the Bluetooth pairing with the requesting device that sends the request message, so that the process of the Bluetooth pairing can be simplified on the basis of accurately determining the answering device. Therefore, it is possible to reduce the time for completing the Bluetooth pairing between the requesting device and the answering device.
- FIG. 1 is an information interaction diagram of a method for Bluetooth pairing according to an embodiment of the present invention
- FIG 2 is an information interaction diagram of another method for Bluetooth pairing according to an embodiment of the present invention.
- FIG. 3 is an information interaction diagram of another method for Bluetooth pairing according to an embodiment of the present invention.
- FIG. 4 is an information interaction diagram of another method for Bluetooth pairing according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of an apparatus for pairing Bluetooth according to an embodiment of the present disclosure
- FIG. 6 is a schematic structural diagram of another apparatus for Bluetooth pairing according to an embodiment of the present disclosure.
- FIG. 7 is a schematic structural diagram of a network communication system according to an embodiment of the present invention.
- Embodiments of the present invention provide a method for Bluetooth pairing, which is applied to a network communication system, where the network communication system includes a request device and a response device.
- the requesting device and the answering device have a Bluetooth pairing function, and both have a function capable of detecting the pressing force.
- the requesting device acts as an initiator of the Bluetooth pairing process, initiates a pairing request to the answering device, and completes the Bluetooth pairing between the requesting device and the responding device by requesting a data interaction process between the device and the responding device. process.
- An embodiment of the present invention provides a method for Bluetooth pairing. As shown in FIG. 1 , the method is performed by a requesting device and a response device. The method includes:
- the requesting device sends a request message.
- the request message carries a first pressing duration and a first pressure value.
- the first pressing duration is the length of time when the user presses the requesting device when the Bluetooth pairing is performed.
- the first pressure value is Bluetooth pairing, the user presses the pressure value of the requesting device.
- a request message needs to be sent.
- the pressing duration and the pressure value carried in the request message sent by different requesting devices are different.
- the response device receives the request message sent by the requesting device.
- the response device collects a second pressing duration and a second pressure value.
- the second pressing duration is the length of time that the user presses the response device after receiving the request message
- the second pressure value is the pressure value of the response device after the user receives the request message
- Bluetooth technology is a short-range wireless communication technology
- the use of Bluetooth technology for communication has limitations in distance, which means that the distance between two devices for Bluetooth pairing is relatively close.
- the user using the answering device knows the time at which the user using the requesting device sends the request message, and does not need to prompt the user to have the request message delivered at the answering device. Therefore, when the request message is received, the Bluetooth pairing can be prepared by pressing the display screen of the answering device. After that, the answering device can determine whether the answering device is based on whether the collected pressing duration and the pressure value satisfy the pairing condition.
- Ability to Bluetooth pair with the requesting device can be
- the time at which the user starts pressing the display screen of the answering device and the time at which the user terminates pressing the display screen are collected, and the length of time between the two is determined as the second pressing duration.
- the second pressure value of the user is determined.
- the response device determines whether the pairing condition is met according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value. Wherein, when the pairing condition is satisfied, step 105 and step 107 are performed; otherwise, step 106 is performed.
- the answering device When the answering device receives multiple request messages at the same time, the answering device does not know which request message should be answered.
- the first pressing duration and the first pressure value carried in the request message sent by the different requesting devices are different, and therefore, according to the first pressing duration, the second pressing duration, the first pressure value, and The second pressure value determines whether the answering device is capable of Bluetooth pairing with the requesting device and which requesting device should be paired with.
- the answering device can be carried with the first
- the requesting device corresponding to the request message corresponding to the first pressure value is Bluetooth paired, that is, step 105 and step 107 can be performed for Bluetooth pairing.
- step 106 can be performed without Bluetooth pairing.
- the response device sends a response message of the request message to the requesting device.
- the answering device determines that the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value satisfy the pairing condition, the answering device sends a response message to the requesting device to notify the requesting device, between the answering device itself and the requesting device Bluetooth pairing has been successfully completed.
- the answering device does not send a response message of the request message to the requesting device.
- the answering device determines that the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value do not satisfy the pairing condition, the answering device does not send a response message to the requesting device.
- the user who uses the answering device does not receive any prompt, and does not hinder the entire process from when the response device receives the request message to when the answering device determines not to send the response message to the requesting device. Normal use of the user.
- the requesting device receives the response message.
- the Bluetooth pairing process has been completed.
- the method for the Bluetooth pairing is provided by the embodiment of the present invention.
- the sending carries the first pressing duration and the first pressure value.
- a request message after the response device receives the request message, collecting a second pressing duration and a second pressure value, and according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure
- the force value determines whether the pairing condition is satisfied; when the pairing condition is met, the answering device sends a response message to the requesting device to complete the Bluetooth pairing.
- the requesting device After the user selects the answering device in the prior art, the requesting device sends a pairing request to the answering device; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention detects the When the pressing duration is greater than the time threshold, and the first pressure value is greater than the pressure threshold, the requesting device may directly send the request message without selecting the answering device, and according to the first pressing duration, the first pressure value, and the second pressing duration And the second pressure value, determining whether the answering device can complete the Bluetooth pairing with the requesting device that sends the request message, so that the process of the Bluetooth pairing can be simplified on the basis of accurately determining the answering device. Therefore, it is possible to reduce the time for completing the Bluetooth pairing between the requesting device and the answering device.
- the size relationship between the data collected by the response device and the data carried in the request message may be compared. Therefore, on the basis of the implementation shown in FIG. 1, an implementation as shown in FIG. 2 can also be implemented.
- the step 104 determines whether the pairing condition is met according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value, and may be specifically implemented as step 1041:
- the first threshold interval and the second threshold interval are used to determine whether the answering device is the pairing device that is requested by the requesting device to initiate the Bluetooth pairing request. Therefore, the first threshold and the second threshold interval may be according to the display screen of the requesting device and the answering device. The performance is pre-set.
- the discriminating process and the pressure for the pressing duration are The order of execution of the discriminating process of values is not limited. Similarly, the first The duration of one press and the first pressure value are also not defined in the order of execution during the discriminating process.
- the method for the Bluetooth pairing provided by the embodiment of the present invention, when the second pressing duration and the second pressure value collected by the answering device meet the difference between the second pressing duration and the first pressing duration in the first threshold interval, and When the difference between the second pressure value and the first pressure value is within the second threshold interval, it is determined that the answering device can perform Bluetooth pairing with the requesting device.
- the requesting device sends a pairing request to the answering device after the user selects the answering device in the prior art; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention reduces the requesting device.
- the response device can be screened according to the relationship between the second pressing duration and the first pressing duration, and the magnitude relationship between the second pressure value and the first pressure value, thereby being able to accurately determine the A answering device that requests the device to perform Bluetooth pairing.
- the Bluetooth pairing operation and other normal operations may be distinguished according to the time length and pressure value of the user pressing the requesting device. Therefore, on the basis of the implementation shown in FIG. 1, an implementation as shown in FIG. 3 can also be implemented.
- step 108 and step 109 may be performed:
- the requesting device collects a first pressing duration and a first pressure value.
- the requesting device after the requesting device enters the Bluetooth pairing mode, it is detected whether the user presses the display screen.
- the time at which the user starts pressing the display screen and the time when the user terminates pressing the display screen are collected, and the length of time between the two is determined as the first pressing duration.
- the requesting device determines the first pressure value of the user.
- the first pressure The force value may be the pressure value collected by the user at the time of pressing the display screen, the maximum pressure value of the pressure value collected by the user during the pressing of the display screen, and the average value of the pressure values collected during the user pressing the display screen. Any one of them.
- the timing of collecting the first pressure value and the second pressure value is not specifically limited.
- the requesting device sends a request message.
- the time threshold and the pressure threshold can be used as a discriminating whether the requesting device needs to enter the Bluetooth.
- the basis of the pairing mode means that when the user does not want to communicate using the Bluetooth technology, the request message cannot be sent because there is a parameter that is smaller than the set threshold in the first pressing duration and the first pressure value. This can avoid Bluetooth pairing misoperation caused by other normal operations when the user uses the requesting device.
- the value of the time threshold and the pressure threshold are both a value, which may be preset and stored in the request device by the technician according to the historical experience value or the performance of the display screen of the requesting device, or may be in the requesting device by the user. Customize according to your needs.
- the method for the Bluetooth pairing is provided by the embodiment of the present invention.
- the sending carries the first pressing duration and the first pressure value.
- Request message After the user selects the answering device in the prior art, the requesting device sends a pairing request to the answering device; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention detects the
- the pressing duration is greater than the time threshold, and the first pressure value is greater than the pressure threshold
- the requesting device may directly send the request message without selecting the answering device, which simplifies the process of Bluetooth pairing, thereby reducing the requesting device and the responding device. End of time The time to pair into Bluetooth.
- the requesting device may send the request message in a broadcast manner, in order to ensure that the responding device that is requested by the requesting device can successfully receive the pairing request. Therefore, on the basis of the implementation shown in FIG. 1, an implementation as shown in FIG. 4 can also be implemented.
- the requesting device broadcasts a request message.
- a method for Bluetooth pairing is provided by the embodiment of the present invention.
- the requesting device sends the request message by means of a broadcast.
- the requesting device sends a pairing request to the answering device after the user selects the answering device in the prior art; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention can reduce the request.
- the process of filtering the responding device is omitted, thereby avoiding the failure of the Bluetooth pairing due to the selection error. .
- the embodiment of the present invention further provides a device 20 for Bluetooth pairing. As shown in FIG. 5, the device 20 is applied to a network communication system for executing any method flow shown in FIG. 1 and FIG.
- the device 20 includes:
- the communication module 201 is configured to receive a request message sent by the requesting device, where the request message carries a first pressing duration and a first pressure value collected by the requesting device.
- the monitoring module 202 is configured to collect a second pressing duration and a second pressing duration.
- the second pressing duration is a length of time that the user presses the response device after the communication module 201 receives the request message, and the second pressure value is that the communication module 201 receives the request. After the message, the user presses the pressure value of the answering device.
- the verification module 203 is configured to determine whether the pairing condition is met according to the first pressing duration received by the communication module 201, the first pressure value, the second pressing duration collected by the monitoring module 202, and the second pressure value.
- the communication module 201 is further configured to: when the verification module 203 determines that the pairing condition is met, send a response message of the request message to the requesting device.
- the device 20 can perform data interaction with the communication module 301 of the device 30 as shown in FIG. 6 through the communication module 201.
- the verification module 203 is specifically configured to: when the difference between the second pressing duration and the first pressing duration is within the first threshold interval, and the second pressure value and the first pressure value When the difference is within the second threshold interval, it is determined that the pairing condition is satisfied.
- the communication module 201 is further configured to receive a response message sent by the response device if the pairing condition is met.
- the device for Bluetooth pairing after receiving the request message, the second compression time and the second pressure value are collected, and according to the first pressing duration, the first pressure value, and the second pressing duration And determining a pairing condition by the second pressure value; when the pairing condition is met, the answering device sends a response message to the requesting device to complete the Bluetooth pairing.
- the requesting device sends a pairing request to the answering device after the user selects the answering device in the prior art; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention can be based on the first Pressing the duration, the first pressure value, the second pressing duration, and the second pressure value to determine whether the answering device can complete the Bluetooth pairing with the requesting device that sends the request message, simplifying the process of Bluetooth pairing, and reducing the requesting device and the answering device The time between Bluetooth pairing is completed.
- the embodiment of the present invention further provides a Bluetooth pairing device 30.
- the device 30 is applied to a network communication system, and the device 30 is configured to perform any one of the modes shown in FIG. 3 and FIG. Method flow, the device 30 can perform data interaction with the communication module 201 of the device 20 as shown in FIG. 5 through the communication module 301, and the device 30 includes:
- the communication module 301 is configured to send a request message, where the request message carries a first pressing duration and a first pressure value, so that the response device collects the second pressing duration and the second pressure value when receiving the request message, and according to the A pressing duration, a first pressure value, a second pressing duration, and a second pressure value determine whether the pairing condition is satisfied.
- the device 30 further includes:
- the monitoring module 302 is configured to collect a first pressing duration and a first pressure value.
- the first pressing duration is a length of time when the user presses the requesting device when the Bluetooth pairing is performed.
- the first pressure value is Bluetooth pairing, the user presses the pressure value of the requesting device. .
- the communication module 301 is further configured to: when the first pressing duration collected by the monitoring module 202 is greater than a time threshold, and the first pressure value collected by the monitoring module 202 is greater than the pressure threshold, the request message is sent.
- the communication module 301 is specifically configured to broadcast a request message.
- the device for Bluetooth pairing provided by the embodiment of the present invention, when the first pressing time of the requesting device is greater than a time threshold, and the first pressure value is greater than the pressure threshold, transmitting the first pressing duration and the first pressure value Requesting a message, so that after the response device receives the request message, collecting a second pressing duration and a second pressure value, and determining whether the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value are based on the first pressing duration, the first pressing duration, the second pressing duration, and the second pressure value A response message is sent to the requesting device to complete the Bluetooth pairing.
- the requesting device sends a pairing request to the answering device after the user selects the answering device in the prior art; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention is reducing
- the requesting device may not select the answering device.
- the request message is directly sent to determine whether the answering device can complete the Bluetooth with the requesting device that sends the request message, thereby accurately determining the answering device.
- an embodiment of the present invention further provides a network communication system.
- the system may include: at least one processor 71, such as a CPU, at least one communication bus 72 and a memory 73; and the communication bus 72.
- the connection communication between these components is implemented;
- the memory 73 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
- a set of program codes is stored in the memory 73, and the processor 71 is configured to call the program code stored in the memory 73 for performing the following operations:
- the sent response message is received.
- the processor 71 further performs: before sending the request message:
- the first pressing duration is Bluetooth pairing
- a time length of the user pressing the requesting device where the first pressure value is a Bluetooth pairing, the user presses a pressure value of the requesting device
- the requesting device sends the request message when the first pressing duration is greater than a time threshold and the first pressure value is greater than the pressure threshold.
- the specific steps of the processor 71 to send the request message are:
- the processor 71 determines whether the specific condition of the pairing condition is met according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value. The steps are:
- the network communication system provided by the embodiment of the present invention sends a request carrying the first pressing duration and the first pressure value when the first pressing duration collected by the requesting device is greater than a time threshold and the first pressure value is greater than the pressure threshold. a message; after the response device receives the request message, collecting a second pressing duration and a second pressure value, and determining whether the pairing condition is met according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value When the pairing condition is met, the answering device sends a reply message to the requesting device to complete the Bluetooth pairing.
- the requesting device After the user selects the answering device in the prior art, the requesting device sends a pairing request to the answering device; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention detects the When the pressing duration is greater than the time threshold, and the first pressure value is greater than the pressure threshold, the requesting device may directly send the request message without selecting the answering device, and according to the first pressing duration, the first pressure value, and the second pressing duration And the second pressure value, It is determined whether the answering device can complete the Bluetooth pairing with the requesting device that sends the request message, so that the process of Bluetooth pairing can be simplified on the basis of accurately determining the answering device. Therefore, it is possible to reduce the time for completing the Bluetooth pairing between the requesting device and the answering device.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (English: Read-Only Memory, ROM for short) or a random access memory (English: Random Access Memory, RAM for short).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Disclosed are a Bluetooth pairing method, apparatus and system, which relate to the technical field of communications, and can reduce Bluetooth pairing completion time between a request device and a response device. The method of the embodiments of the present invention comprises: a request device sending a request message, wherein the request message carries a first press duration and a first pressure value; a response device receiving the request message sent by the request device; the response device collecting a second press duration and a second pressure value, wherein the second press duration is the time duration of a user pressing the response device after the request message is received, and the second pressure value is the pressure value of the user pressing the response device after the request message is received; determining whether a pairing condition is satisfied according to the first press duration, the first pressure value, the second press duration and the second pressure value; and the response device sending a response message to the request message to the request device when the pairing condition is satisfied. The present invention is applicable to a Bluetooth pairing process.
Description
本申请要求于2016年6月29日提交中国专利局,申请号为201610496354.9、发明名称为“一种蓝牙配对的方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610496354.9, entitled "A Method, Apparatus and System for Bluetooth Pairing", which is filed on June 29, 2016, the entire contents of which are incorporated by reference. In this application.
本发明涉及通信技术领域,尤其涉及一种蓝牙配对的方法、装置及系统。The present invention relates to the field of communications technologies, and in particular, to a Bluetooth pairing method, apparatus, and system.
随着人们对无线通信技术的需求越来越强烈,无线通信技术得到了快速发展,人们可以通过无线通信技术将不同的终端进行连接。在不同的无线通信技术中,蓝牙技术由于其低功耗、抗干扰、全球标准统一等优势而得到广泛应用。而在采用蓝牙技术进行通信时,需要将至少两个待建立通信连接的终端进行蓝牙配对。With the increasing demand for wireless communication technology, wireless communication technology has been rapidly developed, and people can connect different terminals through wireless communication technology. Among different wireless communication technologies, Bluetooth technology is widely used due to its advantages of low power consumption, anti-interference, and global standard unification. When using Bluetooth technology for communication, it is necessary to perform Bluetooth pairing on at least two terminals to be established with a communication connection.
目前,进行蓝牙配对的方法可以实现为:请求设备搜索可连接的设备,并在搜索到的设备中选择应答设备,之后向应答设备发送配对请求;应答设备接收到配对请求后,在该应答设备的显示屏上显示配对请求提示,此时,应答设备需要通过输入配对密码来实现请求设备与应答设备之间的蓝牙配对过程。At present, the method for performing Bluetooth pairing can be implemented as: requesting the device to search for a connectable device, and selecting a response device among the searched devices, and then sending a pairing request to the answering device; after the answering device receives the pairing request, the answering device The pairing request prompt is displayed on the display screen. At this time, the answering device needs to input the pairing password to implement the Bluetooth pairing process between the requesting device and the answering device.
然而,采用上述蓝牙配对方法,需要请求设备搜索可连接设备,并且应答设备需要输入配对密码才能实现二者之间的蓝牙配对。考虑到请求设备不仅需要与应答设备之间完成数据交互,同时用户还需要通过应答设备来完成特定信息的输入过程,这样会使蓝牙配对过程相对繁琐,从而造成蓝牙配对时间过长。同时,若请求设备搜索到的设备的名称相同或相近,用户在选择应答设备时,可能出现由于设备选择错误而需要重新配对的情况,这也会延长进行蓝牙配对
的时间。也就是说,采用上述蓝牙配对方法,请求设备与应答设备之间需要耗费较长时间才能完成蓝牙配对过程。However, with the above Bluetooth pairing method, it is required to request the device to search for a connectable device, and the answering device needs to input a pairing password to achieve Bluetooth pairing between the two. Considering that the requesting device not only needs to complete data interaction with the answering device, but also needs to complete the input process of the specific information through the answering device, the Bluetooth pairing process is relatively cumbersome, and the Bluetooth pairing time is too long. At the same time, if the name of the device that the device is requested to search for is the same or similar, when the user selects the answering device, the user may need to re-pair due to the device selection error, which also prolongs the Bluetooth pairing.
time. That is to say, with the above Bluetooth pairing method, it takes a long time between the requesting device and the answering device to complete the Bluetooth pairing process.
发明内容Summary of the invention
本发明实施例提供一种蓝牙配对的方法、装置及系统,能够减少请求设备与应答设备之间完成蓝牙配对的时间。The embodiment of the invention provides a method, device and system for Bluetooth pairing, which can reduce the time for completing Bluetooth pairing between the requesting device and the answering device.
为达到上述目的,本发明实施例采用如下技术方案:To achieve the above objective, the embodiment of the present invention adopts the following technical solutions:
第一方面,本发明实施例提供一种蓝牙配对的方法,所述方法应用于一种网络通信系统,所述网络通信系统中包括请求设备和应答设备,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for Bluetooth pairing, where the method is applied to a network communication system, where the network communication system includes a request device and a response device, and the method includes:
所述应答设备接收所述请求设备发送的请求消息,所述请求消息中携带有所述请求设备采集到的第一按压时长和第一压力值;The response device receives the request message sent by the requesting device, where the request message carries the first pressing duration and the first pressure value collected by the requesting device;
所述应答设备采集第二按压时长和第二压力值,所述第二按压时长为接收到所述请求消息后,用户按压所述应答设备的时间长度,所述第二压力值为接收到所述请求消息后,用户按压所述应答设备的压力值;The response device collects a second pressing duration and a second pressure value, where the second pressing duration is a length of time after the user receives the request message, and the second pressure value is received. After the request message, the user presses the pressure value of the answering device;
所述应答设备根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件;Determining, by the response device, whether the pairing condition is satisfied according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value;
如果满足所述配对条件,所述应答设备向所述请求设备发送所述请求消息的应答消息。If the pairing condition is met, the answering device sends a response message to the request message to the requesting device.
第二方面,本发明实施例提供一种蓝牙配对的方法,所述方法应用于一种网络通信系统,所述网络通信系统中包括请求设备和应答设备,所述方法包括:
In a second aspect, an embodiment of the present invention provides a method for Bluetooth pairing, where the method is applied to a network communication system, where the network communication system includes a request device and a response device, and the method includes:
所述请求设备发送请求消息,所述请求消息中携带有第一按压时长和第一压力值,以便于所述应答设备在接收到所述请求消息时,采集第二按压时长和第二压力值,并根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件;The requesting device sends a request message, where the request message carries a first pressing duration and a first pressure value, so that the response device collects the second pressing duration and the second pressure value when receiving the request message. And determining, according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value, whether a pairing condition is satisfied;
如果满足所述配对条件,所述请求设备接收所述应答设备发送的应答消息。The requesting device receives a response message sent by the answering device if the pairing condition is met.
第三方面,本发明实施例提供一种蓝牙配对的装置,所述装置应用于一种网络通信系统,所述网络通信系统中包括请求设备和应答设备,所述装置包括:In a third aspect, an embodiment of the present invention provides a Bluetooth pairing device, where the device is applied to a network communication system, where the network communication system includes a requesting device and a response device, and the device includes:
通信模块,用于接收所述请求设备发送的请求消息,所述请求消息中携带有所述请求设备采集到的第一按压时长和第一压力值;a communication module, configured to receive a request message sent by the requesting device, where the request message carries a first pressing duration and a first pressure value collected by the requesting device;
监测模块,用于采集第二按压时长和第二压力值,所述第二按压时长为所述通信模块接收到所述请求消息后,用户按压所述应答设备的时间长度,所述第二压力值为所述通信模块接收到所述请求消息后,用户按压所述应答设备的压力值;a monitoring module, configured to collect a second pressing duration and a second pressure value, where the second pressing duration is a length of time that the user presses the response device after the communication module receives the request message, and the second pressure The value is a pressure value of the response device after the communication module receives the request message;
校验模块,用于根据所述通信模块接收到的所述第一按压时长、所述第一压力值、所述监测模块采集的所述第二按压时长和所述第二压力值,确定是否满足配对条件;a verification module, configured to determine, according to the first pressing duration received by the communication module, the first pressure value, the second pressing duration collected by the monitoring module, and the second pressure value Meet the pairing conditions;
所述通信模块,还用于当所述校验模块确定满足所述配对条件时,向所述请求设备发送所述请求消息的应答消息。The communication module is further configured to: when the verification module determines that the pairing condition is met, send a response message of the request message to the requesting device.
第四方面,本发明实施例提供一种蓝牙配对的装置,所述装置应用于一种网络通信系统,所述网络通信系统中包括请求设备和应答设备,所述装置包括:
In a fourth aspect, an embodiment of the present invention provides a Bluetooth pairing device, where the device is applied to a network communication system, where the network communication system includes a requesting device and a response device, and the device includes:
通信模块,用于发送请求消息,所述请求消息中携带有第一按压时长和第一压力值,以便于所述应答设备在接收到所述请求消息时,采集第二按压时长和第二压力值,并根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件;a communication module, configured to send a request message, where the request message carries a first pressing duration and a first pressure value, so that the response device collects the second pressing duration and the second pressure when receiving the request message And determining, according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value, whether a pairing condition is satisfied;
所述通信模块,还用于如果满足所述配对条件,接收所述应答设备发送的应答消息。The communication module is further configured to receive a response message sent by the answering device if the pairing condition is met.
第五方面,本发明实施例提供一种网络通信系统,所述网络通信系统中包括处理器和存储器,其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,用于执行以下操作:In a fifth aspect, an embodiment of the present invention provides a network communication system, where the network communication system includes a processor and a memory, where the memory stores a set of program codes, and the processor is used to invoke the memory. Stored program code to do the following:
发送请求消息,所述请求消息中携带有第一按压时长和第一压力值;Sending a request message, where the request message carries a first pressing duration and a first pressure value;
接收所发送的请求消息;Receiving the sent request message;
采集第二按压时长和第二压力值,所述第二按压时长为接收到所述请求消息后,用户按压所述应答设备的时间长度,所述第二压力值为接收到所述请求消息后,用户按压所述应答设备的压力值;Collecting a second pressing duration and a second pressing duration, where the second pressing duration is a length of time that the user presses the response device after receiving the request message, and the second pressure value is after receiving the request message And the user presses the pressure value of the answering device;
根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件;Determining whether the pairing condition is satisfied according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value;
如果满足所述配对条件,发送所述请求消息的应答消息;Sending a response message of the request message if the pairing condition is met;
如果满足所述配对条件,接收所发送的应答消息。If the pairing condition is met, the sent response message is received.
本发明实施例提供的一种蓝牙配对的方法、装置及系统,当请求设备所采集的第一按压时长大于时间阈值,且第一压力值大于压力阈值时,发送携带有
第一按压时长和第一压力值的请求消息;当应答设备接收到该请求消息后,采集第二按压时长和第二压力值,并根据第一按压时长、第一压力值、第二按压时长和第二压力值,确定是否满足配对条件;当满足配对条件时,应答设备向请求设备发送应答消息来完成蓝牙配对。相比较于现有技术中的用户选择应答设备后,请求设备才向应答设备发送配对请求;应答设备收到该请求消息后,还需要用户在应答设备中输入配对密码,本发明在检测到第一按压时长大于时间阈值,且第一压力值大于压力阈值时,请求设备可以在不选择应答设备的情况下,直接发送请求消息,且根据第一按压时长、第一压力值、第二按压时长和第二压力值,确定应答设备是否能够与发送请求消息的请求设备之间完成蓝牙配对,从而能够在准确确定应答设备的基础上,简化蓝牙配对的过程。因此,能够减少请求设备与应答设备之间完成蓝牙配对的时间。The method, device, and system for Bluetooth pairing provided by the embodiment of the present invention, when the first pressing time of the requesting device is greater than a time threshold, and the first pressure value is greater than the pressure threshold, the sending is carried
a request message of the first pressing duration and the first pressure value; after the response device receives the request message, collecting the second pressing duration and the second pressure value, and according to the first pressing duration, the first pressure value, and the second pressing duration And determining a pairing condition by the second pressure value; when the pairing condition is met, the answering device sends a response message to the requesting device to complete the Bluetooth pairing. After the user selects the answering device in the prior art, the requesting device sends a pairing request to the answering device; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention detects the When the pressing duration is greater than the time threshold, and the first pressure value is greater than the pressure threshold, the requesting device may directly send the request message without selecting the answering device, and according to the first pressing duration, the first pressure value, and the second pressing duration And the second pressure value, determining whether the answering device can complete the Bluetooth pairing with the requesting device that sends the request message, so that the process of the Bluetooth pairing can be simplified on the basis of accurately determining the answering device. Therefore, it is possible to reduce the time for completing the Bluetooth pairing between the requesting device and the answering device.
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图1为本发明实施例提供的一种蓝牙配对的方法的信息交互图;FIG. 1 is an information interaction diagram of a method for Bluetooth pairing according to an embodiment of the present invention;
图2为本发明实施例提供的另一种蓝牙配对的方法的信息交互图;2 is an information interaction diagram of another method for Bluetooth pairing according to an embodiment of the present invention;
图3为本发明实施例提供的另一种蓝牙配对的方法的信息交互图;FIG. 3 is an information interaction diagram of another method for Bluetooth pairing according to an embodiment of the present invention;
图4为本发明实施例提供的另一种蓝牙配对的方法的信息交互图;4 is an information interaction diagram of another method for Bluetooth pairing according to an embodiment of the present invention;
图5为本发明实施例提供的一种蓝牙配对的装置的结构示意图;
FIG. 5 is a schematic structural diagram of an apparatus for pairing Bluetooth according to an embodiment of the present disclosure;
图6为本发明实施例提供的另一种蓝牙配对的装置的结构示意图;FIG. 6 is a schematic structural diagram of another apparatus for Bluetooth pairing according to an embodiment of the present disclosure;
图7为本发明实施例提供的一种网络通信系统的结构示意图。FIG. 7 is a schematic structural diagram of a network communication system according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供一种蓝牙配对的方法,该方法应用于一种网络通信系统,该网络通信系统中包括请求设备和应答设备。其中,请求设备与应答设备具有蓝牙配对功能,且二者都具有能够检测按压力度的功能。在本发明实施例中,由请求设备作为蓝牙配对过程的发起端,向应答设备发起配对请求,并通过请求设备与应答设备之间的数据交互过程来完成请求设备与应答设备之间的蓝牙配对过程。Embodiments of the present invention provide a method for Bluetooth pairing, which is applied to a network communication system, where the network communication system includes a request device and a response device. The requesting device and the answering device have a Bluetooth pairing function, and both have a function capable of detecting the pressing force. In the embodiment of the present invention, the requesting device acts as an initiator of the Bluetooth pairing process, initiates a pairing request to the answering device, and completes the Bluetooth pairing between the requesting device and the responding device by requesting a data interaction process between the device and the responding device. process.
本发明实施例提供一种蓝牙配对的方法,如图1所示,该方法由请求设备与应答设备共同来执行,该方法流程包括:An embodiment of the present invention provides a method for Bluetooth pairing. As shown in FIG. 1 , the method is performed by a requesting device and a response device. The method includes:
101、请求设备发送请求消息。101. The requesting device sends a request message.
其中,请求消息中携带有第一按压时长和第一压力值。第一按压时长为蓝牙配对时,用户按压请求设备的时间长度,第一压力值为蓝牙配对时,用户按压请求设备的压力值。The request message carries a first pressing duration and a first pressure value. The first pressing duration is the length of time when the user presses the requesting device when the Bluetooth pairing is performed. When the first pressure value is Bluetooth pairing, the user presses the pressure value of the requesting device.
当请求设备需要进行蓝牙配对时,需要发送请求消息。在本发明实施例中,不同的请求设备发送的请求消息中携带的按压时长和压力值不同。When the requesting device needs to perform Bluetooth pairing, a request message needs to be sent. In the embodiment of the present invention, the pressing duration and the pressure value carried in the request message sent by different requesting devices are different.
102、应答设备接收请求设备发送的请求消息。
102. The response device receives the request message sent by the requesting device.
103、应答设备采集第二按压时长和第二压力值。103. The response device collects a second pressing duration and a second pressure value.
其中,第二按压时长为接收到请求消息后,用户按压应答设备的时间长度,第二压力值为接收到请求消息后,用户按压应答设备的压力值。The second pressing duration is the length of time that the user presses the response device after receiving the request message, and the second pressure value is the pressure value of the response device after the user receives the request message.
由于蓝牙技术是一种短距离的无线通信技术,因此,采用蓝牙技术进行通信时具有距离上的局限性,也就意味着,进行蓝牙配对的两个设备之间的距离相对较近。在这种情况下,使用应答设备的用户知道使用请求设备的用户发送请求消息的时间,不需要在应答设备提示用户有请求消息送达。因此,可以在收到请求消息时,通过按压应答设备的显示屏,来做好蓝牙配对的准备,之后,应答设备可以根据所采集的按压时长和压力值是否满足配对条件,来确定应答设备是否能够与请求设备进行蓝牙配对。Since Bluetooth technology is a short-range wireless communication technology, the use of Bluetooth technology for communication has limitations in distance, which means that the distance between two devices for Bluetooth pairing is relatively close. In this case, the user using the answering device knows the time at which the user using the requesting device sends the request message, and does not need to prompt the user to have the request message delivered at the answering device. Therefore, when the request message is received, the Bluetooth pairing can be prepared by pressing the display screen of the answering device. After that, the answering device can determine whether the answering device is based on whether the collected pressing duration and the pressure value satisfy the pairing condition. Ability to Bluetooth pair with the requesting device.
当接收到请求消息后,采集用户开始按压应答设备的显示屏的时刻以及用户终止按压显示屏的时刻,并将两者之间的时间长度确定为第二按压时长。同时,在用户按压显示屏后,确定用户的第二压力值。After receiving the request message, the time at which the user starts pressing the display screen of the answering device and the time at which the user terminates pressing the display screen are collected, and the length of time between the two is determined as the second pressing duration. At the same time, after the user presses the display screen, the second pressure value of the user is determined.
104、应答设备根据第一按压时长、第一压力值、第二按压时长和第二压力值,确定是否满足配对条件。其中,当满足配对条件时,执行步骤105和步骤107;否则,执行步骤106。104. The response device determines whether the pairing condition is met according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value. Wherein, when the pairing condition is satisfied, step 105 and step 107 are performed; otherwise, step 106 is performed.
当应答设备同时收到多个请求消息时,会出现应答设备不知道应该应答哪个请求消息。在本发明实施例中,由于不同的请求设备所发送的请求消息中携带的第一按压时长和第一压力值不同,因此,可以根据第一按压时长、第二按压时长、第一压力值和第二压力值,来确定应答设备是否能够与请求设备进行蓝牙配对,以及应该与哪个请求设备进行配对。当第一按压时长、第一压力值、第二按压时长和第二压力值满足配对条件时,说明应答设备能够与携带有第一
按压时长和第一压力值的请求消息对应的请求设备进行蓝牙配对,即可以执行步骤105和步骤107进行蓝牙配对。当第一按压时长、第一压力值、第二按压时长和第二压力值不满足配对条件时,说明应答设备不能与携带第一按压时长和第一压力值的请求消息对应的请求设备进行蓝牙配对,则可以执行步骤106不进行蓝牙配对。When the answering device receives multiple request messages at the same time, the answering device does not know which request message should be answered. In the embodiment of the present invention, the first pressing duration and the first pressure value carried in the request message sent by the different requesting devices are different, and therefore, according to the first pressing duration, the second pressing duration, the first pressure value, and The second pressure value determines whether the answering device is capable of Bluetooth pairing with the requesting device and which requesting device should be paired with. When the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value satisfy the pairing condition, the answering device can be carried with the first
The requesting device corresponding to the request message corresponding to the first pressure value is Bluetooth paired, that is, step 105 and step 107 can be performed for Bluetooth pairing. When the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value do not satisfy the pairing condition, the answering device cannot perform Bluetooth with the requesting device corresponding to the request message carrying the first pressing duration and the first pressure value. Pairing, step 106 can be performed without Bluetooth pairing.
105、应答设备向请求设备发送请求消息的应答消息。105. The response device sends a response message of the request message to the requesting device.
当应答设备确定第一按压时长、第一压力值、第二按压时长和第二压力值满足配对条件时,应答设备向请求设备发送应答消息,以通知请求设备,应答设备自身与请求设备之间已经成功完成蓝牙配对。When the answering device determines that the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value satisfy the pairing condition, the answering device sends a response message to the requesting device to notify the requesting device, between the answering device itself and the requesting device Bluetooth pairing has been successfully completed.
106、应答设备不向请求设备发送请求消息的应答消息。106. The answering device does not send a response message of the request message to the requesting device.
当应答设备确定第一按压时长、第一压力值、第二按压时长和第二压力值不满足配对条件时,应答设备不向请求设备发送应答消息。在本发明实施例中,从该应答设备收到请求消息至该应答设备确定不向请求设备发送应答消息的整个过程中,使用该应答设备的用户不会收到任何的提示,不会妨碍该用户的正常使用。When the answering device determines that the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value do not satisfy the pairing condition, the answering device does not send a response message to the requesting device. In the embodiment of the present invention, the user who uses the answering device does not receive any prompt, and does not hinder the entire process from when the response device receives the request message to when the answering device determines not to send the response message to the requesting device. Normal use of the user.
107、请求设备接收应答消息。107. The requesting device receives the response message.
当请求设备接收到应答设备发送的应答消息时,表明与该应答设备的配对成功,已经完成蓝牙配对过程。When the requesting device receives the response message sent by the answering device, indicating that the pairing with the answering device is successful, the Bluetooth pairing process has been completed.
本发明实施例提供的一种蓝牙配对的方法,当请求设备所采集的第一按压时长大于时间阈值,且第一压力值大于压力阈值时,发送携带有第一按压时长和第一压力值的请求消息;当应答设备接收到该请求消息后,采集第二按压时长和第二压力值,并根据第一按压时长、第一压力值、第二按压时长和第二压
力值,确定是否满足配对条件;当满足配对条件时,应答设备向请求设备发送应答消息来完成蓝牙配对。相比较于现有技术中的用户选择应答设备后,请求设备才向应答设备发送配对请求;应答设备收到该请求消息后,还需要用户在应答设备中输入配对密码,本发明在检测到第一按压时长大于时间阈值,且第一压力值大于压力阈值时,请求设备可以在不选择应答设备的情况下,直接发送请求消息,且根据第一按压时长、第一压力值、第二按压时长和第二压力值,确定应答设备是否能够与发送请求消息的请求设备之间完成蓝牙配对,从而能够在准确确定应答设备的基础上,简化蓝牙配对的过程。因此,能够减少请求设备与应答设备之间完成蓝牙配对的时间。The method for the Bluetooth pairing is provided by the embodiment of the present invention. When the first pressing duration collected by the requesting device is greater than a time threshold, and the first pressure value is greater than the pressure threshold, the sending carries the first pressing duration and the first pressure value. a request message; after the response device receives the request message, collecting a second pressing duration and a second pressure value, and according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure
The force value determines whether the pairing condition is satisfied; when the pairing condition is met, the answering device sends a response message to the requesting device to complete the Bluetooth pairing. After the user selects the answering device in the prior art, the requesting device sends a pairing request to the answering device; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention detects the When the pressing duration is greater than the time threshold, and the first pressure value is greater than the pressure threshold, the requesting device may directly send the request message without selecting the answering device, and according to the first pressing duration, the first pressure value, and the second pressing duration And the second pressure value, determining whether the answering device can complete the Bluetooth pairing with the requesting device that sends the request message, so that the process of the Bluetooth pairing can be simplified on the basis of accurately determining the answering device. Therefore, it is possible to reduce the time for completing the Bluetooth pairing between the requesting device and the answering device.
为了筛选出能够进行蓝牙配对的应答设备,在本发明实施例的一个实现方式中,可以比较应答设备所采集数据与请求消息中携带的数据的大小关系。因此,在如图1所示的实现方式的基础上,还可以实现为如图2所示的实现方式。其中,步骤104根据第一按压时长、第一压力值、第二按压时长和第二压力值,确定是否满足配对条件,可以具体实现为步骤1041:In an implementation manner of the embodiment of the present invention, the size relationship between the data collected by the response device and the data carried in the request message may be compared. Therefore, on the basis of the implementation shown in FIG. 1, an implementation as shown in FIG. 2 can also be implemented. The step 104 determines whether the pairing condition is met according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value, and may be specifically implemented as step 1041:
1041、当第二按压时长与第一按压时长的差值在第一阈值区间内,且第二压力值与第一压力值的差值在第二阈值区间内时,确定满足配对条件。1041: When the difference between the second pressing duration and the first pressing duration is within the first threshold interval, and the difference between the second pressure value and the first pressure value is within the second threshold interval, determining that the pairing condition is satisfied.
其中,第一阈值区间和第二阈值区间用来确定应答设备是否为请求设备发起蓝牙配对请求所期望的配对设备,因此,上述第一、第二阈值区间可以根据请求设备与应答设备的显示屏的性能进行预先设置。The first threshold interval and the second threshold interval are used to determine whether the answering device is the pairing device that is requested by the requesting device to initiate the Bluetooth pairing request. Therefore, the first threshold and the second threshold interval may be according to the display screen of the requesting device and the answering device. The performance is pre-set.
由于先对第二按压时长进行判断,还是先对第二压力值进行判断,对确定应答设备是否能够与请求设备进行蓝牙配对的结果不会造成影响,因此,对于按压时长的判别过程与对于压力值的判别过程的执行顺序不做限定。同理,第
一按压时长与第一压力值在判别过程中也无执行顺序上的限定。Since the second pressing time is first judged, or the second pressure value is first judged, the result of determining whether the answering device can perform Bluetooth pairing with the requesting device is not affected, and therefore, the discriminating process and the pressure for the pressing duration are The order of execution of the discriminating process of values is not limited. Similarly, the first
The duration of one press and the first pressure value are also not defined in the order of execution during the discriminating process.
需要说明的是,在本发明实施例中,还可以当第二按压时长与第一按压时长的差值在第一阈值区间内时,确定满足配对条件,或者,当第二压力值与第一压力值的差值在第二阈值区间内时,确定满足配对条件。It should be noted that, in the embodiment of the present invention, when the difference between the second pressing duration and the first pressing duration is within the first threshold interval, it is determined that the pairing condition is satisfied, or when the second pressure value is the first When the difference of the pressure values is within the second threshold interval, it is determined that the pairing condition is satisfied.
本发明实施例提供的一种蓝牙配对的方法,当应答设备所采集的第二按压时长和第二压力值,满足第二按压时长与第一按压时长的差值在第一阈值区间内,且第二压力值与第一压力值的差值在第二阈值区间内时,确定该应答设备可以与请求设备进行蓝牙配对。相比较于现有技术中的用户选择应答设备后,请求设备才向应答设备发送配对请求;应答设备收到该请求消息后,还需要用户在应答设备中输入配对密码,本发明在减少请求设备与应答设备之间完成蓝牙配对的时间的基础上,可以根据第二按压时长与第一按压时长,以及第二压力值与第一压力值的大小关系,筛选应答设备,从而能够准确确定可以与请求设备进行蓝牙配对的应答设备。The method for the Bluetooth pairing provided by the embodiment of the present invention, when the second pressing duration and the second pressure value collected by the answering device meet the difference between the second pressing duration and the first pressing duration in the first threshold interval, and When the difference between the second pressure value and the first pressure value is within the second threshold interval, it is determined that the answering device can perform Bluetooth pairing with the requesting device. The requesting device sends a pairing request to the answering device after the user selects the answering device in the prior art; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention reduces the requesting device. On the basis of the time for completing the Bluetooth pairing with the answering device, the response device can be screened according to the relationship between the second pressing duration and the first pressing duration, and the magnitude relationship between the second pressure value and the first pressure value, thereby being able to accurately determine the A answering device that requests the device to perform Bluetooth pairing.
为了正确识别蓝牙配,在本发明实施例的一个实现方式中,可以根据用户按压请求设备的时间长度和压力值,区分蓝牙配对操作与其他正常操作。因此,在如图1所示的实现方式的基础上,还可以实现为如图3所示的实现方式。其中,在步骤101请求设备发送请求消息之前,可以执行步骤108和步骤109:In an implementation manner of the embodiment of the present invention, the Bluetooth pairing operation and other normal operations may be distinguished according to the time length and pressure value of the user pressing the requesting device. Therefore, on the basis of the implementation shown in FIG. 1, an implementation as shown in FIG. 3 can also be implemented. Wherein, before the step 101 requests the device to send the request message, step 108 and step 109 may be performed:
108、请求设备采集第一按压时长和第一压力值。108. The requesting device collects a first pressing duration and a first pressure value.
在本发明实施例中,可以在请求设备进入蓝牙配对模式后,检测用户是否按压显示屏。当检测到用户按压显示屏后,采集用户开始按压显示屏的时刻以及用户终止按压显示屏的时刻,并将两者之间的时间长度确定为第一按压时长。同时,在用户按压显示屏后,请求设备确定用户的第一压力值。其中,第一压
力值可以为用户终止按压显示屏的时刻所采集的压力值、用户按压显示屏过程中所采集的压力值中的最大压力值,以及用户按压显示屏过程中所采集的压力值的平均值中的任意一个。在本发明实施例中,对于第一压力值以及第二压力值的采集时机不做具体限定。In the embodiment of the present invention, after the requesting device enters the Bluetooth pairing mode, it is detected whether the user presses the display screen. When it is detected that the user presses the display screen, the time at which the user starts pressing the display screen and the time when the user terminates pressing the display screen are collected, and the length of time between the two is determined as the first pressing duration. At the same time, after the user presses the display screen, the requesting device determines the first pressure value of the user. Among them, the first pressure
The force value may be the pressure value collected by the user at the time of pressing the display screen, the maximum pressure value of the pressure value collected by the user during the pressing of the display screen, and the average value of the pressure values collected during the user pressing the display screen. Any one of them. In the embodiment of the present invention, the timing of collecting the first pressure value and the second pressure value is not specifically limited.
109、当第一按压时长大于时间阈值,且第一压力值大于压力阈值,请求设备发送请求消息。109. When the first pressing duration is greater than a time threshold, and the first pressure value is greater than the pressure threshold, the requesting device sends a request message.
考虑到用户可以在请求设备上通过触摸、按压等方式执行其他操作,比如:打开某一应用软件,或是执行某一特殊功能,因此,时间阈值和压力阈值可以作为判别请求设备是否需要进入蓝牙配对模式的依据,也就意味着,在用户不想使用蓝牙技术进行通信时,则因采集到的第一按压时长与第一压力值中存在小于设置的阈值的参数,而无法发送请求消息。这样就可以避免在用户使用请求设备时,因其他正常操作而造成的蓝牙配对误操作。其中,时间阈值和压力阈值的取值均为一个数值,可以由技术人员根据历史经验值或请求设备的显示屏的性能,预先设置并存储在该请求设备中,也可以由用户在请求设备中根据自身需求进行自定义。Considering that the user can perform other operations on the requesting device by touching, pressing, etc., such as opening an application software or performing a special function, the time threshold and the pressure threshold can be used as a discriminating whether the requesting device needs to enter the Bluetooth. The basis of the pairing mode means that when the user does not want to communicate using the Bluetooth technology, the request message cannot be sent because there is a parameter that is smaller than the set threshold in the first pressing duration and the first pressure value. This can avoid Bluetooth pairing misoperation caused by other normal operations when the user uses the requesting device. The value of the time threshold and the pressure threshold are both a value, which may be preset and stored in the request device by the technician according to the historical experience value or the performance of the display screen of the requesting device, or may be in the requesting device by the user. Customize according to your needs.
本发明实施例提供的一种蓝牙配对的方法,当请求设备所采集的第一按压时长大于时间阈值,且第一压力值大于压力阈值时,发送携带有第一按压时长和第一压力值的请求消息。相比较于现有技术中的用户选择应答设备后,请求设备才向应答设备发送配对请求;应答设备收到该请求消息后,还需要用户在应答设备中输入配对密码,本发明在检测到第一按压时长大于时间阈值,且第一压力值大于压力阈值时,请求设备可以在不选择应答设备的情况下,直接发送请求消息,简化了蓝牙配对的过程,从而减少了请求设备与应答设备之间完
成蓝牙配对的时间。The method for the Bluetooth pairing is provided by the embodiment of the present invention. When the first pressing duration collected by the requesting device is greater than a time threshold, and the first pressure value is greater than the pressure threshold, the sending carries the first pressing duration and the first pressure value. Request message. After the user selects the answering device in the prior art, the requesting device sends a pairing request to the answering device; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention detects the When the pressing duration is greater than the time threshold, and the first pressure value is greater than the pressure threshold, the requesting device may directly send the request message without selecting the answering device, which simplifies the process of Bluetooth pairing, thereby reducing the requesting device and the responding device. End of time
The time to pair into Bluetooth.
为了确保请求设备期望的应答设备能够成功接收到配对请求,在本发明实施例的一个实现方式中,请求设备可以采用广播的方式发送请求消息。因此,在如图1所示的实现方式的基础上,还可以实现为如图4所示的实现方式。其中,步骤101请求设备发送请求消息,可以具体实现为步骤1011:In an implementation manner of the embodiment of the present invention, the requesting device may send the request message in a broadcast manner, in order to ensure that the responding device that is requested by the requesting device can successfully receive the pairing request. Therefore, on the basis of the implementation shown in FIG. 1, an implementation as shown in FIG. 4 can also be implemented. Step 101: The requesting device sends a request message, which may be specifically implemented as step 1011:
1011、请求设备广播请求消息。1011. The requesting device broadcasts a request message.
通过将请求消息广播的方式,可以使在蓝牙通信允许的范围内的所有设备都能够接收该请求消息。采用本发明所提供的技术方案,在蓝牙通信范围内存在多个设备名称相同或相近时,避免了用户筛选应答设备的过程,也就减少了在筛选过程中出现选择错误的概率。By broadcasting the request message, all devices within the range allowed by the Bluetooth communication can be made to receive the request message. With the technical solution provided by the present invention, when multiple device names are the same or similar in the Bluetooth communication range, the process of the user filtering the response device is avoided, and the probability of selection errors in the screening process is reduced.
本发明实施例提供的一种蓝牙配对的方法,当请求设备所采集的第一按压时长大于时间阈值,且第一压力值大于压力阈值时,请求设备通过广播的方式发送请求消息。相比较于现有技术中的用户选择应答设备后,请求设备才向应答设备发送配对请求;应答设备收到该请求消息后,还需要用户在应答设备中输入配对密码,本发明能够在减少请求设备与应答设备之间完成蓝牙配对的时间的基础上,当蓝牙通信范围内存在多个设备名称相同或相近时,省略用户筛选应答设备的过程,从而避免由于选择错误而造成蓝牙配对失败的情况。A method for Bluetooth pairing is provided by the embodiment of the present invention. When the first pressing duration collected by the requesting device is greater than a time threshold, and the first pressure value is greater than the pressure threshold, the requesting device sends the request message by means of a broadcast. The requesting device sends a pairing request to the answering device after the user selects the answering device in the prior art; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention can reduce the request. On the basis of the time for the Bluetooth pairing between the device and the answering device, when there are multiple device names in the Bluetooth communication range, the process of filtering the responding device is omitted, thereby avoiding the failure of the Bluetooth pairing due to the selection error. .
本发明实施例,还提供一种蓝牙配对的装置20,如图5所示,该装置20应用于一种网络通信系统,用于执行如图1和图2所示的任意一种方法流程,该装置20包括:The embodiment of the present invention further provides a device 20 for Bluetooth pairing. As shown in FIG. 5, the device 20 is applied to a network communication system for executing any method flow shown in FIG. 1 and FIG. The device 20 includes:
通信模块201,用于接收请求设备发送的请求消息,请求消息中携带有请求设备采集到的第一按压时长和第一压力值。
The communication module 201 is configured to receive a request message sent by the requesting device, where the request message carries a first pressing duration and a first pressure value collected by the requesting device.
监测模块202,用于采集第二按压时长和第二压力值,第二按压时长为通信模块201接收到请求消息后,用户按压应答设备的时间长度,第二压力值为通信模块201接收到请求消息后,用户按压应答设备的压力值。The monitoring module 202 is configured to collect a second pressing duration and a second pressing duration. The second pressing duration is a length of time that the user presses the response device after the communication module 201 receives the request message, and the second pressure value is that the communication module 201 receives the request. After the message, the user presses the pressure value of the answering device.
校验模块203,用于根据通信模块201接收到的第一按压时长、第一压力值、监测模块202采集的第二按压时长和第二压力值,确定是否满足配对条件。The verification module 203 is configured to determine whether the pairing condition is met according to the first pressing duration received by the communication module 201, the first pressure value, the second pressing duration collected by the monitoring module 202, and the second pressure value.
通信模块201,还用于当校验模块203确定满足配对条件时,向请求设备发送请求消息的应答消息。The communication module 201 is further configured to: when the verification module 203 determines that the pairing condition is met, send a response message of the request message to the requesting device.
需要说明的是,装置20可以通过通信模块201与如图6所示的装置30的通信模块301进行数据交互。It should be noted that the device 20 can perform data interaction with the communication module 301 of the device 30 as shown in FIG. 6 through the communication module 201.
在本发明实施例的一个实现方式中,校验模块203,具体用于当第二按压时长与第一按压时长的差值在第一阈值区间内,且第二压力值与第一压力值的差值在第二阈值区间内时,确定满足配对条件。In an implementation manner of the embodiment of the present invention, the verification module 203 is specifically configured to: when the difference between the second pressing duration and the first pressing duration is within the first threshold interval, and the second pressure value and the first pressure value When the difference is within the second threshold interval, it is determined that the pairing condition is satisfied.
通信模块201,还用于如果满足配对条件,接收应答设备发送的应答消息。The communication module 201 is further configured to receive a response message sent by the response device if the pairing condition is met.
本发明实施例提供的一种蓝牙配对的装置,当应答设备接收到该请求消息后,采集第二按压时长和第二压力值,并根据第一按压时长、第一压力值、第二按压时长和第二压力值,确定是否满足配对条件;当满足配对条件时,应答设备向请求设备发送应答消息来完成蓝牙配对。相比较于现有技术中的用户选择应答设备后,请求设备才向应答设备发送配对请求;应答设备收到该请求消息后,还需要用户在应答设备中输入配对密码,本发明可以根据第一按压时长、第一压力值、第二按压时长和第二压力值,确定应答设备是否能够与发送请求消息的请求设备之间完成蓝牙配对,简化了蓝牙配对的过程,减少了请求设备与应答设备之间完成蓝牙配对的时间。
The device for Bluetooth pairing according to the embodiment of the present invention, after receiving the request message, the second compression time and the second pressure value are collected, and according to the first pressing duration, the first pressure value, and the second pressing duration And determining a pairing condition by the second pressure value; when the pairing condition is met, the answering device sends a response message to the requesting device to complete the Bluetooth pairing. The requesting device sends a pairing request to the answering device after the user selects the answering device in the prior art; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention can be based on the first Pressing the duration, the first pressure value, the second pressing duration, and the second pressure value to determine whether the answering device can complete the Bluetooth pairing with the requesting device that sends the request message, simplifying the process of Bluetooth pairing, and reducing the requesting device and the answering device The time between Bluetooth pairing is completed.
本发明实施例,还提供一种蓝牙配对的装置30,如图6所示,该装置30应用于一种网络通信系统,该装置30用于执行如图3和图4所示的任意一种方法流程,装置30可以通过通信模块301与如图5所示的装置20的通信模块201进行数据交互,该装置30包括:The embodiment of the present invention further provides a Bluetooth pairing device 30. As shown in FIG. 6, the device 30 is applied to a network communication system, and the device 30 is configured to perform any one of the modes shown in FIG. 3 and FIG. Method flow, the device 30 can perform data interaction with the communication module 201 of the device 20 as shown in FIG. 5 through the communication module 301, and the device 30 includes:
通信模块301,用于发送请求消息,请求消息中携带有第一按压时长和第一压力值,以便于应答设备在接收到请求消息时,采集第二按压时长和第二压力值,并根据第一按压时长、第一压力值、第二按压时长和第二压力值,确定是否满足配对条件。The communication module 301 is configured to send a request message, where the request message carries a first pressing duration and a first pressure value, so that the response device collects the second pressing duration and the second pressure value when receiving the request message, and according to the A pressing duration, a first pressure value, a second pressing duration, and a second pressure value determine whether the pairing condition is satisfied.
在本发明实施例的一个实现方式中,装置30还包括:In an implementation manner of the embodiment of the present invention, the device 30 further includes:
监测模块302,用于采集第一按压时长和第一压力值,第一按压时长为蓝牙配对时,用户按压请求设备的时间长度,第一压力值为蓝牙配对时,用户按压请求设备的压力值。The monitoring module 302 is configured to collect a first pressing duration and a first pressure value. The first pressing duration is a length of time when the user presses the requesting device when the Bluetooth pairing is performed. When the first pressure value is Bluetooth pairing, the user presses the pressure value of the requesting device. .
通信模块301,还用于当监测模块202采集的第一按压时长大于时间阈值,且监测模块202采集的第一压力值大于压力阈值时,发送请求消息。The communication module 301 is further configured to: when the first pressing duration collected by the monitoring module 202 is greater than a time threshold, and the first pressure value collected by the monitoring module 202 is greater than the pressure threshold, the request message is sent.
其中,通信模块301,具体用于广播请求消息。The communication module 301 is specifically configured to broadcast a request message.
本发明实施例提供的一种蓝牙配对的装置,当请求设备所采集的第一按压时长大于时间阈值,且第一压力值大于压力阈值时,发送携带有第一按压时长和第一压力值的请求消息,以便于当应答设备接收到该请求消息后,采集第二按压时长和第二压力值,并根据第一按压时长、第一压力值、第二按压时长和第二压力值,确定是否向请求设备发送应答消息来完成蓝牙配对。相比较于现有技术中的用户选择应答设备后,请求设备才向应答设备发送配对请求;应答设备收到该请求消息后,还需要用户在应答设备中输入配对密码,本发明在减
少请求设备与应答设备之间完成蓝牙配对的时间的基础上,能够在检测到第一按压时长大于时间阈值,且第一压力值大于压力阈值时,请求设备可以在不选择应答设备的情况下,直接发送请求消息,确定应答设备是否能够与发送请求消息的请求设备之间完成蓝牙,从而准确确定应答设备。The device for Bluetooth pairing provided by the embodiment of the present invention, when the first pressing time of the requesting device is greater than a time threshold, and the first pressure value is greater than the pressure threshold, transmitting the first pressing duration and the first pressure value Requesting a message, so that after the response device receives the request message, collecting a second pressing duration and a second pressure value, and determining whether the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value are based on the first pressing duration, the first pressing duration, the second pressing duration, and the second pressure value A response message is sent to the requesting device to complete the Bluetooth pairing. The requesting device sends a pairing request to the answering device after the user selects the answering device in the prior art; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention is reducing
On the basis of the time when the Bluetooth pairing is completed between the requesting device and the answering device, when the first pressing time is greater than the time threshold, and the first pressure value is greater than the pressure threshold, the requesting device may not select the answering device. The request message is directly sent to determine whether the answering device can complete the Bluetooth with the requesting device that sends the request message, thereby accurately determining the answering device.
请参见图7,本发明实施例还提供一种网络通信系统,如图7所示,该系统可以包括:至少一个处理器71,例如CPU,至少一个通信总线72以及存储器73;通信总线72用于实现这些组件之间的连接通信;存储器73可以是高速RAM存储器,也可以是非易失性存储器(non-volatilememory),例如至少一个磁盘存储器。存储器73中存储一组程序代码,且处理器71用于调用存储器73中存储的程序代码,用于执行以下操作:Referring to FIG. 7, an embodiment of the present invention further provides a network communication system. As shown in FIG. 7, the system may include: at least one processor 71, such as a CPU, at least one communication bus 72 and a memory 73; and the communication bus 72. The connection communication between these components is implemented; the memory 73 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. A set of program codes is stored in the memory 73, and the processor 71 is configured to call the program code stored in the memory 73 for performing the following operations:
发送请求消息,所述请求消息中携带有第一按压时长和第一压力值;Sending a request message, where the request message carries a first pressing duration and a first pressure value;
接收所发送的请求消息;Receiving the sent request message;
采集第二按压时长和第二压力值,所述第二按压时长为接收到所述请求消息后,用户按压所述应答设备的时间长度,所述第二压力值为接收到所述请求消息后,用户按压所述应答设备的压力值;Collecting a second pressing duration and a second pressing duration, where the second pressing duration is a length of time that the user presses the response device after receiving the request message, and the second pressure value is after receiving the request message And the user presses the pressure value of the answering device;
根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件;Determining whether the pairing condition is satisfied according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value;
如果满足所述配对条件,发送所述请求消息的应答消息;Sending a response message of the request message if the pairing condition is met;
如果满足所述配对条件,接收所发送的应答消息。If the pairing condition is met, the sent response message is received.
在上述技术方案中,优选地,所述处理器71在发送请求消息之前,还执行:In the above technical solution, preferably, the processor 71 further performs: before sending the request message:
采集所述第一按压时长和所述第一压力值,所述第一按压时长为蓝牙配对
时,用户按压所述请求设备的时间长度,所述第一压力值为蓝牙配对时,用户按压所述请求设备的压力值;Collecting the first pressing duration and the first pressure value, the first pressing duration is Bluetooth pairing
And a time length of the user pressing the requesting device, where the first pressure value is a Bluetooth pairing, the user presses a pressure value of the requesting device;
当所述第一按压时长大于时间阈值,且所述第一压力值大于所述压力阈值时,所述请求设备发送所述请求消息。The requesting device sends the request message when the first pressing duration is greater than a time threshold and the first pressure value is greater than the pressure threshold.
在上述技术方案中,优选地,所述处理器71发送请求消息的具体步骤为:In the above technical solution, preferably, the specific steps of the processor 71 to send the request message are:
广播所述请求消息。Broadcast the request message.
在上述技术方案中,优选地,所述处理器71根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件的具体步骤为:In the above technical solution, preferably, the processor 71 determines whether the specific condition of the pairing condition is met according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value. The steps are:
当所述第二按压时长与所述第一按压时长的差值在第一阈值区间内,且所述第二压力值与所述第一压力值的差值在第二阈值区间内时,确定满足所述配对条件。Determining when a difference between the second pressing duration and the first pressing duration is within a first threshold interval, and a difference between the second pressure value and the first pressure value is within a second threshold interval The pairing condition is satisfied.
本发明实施例提供的一种网络通信系统,当请求设备所采集的第一按压时长大于时间阈值,且第一压力值大于压力阈值时,发送携带有第一按压时长和第一压力值的请求消息;当应答设备接收到该请求消息后,采集第二按压时长和第二压力值,并根据第一按压时长、第一压力值、第二按压时长和第二压力值,确定是否满足配对条件;当满足配对条件时,应答设备向请求设备发送应答消息来完成蓝牙配对。相比较于现有技术中的用户选择应答设备后,请求设备才向应答设备发送配对请求;应答设备收到该请求消息后,还需要用户在应答设备中输入配对密码,本发明在检测到第一按压时长大于时间阈值,且第一压力值大于压力阈值时,请求设备可以在不选择应答设备的情况下,直接发送请求消息,且根据第一按压时长、第一压力值、第二按压时长和第二压力值,
确定应答设备是否能够与发送请求消息的请求设备之间完成蓝牙配对,从而能够在准确确定应答设备的基础上,简化蓝牙配对的过程。因此,能够减少请求设备与应答设备之间完成蓝牙配对的时间。The network communication system provided by the embodiment of the present invention sends a request carrying the first pressing duration and the first pressure value when the first pressing duration collected by the requesting device is greater than a time threshold and the first pressure value is greater than the pressure threshold. a message; after the response device receives the request message, collecting a second pressing duration and a second pressure value, and determining whether the pairing condition is met according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value When the pairing condition is met, the answering device sends a reply message to the requesting device to complete the Bluetooth pairing. After the user selects the answering device in the prior art, the requesting device sends a pairing request to the answering device; after receiving the request message, the responding device also needs the user to input the pairing password in the answering device, and the present invention detects the When the pressing duration is greater than the time threshold, and the first pressure value is greater than the pressure threshold, the requesting device may directly send the request message without selecting the answering device, and according to the first pressing duration, the first pressure value, and the second pressing duration And the second pressure value,
It is determined whether the answering device can complete the Bluetooth pairing with the requesting device that sends the request message, so that the process of Bluetooth pairing can be simplified on the basis of accurately determining the answering device. Therefore, it is possible to reduce the time for completing the Bluetooth pairing between the requesting device and the answering device.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:Read-Only Memory,简称:ROM)或随机存储记忆体(英文:Random Access Memory,简称:RAM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (English: Read-Only Memory, ROM for short) or a random access memory (English: Random Access Memory, RAM for short).
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。
The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims (13)
- 一种蓝牙配对的方法,其特征在于,所述方法应用于一种网络通信系统,所述网络通信系统中包括请求设备和应答设备,所述方法包括:A method for Bluetooth pairing, wherein the method is applied to a network communication system, where the network communication system includes a request device and a response device, and the method includes:所述应答设备接收所述请求设备发送的请求消息,所述请求消息中携带有所述请求设备采集到的第一按压时长和第一压力值;The response device receives the request message sent by the requesting device, where the request message carries the first pressing duration and the first pressure value collected by the requesting device;所述应答设备采集第二按压时长和第二压力值,所述第二按压时长为接收到所述请求消息后,用户按压所述应答设备的时间长度,所述第二压力值为接收到所述请求消息后,用户按压所述应答设备的压力值;The response device collects a second pressing duration and a second pressure value, where the second pressing duration is a length of time after the user receives the request message, and the second pressure value is received. After the request message, the user presses the pressure value of the answering device;所述应答设备根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件;Determining, by the response device, whether the pairing condition is satisfied according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value;如果满足所述配对条件,所述应答设备向所述请求设备发送所述请求消息的应答消息。If the pairing condition is met, the answering device sends a response message to the request message to the requesting device.
- 根据权利要求1所述的方法,其特征在于,所述根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件,具体包括:The method according to claim 1, wherein the determining whether the pairing condition is satisfied is determined according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value, Specifically include:当所述第二按压时长与所述第一按压时长的差值在第一阈值区间内,且所述第二压力值与所述第一压力值的差值在第二阈值区间内时,所述应答设备确定满足所述配对条件。When a difference between the second pressing duration and the first pressing duration is within a first threshold interval, and a difference between the second pressure value and the first pressure value is within a second threshold interval, The response device determines that the pairing condition is met.
- 一种蓝牙配对的方法,其特征在于,所述方法应用于一种网络通信系统,所述网络通信系统中包括请求设备和应答设备,所述方法包括:A method for Bluetooth pairing, wherein the method is applied to a network communication system, where the network communication system includes a request device and a response device, and the method includes:所述请求设备发送请求消息,所述请求消息中携带有第一按压时长和第一压力值,以便于所述应答设备在接收到所述请求消息时,采集第二按压时长和 第二压力值,并根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件;The requesting device sends a request message, where the request message carries a first pressing duration and a first pressure value, so that the response device collects the second pressing duration and when receiving the request message. a second pressure value, and determining whether the pairing condition is satisfied according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value;如果满足所述配对条件,所述请求设备接收所述应答设备发送的应答消息。The requesting device receives a response message sent by the answering device if the pairing condition is met.
- 根据权利要求3所述的方法,其特征在于,在所述请求设备发送请求消息之前,所述方法还包括:The method according to claim 3, wherein before the requesting device sends the request message, the method further comprises:所述请求设备采集所述第一按压时长和所述第一压力值,所述第一按压时长为蓝牙配对时,用户按压所述请求设备的时间长度,所述第一压力值为蓝牙配对时,用户按压所述请求设备的压力值;The requesting device collects the first pressing duration and the first pressure value, where the first pressing duration is a length of time when the user presses the requesting device when the Bluetooth pairing is performed, and the first pressure value is a Bluetooth pairing time. The user presses the pressure value of the requesting device;当所述第一按压时长大于时间阈值,且所述第一压力值大于所述压力阈值时,所述请求设备发送所述请求消息。The requesting device sends the request message when the first pressing duration is greater than a time threshold and the first pressure value is greater than the pressure threshold.
- 根据权利要求3或4所述的方法,其特征在于,所述请求设备发送请求消息,包括:The method according to claim 3 or 4, wherein the requesting device sends a request message, including:所述请求设备广播所述请求消息。The requesting device broadcasts the request message.
- 一种蓝牙配对的装置,其特征在于,所述装置应用于一种网络通信系统,所述网络通信系统中包括请求设备和应答设备,所述装置包括:A device for Bluetooth pairing, characterized in that the device is applied to a network communication system, the network communication system includes a request device and a response device, and the device includes:通信模块,用于接收所述请求设备发送的请求消息,所述请求消息中携带有所述请求设备采集到的第一按压时长和第一压力值;a communication module, configured to receive a request message sent by the requesting device, where the request message carries a first pressing duration and a first pressure value collected by the requesting device;监测模块,用于采集第二按压时长和第二压力值,所述第二按压时长为所述通信模块接收到所述请求消息后,用户按压所述应答设备的时间长度,所述第二压力值为所述通信模块接收到所述请求消息后,用户按压所述应答设备的压力值;a monitoring module, configured to collect a second pressing duration and a second pressure value, where the second pressing duration is a length of time that the user presses the response device after the communication module receives the request message, and the second pressure The value is a pressure value of the response device after the communication module receives the request message;校验模块,用于根据所述通信模块接收到的所述第一按压时长、所述第一 压力值、所述监测模块采集的所述第二按压时长和所述第二压力值,确定是否满足配对条件;a verification module, configured to receive, according to the first pressing duration, the first a pressure value, the second pressing duration collected by the monitoring module, and the second pressure value to determine whether a pairing condition is satisfied;所述通信模块,还用于当所述校验模块确定满足所述配对条件时,向所述请求设备发送所述请求消息的应答消息。The communication module is further configured to: when the verification module determines that the pairing condition is met, send a response message of the request message to the requesting device.
- 根据权利要求6所述的装置,其特征在于,所述校验模块具体用于当所述第二按压时长与所述第一按压时长的差值在第一阈值区间内,且所述第二压力值与所述第一压力值的差值在第二阈值区间内时,确定满足所述配对条件。The apparatus according to claim 6, wherein the verification module is configured to: when a difference between the second pressing duration and the first pressing duration is within a first threshold interval, and the second When the difference between the pressure value and the first pressure value is within the second threshold interval, it is determined that the pairing condition is satisfied.
- 一种蓝牙配对的装置,其特征在于,所述装置应用于一种网络通信系统,所述网络通信系统中包括请求设备和应答设备,所述装置包括:A device for Bluetooth pairing, characterized in that the device is applied to a network communication system, the network communication system includes a request device and a response device, and the device includes:通信模块,用于发送请求消息,所述请求消息中携带有第一按压时长和第一压力值,以便于所述应答设备在接收到所述请求消息时,采集第二按压时长和第二压力值,并根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件;a communication module, configured to send a request message, where the request message carries a first pressing duration and a first pressure value, so that the response device collects the second pressing duration and the second pressure when receiving the request message And determining, according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value, whether a pairing condition is satisfied;所述通信模块,还用于如果满足所述配对条件,接收所述应答设备发送的应答消息。The communication module is further configured to receive a response message sent by the answering device if the pairing condition is met.
- 根据权利要求8所述的装置,其特征在于,所述装置还包括:The device according to claim 8, wherein the device further comprises:监测模块,用于采集所述第一按压时长和所述第一压力值,所述第一按压时长为蓝牙配对时,用户按压所述请求设备的时间长度,所述第一压力值为蓝牙配对时,用户按压所述请求设备的压力值;a monitoring module, configured to collect the first pressing duration and the first pressure value, where the first pressing duration is a length of time when the user presses the requesting device when the Bluetooth pairing is performed, and the first pressure value is a Bluetooth pairing At the time, the user presses the pressure value of the requesting device;所述通信模块,还用于当所述监测模块采集的所述第一按压时长大于时间阈值,且所述监测模块采集的所述第一压力值大于所述压力阈值时,发送所述请求消息; The communication module is further configured to: when the first pressing duration collected by the monitoring module is greater than a time threshold, and the first pressure value collected by the monitoring module is greater than the pressure threshold, send the request message ;其中,所述通信模块,具体用于广播所述请求消息。The communication module is specifically configured to broadcast the request message.
- 一种网络通信系统,其特征在于,所述网络通信系统中包括处理器和存储器,其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,用于执行以下操作:A network communication system, comprising: a processor and a memory, wherein the memory stores a set of program codes, and the processor is configured to invoke program code stored in the memory, Used to do the following:发送请求消息,所述请求消息中携带有第一按压时长和第一压力值;Sending a request message, where the request message carries a first pressing duration and a first pressure value;接收所发送的请求消息;Receiving the sent request message;采集第二按压时长和第二压力值,所述第二按压时长为接收到所述请求消息后,用户按压所述应答设备的时间长度,所述第二压力值为接收到所述请求消息后,用户按压所述应答设备的压力值;Collecting a second pressing duration and a second pressing duration, where the second pressing duration is a length of time that the user presses the response device after receiving the request message, and the second pressure value is after receiving the request message And the user presses the pressure value of the answering device;根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件;Determining whether the pairing condition is satisfied according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value;如果满足所述配对条件,发送所述请求消息的应答消息;Sending a response message of the request message if the pairing condition is met;如果满足所述配对条件,接收所发送的应答消息。If the pairing condition is met, the sent response message is received.
- 根据权利要求10所述的方法,其特征在于,所述处理器在发送请求消息之前,还执行:The method according to claim 10, wherein the processor further performs: before transmitting the request message:采集所述第一按压时长和所述第一压力值,所述第一按压时长为蓝牙配对时,用户按压所述请求设备的时间长度,所述第一压力值为蓝牙配对时,用户按压所述请求设备的压力值;Collecting the first pressing duration and the first pressure value, where the first pressing duration is a length of time when the user presses the requesting device when the Bluetooth pairing is performed, and when the first pressure value is Bluetooth pairing, the user presses the Describe the pressure value of the device;当所述第一按压时长大于时间阈值,且所述第一压力值大于所述压力阈值时,所述请求设备发送所述请求消息。The requesting device sends the request message when the first pressing duration is greater than a time threshold and the first pressure value is greater than the pressure threshold.
- 根据权利要求10或11所述的方法,其特征在于,所述处理器发送请求消息的具体步骤为: The method according to claim 10 or 11, wherein the specific steps of the processor to send the request message are:广播所述请求消息。Broadcast the request message.
- 根据权利要求10所述的方法,其特征在于,所述处理器根据所述第一按压时长、所述第一压力值、所述第二按压时长和所述第二压力值,确定是否满足配对条件的具体步骤为:The method according to claim 10, wherein the processor determines whether the matching is satisfied according to the first pressing duration, the first pressure value, the second pressing duration, and the second pressure value The specific steps of the condition are:当所述第二按压时长与所述第一按压时长的差值在第一阈值区间内,且所述第二压力值与所述第一压力值的差值在第二阈值区间内时,确定满足所述配对条件。 Determining when a difference between the second pressing duration and the first pressing duration is within a first threshold interval, and a difference between the second pressure value and the first pressure value is within a second threshold interval The pairing condition is satisfied.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610496354.9 | 2016-06-29 | ||
CN201610496354.9A CN106210280A (en) | 2016-06-29 | 2016-06-29 | A kind of method of Bluetooth pairing, Apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018000570A1 true WO2018000570A1 (en) | 2018-01-04 |
Family
ID=57463394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/097478 WO2018000570A1 (en) | 2016-06-29 | 2016-08-31 | Bluetooth pairing method, apparatus and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106210280A (en) |
WO (1) | WO2018000570A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3672374A1 (en) * | 2018-12-21 | 2020-06-24 | Schneider Electric Industries SAS | Devices and methods for matching between a wireless control device and an electronic device |
RU2791758C2 (en) * | 2018-12-21 | 2023-03-13 | Шнейдер Электрик Эндюстри Сас | Devices and methods for pairing of a wireless control device and an electronic unit |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110063052B (en) * | 2016-12-16 | 2022-02-11 | 豪夫迈·罗氏有限公司 | Method and system for confirming pairing |
CN110536273B (en) * | 2018-05-25 | 2022-08-09 | 九阳股份有限公司 | Connection pairing method of intelligent equipment |
CN113645606B (en) * | 2021-08-16 | 2024-05-03 | Oppo广东移动通信有限公司 | Bluetooth device discovery method, device, terminal and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140266596A1 (en) * | 2013-03-15 | 2014-09-18 | Tyfone, Inc | Configurable personal digital identity device responsive to user interaction with user authentication factor captured in mobile device |
CN104320161A (en) * | 2014-10-08 | 2015-01-28 | 上海天奕达电子科技有限公司 | Method and system for rapid Bluetooth pairing |
WO2015097792A1 (en) * | 2013-12-25 | 2015-07-02 | 富士通株式会社 | Pairing apparatus, pairing method, and pairing program |
CN104834458A (en) * | 2014-02-11 | 2015-08-12 | 中兴通讯股份有限公司 | Equipment paring method and device based on touch screen |
CN105472134A (en) * | 2015-11-18 | 2016-04-06 | 广东欧珀移动通信有限公司 | Method and device for releasing Bluetooth pairing, and mobile terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103856826A (en) * | 2012-11-29 | 2014-06-11 | 扬智科技股份有限公司 | Video signal playing method and device |
CN104918208B (en) * | 2015-05-29 | 2018-12-07 | 努比亚技术有限公司 | Mobile terminal matching method and mobile terminal |
-
2016
- 2016-06-29 CN CN201610496354.9A patent/CN106210280A/en active Pending
- 2016-08-31 WO PCT/CN2016/097478 patent/WO2018000570A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140266596A1 (en) * | 2013-03-15 | 2014-09-18 | Tyfone, Inc | Configurable personal digital identity device responsive to user interaction with user authentication factor captured in mobile device |
WO2015097792A1 (en) * | 2013-12-25 | 2015-07-02 | 富士通株式会社 | Pairing apparatus, pairing method, and pairing program |
CN104834458A (en) * | 2014-02-11 | 2015-08-12 | 中兴通讯股份有限公司 | Equipment paring method and device based on touch screen |
CN104320161A (en) * | 2014-10-08 | 2015-01-28 | 上海天奕达电子科技有限公司 | Method and system for rapid Bluetooth pairing |
CN105472134A (en) * | 2015-11-18 | 2016-04-06 | 广东欧珀移动通信有限公司 | Method and device for releasing Bluetooth pairing, and mobile terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3672374A1 (en) * | 2018-12-21 | 2020-06-24 | Schneider Electric Industries SAS | Devices and methods for matching between a wireless control device and an electronic device |
FR3091134A1 (en) * | 2018-12-21 | 2020-06-26 | Schneider Electric Industries Sas | Devices and methods for pairing between a wireless controller and an electronic device |
CN111355643A (en) * | 2018-12-21 | 2020-06-30 | 施耐德电器工业公司 | Device and method for pairing between a wireless control device and an electronic unit |
US11569693B2 (en) | 2018-12-21 | 2023-01-31 | Schneider Electric Industries Sas | Devices and methods for pairing between a wireless control device and an electronic unit |
RU2791758C2 (en) * | 2018-12-21 | 2023-03-13 | Шнейдер Электрик Эндюстри Сас | Devices and methods for pairing of a wireless control device and an electronic unit |
Also Published As
Publication number | Publication date |
---|---|
CN106210280A (en) | 2016-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108811182B (en) | Wireless earphone pairing method and device and wireless earphone | |
CN110366212B (en) | Condition switching result detection method and terminal | |
WO2018000570A1 (en) | Bluetooth pairing method, apparatus and system | |
US9998989B2 (en) | Wakeup method for devices in power saving mode | |
RU2646354C2 (en) | Method, device and system for installation of transmission connection | |
EP2615869A1 (en) | Systems for facilitating wireless communication and related methods | |
CN104540091A (en) | Automatic pairing system and automatic pairing method based on bluetooth equipment | |
EP2988472A1 (en) | Method for detecting eavesdropping activity and terminal device | |
CN113743929B (en) | Data processing method, terminal device and data processing system | |
CN110177127B (en) | Data transmission method, device and equipment based on grpc framework | |
WO2021042612A1 (en) | Wireless screen projection method and apparatus, device and storage medium | |
CN112566078A (en) | Device connection method and apparatus, storage medium, and electronic apparatus | |
WO2022267635A1 (en) | Method and apparatus for data exchange | |
CN106685800B (en) | The based reminding method and device of information | |
RU2670096C2 (en) | Method and device for ending video communication | |
WO2024088242A1 (en) | Wireless pairing method, apparatus, device, and storage medium | |
CN107820229B (en) | Terminal detection method and communication equipment | |
CN108025209B (en) | Wireless control of streaming computing devices | |
EP2536067B1 (en) | Apparatus and method for implementing point to point protocol data service link-disconnect | |
CN112104532A (en) | Network connection method, network distribution device, electronic equipment and storage medium | |
US9485458B2 (en) | Data processing method and device | |
WO2017185454A1 (en) | Esim card binding processing method and apparatus, and terminal | |
CN103517373A (en) | Network access method and device | |
CN110769396A (en) | Method, system and terminal device for robot to connect to network | |
CN111432392B (en) | Method for improving input stability of Bluetooth human-computer interaction equipment |
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: 16906967 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: 16906967 Country of ref document: EP Kind code of ref document: A1 |