CN115002780A - Method and device for connecting somatosensory device and terminal and computer-readable storage medium - Google Patents

Method and device for connecting somatosensory device and terminal and computer-readable storage medium Download PDF

Info

Publication number
CN115002780A
CN115002780A CN202210697246.3A CN202210697246A CN115002780A CN 115002780 A CN115002780 A CN 115002780A CN 202210697246 A CN202210697246 A CN 202210697246A CN 115002780 A CN115002780 A CN 115002780A
Authority
CN
China
Prior art keywords
terminal
equipment
connection
motion sensing
identity information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210697246.3A
Other languages
Chinese (zh)
Inventor
李安亭
李俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shimi Network Technology Co ltd
Original Assignee
Shenzhen Shimi Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Shimi Network Technology Co ltd filed Critical Shenzhen Shimi Network Technology Co ltd
Priority to CN202210697246.3A priority Critical patent/CN115002780A/en
Publication of CN115002780A publication Critical patent/CN115002780A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a method and a device for connecting a body sensing device and a terminal and a computer readable storage medium, wherein the method for connecting the body sensing device and the terminal comprises the following steps: the terminal broadcasts a Bluetooth connection request outwards; if the somatosensory equipment enters a preset awakening state, starting to passively scan surrounding Bluetooth broadcast data; if the Bluetooth connection request is scanned by the body sensing equipment, generating identity information based on the Bluetooth connection request, and broadcasting the identity information outwards; if the terminal only scans a broadcast containing identity information within a preset time length, the terminal directly establishes Bluetooth connection with the somatosensory equipment after verifying that the identity information is legal. The connection method has the advantages of good user connection experience and good endurance of the motion sensing equipment.

Description

Method and device for connecting somatosensory device and terminal and computer-readable storage medium
Technical Field
The invention relates to the technical field of wireless connection, in particular to a method and a device for connecting a somatosensory device and a terminal and a computer-readable storage medium.
Background
The bluetooth ble (bluetooth Low energy) technology is a global specification opened for wireless data and voice communication, and is a short-range wireless connection protocol scheme with high popularity and Low cost. At present, the wireless connection scheme between body sensing equipment (like devices such as intelligent wrist-watch, motion bracelet) and the terminal adopts the bluetooth to connect usually. In the conventional method of connecting through bluetooth, a user is required to manually select a device to be paired and connected, which not only is complicated to operate, but also often makes it difficult to distinguish the device actually required to be paired and connected when a plurality of bluetooth devices exist around. Thus, the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a method for connecting a motion sensing device and a terminal, and aims to improve the convenience of connection between the motion sensing device and the terminal.
In order to achieve the above object, an embodiment of the present application provides a method for connecting a motion sensing device to a terminal, including:
the terminal broadcasts a Bluetooth connection request outwards;
if the somatosensory equipment enters a preset awakening state, starting to passively scan surrounding Bluetooth broadcast data;
if the body sensing equipment scans the Bluetooth connection request, identity information is generated based on the Bluetooth connection request, and the identity information is broadcasted outwards;
if the terminal only scans a broadcast containing identity information within a preset time length, the terminal directly establishes Bluetooth connection with the somatosensory equipment after verifying that the identity information is legal.
In an embodiment, the motion sensing device is bound with a preset motion sensing game, the preset motion sensing game can run on the terminal, and the identity information includes a unique identification code of the motion sensing device;
the terminal verifies whether the identity information of the motion sensing equipment is legal or not, and the method comprises the following steps:
and the terminal calls the equipment list of the preset motion sensing game to verify the unique identification code of the motion sensing equipment, and if the unique identification code of the motion sensing equipment is recorded in the equipment list, the unique identification code of the motion sensing equipment is judged to be legal.
In one embodiment, the bluetooth connection request further includes a connection request random code;
the identity information further comprises a response code;
after the unique identification code of the motion sensing equipment is judged to be legal, verifying whether the identity information of the motion sensing equipment is legal further comprises:
the terminal verifies whether the response code is matched with the connection request random code;
and if the matching is carried out, judging that the identity information of the somatosensory equipment is legal.
In an embodiment, before verifying whether the identity information of the somatosensory device is legal, the method further includes:
the terminal judges whether the body sensing equipment is matched body sensing equipment or not according to the unique identification code;
if yes, the terminal directly establishes Bluetooth connection with the somatosensory equipment.
In an embodiment, the identity information further includes historical connection information of the somatosensory device;
before verifying whether the identity information of the body sensing equipment is legal, the method further comprises the following steps:
the terminal judges whether the somatosensory equipment is connected for the first time or not according to the historical connection information;
if not, the terminal inserts connection confirmation information into the next broadcast data;
the somatosensory device sends a connection confirmation request after scanning the connection confirmation information so as to request a user to confirm connection;
after receiving confirmation feedback of the user based on the connection confirmation request, the body sensing equipment broadcasts the confirmation message;
and the terminal establishes Bluetooth connection with the somatosensory equipment after scanning the confirmation message.
In an embodiment, the method further comprises:
if the terminal scans at least two broadcasts containing identity information within a preset time length, the terminal inserts connection confirmation information into the next broadcast data;
the somatosensory device sends a connection confirmation request after scanning the connection confirmation information so as to request a user to confirm connection; and the terminal establishes Bluetooth connection with the somatosensory equipment broadcasting the confirmation message.
In an embodiment, when the identity information is broadcasted, the motion sensing device encrypts the identity information based on a preset encryption algorithm.
In an embodiment, after the bluetooth connection is established between the motion sensing device and the terminal, the method further includes:
when the unexpected disconnection of being connected between terminal and the body sensing equipment, then the terminal is in predetermineeing the time length of interval and initiating once connection request at the time length of interval in predetermineeing the time length of overtime, in order to try to connect body sensing equipment is up to reconnection or reach and predetermine the critical value, wherein, predetermine time length of overtime with it is the notch cuttype increase to predetermine the time length of interval.
In order to achieve the above object, an embodiment of the present invention further provides a connection device between a motion sensing device and a terminal, including a memory, a processor, and a connection program, stored on the memory and executable on the processor, between the motion sensing device and the terminal, where the processor implements the connection method between the motion sensing device and the terminal according to any one of the above items when executing the connection program between the motion sensing device and the terminal.
In order to achieve the above object, an embodiment of the present application further provides a computer-readable storage medium, where a connection program of a motion sensing device and a terminal is stored, and when executed by a processor, the connection program of the motion sensing device and the terminal implements the method for connecting the motion sensing device and the terminal as described in any one of the above.
According to the technical scheme, after the body sensing equipment enters a preset awakening state, surrounding Bluetooth broadcasts can be passively scanned, and the body sensing equipment can also broadcast identity information based on the Bluetooth connection request after broadcasting the Bluetooth connection request to a terminal; for the terminal, when the terminal only scans one piece of identity information broadcasted from the body sensing equipment within a preset time, the validity of the identity information can be verified, and after the validity of the identity information is verified, the terminal directly establishes Bluetooth connection with the body sensing equipment. Therefore, in the process of establishing the Bluetooth connection between the motion sensing equipment and the terminal, the user does not need to confirm the operation, so that silent connection between the motion sensing equipment and the terminal is realized; in addition, the body sensing device broadcasts only after the Bluetooth connection request of the terminal is scanned, so that the cruising performance of the body sensing device is promoted. Therefore, compared with the traditional Bluetooth connection mode, the connection method has the advantages of good user connection experience and good endurance of the motion sensing equipment.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the embodiments or technical solutions of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a block diagram of a connection device between a motion sensing device and a terminal according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for connecting a motion sensing device to a terminal according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another embodiment of a connection method between a motion sensing device and a terminal according to the present invention;
fig. 4 is a schematic flowchart of a connection method between a motion sensing device and a terminal according to another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of "first," "second," and "third," etc. do not denote any order, and such words are to be interpreted as names.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a server 1 (also called a connection device between a motion sensing device and a terminal) in a hardware operating environment according to an embodiment of the present invention.
The server provided by the embodiment of the invention comprises equipment with a display function, such as Internet of things equipment, an intelligent air conditioner with a networking function, an intelligent lamp, an intelligent power supply, AR/VR equipment with a networking function, an intelligent sound box, an automatic driving automobile, a PC, a smart phone, a tablet personal computer, an electronic book reader, a portable computer and the like.
As shown in fig. 1, the server 1 includes: memory 11, processor 12, and network interface 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the server 1, for example a hard disk of the server 1. The memory 11 may also be an external storage device of the server 1 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the server 1.
Further, the memory 11 may also include an internal storage unit of the server 1 and also an external storage device. The memory 11 may be used to temporarily store data that has been output or is to be output, as well as application software installed in the server 1 and various types of data, for example, codes of the connection program 10 between the motion sensing device and the terminal.
The processor 12 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is configured to run program codes stored in the memory 11 or process data, for example, execute the connection program 10 between the motion sensing device and the terminal.
The network interface 13 may optionally comprise a standard wired interface, a wireless interface (e.g. WI-FI interface), typically used for establishing a communication connection between the server 1 and other electronic devices.
The network may be the internet, a cloud network, a wireless fidelity (Wi-Fi) network, a Personal Area Network (PAN), a Local Area Network (LAN), and/or a Metropolitan Area Network (MAN). Various devices in the network environment may be configured to connect to the communication network according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, at least one of: transmission control protocol and internet protocol (TCP/IP), User Datagram Protocol (UDP), hypertext transfer protocol (HTTP), File Transfer Protocol (FTP), ZigBee, EDGE, IEEE802.11, optical fidelity (Li-Fi), 802.16, IEEE802.11 s, IEEE802.11g, multi-hop communications, wireless Access Points (APs), device-to-device communications, cellular communication protocol, and/or bluetooth (Blue Tooth) communication protocol, or a combination thereof.
Optionally, the server may further comprise a user interface, which may include a Display (Display), an input unit such as a Keyboard (Keyboard), and an optional user interface may also include a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is used for displaying information processed in the server 1 and for displaying a visualized user interface.
Fig. 1 shows only a server 1 having components 11 to 13 and a connection program 10 of a motion sensing device and a terminal, and it will be understood by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the server 1, and may include fewer or more components than those shown, or combine some components, or arrange different components.
In this embodiment, the processor 12 may be configured to call a connection program of the motion sensing device and the terminal stored in the memory 11, and perform the following operations:
the terminal broadcasts a Bluetooth connection request outwards;
if the somatosensory equipment enters a preset awakening state, starting to passively scan surrounding Bluetooth broadcast data;
if the body sensing equipment scans the Bluetooth connection request, identity information is generated based on the Bluetooth connection request, and the identity information is broadcasted outwards;
if the terminal only scans a broadcast containing identity information within a preset time length, the terminal directly establishes Bluetooth connection with the somatosensory equipment after verifying that the identity information is legal.
In an embodiment, the processor 12 may be configured to call a connection program of the motion sensing device and the terminal stored in the memory 11, and perform the following operations:
and the terminal calls the equipment list of the preset motion sensing game to verify the unique identification code of the motion sensing equipment, and if the unique identification code of the motion sensing equipment is recorded in the equipment list, the unique identification code of the motion sensing equipment is judged to be legal.
In an embodiment, the processor 12 may be configured to call a connection program of the motion sensing device and the terminal stored in the memory 11, and perform the following operations:
the terminal verifies whether the response code is matched with the connection request random code;
and if so, judging that the identity information of the motion sensing equipment is legal.
In an embodiment, the processor 12 may be configured to invoke a connection program of the motion sensing device and the terminal stored in the memory 11, and perform the following operations:
the terminal judges whether the body sensing equipment is matched body sensing equipment or not according to the unique identification code;
if yes, the terminal directly establishes Bluetooth connection with the somatosensory equipment.
In an embodiment, the processor 12 may be configured to invoke a connection program of the motion sensing device and the terminal stored in the memory 11, and perform the following operations:
the terminal judges whether the somatosensory equipment is connected for the first time or not according to the historical connection information;
if not, the terminal inserts connection confirmation information into the next broadcast data;
the somatosensory device sends a connection confirmation request after scanning the connection confirmation information so as to request a user to confirm connection;
after receiving confirmation feedback of the user based on the connection confirmation request, the body sensing equipment broadcasts the confirmation message;
and the terminal establishes Bluetooth connection with the somatosensory equipment after scanning the confirmation message.
In an embodiment, the processor 12 may be configured to call a connection program of the motion sensing device and the terminal stored in the memory 11, and perform the following operations:
if the terminal scans at least two broadcasts containing identity information within a preset time length, the terminal inserts connection confirmation information into the next broadcast data;
the somatosensory device sends a connection confirmation request after scanning the connection confirmation information so as to request a user to confirm connection; and the terminal establishes Bluetooth connection with the somatosensory equipment broadcasting the confirmation message.
In an embodiment, the processor 12 may be configured to call a connection program of the motion sensing device and the terminal stored in the memory 11, and perform the following operations:
and when the identity information is broadcasted by the somatosensory equipment, encrypting the identity information based on a preset encryption algorithm.
In an embodiment, the processor 12 may be configured to call a connection program of the motion sensing device and the terminal stored in the memory 11, and perform the following operations:
when the unexpected disconnection of being connected between terminal and the body sensing equipment, then the terminal is in predetermineeing the time length of interval and initiating once connection request at the time length of interval in predetermineeing the time length of overtime, in order to try to connect body sensing equipment is up to reconnection or reach and predetermine the critical value, wherein, predetermine time length of overtime with it is the notch cuttype increase to predetermine the time length of interval.
The embodiment of the connection method of the motion sensing device and the terminal is provided based on a hardware framework of the connection device of the motion sensing device and the terminal. The invention discloses a method for connecting a motion sensing device and a terminal, and aims to improve the convenience of connection between the motion sensing device and the terminal.
Referring to fig. 2, fig. 2 is a diagram of an embodiment of a method for connecting a motion sensing device to a terminal according to the present invention, where the method for connecting a motion sensing device to a terminal includes the following steps:
and S10, the terminal broadcasts the Bluetooth connection request outwards.
The terminal can be an AR/VR device with a networking function, an intelligent sound box, an automatic driving automobile, a PC, a smart phone, a tablet computer, an electronic book reader, a portable computer and the like, and the terminal has a Bluetooth connection function.
Specifically, when a bluetooth connection is established with a motion sensing device, a bluetooth connection request is broadcast to the surroundings by a terminal. It should be noted that the terminal may listen to the bluetooth broadcast of other surrounding devices and discover other devices at the same time when broadcasting its own bluetooth connection request. It is worth saying that, because the terminal usually has no cruising anxiety, the terminal actively broadcasts the bluetooth connection request, which is beneficial to reducing the energy consumption of the motion sensing device and prolonging the cruising of the motion sensing device.
And S20, if the motion sensing device enters a preset awakening state, passively scanning the surrounding Bluetooth broadcast data.
Among other things, motion sensing devices have IMU sensors that can detect motion gesture data of a user. . Illustratively, the motion sensing device may be a bracelet, a glove watch, a headband, a hat, a vest, a fitness ring, a gamepad, or the like. Besides motion detection, the motion sensing device defined by the technical scheme of the application also needs to have a Bluetooth connection function so as to establish Bluetooth connection with the terminal.
Further, in some embodiments, the preset wake-up state is set to wake up a screen of the motion sensing device on the basis that a bluetooth function of the motion sensing device is activated.
Specifically, after the motion sensing device enters a preset awakening state, the motion sensing device starts to passively scan surrounding Bluetooth broadcast data. At this time, the motion sensing device performs only the scanning of the bluetooth broadcast and does not perform the bluetooth broadcast. Set up like this, can reduce the body sensing equipment and establish the consumption of bluetooth connection in-process with the terminal, prolong body sensing equipment's continuation of the journey.
It can be understood that the body sensing equipment is set to enter a passive scanning state after being awakened on a screen, peripheral Bluetooth broadcast is scanned in a passive scanning mode, the frequency of the body sensing equipment for scanning peripheral broadcast data can be reduced, and the cruising performance of the body sensing equipment is further promoted.
It is noted that, in other embodiments, the preset wake-up state may be set to activate only the bluetooth function of the motion sensing device.
It is also worth noting that during bluetooth connection, the device has two states, broadcast and scan, wherein broadcast can send out a bluetooth connection request and scan can listen to surrounding bluetooth broadcasts. Furthermore, the scanning comprises passive scanning and active scanning, wherein the passive scanning means that the device cannot be found by other surrounding Bluetooth devices while monitoring surrounding broadcasting; active scanning is that the device itself is discovered by other bluetooth devices around while listening to the surrounding broadcast. Compared with active scanning, passive scanning saves more electric quantity of the motion sensing device.
S30, if the body sensing device scans the Bluetooth connection request, identity information is generated based on the Bluetooth connection request, and the identity information is broadcasted outwards.
Specifically, when the body sensing device scans a bluetooth connection request broadcasted by the terminal, the body sensing device finishes passive scanning and generates identity information based on the bluetooth connection request of the terminal. After generating corresponding identity information, the somatosensory device broadcasts the identity information to be discovered by the terminal. The identity information is information used for the terminal to confirm whether the somatosensory device is a legal device or not, and the legal device is a device which can directly establish Bluetooth connection with the terminal without confirmation of a user.
S40, if the terminal only scans a broadcast containing identity information within a preset time length, after the identity information is verified to be legal, the terminal directly establishes Bluetooth connection with the somatosensory equipment.
The preset duration is a duration condition used for limiting the Bluetooth connection between the terminal and the somatosensory device. Specifically, the terminal starts timing for a preset time length after scanning a first broadcast containing identity information so as to judge whether only one somatosensory device broadcast containing identity information is scanned.
Specifically, after scanning identity information broadcast by the motion sensing equipment, the terminal verifies the validity of the identity information, and if the identity information passes the validity verification of the terminal, the terminal is directly connected with the motion sensing equipment without passing user verification.
It is worth to be noted that, in the conventional bluetooth connection mode, when the terminal is connected with the motion sensing device through bluetooth, the user is often required to confirm connection on the motion sensing device, and only after the user inputs confirmation information on the motion sensing device, the motion sensing device can be connected with the terminal through bluetooth. That is, in the conventional bluetooth connection method, a confirmation operation must be performed by the user. In addition, because bluetooth connection is easily interfered by signals of other bluetooth devices within a range, the situation that a user needs to repeatedly confirm in the bluetooth connection process may occur, and the experience of the user is affected.
In the technical scheme of the application, after the body sensing equipment enters a preset awakening state, the body sensing equipment can passively scan surrounding Bluetooth broadcasts, and after a Bluetooth connection request is broadcast to a terminal, the body sensing equipment can also broadcast identity information based on the Bluetooth connection request; for the terminal, when the terminal only scans one piece of identity information broadcasted by the body sensing equipment within a preset time, the validity of the identity information can be verified, and after the identity information is verified to be legal, the terminal directly establishes Bluetooth connection with the body sensing equipment. Therefore, in the process of establishing the Bluetooth connection between the body sensing equipment and the terminal, the user does not need to confirm the Bluetooth connection, so that silent connection between the body sensing equipment and the terminal is realized; in addition, the body sensing device broadcasts only after the Bluetooth connection request of the terminal is scanned, so that the cruising performance of the body sensing device is promoted. Therefore, compared with the traditional Bluetooth connection mode, the connection method has the advantages of being good in user connection experience and good in endurance of the motion sensing equipment.
In some embodiments, when the identity information is broadcast by the motion sensing device, the identity information is encrypted based on a preset encryption algorithm.
For example, the preset encryption algorithm refers to an algorithm for encrypting data, and may be at least one of a symmetric encryption algorithm, an asymmetric encryption algorithm, an MD5 algorithm, an SHA1 algorithm, an HMAC algorithm, a DES algorithm, a 3DES algorithm, and an AES algorithm.
It can be understood that the identity information is encrypted based on the preset encryption, so that the risk of identity information leakage of the somatosensory equipment can be reduced, and the safety of connection between the somatosensory equipment and the terminal is improved.
In some embodiments, the motion sensing device is bound to a preset motion sensing game, and the preset motion sensing game can run on the terminal. That is, the motion sensing device is a hardware device developed for the motion sensing game.
In some embodiments, the identity information comprises a unique identification code of the motion sensing device. Specifically, the unique identification code may be a combination of one or more pieces of information such as a MAC address and an ID of the motion sensing device.
In some embodiments, the verifying, by the terminal, whether the identity information of the motion sensing device is legal includes:
and the terminal calls the equipment list of the preset motion sensing game to verify the unique identification code of the motion sensing equipment, and if the unique identification code of the motion sensing equipment is recorded in the equipment list, the unique identification code of the motion sensing equipment is judged to be legal.
The preset device list of the motion sensing game records unique identification codes of all legally produced motion sensing devices. The legally produced body sensing equipment is body sensing equipment produced by a manufacturer or an authorized factory. Specifically, after each legal motion sensing device is produced, the unique identification code of each legal motion sensing device is recorded in the device list, or a plurality of unused unique identification codes are prestored in the device list, each newly produced motion sensing device is granted with one unused unique identification code, and after the granted unique identification code is granted, the state of each newly produced motion sensing device becomes granted.
Specifically, after the terminal scans preset broadcast information, the terminal can call a preset device list of the motion sensing game to inquire whether the received unique identification code is recorded in the device list of the motion sensing game, and if so, the terminal can judge that the unique identification code of the motion sensing device is legal.
It should be noted that, in order to obtain the latest device list, the terminal may be configured to: when a preset somatosensory game equipment list is called each time, checking whether the equipment list is in a latest state, and if not, connecting a preset server to update the equipment list; or, the terminal is set as: and acquiring the equipment list from a server of a preset motion sensing game.
Can understand, through above-mentioned mode, the terminal can be according to predetermineeing the equipment list of body feeling recreation whether legal in order to judge body feeling equipment's identity information, and then makes can to the body feeling recreation that forms a complete set and body feeling equipment carry out specific bluetooth and connect the optimization, so, can avoid causing the interference to being connected between terminal and other bluetooth equipment on promoting body feeling equipment and terminal bluetooth and being connected the basis of experiencing.
In some embodiments, the terminal's bluetooth connection request further includes a connection request random code. Specifically, the request random code refers to an authentication requirement that the bluetooth device is required to provide when the terminal is connected with the bluetooth device. Generally, the bluetooth device side needs the user to manually input response information to establish the bluetooth connection with the terminal.
Correspondingly, the identity information further comprises a response code, and the response code somatosensory device calculates response information of the connection request random code according to a preset algorithm and the connection request random code. It should be noted that the preset algorithm may be embedded in the processor of the motion sensing device in an embedded manner.
In some embodiments, after determining that the unique identification code of the motion sensing device is legal, verifying whether the identity information of the motion sensing device is legal further includes:
the terminal verifies whether the response code is matched with the connection request random code;
and if so, judging that the identity information of the motion sensing equipment is legal.
Specifically, after the validity of the identity information of the motion sensing device is verified, the terminal needs to verify whether a response code returned by the motion sensing device is matched with the broadcasted connection request random code, and if the response code is matched with the broadcasted connection request random code, the motion sensing device responds to the connection request of the terminal. That is to say, when bluetooth connection is performed, the motion sensing device with legal identity information responds to the terminal bluetooth connection request, and then the terminal can directly establish bluetooth connection with the motion sensing device.
In some embodiments, before verifying whether the identity information of the motion sensing device is legal, the method further includes:
the terminal judges whether the body sensing equipment is paired body sensing equipment or not according to the unique identification code;
if yes, the terminal directly establishes Bluetooth connection with the somatosensory equipment.
Specifically, after the terminal establishes the bluetooth connection with the motion sensing device for the first time, the terminal records the unique identification code of the motion sensing device in a trusted device list. When the terminal scans the identity information broadcasted by the body sensing equipment, if the unique identification code of the body sensing equipment is inquired to be in a trusted equipment list, the terminal directly establishes Bluetooth connection with the body sensing equipment, and subsequent validity verification is not needed. Therefore, the connection speed of the motion sensing device and the terminal can be greatly improved, and the user experience is improved.
In some embodiments, the identity information of the motion sensing device further includes historical connection information of the motion sensing device. Specifically, the historical connection information specifically indicates the number of times of bluetooth connection of the motion sensing device, and is used to indicate whether the motion sensing device is connected to the terminal for the first time. The Bluetooth connection times of the body sensing equipment are both 0 when the body sensing equipment leaves a factory and is reset to factory settings, and when the Bluetooth connection times of the body sensing equipment is 0, the body sensing equipment can be judged to be connected for the first time.
As shown in fig. 3, in some embodiments, before verifying whether identity information of the motion sensing device is legal, the method further includes:
s110, the terminal judges whether the somatosensory equipment is connected for the first time or not according to the historical connection information;
s120, if not, the terminal inserts connection confirmation information into the next broadcast data;
s130, the somatosensory device sends a connection confirmation request after scanning the connection confirmation information so as to request a user to perform connection confirmation;
s140, after receiving confirmation feedback of the user based on the connection confirmation request, the body sensing equipment broadcasts the confirmation message;
s150, the terminal establishes Bluetooth connection with the body sensing equipment after scanning the confirmation message.
Specifically, the terminal can determine whether the motion sensing device is connected for the first time according to the number of connection times recorded by the historical connection information, and if the motion sensing device is not connected for the first time, the terminal inserts connection confirmation information into next broadcast data to request the motion sensing device to perform connection confirmation. Then, when the somatosensory device scans the connection confirmation information, a connection confirmation prompt is sent. The connection confirmation prompt is presented in a popup mode, the user feels options of 'confirmation' and 'rejection', and if the user selects the confirmation option, the user is considered to perform confirmation feedback based on the connection confirmation prompt. At this time, the motion sensing device can broadcast the confirmation message, and the terminal can establish bluetooth connection with the motion sensing device after scanning the confirmation message.
Specifically, when the motion sensing device is not connected for the first time, the motion sensing device may establish a bluetooth connection with another terminal. At this time, if the terminal is directly connected with the motion sensing device, the terminal may not conform to the actual intention of the user, and privacy of the user is affected. For example, when the motion sensing device is disconnected from the first terminal, the motion sensing device still scans surrounding broadcasts after being awakened, and at this time, if the second terminal enters a bluetooth range of the motion sensing device, if connection confirmation is not performed, the second terminal is directly connected with the motion sensing device. However, since the relationship between the user of the motion sensing device and the user of the second terminal is unknown, in order to avoid erroneous connection, it is necessary for the motion sensing device to make a connection confirmation request so that the user can determine whether or not to connect the motion sensing device to the second terminal.
It can be understood that through the mode, the error connection of the motion sensing device and the terminal can be avoided, and the privacy of a user is protected.
As shown in fig. 4, in some embodiments, the method further comprises:
s210, if the terminal scans at least two broadcasts containing identity information within a preset time length, the terminal inserts connection confirmation information into the next broadcast data.
Specifically, if the terminal scans at least two broadcasts containing identity information within a preset time length, it is indicated that at least two somatosensory devices to be connected exist around the terminal at the same time, at this time, in order to confirm the somatosensory device finally connected with the terminal, the terminal may insert connection confirmation information into next broadcast data to request the somatosensory device to perform connection confirmation.
And S220, the somatosensory device sends a connection confirmation request after scanning the connection confirmation information so as to request the user to confirm the connection.
Specifically, when the motion sensing device scans the connection confirmation information, a connection confirmation prompt is issued. The connection confirmation prompt is presented in a popup mode, the user feels options of 'confirmation' and 'rejection', and if the user selects the confirmation option, the user is considered to perform confirmation feedback based on the connection confirmation prompt. At this time, the motion sensing device may broadcast this confirmation message.
And S230, the terminal establishes Bluetooth connection with the somatosensory equipment broadcasting the confirmation message.
Specifically, after the terminal scans the confirmation message, the terminal can establish a bluetooth connection with the motion sensing device broadcasting the user confirmation message. When only one body sensing device broadcasts user confirmation information, the terminal establishes Bluetooth connection with the body sensing device; and if the plurality of body sensing devices broadcast the user confirmation information at the same time, the terminal establishes Bluetooth connection with the plurality of body sensing devices at the same time.
It can be understood that make the terminal selectively carry out the bluetooth and connect in a plurality of body sensing equipment through above-mentioned mode, avoid simultaneously with the user privacy problem that a plurality of body sensing equipment lug connection caused.
In some embodiments, after the somatosensory device establishes a bluetooth connection with the terminal, the method further includes:
when the unexpected disconnection of being connected between terminal and the body sensing equipment, then the terminal is in predetermineeing the time length of interval and initiating once connection request at the time length of interval in predetermineeing the time length of overtime, in order to try to connect body sensing equipment is up to reconnection or reach and predetermine the critical value, wherein, predetermine time length of overtime with it is the notch cuttype increase to predetermine the time length of interval.
The accidental disconnection between the terminal and the motion sensing device means that the disconnection between the terminal and the motion sensing device is not the result of user operation. For example, when the terminal is powered off, the connection between the motion sensing device and the terminal is accidentally disconnected; for another example, when the distance between the terminal and the motion sensing device exceeds the bluetooth range, the connection between the terminal and the motion sensing device may be accidentally disconnected.
Further, the preset timeout duration and the preset interval duration are increased in a step-like manner, the preset timeout duration and the preset interval duration can be gradually increased, and the value of each increase is larger and larger until the critical threshold is reached. After the critical threshold value is reached, the motion sensing device does not try to connect the terminal any more so as to guarantee the endurance of the motion sensing device.
For example:
1. when the first accidental connection between the somatosensory device and the terminal is interrupted, the preset timeout duration can be set to be 2 minutes, and the preset interval duration is 10 seconds. In this way, the motion sensing device initiates a connection attempt every 10 seconds within 2 minutes until the connection is successfully ended or a second reconnection is entered overtime.
2. When the first reconnection time is over, it is considered that the sensing device is unlikely to connect to the terminal in a short time, and the preset time-out duration and the preset interval duration may be increased, for example, the preset interval duration is set to 30 seconds and the preset time-out duration is set to 10 minutes. In this way, the motion sensing device initiates a connection attempt every 30 seconds until the connection is successfully ended or a third reconnection is entered over time.
3. By analogy, the longer the time after the accidental disconnection, and the failure of the previous reconnection, the greater the probability that the motion sensing device cannot be reconnected in a short time, so that the preset timeout duration and the preset interval duration can be correspondingly increased.
4. After the preset critical value is reached, if the disconnection between the motion sensing device and the terminal exceeds 30 minutes, the motion sensing device does not try to connect the terminal.
According to the technical scheme, after the somatosensory device is disconnected with the terminal, the somatosensory device can be actively reconnected with the terminal, so that the disconnection problem between the somatosensory device and the terminal is solved, and the use experience of a user is improved.
In addition, the embodiment of the present invention further provides a computer-readable storage medium, which may be any one of or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, and the like. The computer-readable storage medium includes a connection program 10 for a motion sensing device and a terminal, and a specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the specific embodiment of the connection method for a motion sensing device and a terminal and the server 1 described above, and will not be described again here.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for connecting a motion sensing device and a terminal is characterized by comprising the following steps:
the terminal broadcasts a Bluetooth connection request outwards;
if the somatosensory equipment enters a preset awakening state, starting to passively scan surrounding Bluetooth broadcast data;
if the body sensing equipment scans the Bluetooth connection request, identity information is generated based on the Bluetooth connection request, and the identity information is broadcasted outwards;
if the terminal only scans a broadcast containing identity information within a preset time length, after the identity information is verified to be legal, the terminal directly establishes Bluetooth connection with the somatosensory equipment.
2. The method for connecting the motion sensing device to the terminal as claimed in claim 1, wherein the motion sensing device is bound to a preset motion sensing game, the preset motion sensing game is executable on the terminal, and the identity information includes a unique identification code of the motion sensing device;
the terminal verifies whether the identity information of the motion sensing equipment is legal or not, and the method comprises the following steps:
and the terminal calls the equipment list of the preset motion sensing game to verify the unique identification code of the motion sensing equipment, and if the unique identification code of the motion sensing equipment is recorded in the equipment list, the unique identification code of the motion sensing equipment is judged to be legal.
3. The connection method of the motion sensing device and the terminal as claimed in claim 2, wherein the bluetooth connection request further includes a connection request random code;
the identity information further comprises a response code;
after judging that the unique identification code of the motion sensing equipment is legal, verifying whether the identity information of the motion sensing equipment is legal further comprises:
the terminal verifies whether the response code is matched with the connection request random code;
and if the matching is carried out, judging that the identity information of the somatosensory equipment is legal.
4. The method for connecting a somatosensory device to a terminal according to claim 1, wherein before verifying whether identity information of the somatosensory device is legal, the method further comprises:
the terminal judges whether the body sensing equipment is matched body sensing equipment or not according to the unique identification code;
if yes, the terminal directly establishes Bluetooth connection with the somatosensory equipment.
5. The method for connecting the somatosensory device with the terminal as claimed in claim 4, wherein the identity information further comprises historical connection information of the somatosensory device;
before verifying whether the identity information of the body sensing equipment is legal, the method further comprises the following steps:
the terminal judges whether the somatosensory equipment is connected for the first time or not according to the historical connection information;
if not, the terminal inserts connection confirmation information into the next broadcast data;
the somatosensory device sends a connection confirmation request after scanning the connection confirmation information so as to request a user to confirm connection;
after receiving confirmation feedback of the user based on the connection confirmation request, the body sensing equipment broadcasts the confirmation message;
and the terminal establishes Bluetooth connection with the somatosensory equipment after scanning the confirmation message.
6. The method for connecting the somatosensory device with the terminal, according to claim 1, further comprising:
if the terminal scans at least two broadcasts containing identity information within a preset time length, the terminal inserts connection confirmation information into the next broadcast data;
the somatosensory device sends a connection confirmation request after scanning the connection confirmation information so as to request a user to confirm connection; and the terminal establishes Bluetooth connection with the somatosensory equipment broadcasting the confirmation message.
7. The method for connecting the motion sensing device to the terminal as claimed in claim 1, wherein the motion sensing device encrypts the identity information based on a preset encryption algorithm when broadcasting the identity information.
8. The method for connecting the somatosensory device with the terminal, according to claim 1, wherein after the somatosensory device establishes the bluetooth connection with the terminal, the method further comprises:
when the unexpected disconnection of being connected between terminal and the body sensing equipment, then the terminal is in predetermineeing the time length of interval and initiating once connection request at the time length of interval in predetermineeing the time length of overtime, in order to try to connect body sensing equipment is up to reconnection or reach and predetermine the critical value, wherein, predetermine time length of overtime with it is the notch cuttype increase to predetermine the time length of interval.
9. A connecting device of a body sensing device and a terminal, which is characterized by comprising a memory, a processor and a connecting program of the body sensing device and the terminal, wherein the connecting program is stored in the memory and can run on the processor, and the processor realizes the connecting method of the body sensing device and the terminal according to any one of claims 1 to 8 when executing the connecting program of the body sensing device and the terminal.
10. A computer-readable storage medium, having a program for connecting a motion-sensing device to a terminal stored thereon, the program for connecting a motion-sensing device to a terminal implementing a method for connecting a motion-sensing device to a terminal according to any one of claims 1 to 8 when executed by a processor.
CN202210697246.3A 2022-06-20 2022-06-20 Method and device for connecting somatosensory device and terminal and computer-readable storage medium Pending CN115002780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210697246.3A CN115002780A (en) 2022-06-20 2022-06-20 Method and device for connecting somatosensory device and terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210697246.3A CN115002780A (en) 2022-06-20 2022-06-20 Method and device for connecting somatosensory device and terminal and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115002780A true CN115002780A (en) 2022-09-02

Family

ID=83034442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210697246.3A Pending CN115002780A (en) 2022-06-20 2022-06-20 Method and device for connecting somatosensory device and terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115002780A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024066715A1 (en) * 2022-09-30 2024-04-04 广东美的制冷设备有限公司 Bluetooth connection method and device, storage medium and bluetooth device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024066715A1 (en) * 2022-09-30 2024-04-04 广东美的制冷设备有限公司 Bluetooth connection method and device, storage medium and bluetooth device

Similar Documents

Publication Publication Date Title
CN109417758B (en) Bluetooth connection method and terminal
CN109951362B (en) Electronic device and method for controlling nodes in a network
US11197347B2 (en) Apparatus and method for communicating by using bluetooth low energy
TWI615812B (en) Time card punching system
CN107079031B (en) User authentication-based approval of a first device via communication with a second device
EP3276910B1 (en) Bluetooth-based identity recognition method and device
US9900919B1 (en) Adaptive beacon rate system
WO2017096970A1 (en) Method and device for determining position of target portable device
WO2014092772A1 (en) Device-to-device (d2d) discovery without authenticating through cloud
US20190089693A1 (en) Systems and methods for authenticating internet-of-things devices
US20200336897A1 (en) Pairing devices based on distance
WO2023284454A1 (en) Bluetooth connection prompting method and apparatus, device, storage medium, and program product
TW201924300A (en) Systems and methods for context-based device address generation
US11647564B2 (en) Apparatus and method for performing data communication in NAN protocol-based network environment
US20100254314A1 (en) Wireless communication terminal
CN107079273B (en) Communication between devices without establishing a persistent connection
CN115002780A (en) Method and device for connecting somatosensory device and terminal and computer-readable storage medium
KR20200031275A (en) Electronic device for performing authorization using accessory and method for the same
CN116471589A (en) Techniques for verifying user intent and securely configuring a computing device
US11425668B2 (en) Electronic device for performing device-to-device communication and method therefor
CN110063052B (en) Method and system for confirming pairing
KR102349272B1 (en) Electronic apparatus for controlling registration session and operating method thereof, server and operating method thereof
US20200367142A1 (en) Electronic apparatus and method for controlling the same
CN104778065B (en) Information downloading method and terminal
JP4072428B2 (en) Control method of access point device having a plurality of access point units, control program, and access point device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination