CN117939475A - Bluetooth remote controller control method and system based on BLE - Google Patents

Bluetooth remote controller control method and system based on BLE Download PDF

Info

Publication number
CN117939475A
CN117939475A CN202311859571.6A CN202311859571A CN117939475A CN 117939475 A CN117939475 A CN 117939475A CN 202311859571 A CN202311859571 A CN 202311859571A CN 117939475 A CN117939475 A CN 117939475A
Authority
CN
China
Prior art keywords
host
bluetooth remote
remote controller
key
hosts
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
CN202311859571.6A
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.)
Guangdong Seneasy Intelligent Technology Co ltd
Original Assignee
Guangdong Seneasy Intelligent 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 Guangdong Seneasy Intelligent Technology Co ltd filed Critical Guangdong Seneasy Intelligent Technology Co ltd
Priority to CN202311859571.6A priority Critical patent/CN117939475A/en
Publication of CN117939475A publication Critical patent/CN117939475A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a BLE-based Bluetooth remote controller control method and system, which are characterized in that after being respectively paired with a plurality of hosts, the BLE-based Bluetooth remote controller performs key exchange with the hosts which are paired, stores the keys, temporarily breaks a chain or links back with a preset host according to actual application, and obtains an initial key of the host and decrypts the key when the link back is performed, so that the link back can be rapidly completed, the control of the Bluetooth remote controller on the host is rapidly realized, the hosts are controlled through keys corresponding to different hosts, the corresponding voice decoding is performed between a voice decoding library and the hosts, and a plurality of remote controllers are not required to control different hosts, thereby effectively saving the cost; and the Bluetooth remote controller and the host are not required to be paired again, so that the control efficiency is improved, and the experience of a user is better.

Description

Bluetooth remote controller control method and system based on BLE
Technical Field
The invention relates to the technical field of Bluetooth remote controllers, in particular to a BLE-based Bluetooth remote controller control method and system.
Background
With the development of AI technology, the voice control is now visible everywhere, so that the Bluetooth voice remote controller becomes standard for TV and set top boxes, but the Bluetooth remote controllers based on BLE control on the market are all one-to-one control, and the same Bluetooth remote controller can only be connected with one host device in a pairing way, so that a plurality of remote controllers in a home need to be replaced back and forth to control the host device to be controlled; or even the same Bluetooth remote controller can be used for controlling multiple host devices, and the new device can be controlled by pairing with the new host device again when the new device is required to be controlled, so that the whole control process is complicated, and the user experience is seriously influenced.
Disclosure of Invention
Based on this, it is necessary to provide a bluetooth remote control method and system based on BLE.
A BLE-based Bluetooth remote controller control method is characterized in that: comprising
Pairing with a plurality of hosts respectively;
Performing key exchange with a plurality of paired hosts;
Storing the key;
according to actual application, temporarily breaking or reconnecting with the preset host;
the host is controlled through keys corresponding to different hosts;
And performing corresponding voice decoding with the host through a voice decoding library.
In one embodiment, the method for pairing with a plurality of hosts respectively includes:
Judging whether the host transmits a broadcast signal or not, if so, performing the next step;
Sending pairing request information to the host;
and finishing pairing with the host.
In one embodiment, the method for performing key exchange with the paired hosts is as follows;
The bluetooth remote controller generates a random number Mrand and uses this Mrand to calculate the Mconfirm value;
the host also generates a random number Srand and uses this Srand to calculate the Sconfirm value;
The Bluetooth remote controller sends the Mconfirm value calculated by the Bluetooth remote controller to the host, and the host also sends the Sconfirm value calculated by the Bluetooth remote controller to the Bluetooth remote controller;
After receiving Sconfirm, the Bluetooth remote controller sends Mrand value to the host;
after receiving Mrand values, the host calculates Mconfirm values of the Bluetooth remote controllers, compares the Mconfirm values with Mconfirm values sent by the previous Bluetooth remote controllers, and if the values are the same, the host sends Srand values of the corresponding values to the Bluetooth remote controllers;
The bluetooth remote controller also calculates Sconfirm of the received Srand value, compares with Sconfirm sent by the previous host, and if the values are the same, completes key exchange.
In one embodiment, the method for temporarily breaking the link according to the actual application and the preset host includes:
Transmitting a link disconnection request message to the host;
judging whether a response message sent by the host is received within preset time, if so, carrying out the next step;
and if the response message sent by the host is received within the preset time, executing the chain breaking operation.
In one embodiment, the method for performing the reconnection with the preset host according to the actual application includes:
sending the reconnection information to the host computer needing reconnection;
acquiring a key which needs to be transmitted by the host in a reconnection way;
and judging whether the key sent by the host is the same as the storage key, if so, completing the reconnection.
In one embodiment, the method for controlling the host through the keys corresponding to different hosts includes;
Determining the host computer to be controlled;
Determining a key value corresponding to the host key;
and controlling the host through key values of different keys.
In one embodiment, the method for performing corresponding voice decoding with the host through the voice decoding library is as follows:
Transmitting a signal for acquiring the host voice platform to the host;
Acquiring the host voice platform information;
Transmitting voice decoding information corresponding to the voice platform information to the host;
and finishing the voice decoding of the host.
Bluetooth remote controller control system based on BLE, its characterized in that: comprising the following steps:
the Bluetooth pairing module is used for completing pairing and key exchange between the remote controller and the host;
the key storage module is used for completing the functions of key storage and key release;
the host communication control module is used for actively initiating temporary broken links and establishing a reconnection request with a new host according to the selected host;
the Bluetooth remote controller sends out corresponding key control instructions through the host computer selected by the user at present according to the instructions of different control keys arranged in different host computers;
The voice recognition module is used for storing a voice decoding library and automatically matching a voice encoding and decoding scheme with the host through the built-in voice encoding and decoding library according to the selected host, so that voice control of the host is realized.
According to the BLE-based Bluetooth remote controller control method and system, after the BLE-based Bluetooth remote controller control method and system are respectively paired with a plurality of hosts, key exchange is carried out on the paired hosts, the keys are stored, temporary chain breakage or reconnection is carried out on the hosts according to actual application, when reconnection is carried out, the remote controller obtains the initial keys of the hosts and decrypts the initial keys, so that reconnection can be rapidly completed, the Bluetooth remote controller can rapidly control the hosts, the hosts are controlled through keys corresponding to different hosts, corresponding voice decoding is carried out on the hosts through a voice decoding library, and a plurality of remote controllers are not required to control different hosts, thereby effectively saving cost; and the Bluetooth remote controller and the host are not required to be paired again, so that the control efficiency is improved, and the experience of a user is better.
Drawings
Fig. 1 is a flow chart of a bluetooth remote control method based on BLE according to an embodiment of the invention;
Fig. 2 is a schematic diagram of S1 of a bluetooth remote control method based on BLE according to an embodiment of the invention in fig. 1;
Fig. 3 is a schematic diagram of S2 of a bluetooth remote control method based on BLE according to an embodiment of the invention in fig. 1;
Fig. 4 is a schematic flow chart of an S4 interrupt chain of a bluetooth remote control method based on BLE according to an embodiment of the invention;
Fig. 5 is a schematic flow chart of the loop in S4 of the bluetooth remote control method based on BLE according to an embodiment of the invention;
Fig. 6 is a flowchart of S5 of a bluetooth remote control method based on BLE according to an embodiment of the invention.
Detailed Description
In order that the above objects, features and advantages of the invention will be readily understood, a more particular description of the invention will be rendered by reference to the appended drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The present invention may be embodied in many other forms than described herein and similarly modified by those skilled in the art without departing from the spirit of the invention, whereby the invention is not limited to the specific embodiments disclosed below.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. In contrast, when an element is referred to as being "directly connected" to another element, there are no intervening elements present.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
As shown in fig. 1, a bluetooth remote controller control method based on BLE is characterized in that: comprising
S1, respectively pairing with a plurality of hosts; as shown in the figure 2 of the drawings,
S11, judging whether the host transmits a broadcast signal or not, if yes, performing the next step; the broadcast signals are interval signals, namely, the broadcast signals are sent once every interval period t, and each time of the broadcast signals sends a plurality of broadcast packets to the Bluetooth remote controller; the Bluetooth remote controller needs to open a receiving window at the moment;
S12, sending pairing request information to the host; after receiving the host broadcast packet adv_ind, the bluetooth remote controller uses the packet adv_ind as an initial anchor point to send connection request command to the host, and tells the host that you will come to connect with you, and is ready. The bluetooth remote control is forced to delay 1.25ms after the connection request is sent, followed by a transmit window offset, and a transmit window. The transmit window offset may be any value between 0 and the connection interval, but must be an integer multiple of 1.25 ms. Starting from the transmit window, the slave host must open an RX window to receive the P1 packet sent from the handset. If the end of the transmission window has not received the P1 packet, the slave terminates the listening and will try again after the next connection interval.
S13, pairing with the host computer is completed. The host computer makes ready to receive according to connect_req command information, so that the Bluetooth remote controller and the host computer complete pairing.
S2, as shown in FIG. 3, carrying out key exchange with a plurality of hosts which complete pairing;
Generating a 128-bit random number Mrand by the Bluetooth remote controller, and calculating a Mconfirm value of 128-bit by using the Mrand in combination with c1 in the password tool kit;
the host also generates a 128-bit random number Srand and uses this Srand in combination with c1 in the cryptographic tool box to calculate a Sconfirm value of 128-bits;
The Bluetooth remote controller sends the Mconfirm value calculated by the Bluetooth remote controller to the host through a Pairing Confirm packet, and the host also sends the Sconfirm value calculated by the Bluetooth remote controller to the Bluetooth remote controller through the Pairing Confirm packet;
After receiving Sconfirm, the Bluetooth remote controller sends Mrand value to the host through a Pairing Random packet;
After receiving Mrand the host calculates its Mconfirm value, and then compares it with Mconfirm value sent from the previous bluetooth remote controller, if different descriptions fail. If the values are the same, the host computer also sends the Srand values to the Bluetooth remote controller through a Pairing Random packet;
The bluetooth remote controller also calculates Sconfirm of the received Srand value, compares with Sconfirm sent by the host, and continues if the pairing is failed according to the different instructions.
S3, storing the secret key; storing the key of the Bluetooth remote controller in a corresponding host, and storing the key of the corresponding host in the Bluetooth remote controller;
S4, performing temporary chain breakage or reconnection with a preset host according to actual application; as shown in figure 4 of the drawings,
S41, sending a link disconnection request message to the host; preparing to make a new host connection;
S42, judging whether the response message sent by the host is received within preset time, if yes, carrying out the next step; if the host agrees to disconnect, a message agreeing to disconnect is sent;
s43, if the response message sent by the host is received within the preset time, executing the chain breaking operation.
The method for carrying out reconnection with the preset host according to the actual application comprises the following steps: as shown in figure 5 of the drawings,
S44, sending the reconnection information to the host computer needing reconnection;
s45, acquiring a key which needs to be transmitted by the host in a reconnection mode;
S46, judging whether the key sent by the host is the same as the storage key, if so, completing the reconnection.
The Bluetooth remote controller sends Mrand values to a host through a Pairing Random packet;
After receiving Mrand the host calculates Mconfirm value, and then compares it with Mconfirm value sent from the previous bluetooth remote controller, if different states that the connection fails. If the values are the same, the host computer also sends the Srand values to the Bluetooth remote controller through a Pairing Random packet;
The Bluetooth remote controller also calculates Sconfirm value from the received Srand value and follows the previous master
The Sconfirm values sent by the machine are compared, if the values are different, the return connection fails, and if the values are the same, the return connection becomes work. In the prior art, the keys of the Bluetooth remote controller and the host are updated once every time, namely if the Bluetooth remote controller and the host are disconnected and the connection is re-performed next time, the system generates a new set of keys to cover the previous keys, and the calculation of the keys is needed to be performed again, so that the efficiency of the whole pairing connection is not high. The application always uses the same secret key, when the Bluetooth remote controller is connected back, the Bluetooth remote controller also calculates Sconfirm value by calculating Srand value, and compares with Sconfirm value sent by the host, if the same value is the same, the connection is successful, so that the overall connection efficiency is higher.
As shown in fig. 6, S5, the host is controlled by the keys corresponding to different hosts;
S51, determining the host computer to be controlled;
S52, determining a key value corresponding to the host key; and determining key values of keys corresponding to the Bluetooth remote controller according to different hosts, namely determining control functions of the specific keys.
S53, controlling the host through key values of different keys.
S6, performing corresponding voice decoding with the host through a voice decoding library.
S61, sending a signal for acquiring the host voice platform to the host; a plurality of groups of voice decoding protocols are stored in the Bluetooth remote controller;
s62, acquiring the host voice platform information; i.e. which speech decoding protocol the host is adapted to is obtained;
s63, voice decoding information corresponding to the voice platform information is sent to the host; decoding the host by using a corresponding voice decoding protocol;
S64, finishing the voice decoding of the host.
Bluetooth remote controller control system based on BLE, its characterized in that: comprising the following steps:
the Bluetooth pairing module is used for completing pairing and key exchange between the remote controller and the host;
the key storage module is used for completing the functions of key storage and key release;
the host communication control module is used for actively initiating temporary broken links and establishing a reconnection request with a new host according to the selected host;
the Bluetooth remote controller sends out corresponding key control instructions through the host computer selected by the user at present according to the instructions of different control keys arranged in different host computers;
The voice recognition module is used for storing a voice decoding library and automatically matching a voice encoding and decoding scheme with the host through the built-in voice encoding and decoding library according to the selected host, so that voice control of the host is realized.
The working principle of the application is as follows: according to the BLE-based Bluetooth remote controller control method and system, after the BLE-based Bluetooth remote controller control method and system are respectively paired with a plurality of hosts, key exchange is carried out with the hosts which are paired, the keys are stored, temporary chain breakage or reconnection is carried out with a preset host according to actual application, when reconnection is carried out, the remote controller obtains an initial key of the host and decrypts the initial key, so that reconnection can be rapidly completed, the Bluetooth remote controller can rapidly control the host, the hosts are controlled through keys corresponding to different hosts, corresponding voice decoding is carried out with the hosts through a voice decoding library, and a plurality of remote controllers are not required to control different hosts, thereby effectively saving cost; and the Bluetooth remote controller and the host do not need to be paired again, so that the control efficiency is improved.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (8)

1. A BLE-based Bluetooth remote controller control method is characterized in that: comprising
Pairing with a plurality of hosts respectively;
Performing key exchange with a plurality of paired hosts;
Storing the key;
according to actual application, temporarily breaking or reconnecting with the preset host;
the host is controlled through keys corresponding to different hosts;
And performing corresponding voice decoding with the host through a voice decoding library.
2. The bluetooth remote control method based on BLE according to claim 1, wherein: the method for pairing with a plurality of hosts respectively comprises the following steps:
Judging whether the host transmits a broadcast signal or not, if so, performing the next step;
Sending pairing request information to the host;
and finishing pairing with the host.
3. The bluetooth remote control method based on BLE according to claim 1, wherein: the key exchange method with the paired hosts comprises the following steps of;
The bluetooth remote controller generates a random number Mrand and uses this Mrand to calculate the Mconfirm value;
the host also generates a random number Srand and uses this Srand to calculate the Sconfirm value;
The Bluetooth remote controller sends the Mconfirm value calculated by the Bluetooth remote controller to the host, and the host also sends the Sconfirm value calculated by the Bluetooth remote controller to the Bluetooth remote controller;
After receiving Sconfirm, the Bluetooth remote controller sends Mrand value to the host;
after receiving Mrand values, the host calculates Mconfirm values of the Bluetooth remote controllers, compares the Mconfirm values with Mconfirm values sent by the previous Bluetooth remote controllers, and if the values are the same, the host sends Srand values of the corresponding values to the Bluetooth remote controllers;
The bluetooth remote controller also calculates Sconfirm of the received Srand value, compares with Sconfirm sent by the previous host, and if the values are the same, completes key exchange.
4. The bluetooth remote control method based on BLE according to claim 1, wherein: the method for temporarily breaking the chain according to the actual application and the preset host comprises the following steps:
Transmitting a link disconnection request message to the host;
judging whether a response message sent by the host is received within preset time, if so, carrying out the next step;
and if the response message sent by the host is received within the preset time, executing the chain breaking operation.
5. The bluetooth remote control method based on BLE according to claim 1, wherein: the method for carrying out reconnection with the preset host according to the actual application comprises the following steps:
sending the reconnection information to the host computer needing reconnection;
acquiring a key which needs to be transmitted by the host in a reconnection way;
and judging whether the key sent by the host is the same as the storage key, if so, completing the reconnection.
6. The bluetooth remote control method based on BLE according to claim 1, wherein: the method for controlling the host through the keys corresponding to different hosts comprises the following steps of;
Determining the host computer to be controlled;
Determining a key value corresponding to the host key;
and controlling the host through key values of different keys.
7. The bluetooth remote control method based on BLE according to claim 1, wherein: the method for performing corresponding voice decoding with the host through the voice decoding library comprises the following steps:
Transmitting a signal for acquiring the host voice platform to the host;
Acquiring the host voice platform information;
Transmitting voice decoding information corresponding to the voice platform information to the host;
and finishing the voice decoding of the host.
8. Bluetooth remote controller control system based on BLE, its characterized in that: comprising the following steps:
the Bluetooth pairing module is used for completing pairing and key exchange between the remote controller and the host;
the key storage module is used for completing the functions of key storage and key release;
the host communication control module is used for actively initiating temporary broken links and establishing a reconnection request with a new host according to the selected host;
the Bluetooth remote controller sends out corresponding key control instructions through the host computer selected by the user at present according to the instructions of different control keys arranged in different host computers;
The voice recognition module is used for storing a voice decoding library and automatically matching a voice encoding and decoding scheme with the host through the built-in voice encoding and decoding library according to the selected host, so that voice control of the host is realized.
CN202311859571.6A 2023-12-30 2023-12-30 Bluetooth remote controller control method and system based on BLE Pending CN117939475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311859571.6A CN117939475A (en) 2023-12-30 2023-12-30 Bluetooth remote controller control method and system based on BLE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311859571.6A CN117939475A (en) 2023-12-30 2023-12-30 Bluetooth remote controller control method and system based on BLE

Publications (1)

Publication Number Publication Date
CN117939475A true CN117939475A (en) 2024-04-26

Family

ID=90751506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311859571.6A Pending CN117939475A (en) 2023-12-30 2023-12-30 Bluetooth remote controller control method and system based on BLE

Country Status (1)

Country Link
CN (1) CN117939475A (en)

Similar Documents

Publication Publication Date Title
EP3468068B1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
JP4108495B2 (en) Station discovery processing method and wireless communication apparatus
US20180332565A1 (en) Wireless communication device, wireless communication system, wireless communication method and program
CN105635943B (en) Low-power-consumption Bluetooth beacon data interaction device, beacon device and method
JP2005531961A (en) Bluetooth remote access device
JP4065103B2 (en) Authentication method for connection setting between devices
CN110383767B (en) Topology switching method, device and system based on synchronous link and storage medium
TW201330523A (en) System and method for facilitating wireless communication
CN110263508B (en) Identity authentication method and system for remote control parking
JP2002261686A (en) Method for link connection between communication terminals having bluetooth wireless device
CN111277610A (en) Gateway control system, method, intelligent device and intelligent device server
CN113157300A (en) Data processing method, device and storage medium
CN111757206A (en) Communication method between charging box and earphone, charging box, earphone and storage medium
CN115868184A (en) Accelerating control procedures on services oriented to BLE connections
TW202112101A (en) Key generation and terminal provisioning method and apparatus, and devices
CN101359423B (en) Remote control method for permanent magnet operating mechanism
CN103856228A (en) Wireless human-computer interaction method and system
CN117939475A (en) Bluetooth remote controller control method and system based on BLE
CN111787514B (en) Method and device for acquiring equipment control data, storage medium and electronic device
JP2003078475A (en) Radio transmitter-receiver
CN110677302B (en) Communication control method, device and system
EP3024285A1 (en) Wireless communication device
EP3024287B1 (en) Wireless communication device
JP2005535251A (en) Centralized control architecture and method for events occurring in communication with a remote peripheral electronic device
JP2007243240A (en) Wireless authentication system, mobile unit, wireless key, and wireless authentication method

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