CN113453205B - Bluetooth remote controller recovery method, system and computer storage medium - Google Patents

Bluetooth remote controller recovery method, system and computer storage medium Download PDF

Info

Publication number
CN113453205B
CN113453205B CN202110574893.0A CN202110574893A CN113453205B CN 113453205 B CN113453205 B CN 113453205B CN 202110574893 A CN202110574893 A CN 202110574893A CN 113453205 B CN113453205 B CN 113453205B
Authority
CN
China
Prior art keywords
bluetooth
remote controller
broadcast
mac address
awakening
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110574893.0A
Other languages
Chinese (zh)
Other versions
CN113453205A (en
Inventor
余锋
金凌琳
王超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dangqu Network Technology Hangzhou Co Ltd
Original Assignee
Dangqu Network Technology Hangzhou 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 Dangqu Network Technology Hangzhou Co Ltd filed Critical Dangqu Network Technology Hangzhou Co Ltd
Priority to CN202110574893.0A priority Critical patent/CN113453205B/en
Publication of CN113453205A publication Critical patent/CN113453205A/en
Application granted granted Critical
Publication of CN113453205B publication Critical patent/CN113453205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/28Discontinuous transmission [DTX]; Discontinuous reception [DRX]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • 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

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Selective Calling Equipment (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a method, a system and a computer storage medium for searching a Bluetooth remote controller, wherein the method comprises the following steps: a first Bluetooth module of the display equipment broadcasts a Bluetooth awakening broadcast packaged with an MAC address of the display equipment outwards; if the remote control instruction of the remote controller is not detected within the preset time length of the display equipment, the display equipment displays the two-dimensional code; the mobile phone scans the two-dimensional code to obtain the MAC address of the display device, establishes a virtual machine, simulates a first Bluetooth module of the display device by using hardware of the mobile phone, and broadcasts a Bluetooth awakening broadcast packaged with the MAC address to the outside; when the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller to enter a working mode from a low power consumption mode, and the Bluetooth remote controller outputs preset positioning prompt information. The invention effectively guides the user to find the Bluetooth remote controller, so that the Bluetooth remote controller is not easy to lose, and the user can quickly find the Bluetooth remote controller.

Description

Bluetooth remote controller recovery method, system and computer storage medium
Technical Field
The present application relates to the field of intelligent device control technologies, and in particular, to a method and a system for retrieving a bluetooth remote controller, and a computer storage medium.
Background
The remote controller is a wireless transmitting device, the key information is coded by a modern digital coding technology, a light wave is transmitted by an infrared diode, the light wave converts a received infrared signal into an electric signal by an infrared receiver of a receiver, the electric signal is decoded by a processor, and a corresponding command which is demodulated does not reach the operation requirement for controlling equipment such as a set top box and the like to complete.
At present, display equipment such as projectors, televisions and the like are generally provided with corresponding Bluetooth remote controllers, but people often lose the Bluetooth remote controllers in the process of using the Bluetooth remote controllers, for example, projectors or televisions generally have different users to use the Bluetooth remote controllers in different periods, the placement positions of each person are possibly different, the situation that the Bluetooth remote controllers cannot be found often occurs, and the normal use of the users to the display equipment is seriously influenced.
Disclosure of Invention
The embodiments of the present application mainly aim to provide a method, a system, and a computer storage medium for retrieving a bluetooth remote controller, which aim to solve the technical problems that the bluetooth remote controller is frequently lost and is difficult for a user to find.
In order to achieve the above object, an embodiment of the present application provides a bluetooth remote controller retrieving method, where the bluetooth remote controller retrieving method is applied to a bluetooth remote controller retrieving system, where the bluetooth remote controller retrieving system includes a display device, a bluetooth remote controller, and a smart phone;
the Bluetooth remote controller searching method comprises the following steps:
after the display equipment is started, a first Bluetooth module of the display equipment broadcasts a Bluetooth awakening broadcast packaged with an MAC address of the display equipment to the outside;
if the remote control instruction of the remote controller is not detected within the preset time of the display equipment, the display equipment displays a two-dimensional code, and the two-dimensional code contains the MAC address of the display equipment
The mobile phone scans the two-dimensional code to obtain the MAC address of the display equipment, establishes a virtual machine, simulates a first Bluetooth module of the display equipment by using hardware of the mobile phone, and broadcasts a Bluetooth awakening broadcast packaged with the MAC address to the outside; outputting prompt information for guiding a user to walk in an indoor space provided with display equipment in the process of broadcasting the Bluetooth awakening broadcast by the mobile phone;
after the Bluetooth remote controller enters a standby state, a second Bluetooth module of the Bluetooth remote controller enters a low power consumption mode, and the second Bluetooth module only receives Bluetooth awakening broadcast when in the low power consumption mode; when the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller to enter a working mode from a low power consumption mode, and the Bluetooth remote controller outputs preset positioning prompt information.
Optionally, the step of establishing a virtual machine by the mobile phone, simulating a first bluetooth module of a display device by using hardware of the mobile phone, and broadcasting a bluetooth wakeup broadcast encapsulated with the MAC address to the outside includes:
the mobile phone starts a virtual machine process, establishes a virtual machine, and sets a virtual Bluetooth front end in the virtual machine; setting a virtual Bluetooth rear end for a third Bluetooth module of the mobile phone; the virtual Bluetooth front end of the virtual machine in the mobile phone and the virtual Bluetooth rear end of the third Bluetooth module perform cross-system communication in a shared memory mode;
the mobile phone assigns a hardware address of a virtual Bluetooth module in the virtual machine to the MAC address so as to simulate a first Bluetooth module of the display equipment; the mobile phone triggers the virtual Bluetooth module to send a control instruction of Bluetooth awakening broadcast so that the virtual Bluetooth front end can send the control instruction to the virtual Bluetooth rear end of the third Bluetooth module to control the third Bluetooth module to call a corresponding Bluetooth driving function in the kernel, and therefore the third Bluetooth module can broadcast the Bluetooth awakening broadcast packaged with the MAC address outwards.
Optionally, before the display device displays the two-dimensional code, the display device increases the power of the first bluetooth module, and the display device controls the first bluetooth module to broadcast a bluetooth wakeup broadcast encapsulated with the MAC address of the display device to the outside with the increased power; the display device counts the time length of the remote control command of the remote controller is not detected.
Optionally, the step of scanning the two-dimensional code by the mobile phone and acquiring the MAC address of the display device by the mobile phone includes:
the mobile phone scans the two-dimensional code to access the URL address pointed by the two-dimensional code, and the initial state of the MAC address in the URL address is a shielding state;
the display device detects that the URL address pointed by the two-dimensional code is accessed, displays the preset random characters and starts a microphone of the display device, and the display device sends prompt information for prompting a user to read the preset random characters to the mobile phone;
the method comprises the steps that a display device collects surrounding environment audio frequencies and carries out voice recognition on the surrounding environment audio frequencies to obtain corresponding audio characters; the display equipment compares the audio words with the preset random words, and if the audio words are matched with the preset random words, the display equipment adjusts the MAC address in the URL address to be in an accessible state so that the mobile phone can obtain the MAC address of the display equipment.
Optionally, the positioning prompt message includes one or more of sounding, lighting and vibration;
after the step of the bluetooth remote controller outputting the preset positioning prompt message, the method further comprises the following steps:
and when the acceleration unit time variation of the Bluetooth remote controller is larger than a preset acceleration value, the Bluetooth remote controller stops outputting the positioning prompt information.
Optionally, the bluetooth remote controller retrieving method further includes:
after the Bluetooth remote controller enters a standby state, the Bluetooth remote controller detects whether a pre-stored local awakening file is empty or not; if the local awakening file is not empty, the Bluetooth remote controller acquires a local MAC address in the local awakening file, wherein the local MAC address is the MAC address of the display equipment successfully matched with the Bluetooth remote controller; at most one local MAC address is stored in a local awakening file of the Bluetooth remote controller;
when the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller so as to enter a working mode from a low power consumption mode, and the step comprises the following steps:
when the Bluetooth remote controller receives the Bluetooth awakening broadcast, analyzing the Bluetooth awakening broadcast to acquire a broadcast MAC address in the Bluetooth awakening broadcast;
the Bluetooth remote controller compares the local MAC address with the broadcast MAC address, and if the local MAC address is matched with the broadcast MAC address, a broadcast key instruction of the Bluetooth wakeup broadcast is obtained and identified;
and if the broadcast key instruction is a preset startup and shutdown instruction, a second Bluetooth module of the Bluetooth remote controller wakes up the Bluetooth remote controller to enter a working mode from a low power consumption mode.
Optionally, the analyzing the bluetooth wakeup broadcast to obtain the broadcast MAC address in the bluetooth wakeup broadcast includes:
the Bluetooth remote controller analyzes the message of the Bluetooth awakening broadcast and extracts the broadcast manufacturer information of the manufacturer field in the Bluetooth awakening broadcast; the message content of the broadcast information is a message length field, a manufacturer field, an MAC address field and a key instruction field in sequence;
comparing the broadcast manufacturer information with local manufacturer information prestored in the Bluetooth remote controller;
if the broadcast manufacturer information is not matched with the local manufacturer information, the Bluetooth remote controller discards the Bluetooth awakening broadcast;
and if the broadcast manufacturer information is matched with the local manufacturer information, the Bluetooth awakening broadcast extracts the broadcast MAC address in the Bluetooth awakening broadcast.
Optionally, after the step of detecting whether the pre-stored local wake-up file is empty by the bluetooth remote controller, the method further includes:
if the local wake-up file is empty, when a second Bluetooth module of the Bluetooth remote controller receives the Bluetooth wake-up broadcast, the Bluetooth remote controller judges whether the signal intensity of the Bluetooth wake-up broadcast is greater than a preset intensity threshold value;
if the signal intensity of the Bluetooth awakening broadcast is greater than the preset intensity threshold value, when the broadcast manufacturer information is matched with the local manufacturer information in the Bluetooth awakening broadcast, the Bluetooth remote controller stores the broadcast MAC address in the Bluetooth awakening broadcast into a local awakening file to serve as a local MAC address, and Bluetooth pairing between the second Bluetooth module and the display equipment which sends the Bluetooth awakening broadcast is achieved;
and the Bluetooth remote controller executes the step of acquiring and identifying the broadcast key instruction of the Bluetooth wakeup broadcast.
Optionally, the bluetooth remote controller retrieving method further includes:
after the signal intensity of the Bluetooth awakening broadcast is determined to be greater than a preset intensity threshold value, the Bluetooth remote controller detects whether a preset key combination event is triggered by a key board;
if the preset key combination triggering event is not detected, no response is made;
if the preset key combination triggering event is detected, further comparing the broadcast manufacturer information and the local manufacturer information in the Bluetooth awakening broadcast;
and when the broadcast manufacturer information in the broadcast information is matched with the local manufacturer information, executing the step that the Bluetooth remote controller stores the broadcast MAC address in the Bluetooth awakening broadcast into a local awakening file to be used as the local MAC address.
Optionally, after the step of acquiring and identifying the broadcast key instruction of the bluetooth wakeup broadcast, the method further includes:
and if the broadcast key instruction is not a preset startup and shutdown instruction, discarding the broadcast information by the Bluetooth remote controller.
In order to achieve the above object, the present application further provides a bluetooth remote controller retrieving system, which includes a display device, a bluetooth remote controller, and a smart phone;
the interactive process of the Bluetooth remote controller recovery system is as follows:
after the display equipment is started, a first Bluetooth module of the display equipment broadcasts a Bluetooth awakening broadcast packaged with an MAC address of the display equipment to the outside;
if the remote control instruction of the remote controller is not detected within the preset time of the display equipment, the display equipment displays a two-dimensional code, and the two-dimensional code contains the MAC address of the display equipment
The mobile phone scans the two-dimensional code to obtain the MAC address of the display equipment, establishes a virtual machine, simulates a first Bluetooth module of the display equipment by using hardware of the mobile phone, and broadcasts a Bluetooth awakening broadcast packaged with the MAC address to the outside; outputting prompt information for guiding a user to walk in an indoor space provided with display equipment in the process of broadcasting the Bluetooth awakening broadcast by the mobile phone;
after the Bluetooth remote controller enters a standby state, a second Bluetooth module of the Bluetooth remote controller enters a low power consumption mode, and the second Bluetooth module only receives Bluetooth awakening broadcast when in the low power consumption mode; when the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller to enter a working mode from a low power consumption mode, and the Bluetooth remote controller outputs preset positioning prompt information.
Optionally, the step of establishing a virtual machine by the mobile phone, simulating a first bluetooth module of a display device by using hardware of the mobile phone, and broadcasting a bluetooth wakeup broadcast encapsulated with the MAC address to the outside includes:
the mobile phone starts a virtual machine process, establishes a virtual machine, and sets a virtual Bluetooth front end in the virtual machine; setting a virtual Bluetooth rear end for a third Bluetooth module of the mobile phone; the virtual Bluetooth front end of the virtual machine in the mobile phone and the virtual Bluetooth rear end of the third Bluetooth module perform cross-system communication in a shared memory mode;
the mobile phone assigns a hardware address of a virtual Bluetooth module in the virtual machine to the MAC address so as to simulate a first Bluetooth module of the display equipment; the mobile phone triggers the virtual Bluetooth module to send a control instruction of Bluetooth awakening broadcast so that the virtual Bluetooth front end can send the control instruction to the virtual Bluetooth rear end of the third Bluetooth module to control the third Bluetooth module to call a corresponding Bluetooth driving function in the kernel, and therefore the third Bluetooth module can broadcast the Bluetooth awakening broadcast packaged with the MAC address outwards.
Optionally, before the display device displays the two-dimensional code, the display device increases the power of the first bluetooth module, and the display device controls the first bluetooth module to broadcast a bluetooth wakeup broadcast encapsulated with the MAC address of the display device to the outside with the increased power; the display device counts the time length of the remote control command of the remote controller which is not detected.
Optionally, the step of scanning the two-dimensional code by the mobile phone and acquiring the MAC address of the display device by the mobile phone includes:
the mobile phone scans the two-dimensional code to access the URL address pointed by the two-dimensional code, and the initial state of the MAC address in the URL address is a shielding state;
the display device detects that the URL address pointed by the two-dimensional code is accessed, displays the preset random characters and starts a microphone of the display device, and the display device sends prompt information for prompting a user to read the preset random characters to the mobile phone;
the method comprises the steps that a display device collects surrounding environment audio frequencies and carries out voice recognition on the surrounding environment audio frequencies to obtain corresponding audio characters; the display equipment compares the audio words with the preset random words, and if the audio words are matched with the preset random words, the display equipment adjusts the MAC address in the URL address to be in an accessible state so that the mobile phone can obtain the MAC address of the display equipment.
Optionally, the positioning prompt message includes one or more of sounding, lighting and vibration;
after the step of the bluetooth remote controller outputting the preset positioning prompt message, the method further comprises the following steps:
and when the acceleration unit time variation of the Bluetooth remote controller is larger than a preset acceleration value, the Bluetooth remote controller stops outputting the positioning prompt information.
Optionally, the bluetooth remote controller retrieving method further includes:
after the Bluetooth remote controller enters a standby state, the Bluetooth remote controller detects whether a pre-stored local awakening file is empty or not; if the local awakening file is not empty, the Bluetooth remote controller acquires a local MAC address in the local awakening file, wherein the local MAC address is the MAC address of the display equipment successfully matched with the Bluetooth remote controller; at most one local MAC address is stored in a local awakening file of the Bluetooth remote controller;
when the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller so as to enter a working mode from a low power consumption mode, and the step comprises the following steps:
when the Bluetooth remote controller receives the Bluetooth awakening broadcast, analyzing the Bluetooth awakening broadcast to acquire a broadcast MAC address in the Bluetooth awakening broadcast;
the Bluetooth remote controller compares the local MAC address with the broadcast MAC address, and if the local MAC address is matched with the broadcast MAC address, a broadcast key instruction of the Bluetooth wakeup broadcast is obtained and identified;
and if the broadcast key instruction is a preset startup and shutdown instruction, a second Bluetooth module of the Bluetooth remote controller wakes up the Bluetooth remote controller to enter a working mode from a low power consumption mode.
Optionally, the analyzing the bluetooth wakeup broadcast to obtain the broadcast MAC address in the bluetooth wakeup broadcast includes:
the Bluetooth remote controller analyzes the message of the Bluetooth awakening broadcast and extracts the broadcast manufacturer information of the manufacturer field in the Bluetooth awakening broadcast; the message content of the broadcast information is a message length field, a manufacturer field, an MAC address field and a key instruction field in sequence;
comparing the broadcast manufacturer information with local manufacturer information prestored in the Bluetooth remote controller;
if the broadcast manufacturer information is not matched with the local manufacturer information, the Bluetooth remote controller discards the Bluetooth awakening broadcast;
and if the broadcast manufacturer information is matched with the local manufacturer information, the Bluetooth awakening broadcast extracts the broadcast MAC address in the Bluetooth awakening broadcast.
Optionally, after the step of detecting whether the pre-stored local wake-up file is empty by the bluetooth remote controller, the method further includes:
if the local wake-up file is empty, when a second Bluetooth module of the Bluetooth remote controller receives the Bluetooth wake-up broadcast, the Bluetooth remote controller judges whether the signal intensity of the Bluetooth wake-up broadcast is greater than a preset intensity threshold value;
if the signal intensity of the Bluetooth awakening broadcast is greater than the preset intensity threshold value, when the broadcast manufacturer information is matched with the local manufacturer information in the Bluetooth awakening broadcast, the Bluetooth remote controller stores the broadcast MAC address in the Bluetooth awakening broadcast into a local awakening file to serve as a local MAC address, and Bluetooth pairing between the second Bluetooth module and the display equipment which sends the Bluetooth awakening broadcast is achieved;
and the Bluetooth remote controller executes the step of acquiring and identifying the broadcast key instruction of the Bluetooth wakeup broadcast.
Optionally, the bluetooth remote controller retrieving method further includes:
after the signal intensity of the Bluetooth awakening broadcast is determined to be greater than a preset intensity threshold value, the Bluetooth remote controller detects whether a preset key combination event is triggered by a key board;
if the preset key combination triggering event is not detected, no response is made;
if the preset key combination triggering event is detected, further comparing the broadcast manufacturer information and the local manufacturer information in the Bluetooth awakening broadcast;
and when the broadcast manufacturer information in the broadcast information is matched with the local manufacturer information, executing a step that the Bluetooth remote controller stores the broadcast MAC address in the Bluetooth awakening broadcast into a local awakening file to be used as a local MAC address.
Optionally, after the step of acquiring and identifying the broadcast key instruction of the bluetooth wakeup broadcast, the method further includes:
and if the broadcast key instruction is not a preset startup and shutdown instruction, discarding the broadcast information by the Bluetooth remote controller.
To achieve the above object, the present invention further provides a computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the bluetooth remote controller retrieving method as described above.
According to the method, when the display equipment cannot wake up the Bluetooth remote controller through the Bluetooth wake-up broadcast, a user is guided to use the mobile phone of the user to scan the two-dimensional code output by the display equipment, so that the first Bluetooth module of the virtual machine simulation display equipment is established through the mobile phone, the Bluetooth wake-up broadcast packaged with the MAC address is broadcasted outwards, and the lost Bluetooth remote controller can be more easily approached by the mobile phone as the user can freely move indoors with the mobile phone, so that the Bluetooth wake-up broadcast broadcasted by the mobile phone can more easily wake up the Bluetooth remote controller; for the bluetooth remote controller, no matter the bluetooth remote controller is a bluetooth wake-up broadcast broadcasted by the display device or a bluetooth wake-up broadcast sent by the mobile phone through the virtual machine, as long as the bluetooth remote controller receives the bluetooth wake-up broadcast, the second bluetooth module wakes up the bluetooth remote controller to enter a working mode from a low power consumption mode, and the bluetooth remote controller outputs preset positioning prompt information; furthermore, the user walks around outdoors with the mobile phone, the effective range of the Bluetooth awakening broadcast sent by the virtual machine of the mobile phone traverses all possible indoor areas of the Bluetooth remote controller, so that the mobile phone can conveniently awaken the Bluetooth remote controller based on the virtual machine, the Bluetooth remote controller is controlled to actively output preset positioning prompt information, the user is effectively guided to find the Bluetooth remote controller, the Bluetooth remote controller is not easy to lose, and the user can quickly find the Bluetooth remote controller.
Drawings
Fig. 1 is a schematic diagram of a frame structure of an alternative embodiment of a bluetooth remote controller recovery system according to the present application;
FIG. 2 is a flowchart illustrating an embodiment of a Bluetooth remote controller retrieving method according to the present application;
fig. 3 is a detailed flowchart illustrating a step of establishing a virtual machine by the mobile phone in step S30, and broadcasting a bluetooth wakeup broadcast encapsulated with the MAC address to the outside by using the first bluetooth module of the hardware analog display device of the mobile phone.
The implementation, functional features and advantages of the objectives of the present application 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 present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
The invention provides a Bluetooth remote controller recovery system, which comprises display equipment, a Bluetooth remote controller and a smart phone, and is characterized in that the display equipment is connected with the Bluetooth remote controller;
the interactive process of the Bluetooth remote controller recovery system is as follows:
after the display equipment is started, a first Bluetooth module of the display equipment broadcasts a Bluetooth awakening broadcast packaged with an MAC address of the display equipment to the outside;
if the remote control instruction of the remote controller is not detected within the preset time of the display equipment, the display equipment displays a two-dimensional code, and the two-dimensional code contains the MAC address of the display equipment
The mobile phone scans the two-dimensional code to obtain the MAC address of the display equipment, establishes a virtual machine, simulates a first Bluetooth module of the display equipment by using hardware of the mobile phone, and broadcasts a Bluetooth awakening broadcast packaged with the MAC address to the outside; outputting prompt information for guiding a user to walk in an indoor space provided with display equipment in the process of broadcasting the Bluetooth awakening broadcast by the mobile phone;
after the Bluetooth remote controller enters a standby state, a second Bluetooth module of the Bluetooth remote controller enters a low power consumption mode, and the second Bluetooth module only receives Bluetooth awakening broadcast when in the low power consumption mode; when the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller to enter a working mode from a low power consumption mode, and the Bluetooth remote controller outputs preset positioning prompt information.
The invention also provides a Bluetooth remote controller retrieving method, which is applied to a Bluetooth remote controller retrieving system, wherein the Bluetooth remote controller retrieving system comprises display equipment, a Bluetooth remote controller and a smart phone; the display equipment can be an intelligent television or a projector, a Bluetooth module is arranged in the Bluetooth remote controller, the Bluetooth remote controller has a Bluetooth signal receiving and transmitting function, and the intelligent mobile phone is a touch screen mobile phone used by a user.
Referring to fig. 2, the bluetooth remote controller retrieving method includes the following steps:
step S10, after the display device is started, the first Bluetooth module of the display device broadcasts the Bluetooth awakening broadcast packaged with the MAC address of the display device;
after the display device is powered on, the display device obtains a Media Access Control Address (MAC Address) of the display device in advance, and encapsulates the MAC Address into a data packet of a bluetooth wakeup broadcast to be broadcasted, wherein a bluetooth wakeup broadcast user wakes up a bluetooth remote controller in a dormant or standby state, and the bluetooth wakeup broadcast is broadcasted outwards by a first bluetooth module of the display device.
And step S20, if the remote control instruction of the remote controller is not detected within the preset time length of the display equipment, the display equipment displays a two-dimensional code, and the two-dimensional code comprises the MAC address of the display equipment.
After a first Bluetooth module of the display device broadcasts a Bluetooth awakening broadcast with a self MAC address, the duration of a remote control instruction of a remote controller is synchronously started to be not detected by the display device, if the duration of the remote control instruction of the remote controller is not detected by the display device and is greater than preset duration, the fact that a user opens the display device for a long time is shown, the display device is not controlled by the Bluetooth remote controller matched with the display device all the time, the Bluetooth remote controller is likely to be lost, the user cannot find the display device, the display device displays a two-dimensional code at the moment, the user can scan the code based on the mobile phone of the user, and the MAC address of the display device is contained in the two-dimensional code.
Step S30, the mobile phone scans the two-dimensional code, obtains the MAC address of the display device, establishes a virtual machine, simulates the first Bluetooth module of the display device by using the hardware of the mobile phone, and broadcasts the Bluetooth awakening broadcast encapsulated with the MAC address to the outside; outputting prompt information for guiding a user to walk in an indoor space provided with display equipment in the process of broadcasting the Bluetooth awakening broadcast by the mobile phone;
after the user operates the mobile phone to scan the two-dimensional code, the mobile phone may enter a URL (uniform resource locator) address corresponding to the two-dimensional code, thereby obtaining the MAC address of the display device. Then the mobile phone establishes a virtual machine in a memory of the mobile phone, and utilizes hardware of the mobile phone to simulate a first Bluetooth module of the display device, namely, a hardware module of the first Bluetooth module is simulated in a virtual machine software mode, so that the first Bluetooth module based on virtual machine simulation of the mobile phone broadcasts a Bluetooth awakening broadcast encapsulated with an MAC address outwards, which is equivalent to that a user utilizes the mobile phone to simulate the Bluetooth awakening broadcast of the display device outwards. Because the display device broadcasts the Bluetooth awakening broadcast outwards and cannot awaken the Bluetooth remote controller, the Bluetooth remote controller is probably beyond the effective awakening function range of the Bluetooth awakening broadcast of the display device, a virtual machine of the mobile phone is activated to simulate the display device to broadcast the Bluetooth awakening broadcast outwards, and the mobile phone can be more easily close to the Bluetooth remote controller during moving to awaken the Bluetooth remote controller based on the Bluetooth awakening broadcast.
Specifically, referring to fig. 3, the step of establishing a virtual machine by the mobile phone in step S30, and using the first bluetooth module of the hardware analog display device of the mobile phone to broadcast the bluetooth wakeup broadcast encapsulated with the MAC address to the outside includes:
step A1, the mobile phone starts a virtual machine process, establishes a virtual machine, and sets a virtual Bluetooth front end in the virtual machine; setting a virtual Bluetooth rear end for a third Bluetooth module of the mobile phone; the virtual Bluetooth front end of the virtual machine in the mobile phone and the virtual Bluetooth rear end of the third Bluetooth module perform cross-system communication in a shared memory mode;
step A2, the mobile phone assigns the hardware address of the virtual Bluetooth module in the virtual machine to the MAC address so as to simulate the first Bluetooth module of the display device; the mobile phone triggers the virtual Bluetooth module to send a control instruction of Bluetooth awakening broadcast so that the virtual Bluetooth front end can send the control instruction to the virtual Bluetooth rear end of the third Bluetooth module to control the third Bluetooth module to call a corresponding Bluetooth driving function in the kernel, and therefore the third Bluetooth module can broadcast the Bluetooth awakening broadcast packaged with the MAC address outwards.
By arranging the virtual Bluetooth front end in the virtual machine and the virtual Bluetooth rear end in the third Bluetooth module of the mobile phone, cross-system communication between the virtual machine in the mobile phone and the third Bluetooth module in the mobile phone is realized, and Bluetooth awakening broadcast of the MAC address of the display equipment packaged in the mobile phone analog broadcast is realized.
Step S40, after the Bluetooth remote controller enters a standby state, a second Bluetooth module of the Bluetooth remote controller enters a low power consumption mode, and the second Bluetooth module only receives Bluetooth awakening broadcast when in the low power consumption mode; when the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller to enter a working mode from a low power consumption mode, and the Bluetooth remote controller outputs preset positioning prompt information.
The Bluetooth remote controller is not completely powered off after entering the standby state, the main control chip of the Bluetooth remote controller is in a low-power consumption standby operation state, and meanwhile, the main control chip supplies power to the second Bluetooth module so that the second Bluetooth module is in the low-power consumption operation state, the second Bluetooth module is in the low-power consumption mode operation state, the second Bluetooth module can only receive Bluetooth awakening broadcast broadcasted by the matched display equipment at the moment, and other control instructions are not responded. When the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller, the Bluetooth remote controller enters a working mode from a low power consumption mode, the Bluetooth remote controller outputs preset positioning prompt information, the positioning prompt information can be one or more of sounding, lighting and vibration, the purpose is to prompt the position of the Bluetooth remote controller of a user, and the user can find the Bluetooth remote controller conveniently.
In this embodiment, when the display device cannot wake up the bluetooth remote controller through the bluetooth wake-up broadcast, the user is guided to scan the two-dimensional code output by the display device by using the own mobile phone, so as to establish a virtual machine for simulating the first bluetooth module of the display device through the mobile phone, and to broadcast the bluetooth wake-up broadcast encapsulated with the MAC address to the outside; for the bluetooth remote controller, no matter the bluetooth remote controller is a bluetooth wake-up broadcast broadcasted by the display device or a bluetooth wake-up broadcast sent by the mobile phone through the virtual machine, as long as the bluetooth remote controller receives the bluetooth wake-up broadcast, the second bluetooth module wakes up the bluetooth remote controller to enter a working mode from a low power consumption mode, and the bluetooth remote controller outputs preset positioning prompt information; furthermore, a user carrying the mobile phone walks around outdoors, the effective range of the Bluetooth awakening broadcast sent by the virtual machine of the mobile phone traverses all possible indoor areas of the Bluetooth remote controller, so that the mobile phone can awaken the Bluetooth remote controller conveniently based on the virtual machine, the Bluetooth remote controller is controlled to actively output preset positioning prompt information, the user is effectively guided to find the Bluetooth remote controller, the Bluetooth remote controller is not easy to lose, and the user can quickly find the Bluetooth remote controller.
In addition, before the display device displays the two-dimensional code, the method for retrieving the bluetooth remote controller further comprises the following steps:
step B, the display equipment increases the power of the first Bluetooth module, and the display equipment controls the first Bluetooth module to broadcast the Bluetooth awakening broadcast packaged with the MAC address of the display equipment outwards with the increased power; the display device counts the time length of the remote control command of the remote controller is not detected.
After a first Bluetooth module of display equipment broadcasts a Bluetooth awakening broadcast with a self MAC address, during the period that the display equipment does not detect the duration of a remote control command of a remote controller and is less than or equal to the preset duration, the display equipment increases the power of the first Bluetooth module, enlarges the awakening effective range of the Bluetooth awakening broadcast which is encapsulated with the MAC address of the display equipment and broadcasts outwards, and tries to awaken the Bluetooth remote controller once after expanding the range before the display equipment outputs a two-dimensional code, so that the process that a user operates a mobile phone to establish a virtual machine and simulate to awaken the Bluetooth remote controller is avoided as much as possible.
Further, in another embodiment of the bluetooth remote controller retrieving method according to the present invention, the step of scanning the two-dimensional code by the mobile phone in step S30 and acquiring the MAC address of the display device includes:
step C1, the mobile phone scans the two-dimensional code to access the URL address pointed by the two-dimensional code, and the initial state of the MAC address in the URL address is a shielding state;
the mobile phone scans the two-dimensional code to access the URL address pointed by the two-dimensional code, the MAC address in the URL address cannot be obtained at first, the initial state of the MAC address is a shielding state, and the situation that the MAC address of the display device can be obtained by scanning the two-dimensional code or remotely scanning an image of the two-dimensional code by the mobile phone of any person is prevented.
Step C2, the display device detects that the URL address pointed by the two-dimensional code is accessed, the display device displays the preset random characters and starts a microphone of the display device, and the display device sends prompt information for prompting a user to read the preset random characters to the mobile phone;
the user scans the two-dimensional code based on the mobile phone to find back the Bluetooth remote controller, which may be false triggering of the user or illegal operation not of the user, so that in order to avoid the problems, before the mobile phone scans the two-dimensional code to obtain the MAC address of the display device, the display device performs field verification on the user of the mobile phone, the display device displays preset random characters and starts a microphone carried by the display device, and the display device sends prompt information for prompting the user to read the preset random characters aloud to the mobile phone; the preset random characters are not limited to Chinese, and can be one or more combinations of numbers, characters, symbols and letters, for example, the preset random characters are 'wind and sun beauty', the display device displays four characters of 'wind and sun beauty', and prompt information prompting a user to read the preset random characters is synchronously sent to the mobile phone.
Step C3, the display device collects the surrounding environment audio frequency, and carries on the voice recognition to the surrounding environment audio frequency to get the corresponding audio character; the display equipment compares the audio words with the preset random words, and if the audio words are matched with the preset random words, the display equipment adjusts the MAC address in the URL address to be in an accessible state so that the mobile phone can obtain the MAC address of the display equipment.
After the preset random characters are displayed on the display device, the microphone of the display device collects the surrounding environment audio to judge whether the user reads the preset random characters. The display device collects and identifies the surrounding environment audio based on the microphone to obtain audio words, when the audio words are matched with the preset random words, the content read aloud by the user is matched with the preset random words displayed by the display device, and the mobile phone scans the two-dimensional code at the site of the environment where the display device is located by the user, so that the user really intends and operates legally, the display device adjusts the MAC address in the URL address to be in an accessible state, and the mobile phone can obtain the MAC address of the display device. If the audio characters are not matched with the preset random characters, the user is not on site or is illegal operation, and the safety of the recovery function of the Bluetooth remote controller is improved in order to avoid the Bluetooth remote controller from being awakened by unnecessary Bluetooth awakening broadcast.
In addition, if the audio characters are matched with the preset random characters, the display equipment compares the surrounding environment audio frequency with the preset voiceprint, and if the surrounding environment audio frequency is matched with the preset voiceprint, the display equipment adjusts the MAC address in the URL address to be in an accessible state so that the mobile phone can obtain the MAC address of the display equipment.
Since the voiceprint comparison is added even if the operator of the two-dimensional code scanning mobile phone is on the site of the installation environment of the display device, after the audio characters are matched with the preset random characters, namely, the peripheral environment audio of the operator of the scanning mobile phone containing the two-dimensional code is compared with the preset voiceprint, if the peripheral environment audio is matched with the preset voiceprint, the fact that the operator of the scanning mobile phone containing the two-dimensional code is the user is indicated, the related operation searched by the Bluetooth remote controller is not illegal, at the moment, the display device adjusts the MAC address in the URL address to be in an accessible state, so that the mobile phone can acquire the MAC address of the display device, the identity verification of the operator of the scanning mobile phone containing the two-dimensional code is completed based on the voiceprint, and the triggering accuracy and the safety of searching by the Bluetooth remote controller are further improved.
In addition, the positioning prompt message comprises one or more of sounding, lighting and vibration;
after the step of outputting the preset positioning prompt message by the bluetooth remote controller, the method further comprises the following steps:
and D, when the acceleration unit time variation of the Bluetooth remote controller is larger than a preset acceleration value, the Bluetooth remote controller stops outputting the positioning prompt information.
After the bluetooth remote controller outputs the positioning prompt information, the user starts to search the target remote controller, and after the user finds the bluetooth remote controller outputting the positioning prompt information, the bluetooth remote controller does not need to continuously output the positioning prompt information, so that after the user finds the bluetooth remote controller outputting the positioning prompt information, the bluetooth remote controller stops outputting the positioning prompt information. Specifically, bluetooth remote controller output location suggestion information, can real-time detection self acceleration change condition, if bluetooth remote controller's acceleration unit interval variation is greater than predetermineeing the acceleration value, show that bluetooth remote controller's motion state changes, it is likely that the user finds and takes up bluetooth remote controller, bluetooth remote controller can stop output location suggestion information this moment, and then in time control bluetooth remote controller stops output location suggestion information, save bluetooth remote controller electric quantity, also avoid the location suggestion information of bluetooth remote controller output to influence the normal sight shadow of user and bluetooth remote controller use.
Further, in another embodiment of the bluetooth remote controller retrieving method of the present invention, the bluetooth remote controller retrieving method further includes:
step E1, after the Bluetooth remote controller enters the standby state, the Bluetooth remote controller detects whether the pre-stored local wake-up file is empty; if the local awakening file is not empty, the Bluetooth remote controller acquires a local MAC address in the local awakening file, wherein the local MAC address is the MAC address of the display equipment successfully matched with the Bluetooth remote controller; at most one local MAC address is stored in a local awakening file of the Bluetooth remote controller;
what use between the first Bluetooth module of display device and the second Bluetooth module of Bluetooth remote controller is Bluetooth 4.0BLE communication protocol, and Bluetooth 4.0 is a trinity Bluetooth, fuses traditional Bluetooth, Bluetooth low energy and high-speed Bluetooth technique together, and the Bluetooth of this three specification also can the exclusive use. In the application, the technology mainly applied is Bluetooth 4.0 low-power consumption Bluetooth, and the Bluetooth low-power consumption does not need to occupy too much bandwidth and has extremely low power consumption. Bluetooth 4.0BLE is suitable for a remote controller which is a Bluetooth device with long time and small data transmission quantity.
If the bluetooth remote controller has the paired external display device, the bluetooth remote controller may create a local wake-up file named wake _ on.ble locally, where the local wake-up file is used to store a Media Access Control (MAC) Address of the display device that the bluetooth remote controller has been paired to work, that is, the local wake-up file is not empty at this time, and the main Control chip of the bluetooth remote controller may write the local MAC Address into the second bluetooth module, so that the second bluetooth module may match the local MAC Address when receiving the bluetooth wake-up broadcast.
In an embodiment of the present application, if the bluetooth remote controller does not have a matching record of the display device, that is, the local wake-up file is empty, after the bluetooth remote controller is in the standby state, when the master control chip cannot find the local wake-up file with the local MAC address, the second bluetooth module matches the bluetooth wake-up broadcast of any bluetooth module of the same type, that is, the bluetooth wake-up broadcast of the same manufacturer as the second bluetooth module, it is not necessary to determine whether the MAC addresses in the bluetooth wake-up broadcast of the same manufacturer are matched, and the MAC address in the bluetooth wake-up broadcast of the same manufacturer is directly used as the local MAC address of the local wake-up file.
In step S40, when the bluetooth remote controller receives the bluetooth wakeup broadcast, the step of waking up the bluetooth remote controller by the second bluetooth module to enter the operating mode from the low power consumption mode includes:
step F1, when the Bluetooth remote controller receives the Bluetooth awakening broadcast, analyzing the Bluetooth awakening broadcast to obtain a broadcast MAC address in the Bluetooth awakening broadcast;
when the Bluetooth remote controller detects that the local awakening file is not empty, after the local MAC address in the local awakening file is acquired, when a second Bluetooth module of the Bluetooth remote controller receives a Bluetooth awakening broadcast sent by a display device or a mobile phone virtual machine simulating a first Bluetooth module, a main control chip of the Bluetooth remote controller analyzes the Bluetooth awakening broadcast. Specifically, the message format of the bluetooth wakeup broadcast is that a series of message contents sequentially include a header file field, a message length field, a manufacturer field and an MAC address field, wherein the header file field is 0x (hexadecimal), the message length field is 8 bits (binary), the manufacturer field is 24 bits (binary), the MAC address field is 56 bits (binary), and the key instruction field is 32 bits (binary). The analysis of the bluetooth wakeup broadcast by the main control chip of the bluetooth remote controller specifically includes sequentially extracting and identifying each field content in the message according to the message format, so that the main control chip of the bluetooth remote controller acquires the MAC address (namely, broadcast MAC address) in the bluetooth wakeup broadcast received by the second bluetooth module. For example, if the content of a message in a bluetooth wakeup broadcast is 0x0EFF004601F8DD97353AC4FFFFFFFF (hexadecimal), 0x is a header field, 0E is a message length field, FF0046 is a manufacturer field, 01F8DD97353AC4 is a MAC address field, and FFFFFFFF is a key instruction field.
Step F2, the Bluetooth remote controller compares the local MAC address with the broadcast MAC address, if the local MAC address is matched with the broadcast MAC address, the broadcast key instruction of the Bluetooth wake-up broadcast is obtained and identified;
only one local MAC address is stored in the local awakening file of the Bluetooth remote controller, namely the local MAC address in the local awakening file is the MAC address of the display device which is successfully paired recently by the second Bluetooth module of the Bluetooth remote controller. For example, the MAC address of the display device a is stored in the local wake-up file of the bluetooth remote controller, which indicates that the second bluetooth module of the bluetooth remote controller and the display device a are successfully paired, and if the second bluetooth module receives the MAC address of the new bluetooth wake-up broadcast in the standby state of the current bluetooth remote controller, the MAC address of the new bluetooth wake-up broadcast and the local MAC address of the display device a are compared, and if the local MAC address is matched with (if identical to) the MAC address of the new bluetooth wake-up broadcast, it indicates that the MAC address of the new bluetooth wake-up broadcast is sent by the display device a, and the main control chip of the bluetooth remote controller further analyzes the bluetooth wake-up broadcast sent by the display device a, so as to obtain and identify the broadcast key command in the bluetooth wake-up broadcast.
Step F3, if the broadcast key instruction is a preset power on/off instruction, the second Bluetooth module of the Bluetooth remote controller wakes up the Bluetooth remote controller to enter a working mode from a low power consumption mode.
In connection with the above example, if the broadcast key instruction is a preset power on/off instruction, indicating that the user has triggered the power on/off key of the display device a, the main control chip of the bluetooth remote controller controls the wakeup pin of the second bluetooth module to output a pull-down low level signal to the trigger pin, so as to trigger the power on/off key in the key board of the bluetooth remote controller, and achieve the same effect as that of the power on/off key output low level power on by the key board.
In addition, if the bluetooth wakeup broadcast is not the preset power on/off instruction, it indicates that although the bluetooth wakeup broadcast is sent by the display device a, the broadcast key instruction carried in the bluetooth wakeup broadcast is not the power on/off instruction for waking up the bluetooth remote controller.
In this embodiment, after the bluetooth remote controller enters the standby state, the main control chip of the bluetooth remote controller controls the second bluetooth module to enter the low power consumption mode, and the second bluetooth module only receives the bluetooth wakeup broadcast of the external display device when in the low power consumption mode; and a local wake-up file is creatively added in the Bluetooth remote controller, at most one local MAC address successfully matched with the Bluetooth of the display device is stored, only when the MAC address of the new Bluetooth wake-up broadcast is matched with the local MAC address, a broadcast key instruction in the Bluetooth wake-up broadcast is further acquired and identified, and finally, the broadcast key instruction is a preset power-on and power-off instruction, the main control chip of the Bluetooth remote controller controls the wake-up pin of the second Bluetooth module to output a pull-down low-level signal to the trigger pin so as to trigger the power-on and power-off keys in the key board, so that the display device wakes up the Bluetooth remote controller instrument in a low-power-consumption Bluetooth communication mode, and a user can effectively and reliably wake up the Bluetooth remote controller by scanning two-dimensional codes based on the display device or a mobile phone. Furthermore, the local awakening file is creatively arranged in the Bluetooth remote controller, and only one local MAC address successfully matched with the Bluetooth of the Bluetooth remote controller is stored in the local awakening file, so that the user is limited to awaken the Bluetooth remote controller only through the MAC address of the display equipment successfully matched with the Bluetooth remote controller at present, the Bluetooth remote controller is prevented from being awakened by display equipment with other MAC addresses or other key points by mistake, and the uniqueness and reliability of remote awakening of the Bluetooth remote controller by matching the display equipment are ensured.
In addition, the step of analyzing the bluetooth wakeup broadcast and acquiring the broadcast MAC address in the bluetooth wakeup broadcast includes:
g1, the Bluetooth remote controller analyzes the message of the Bluetooth awakening broadcast and extracts the broadcast manufacturer information of the manufacturer field in the Bluetooth awakening broadcast; the message content of the broadcast information is a message length field, a manufacturer field, an MAC address field and a key instruction field in sequence;
g2, comparing the broadcast manufacturer information with local manufacturer information prestored in the Bluetooth remote controller; if the broadcast manufacturer information is not matched with the local manufacturer information, the Bluetooth remote controller discards the Bluetooth awakening broadcast; and if the broadcast manufacturer information is matched with the local manufacturer information, the Bluetooth awakening broadcast extracts the broadcast MAC address in the Bluetooth awakening broadcast.
Before comparing the broadcast MAC address with the local MAC address, the broadcast manufacturer information and the local manufacturer information in the broadcast information can be compared, if the broadcast manufacturer information is not matched with the local manufacturer information, the master control chip of the Bluetooth remote controller directly discards the Bluetooth awakening broadcast. The broadcast MAC address in the broadcast information is further extracted only when the broadcast manufacturer information is matched with the local manufacturer information, the condition that excessive computing resources of the main control chip are wasted to extract and compare the broadcast MAC address is avoided, when the manufacturer information is not matched, the Bluetooth awakening broadcast received by the second Bluetooth module of the Bluetooth remote controller is directly abandoned, and the MAC address comparison efficiency is improved.
After the step of detecting whether the pre-stored local wake-up file is empty by the bluetooth remote controller, the method further includes:
step H1, if the local wake-up file is empty, when the second Bluetooth module of the Bluetooth remote controller receives the Bluetooth wake-up broadcast, the Bluetooth remote controller judges whether the signal intensity of the Bluetooth wake-up broadcast is greater than a preset intensity threshold value;
step H2, if the signal intensity of the Bluetooth awakening broadcast is greater than the preset intensity threshold value, when the broadcast manufacturer information and the local manufacturer information in the Bluetooth awakening broadcast are matched, the Bluetooth remote controller stores the broadcast MAC address in the Bluetooth awakening broadcast into a local awakening file to be used as a local MAC address, and Bluetooth pairing between the second Bluetooth module and the display device sending the Bluetooth awakening broadcast is achieved; and the Bluetooth remote controller executes the step of acquiring and identifying the broadcast key instruction of the Bluetooth wakeup broadcast.
When the master control chip of the bluetooth remote controller judges that the local wake-up file is empty, the bluetooth remote controller does not complete bluetooth pairing with any display device currently, and the bluetooth remote controller can perform bluetooth pairing with the display device of the same manufacturer, for example, if the manufacturer of the bluetooth remote controller is a current subscriber, the bluetooth remote controller only needs to perform bluetooth pairing with the display device of the manufacturer of the current subscriber based on comparison between the broadcast manufacturer information and the local manufacturer information.
In addition, after the step of obtaining and identifying the broadcast key command of the bluetooth wakeup broadcast, the method further includes: and if the broadcast key instruction is not a preset startup and shutdown instruction, discarding the broadcast information by the Bluetooth remote controller.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the bluetooth remote controller retrieval method as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
It should be noted that step numbers such as S10 and S20 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S20 first and then perform S10 in the specific implementation, which should be within the scope of the present application.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A Bluetooth remote controller recovery method is characterized in that the Bluetooth remote controller recovery method is applied to a Bluetooth remote controller recovery system, and the Bluetooth remote controller recovery system comprises display equipment, a Bluetooth remote controller and a smart phone;
the Bluetooth remote controller searching method comprises the following steps:
after the display equipment is started, a first Bluetooth module of the display equipment broadcasts a Bluetooth awakening broadcast packaged with an MAC address of the display equipment to the outside;
if the remote control instruction of the remote controller is not detected within the preset time length of the display equipment, the display equipment displays a two-dimensional code, and the two-dimensional code contains the MAC address of the display equipment;
the mobile phone scans the two-dimensional code to obtain the MAC address of the display equipment, establishes a virtual machine, and utilizes the hardware of the mobile phone to simulate a first Bluetooth module of the display equipment to broadcast the Bluetooth awakening broadcast packaged with the MAC address to the outside; outputting prompt information for guiding a user to walk in an indoor space provided with display equipment in the process of broadcasting the Bluetooth awakening broadcast by the mobile phone;
after the Bluetooth remote controller enters a standby state, a second Bluetooth module of the Bluetooth remote controller enters a low power consumption mode, and the second Bluetooth module only receives Bluetooth awakening broadcast when in the low power consumption mode; when the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller to enter a working mode from a low power consumption mode, and the Bluetooth remote controller outputs preset positioning prompt information.
2. The method for retrieving the bluetooth remote controller according to claim 1, wherein the step of establishing a virtual machine in the mobile phone, and using a first bluetooth module of a hardware analog display device of the mobile phone to broadcast the bluetooth wakeup broadcast encapsulated with the MAC address to the outside comprises:
the mobile phone starts a virtual machine process, establishes a virtual machine, and sets a virtual Bluetooth front end in the virtual machine; setting a virtual Bluetooth rear end for a third Bluetooth module of the mobile phone; the virtual Bluetooth front end of the virtual machine in the mobile phone and the virtual Bluetooth rear end of the third Bluetooth module perform cross-system communication in a shared memory mode;
the mobile phone assigns a hardware address of a virtual Bluetooth module in the virtual machine to the MAC address so as to simulate a first Bluetooth module of the display equipment; the mobile phone triggers the virtual Bluetooth module to send a control instruction of Bluetooth awakening broadcast so that the virtual Bluetooth front end can send the control instruction to the virtual Bluetooth rear end of the third Bluetooth module to control the third Bluetooth module to call a corresponding Bluetooth driving function in the kernel, and the third Bluetooth module can broadcast the Bluetooth awakening broadcast packaged with the MAC address outwards.
3. The Bluetooth remote control recovery method according to claim 1 or 2,
before the display equipment displays the two-dimensional code, the display equipment increases the power of the first Bluetooth module, and the display equipment controls the first Bluetooth module to broadcast the Bluetooth awakening broadcast packaged with the MAC address of the display equipment outwards with the increased power; the display device counts the time length of the remote control command of the remote controller is not detected.
4. The method for retrieving the bluetooth remote controller according to claim 3, wherein the step of scanning the two-dimensional code by the mobile phone to obtain the MAC address of the display device comprises:
the mobile phone scans the two-dimensional code to access the URL address pointed by the two-dimensional code, and the initial state of the MAC address in the URL address is a shielding state;
the display device detects that the URL address pointed by the two-dimensional code is accessed, displays the preset random characters and starts a microphone of the display device, and the display device sends prompt information for prompting a user to read the preset random characters to the mobile phone;
the method comprises the steps that a display device collects surrounding environment audio frequencies and carries out voice recognition on the surrounding environment audio frequencies to obtain corresponding audio characters; the display equipment compares the audio words with the preset random words, and if the audio words are matched with the preset random words, the display equipment adjusts the MAC address in the URL address to be in an accessible state so that the mobile phone can obtain the MAC address of the display equipment.
5. The bluetooth remote controller retrieving method according to claim 4, wherein the positioning prompt message comprises one or more of sounding, lighting, and vibrating;
after the step of the bluetooth remote controller outputting the preset positioning prompt message, the method further comprises the following steps:
and when the acceleration unit time variation of the Bluetooth remote controller is larger than a preset acceleration value, the Bluetooth remote controller stops outputting the positioning prompt information.
6. The bluetooth remote controller recovery method according to claim 5, wherein the bluetooth remote controller recovery method further comprises:
after the Bluetooth remote controller enters a standby state, the Bluetooth remote controller detects whether a pre-stored local wake-up file is empty or not; if the local awakening file is not empty, the Bluetooth remote controller acquires a local MAC address in the local awakening file, wherein the local MAC address is the MAC address of the display equipment successfully matched with the Bluetooth remote controller; at most one local MAC address is stored in a local awakening file of the Bluetooth remote controller;
when the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller so as to enter a working mode from a low power consumption mode, and the step comprises the following steps:
when the Bluetooth remote controller receives the Bluetooth awakening broadcast, analyzing the Bluetooth awakening broadcast to acquire a broadcast MAC address in the Bluetooth awakening broadcast;
the Bluetooth remote controller compares the local MAC address with the broadcast MAC address, and if the local MAC address is matched with the broadcast MAC address, a broadcast key instruction of the Bluetooth wakeup broadcast is obtained and identified;
and if the broadcast key instruction is a preset startup and shutdown instruction, a second Bluetooth module of the Bluetooth remote controller wakes up the Bluetooth remote controller to enter a working mode from a low power consumption mode.
7. The method for retrieving the bluetooth remote controller according to claim 6, wherein the step of parsing the bluetooth wakeup broadcast and obtaining the broadcast MAC address in the bluetooth wakeup broadcast comprises:
the Bluetooth remote controller analyzes the message of the Bluetooth awakening broadcast and extracts the broadcast manufacturer information of the manufacturer field in the Bluetooth awakening broadcast; the message content of the broadcast information is a message length field, a manufacturer field, an MAC address field and a key instruction field in sequence;
comparing the broadcast manufacturer information with local manufacturer information prestored in the Bluetooth remote controller;
if the broadcast manufacturer information is not matched with the local manufacturer information, the Bluetooth remote controller discards the Bluetooth awakening broadcast;
and if the broadcast manufacturer information is matched with the local manufacturer information, the Bluetooth awakening broadcast extracts the broadcast MAC address in the Bluetooth awakening broadcast.
8. The method for retrieving a bluetooth remote controller according to claim 7, wherein the step of the bluetooth remote controller detecting whether the pre-stored local wakeup file is empty further comprises:
if the local wake-up file is empty, when a second Bluetooth module of the Bluetooth remote controller receives the Bluetooth wake-up broadcast, the Bluetooth remote controller judges whether the signal intensity of the Bluetooth wake-up broadcast is greater than a preset intensity threshold value;
if the signal intensity of the Bluetooth awakening broadcast is larger than a preset intensity threshold value, when the broadcast manufacturer information is matched with the local manufacturer information in the Bluetooth awakening broadcast, the Bluetooth remote controller stores a broadcast MAC address in the Bluetooth awakening broadcast into a local awakening file to serve as a local MAC address, and Bluetooth pairing between the second Bluetooth module and display equipment for sending the Bluetooth awakening broadcast is achieved;
and the Bluetooth remote controller executes the step of acquiring and identifying the broadcast key instruction of the Bluetooth wakeup broadcast.
9. A Bluetooth remote controller recovery system comprises a display device, a Bluetooth remote controller and a smart phone;
the interactive process of the Bluetooth remote controller recovery system is as follows:
after the display equipment is started, a first Bluetooth module of the display equipment broadcasts a Bluetooth awakening broadcast packaged with an MAC address of the display equipment to the outside;
if the remote control instruction of the remote controller is not detected within the preset time of the display equipment, the display equipment displays a two-dimensional code, and the two-dimensional code contains the MAC address of the display equipment
The mobile phone scans the two-dimensional code to obtain the MAC address of the display equipment, establishes a virtual machine, simulates a first Bluetooth module of the display equipment by using hardware of the mobile phone, and broadcasts a Bluetooth awakening broadcast packaged with the MAC address to the outside; outputting prompt information for guiding a user to walk in an indoor space provided with display equipment in the process of broadcasting the Bluetooth awakening broadcast by the mobile phone;
after the Bluetooth remote controller enters a standby state, a second Bluetooth module of the Bluetooth remote controller enters a low power consumption mode, and the second Bluetooth module only receives Bluetooth awakening broadcast when in the low power consumption mode; when the Bluetooth remote controller receives the Bluetooth awakening broadcast, the second Bluetooth module awakens the Bluetooth remote controller to enter a working mode from a low power consumption mode, and the Bluetooth remote controller outputs preset positioning prompt information.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the bluetooth remote control recovery method according to any one of claims 1 to 8.
CN202110574893.0A 2021-05-25 2021-05-25 Bluetooth remote controller recovery method, system and computer storage medium Active CN113453205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110574893.0A CN113453205B (en) 2021-05-25 2021-05-25 Bluetooth remote controller recovery method, system and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110574893.0A CN113453205B (en) 2021-05-25 2021-05-25 Bluetooth remote controller recovery method, system and computer storage medium

Publications (2)

Publication Number Publication Date
CN113453205A CN113453205A (en) 2021-09-28
CN113453205B true CN113453205B (en) 2022-05-20

Family

ID=77810225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110574893.0A Active CN113453205B (en) 2021-05-25 2021-05-25 Bluetooth remote controller recovery method, system and computer storage medium

Country Status (1)

Country Link
CN (1) CN113453205B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114764970B (en) * 2021-12-28 2024-03-19 深圳市杰理微电子科技有限公司 Bluetooth headset retrieving method, device, headset and system
CN114413432B (en) * 2022-03-11 2022-08-02 深圳市众智空调设备有限公司 Central air-conditioning remote controller automatic awakening method based on Internet of things and air-conditioning system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101774A (en) * 2016-07-09 2016-11-09 武汉风行在线技术有限公司 The blue Tooth remote controller intelligent reminding scheme found based on position and system
WO2017152607A1 (en) * 2016-03-09 2017-09-14 合一智能科技(深圳)有限公司 Remote control method, remote controller and remote control system
US9942849B1 (en) * 2017-05-19 2018-04-10 Apple Inc. Bluetooth# low-energy scanning and ranging
CN108282746A (en) * 2018-02-05 2018-07-13 深圳市兆驰股份有限公司 A method of prompt blue Tooth remote controller position
CN109451095A (en) * 2018-12-28 2019-03-08 江苏惠通集团有限责任公司 Detection method and device, storage medium, the terminal of remote controler
US10713923B1 (en) * 2016-11-10 2020-07-14 FetchFind LLC System and methods for using Bluetooth and GPS technologies to assist user to avoid losing eyeglasses
CN111800774A (en) * 2020-07-03 2020-10-20 上海风秩科技有限公司 Control method and device of Bluetooth equipment and storage medium
CN112423238A (en) * 2019-08-22 2021-02-26 京东方科技集团股份有限公司 Electronic device, control terminal, storage medium, and device connection method
CN112614333A (en) * 2020-12-17 2021-04-06 杭州当贝网络科技有限公司 Remote controller retrieving method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113772B (en) * 2013-04-22 2018-11-27 三星电子株式会社 Show equipment, user terminal apparatus and its control method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017152607A1 (en) * 2016-03-09 2017-09-14 合一智能科技(深圳)有限公司 Remote control method, remote controller and remote control system
CN106101774A (en) * 2016-07-09 2016-11-09 武汉风行在线技术有限公司 The blue Tooth remote controller intelligent reminding scheme found based on position and system
US10713923B1 (en) * 2016-11-10 2020-07-14 FetchFind LLC System and methods for using Bluetooth and GPS technologies to assist user to avoid losing eyeglasses
US9942849B1 (en) * 2017-05-19 2018-04-10 Apple Inc. Bluetooth# low-energy scanning and ranging
CN108282746A (en) * 2018-02-05 2018-07-13 深圳市兆驰股份有限公司 A method of prompt blue Tooth remote controller position
CN109451095A (en) * 2018-12-28 2019-03-08 江苏惠通集团有限责任公司 Detection method and device, storage medium, the terminal of remote controler
CN112423238A (en) * 2019-08-22 2021-02-26 京东方科技集团股份有限公司 Electronic device, control terminal, storage medium, and device connection method
CN111800774A (en) * 2020-07-03 2020-10-20 上海风秩科技有限公司 Control method and device of Bluetooth equipment and storage medium
CN112614333A (en) * 2020-12-17 2021-04-06 杭州当贝网络科技有限公司 Remote controller retrieving method and system

Also Published As

Publication number Publication date
CN113453205A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN113453205B (en) Bluetooth remote controller recovery method, system and computer storage medium
CN109618202B (en) Method for controlling peripheral equipment, television and readable storage medium
CN105634881B (en) Application scene recommendation method and device
CN110535732B (en) Equipment control method and device, electronic equipment and storage medium
CN108762843A (en) Preloading method, apparatus, storage medium and the intelligent terminal of application program
CN108614722A (en) Application program preloads method, apparatus, storage medium and terminal
CN110555171B (en) Information processing method, device, storage medium and system
CN108154882A (en) The control method and control device of remote control equipment, storage medium and remote control equipment
CN110661685A (en) Information feedback method and device, electronic equipment and storage medium
CN110824940A (en) Method and device for controlling intelligent household equipment, electronic equipment and storage medium
CN108735216A (en) Voice question searching method based on semantic recognition and family education equipment
CN113273151A (en) Intelligent device management method, mobile terminal and system
CN104168263A (en) Server and clock realization method thereof
CN109816830B (en) Unlocking method and device
CN112614333A (en) Remote controller retrieving method and system
CN113393838A (en) Voice processing method and device, computer readable storage medium and computer equipment
CN113014898B (en) Projector wake-up control method, projector and readable storage medium
CN112822763A (en) Electronic price tag dynamic awakening method, electronic price tag dynamic awakening equipment and computer storage medium
CN110335378B (en) Unlocking mode distribution method, device and system
CN113783994B (en) Prompt information display method and device, electronic equipment and storage medium
CN112616176B (en) Wake-up method and device and control method and device of equipment
CN110784762B (en) Video data processing method, device, equipment and storage medium
CN108663942B (en) Voice recognition equipment control method, voice recognition equipment and central control server
WO2017140271A1 (en) Method, apparatus and system for performing information presentation
CN110347047B (en) Method, device and system for deleting equipment, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant