Control method, system and device based on Bluetooth broadcast, electronic equipment and medium
By saving the Bluetooth pairing information of the target device in the remote control device and entering the unconnected broadcast state, the control information is broadcast directly in the broadcast state, and the problem of slow device response speed in the prior art is solved, and faster device control and improved user experience are achieved.
Patent Information
- Application Number
- CN202311269959.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-03-28
AI Technical Summary
When controlling the device, existing Bluetooth remote control devices need to wake up the controlled device first and establish a Bluetooth connection, resulting in slow response speed and affecting the user experience.
By saving the Bluetooth pairing information of the target device in the remote control device, entering the unconnected broadcast state, receiving the user's control operations and generating control information, broadcasting directly in the broadcast state, avoiding establishing a Bluetooth connection with the target device.
It significantly saves time for device control, improves device response speed, and improves user experience.
Smart Images

Figure CN119729364A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular relates to a control method, system, device, electronic equipment and medium based on Bluetooth broadcasting. Background Art
[0002] In the related art, many devices can be controlled by remote control devices, for example, the device can be controlled by Bluetooth through a remote control fixed on the wall. Bluetooth remote control devices usually use low-power Bluetooth technology and are powered by batteries or button batteries. When the remote control device controls the device, it controls it through a Bluetooth connection with the device. Therefore, each time a device is controlled, it is necessary to wake up the controlled device first, and then establish a Bluetooth connection between the remote control device and the controlled device to send the control command. This process takes a long time, resulting in a slow response of the controlled device, which affects the user experience. Summary of the invention
[0003] In view of the above technical problems in the related art, the embodiments of the present invention provide a control method, system, device, electronic device and medium based on Bluetooth broadcasting to improve the response speed of the controlled device and improve the user experience.
[0004] In a first aspect, an embodiment of the present invention provides a control method based on Bluetooth broadcasting, which is applied to a remote control device, wherein the remote control device is used to perform Bluetooth control on a target device, comprising:
[0005] If the Bluetooth pairing information of the target device is saved in the remote control device, the remote control device enters a broadcast state that cannot be connected;
[0006] receiving a control operation of a user on the remote control device for the target device, and generating control information based on the control operation;
[0007] The control information is broadcasted in the unconnectable broadcast state.
[0008] In some embodiments, the method further comprises:
[0009] If the Bluetooth pairing information of the target device is not saved in the remote control device, entering a scanning state;
[0010] Obtain the signal strengths of N scanned Bluetooth devices, and use the Bluetooth device with the largest signal strength as the target device, where N is a positive integer;
[0011] Perform Bluetooth pairing with the target device and save Bluetooth pairing information with the target device.
[0012] In some implementations, after performing Bluetooth pairing with the target device and saving Bluetooth pairing information with the target device, the method further includes:
[0013] The Bluetooth connection with the target device is disconnected, the scanning state is exited, and the non-connectable broadcast state is entered.
[0014] In some implementations, the Bluetooth pairing information includes identification information of the target device, and the generating control information based on the control operation includes:
[0015] Acquiring instruction information corresponding to the control operation;
[0016] The control information is generated based on the instruction information and the identification information.
[0017] In a second aspect, an embodiment of the present invention provides a control method based on Bluetooth broadcasting, which is applied to a target device, wherein the target device is controlled by a remote control device, and the method includes:
[0018] If the target device has Bluetooth pairing information of at least one remote control device saved, a scanning state is entered;
[0019] Under the filtering mechanism of the target device, if the first control information broadcasted by the first remote control device in a non-connectable broadcast state is received, the control instruction corresponding to the first control information is executed.
[0020] In some embodiments, the method further comprises:
[0021] If the target device does not store any Bluetooth pairing information of the remote control device, enter the scanning state;
[0022] If second control information broadcast by a second remote control device in a non-connectable broadcast state is received, determining whether the second control information includes identification information of the target device;
[0023] If the second control information includes the identification information, the second remote control device is regarded as a paired device, and the device information of the second remote control device is saved.
[0024] In some embodiments, the method further comprises:
[0025] If the target device does not store any Bluetooth pairing information of the remote control device, it enters a broadcast state where it can be connected;
[0026] If a Bluetooth connection request from a third remote control device is detected, establishing a Bluetooth connection with the third remote control device and performing a pairing operation;
[0027] The Bluetooth pairing information of the third remote control device is saved, wherein the Bluetooth pairing information of the third remote control device includes the device information of the third remote control device.
[0028] In some embodiments, the method further comprises:
[0029] configuring the filtering mechanism based on the device information of the M paired remote control devices stored in the target device;
[0030] The filtering mechanism is to receive control information sent by a remote control device in a remote control device set, wherein the remote control device set includes device information of the M paired remote control devices, where M is a positive integer.
[0031] In some implementations, if the target device stores Bluetooth pairing information of at least one remote control device, after entering the scanning state, the method further includes:
[0032] If a Bluetooth pairing request initiated by a fourth remote control device is received, establishing a Bluetooth connection with the fourth remote control device;
[0033] Performing Bluetooth pairing with the fourth remote control device, and saving Bluetooth pairing information of the fourth remote control device;
[0034] The filtering mechanism is updated based on the Bluetooth pairing information of the fourth remote control device, wherein the device information of the fourth remote control device is added to the remote control device set.
[0035] In a third aspect, an embodiment of the present invention provides a control system based on Bluetooth broadcasting, including:
[0036] A target device and K remote control devices, wherein the K remote control devices are used to control the target device, and K is a positive integer;
[0037] The remote control device is configured to enter a non-connectable broadcast state when the Bluetooth pairing information of the target device is saved; upon receiving a control operation of the user on the remote control device for the target device, generate control information based on the control operation, and broadcast the control information in the non-connectable broadcast state;
[0038] The target device is used to enter a scanning state when the Bluetooth pairing information of at least one remote control device is saved, and under the filtering mechanism of the target device, if target control information broadcasted by the target remote control device in a non-connectable broadcast state is received, the control instruction corresponding to the target control information is executed.
[0039] In a fourth aspect, an embodiment of the present invention provides a control device based on Bluetooth broadcasting, which is applied to a remote control device, wherein the remote control device is used to perform Bluetooth control on a target device, including:
[0040] A control module, configured to enter a non-connectable broadcast state if the Bluetooth pairing information of the target device is stored in the remote control device;
[0041] An information generating module, configured to receive a control operation of a user on the remote control device for the target device, and generate control information based on the control operation;
[0042] The broadcast module is used to broadcast the control information in the unconnectable broadcast state.
[0043] In a fifth aspect, an embodiment of the present invention provides a control device based on Bluetooth broadcasting, which is applied to a target device, and the target device is controlled by a remote control device, and the device includes:
[0044] A processing module, configured to enter a scanning state if the target device stores Bluetooth pairing information of at least one remote control device;
[0045] The execution module is used for executing the control instruction corresponding to the first control information if the first control information broadcasted by the first remote control device in the unconnectable broadcast state is received under the filtering mechanism of the target device.
[0046] In a sixth aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method of control based on Bluetooth broadcasting when executing the program.
[0047] In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-mentioned control method based on Bluetooth broadcasting.
[0048] One or more technical solutions provided by the embodiments of the present invention achieve at least the following technical effects or advantages:
[0049] The control method based on Bluetooth broadcast provided in the embodiment of this specification, when the Bluetooth pairing information of the target device is saved in the remote control device, enters a non-connectable broadcast state, receives the user's control operation on the remote control device for the target device, and generates control information based on the control operation, and broadcasts the control information in a non-connectable broadcast state. In the above scheme, if the remote control device and the target device have been paired, when the remote control device controls the target device, it does not need to establish a Bluetooth connection with the target device, and sends control information in a non-connectable broadcast state. In this way, when the target device scans the control information, it can execute the control information. Therefore, this scheme broadcasts control information by using the non-connectable broadcast state of the remote control device, which can significantly save the time of device control, increase the response speed of the device, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 A schematic diagram of a control system based on Bluetooth broadcasting provided in an embodiment of this specification;
[0052] Figure 2 A flowchart of a control method based on Bluetooth broadcasting applied to a remote control device provided in an embodiment of this specification;
[0053] Figure 3 A flowchart of a control method based on Bluetooth broadcasting applied to a target device provided in an embodiment of this specification;
[0054] Figure 4 A schematic diagram of a control device based on Bluetooth broadcasting provided in an embodiment of this specification;
[0055] Figure 5 A schematic diagram of another control device based on Bluetooth broadcasting provided in an embodiment of this specification;
[0056] Figure 6 A schematic diagram of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0057] The embodiments of the present specification provide a control method, system, device, electronic device and medium based on Bluetooth broadcasting. The method is applied to a remote control device, which is used to perform Bluetooth control on a target device, including: if the Bluetooth pairing information of the target device is stored in the remote control device, entering an unconnectable broadcast state; receiving a user's control operation on the target device on the remote control device, and generating control information based on the control operation; and broadcasting the control information in the unconnectable broadcast state.
[0058] In the solution of the embodiment of this specification, if the remote control device and the target device have been paired, when the remote control device controls the target device, it does not need to establish a Bluetooth connection with the target device, and sends control information in a non-connectable broadcast state. In this way, when the target device scans the control information, it can execute the control information. Therefore, this solution broadcasts the control information through the non-connectable broadcast state of the remote control device, which can significantly save the time of device control, improve the response speed of the device, and improve the user experience.
[0059] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0061] In order to better understand the solution provided by the embodiments of this specification, the control system based on Bluetooth broadcasting provided by the embodiments of this specification is described below. Figure 1 The system includes a target device and K remote control devices, wherein the K remote control devices are used to control the target device, and K is a positive integer.
[0062] Specifically, the target device can be a controlled device, and the target device can be an air conditioner, a fresh air device, a fan or other household appliance, and the target device can be controlled by one or more remote control devices. For example, if the target device is an air conditioner located in the kitchen, a remote control device can be set on the kitchen wall, and the kitchen air conditioner can be controlled by the remote control device. At the same time, a remote control device can also be set in the restaurant area, and the remote control device can also control the kitchen air conditioner. For example, when the kitchen area is unmanned and the air conditioner is forgotten to be turned off, the air conditioner can be turned off by the remote control device in the restaurant area. Alternatively, when the kitchen air conditioner is used for cooling in the kitchen and the restaurant at the same time, if the temperature in the restaurant is too low, the user in the restaurant can adjust the temperature of the air conditioner through the remote control device in the restaurant area.
[0063] In the embodiments of this specification, the remote control device is used to enter a non-connectable broadcast state when saving the Bluetooth pairing information of the target device; when receiving a control operation of the user on the remote control device for the target device, generate control information based on the control operation, and broadcast the control information in the non-connectable broadcast state. The target device is used to enter a scanning state when saving the Bluetooth pairing information of at least one remote control device, and under the filtering mechanism of the target device, if receiving the target control information broadcast by the target remote control device in the non-connectable broadcast state, execute the control instruction corresponding to the target control information.
[0064] It should be noted that Bluetooth broadcasts include connectable broadcasts and unconnectable broadcasts, where connectable broadcasts are broadcasts initiated to establish a Bluetooth connection; unconnectable broadcasts are intended for the target party to receive this broadcast information and are not used for Bluetooth connection processing of the device.
[0065] Next, the control process of the remote control device and the target device are described respectively.
[0066] like Figure 2 As shown, it is a flow chart of a control method based on Bluetooth broadcasting provided by an embodiment of this specification. The method is applied to a remote control device, and the remote control device is used to perform Bluetooth control on a target device. Specifically, the method includes the following steps:
[0067] Step S201: if the Bluetooth pairing information of the target device is saved in the remote control device, a broadcast state in which connection is not possible is entered;
[0068] Step S202: receiving a control operation of the user on the remote control device for the target device, and generating control information based on the control operation;
[0069] Step S203: broadcast the control information in the unconnectable broadcast state.
[0070] In step S201, the remote control device may be any remote control device used to control the target device. When the remote control device and the target device have performed Bluetooth pairing, the remote control device will save the Bluetooth pairing information of the target device. If the Bluetooth pairing information is not saved in the remote control device, it indicates that the remote control device has not performed Bluetooth pairing with the target device. The Bluetooth pairing information may include but is not limited to the identification information of the target device, the MAC address (Media Access Control Address), the pairing random number, etc., wherein the identification information may be the IMEI (International Mobile Equipment Identity) information of the target device.
[0071] In the embodiments of this specification, when the remote control device does not save the Bluetooth pairing information of the target device, the target device cannot be controlled. In order to ensure the remote control device controls the target device, the target device information can be obtained in a variety of ways for subsequent control.
[0072] In some embodiments, the remote control device can obtain the information of the target device through the following steps: if the Bluetooth pairing information of the target device is not saved in the remote control device, enter the scanning state; obtain the signal strength of the N scanned Bluetooth devices, and take the Bluetooth device with the largest signal strength as the target device, N is a positive integer; perform Bluetooth pairing with the target device, and save the Bluetooth pairing information with the target device.
[0073] Specifically, when the remote control device does not contain the Bluetooth pairing information of the target device, the user can be reminded that the remote control device is in an unpaired state through the display screen of the remote control device or by pushing a reminder message to the user's terminal device. The user can trigger the remote control device to perform a pairing operation through the physical buttons on the remote control device or the virtual buttons on the display screen. During the pairing process, the remote control device will enter a scanning state to scan the connectable Bluetooth devices in the environment. After the remote control device scans N Bluetooth devices in the environment, the N Bluetooth devices are sorted based on the signal strength of each Bluetooth device. Since the remote control device is usually set at a position close to the controlled target device, the Bluetooth device with the strongest signal strength can be used as the target device, and a Bluetooth connection is established with the target device for pairing. When the pairing is successful, the Bluetooth pairing information with the target device is obtained, including but not limited to the IMEI information, MAC address, pairing random number, etc. of the target device. Furthermore, the obtained Bluetooth pairing information of the target device is saved.
[0074] Furthermore, after obtaining the Bluetooth pairing information of the target device, the remote control device can disconnect the Bluetooth connection with the target device, exit the scanning state, and enter the unconnectable broadcast state. That is, only when obtaining the pairing information is based on the Bluetooth connection, and in the subsequent control process, it does not rely on the Bluetooth connection, thereby improving the response speed of device control.
[0075] In other embodiments, the remote control device may obtain information of the target device through the following steps: obtaining identification information of the target device through the user terminal; establishing a Bluetooth connection between the remote control device and the user terminal, obtaining and saving the identification information of the target device sent by the user terminal.
[0076] Specifically, when there are multiple controlled devices, the user can specify which device the remote control device is used to control. For example, each controlled device may correspond to a QR code containing identification information. The user can select a target device from each controlled device and scan the QR code of the target device through the user terminal to obtain the identification information of the target device. Furthermore, the remote control device can enter a connectible broadcast state and establish a Bluetooth connection with the user terminal. The user terminal sends the identification information of the target device to the remote control device via the Bluetooth connection, and the remote control device saves the received identification information of the target device.
[0077] It is understandable that, after receiving the identification information of the target device, the remote control device may disconnect the Bluetooth connection with the user terminal and enter a non-connectable broadcast state to send control information through the non-connectable broadcast state.
[0078] In the embodiments of this specification, if the remote control device stores the Bluetooth pairing information of the target device, it indicates that the remote control device can directly control the target device, and the remote control device enters a broadcast state that cannot be connected. It should be noted that when the remote control device stores the identification information of the target device, it can also be considered that the remote control device stores the Bluetooth pairing information of the target device. In this case, the Bluetooth pairing information is the identification information of the target device.
[0079] In step S202, when the user wants to control the target device, the user can perform control operations on the target device on the remote control device. Taking the above-mentioned kitchen air conditioner as an example, the user can adjust the temperature, wind speed, operating mode of the air conditioner and control the switch of the air conditioner on the remote control device.
[0080] After detecting a control operation, the remote control device generates control information based on the control operation. In some embodiments, the control information may be generated by the following steps: obtaining instruction information corresponding to the control operation; and generating the control information based on the instruction information and the identification information.
[0081] Specifically, when a control operation is detected, corresponding instruction information is generated based on the function selected by the control operation and the parameters adjusted, and the identification information of the target device is included in the control information. In this way, when the target device receives the control information, if the control information contains the identification information of the target device, it indicates that the remote control device is the control device of the target device and can execute the control instruction in the control information.
[0082] In step S203, the remote control device broadcasts the control information in a non-connectable broadcast state, that is, during the control stage of the target device, the remote control device does not rely on the Bluetooth connection with the target device, but sends the control information outward through Bluetooth broadcast, thereby saving the time of establishing a Bluetooth connection with the target device and the wake-up time of the target device, and effectively improving the response speed of the device.
[0083] like Figure 3 As shown, it is a flow chart of a control method based on Bluetooth broadcasting provided by an embodiment of this specification. The method is applied to a target device, and the target device is controlled by a remote control device. Specifically, the following steps are included:
[0084] Step S301: If the target device has stored Bluetooth pairing information of at least one remote control device, enter a scanning state;
[0085] Step S302: Under the filtering mechanism of the target device, if first control information broadcasted by the first remote control device in a non-connectable broadcast state is received, a control instruction corresponding to the first control information is executed.
[0086] In step S301, the target device can be controlled by multiple remote control devices. When the target device and the remote control device have been paired with Bluetooth, the Bluetooth pairing information of the remote control device will be saved. The Bluetooth pairing information of the remote control device may include but is not limited to the identification information of the remote control device, such as the IMEI information of the remote control device. If the target device has Bluetooth pairing information of at least one remote control device saved, it indicates that the target device can be controlled by at least one remote control device. At this time, the target device can enter a scanning state to receive control information sent by at least one remote control device.
[0087] In the embodiments of this specification, when the target device does not store any Bluetooth pairing information of any device, it cannot be controlled by the remote control device. At this time, the information of the remote control device can be obtained in a variety of ways for subsequent control.
[0088] In some embodiments, the target device can obtain the information of the remote control device through the following steps: if the Bluetooth pairing information of any remote control device is not saved in the target device, enter the scanning state; if the second control information broadcast by the second remote control device in the unconnectable broadcast state is received, determine whether the second control information contains the identification information of the target device; if the second control information contains the identification information, treat the second remote control device as a paired device and save the device information of the second remote control device.
[0089] Specifically, when the target device does not save any Bluetooth pairing information of any device, it may be that it has never been paired with the remote control device, or it may have been paired with the remote control device before, but the pairing information was lost due to power failure or other reasons. In either case, the target device can enter the scanning state and obtain the information of the paired remote control device through the control information sent by each remote control device.
[0090] For example, if the target device receives the second control information sent by the second remote control device in a non-connectable broadcast state, it is necessary to determine whether the second remote control device is a paired device of the target device. As described above, the control information broadcast by the remote control device can carry the identification information of the controlled device. Then, after the target device receives the second control information, the second control information can be parsed to parse out the device identification information carried in the second control information. If the device identification information carried in the second control information is the identification information of the target device, it is determined that the target device and the second remote control device have been paired before, that is, the second remote control device can control the target device. At this time, the device information of the second remote control device can be saved. On the contrary, if the device identification information carried in the second control information is different from the identification information of the target device, it indicates that the second remote control device is not the control device of the target device.
[0091] In other embodiments, the target device can also obtain the information of the remote control device through the following steps: if the Bluetooth pairing information of any remote control device is not saved in the target device, enter a connectable broadcast state; if a Bluetooth connection request of a third remote control device is detected, establish a Bluetooth connection with the third remote control device and perform a pairing operation; save the Bluetooth pairing information of the third remote control device, and the Bluetooth pairing information of the third remote control device includes the device information of the third remote control device.
[0092] Specifically, in order to obtain information about the remote control device used to control the target device, the target device can enter a connectable broadcast state. For a third remote control device, if the third remote control device is in a scanning state and determines that the target device is a device that needs to be connected through, for example, the signal strength described above, the third remote control device can initiate a Bluetooth connection request to the target device. After the target device establishes a Bluetooth connection with the third remote control device, the target device can obtain and save the Bluetooth pairing information of the third Bluetooth device.
[0093] It should be noted that the above two methods of obtaining remote control device information can be performed simultaneously, that is, the target device performs scanning and connectable broadcasting at the same time, and the two acquisition methods do not interfere with each other. For example, when the target device is powered on, no pairing information is saved in the target device. The reason why no pairing information is saved may be that the target device has never been paired with the remote control device, or it may be that the previously saved pairing information is lost after power failure and power on again. Therefore, it is impossible to determine whether the target device has been paired with the remote control device. At this time, the target device can perform scanning and connectable broadcasting at the same time to obtain information for pairing with the remote control device or pair with the corresponding remote control device by establishing a Bluetooth connection.
[0094] In addition, the target device can also first obtain the remote control device information by scanning. For example, if the control information received within a period of time does not contain the identification information of the target device, it can then start the connectable broadcast to obtain the device information of the remote control device and save it to accept the control of the remote control device that has the device information saved.
[0095] In step S302, the filtering mechanism of the target device may be to receive control information sent by paired devices and not to receive control information sent by unpaired devices.
[0096] In some embodiments, the filtering mechanism can be configured through the following steps: configuring the filtering mechanism based on the device information of M paired remote control devices stored in the target device; wherein the filtering mechanism is to receive control information sent by a remote control device in a remote control device set, and the remote control device set includes the device information of the M paired remote control devices, and M is a positive integer.
[0097] Specifically, the device information of all remote control devices stored in the target device is added to the remote control device set, and each device in the remote control device set is a remote control device that can control the target device. Further, if the first control information sent by the first remote control device can be received under the filtering mechanism, it indicates that the first remote control device is a device in the remote control device set, that is, the first remote control device is a device that has been paired with the target device. When the target device receives the first control information, it can parse the first control information to obtain a control instruction and operate according to the control instruction.
[0098] In the embodiments of this specification, if a new remote control device is to be added to control the target device, the user can trigger the remote control device to initiate a Bluetooth pairing request through the physical button on the remote control device or the virtual button on the display screen. The specific implementation process can be: if a Bluetooth pairing request initiated by a fourth remote control device is received, a Bluetooth connection is established with the fourth remote control device; Bluetooth pairing is performed with the fourth remote control device, and the Bluetooth pairing information of the fourth remote control device is saved; the filtering mechanism is updated based on the Bluetooth pairing information of the fourth remote control device, wherein the device information of the fourth remote control device is added to the remote control device set.
[0099] Specifically, no matter what state the target device is in, when receiving a Bluetooth pairing request initiated by the fourth remote control device, it will respond to the Bluetooth pairing request and obtain the Bluetooth pairing information of the fourth remote control device through Bluetooth pairing. Since the fourth remote control device is used to control the target device, it is necessary to update the current filtering mechanism of the target device. Still using the example of the remote control device set above, the device information of the fourth remote control device can be added to the remote control device set.
[0100] In order to better understand the control method based on Bluetooth broadcast provided in the embodiment of this specification, the complete interaction process between the target device and the remote control setting is described below. It should be noted that in this embodiment, the target device and the remote control device are initially in an unpaired state, and the interaction process between the two is as follows:
[0101] ①Power on the target device;
[0102] ②Power on the remote control device;
[0103] ③The target device enters the connectable broadcast state, which is used for Bluetooth pairing with the remote control device;
[0104] ④ When the remote control device prompts that pairing has not been completed, detect the user's operation on the pairing button;
[0105] ⑤ If the remote control device detects the user's operation on the pairing button, the remote control device initiates the pairing operation and enters the scanning state to scan the Bluetooth devices in the environment;
[0106] ⑥ Based on the signal strength of the scanned Bluetooth devices, the remote control device selects the Bluetooth device with the strongest signal strength as the target device and initiates a connection;
[0107] ⑦The remote control device establishes a Bluetooth connection with the target device;
[0108] ⑧The remote control device obtains Bluetooth pairing information, such as the target device's IMEI information, MAC address, pairing random number, etc.;
[0109] ⑨After pairing is completed, the remote control device disconnects the Bluetooth connection and exits the scanning state;
[0110] ⑩The remote control device is in a broadcasting state that cannot be connected;
[0111] When the user operates the remote control device, the remote control device broadcasts control information, wherein the control information carries identification information of the target device;
[0112] If the remote control device does not detect any user operation within a preset time, it exits the unconnectable broadcast state and enters sleep mode;
[0113] The target device saves the Bluetooth pairing information with the remote device, including the IMEI information of the remote device. If the target device loses power, the Bluetooth pairing information will be lost.
[0114] The target device sets a filtering mechanism based on the saved Bluetooth pairing information;
[0115] The target device receives the control information sent by the paired remote control device according to the filtering mechanism;
[0116] The target device parses the control information and executes the control instructions corresponding to the control information;
[0117] If the Bluetooth pairing information saved by the target device is lost, the target device enters the scanning mode. If the control information broadcast by the remote control device is received, and the control information contains the identification information of the target device, it is determined that the remote control device is a remote control device that has been paired before, and the device information of the remote control device is saved;
[0118] After the remote control device enters sleep mode, if a user operation is detected, the remote control device is awakened;
[0119] The remote control device enters the scanning state when the pairing information is saved, and initiates control of the target device; If the remote control device has not saved the configuration information, enter step ④ for pairing. After pairing is completed, initiate control of the target device.
[0120] To sum up, in the solution provided by the embodiments of this specification, the target device and the remote control device only use Bluetooth connection to obtain pairing information during the pairing process, and do not rely on Bluetooth connection in the subsequent control process. Instead, the target device is in a scanning state, and the remote control device enters an unconnectable broadcast state to realize the interaction of control information, thereby saving the time consumed by Bluetooth connection and the time to wake up the target device, effectively shortening the control time, increasing the response speed, and improving the user experience.
[0121] Based on the same inventive concept, an embodiment of the present invention provides a control device based on Bluetooth broadcasting, which is applied to a remote control device, wherein the remote control device is used to perform Bluetooth control on a target device, such as Figure 4 As shown, the device comprises:
[0122] The control module 401 is used to enter a broadcast state that cannot be connected if the Bluetooth pairing information of the target device is stored in the remote control device;
[0123] An information generating module 402 is used to receive a control operation of the user on the remote control device for the target device, and generate control information based on the control operation;
[0124] The broadcast module 403 is configured to broadcast the control information in the unconnectable broadcast state.
[0125] In some embodiments, the device further comprises:
[0126] A first processing module, configured to enter a scanning state when the Bluetooth pairing information of the target device is not saved in the remote control device;
[0127] A target device determination module is used to obtain the signal strengths of the N scanned Bluetooth devices and take the Bluetooth device with the largest signal strength as the target device, where N is a positive integer;
[0128] The second processing module is used to perform Bluetooth pairing with the target device and save Bluetooth pairing information with the target device.
[0129] In some embodiments, the device further comprises:
[0130] The third processing module is used to disconnect the Bluetooth connection with the target device, exit the scanning state, and enter the unconnectable broadcast state.
[0131] In some implementations, the information generation module 402 is used to:
[0132] Acquiring instruction information corresponding to the control operation;
[0133] The control information is generated based on the instruction information and the identification information.
[0134] Regarding the above-mentioned device, the specific functions of each module therein have been described in detail in the embodiment of the control method based on Bluetooth broadcasting provided in the embodiment of this specification, and will not be elaborated here.
[0135] Based on the same inventive concept, an embodiment of the present invention provides a control device based on Bluetooth broadcasting, which is applied to a target device, and the target device is controlled by a remote control device, such as Figure 5 As shown, the device comprises:
[0136] The processing module 501 is used to enter a scanning state if the target device stores Bluetooth pairing information of at least one remote control device;
[0137] The execution module 502 is configured to execute a control instruction corresponding to the first control information if the first control information broadcasted by the first remote control device in a non-connectable broadcast state is received under the filtering mechanism of the target device.
[0138] In some embodiments, the device further comprises:
[0139] A first control module, configured to enter a scanning state if the target device does not store any Bluetooth pairing information of the remote control device;
[0140] an identification information determination module, configured to determine whether the second control information broadcast by the second remote control device in a non-connectable broadcast state contains the identification information of the target device if the second control information is received;
[0141] The first saving module is configured to treat the second remote control device as a paired device and save the device information of the second remote control device if the second control information includes the identification information.
[0142] In some embodiments, the device further comprises:
[0143] A second control module, configured to enter a connectable broadcast state if the target device does not store any Bluetooth pairing information of the remote control device;
[0144] A pairing module, configured to establish a Bluetooth connection with the third remote control device and perform a pairing operation if a Bluetooth connection request of a third remote control device is detected;
[0145] The second saving module is used to save the Bluetooth pairing information of the third remote control device, where the Bluetooth pairing information of the third remote control device includes the device information of the third remote control device.
[0146] In some embodiments, the device further comprises:
[0147] A configuration module, configured to configure the filtering mechanism based on the device information of the M paired remote control devices stored in the target device;
[0148] The filtering mechanism is to receive control information sent by a remote control device in a remote control device set, wherein the remote control device set includes device information of the M paired remote control devices, where M is a positive integer.
[0149] In some embodiments, the device further comprises:
[0150] a connection module, configured to establish a Bluetooth connection with the fourth remote control device upon receiving a Bluetooth pairing request initiated by the fourth remote control device;
[0151] A third storage module, used for performing Bluetooth pairing with the fourth remote control device and saving Bluetooth pairing information of the fourth remote control device;
[0152] An updating module is used to update the filtering mechanism based on the Bluetooth pairing information of the fourth remote control device, wherein the device information of the fourth remote control device is added to the remote control device set.
[0153] Regarding the above-mentioned device, the specific functions of each module therein have been described in detail in the embodiment of the control method based on Bluetooth broadcasting provided in the embodiment of this specification, and will not be elaborated here.
[0154] Based on the same inventive concept, an embodiment of the present invention provides an electronic device, referring to Figure 6 As shown, it includes: a memory 604, a processor 602, and a computer program stored in the memory 604 and executable on the processor 602. When the processor 602 executes the program, any implementation of the control method based on Bluetooth broadcasting is implemented.
[0155] Among them, Figure 6In the embodiment of the present invention, a bus architecture (represented by bus 600) is shown, which may include any number of interconnected buses and bridges, and bus 600 links various circuits including one or more processors represented by processor 602 and memory represented by memory 604. Bus 600 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 605 provides an interface between bus 600 and receiver 601 and transmitter 603. Receiver 601 and transmitter 603 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 602 is responsible for managing bus 600 and general processing, while memory 604 may be used to store data used by processor 602 when performing operations.
[0156] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope and spirit of the present invention and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hard wiring, or a combination of any of these. In addition, each functional unit may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit.
[0157] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0158] The units described as separate components may or may not be physically separated, and the components of the control device may or may not be physical units, that is, they may be located in one place or distributed in multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0159] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0160] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.
Claims
1. A control method based on Bluetooth broadcasting, characterized in that: Applied to a remote control device, the remote control device is used to perform Bluetooth control on a target device, the method comprises: If the Bluetooth pairing information of the target device is saved in the remote control device, the remote control device enters a broadcast state that cannot be connected; receiving a control operation of a user on the remote control device for the target device, and generating control information based on the control operation; The control information is broadcasted in the unconnectable broadcast state.
2. The method according to claim 1, characterized in that The method further comprises: If the Bluetooth pairing information of the target device is not saved in the remote control device, entering a scanning state; Obtain the signal strengths of N scanned Bluetooth devices, and use the Bluetooth device with the largest signal strength as the target device, where N is a positive integer; Perform Bluetooth pairing with the target device and save Bluetooth pairing information with the target device.
3. The method according to claim 2, characterized in that After performing Bluetooth pairing with the target device and saving Bluetooth pairing information with the target device, the method further includes: The Bluetooth connection with the target device is disconnected, the scanning state is exited, and the non-connectable broadcast state is entered.
4. The method according to claim 1, characterized in that The Bluetooth pairing information includes identification information of the target device, and the generating of control information based on the control operation includes: Acquiring instruction information corresponding to the control operation; The control information is generated based on the instruction information and the identification information.
5. A control method based on Bluetooth broadcasting, characterized in that: Applied to a target device, the target device is controlled by a remote control device, the method comprising: If the target device has Bluetooth pairing information of at least one remote control device saved, a scanning state is entered; Under the filtering mechanism of the target device, if the first control information broadcasted by the first remote control device in a non-connectable broadcast state is received, the control instruction corresponding to the first control information is executed.
6. The method according to claim 5, characterized in that The method further comprises: If the target device does not store any Bluetooth pairing information of the remote control device, enter the scanning state; If second control information broadcast by a second remote control device in a non-connectable broadcast state is received, determining whether the second control information includes identification information of the target device; If the second control information includes the identification information, the second remote control device is regarded as a paired device, and the device information of the second remote control device is saved.
7. The method according to claim 5, characterized in that The method further comprises: If the target device does not store any Bluetooth pairing information of the remote control device, it enters a broadcast state where it can be connected; If a Bluetooth connection request from a third remote control device is detected, establishing a Bluetooth connection with the third remote control device and performing a pairing operation; The Bluetooth pairing information of the third remote control device is saved, wherein the Bluetooth pairing information of the third remote control device includes the device information of the third remote control device.
8. The method according to any one of claims 5 to 7, characterized in that: The method further comprises: configuring the filtering mechanism based on the device information of the M paired remote control devices stored in the target device; The filtering mechanism is to receive control information sent by a remote control device in a remote control device set, wherein the remote control device set includes device information of the M paired remote control devices, where M is a positive integer.
9. The method according to claim 5, characterized in that If the target device stores Bluetooth pairing information of at least one remote control device and enters a scanning state, the method further includes: If a Bluetooth pairing request initiated by a fourth remote control device is received, establishing a Bluetooth connection with the fourth remote control device; Performing Bluetooth pairing with the fourth remote control device, and saving Bluetooth pairing information of the fourth remote control device; The filtering mechanism is updated based on the Bluetooth pairing information of the fourth remote control device, wherein the device information of the fourth remote control device is added to the remote control device set.
10. A control system based on Bluetooth broadcasting, characterized in that: include: A target device and K remote control devices, wherein the K remote control devices are used to control the target device, and K is a positive integer; The remote control device is used to enter a non-connectable broadcast state when the Bluetooth pairing information of the target device is saved; When receiving a control operation of the user on the remote control device for the target device, generating control information based on the control operation, and broadcasting the control information in the unconnectable broadcast state; The target device is used to enter a scanning state when the Bluetooth pairing information of at least one remote control device is saved, and under the filtering mechanism of the target device, if target control information broadcasted by the target remote control device in a non-connectable broadcast state is received, execute the control instruction corresponding to the target control information.
11. A control device based on Bluetooth broadcasting, characterized in that: Applied to a remote control device, the remote control device is used to perform Bluetooth control on a target device, and the device comprises: A control module, configured to enter a non-connectable broadcast state if the Bluetooth pairing information of the target device is stored in the remote control device; An information generating module, configured to receive a control operation of a user on the remote control device for the target device, and generate control information based on the control operation; The broadcast module is used to broadcast the control information in the unconnectable broadcast state.
12. A control device based on Bluetooth broadcasting, characterized in that: Applied to a target device, the target device is controlled by a remote control device, the apparatus comprises: A processing module, configured to enter a scanning state if the target device stores Bluetooth pairing information of at least one remote control device; The execution module is used for executing the control instruction corresponding to the first control information if the first control information broadcasted by the first remote control device in the unconnectable broadcast state is received under the filtering mechanism of the target device.
13. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 9 when executing the program.
14. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.