WO2018041003A1 - Wireless control method, device, and electronic apparatus - Google Patents

Wireless control method, device, and electronic apparatus Download PDF

Info

Publication number
WO2018041003A1
WO2018041003A1 PCT/CN2017/098868 CN2017098868W WO2018041003A1 WO 2018041003 A1 WO2018041003 A1 WO 2018041003A1 CN 2017098868 W CN2017098868 W CN 2017098868W WO 2018041003 A1 WO2018041003 A1 WO 2018041003A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
module
remote control
infrared
control device
Prior art date
Application number
PCT/CN2017/098868
Other languages
French (fr)
Chinese (zh)
Inventor
郑德生
Original Assignee
深圳创维数字技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳创维数字技术有限公司 filed Critical 深圳创维数字技术有限公司
Publication of WO2018041003A1 publication Critical patent/WO2018041003A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42221Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43637Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk

Definitions

  • the present disclosure relates to the field of communications technologies, and, for example, to a wireless control method, apparatus, and electronic device.
  • Bluetooth is a short-range, low-power wireless connection technology that operates in the global 2.4GHz ISM band and provides users with a low-cost, high-reliability and low-complexity wireless communication network. Use a wireless interface instead of a wired cable connection anytime, anywhere, so that different digital devices in close proximity can easily share data resources seamlessly.
  • the development and intelligence of the network now make Bluetooth technology more widely used in the set-top box industry.
  • Bluetooth Wi-Fi
  • Wifi Wlreless-Fidelity
  • the Bluetooth module shares an antenna with the Wifi module, and uses time division multiplexing in communication, that is, only in the same time slice. Bluetooth or Wifi communication. In this way, there will be coexistence issues between Bluetooth and Wifi.
  • Bluetooth communication needs to be authenticated in the manner of “authentication” before the link is established, Bluetooth needs to be performed between Bluetooth devices.
  • the related intelligent network set-top box with Bluetooth remote control can guide the user to set the Bluetooth of the set-top box and the Bluetooth remote control in the boot interface of the first boot, and the Bluetooth remote controller completed by Bluetooth can perform normal remote operation with the set-top box.
  • the Bluetooth remote control fails during use, such as the Bluetooth remote control completely fails, when the new Bluetooth remote control needs to be replaced, in order to allow the set-top box and the new Bluetooth remote control to re-Bluetooth, the set-top box will be time-multiplexed in the background. Bluetooth scanning operation.
  • the set top box takes up most of the time to scan the Bluetooth device in the background when it is powered on. That is, during the use of the set-top box, there will be a large number of time slices for the Bluetooth scanning, which takes up more antenna usage time and affects the Wifi communication of the set-top box. For example, when the user performs online video viewing through the Wifi connection router, since the Bluetooth occupies more antenna usage time, the Wifi communication is blocked, the throughput is lowered, and the video is stuck or cannot be viewed.
  • the present disclosure provides a wireless control method, device, and electronic device, which can reduce the time that the Bluetooth occupies the antenna, improve the Wifi communication throughput of the set top box, and improve the problem of coexistence of Bluetooth and Wifi.
  • the embodiment provides a wireless control method, which can be applied to an electronic device, where the electronic device is configured with a Bluetooth module, a Wifi module, an infrared module, and an antenna.
  • the Bluetooth module is working, the Wifi module is time-division multiplexed with the Wifi module.
  • An antenna the method comprising:
  • the method further includes: turning on the infrared module.
  • the method further includes: monitoring whether a preset signal is received; turning on the Bluetooth module when receiving the preset signal; and scanning available by using the Bluetooth module Bluetooth remote control device.
  • the method further includes: performing the step of detecting whether the Bluetooth connection of the Bluetooth module is successful; and when the Bluetooth connection is successful, closing the Said infrared module.
  • the embodiment further provides a wireless control device, which is applied to an electronic device, and the electronic device is configured There is a Bluetooth module, a Wifi module, an infrared module and an antenna.
  • the Bluetooth module works, the antenna is time-division multiplexed with the Wifi module;
  • the wireless control device includes a first detection module and a first control module
  • the first detecting module is configured to: detect whether the Bluetooth connection of the Bluetooth module is successful; stop the Bluetooth connection when the Bluetooth connection is unsuccessful;
  • the first control module is configured to: stop the Bluetooth connection when the Bluetooth connection is unsuccessful; receive an infrared remote control command by using the infrared module.
  • the first control module is further configured to: after receiving the infrared remote control command by the infrared module, turn on the infrared module.
  • the first detecting module is further configured to: after receiving the Bluetooth connection, monitor whether a preset signal is received; and the first control module is further configured to: receive the preset Turning on the Bluetooth module when the signal is; and scanning the available Bluetooth remote control device with the Bluetooth module.
  • the first detecting module is further configured to: after detecting the available Bluetooth remote control device by using the Bluetooth module, detecting whether the Bluetooth connection of the Bluetooth module is successful; and the first control module further setting To: turn off the infrared module when the Bluetooth connection is successful.
  • the embodiment further provides a method for controlling a set top box, which may include:
  • the Bluetooth module receives the Bluetooth remote control command
  • the Bluetooth module is turned off, and the infrared remote control module is turned on to receive the infrared remote control command.
  • the Bluetooth module when the Bluetooth remote control device fails to connect to the set-top box, the Bluetooth module is turned off, and the step of turning on the infrared receiving module to receive the infrared remote control command further includes: monitoring whether the receiving is received. Bluetooth interrupt signal; when receiving the Bluetooth interrupt signal, control to turn on the Bluetooth module and scan the Bluetooth device; and when the Bluetooth interrupt signal is not received, continue to receive the infrared remote control command.
  • the step of receiving the Bluetooth remote control command by the Bluetooth module comprises: scanning the available Bluetooth remote control device through the Bluetooth module; when scanning the available Bluetooth remote control device And connecting the available Bluetooth remote control device to the set top box for Bluetooth; and after the available Bluetooth remote control device and the set top box Bluetooth connection succeed, controlling the Bluetooth module to receive the Bluetooth remote control command output by the connected Bluetooth remote control device.
  • the method further comprises: stopping scanning the available Bluetooth remote control device.
  • the method further includes: determining whether the bluetooth module is turned on, and when the bluetooth module is not turned on, turning on the bluetooth module.
  • the embodiment further provides a control device for the set top box, including:
  • the second detecting module is configured to detect whether the Bluetooth remote control device and the set top box Bluetooth connection are successful; when the Bluetooth remote control device and the set top box Bluetooth connection succeed, the Bluetooth module receives the Bluetooth remote control instruction;
  • the second control module is configured to turn off the Bluetooth module when the Bluetooth remote control device fails to connect to the set top box, and simultaneously turn on the infrared remote control module to receive the infrared remote control command.
  • the device further includes a monitoring module configured to: when the Bluetooth remote control device fails to connect to the set top box, the Bluetooth module is turned off, and the infrared receiving module is turned on to receive the infrared remote control command, and then monitor whether the Bluetooth interrupt signal is received; When the Bluetooth interrupt signal is used, the Bluetooth module is controlled to be turned on and the Bluetooth device is scanned; when the Bluetooth interrupt signal is not received, the infrared remote control finger is continuously received. make.
  • a monitoring module configured to: when the Bluetooth remote control device fails to connect to the set top box, the Bluetooth module is turned off, and the infrared receiving module is turned on to receive the infrared remote control command, and then monitor whether the Bluetooth interrupt signal is received; When the Bluetooth interrupt signal is used, the Bluetooth module is controlled to be turned on and the Bluetooth device is scanned; when the Bluetooth interrupt signal is not received, the infrared remote control finger is continuously received. make.
  • the second detecting module comprises a scanning unit configured to scan an available Bluetooth remote control device through a Bluetooth module; the pairing unit is configured to: when the available Bluetooth remote control device is scanned, the available Bluetooth remote control device The set top box performs a Bluetooth connection; and the control unit is configured to, after the Bluetooth connection between the available Bluetooth remote control device and the set top box is successfully connected, control the Bluetooth module to receive the Bluetooth remote control command output by the connected Bluetooth remote control device.
  • the second detecting module further includes a stopping unit configured to stop scanning the available Bluetooth remote control device after the Bluetooth module receives the Bluetooth remote control command output by the connected Bluetooth remote control device.
  • the embodiment further provides a set top box, which may include the control device of the set top box provided in any one of the above claims.
  • the embodiment further provides an electronic device, where the electronic device is configured with a first Bluetooth module, a Wifi module, a first infrared module, an antenna, and a first processor, the first Bluetooth module, the Wifi module, and the first The infrared module is respectively connected to the first processor, the first bluetooth module and the Wifi module are connected to the antenna, and when the bluetooth module is working, the bluetooth module and the Wifi module are time division multiplexed Antenna, the first processor is set to:
  • the first processor is further configured to: after receiving the infrared remote control instruction by using the first infrared module, turning on the first infrared module.
  • the first processor is further configured to: after stopping the Bluetooth connection, monitoring whether a preset signal is received, and when receiving the preset signal, turning on the first Bluetooth module;
  • the first Bluetooth module scans for available Bluetooth remote control devices.
  • the first processor is further configured to: after scanning the available Bluetooth remote control device by using the first Bluetooth module, detecting whether the Bluetooth connection of the first Bluetooth module is successful; When the Bluetooth connection of the module is successful, the first infrared module is turned off.
  • the embodiment further provides a wireless control system, which may include any one of the electronic devices provided above, and further includes a remote control device;
  • the remote control device is configured with a second Bluetooth module, a second infrared module, and a second processor, and the second Bluetooth module and the second infrared module are respectively connected to the second processor;
  • the second Bluetooth module is configured to perform Bluetooth communication with the first Bluetooth module
  • the second infrared module is configured to perform infrared communication with the first infrared module.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for performing any of the above methods.
  • the embodiment further provides a set top box including one or more processors, a memory, and one or more programs, the one or more programs being stored in the memory, when executed by one or more processors, Perform any of the above methods.
  • the embodiment further provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer Having the computer perform any of the methods described above.
  • the wireless control method, device and electronic device provided in this embodiment can reduce the time for the Bluetooth to occupy the antenna, improve the Wifi communication throughput of the set top box, and improve the problem of coexistence between the Bluetooth and the Wifi.
  • FIG. 1 is a schematic flowchart diagram of a wireless control method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of a wireless control apparatus according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart of a method for controlling a set top box according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram of a control device for a set top box according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another method for controlling a set top box according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a wireless control system according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of hardware of a set top box according to an embodiment of the present disclosure.
  • the embodiment provides a wireless control method, and the method can be applied to an electronic device, where the electronic device can be configured with a Bluetooth module, a Wifi module, an infrared module, and an antenna.
  • the Bluetooth module works, it is time-divided with the Wifi module.
  • the antenna as shown in FIG. 1, the method can include S110-S130.
  • detecting whether the Bluetooth connection between the Bluetooth remote control device and the Bluetooth module is successful and if so, receiving the Bluetooth remote control command sent by the Bluetooth remote control device by the Bluetooth module.
  • an infrared remote control command is received by the infrared module.
  • the Bluetooth connection between the Bluetooth remote control device and the Bluetooth module fails, the Bluetooth connection is stopped, and the infrared remote control command is received through the infrared remote control module, wherein the Bluetooth connection can be stopped by turning off the Bluetooth module.
  • the Bluetooth module and the infrared module can be turned on, and the Bluetooth module can perform Bluetooth connection with the Bluetooth remote control device.
  • the Bluetooth connection of the Bluetooth module is successful, the Bluetooth remote control command is received through the Bluetooth module, when the Bluetooth connection of the Bluetooth module is unsuccessful. , stop continuing the Bluetooth connection, through red
  • the external module receives an infrared remote command.
  • the method further includes: turning on the infrared module.
  • the infrared module can also be turned off.
  • the Bluetooth connection of the Bluetooth module is unsuccessful, the infrared module is turned on and the infrared remote control command is received.
  • the method before the step of stopping the Bluetooth connection, the method further includes: monitoring whether a preset signal is received; turning on the Bluetooth module when receiving the preset signal; and scanning for available Bluetooth by using the Bluetooth module Remote control device.
  • the preset signal may be a Bluetooth connection interrupt signal.
  • the method further includes: performing the step of detecting whether the Bluetooth connection of the Bluetooth module is successful; and when the Bluetooth connection is successful, turning off the infrared Module.
  • the Bluetooth module when used to scan to an available Bluetooth remote control device, the scanned Bluetooth remote control device is Bluetooth-connected with the Bluetooth module of the set-top box; and the Bluetooth connection of the Bluetooth module is successfully monitored.
  • the infrared module can be turned off, and the Bluetooth remote control command output by the Bluetooth remote control device is received through the Bluetooth module.
  • the embodiment further provides a wireless control device.
  • the device can be applied to an electronic device.
  • the electronic device can be configured with a Bluetooth module 210, a Wifi module 220, an infrared module 230, and an antenna 240.
  • the antenna 240 is time-multiplexed with the Wifi module 220; wherein the Bluetooth module 210, the Wifi module 220, and the infrared module 230 are respectively connected to the wireless control device, and the Bluetooth module 210 and the Wifi module 220 are connected to the antenna 240, when the Bluetooth module 210 works At the same time, the Bluetooth module 210 and the Wifi module 220 time-multiplex the antenna.
  • the wireless control device can include a first detection module 250 and a first control module 260;
  • the first detecting module 250 is configured to: detect whether the Bluetooth connection of the Bluetooth module is successful; stop the Bluetooth connection when the Bluetooth connection is unsuccessful;
  • the first control module 260 is configured to: stop the Bluetooth connection when the Bluetooth connection is unsuccessful; receive an infrared remote control command by using the infrared module.
  • the first control module 260 is further configured to: before the step of receiving an infrared remote control command by using the infrared module, turning on the infrared module.
  • the first detecting module 250 is further configured to: before receiving the Bluetooth connection, monitoring whether a preset signal is received; when receiving the preset signal, turning on the Bluetooth module; The Bluetooth module scans for available Bluetooth remote control devices.
  • the first detecting module 250 is further configured to: after detecting the available Bluetooth remote control device by using the Bluetooth module, detecting whether the Bluetooth connection of the Bluetooth module is successful;
  • the first control module 260 is further configured to: when the Bluetooth connection is successful, turn off the infrared module.
  • the continuous reading of the Bluetooth device in the set-top box causes the Bluetooth to occupy the antenna for too long, which affects the Wifi communication throughput.
  • the infrared function can be used to control the Bluetooth, and the Bluetooth remote control device and the set-top box fail to connect to the Bluetooth connection.
  • Infrared remote control function the set-top box is turned off in the background of the Bluetooth module, does not need to spend a lot of time for the background of Bluetooth scanning, so that the set-top box Wifi communication throughput has been greatly improved, improving the problem of Bluetooth and Wifi coexistence.
  • FIG. 3 is a schematic diagram of a method for controlling a set top box according to an embodiment, where the method may include the following steps:
  • an infrared remote control command can be transmitted through an infrared transmitting tube on a Bluetooth remote control device.
  • the Bluetooth connection control can be implemented by using the infrared remote control function.
  • the Bluetooth remote control device can normally perform Bluetooth connection with the set top box
  • the Bluetooth remote control device is used to transmit the remote control command through Bluetooth, and when the Bluetooth remote control device and the set top box are Bluetooth.
  • the connection fails, the Bluetooth module is turned off, and the infrared remote control module is turned on, that is, the infrared remote control function is switched. Since the Bluetooth module has been turned off, there is no need to spend a lot of time in the background for Bluetooth scanning, reducing the time for the Bluetooth to occupy the antenna, and improving the WIFI communication throughput of the set top box. Improved the problem of time division multiplexing between Bluetooth and WIFI.
  • the Bluetooth module is turned off, and the step of receiving the infrared remote control command by the infrared receiving module is further included: monitoring whether the Bluetooth connection interruption signal is received, and if yes, controlling the Bluetooth The module is turned on and the available Bluetooth remote control device is scanned; otherwise, the infrared remote control command continues to be received.
  • the set-top box When the remote control device fails to connect to the set-top box and switches to the infrared remote control function, if the set-top box detects the Bluetooth connection interrupt signal output by the infrared remote control command, the set-top box controls the Bluetooth module to be turned on, and scans the available Bluetooth remote control device.
  • the remote control device can control the set top box through an infrared transmitter set on the Bluetooth remote controller, such as an infrared transmitting tube, and an infrared receiving module set in the set top box.
  • the Bluetooth remote control device can output the Bluetooth connection interrupt signal to the infrared receiving module through the infrared remote control command, and receive the interrupt signal after the set top box control.
  • the Bluetooth module is turned on, and the available Bluetooth remote control device is re-scanned.
  • the action of scanning the available Bluetooth remote control device may be actively issued by the user when ensuring that the remote control device with the Bluetooth function is currently active, without passively occupying a large amount of time in the background.
  • Bluetooth scanning reduces Bluetooth time and improves Wifi usage time And throughput to improve the smoothness of video playback.
  • the step of receiving the Bluetooth remote control instruction by the Bluetooth module includes:
  • the infrared module can be turned off, and the Bluetooth remote control output of the currently connected Bluetooth remote control device is received through the Bluetooth module to control the set top box.
  • the available Bluetooth remote control device is scanned to generate a list of currently available Bluetooth devices. If the available Bluetooth remote control device is scanned, one of the available remote control devices is Bluetooth-connected with the set-top box, and after the Bluetooth connection is successful, the Bluetooth is controlled.
  • the module receives the Bluetooth remote control command output by the currently connected Bluetooth remote control device, realizes the control of the set top box by the remote control device, and normally uses the Bluetooth function of the Bluetooth remote control device.
  • the Bluetooth module receives the Bluetooth remote control command output by the connected Bluetooth remote control device, stops scanning the available Bluetooth remote control device, and the Bluetooth turns off the set top box Bluetooth.
  • the scanning function reduces the time that the Bluetooth takes up the antenna and improves the use time of the Wifi.
  • the method further includes:
  • the Bluetooth module After the set-top box is turned on, it is judged whether the Bluetooth module is turned on. If the Bluetooth module is turned on, the subsequent Bluetooth remote control device detection step is normally performed. If the Bluetooth module is not turned on, the Bluetooth module is first turned on to ensure that the Bluetooth function of the set-top box is normal.
  • the embodiment further provides a control device for the set top box.
  • the device may include: The second detecting module 10, the second control module 20, the Bluetooth module 30 and the infrared remote control module 40.
  • the second detecting module 10 is connected to the second control module 20 and the Bluetooth module 30.
  • the second control module 20 is further connected to the infrared remote control module 40.
  • the second detecting module 10 is configured to detect the Bluetooth remote control device and the set top box Bluetooth. Whether the connection is successful, if yes, the Bluetooth remote control command is received by the Bluetooth module 30; the second control module 20 is configured to turn off the Bluetooth module 30 when the Bluetooth remote control device fails to connect to the set top box, and simultaneously turn on the infrared remote control module 40 to receive the infrared remote control Instructed, the apparatus may further include conventional modules such as a Bluetooth power supply module, an infrared power supply module, a power supply module, and a button module not shown in the drawings.
  • the control device of the set top box provided in this embodiment may be provided with a Bluetooth module 30 or an infrared remote control module 40, and the infrared remote control module 40 is configured to receive an infrared remote control command.
  • the Bluetooth remote control device used in this embodiment may also be provided with a Bluetooth module and an infrared transmitting tube.
  • the infrared transmitting tube can transmit an infrared signal to realize an infrared remote control function.
  • the Bluetooth remote control device and the set top box are successfully connected to the Bluetooth, the Bluetooth can be used by the Bluetooth.
  • the Bluetooth module of the remote control device transmits a remote control command by transmitting a Bluetooth signal, and when the Bluetooth remote control device fails to connect to the set top box, the Bluetooth module 30 is turned off, and the infrared remote control module 40 is turned on, that is, the infrared remote control function is switched, and the infrared light is emitted through the infrared emission tube.
  • Remote control commands are used for remote control, eliminating the need to spend a lot of time in the background for Bluetooth scanning, reducing the time that Bluetooth takes up the antenna, making the Wifi communication throughput of the set-top box greatly improved, and improving the problem of time division multiplexing of Bluetooth and Wifi.
  • control system of the set top box may further include a monitoring module 50, the monitoring module 50 is connected to the infrared remote control module 40 and the Bluetooth module 30, and the monitoring module 50 is configured to monitor whether a Bluetooth interrupt signal is received, and if so, The Bluetooth module 30 is controlled to be turned on, and the available Bluetooth remote control device is scanned; otherwise, the infrared remote control command is continuously received.
  • the detecting module 10 includes a scanning unit 101, a pairing unit 102, a control unit 103, and a stopping unit 104. The scanning unit 101, the pairing unit 102, the control unit 103, and the stopping unit 104 are sequentially connected, and the scanning unit is sequentially connected.
  • the control unit 103 is further connected to the Bluetooth module 30, wherein the scanning unit 101 is arranged to scan for available Bluetooth remote control devices; the pairing unit 102 is arranged to when the available remote control device is scanned, The available remote control device is connected to the set top box for Bluetooth connection; the control unit 103 is configured to control the Bluetooth module 30 to receive the Bluetooth remote control command output by the currently connected Bluetooth remote control device for remote control after the Bluetooth connection is successful; the stop unit 104 is set to stop Scan for available Bluetooth remote control devices.
  • the control device of the set top box further includes a determining module 60.
  • the determining module 60 is connected to the Bluetooth module 30.
  • the determining module 60 is configured to determine whether the Bluetooth module 30 is turned on.
  • the Bluetooth module 30 is turned on. That is, after the set-top box is turned on, it is determined whether the Bluetooth module 30 is turned on. If it is turned on, the subsequent available remote device detection steps are normally performed. If not, the Bluetooth module 30 is turned on first to ensure that the Bluetooth function of the set-top box is normal.
  • the embodiment further provides a set top box, which may include any of the wireless control devices provided by the embodiments described above.
  • the implementation process of the control method of the set top box of this embodiment will be described with reference to FIG. 5:
  • FIG. 5 is a flowchart of another method for controlling a set top box according to the embodiment. The method may include the following steps:
  • S12 it is determined whether the Bluetooth module is turned on, and if so, S13 is executed; if not, S14 is executed.
  • the Bluetooth module is turned on.
  • an available Bluetooth remote control device is scanned; wherein the available Bluetooth remote control device is a remote control device with normal Bluetooth function.
  • the Bluetooth module is turned off.
  • the infrared remote control module is turned on.
  • S22 it is monitored whether a Bluetooth interrupt signal is received, and if so, the process returns to S14, and if not, then S23 is executed.
  • the set-top box After the set-top box is powered on, it will first determine whether to enable the Bluetooth module. If it is not enabled, the Bluetooth module will be turned on. After the Bluetooth module is turned on, Bluetooth can be used to determine whether there is a Bluetooth connection between the Bluetooth remote control and the Bluetooth module of the set-top box through the Bluetooth device list. The set-top box normally receives the Bluetooth remote control command, and the Bluetooth remote control is normally used. If it is determined that there is no successful Bluetooth remote control connected, the Bluetooth device scans to determine whether the available Bluetooth remote control is in the scanned state of Bluetooth, if there is a Bluetooth remote control After being scanned and connected to the Bluetooth module of the set-top box, the Bluetooth remote control is normally used, and the Bluetooth scanning function is turned off.
  • the set-top box can Turn off the Bluetooth module. After the Bluetooth module is turned off, the set-top box enables the infrared remote control function, that is, the infrared module is turned on. After using the infrared remote control function, the set-top box monitors whether there is an infrared remote control signal to trigger the Bluetooth remote control Bluetooth connection interrupt signal. Detected Bluetooth disconnection signal, the Bluetooth module is turned on, if there is no set-top box Bluetooth interrupt signal is detected, the set-top box continues to receive the infrared remote control signal.
  • the embodiment further provides an electronic device.
  • the electronic device is configured with a first Bluetooth module 610, a Wifi module 620, a first infrared module 630, an antenna 640, and a first processor 650.
  • the first Bluetooth module 610, the Wifi module 620, and the first infrared module 630 are respectively connected to the first processor 650, and the first Bluetooth module 610 and the Wifi module 620 are connected to the antenna 640.
  • the first Bluetooth module 610 When the first Bluetooth module 610 is working, the first Bluetooth module 610 and the Wifi module 620 time-division multiplex the antenna, and the first processor 650 is configured to:
  • An infrared remote control command is received by the first infrared module 630.
  • the first processor 650 is further configured to:
  • the first infrared module 630 is turned on before receiving the infrared remote control command through the first infrared module 630.
  • the electronic device is a set-top box.
  • the first Bluetooth module 610 and the first infrared module 630 can be turned on.
  • the first Bluetooth module 610 performs Bluetooth connection with the Bluetooth remote control device, and the Bluetooth connection of the first Bluetooth module 610.
  • the first processor 650 receives the Bluetooth remote control command through the first Bluetooth module 610.
  • the Bluetooth connection of the first Bluetooth module 610 is unsuccessful, the first processor 650 receives the infrared remote control command through the first infrared module 630.
  • the first infrared module 630 can also be in a closed state.
  • the Bluetooth connection of the first Bluetooth module 610 is unsuccessful, the first infrared module 630 is controlled by the first processor 650 to receive an infrared remote control command.
  • the first processor 650 is further configured to:
  • the Bluetooth connection After the Bluetooth connection is stopped, it is monitored whether a preset signal is received, and when the preset signal is received, the first Bluetooth module 610 is turned on; and the first Bluetooth module 610 is used to scan for an available Bluetooth remote control device.
  • the first processor 650 is further configured to:
  • the first Bluetooth module 610 After scanning the available Bluetooth remote control device by using the first Bluetooth module 610, detecting the first Whether the Bluetooth connection of a Bluetooth module 610 is successful; when the Bluetooth connection of the first Bluetooth module 610 is successful, the first infrared module 630 is turned off.
  • the embodiment further provides a wireless control system, as shown in FIG. 7 , the system may include any one of the electronic devices provided by the foregoing embodiments, and further includes a remote control device;
  • the remote control device is configured with a second Bluetooth module 710, a second infrared module 720, and a second processor 730, and the second Bluetooth module 710 and the second infrared module 720 are respectively connected to the second processor 730;
  • the second Bluetooth module 710 is configured to perform Bluetooth communication with the first Bluetooth module 610;
  • the second infrared module 720 is configured to perform infrared communication with the first infrared module 630.
  • the electronic device may be a set top box, and the remote control device is a Bluetooth remote controller.
  • the set top box is powered on, the first Bluetooth module 610 is turned on, the first Bluetooth module 610 is connected to the second Bluetooth module 710, and the Bluetooth connection is performed.
  • the information is fed back to the first processor 650.
  • the control turns on the first infrared module 630, and receives the infrared control command sent by the second infrared module 720 through the first infrared module 630.
  • the first infrared module 630 can also be turned on when the set top box is powered on.
  • the first processor 650 receives the information that the Bluetooth connection is unsuccessful, the first infrared module 630 receives the infrared control command sent by the second infrared module 720.
  • system and set-top box of the set-top box it is detected whether the remote control device has a Bluetooth connection with the set-top box, and if so, the Bluetooth remote control command is received by the Bluetooth module; then, when the Bluetooth remote control device and the set-top box fail to connect to the Bluetooth Turn off the Bluetooth module, and turn on the infrared remote control module to receive the infrared remote control command. It can cooperate with the infrared function to control the Bluetooth of the set-top box and the remote control device. When the Bluetooth remote control device and the set-top box fail to connect to the Bluetooth, switch to the infrared remote control function. At this time, the set-top box closes the Bluetooth module.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for performing any of the above methods.
  • the set top box includes: a processor 810 and a memory 820; and may also include a communication interface (Communications). Interface 830 and bus 840.
  • the processor 810, the memory 820, and the communication interface 830 can complete communication with each other through the bus 840.
  • Communication interface 830 can be used for information transfer.
  • Processor 810 can invoke logic instructions in memory 820 to perform any of the methods of the above-described embodiments.
  • the memory 820 may include a storage program area and a storage data area, and the storage program area may store an operating system and an application required for at least one function.
  • the storage data area can store data and the like created according to the use of the set top box.
  • the memory may include, for example, a volatile memory of a random access memory, and may also include a non-volatile memory. For example, at least one disk storage device, flash memory device, or other non-transitory solid state storage device.
  • the logic instructions in the memory 820 described above can be implemented in the form of software functional units and sold or used as separate products, the logic instructions can be stored in a computer readable storage medium.
  • the technical solution of the present disclosure may be embodied in the form of a computer software product, which may be stored in a storage medium, and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) All or part of the steps of the method described in this embodiment are performed.
  • the storage medium may be a non-transitory storage medium or a transitory storage medium.
  • the non-transitory storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
  • All or part of the processes in the foregoing embodiment may be completed by a computer program indicating related hardware, and the program may be stored in a non-transitory computer readable storage medium, and when the program is executed, may include the above The flow of an embodiment of the method.
  • the disclosure provides a wireless control method, an electronic device, and a wireless control system.
  • the Bluetooth connection between the Bluetooth remote control device and the Bluetooth module of the electronic device fails, the infrared remote control function is switched, and the Bluetooth connection function is turned off in the background of the electronic device, and does not require a lot of time slices.
  • the background Bluetooth device scans to reduce the time taken by the Bluetooth to occupy the antenna, improve the Wifi communication throughput of the set-top box, and also can control the Bluetooth connection between the electronic device and the remote control device with the infrared function, and improve the problem of coexistence between Bluetooth and Wifi.

Abstract

The disclosure provides a wireless control method, device, and set-top box. The method comprises: determining whether a Bluetooth connection between a Bluetooth remote control apparatus and a set-top box is established successfully; if so, receiving, by a Bluetooth module, a Bluetooth remote control command; and if not, deactivating the Bluetooth module, and activating an infrared remote control module to receive an infrared remote control command.

Description

无线控制方法、装置及电子设备Wireless control method, device and electronic device 技术领域Technical field
本公开涉及通信技术领域,例如涉及一种无线控制方法、装置及电子设备。The present disclosure relates to the field of communications technologies, and, for example, to a wireless control method, apparatus, and electronic device.
背景技术Background technique
蓝牙(Bluetooth)是一种近距离、低功耗无线连接技术,工作在全球通用的2.4GHz的ISM频段,能够为用户提供了一个低成本、高可靠性和低复杂度的无线通信网络,可随时随地用无线接口来代替有线电缆连接,使近距离内的不同数字设备能方便地实现数据资源的无缝共享。现在网络的发展及智能化使得蓝牙技术在机顶盒行业有了更加广泛地应用。Bluetooth is a short-range, low-power wireless connection technology that operates in the global 2.4GHz ISM band and provides users with a low-cost, high-reliability and low-complexity wireless communication network. Use a wireless interface instead of a wired cable connection anytime, anywhere, so that different digital devices in close proximity can easily share data resources seamlessly. The development and intelligence of the network now make Bluetooth technology more widely used in the set-top box industry.
智能网络机顶盒大多具有连接蓝牙与无线保真(Wlreless-Fidelity,Wifi)网络的功能,其中,蓝牙模块与Wifi模块共用一根天线,在通信时采用时分复用,即同一个时间片内只能进行蓝牙或Wifi的通信。这样,蓝牙与Wifi之间就会有共存问题。Most intelligent network set-top boxes have the function of connecting Bluetooth and Wlreless-Fidelity (Wifi) networks. Among them, the Bluetooth module shares an antenna with the Wifi module, and uses time division multiplexing in communication, that is, only in the same time slice. Bluetooth or Wifi communication. In this way, there will be coexistence issues between Bluetooth and Wifi.
由于蓝牙通信在链路建立前需要采用“认证”的方式进行安全保护,即蓝牙设备间需要进行蓝牙。相关的配有蓝牙遥控器的智能网络机顶盒可以在首次开机的引导界面指引用户进行机顶盒与蓝牙遥控器的蓝牙,蓝牙完成的蓝牙遥控器就可以与机顶盒进行正常的遥控操作。但在使用过程中若蓝牙遥控器出现故障,如蓝牙遥控器彻底失效,需要更换新的蓝牙遥控器时,为了能让机顶盒与新的蓝牙遥控器重新蓝牙,机顶盒就会在后台进行时分复用的蓝牙扫描操作。Since Bluetooth communication needs to be authenticated in the manner of “authentication” before the link is established, Bluetooth needs to be performed between Bluetooth devices. The related intelligent network set-top box with Bluetooth remote control can guide the user to set the Bluetooth of the set-top box and the Bluetooth remote control in the boot interface of the first boot, and the Bluetooth remote controller completed by Bluetooth can perform normal remote operation with the set-top box. However, if the Bluetooth remote control fails during use, such as the Bluetooth remote control completely fails, when the new Bluetooth remote control needs to be replaced, in order to allow the set-top box and the new Bluetooth remote control to re-Bluetooth, the set-top box will be time-multiplexed in the background. Bluetooth scanning operation.
相关技术中机顶盒在开机使用时会占用大部分时间在后台扫描蓝牙设备, 即机顶盒使用过程中会有大量的时间片进行蓝牙扫面,占用较多的天线使用时间,影响机顶盒的Wifi通信。如用户通过Wifi连接路由器进行在线视频观看时,由于蓝牙占用了较多的天线使用时间,使得Wifi通信被阻碍,吞吐量降低,出现视频卡顿或无法观看的现象。In the related art, the set top box takes up most of the time to scan the Bluetooth device in the background when it is powered on. That is, during the use of the set-top box, there will be a large number of time slices for the Bluetooth scanning, which takes up more antenna usage time and affects the Wifi communication of the set-top box. For example, when the user performs online video viewing through the Wifi connection router, since the Bluetooth occupies more antenna usage time, the Wifi communication is blocked, the throughput is lowered, and the video is stuck or cannot be viewed.
发明内容Summary of the invention
本公开提供一种无线控制方法、装置及电子设备,能够减少蓝牙占用天线的时间,提升机顶盒Wifi通信吞吐量,改善蓝牙与Wifi共存的问题。The present disclosure provides a wireless control method, device, and electronic device, which can reduce the time that the Bluetooth occupies the antenna, improve the Wifi communication throughput of the set top box, and improve the problem of coexistence of Bluetooth and Wifi.
本实施例提供一种无线控制方法,可以应用于电子设备,所述电子设备配置有蓝牙模块、Wifi模块、红外模块和天线,当所述蓝牙模块工作时,与所述Wifi模块时分复用所述天线,所述方法包括:The embodiment provides a wireless control method, which can be applied to an electronic device, where the electronic device is configured with a Bluetooth module, a Wifi module, an infrared module, and an antenna. When the Bluetooth module is working, the Wifi module is time-division multiplexed with the Wifi module. An antenna, the method comprising:
检测所述蓝牙模块的蓝牙连接是否成功;Detecting whether the Bluetooth connection of the Bluetooth module is successful;
在所述蓝牙连接不成功时,停止所述蓝牙连接;以及Stopping the Bluetooth connection when the Bluetooth connection is unsuccessful;
通过所述红外模块接收红外遥控指令。Receiving an infrared remote control command through the infrared module.
可选地,所述通过所述红外模块,接收红外遥控指令的步骤之前,还包括:开启所述红外模块。Optionally, before the step of receiving the infrared remote control instruction by using the infrared module, the method further includes: turning on the infrared module.
可选地,所述停止所述蓝牙连接的步骤之后,还包括:监控是否接收到预设信号;在接收到所述预设信号时,开启所述蓝牙模块;以及利用所述蓝牙模块扫描可用的蓝牙遥控设备。Optionally, after the step of stopping the Bluetooth connection, the method further includes: monitoring whether a preset signal is received; turning on the Bluetooth module when receiving the preset signal; and scanning available by using the Bluetooth module Bluetooth remote control device.
可选地,利用所述蓝牙模块,扫描可用的蓝牙遥控设备的步骤之后,还包括:执行所述检测所述蓝牙模块的蓝牙连接是否成功的步骤;以及在所述蓝牙连接成功时,关闭所述红外模块。Optionally, after the step of scanning the available Bluetooth remote control device by using the Bluetooth module, the method further includes: performing the step of detecting whether the Bluetooth connection of the Bluetooth module is successful; and when the Bluetooth connection is successful, closing the Said infrared module.
本实施例还提供一种无线控制装置,应用于电子设备,所述电子设备配置 有蓝牙模块、Wifi模块、红外模块和天线,当所述蓝牙模块工作时,与所述Wifi模块时分复用所述天线;The embodiment further provides a wireless control device, which is applied to an electronic device, and the electronic device is configured There is a Bluetooth module, a Wifi module, an infrared module and an antenna. When the Bluetooth module works, the antenna is time-division multiplexed with the Wifi module;
无线控制装置包括第一检测模块和第一控制模块;The wireless control device includes a first detection module and a first control module;
所述第一检测模块,设置为:检测所述蓝牙模块的蓝牙连接是否成功;在所述蓝牙连接不成功时,停止所述蓝牙连接;以及The first detecting module is configured to: detect whether the Bluetooth connection of the Bluetooth module is successful; stop the Bluetooth connection when the Bluetooth connection is unsuccessful;
所述第一控制模块,设置为:在所述蓝牙连接不成功时,停止所述蓝牙连接;通过所述红外模块接收红外遥控指令。The first control module is configured to: stop the Bluetooth connection when the Bluetooth connection is unsuccessful; receive an infrared remote control command by using the infrared module.
可选地,所述第一控制模块,还设置为:在通过所述红外模块,接收红外遥控指令之前,开启所述红外模块。Optionally, the first control module is further configured to: after receiving the infrared remote control command by the infrared module, turn on the infrared module.
可选地,所述第一检测模块,还设置为:在停止所述蓝牙连接之后,监控是否接收到预设信号;以及所述第一控制模块,还设置为:在接收到所述预设信号时,开启所述蓝牙模块;以及利用所述蓝牙模块扫描可用的蓝牙遥控设备。Optionally, the first detecting module is further configured to: after receiving the Bluetooth connection, monitor whether a preset signal is received; and the first control module is further configured to: receive the preset Turning on the Bluetooth module when the signal is; and scanning the available Bluetooth remote control device with the Bluetooth module.
可选地,所述第一检测模块,还设置为:在利用所述蓝牙模块扫描可用的蓝牙遥控设备之后,检测所述蓝牙模块的蓝牙连接是否成功;以及所述第一控制模块,还设置为:在所述蓝牙连接成功时,关闭所述红外模块。Optionally, the first detecting module is further configured to: after detecting the available Bluetooth remote control device by using the Bluetooth module, detecting whether the Bluetooth connection of the Bluetooth module is successful; and the first control module further setting To: turn off the infrared module when the Bluetooth connection is successful.
本实施例还提供一种机顶盒的控制方法,可以包括:The embodiment further provides a method for controlling a set top box, which may include:
检测蓝牙遥控设备与机顶盒蓝牙连接是否成功;Detect whether the Bluetooth remote control device and the set-top box Bluetooth connection are successful;
在蓝牙遥控设备与机顶盒蓝牙连接成功时,则由蓝牙模块接收蓝牙遥控指令;以及When the Bluetooth remote control device and the set-top box Bluetooth connection is successful, the Bluetooth module receives the Bluetooth remote control command;
在蓝牙遥控设备与机顶盒蓝牙连接失败时,则关闭蓝牙模块,同时开启红外遥控模块接收红外遥控指令。When the Bluetooth remote control device and the set-top box Bluetooth connection fails, the Bluetooth module is turned off, and the infrared remote control module is turned on to receive the infrared remote control command.
可选地,所述在蓝牙遥控设备与机顶盒蓝牙连接失败时,则关闭蓝牙模块,同时开启红外接收模块接收红外遥控指令的步骤之后还包括:监控是否接收到 蓝牙中断信号;在接收到蓝牙中断信号时,则控制开启所述蓝牙模块,并扫描蓝牙设备;以及在未接收到蓝牙中断信号时,则继续接收红外遥控指令。Optionally, when the Bluetooth remote control device fails to connect to the set-top box, the Bluetooth module is turned off, and the step of turning on the infrared receiving module to receive the infrared remote control command further includes: monitoring whether the receiving is received. Bluetooth interrupt signal; when receiving the Bluetooth interrupt signal, control to turn on the Bluetooth module and scan the Bluetooth device; and when the Bluetooth interrupt signal is not received, continue to receive the infrared remote control command.
可选地,所述在蓝牙遥控设备与机顶盒蓝牙连接成功时,蓝牙,则由蓝牙模块接收蓝牙遥控指令的步骤包括:通过蓝牙模块扫描可用的蓝牙遥控设备;当扫描到可用的蓝牙遥控设备时,将所述可用的蓝牙遥控设备与机顶盒进行蓝牙连接;以及在所述可用的蓝牙遥控设备与机顶盒蓝牙连接成功后,控制蓝牙模块接收已连接的蓝牙遥控设备输出的蓝牙遥控指令。Optionally, when the Bluetooth remote control device and the set-top box Bluetooth connection are successful, the Bluetooth, the step of receiving the Bluetooth remote control command by the Bluetooth module comprises: scanning the available Bluetooth remote control device through the Bluetooth module; when scanning the available Bluetooth remote control device And connecting the available Bluetooth remote control device to the set top box for Bluetooth; and after the available Bluetooth remote control device and the set top box Bluetooth connection succeed, controlling the Bluetooth module to receive the Bluetooth remote control command output by the connected Bluetooth remote control device.
可选地,其中,所述在所述可用的蓝牙遥控设备与机顶盒蓝牙连接成功后,控制蓝牙模块接收已连接的蓝牙遥控设备输出的蓝牙遥控指令的步骤之后还包括:停止扫描可用的蓝牙遥控设备。Optionally, after the step of controlling the Bluetooth module to receive the Bluetooth remote control command output by the connected Bluetooth remote control device after the Bluetooth connection between the available Bluetooth remote control device and the set top box is successful, the method further comprises: stopping scanning the available Bluetooth remote control device.
可选地,所述检测蓝牙遥控设备与机顶盒蓝牙连接是否成功的步骤之前还包括:判断所述蓝牙模块是否开启,在所述蓝牙模块未开启时,则开启蓝牙模块。Optionally, before the step of detecting whether the Bluetooth remote control device and the set top box Bluetooth connection are successful, the method further includes: determining whether the bluetooth module is turned on, and when the bluetooth module is not turned on, turning on the bluetooth module.
本实施例还提供一种机顶盒的控制装置,包括:The embodiment further provides a control device for the set top box, including:
第二检测模块,设置为检测蓝牙遥控设备与机顶盒蓝牙连接是否成功;在蓝牙遥控设备与机顶盒蓝牙连接成功时,则由蓝牙模块接收蓝牙遥控指令;以及The second detecting module is configured to detect whether the Bluetooth remote control device and the set top box Bluetooth connection are successful; when the Bluetooth remote control device and the set top box Bluetooth connection succeed, the Bluetooth module receives the Bluetooth remote control instruction;
第二控制模块,设置为在蓝牙遥控设备与机顶盒蓝牙连接失败时,则关闭蓝牙模块,同时开启红外遥控模块接收红外遥控指令。The second control module is configured to turn off the Bluetooth module when the Bluetooth remote control device fails to connect to the set top box, and simultaneously turn on the infrared remote control module to receive the infrared remote control command.
可选地,该装置还包括监控模块,设置为在蓝牙遥控设备与机顶盒蓝牙连接失败时,关闭蓝牙模块,同时开启红外接收模块接收红外遥控指令之后,监控是否接收到蓝牙中断信号;在接收到蓝牙中断信号时,则控制开启所述蓝牙模块,并扫描蓝牙设备;在未接收到蓝牙中断信号时,则继续接收红外遥控指 令。Optionally, the device further includes a monitoring module configured to: when the Bluetooth remote control device fails to connect to the set top box, the Bluetooth module is turned off, and the infrared receiving module is turned on to receive the infrared remote control command, and then monitor whether the Bluetooth interrupt signal is received; When the Bluetooth interrupt signal is used, the Bluetooth module is controlled to be turned on and the Bluetooth device is scanned; when the Bluetooth interrupt signal is not received, the infrared remote control finger is continuously received. make.
可选地,所述第二检测模块包括扫描单元,设置为通过蓝牙模块扫描可用的蓝牙遥控设备;配对单元,设置为当扫描到可用的蓝牙遥控设备时,将所述可用的蓝牙遥控设备与机顶盒进行蓝牙连接;以及控制单元,设置为在所述可用的蓝牙遥控设备与机顶盒蓝牙连接成功后,控制蓝牙模块接收已连接的蓝牙遥控设备输出的蓝牙遥控指令。Optionally, the second detecting module comprises a scanning unit configured to scan an available Bluetooth remote control device through a Bluetooth module; the pairing unit is configured to: when the available Bluetooth remote control device is scanned, the available Bluetooth remote control device The set top box performs a Bluetooth connection; and the control unit is configured to, after the Bluetooth connection between the available Bluetooth remote control device and the set top box is successfully connected, control the Bluetooth module to receive the Bluetooth remote control command output by the connected Bluetooth remote control device.
可选地,所述第二检测模块还包括停止单元,设置为在控制蓝牙模块接收已连接的蓝牙遥控设备输出的蓝牙遥控指令之后,停止扫描可用的蓝牙遥控设备。Optionally, the second detecting module further includes a stopping unit configured to stop scanning the available Bluetooth remote control device after the Bluetooth module receives the Bluetooth remote control command output by the connected Bluetooth remote control device.
本实施例还提供一种机顶盒,可以包括上述权利要求提供的任意一中机顶盒的控制装置。The embodiment further provides a set top box, which may include the control device of the set top box provided in any one of the above claims.
本实施例还提供一种电子设备,所述电子设备配置有第一蓝牙模块、Wifi模块,第一红外模块、天线和第一处理器,所述第一蓝牙模块、Wifi模块和所述第一红外模块分别与所述第一处理器连接,所述第一蓝牙模块和所述Wifi模块与所述天线连接,当所述蓝牙模块工作时,所述蓝牙模块与所述Wifi模块时分复用所述天线,所述第一处理器设置为:The embodiment further provides an electronic device, where the electronic device is configured with a first Bluetooth module, a Wifi module, a first infrared module, an antenna, and a first processor, the first Bluetooth module, the Wifi module, and the first The infrared module is respectively connected to the first processor, the first bluetooth module and the Wifi module are connected to the antenna, and when the bluetooth module is working, the bluetooth module and the Wifi module are time division multiplexed Antenna, the first processor is set to:
检测所述第一蓝牙模块的蓝牙连接是否成功;Detecting whether the Bluetooth connection of the first Bluetooth module is successful;
在所述蓝牙连接不成功时,停止所述蓝牙连接;以及Stopping the Bluetooth connection when the Bluetooth connection is unsuccessful;
通过所述第一红外模块,接收红外遥控指令。Receiving an infrared remote control command through the first infrared module.
可选地,所述第一处理器还设置为:在通过所述第一红外模块,接收红外遥控指令之前,开启所述第一红外模块。Optionally, the first processor is further configured to: after receiving the infrared remote control instruction by using the first infrared module, turning on the first infrared module.
可选地,所述第一处理器还设置为:在停止所述蓝牙连接之后,监控是否接收到预设信号,在接收到所述预设信号时,开启所述第一蓝牙模块;利用所 述第一蓝牙模块扫描可用的蓝牙遥控设备。Optionally, the first processor is further configured to: after stopping the Bluetooth connection, monitoring whether a preset signal is received, and when receiving the preset signal, turning on the first Bluetooth module; The first Bluetooth module scans for available Bluetooth remote control devices.
可选地,所述第一处理器还设置为:在利用所述第一蓝牙模块,扫描可用的蓝牙遥控设备之后,检测所述第一蓝牙模块的蓝牙连接是否成功;在所述第一蓝牙模块的蓝牙连接蓝牙连接成功时,关闭所述第一红外模块。Optionally, the first processor is further configured to: after scanning the available Bluetooth remote control device by using the first Bluetooth module, detecting whether the Bluetooth connection of the first Bluetooth module is successful; When the Bluetooth connection of the module is successful, the first infrared module is turned off.
本实施例还提供一种无线控制系统,可以包括上述要求提供的任意一种电子设备,还包括遥控设备;The embodiment further provides a wireless control system, which may include any one of the electronic devices provided above, and further includes a remote control device;
所述遥控设备配置有第二蓝牙模块、第二红外模块和第二处理器,所述第二蓝牙模块和所述第二红外模块分别与所述第二处理器连接;The remote control device is configured with a second Bluetooth module, a second infrared module, and a second processor, and the second Bluetooth module and the second infrared module are respectively connected to the second processor;
所述第二蓝牙模块设置为与所述第一蓝牙模块进行蓝牙通信;以及The second Bluetooth module is configured to perform Bluetooth communication with the first Bluetooth module;
所述第二红外模块设置为与所述第一红外模块进行红外通信。The second infrared module is configured to perform infrared communication with the first infrared module.
本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任意一种方法。The embodiment further provides a computer readable storage medium storing computer executable instructions for performing any of the above methods.
本实施例还提供一种机顶盒,该机顶盒包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述任意一种方法。The embodiment further provides a set top box including one or more processors, a memory, and one or more programs, the one or more programs being stored in the memory, when executed by one or more processors, Perform any of the above methods.
本实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种方法。The embodiment further provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer Having the computer perform any of the methods described above.
本实施例提供的无线控制方法、装置及电子设备能够实现减少蓝牙占用天线的时间,提升机顶盒的Wifi通信吞吐量,改善蓝牙与Wifi共存的问题。The wireless control method, device and electronic device provided in this embodiment can reduce the time for the Bluetooth to occupy the antenna, improve the Wifi communication throughput of the set top box, and improve the problem of coexistence between the Bluetooth and the Wifi.
附图说明DRAWINGS
图1为本实施例提供的一种无线控制方法的流程示意图; FIG. 1 is a schematic flowchart diagram of a wireless control method according to an embodiment of the present disclosure;
图2为本实施例提供的一种无线控制装置的结构示意图;2 is a schematic structural diagram of a wireless control apparatus according to an embodiment of the present disclosure;
图3为本实施例提供的一种机顶盒的控制方法的流程图;FIG. 3 is a flowchart of a method for controlling a set top box according to an embodiment of the present invention;
图4为本实施例提供的一种机顶盒的控制装置的结构框图;4 is a structural block diagram of a control device for a set top box according to an embodiment of the present invention;
图5为本实施例提供的另一种机顶盒的控制方法流程图;FIG. 5 is a flowchart of another method for controlling a set top box according to an embodiment of the present invention;
图6为本实施例提供的一种电子设备的结构示意图;FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
图7为本实施例提供的一种无线控制系统的结构示意图;FIG. 7 is a schematic structural diagram of a wireless control system according to an embodiment of the present disclosure;
图8为本实施例提供的一种机顶盒的硬件结构示意图。FIG. 8 is a schematic structural diagram of hardware of a set top box according to an embodiment of the present disclosure.
具体实施方式detailed description
本实施例提供一种无线控制方法,该方法可以应用于电子设备,该电子设备可以配置有蓝牙模块、Wifi模块、红外模块和天线,当所述蓝牙模块工作时,与所述Wifi模块时分复用所述天线,如图1所示,该方法可以包括S110-S130。The embodiment provides a wireless control method, and the method can be applied to an electronic device, where the electronic device can be configured with a Bluetooth module, a Wifi module, an infrared module, and an antenna. When the Bluetooth module works, it is time-divided with the Wifi module. With the antenna, as shown in FIG. 1, the method can include S110-S130.
在S110中,检测所述蓝牙模块的蓝牙连接是否成功。In S110, it is detected whether the Bluetooth connection of the Bluetooth module is successful.
例如,检测蓝牙遥控设备与蓝牙模块的蓝牙连接是否成功,若是,则由蓝牙模块接收蓝牙遥控设备发送的蓝牙遥控指令。For example, detecting whether the Bluetooth connection between the Bluetooth remote control device and the Bluetooth module is successful, and if so, receiving the Bluetooth remote control command sent by the Bluetooth remote control device by the Bluetooth module.
在S120中,在所述蓝牙连接不成功时,停止所述蓝牙连接。In S120, when the Bluetooth connection is unsuccessful, the Bluetooth connection is stopped.
在S130中,通过所述红外模块接收红外遥控指令。In S130, an infrared remote control command is received by the infrared module.
例如,在蓝牙遥控设备与蓝牙模块的蓝牙连接失败时,停止继续进行蓝牙连接,通过红外遥控模块接收红外遥控指令,其中,可以通过关闭蓝牙模块来停止所述蓝牙连接。For example, when the Bluetooth connection between the Bluetooth remote control device and the Bluetooth module fails, the Bluetooth connection is stopped, and the infrared remote control command is received through the infrared remote control module, wherein the Bluetooth connection can be stopped by turning off the Bluetooth module.
在机顶盒开机时,可以开启蓝牙模块和红外模块,蓝牙模块可以与蓝牙遥控设备进行蓝牙连接,在蓝牙模块的蓝牙连接成功时,通过蓝牙模块接收蓝牙遥控指令,在蓝牙模块的蓝牙连接不成功时,停止继续进行蓝牙连接,通过红 外模块接收红外遥控指令。When the set-top box is powered on, the Bluetooth module and the infrared module can be turned on, and the Bluetooth module can perform Bluetooth connection with the Bluetooth remote control device. When the Bluetooth connection of the Bluetooth module is successful, the Bluetooth remote control command is received through the Bluetooth module, when the Bluetooth connection of the Bluetooth module is unsuccessful. , stop continuing the Bluetooth connection, through red The external module receives an infrared remote command.
可选地,通过所述红外模块,接收红外遥控指令的步骤之前,还包括:开启所述红外模块。Optionally, before the step of receiving the infrared remote control instruction by using the infrared module, the method further includes: turning on the infrared module.
在机顶盒开机时,红外模块也可以处于关闭状态,在蓝牙模块的蓝牙连接不成功时,开启红外模块,接收红外遥控指令。When the set-top box is powered on, the infrared module can also be turned off. When the Bluetooth connection of the Bluetooth module is unsuccessful, the infrared module is turned on and the infrared remote control command is received.
可选地,停止所述蓝牙连接的步骤之前,还包括:监控是否接收到预设信号;在接收到所述预设信号时,开启所述蓝牙模块;以及利用所述蓝牙模块扫描可用的蓝牙遥控设备。Optionally, before the step of stopping the Bluetooth connection, the method further includes: monitoring whether a preset signal is received; turning on the Bluetooth module when receiving the preset signal; and scanning for available Bluetooth by using the Bluetooth module Remote control device.
其中,所述预设信号可以为蓝牙连接中断信号。The preset signal may be a Bluetooth connection interrupt signal.
可选地,利用所述蓝牙模块扫描可用的蓝牙遥控设备的步骤之后,还包括:执行所述检测所述蓝牙模块的蓝牙连接是否成功的步骤;在所述蓝牙连接成功时,关闭所述红外模块。Optionally, after the step of scanning the available Bluetooth remote control device by using the Bluetooth module, the method further includes: performing the step of detecting whether the Bluetooth connection of the Bluetooth module is successful; and when the Bluetooth connection is successful, turning off the infrared Module.
例如,利用蓝牙模块扫描到可用的蓝牙遥控设备时,将扫描到的可用的蓝牙遥控设备与机顶盒的蓝牙模块进行蓝牙连接;并监测蓝牙模块的蓝牙连接是否成功,当所述蓝牙连接成功时,可以关闭所述红外模块,通过蓝牙模块接收蓝牙遥控设备输出的蓝牙遥控指令。For example, when the Bluetooth module is used to scan to an available Bluetooth remote control device, the scanned Bluetooth remote control device is Bluetooth-connected with the Bluetooth module of the set-top box; and the Bluetooth connection of the Bluetooth module is successfully monitored. When the Bluetooth connection is successful, The infrared module can be turned off, and the Bluetooth remote control command output by the Bluetooth remote control device is received through the Bluetooth module.
本实施例还提供一种无线控制装置,如图2所示,该装置可以应用于电子设备,该电子设备可以配置有蓝牙模块210、Wifi模块220、红外模块230和天线240,当蓝牙模块210工作时,与Wifi模块220时分复用天线240;其中,蓝牙模块210、Wifi模块220和红外模块230分别与无线控制装置连接,蓝牙模块210和Wifi模块220与天线240连接,当蓝牙模块210工作时,蓝牙模块210与Wifi模块220时分复用天线。The embodiment further provides a wireless control device. As shown in FIG. 2, the device can be applied to an electronic device. The electronic device can be configured with a Bluetooth module 210, a Wifi module 220, an infrared module 230, and an antenna 240. When the Bluetooth module 210 In operation, the antenna 240 is time-multiplexed with the Wifi module 220; wherein the Bluetooth module 210, the Wifi module 220, and the infrared module 230 are respectively connected to the wireless control device, and the Bluetooth module 210 and the Wifi module 220 are connected to the antenna 240, when the Bluetooth module 210 works At the same time, the Bluetooth module 210 and the Wifi module 220 time-multiplex the antenna.
该无线控制装置可以包括第一检测模块250和第一控制模块260; The wireless control device can include a first detection module 250 and a first control module 260;
所述第一检测模块250,设置为:检测所述蓝牙模块的蓝牙连接是否成功;在所述蓝牙连接不成功时,停止所述蓝牙连接;以及The first detecting module 250 is configured to: detect whether the Bluetooth connection of the Bluetooth module is successful; stop the Bluetooth connection when the Bluetooth connection is unsuccessful;
所述第一控制模块260,设置为:在所述蓝牙连接不成功时,停止所述蓝牙连接;通过所述红外模块接收红外遥控指令。The first control module 260 is configured to: stop the Bluetooth connection when the Bluetooth connection is unsuccessful; receive an infrared remote control command by using the infrared module.
可选地,所述第一控制模块260,还设置为:在通过所述红外模块,接收红外遥控指令的步骤之前,开启所述红外模块。Optionally, the first control module 260 is further configured to: before the step of receiving an infrared remote control command by using the infrared module, turning on the infrared module.
可选地,所述第一检测模块250,还设置为:停止所述蓝牙连接之前,监控是否接收到预设信号;在接收到所述预设信号时,开启所述蓝牙模块;利用所述蓝牙模块扫描可用的蓝牙遥控设备。Optionally, the first detecting module 250 is further configured to: before receiving the Bluetooth connection, monitoring whether a preset signal is received; when receiving the preset signal, turning on the Bluetooth module; The Bluetooth module scans for available Bluetooth remote control devices.
可选地,所述第一检测模块250,还设置为:在利用所述蓝牙模块扫描可用的蓝牙遥控设备之后,检测所述蓝牙模块的蓝牙连接是否成功;Optionally, the first detecting module 250 is further configured to: after detecting the available Bluetooth remote control device by using the Bluetooth module, detecting whether the Bluetooth connection of the Bluetooth module is successful;
所述第一控制模块260,还设置为:在所述蓝牙连接成功时,关闭所述红外模块。The first control module 260 is further configured to: when the Bluetooth connection is successful, turn off the infrared module.
相关技术中机顶盒后台持续扫描蓝牙设备导致蓝牙占用天线时间太长,影响Wifi通信吞吐量等缺点,在本实施例中可以配合红外功能控制蓝牙,实现在蓝牙遥控设备与机顶盒蓝牙连接失败时切换至红外遥控功能,机顶盒后台关闭蓝牙模块,不需要花费大量时间片进行后台的蓝牙扫描,使得机顶盒Wifi通信吞吐量有较大的提升,改善蓝牙与Wifi共存的问题。In the related art, the continuous reading of the Bluetooth device in the set-top box causes the Bluetooth to occupy the antenna for too long, which affects the Wifi communication throughput. In this embodiment, the infrared function can be used to control the Bluetooth, and the Bluetooth remote control device and the set-top box fail to connect to the Bluetooth connection. Infrared remote control function, the set-top box is turned off in the background of the Bluetooth module, does not need to spend a lot of time for the background of Bluetooth scanning, so that the set-top box Wifi communication throughput has been greatly improved, improving the problem of Bluetooth and Wifi coexistence.
图3为本实施例提供的机顶盒的控制方法,该方法可以包括如下步骤:FIG. 3 is a schematic diagram of a method for controlling a set top box according to an embodiment, where the method may include the following steps:
在S310中,检测蓝牙遥控设备与机顶盒蓝牙连接是否成功。In S310, it is detected whether the Bluetooth remote control device and the set top box Bluetooth connection are successful.
在S320中,在蓝牙遥控设备与机顶盒蓝牙连接成功时,则由蓝牙模块接收蓝牙遥控指令;In S320, when the Bluetooth remote control device and the set top box Bluetooth connection is successful, the Bluetooth remote control command is received by the Bluetooth module;
在S330中,在蓝牙遥控设备与机顶盒蓝牙连接失败时,则关闭蓝牙模块, 同时开启红外遥控模块接收红外遥控指令。In S330, when the Bluetooth remote control device and the set-top box Bluetooth connection fails, the Bluetooth module is turned off. At the same time, the infrared remote control module is turned on to receive infrared remote control commands.
例如,可以通过蓝牙遥控设备上的红外发射管发射红外遥控指令。For example, an infrared remote control command can be transmitted through an infrared transmitting tube on a Bluetooth remote control device.
本实施例中,能够实现通过配合红外遥控功能进行蓝牙连接的控制,当蓝牙遥控设备能与机顶盒正常进行蓝牙连接时,则使用蓝牙遥控设备通过蓝牙传输遥控指令,而当蓝牙遥控设备与机顶盒蓝牙连接失败时,关闭蓝牙模块,开启红外遥控模块,即切换至红外遥控功能,由于已经关闭蓝牙模块,无需在后台花费大量时间片进行蓝牙扫描,减少蓝牙占用天线的时间,提升机顶盒WIFI通信吞吐量,改善了蓝牙和WIFI时分复用的问题。In this embodiment, the Bluetooth connection control can be implemented by using the infrared remote control function. When the Bluetooth remote control device can normally perform Bluetooth connection with the set top box, the Bluetooth remote control device is used to transmit the remote control command through Bluetooth, and when the Bluetooth remote control device and the set top box are Bluetooth. When the connection fails, the Bluetooth module is turned off, and the infrared remote control module is turned on, that is, the infrared remote control function is switched. Since the Bluetooth module has been turned off, there is no need to spend a lot of time in the background for Bluetooth scanning, reducing the time for the Bluetooth to occupy the antenna, and improving the WIFI communication throughput of the set top box. Improved the problem of time division multiplexing between Bluetooth and WIFI.
可选地,在蓝牙遥控设备与机顶盒蓝牙连接失败时,关闭蓝牙模块,同时开启红外接收模块接收红外遥控指令的步骤之后,还包括:监控是否接收到蓝牙连接中断信号,若是,则可以控制蓝牙模块开启,并扫描可用的蓝牙遥控设备;否则继续接收红外遥控指令。Optionally, after the Bluetooth remote control device fails to connect to the set-top box, the Bluetooth module is turned off, and the step of receiving the infrared remote control command by the infrared receiving module is further included: monitoring whether the Bluetooth connection interruption signal is received, and if yes, controlling the Bluetooth The module is turned on and the available Bluetooth remote control device is scanned; otherwise, the infrared remote control command continues to be received.
当遥控设备与机顶盒进行蓝牙连接失败,切换至红外遥控功能后,若机顶盒检测到通过红外遥控指令输出的蓝牙连接中断信号时,机顶盒控制蓝牙模块开启,并扫描可用的蓝牙遥控设备。When the remote control device fails to connect to the set-top box and switches to the infrared remote control function, if the set-top box detects the Bluetooth connection interrupt signal output by the infrared remote control command, the set-top box controls the Bluetooth module to be turned on, and scans the available Bluetooth remote control device.
例如当用户使用的蓝牙遥控器的蓝牙功能失效时,可以通过蓝牙遥控器上设置的红外发射器,如红外发射管,和机顶盒中设置的红外接收模块实现遥控设备对机顶盒的控制。若用户更换了一个蓝牙功能正常的遥控器或者将原先蓝牙遥控器的蓝牙功能修复正常时,蓝牙遥控设备可以通过红外遥控指令输出蓝牙连接中断信号至红外接收模块,接收到该中断信号后机顶盒控制蓝牙模块开启,重新扫描可用的蓝牙遥控设备,其中,扫描可用的蓝牙遥控设备的动作可以是由用户在确保当前有蓝牙功能正常的遥控器时主动发出的,无需被动地在后台占用大量时间进行蓝牙扫描,减少了蓝牙占用时间,提升了Wifi使用时间 和吞吐量,提高视频播放的流畅度。For example, when the Bluetooth function of the Bluetooth remote controller used by the user fails, the remote control device can control the set top box through an infrared transmitter set on the Bluetooth remote controller, such as an infrared transmitting tube, and an infrared receiving module set in the set top box. If the user replaces a Bluetooth remote control or restores the Bluetooth function of the original Bluetooth remote control, the Bluetooth remote control device can output the Bluetooth connection interrupt signal to the infrared receiving module through the infrared remote control command, and receive the interrupt signal after the set top box control. The Bluetooth module is turned on, and the available Bluetooth remote control device is re-scanned. The action of scanning the available Bluetooth remote control device may be actively issued by the user when ensuring that the remote control device with the Bluetooth function is currently active, without passively occupying a large amount of time in the background. Bluetooth scanning reduces Bluetooth time and improves Wifi usage time And throughput to improve the smoothness of video playback.
可选地,所述在蓝牙遥控设备与机顶盒蓝牙连接成功时,则由蓝牙模块接收蓝牙遥控指令的步骤包括:Optionally, when the Bluetooth remote control device and the set top box Bluetooth connection are successful, the step of receiving the Bluetooth remote control instruction by the Bluetooth module includes:
通过蓝牙模块扫描可用的蓝牙遥控设备;Scan for available Bluetooth remote control devices via the Bluetooth module;
利用所述蓝牙模块扫描到可用的蓝牙遥控设备时,将扫描到的可用的蓝牙遥控设备与机顶盒的蓝牙模块进行蓝牙连接;并监测所述蓝牙模块的蓝牙连接是否成功,当所述蓝牙连接成功时,可以关闭所述红外模块,通过蓝牙模块接收当前连接的蓝牙遥控设备输出的蓝牙遥控指令,对机顶盒进行控制。When scanning the available Bluetooth remote control device by using the Bluetooth module, performing Bluetooth connection with the scanned Bluetooth remote control device and the Bluetooth module of the set top box; and monitoring whether the Bluetooth connection of the Bluetooth module is successful, when the Bluetooth connection is successful The infrared module can be turned off, and the Bluetooth remote control output of the currently connected Bluetooth remote control device is received through the Bluetooth module to control the set top box.
机顶盒开启后,扫描可用的蓝牙遥控设备,生成当前的可用蓝牙设备列表,若扫描到可用的蓝牙遥控设备时,将可用的遥控设备中的一个与机顶盒进行蓝牙连接,蓝牙连接成功后则控制蓝牙模块接收当前已连接的蓝牙遥控设备输出的蓝牙遥控指令,实现遥控设备对机顶盒的控制,正常使用蓝牙遥控设备的蓝牙功能。After the set-top box is turned on, the available Bluetooth remote control device is scanned to generate a list of currently available Bluetooth devices. If the available Bluetooth remote control device is scanned, one of the available remote control devices is Bluetooth-connected with the set-top box, and after the Bluetooth connection is successful, the Bluetooth is controlled. The module receives the Bluetooth remote control command output by the currently connected Bluetooth remote control device, realizes the control of the set top box by the remote control device, and normally uses the Bluetooth function of the Bluetooth remote control device.
可选地,在在所述可用的蓝牙遥控设备与机顶盒蓝牙连接成功后,控制蓝牙模块接收已连接的蓝牙遥控设备输出的蓝牙遥控指令之后,停止扫描可用的蓝牙遥控设备,蓝牙关闭机顶盒的蓝牙扫描功能,减少蓝牙占用天线的时间,提升了Wifi的使用时间。Optionally, after the Bluetooth connection between the available Bluetooth remote control device and the set top box is successful, after the Bluetooth module receives the Bluetooth remote control command output by the connected Bluetooth remote control device, stops scanning the available Bluetooth remote control device, and the Bluetooth turns off the set top box Bluetooth. The scanning function reduces the time that the Bluetooth takes up the antenna and improves the use time of the Wifi.
可选地,所述检测蓝牙遥控设备与机顶盒蓝牙连接是否成功之前,还包括:Optionally, before the detecting whether the Bluetooth remote control device and the set top box Bluetooth connection are successful, the method further includes:
判断蓝牙模块是否开启,若否,则开启蓝牙模块。Determine if the Bluetooth module is enabled. If not, turn on the Bluetooth module.
在机顶盒开启后判断蓝牙模块是否开启,若蓝牙模块开启则正常进行后续的蓝牙遥控设备检测步骤,若蓝牙模块没有开启则先开启蓝牙模块,确保机顶盒的蓝牙功能正常。After the set-top box is turned on, it is judged whether the Bluetooth module is turned on. If the Bluetooth module is turned on, the subsequent Bluetooth remote control device detection step is normally performed. If the Bluetooth module is not turned on, the Bluetooth module is first turned on to ensure that the Bluetooth function of the set-top box is normal.
本实施例还提供一种机顶盒的控制装置,如图4所示,该装置可以包括: 第二检测模块10、第二控制模块20、蓝牙模块30和红外遥控模块40。The embodiment further provides a control device for the set top box. As shown in FIG. 4, the device may include: The second detecting module 10, the second control module 20, the Bluetooth module 30 and the infrared remote control module 40.
其中,第二检测模块10连接第二控制模块20和蓝牙模块30,所述第二控制模块20还连接红外遥控模块40,其中,所述第二检测模块10设置为检测蓝牙遥控设备与机顶盒蓝牙连接是否成功,若是,则由蓝牙模块30接收蓝牙遥控指令;所述第二控制模块20设置为在蓝牙遥控设备与机顶盒蓝牙连接失败时,关闭蓝牙模块30,同时开启红外遥控模块40接收红外遥控指令,该装置还可以包括在图中未示出的常规模块如蓝牙供电模块、红外供电模块、电源模块及按键模块。The second detecting module 10 is connected to the second control module 20 and the Bluetooth module 30. The second control module 20 is further connected to the infrared remote control module 40. The second detecting module 10 is configured to detect the Bluetooth remote control device and the set top box Bluetooth. Whether the connection is successful, if yes, the Bluetooth remote control command is received by the Bluetooth module 30; the second control module 20 is configured to turn off the Bluetooth module 30 when the Bluetooth remote control device fails to connect to the set top box, and simultaneously turn on the infrared remote control module 40 to receive the infrared remote control Instructed, the apparatus may further include conventional modules such as a Bluetooth power supply module, an infrared power supply module, a power supply module, and a button module not shown in the drawings.
本实施例提供的机顶盒的控制装置中可以设置有蓝牙模块30还可以设置有红外遥控模块40,红外遥控模块40设置为接收红外遥控指令。本实施例采用的蓝牙遥控设备上还可以设置有蓝牙模组与红外发射管,红外发射管可以发射红外信号,实现红外遥控功能,例如,当蓝牙遥控设备与机顶盒蓝牙连接成功时,可以由蓝牙遥控设备的蓝牙模组通过发送蓝牙信号传输遥控指令,而当蓝牙遥控设备与机顶盒蓝牙连接失败时,关闭蓝牙模块30,开启红外遥控模块40,即切换至红外遥控功能,通过红外发射管发射红外遥控指令进行遥控,无需在后台花费大量时间片进行蓝牙扫描,减少蓝牙占用天线的时间,使得机顶盒Wifi通信吞吐量有较大的提升,改善蓝牙和Wifi时分复用的问题。The control device of the set top box provided in this embodiment may be provided with a Bluetooth module 30 or an infrared remote control module 40, and the infrared remote control module 40 is configured to receive an infrared remote control command. The Bluetooth remote control device used in this embodiment may also be provided with a Bluetooth module and an infrared transmitting tube. The infrared transmitting tube can transmit an infrared signal to realize an infrared remote control function. For example, when the Bluetooth remote control device and the set top box are successfully connected to the Bluetooth, the Bluetooth can be used by the Bluetooth. The Bluetooth module of the remote control device transmits a remote control command by transmitting a Bluetooth signal, and when the Bluetooth remote control device fails to connect to the set top box, the Bluetooth module 30 is turned off, and the infrared remote control module 40 is turned on, that is, the infrared remote control function is switched, and the infrared light is emitted through the infrared emission tube. Remote control commands are used for remote control, eliminating the need to spend a lot of time in the background for Bluetooth scanning, reducing the time that Bluetooth takes up the antenna, making the Wifi communication throughput of the set-top box greatly improved, and improving the problem of time division multiplexing of Bluetooth and Wifi.
可选地,所述机顶盒的控制系统还可以包括监控模块50,所述监控模块50连接红外遥控模块40和蓝牙模块30,所述监控模块50设置为监控是否接收到蓝牙中断信号,若是,则控制蓝牙模块30开启,并扫描可用的蓝牙遥控设备;否则继续接收红外遥控指令。可选地,所述检测模块10包括扫描单元101、配对单元102、控制单元103和停止单元104,所述扫描单元101、配对单元102、控制单元103和停止单元104依次连接,所述扫描单元101和配对单元102均 连接控制模块20,所述控制单元103还连接蓝牙模块30,其中,所述扫描单元101设置为扫描可用的蓝牙遥控设备;所述配对单元102设置为当扫描到可用的遥控设备时,将所述可用的遥控设备与机顶盒进行蓝牙连接;所述控制单元103设置为蓝牙连接成功后控制蓝牙模块30接收当前已连接的蓝牙遥控设备输出的蓝牙遥控指令进行遥控;所述停止单元104设置为停止扫描可用的蓝牙遥控设备。可选地,所述机顶盒的控制装置还包括判断模块60,所述判断模块60连接蓝牙模块30,所述判断模块60设置为判断蓝牙模块30是否开启,若否,则开启蓝牙模块30。即机顶盒开启后先判断蓝牙模块30是否开启,若开启,则正常进行后续的可用的遥控设备检测步骤,若没有开启,则先开启蓝牙模块30,确保机顶盒的蓝牙功能正常。Optionally, the control system of the set top box may further include a monitoring module 50, the monitoring module 50 is connected to the infrared remote control module 40 and the Bluetooth module 30, and the monitoring module 50 is configured to monitor whether a Bluetooth interrupt signal is received, and if so, The Bluetooth module 30 is controlled to be turned on, and the available Bluetooth remote control device is scanned; otherwise, the infrared remote control command is continuously received. Optionally, the detecting module 10 includes a scanning unit 101, a pairing unit 102, a control unit 103, and a stopping unit 104. The scanning unit 101, the pairing unit 102, the control unit 103, and the stopping unit 104 are sequentially connected, and the scanning unit is sequentially connected. 101 and pairing unit 102 are both Connecting to the control module 20, the control unit 103 is further connected to the Bluetooth module 30, wherein the scanning unit 101 is arranged to scan for available Bluetooth remote control devices; the pairing unit 102 is arranged to when the available remote control device is scanned, The available remote control device is connected to the set top box for Bluetooth connection; the control unit 103 is configured to control the Bluetooth module 30 to receive the Bluetooth remote control command output by the currently connected Bluetooth remote control device for remote control after the Bluetooth connection is successful; the stop unit 104 is set to stop Scan for available Bluetooth remote control devices. Optionally, the control device of the set top box further includes a determining module 60. The determining module 60 is connected to the Bluetooth module 30. The determining module 60 is configured to determine whether the Bluetooth module 30 is turned on. If not, the Bluetooth module 30 is turned on. That is, after the set-top box is turned on, it is determined whether the Bluetooth module 30 is turned on. If it is turned on, the subsequent available remote device detection steps are normally performed. If not, the Bluetooth module 30 is turned on first to ensure that the Bluetooth function of the set-top box is normal.
本实施例还提供一种机顶盒,可以包括如上所述实施例提供的任意一种无线控制装置。结合图5,对本实施例的机顶盒的控制方法的实施过程进行说明:The embodiment further provides a set top box, which may include any of the wireless control devices provided by the embodiments described above. The implementation process of the control method of the set top box of this embodiment will be described with reference to FIG. 5:
如图5所示,为本实施例提供的另一种机顶盒的控制方法流程图,该方法可以包括如下步骤:FIG. 5 is a flowchart of another method for controlling a set top box according to the embodiment. The method may include the following steps:
在S11中,机顶盒开机启动。In S11, the set top box is powered on.
在S12中,判断蓝牙模块是否开启,若是,则执行S13;若否,则执行S14。In S12, it is determined whether the Bluetooth module is turned on, and if so, S13 is executed; if not, S14 is executed.
在S13中,检测遥控设备与蓝牙模块的蓝牙连接是否成功,若是,则执行S19;若否则执行S15。In S13, it is detected whether the Bluetooth connection between the remote control device and the Bluetooth module is successful, and if so, S19 is performed; if otherwise, S15 is executed.
在S14中,开启蓝牙模块。In S14, the Bluetooth module is turned on.
在S15中,扫描可用的蓝牙遥控设备;其中,所述可用的蓝牙遥控设备为蓝牙功能正常的遥控设备。In S15, an available Bluetooth remote control device is scanned; wherein the available Bluetooth remote control device is a remote control device with normal Bluetooth function.
在S16中,是否扫描到可用蓝牙遥控设备,若是,则执行S17,若否,则执行S20。 In S16, whether the available Bluetooth remote control device is scanned, if yes, execute S17, and if not, execute S20.
在S17中,判断可用的蓝牙遥控设备与机顶盒的蓝牙模块的蓝牙连接是否蓝牙成功,若是,则执行S18,若否,则执行S20。In S17, it is determined whether the Bluetooth connection between the available Bluetooth remote control device and the Bluetooth module of the set top box is Bluetooth successful, if yes, execute S18, and if not, execute S20.
在S18中,关闭蓝牙设备扫描功能。In S18, the Bluetooth device scan function is turned off.
在S19中,正常接收遥控指令,若无法正常接收遥控指令则执行S20。In S19, the remote control command is normally received, and if the remote control command cannot be normally received, S20 is executed.
在S20中,关闭蓝牙模块。In S20, the Bluetooth module is turned off.
在S21中,开启红外遥控模块。In S21, the infrared remote control module is turned on.
在S22中,监控是否接收到蓝牙中断信号,若是,则返回执行S14,若否,则执行S23。In S22, it is monitored whether a Bluetooth interrupt signal is received, and if so, the process returns to S14, and if not, then S23 is executed.
在S23中,接收红外遥控指令。In S23, an infrared remote control command is received.
机顶盒开机启动后,会先判断是否开启蓝牙模块,如未开启,则开启蓝牙模块,开启蓝牙模块后,可以蓝牙通过蓝牙设备列表判断是否有蓝牙遥控器与机顶盒的蓝牙模块蓝牙连接成功,如有,则机顶盒正常接收蓝牙遥控指令,蓝牙遥控器正常使用,如果判断没有连接成功的蓝牙遥控器,则进行蓝牙设备扫描,判断是否有可用的蓝牙遥控器处于被扫描状态蓝牙,如有蓝牙遥控器处于被扫描状态,且与机顶盒的蓝牙模块蓝牙连接成功,则蓝牙遥控正常使用,关闭蓝牙扫描功能,如果没有蓝牙遥控器处于被扫描状态,或者与机顶盒的蓝牙模块蓝牙连接蓝牙失败时,机顶盒可以关闭蓝牙模块,在蓝牙模块关闭后,机顶盒启用红外遥控功能,即开启红外模块,机顶盒在使用红外遥控功能后,监控是否有红外遥控信号触发蓝牙遥控蓝牙的蓝牙连接的中断信号,若检测到了蓝牙连接的中断信号,则开启蓝牙模块,若机顶盒没有检测到进行蓝牙的中断信号,则机顶盒继续接收红外遥控信号。After the set-top box is powered on, it will first determine whether to enable the Bluetooth module. If it is not enabled, the Bluetooth module will be turned on. After the Bluetooth module is turned on, Bluetooth can be used to determine whether there is a Bluetooth connection between the Bluetooth remote control and the Bluetooth module of the set-top box through the Bluetooth device list. The set-top box normally receives the Bluetooth remote control command, and the Bluetooth remote control is normally used. If it is determined that there is no successful Bluetooth remote control connected, the Bluetooth device scans to determine whether the available Bluetooth remote control is in the scanned state of Bluetooth, if there is a Bluetooth remote control After being scanned and connected to the Bluetooth module of the set-top box, the Bluetooth remote control is normally used, and the Bluetooth scanning function is turned off. If no Bluetooth remote control is in the scanned state, or the Bluetooth connection with the Bluetooth module of the set-top box fails, the set-top box can Turn off the Bluetooth module. After the Bluetooth module is turned off, the set-top box enables the infrared remote control function, that is, the infrared module is turned on. After using the infrared remote control function, the set-top box monitors whether there is an infrared remote control signal to trigger the Bluetooth remote control Bluetooth connection interrupt signal. Detected Bluetooth disconnection signal, the Bluetooth module is turned on, if there is no set-top box Bluetooth interrupt signal is detected, the set-top box continues to receive the infrared remote control signal.
本实施例还提供一种电子设备,如图6所示,所述电子设备配置有第一蓝牙模块610、Wifi模块620,第一红外模块630、天线640和第一处理器650, 所述第一蓝牙模块610、Wifi模块620和所述第一红外模块630分别与所述第一处理器650连接,所述第一蓝牙模块610和所述Wifi模块620与所述天线640连接,当所述第一蓝牙模块610工作时,所述第一蓝牙模块610与所述Wifi模块620时分复用所述天线,所述第一处理器650设置为:The embodiment further provides an electronic device. As shown in FIG. 6, the electronic device is configured with a first Bluetooth module 610, a Wifi module 620, a first infrared module 630, an antenna 640, and a first processor 650. The first Bluetooth module 610, the Wifi module 620, and the first infrared module 630 are respectively connected to the first processor 650, and the first Bluetooth module 610 and the Wifi module 620 are connected to the antenna 640. When the first Bluetooth module 610 is working, the first Bluetooth module 610 and the Wifi module 620 time-division multiplex the antenna, and the first processor 650 is configured to:
检测所述第一蓝牙模块610的蓝牙连接是否成功;Detecting whether the Bluetooth connection of the first Bluetooth module 610 is successful;
在所述蓝牙连接不成功时,停止所述蓝牙连接;以及Stopping the Bluetooth connection when the Bluetooth connection is unsuccessful;
通过所述第一红外模块630,接收红外遥控指令。An infrared remote control command is received by the first infrared module 630.
可选地,所述第一处理器650还设置为:Optionally, the first processor 650 is further configured to:
在通过所述第一红外模块630,接收红外遥控指令之前,开启所述第一红外模块630。The first infrared module 630 is turned on before receiving the infrared remote control command through the first infrared module 630.
例如,所述电子设备为机顶盒,在机顶盒开机时,可以开启第一蓝牙模块610和第一红外模块630,第一蓝牙模块610与蓝牙遥控设备进行蓝牙连接,在第一蓝牙模块610的蓝牙连接成功时,第一处理器650通过第一蓝牙模块610接收蓝牙遥控指令,在第一蓝牙模块610的蓝牙连接不成功时,第一处理器650通过第一红外模块630接收红外遥控指令。在机顶盒开机时,第一红外模块630也可以处于关闭状态,在第一蓝牙模块610的蓝牙连接不成功时,由第一处理器650控制开启第一红外模块630,接收红外遥控指令。For example, the electronic device is a set-top box. When the set-top box is powered on, the first Bluetooth module 610 and the first infrared module 630 can be turned on. The first Bluetooth module 610 performs Bluetooth connection with the Bluetooth remote control device, and the Bluetooth connection of the first Bluetooth module 610. Upon success, the first processor 650 receives the Bluetooth remote control command through the first Bluetooth module 610. When the Bluetooth connection of the first Bluetooth module 610 is unsuccessful, the first processor 650 receives the infrared remote control command through the first infrared module 630. When the set top box is powered on, the first infrared module 630 can also be in a closed state. When the Bluetooth connection of the first Bluetooth module 610 is unsuccessful, the first infrared module 630 is controlled by the first processor 650 to receive an infrared remote control command.
可选地,所述第一处理器650还设置为:Optionally, the first processor 650 is further configured to:
在停止所述蓝牙连接之后,监控是否接收到预设信号,在接收到所述预设信号时,开启所述第一蓝牙模块610;利用所述第一蓝牙模块610扫描可用的蓝牙遥控设备。After the Bluetooth connection is stopped, it is monitored whether a preset signal is received, and when the preset signal is received, the first Bluetooth module 610 is turned on; and the first Bluetooth module 610 is used to scan for an available Bluetooth remote control device.
可选地,所述第一处理器650还设置为:Optionally, the first processor 650 is further configured to:
在利用所述第一蓝牙模块610,扫描可用的蓝牙遥控设备之后,检测所述第 一蓝牙模块610的蓝牙连接是否成功;在所述第一蓝牙模块610的蓝牙连接蓝牙连接成功时,关闭所述第一红外模块630。After scanning the available Bluetooth remote control device by using the first Bluetooth module 610, detecting the first Whether the Bluetooth connection of a Bluetooth module 610 is successful; when the Bluetooth connection of the first Bluetooth module 610 is successful, the first infrared module 630 is turned off.
本实施例还提供一种无线控制系统,如图7所示,该系统可以包括上述实施例提供任意一种的电子设备,还包括遥控设备;The embodiment further provides a wireless control system, as shown in FIG. 7 , the system may include any one of the electronic devices provided by the foregoing embodiments, and further includes a remote control device;
所述遥控设备配置有第二蓝牙模块710、第二红外模块720和第二处理器730,所述第二蓝牙模块710和所述第二红外模块720分别与所述第二处理器730连接;The remote control device is configured with a second Bluetooth module 710, a second infrared module 720, and a second processor 730, and the second Bluetooth module 710 and the second infrared module 720 are respectively connected to the second processor 730;
所述第二蓝牙模块710设置为与所述第一蓝牙模块610进行蓝牙通信;The second Bluetooth module 710 is configured to perform Bluetooth communication with the first Bluetooth module 610;
所述第二红外模块720设置为与所述第一红外模块630进行红外通信。The second infrared module 720 is configured to perform infrared communication with the first infrared module 630.
例如,上述电子设备可以为机顶盒,所述遥控设备为蓝牙遥控器,当机顶盒开机时,开启第一蓝牙模块610,由第一蓝牙模块610与第二蓝牙模块710进行蓝牙连接,并将蓝牙连接信息反馈给第一处理器650,当第一处理器650接收到蓝牙连接不成功的信息时,控制开启第一红外模块630,通过第一红外模块630接收第二红外模块720发送的红外控制指令。也可以在机顶盒开机时开启第一红外模块630,当第一处理器650接收到蓝牙连接不成功的信息时,直接通过第一红外模块630接收第二红外模块720发送的红外控制指令。For example, the electronic device may be a set top box, and the remote control device is a Bluetooth remote controller. When the set top box is powered on, the first Bluetooth module 610 is turned on, the first Bluetooth module 610 is connected to the second Bluetooth module 710, and the Bluetooth connection is performed. The information is fed back to the first processor 650. When the first processor 650 receives the information that the Bluetooth connection is unsuccessful, the control turns on the first infrared module 630, and receives the infrared control command sent by the second infrared module 720 through the first infrared module 630. . The first infrared module 630 can also be turned on when the set top box is powered on. When the first processor 650 receives the information that the Bluetooth connection is unsuccessful, the first infrared module 630 receives the infrared control command sent by the second infrared module 720.
本实施例提供的机顶盒的控制方法、系统及机顶盒中,通过检测当前是否已有遥控设备与机顶盒蓝牙连接,若是,则由蓝牙模块接收蓝牙遥控指令;之后在蓝牙遥控设备与机顶盒蓝牙连接失败时关闭蓝牙模块,同时开启红外遥控模块接收红外遥控指令,可以配合红外功能进行机顶盒与遥控设备蓝牙的控制,在蓝牙遥控设备与机顶盒蓝牙连接失败时切换至红外遥控功能,此时机顶盒后台关闭蓝牙模块,不需要花费大量时间片进行后台的蓝牙扫描,大大减少蓝牙占用天线的时间,使得机顶盒Wifi通信吞吐量有较大的提升,改善蓝牙与Wifi 共存的问题。本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任意一种方法。In the control method, system and set-top box of the set-top box provided in this embodiment, it is detected whether the remote control device has a Bluetooth connection with the set-top box, and if so, the Bluetooth remote control command is received by the Bluetooth module; then, when the Bluetooth remote control device and the set-top box fail to connect to the Bluetooth Turn off the Bluetooth module, and turn on the infrared remote control module to receive the infrared remote control command. It can cooperate with the infrared function to control the Bluetooth of the set-top box and the remote control device. When the Bluetooth remote control device and the set-top box fail to connect to the Bluetooth, switch to the infrared remote control function. At this time, the set-top box closes the Bluetooth module. It does not need to spend a lot of time to perform Bluetooth scanning in the background, which greatly reduces the time that the Bluetooth takes up the antenna, which makes the Wifi communication throughput of the set-top box greatly improved, and improves the Bluetooth and Wifi. Coexistence issues. The embodiment further provides a computer readable storage medium storing computer executable instructions for performing any of the above methods.
如图8所示,是本实施例提供的一种机顶盒的硬件结构示意图,如图8所示,该机顶盒包括:处理器(processor)810和存储器(memory)820;还可以包括通信接口(Communications Interface)830和总线840。As shown in FIG. 8, it is a hardware structure diagram of a set top box provided by this embodiment. As shown in FIG. 8, the set top box includes: a processor 810 and a memory 820; and may also include a communication interface (Communications). Interface 830 and bus 840.
其中,处理器810、存储器820和通信接口830可以通过总线840完成相互间的通信。通信接口830可以用于信息传输。处理器810可以调用存储器820中的逻辑指令,以执行上述实施例的任意一种方法。The processor 810, the memory 820, and the communication interface 830 can complete communication with each other through the bus 840. Communication interface 830 can be used for information transfer. Processor 810 can invoke logic instructions in memory 820 to perform any of the methods of the above-described embodiments.
存储器820可以包括存储程序区和存储数据区,存储程序区可以存储操作系统和至少一个功能所需的应用程序。存储数据区可以存储根据机顶盒的使用所创建的数据等。此外,存储器可以包括,例如,随机存取存储器的易失性存储器,还可以包括非易失性存储器。例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。The memory 820 may include a storage program area and a storage data area, and the storage program area may store an operating system and an application required for at least one function. The storage data area can store data and the like created according to the use of the set top box. Further, the memory may include, for example, a volatile memory of a random access memory, and may also include a non-volatile memory. For example, at least one disk storage device, flash memory device, or other non-transitory solid state storage device.
此外,在上述存储器820中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,该逻辑指令可以存储在一个计算机可读取存储介质中。本公开的技术方案可以以计算机软件产品的形式体现出来,该计算机软件产品可以存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本实施例所述方法的全部或部分步骤。Moreover, when the logic instructions in the memory 820 described above can be implemented in the form of software functional units and sold or used as separate products, the logic instructions can be stored in a computer readable storage medium. The technical solution of the present disclosure may be embodied in the form of a computer software product, which may be stored in a storage medium, and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) All or part of the steps of the method described in this embodiment are performed.
存储介质可以是非暂态存储介质,也可以是暂态存储介质。非暂态存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质。 The storage medium may be a non-transitory storage medium or a transitory storage medium. The non-transitory storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
上述实施例方法中的全部或部分流程,是可以通过计算机程序来指示相关的硬件完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序被执行时,可包括如上述方法的实施例的流程。All or part of the processes in the foregoing embodiment may be completed by a computer program indicating related hardware, and the program may be stored in a non-transitory computer readable storage medium, and when the program is executed, may include the above The flow of an embodiment of the method.
工业实用性Industrial applicability
本公开提供了无线控制方法、电子设备及无线控制系统,在蓝牙遥控设备与电子设备的蓝牙模块蓝牙连接失败时,切换至红外遥控功能,电子设备后台关闭蓝牙连接功能,不需要花费大量时间片进行后台的蓝牙设备扫描,减少蓝牙占用天线的时间,提升机顶盒Wifi通信吞吐量,还可以配合红外功能进行电子设备与遥控设备蓝牙连接的控制,改善蓝牙与Wifi共存的问题。 The disclosure provides a wireless control method, an electronic device, and a wireless control system. When the Bluetooth connection between the Bluetooth remote control device and the Bluetooth module of the electronic device fails, the infrared remote control function is switched, and the Bluetooth connection function is turned off in the background of the electronic device, and does not require a lot of time slices. The background Bluetooth device scans to reduce the time taken by the Bluetooth to occupy the antenna, improve the Wifi communication throughput of the set-top box, and also can control the Bluetooth connection between the electronic device and the remote control device with the infrared function, and improve the problem of coexistence between Bluetooth and Wifi.

Claims (22)

  1. 一种无线控制方法,应用于电子设备,所述电子设备配置有蓝牙模块、Wifi模块、红外模块和天线,当所述蓝牙模块工作时,与所述Wifi模块时分复用所述天线,所述方法包括:A wireless control method is applied to an electronic device, where the electronic device is configured with a Bluetooth module, a Wifi module, an infrared module, and an antenna. When the Bluetooth module is working, the antenna is time-division multiplexed with the Wifi module. Methods include:
    检测所述蓝牙模块的蓝牙连接是否成功;Detecting whether the Bluetooth connection of the Bluetooth module is successful;
    在所述蓝牙连接不成功时,停止所述蓝牙连接;以及Stopping the Bluetooth connection when the Bluetooth connection is unsuccessful;
    通过所述红外模块接收红外遥控指令。Receiving an infrared remote control command through the infrared module.
  2. 根据权利要求1所述的方法,其中,所述通过所述红外模块,接收红外遥控指令的步骤之前,还包括:The method of claim 1, wherein the step of receiving the infrared remote control command by the infrared module further comprises:
    开启所述红外模块。Turn on the infrared module.
  3. 根据权利要求1所述的方法,其中,所述停止所述蓝牙连接的步骤之后,还包括:The method of claim 1, wherein the step of stopping the Bluetooth connection further comprises:
    监控是否接收到预设信号;Monitor whether a preset signal is received;
    在接收到所述预设信号时,开启所述蓝牙模块;以及Turning on the Bluetooth module when the preset signal is received;
    利用所述蓝牙模块扫描可用的蓝牙遥控设备。The available Bluetooth remote control device is scanned using the Bluetooth module.
  4. 根据权利要求3所述的方法,其中,利用所述蓝牙模块,扫描可用的蓝牙遥控设备的步骤之后,还包括:The method according to claim 3, wherein after the step of scanning the available Bluetooth remote control device by using the Bluetooth module, the method further comprises:
    执行所述检测所述蓝牙模块的蓝牙连接是否成功的步骤;以及Performing the step of detecting whether the Bluetooth connection of the Bluetooth module is successful;
    在所述蓝牙连接成功时,关闭所述红外模块。When the Bluetooth connection is successful, the infrared module is turned off.
  5. 一种无线控制装置,应用于电子设备,所述电子设备配置有蓝牙模块、Wifi模块、红外模块和天线,当所述蓝牙模块工作时,与所述Wifi模块时分复用所述天线;A wireless control device is applied to an electronic device, where the electronic device is configured with a Bluetooth module, a Wifi module, an infrared module, and an antenna. When the Bluetooth module is working, the antenna is time-division multiplexed with the Wifi module;
    无线控制装置包括第一检测模块和第一控制模块;The wireless control device includes a first detection module and a first control module;
    所述第一检测模块,设置为:检测所述蓝牙模块的蓝牙连接是否成功;在 所述蓝牙连接不成功时,停止所述蓝牙连接;以及The first detecting module is configured to: detect whether the Bluetooth connection of the Bluetooth module is successful; Stopping the Bluetooth connection when the Bluetooth connection is unsuccessful;
    所述第一控制模块,设置为:在所述蓝牙连接不成功时,停止所述蓝牙连接;通过所述红外模块接收红外遥控指令。The first control module is configured to: stop the Bluetooth connection when the Bluetooth connection is unsuccessful; receive an infrared remote control command by using the infrared module.
  6. 根据权利要求5所述的装置,其中,所述第一控制模块,还设置为:在通过所述红外模块,接收红外遥控指令之前,开启所述红外模块。The apparatus according to claim 5, wherein the first control module is further configured to: turn on the infrared module before receiving an infrared remote control command through the infrared module.
  7. 根据权利要求5所述的装置,其中,所述第一检测模块,还设置为:在停止所述蓝牙连接之后,监控是否接收到预设信号;The device according to claim 5, wherein the first detecting module is further configured to: monitor whether a preset signal is received after stopping the Bluetooth connection;
    所述第一控制模块,还设置为:在接收到所述预设信号时,开启所述蓝牙模块;以及利用所述蓝牙模块扫描可用的蓝牙遥控设备。The first control module is further configured to: when the preset signal is received, turn on the bluetooth module; and scan the available bluetooth remote control device by using the bluetooth module.
  8. 根据权利要求7所述的装置,其中,The apparatus according to claim 7, wherein
    所述第一检测模块,还设置为:在利用所述蓝牙模块扫描可用的蓝牙遥控设备之后,检测所述蓝牙模块的蓝牙连接是否成功;以及The first detecting module is further configured to: after detecting the available Bluetooth remote control device by using the Bluetooth module, detecting whether the Bluetooth connection of the Bluetooth module is successful;
    所述第一控制模块,还设置为:在所述蓝牙连接成功时,关闭所述红外模块。The first control module is further configured to: when the Bluetooth connection is successful, turn off the infrared module.
  9. 一种机顶盒的控制方法,包括:A control method for a set top box, comprising:
    检测蓝牙遥控设备与机顶盒蓝牙连接是否成功;Detect whether the Bluetooth remote control device and the set-top box Bluetooth connection are successful;
    在蓝牙遥控设备与机顶盒蓝牙连接成功时,则由蓝牙模块接收蓝牙遥控指令;以及When the Bluetooth remote control device and the set-top box Bluetooth connection is successful, the Bluetooth module receives the Bluetooth remote control command;
    在蓝牙遥控设备与机顶盒蓝牙连接失败时,则关闭蓝牙模块,同时开启红外遥控模块接收红外遥控指令。When the Bluetooth remote control device and the set-top box Bluetooth connection fails, the Bluetooth module is turned off, and the infrared remote control module is turned on to receive the infrared remote control command.
  10. 根据权利要求9所述的方法,其中,所述在蓝牙遥控设备与机顶盒蓝牙连接失败时,则关闭蓝牙模块,同时开启红外接收模块接收红外遥控指令的步骤之后还包括: The method according to claim 9, wherein the step of turning off the Bluetooth module when the Bluetooth remote control device and the set top box Bluetooth connection fails, and simultaneously turning on the infrared receiving module to receive the infrared remote control command further comprises:
    监控是否接收到蓝牙中断信号;Monitor whether a Bluetooth interrupt signal is received;
    在接收到蓝牙中断信号时,则控制开启所述蓝牙模块,并扫描蓝牙设备;以及When receiving the Bluetooth interrupt signal, controlling to turn on the Bluetooth module and scanning the Bluetooth device;
    在未接收到蓝牙中断信号时,则继续接收红外遥控指令。When the Bluetooth interrupt signal is not received, the infrared remote control command continues to be received.
  11. 根据权利要求9所述的方法,其中,所述在蓝牙遥控设备与机顶盒蓝牙连接成功时,蓝牙,则由蓝牙模块接收蓝牙遥控指令的步骤包括:The method according to claim 9, wherein the step of receiving the Bluetooth remote control command by the Bluetooth module when the Bluetooth remote control device and the set top box Bluetooth connection are successful comprises:
    通过蓝牙模块扫描可用的蓝牙遥控设备;Scan for available Bluetooth remote control devices via the Bluetooth module;
    当扫描到可用的蓝牙遥控设备时,将所述可用的蓝牙遥控设备与机顶盒进行蓝牙连接;以及Bluetooth connection of the available Bluetooth remote control device to the set top box when scanning to an available Bluetooth remote control device;
    在所述可用的蓝牙遥控设备与机顶盒蓝牙连接成功后,控制蓝牙模块接收已连接的蓝牙遥控设备输出的蓝牙遥控指令。After the available Bluetooth remote control device and the set top box Bluetooth connection succeed, the control Bluetooth module receives the Bluetooth remote control command output by the connected Bluetooth remote control device.
  12. 一种机顶盒的控制装置,包括:A control device for a set top box, comprising:
    第二检测模块,设置为检测蓝牙遥控设备与机顶盒蓝牙连接是否成功;在蓝牙遥控设备与机顶盒蓝牙连接成功时,则由蓝牙模块接收蓝牙遥控指令;The second detecting module is configured to detect whether the Bluetooth connection between the Bluetooth remote control device and the set top box is successful; when the Bluetooth remote control device and the set top box Bluetooth connection succeeds, the Bluetooth remote control command is received by the Bluetooth module;
    第二控制模块,设置为在蓝牙遥控设备与机顶盒蓝牙连接失败时,则关闭蓝牙模块,同时开启红外遥控模块接收红外遥控指令。The second control module is configured to turn off the Bluetooth module when the Bluetooth remote control device fails to connect to the set top box, and simultaneously turn on the infrared remote control module to receive the infrared remote control command.
  13. 根据权利要求12所述的装置,还包括:The apparatus of claim 12, further comprising:
    监控模块,设置为:在蓝牙遥控设备与机顶盒蓝牙连接失败时,关闭蓝牙模块,同时开启红外接收模块接收红外遥控指令之后,监控是否接收到蓝牙中断信号;在接收到蓝牙中断信号时,则控制开启所述蓝牙模块,并扫描蓝牙设备;在未接收到蓝牙中断信号时,则继续接收红外遥控指令。The monitoring module is configured to: when the Bluetooth remote control device and the set-top box fail to connect to the Bluetooth, turn off the Bluetooth module, and simultaneously turn on the infrared receiving module to receive the infrared remote control command, monitor whether the Bluetooth interrupt signal is received; when receiving the Bluetooth interrupt signal, control The Bluetooth module is turned on and the Bluetooth device is scanned; when the Bluetooth interrupt signal is not received, the infrared remote control command is continuously received.
  14. 根据权利要求12所述的装置,其中,所述第二检测模块包括:The apparatus of claim 12, wherein the second detection module comprises:
    扫描单元,设置为通过蓝牙模块扫描可用的蓝牙遥控设备; a scanning unit configured to scan for available Bluetooth remote control devices via the Bluetooth module;
    配对单元,设置为当扫描到可用的蓝牙遥控设备时,将所述可用的蓝牙遥控设备与机顶盒进行蓝牙连接;以及a pairing unit configured to Bluetooth connect the available Bluetooth remote control device to the set top box when scanning to an available Bluetooth remote control device;
    控制单元,设置为在所述可用的蓝牙遥控设备与机顶盒蓝牙连接成功后,控制蓝牙模块接收已连接的蓝牙遥控设备输出的蓝牙遥控指令。The control unit is configured to: after the available Bluetooth remote control device and the set top box Bluetooth connection succeed, control the Bluetooth module to receive the Bluetooth remote control command output by the connected Bluetooth remote control device.
  15. 根据权利要求14所述的装置,其中,所述第二检测模块还包括:The apparatus of claim 14, wherein the second detecting module further comprises:
    停止单元,设置为在控制蓝牙模块接收已连接的蓝牙遥控设备输出的蓝牙遥控指令之后,停止扫描可用的蓝牙遥控设备。The stop unit is configured to stop scanning for available Bluetooth remote control devices after controlling the Bluetooth module to receive the Bluetooth remote control command output by the connected Bluetooth remote control device.
  16. 一种机顶盒,包括如权利要求14-15任意一项所述的机顶盒的控制装置。A set top box comprising a control device for a set top box according to any of claims 14-15.
  17. 一种电子设备,所述电子设备配置有第一蓝牙模块、Wifi模块,第一红外模块、天线和第一处理器,所述第一蓝牙模块、Wifi模块和所述第一红外模块分别与所述第一处理器连接,所述第一蓝牙模块和所述Wifi模块与所述天线连接,当所述蓝牙模块工作时,所述蓝牙模块与所述Wifi模块时分复用所述天线,所述第一处理器设置为:An electronic device configured with a first Bluetooth module, a Wifi module, a first infrared module, an antenna, and a first processor, wherein the first Bluetooth module, the Wifi module, and the first infrared module respectively The first processor is connected, the first Bluetooth module and the Wifi module are connected to the antenna, and when the Bluetooth module is working, the Bluetooth module and the Wifi module time-division multiplex the antenna, The first processor is set to:
    检测所述第一蓝牙模块的蓝牙连接是否成功;Detecting whether the Bluetooth connection of the first Bluetooth module is successful;
    在所述蓝牙连接不成功时,停止所述蓝牙连接;Stopping the Bluetooth connection when the Bluetooth connection is unsuccessful;
    通过所述第一红外模块,接收红外遥控指令。Receiving an infrared remote control command through the first infrared module.
  18. 根据权利要求17所述的电子设备,其中,所述第一处理器还设置为:The electronic device of claim 17, wherein the first processor is further configured to:
    在通过所述第一红外模块,接收红外遥控指令之前,开启所述第一红外模块。The first infrared module is turned on before receiving the infrared remote control command through the first infrared module.
  19. 根据权利要求17所述的电子设备,其中,所述第一处理器还设置为:The electronic device of claim 17, wherein the first processor is further configured to:
    在停止所述蓝牙连接之后,监控是否接收到预设信号,在接收到所述预设信号时,开启所述第一蓝牙模块;利用所述第一蓝牙模块扫描可用的蓝牙遥控设备。 After the Bluetooth connection is stopped, it is monitored whether a preset signal is received, and when the preset signal is received, the first Bluetooth module is turned on; and the available Bluetooth remote control device is scanned by the first Bluetooth module.
  20. 根据权利要求19所述的电子设备,其中,所述第一处理器还设置为:The electronic device of claim 19, wherein the first processor is further configured to:
    在利用所述第一蓝牙模块,扫描可用的蓝牙遥控设备之后,检测所述第一蓝牙模块的蓝牙连接是否成功;在所述第一蓝牙模块的蓝牙连接蓝牙连接成功时,关闭所述第一红外模块。After detecting the available Bluetooth remote control device by using the first Bluetooth module, detecting whether the Bluetooth connection of the first Bluetooth module is successful; when the Bluetooth connection of the first Bluetooth module is successful, closing the first Infrared module.
  21. 一种无线控制系统,包括如权利要求17~20任意一项所述的电子设备,还包括遥控设备;A wireless control system comprising the electronic device according to any one of claims 17 to 20, further comprising a remote control device;
    所述遥控设备配置有第二蓝牙模块、第二红外模块和第二处理器,所述第二蓝牙模块和所述第二红外模块分别与所述第二处理器连接;The remote control device is configured with a second Bluetooth module, a second infrared module, and a second processor, and the second Bluetooth module and the second infrared module are respectively connected to the second processor;
    所述第二蓝牙模块设置为与所述第一蓝牙模块进行蓝牙通信;The second Bluetooth module is configured to perform Bluetooth communication with the first Bluetooth module;
    所述第二红外模块设置为与所述第一红外模块进行红外通信。The second infrared module is configured to perform infrared communication with the first infrared module.
  22. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-4和9-11任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-4 and 9-11.
PCT/CN2017/098868 2016-08-29 2017-08-24 Wireless control method, device, and electronic apparatus WO2018041003A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610745321.3A CN106375808B (en) 2016-08-29 2016-08-29 Bluetooth remote control optimization method, optimization system and set top box
CN201610745321.3 2016-08-29

Publications (1)

Publication Number Publication Date
WO2018041003A1 true WO2018041003A1 (en) 2018-03-08

Family

ID=57903586

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098868 WO2018041003A1 (en) 2016-08-29 2017-08-24 Wireless control method, device, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN106375808B (en)
WO (1) WO2018041003A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375808B (en) * 2016-08-29 2020-01-14 深圳创维数字技术有限公司 Bluetooth remote control optimization method, optimization system and set top box
KR102393917B1 (en) * 2017-10-13 2022-05-04 삼성전자주식회사 Remote Controller, Display apparatus, System and Method for controlling thereof
CN108024239B (en) * 2017-11-29 2021-11-16 深圳小湃科技有限公司 Remote control terminal, control method thereof, and computer-readable storage medium
CN109729512A (en) * 2019-03-19 2019-05-07 深圳创维数字技术有限公司 A kind of Bluetooth pairing methods, device, terminal and storage medium
CN110769406A (en) * 2019-10-31 2020-02-07 拉扎斯网络科技(上海)有限公司 Communication control method, communication control device, storage medium and electronic equipment
CN111356088B (en) * 2020-03-16 2021-09-21 无锡市铖月科技有限公司 Device control method, device, communication control circuit, and storage medium
CN113593127B (en) * 2020-04-30 2023-09-29 海南掌上能量传媒有限公司 Control method of portable power source leasing terminal
CN112216088B (en) * 2020-09-30 2021-09-21 北京小米移动软件有限公司 Remote control mode determining method and device and remote control method and device
CN112562300A (en) * 2020-12-03 2021-03-26 星宏网络科技有限公司 Bluetooth-based equipment wireless control system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202340223U (en) * 2011-11-23 2012-07-18 李春南 Three-in-one integrated communication built-in module device
KR20160000310A (en) * 2014-06-24 2016-01-04 삼성전자주식회사 Electronic apparatus, Radio frequency signal receiving method thereof and Systems having the same
CN105788214A (en) * 2016-03-09 2016-07-20 合智能科技(深圳)有限公司 Remote control method, remote controller and remote control system
US9407950B2 (en) * 2013-07-23 2016-08-02 Microsoft Technology Licensing, Llc Controlling devices in entertainment environment
CN106375808A (en) * 2016-08-29 2017-02-01 深圳创维数字技术有限公司 Bluetooth remote control optimization method and system, and set-top box

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024131A (en) * 2011-09-20 2013-04-03 希姆通信息技术(上海)有限公司 Bluetooth function control method of mobile terminal and mobile terminal
CN105786157A (en) * 2016-03-04 2016-07-20 合肥联宝信息技术有限公司 Electronic device and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202340223U (en) * 2011-11-23 2012-07-18 李春南 Three-in-one integrated communication built-in module device
US9407950B2 (en) * 2013-07-23 2016-08-02 Microsoft Technology Licensing, Llc Controlling devices in entertainment environment
KR20160000310A (en) * 2014-06-24 2016-01-04 삼성전자주식회사 Electronic apparatus, Radio frequency signal receiving method thereof and Systems having the same
CN105788214A (en) * 2016-03-09 2016-07-20 合智能科技(深圳)有限公司 Remote control method, remote controller and remote control system
CN106375808A (en) * 2016-08-29 2017-02-01 深圳创维数字技术有限公司 Bluetooth remote control optimization method and system, and set-top box

Also Published As

Publication number Publication date
CN106375808B (en) 2020-01-14
CN106375808A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
WO2018041003A1 (en) Wireless control method, device, and electronic apparatus
US8848106B2 (en) Communication device, communication system, communication method, control program, and television receiving system
US9654564B2 (en) Controlling an IoT device using a remote control device via a remote control proxy device
US9749420B2 (en) Controlling an IoT device using a remote control device via an infrastructure device
JP6130081B2 (en) Signal transmission control method, apparatus, electronic device, program, and recording medium
TWI481213B (en) System and method for facilitating wireless communication
CN105472038B (en) File transmission control method, device and system
US20210099948A1 (en) Bluetooth network, communication method, apparatus, and storage medium thereof
US20200314743A1 (en) Cloud-based provisioning using peer devices
US10805613B2 (en) Systems and methods for optimization and testing of wireless devices
KR102101761B1 (en) Auxiliary bluetooth circuit of multi-member bluetooth device
US10701435B2 (en) Television video interception method and device
WO2020020030A1 (en) Random access method and related device
WO2022089088A1 (en) Display device, mobile terminal, screen-casting data transmission method, and transmission system
CN111093105A (en) Remote control method and device
US11218332B2 (en) Data transmission method and smart household control device
WO2016082515A1 (en) Wireless terminal and connection control method thereof, wireless access point device and communication system
US20180070195A1 (en) Data acquisition equipment, method and system for sharing data between data acquisition equipment
EP3739838B1 (en) Method for establishing network connection by using wps and mobile wi-fi device and computer storage medium
US9489833B2 (en) Remote control and communication method for remote control
EP4029163B1 (en) Systems and methods for enabling high-speed wireless file transfer
KR20140004983A (en) Control method of sensor tag in wireless sensor network
US20200245214A1 (en) Method of processing beam failure recovery and user equipment
TWI697224B (en) Communication system, communication device and computer program pruduct
WO2023185841A1 (en) Method and apparatus for selecting relay user equipment, and user equipment and storage medium

Legal Events

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

Ref document number: 17845305

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17845305

Country of ref document: EP

Kind code of ref document: A1