CN112291768B - Equipment connection method, system, bluetooth handle and storage medium - Google Patents

Equipment connection method, system, bluetooth handle and storage medium Download PDF

Info

Publication number
CN112291768B
CN112291768B CN202011181693.0A CN202011181693A CN112291768B CN 112291768 B CN112291768 B CN 112291768B CN 202011181693 A CN202011181693 A CN 202011181693A CN 112291768 B CN112291768 B CN 112291768B
Authority
CN
China
Prior art keywords
bluetooth
handle
bluetooth handle
connection
infrared
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011181693.0A
Other languages
Chinese (zh)
Other versions
CN112291768A (en
Inventor
王骁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202011181693.0A priority Critical patent/CN112291768B/en
Publication of CN112291768A publication Critical patent/CN112291768A/en
Application granted granted Critical
Publication of CN112291768B publication Critical patent/CN112291768B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a device connection method, which comprises the following steps: after receiving a connection instruction, sending an infrared signal to host equipment through an infrared communication module so that the host equipment establishes Bluetooth connection with the Bluetooth handle according to the infrared signal; after detecting that the host equipment establishes Bluetooth connection with the Bluetooth handle, recording idle time of the Bluetooth handle; if the idle time is longer than the preset time, setting the working mode of the Bluetooth handle to be a sleep mode; and if a key instruction is detected, sending an infrared signal to the host equipment through the infrared communication module so as to reestablish the Bluetooth connection between the host equipment and the Bluetooth handle. This application can improve the bluetooth connection efficiency of bluetooth handle and host computer equipment. The application also discloses an equipment connecting system, a Bluetooth handle and a storage medium, which have the beneficial effects.

Description

Equipment connection method, system, bluetooth handle and storage medium
Technical Field
The present application relates to the field of bluetooth handle technology, and in particular, to a device connection method, a device connection system, a bluetooth handle, and a storage medium.
Background
Along with the social progress and the improvement of the living standard of people, the leisure and entertainment activities are increasingly paid attention. The game is one of the popular virtual entertainment forms, and is becoming an important support in the digital culture industry. Compared with simple keyboard and mouse operation, the gamepad is comfortable to operate, has real-time feedback, better immersion feeling and more fun brought by game experience.
In the related art, the bluetooth handle and the host device are connected through bluetooth to transmit signals, and in order to reduce power consumption of the bluetooth handle, the bluetooth handle usually enters a sleep mode after the user does not use the bluetooth handle for a long time. When the Bluetooth handle is in the disconnection of the Bluetooth connection between the sleep mode Bluetooth handle and the host device, if the Bluetooth handle is awakened, the Bluetooth module needs to be started to reestablish the Bluetooth connection, but the process of starting the Bluetooth module is long, and the host device is too long in time consumption of the Bluetooth connection with the Bluetooth handle.
Therefore, how to improve the bluetooth connection efficiency between the bluetooth handle and the host device is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a device connection method, a device connection system, a Bluetooth handle and a storage medium, which can improve the Bluetooth connection efficiency between the Bluetooth handle and a host device.
In order to solve the above technical problem, the present application provides an apparatus connection method, including:
after receiving a connection instruction, sending an infrared signal to host equipment through an infrared communication module so that the host equipment can establish Bluetooth connection with the Bluetooth handle according to the infrared signal;
recording the idle time of the Bluetooth handle after detecting that the host equipment establishes Bluetooth connection with the Bluetooth handle; the idle time is the time length between the current time and the time when the Bluetooth handle detects the key instruction last time;
if the idle time is longer than the preset time, setting the working mode of the Bluetooth handle to be a sleep mode; when the Bluetooth handle is in the sleep mode, the infrared communication module is in an on state, and functional modules except the infrared communication module in the Bluetooth handle are in an off state;
and if a key instruction is detected, sending an infrared signal to the host equipment through the infrared communication module so as to reestablish the Bluetooth connection between the host equipment and the Bluetooth handle.
Optionally, if the host device is a television set-top box, before sending the infrared signal to the host device through the infrared communication module, the method further includes:
receiving a remote controller infrared signal transmitted by a remote controller of the television set top box;
and analyzing the infrared signal of the remote controller to obtain an infrared coding protocol of the television set top box, and carrying out initialization configuration on the infrared communication module according to the infrared coding protocol.
Optionally, after the infrared signal is sent to the host device through the infrared communication module, the method further includes:
and after detecting that the host equipment is connected with the Bluetooth handle in a Bluetooth mode, closing the infrared communication module.
Optionally, the process of establishing the bluetooth connection between the host device and the bluetooth handle according to the infrared signal includes:
analyzing the infrared signal to obtain the equipment serial number of the Bluetooth handle;
judging whether the equipment serial number is in a known equipment list or not;
if yes, skipping a Bluetooth pairing check process, and entering a Bluetooth connection process so that the host equipment and the Bluetooth handle can establish Bluetooth connection;
if not, the Bluetooth pairing check process and the Bluetooth connection process are sequentially entered so that the host device and the Bluetooth handle can establish Bluetooth connection, and the device serial number is added to the known device list after the Bluetooth connection is established.
Optionally, before the host device establishes the bluetooth connection with the bluetooth handle, the method further includes:
and playing a key prompt picture on a user guide interface, and judging whether the key function of the Bluetooth handle is normal or not according to a control signal returned by the Bluetooth handle.
Optionally, after the host device establishes the bluetooth connection with the bluetooth handle, the method further includes:
inquiring a target application program corresponding to the equipment serial number of the Bluetooth handle according to a mapping relation table, and starting the target application program; the mapping relation table comprises a mapping relation between the device serial number and the application program.
Optionally, the method further includes:
acquiring the current electric quantity of the Bluetooth handle;
judging whether the current electric quantity of the Bluetooth handle is smaller than a preset electric quantity value or not;
and if so, setting the working mode of the Bluetooth handle to be a sleep mode.
The present application further provides a device connection system, comprising:
the connection establishing module is used for sending an infrared signal to the host equipment through the infrared communication module after receiving the connection instruction so that the host equipment can establish Bluetooth connection with the Bluetooth handle according to the infrared signal;
the duration detection module is used for recording the idle duration of the Bluetooth handle after detecting that the Bluetooth connection is established between the host equipment and the Bluetooth handle; the idle time is the time length between the current moment and the moment when the Bluetooth handle detects the key instruction last time;
the sleep starting module is used for setting the working mode of the Bluetooth handle to be a sleep mode if the idle time is longer than the preset time; when the Bluetooth handle is in the sleep mode, the infrared communication module is in an on state, and functional modules except the infrared communication module in the Bluetooth handle are in an off state;
and the awakening module is used for sending an infrared signal to the host equipment through the infrared communication module if a key instruction is detected so as to reestablish the Bluetooth connection between the host equipment and the Bluetooth handle.
The application also provides a storage medium on which a computer program is stored, which when executed implements the steps performed by the above-described device connection method.
The application also provides a Bluetooth handle, which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the steps executed by the device connection method when calling the computer program in the memory.
The application provides a device connection method, which comprises the following steps: after receiving a connection instruction, sending an infrared signal to host equipment through an infrared communication module so that the host equipment establishes Bluetooth connection with the Bluetooth handle according to the infrared signal; after detecting that the host equipment establishes Bluetooth connection with the Bluetooth handle, recording idle time of the Bluetooth handle; the idle time is the time length between the current time and the time when the Bluetooth handle detects the key instruction last time; if the idle time is longer than the preset time, setting the working mode of the Bluetooth handle to be a sleep mode; when the Bluetooth handle is in the sleep mode, the infrared communication module is in an on state, and functional modules except the infrared communication module in the Bluetooth handle are in an off state; and if a key instruction is detected, sending an infrared signal to the host equipment through the infrared communication module so as to reestablish the Bluetooth connection between the host equipment and the Bluetooth handle.
This application is after receiving the connection instruction, through sending infrared signal to host computer equipment and transmitting the required information of bluetooth connection process to host computer equipment and bluetooth handle set up the bluetooth and be connected. After establishing the bluetooth connection, the user may send control instructions to the host device through the bluetooth handle. This application judges whether to set up the mode of bluetooth handle into sleep mode through the length of idle time of record bluetooth handle to reduce the electric quantity consumption of bluetooth handle. When the bluetooth handle gets into sleep mode, except that all functional modules of infrared communication module are in the off-state, consequently when the bluetooth handle detected the button instruction, can directly utilize the infrared communication module that keeps the on-state always to host computer equipment sends infrared signal to quick analytic infrared signal and reestablish the bluetooth and connect, need not to wait that the bluetooth module of bluetooth handle starts to finish. Therefore, the Bluetooth connection efficiency of the Bluetooth handle and the host device can be improved. This application still provides a equipment connected system, a bluetooth handle and a storage medium simultaneously, has above-mentioned beneficial effect, no longer gives unnecessary details here.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a device connection method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for establishing a bluetooth connection according to an embodiment of the present application;
fig. 3 is a flowchart of an infrared control method based on a bluetooth handle according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a device connection system according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a device connection method according to an embodiment of the present disclosure.
The specific steps may include:
s101: after receiving a connection instruction, sending an infrared signal to host equipment through an infrared communication module so that the host equipment establishes Bluetooth connection with the Bluetooth handle according to the infrared signal;
wherein, this embodiment can be applied to the bluetooth handle, and this bluetooth handle can be bluetooth game paddle. The Bluetooth handle can comprise a plurality of keys, and a user can trigger a connection instruction by pressing the corresponding key. After the Bluetooth handle receives the connection instruction, the corresponding infrared signal can be sent to the host device through the infrared communication module, the infrared signal can include related information such as a device serial number of the Bluetooth handle and the like for Bluetooth connection, so that the host device establishes Bluetooth connection with the Bluetooth handle according to the related information contained in the infrared signal and used for Bluetooth connection. The host equipment can be game hosts, intelligent televisions, television set-top boxes, personal computers and the like with the Bluetooth function and the infrared signal receiving and sending function. The Bluetooth handle with the infrared communication module can realize infrared remote control, the infrared remote control is a control mode with wider application, and the Bluetooth handle has the characteristics of low cost, easy realization, mature technology and convenient control, and most household appliances including a television set top box support the infrared remote control.
S102: recording the idle time of a Bluetooth handle after detecting that the Bluetooth connection is established between the host equipment and the Bluetooth handle;
after the host device establishes the Bluetooth connection with the Bluetooth handle, the user can send a control command through the Bluetooth handle line host device, so that the host device can execute corresponding operation according to the control command. This step is detecting the host computer equipment and is establishing the bluetooth with the bluetooth handle after, can take notes the idle time of bluetooth handle. The idle time is used for describing the time when a user does not continuously execute key operation on the Bluetooth handle after the Bluetooth handle is connected with the host device through Bluetooth.
The idle time is calculated as follows: and setting the time length between the current time and the time when the Bluetooth handle detects the key instruction last time as the idle time. Specifically, the bluetooth handle detects the button instruction once, all can initialize the duration of idle time to default 0. For example, when the user clicks the direction key of the bluetooth handle at 12; if the user clicks the arrow key of the bluetooth handle again at 12.
As a possible implementation manner, after detecting that the host device establishes a bluetooth connection with the bluetooth handle, the present embodiment may turn off the infrared communication module, so as to reduce power consumption of the bluetooth handle.
S103: if the idle time is longer than the preset time, setting the working mode of the Bluetooth handle to be a sleep mode;
before this step, there may also be an operation of judging whether the idle duration is greater than the preset duration, and if the idle duration is greater than the preset duration, the operating mode of the bluetooth handle is set to the sleep mode. When the Bluetooth handle is in a sleep mode, the infrared communication module is in an on state, and functional modules in the Bluetooth handle except the infrared communication module are in an off state.
The bluetooth handle can include functional modules such as bluetooth module, accelerometer, gyroscope, light sensor, and when the bluetooth handle was in sleep mode, the infrared communication module can only be opened to the bluetooth handle, because infrared communication module's consumption is extremely low, consequently sets up the mode of bluetooth handle into sleep mode when the user does not use the bluetooth handle for a long time and can reduce the consumption of bluetooth handle. It can be understood that, since the functional modules of the bluetooth handle other than the infrared communication module are in the off state when the bluetooth handle is in the sleep mode, the bluetooth connection between the bluetooth handle and the host device is disconnected when the bluetooth handle is in the sleep mode.
S104: and if the key instruction is detected, sending an infrared signal to the host device through the infrared communication module so as to reestablish the Bluetooth connection between the host device and the Bluetooth handle.
Wherein, when the user can press any button of bluetooth handle, the bluetooth handle can detect the button instruction, can awaken to be in sleep mode bluetooth handle this moment. Because when the bluetooth handle is in sleep mode, the infrared communication module of bluetooth handle is in the on-state all the time, so the bluetooth handle can utilize when detecting the button instruction to send infrared signal through infrared communication module to host computer equipment to establish the bluetooth connection again. In the conventional scheme, after waking up the bluetooth handle in the sleep state, the connection establishment request can be sent to the host device only after the bluetooth module of the bluetooth handle is started. In the embodiment, the infrared signal can be sent to the host equipment before the Bluetooth module is started, so that the Bluetooth connection can be immediately established after the Bluetooth module is started, and the efficiency of establishing the Bluetooth connection with the host again after the Bluetooth handle is awakened is improved.
After receiving the connection instruction, the embodiment transmits information required by the Bluetooth connection process to the host device by sending an infrared signal to the host device, so that the host device establishes Bluetooth connection with the Bluetooth handle. After establishing the bluetooth connection, the user may send control instructions to the host device through the bluetooth handle. This embodiment judges whether to set up the mode of bluetooth handle into sleep mode through the length of idle time of record bluetooth handle to reduce the electric quantity consumption of bluetooth handle. When the bluetooth handle gets into sleep mode, except that all functional modules of infrared communication module are in the off-state, consequently when the bluetooth handle detected the button instruction, can directly utilize the infrared communication module that keeps the on-state always to host computer equipment sends infrared signal to quick analytic infrared signal and reestablish the bluetooth and connect, need not to wait that the bluetooth module of bluetooth handle starts to finish. Therefore, the Bluetooth connection efficiency of the Bluetooth handle and the host device can be improved.
As a further description of the embodiment corresponding to fig. 1, if the host device is a television set-top box, the infrared encoding protocols used by the television set-top box and the bluetooth handle may be different, so that the bluetooth handle may be initialized and configured before the infrared communication module sends an infrared signal to the television set-top box, and the specific process is as follows: receiving a remote controller infrared signal transmitted by a remote controller of the television set top box; and analyzing the infrared signal of the remote controller to obtain an infrared coding protocol of the television set top box, and carrying out initialization configuration on the infrared communication module according to the infrared coding protocol.
Specifically, the bluetooth handle is in an infrared analysis mode by default when being shipped from a factory, and a Flash memory (Flash memory) of the bluetooth handle includes an area for storing a mainstream infrared coding protocol. Before connecting with a television set-top box, a user needs to use a remote controller matched with an intelligent set-top box to press a certain specific key (such as a main page key) for multiple times towards a Bluetooth handle, and a game handle can analyze an infrared signal transmitted by the remote controller, judge which infrared coding protocol the remote controller belongs to, load parameters related to the protocol from a related area of Flash, and complete initialization configuration of an infrared communication module in the Bluetooth handle. After the initialization configuration method is adopted, the Bluetooth handle can be matched with a television set top box for use, a remote controller can be replaced to a certain extent, and the compatibility is good. For the television set-top box, the Bluetooth handle is loaded with the corresponding infrared coding protocol after the initialization is finished, the Bluetooth handle can be directly used as a remote controller for watching television and other entertainment activities after the game, and a user does not need to switch the Bluetooth handle and the remote controller matched with the intelligent set-top box to use repeatedly.
Certainly, if the host device is a game host and the bluetooth handle is a bluetooth game handle matched with the game host, the bluetooth game handle is configured with an infrared transmitting module, the game host is configured with a corresponding infrared receiving module, a unified infrared coding protocol is used by default between the two modules, and a user does not need to configure the infrared coding protocol.
As a further description of the embodiment corresponding to fig. 1, there may also be a scheme of switching the operation mode according to the current electric quantity of the bluetooth handle, and the specific process is as follows: acquiring the current electric quantity of the Bluetooth handle; judging whether the current electric quantity of the Bluetooth handle is smaller than a preset electric quantity value or not; and if so, setting the working mode of the Bluetooth handle to be a sleep mode.
Referring to fig. 2, fig. 2 is a flowchart of a method for establishing a bluetooth connection according to an embodiment of the present application, and a further implementation manner can be obtained by combining the embodiment with the embodiment corresponding to fig. 1, where a process of a host device establishing a bluetooth connection with a bluetooth handle according to an infrared signal may include the following steps:
s201: analyzing the infrared signal to obtain the equipment serial number of the Bluetooth handle;
s202: judging whether the equipment serial number is in a known equipment list or not; if yes, entering S203; if not, entering S204;
the known device list can store the device serial number of the bluetooth handle which has established the bluetooth connection, and if the current device serial number of the bluetooth handle is in the known device list, the device serial number indicates that the bluetooth handle has established the bluetooth connection with the host device before, and the bluetooth pairing check process can be skipped to directly enter the bluetooth connection process. If the device serial number of the current bluetooth handle is not in the known device list, it indicates that the bluetooth handle never establishes a bluetooth connection with the host device, and a bluetooth pairing check needs to be performed first, and when the bluetooth pairing check is passed, a bluetooth connection process is entered.
S203: skipping a Bluetooth pairing check process, and entering a Bluetooth connection process so as to establish Bluetooth connection between the host equipment and the Bluetooth handle;
s204: and entering a Bluetooth pairing check flow and a Bluetooth connection flow in sequence so that the host equipment establishes Bluetooth connection with the Bluetooth handle, and adding the equipment serial number to the known equipment list after establishing the Bluetooth connection.
The above embodiment describes a process in which the host device establishes a bluetooth connection with the bluetooth handle according to the infrared signal, and determines whether to execute a bluetooth pairing check procedure according to the known device list, so that the bluetooth handle that has previously established the bluetooth connection does not need to execute the bluetooth pairing check procedure, thereby improving the flexibility of the bluetooth connection.
The flow described in the above embodiment is explained below by an embodiment in practical use. Referring to fig. 3, fig. 3 is a flowchart of an infrared control method based on a bluetooth handle according to an embodiment of the present application, where the embodiment may include the following processes:
for a new bluetooth handle that has not been connected to the host device, the host device may be started prior to use. For example, if the host device is a tv set-top box, the application program related to the bluetooth handle product needs to be installed and run in the tv set-top box in advance. If the host device is a game host, the game host can be powered on to enter a state of initializing and waiting for response. The Bluetooth handle presses any key against the host equipment, the host equipment can recognize the infrared signal, extracts the equipment serial number corresponding to the Bluetooth handle from the infrared signal, checks and confirms that the equipment serial number is not in the known equipment list, and enters a user guide interface. The start initialization configuration in fig. 3 refers to: before the host equipment and the Bluetooth handle are connected in a Bluetooth mode, the host equipment can play a key prompt picture on a user guide interface and judge whether the key function of the Bluetooth handle is normal or not according to a control signal returned by the Bluetooth handle. Specifically, the user can quickly and self-check whether the function of the button of the Bluetooth handle is normal through the prompt of the user guide interface, and perform up-down, left-right operation through the button of the handle to complete the personalized configuration of the daily interface. After the personalized configuration, the bluetooth connection with the bluetooth handle is completed and the device serial number of the bluetooth handle is added to the list of known devices. After the initialization configuration is completed, the infrared communication module of the Bluetooth handle can be closed in the subsequent normal use process, and the Bluetooth module is communicated with the host equipment.
After the host device establishes the bluetooth connection with the bluetooth handle, the host device may query a target application program corresponding to the device serial number of the bluetooth handle according to a mapping relation table, and start the target application program; the mapping relation table comprises a mapping relation between the equipment serial number and the application program. The host device can be connected with a plurality of handles used by different users, and in the initialization configuration link, different users can carry out personalized configuration according to own requirements, such as loading games played frequently by themselves at the first time.
When the user leaves or has a rest in midway, the Bluetooth handle can enter a sleep mode after standing for a certain time (the corresponding intelligent set top box or game host can also be shut down or enter the sleep mode according to the situation), the main function modules including the Bluetooth module are closed, the infrared module is restarted, and at this time, the power consumption of the Bluetooth handle is extremely low.
When the user picks up the game handle again, any one key is pressed against the host equipment, the Bluetooth handle is awakened from the sleep mode, and the main function module is initialized; meanwhile, the host equipment can be synchronously opened, the host equipment can firstly quickly analyze the infrared signals, judge whether the corresponding Bluetooth handle is in the known equipment list, directly skip the Bluetooth pairing check if the Bluetooth handle to be connected is found to be in the known equipment list, directly start the Bluetooth connection process, complete the Bluetooth connection with the Bluetooth handle, and simultaneously quickly load the personalized interface according to the stored use information of different users. And if the Bluetooth handle to be connected is not found in the known equipment list, re-entering a Bluetooth pairing checking process and a Bluetooth connection process.
The embodiment can rapidly wake up the Bluetooth handle on the premise of power saving, and the Bluetooth handle can also be used for replacing a remote controller of the television set top box. The bluetooth connection method that this embodiment provided is simple and easy, compares the advantage that has quick response and power saving with the mode that directly connects through the bluetooth, can show the use that promotes bluetooth game paddle user and experience.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus connection system according to an embodiment of the present disclosure;
the system may include:
the connection establishing module 100 is configured to send an infrared signal to the host device through the infrared communication module after receiving the connection instruction, so that the host device establishes a bluetooth connection with the bluetooth handle according to the infrared signal;
the duration detection module 200 is configured to record an idle duration of the bluetooth handle after detecting that the host device establishes a bluetooth connection with the bluetooth handle; the idle time is the time length between the current time and the time when the Bluetooth handle detects the key instruction last time;
a sleep starting module 300, configured to set a working mode of the bluetooth handle to a sleep mode if the idle duration is greater than a preset duration; when the Bluetooth handle is in the sleep mode, the infrared communication module is in an on state, and functional modules except the infrared communication module in the Bluetooth handle are in an off state;
and the awakening module 400 is used for sending an infrared signal to the host equipment through the infrared communication module if a key instruction is detected so as to reestablish the Bluetooth connection between the host equipment and the Bluetooth handle.
After receiving the connection instruction, the embodiment transmits information required by the Bluetooth connection process to the host device by sending an infrared signal to the host device, so that the host device establishes Bluetooth connection with the Bluetooth handle. After establishing the bluetooth connection, the user may send control instructions to the host device through the bluetooth handle. This embodiment judges whether to set up the mode of bluetooth handle into sleep mode through the length of idle time of record bluetooth handle to reduce the electric quantity consumption of bluetooth handle. When the bluetooth handle gets into sleep mode, except that all functional modules of infrared communication module are in the off-state, consequently when the bluetooth handle detected the button instruction, can directly utilize the infrared communication module that keeps the on-state always to host computer equipment sends infrared signal to quick analytic infrared signal and reestablish the bluetooth and connect, need not to wait that the bluetooth module of bluetooth handle starts to finish. Therefore, the Bluetooth connection efficiency of the Bluetooth handle and the host device can be improved.
Further, the host device is a television set top box;
correspondingly, the method also comprises the following steps:
the initialization module is used for receiving a remote controller infrared signal transmitted by a remote controller of the television set top box before the infrared communication module transmits the infrared signal to the host equipment; and the remote controller is also used for analyzing the infrared signal of the remote controller to obtain an infrared coding protocol of the television set top box, and initializing and configuring the infrared communication module according to the infrared coding protocol.
Further, the method also comprises the following steps:
and the infrared control module is used for closing the infrared communication module after detecting that the host equipment is connected with the Bluetooth handle in a Bluetooth mode after sending an infrared signal to the host equipment through the infrared communication module.
Further, the host device includes:
the signal analysis module is used for analyzing the infrared signal to obtain the equipment serial number of the Bluetooth handle;
the judging module is used for judging whether the equipment serial number is in a known equipment list or not; if yes, skipping a Bluetooth pairing check process, and entering a Bluetooth connection process so that the host equipment and the Bluetooth handle can establish Bluetooth connection; if not, the Bluetooth pairing check process and the Bluetooth connection process are sequentially entered so that the host device and the Bluetooth handle can establish Bluetooth connection, and the device serial number is added to the known device list after the Bluetooth connection is established.
Further, the method also comprises the following steps:
and the function detection module is used for playing a key prompt picture on a user guide interface before the host equipment establishes Bluetooth connection with the Bluetooth handle, and judging whether the key function of the Bluetooth handle is normal or not according to a control signal returned by the Bluetooth handle.
Further, the method also comprises the following steps:
the program starting module is used for inquiring a target application program corresponding to the equipment serial number of the Bluetooth handle according to a mapping relation table after the Bluetooth connection is established between the host equipment and the Bluetooth handle, and starting the target application program; the mapping relation table comprises a mapping relation between the equipment serial number and the application program.
Further, the method also comprises the following steps:
the electric quantity management module is used for acquiring the current electric quantity of the Bluetooth handle; the Bluetooth module is also used for judging whether the current electric quantity of the Bluetooth handle is smaller than a preset electric quantity value or not; and if so, setting the working mode of the Bluetooth handle to be a sleep mode.
Since the embodiment of the system part corresponds to the embodiment of the method part, the embodiment of the system part is described with reference to the embodiment of the method part, and is not repeated here.
The present application also provides a storage medium having a computer program stored thereon, which when executed, may implement the steps provided by the above-described embodiments. The storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The application further provides a bluetooth handle, which may include a memory and a processor, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, the steps provided by the above embodiments may be implemented. Of course, the bluetooth handle may also include various network interfaces, power supplies and other components.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A device connection method applied to a Bluetooth handle includes:
after receiving a connection instruction, sending an infrared signal to host equipment through an infrared communication module so that the host equipment establishes Bluetooth connection with the Bluetooth handle according to the infrared signal; wherein the infrared signal comprises information required by a Bluetooth connection process; the connection instruction is triggered by a user pressing a corresponding key on the Bluetooth handle;
after detecting that the host equipment establishes Bluetooth connection with the Bluetooth handle, recording idle time of the Bluetooth handle; the idle time is the time length between the current time and the time when the Bluetooth handle detects the key instruction last time;
if the idle time is longer than the preset time, setting the working mode of the Bluetooth handle to be a sleep mode; when the Bluetooth handle is in the sleep mode, the infrared communication module is in an on state, and functional modules except the infrared communication module in the Bluetooth handle are in an off state;
if a key instruction is detected, sending an infrared signal to the host device through the infrared communication module so as to reestablish the Bluetooth connection between the host device and the Bluetooth handle; when a user presses any key of the Bluetooth handle, the Bluetooth handle detects the key instruction.
2. The device connection method according to claim 1, wherein if the host device is a television set-top box, before sending the infrared signal to the host device through the infrared communication module, the method further comprises:
receiving a remote controller infrared signal transmitted by a remote controller of the television set top box;
and analyzing the infrared signal of the remote controller to obtain an infrared coding protocol of the television set top box, and carrying out initialization configuration on the infrared communication module according to the infrared coding protocol.
3. The device connection method according to claim 1, further comprising, after transmitting the infrared signal to the host device through the infrared communication module:
and after the host equipment is detected to be connected with the Bluetooth handle in a Bluetooth mode, the infrared communication module is closed.
4. The device connection method according to claim 1, wherein the process of the host device establishing a bluetooth connection with the bluetooth handle according to the infrared signal comprises:
analyzing the infrared signal to obtain the equipment serial number of the Bluetooth handle;
judging whether the equipment serial number is in a known equipment list or not;
if yes, skipping a Bluetooth pairing check process, and entering a Bluetooth connection process so that the host equipment and the Bluetooth handle can establish Bluetooth connection;
if not, the Bluetooth pairing check process and the Bluetooth connection process are sequentially entered so that the host device and the Bluetooth handle can establish Bluetooth connection, and the device serial number is added to the known device list after the Bluetooth connection is established.
5. The device connection method according to claim 4, further comprising, before the host device establishes the bluetooth connection with the bluetooth handle:
and playing a key prompt picture on a user guide interface, and judging whether the key function of the Bluetooth handle is normal or not according to a control signal returned by the Bluetooth handle.
6. The device connection method according to claim 4, further comprising, after the host device establishes the bluetooth connection with the bluetooth handle:
inquiring a target application program corresponding to the equipment serial number of the Bluetooth handle according to a mapping relation table, and starting the target application program; the mapping relation table comprises a mapping relation between the device serial number and the application program.
7. The device connecting method according to any one of claims 1 to 6, further comprising:
acquiring the current electric quantity of the Bluetooth handle;
judging whether the current electric quantity of the Bluetooth handle is smaller than a preset electric quantity value or not;
and if so, setting the working mode of the Bluetooth handle to be a sleep mode.
8. A device connection system for use with a bluetooth handle, comprising:
the connection establishing module is used for sending an infrared signal to the host equipment through the infrared communication module after receiving the connection instruction so as to facilitate the host equipment to establish Bluetooth connection with the Bluetooth handle according to the infrared signal; wherein the infrared signal comprises information required by a Bluetooth connection process; the connection instruction is triggered by a user pressing a corresponding key on the Bluetooth handle;
the duration detection module is used for recording the idle duration of the Bluetooth handle after detecting that the Bluetooth connection is established between the host equipment and the Bluetooth handle; the idle time is the time length between the current moment and the moment when the Bluetooth handle detects the key instruction last time;
the sleep starting module is used for setting the working mode of the Bluetooth handle to be a sleep mode if the idle time is longer than preset time; when the Bluetooth handle is in the sleep mode, the infrared communication module is in an on state, and functional modules except the infrared communication module in the Bluetooth handle are in an off state;
the wake-up module is used for sending an infrared signal to the host device through the infrared communication module if a key instruction is detected so as to reestablish the Bluetooth connection between the host device and the Bluetooth handle; when a user presses any key of the Bluetooth handle, the Bluetooth handle detects the key instruction.
9. A bluetooth handle comprising a memory in which a computer program is stored and a processor which, when calling the computer program in the memory, carries out the steps of the device connection method according to any one of claims 1 to 7.
10. A storage medium having stored thereon computer-executable instructions which, when loaded and executed by a processor, carry out the steps of a device connection method as claimed in any one of claims 1 to 7.
CN202011181693.0A 2020-10-29 2020-10-29 Equipment connection method, system, bluetooth handle and storage medium Active CN112291768B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011181693.0A CN112291768B (en) 2020-10-29 2020-10-29 Equipment connection method, system, bluetooth handle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011181693.0A CN112291768B (en) 2020-10-29 2020-10-29 Equipment connection method, system, bluetooth handle and storage medium

Publications (2)

Publication Number Publication Date
CN112291768A CN112291768A (en) 2021-01-29
CN112291768B true CN112291768B (en) 2023-01-24

Family

ID=74353538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011181693.0A Active CN112291768B (en) 2020-10-29 2020-10-29 Equipment connection method, system, bluetooth handle and storage medium

Country Status (1)

Country Link
CN (1) CN112291768B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067055B (en) * 2012-12-26 2016-11-09 深圳天珑无线科技有限公司 A kind of Bluetooth connecting method and mobile terminal
WO2015069024A1 (en) * 2013-11-06 2015-05-14 엘지전자(주) Method and apparatus for establishing device-to-device connection in wireless communication system
CN105430547B (en) * 2015-10-23 2019-03-29 小米科技有限责任公司 The dormancy method and device of bluetooth headset
CN106131634B (en) * 2016-08-29 2019-03-22 康佳集团股份有限公司 A kind of remote controler connection processing method and system
CN109451474A (en) * 2018-10-15 2019-03-08 四川长虹电器股份有限公司 Controlled terminal equipment and its bluetooth return even method
CN110662097A (en) * 2019-09-02 2020-01-07 深圳创维-Rgb电子有限公司 One-key pairing Bluetooth connection processing method, system, remote controller, terminal and medium
CN111641938B (en) * 2020-05-28 2023-07-25 歌尔科技有限公司 Wireless pairing connection method and device, host and slave

Also Published As

Publication number Publication date
CN112291768A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
RU2613775C2 (en) Control method and system for intelligent terminal device
CN105187871B (en) A kind of method and system of the mobile terminal data transmission television terminal based on NFC
CN109218785B (en) Awakening method and system for intelligent television in standby state
CN110769319B (en) Standby wakeup interaction method and device
CN104581320A (en) Method, device and terminal for switching play modes
CN103092490A (en) Video control method and device
CN101599224A (en) A kind of demo system and portable terminal and wireless Internet card
CN103604272A (en) Intelligent refrigerator system and phone answering method controlled by gesture
CN104409076A (en) Voice control system and voice control method for chess and card games
CN111462744A (en) Voice interaction method and device, electronic equipment and storage medium
CN105677004A (en) Terminal processing method and terminal
CN106027806A (en) Smart home device control method and mobile terminal
CN104267943B (en) A kind of external equipment adaptive device and method
CN111935517B (en) Awakening method and device of intelligent set top box, electronic equipment and storage medium
CN104836869A (en) Mobile communication terminal and mobile communication terminal power-on method
US20060129408A1 (en) A remote control device and method with speech control
CN112291768B (en) Equipment connection method, system, bluetooth handle and storage medium
CN111726661A (en) Program push playing method, display equipment, mobile terminal and system
CN105116862A (en) Household appliance control method based on biological information verification, device and wearable equipment
CN101972545A (en) On-line game operating terminal combined with television remote controller, and signal receiving device
CN104808812B (en) A kind of information processing method and device
CN105068742B (en) The control method and intelligent watch of a kind of intelligent watch
CN112671619A (en) Intelligent water cup interaction system and intelligent water cup interaction method
CN105592229B (en) The open and close machine processing method and processing device of terminal
CN101262555A (en) Method and device for calling instant messaging function with a key

Legal Events

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