Remote control device matching method, electronic device and readable storage medium

By setting the data transfer mode in the remote control device, transplanting the communication address information of the old device and the remote control system information, the problem of custom button information needing to be reset when pairing the remote control device with the host is solved, and the pairing efficiency is improved.

CN114268930BActive Publication Date: 2025-06-24GEER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111564945.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-20
Publication Date
2025-06-24
Estimated Expiration
2041-12-20

AI Technical Summary

Technical Problem

In the prior art, when the remote control device is paired with the host, the custom key information needs to be manually set, which affects the pairing efficiency.

Method used

By setting the data transfer mode in the remote control device, the communication address information and remote control system information of the old remote control device are obtained and sent to the new remote control device to transplant and pair information.

Benefits of technology

Without the need for the user to reset the custom button information, the settings of the old device are directly inherited, improving the pairing efficiency between the remote control device and the host.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114268930B_ABST
    Figure CN114268930B_ABST
Patent Text Reader

Abstract

The present application discloses a remote control device matching method, an electronic device, and a readable storage medium, which are applied to a first remote control device. The remote control device matching method includes: after detecting the activation of the data transfer mode, obtaining first communication address information and first remote control system information; sending the first communication address information and the first remote control system information to a second remote control device for the second remote control device to pair with a host based on the first communication address information and the first remote control system information. The present application solves the technical problem of low pairing efficiency between a remote control device and a host in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of smart home, and particularly to a method for matching remote control devices, an electronic device, and a readable storage medium. Background Art

[0002] In daily life, a host is usually controlled through a remote control device for human-computer interaction, such as a TV remote control and a TV. At the same time, it often happens that a new remote control device replaces an old one. However, when a new remote control device is paired with the host, for some custom button information, it is usually necessary to manually set some custom button information again, which affects the pairing efficiency between the remote control device and the host. Summary of the Invention

[0003] The main purpose of this application is to provide a method for matching remote control devices, an electronic device, and a readable storage medium, aiming to solve the technical problem of low pairing efficiency between a remote control device and a host in the prior art.

[0004] To achieve the above object, this application provides a method for matching remote control devices, which is applied to a first remote control device. The method for matching remote control devices includes:

[0005] After detecting that the data transfer mode is enabled, obtain the first communication address information and the first remote control system information;

[0006] Send the first communication address information and the first remote control system information to a second remote control device, so that the second remote control device can pair with the host according to the first communication address information and the first remote control system information.

[0007] To achieve the above object, this application provides a method for matching remote control devices, which is applied to a second remote control device. The method for matching remote control devices includes:

[0008] After detecting that the data transfer mode is enabled, receive the first communication address information and the first remote control system information sent by the first remote control device;

[0009] Pair with the corresponding host according to the first communication address information and the first remote control system information.

[0010] To achieve the above object, this application further provides a device for matching remote control devices, which is applied to a first remote control device. The device for matching remote control devices includes:

[0011] An obtaining module, configured to obtain the first communication address information and the first remote control system information after detecting that the data transfer mode is enabled;

[0012] A sending module, configured to send the first communication address information and the first remote control system information to a second remote control device, so that the second remote control device pairs with a host according to the first communication address information and the first remote control system information.

[0013] To achieve the above object, the present application further provides a remote control device matching apparatus, which is applied to a second remote control device. The remote control device matching apparatus includes:

[0014] A receiving module, configured to receive the first communication address information and the first remote control system information sent by a first remote control device when detecting that a data transfer mode is enabled;

[0015] A pairing module, configured to pair with a corresponding host according to the first communication address information and the first remote control system information.

[0016] The present application further provides an electronic device, which includes: a memory, a processor, and a program of the remote control device matching method stored on the memory and executable on the processor. When the program of the remote control device matching method is executed by the processor, the steps of the remote control device matching method as described above can be implemented.

[0017] The present application further provides a computer-readable storage medium, on which a program for implementing the remote control device matching method is stored. When the program for implementing the remote control device matching method is executed by a processor, the steps of the remote control device matching method as described above are implemented.

[0018] The present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the remote control device matching method as described above are implemented.

[0019] The present application provides a method for matching a remote control device, an electronic device, and a readable storage medium. After detecting the activation of the data transfer mode, the present application obtains the first communication address information and the first remote control system information, and then sends the first communication address information and the first remote control system information to the second remote control device, so that the second remote control device can be paired with the host according to the first communication address information and the first remote control system information. That is to say, the present application sets a data transfer mode in the remote control device, which can transplant the communication address information and the corresponding remote control system information corresponding to the old remote control device (the first remote control device) into the new remote control device (the second remote control device). Then, when the new remote control device is paired with the host, it can directly inherit the custom button information of the old remote control device without the user having to manually set it again, overcoming the technical defect in the prior art that when a new remote control device is paired with the host, for some custom button information, it usually needs to manually set some custom button information again, which affects the pairing efficiency between the remote control device and the host, and improves the pairing efficiency between the remote control device and the host. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present application and, together with the specification, are used to explain the principles of the present application.

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0022] Figure 1 It is a schematic flowchart of the first embodiment of the method for matching a remote control device according to the present application;

[0023] Figure 2 It is a schematic flowchart of the second embodiment of the method for matching a remote control device according to the present application;

[0024] Figure 3 It is a schematic diagram of the device structure of the hardware operating environment involved in the method for matching a remote control device in the embodiments of the present application.

[0025] The implementation, functional features, and advantages of the object of the present application will be further described in conjunction with the embodiments with reference to the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0026] To make the above objects, features, and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.

[0027] Embodiment 1

[0028] The embodiment of the present application provides a method for matching remote control devices, which is applied to a first remote control device. In the first embodiment of the method for matching remote control devices of the present application, with reference to Figure 1 , the method for matching remote control devices includes:

[0029] Step S10: After detecting the activation of the data transfer mode, obtain the first communication address information and the first remote control system information;

[0030] Step S20: Send the first communication address information and the first remote control system information to a second remote control device, so that the second remote control device can be paired with the host according to the first communication address information and the first remote control system information.

[0031] In this embodiment, it should be noted that the first remote control device is usually a remote control device to be replaced, such as an old remote control device. The second remote control device is a remote control device used to replace the first remote control device, such as a new remote control device. Both the first remote control device and the second remote control device are provided with a data transfer mode. The first remote control system information includes custom button information, which can be button information customized by the user according to usage habits. The first communication address information is stored in the host, and the first remote control device and the host can communicate relying on the first communication address information.

[0032] As an example, steps S10 to S20 include:

[0033] After detecting the activation of the data transfer mode, obtain the first communication address information and the first remote control system information, and perform a handshake with the second remote control device; after the handshake is successful, send the first communication address information and the first remote control system information to the second remote control device, so that the second remote control device replaces the second communication address information in the local control system with the first communication address information, and replaces the second remote control system information in the local control system with the first remote control system information, so as to transplant the first remote control system information into the local control system of the second remote control device, and after notifying the first remote control device to shut down, communicate with the host according to the first communication address information, and perform remote control on the host according to the first remote control system information on the basis of communicating with the host according to the first communication address information, so that the second remote control device realizes pairing with the host.

[0034] As an example, the first remote control device may send the first communication address information, the first remote control system information, and the generated information code to the second remote control device together. The second remote control device may verify the first communication address information and the first remote control system information according to the generated information code to verify the security and integrity of the first communication address information, and verify the security and integrity of the first remote control system information. Among them, the generated information code may be a CRC (Cyclic Redundancy Check) check information code, or a hash value jointly corresponding to the first communication address information and the first remote control system information.

[0035] Among them, before the step of sending the first communication address information and the first remote control system information to the second remote control device, the remote control device matching method further includes:

[0036] Step A10, pair with the second remote control device that also activates the data transfer mode, and determine whether the pairing with the second remote control device is successful;

[0037] Step A20, if the pairing is successful, execute the step: send the first communication address information and the first remote control system information to the second remote control device.

[0038] As an example, steps A10 to A20 include:

[0039] By performing a handshake with the second remote control device, interact with the second remote control device to determine whether the data transfer mode has been enabled. If it is determined through the interaction between the first remote control device and the second remote control device that the data transfer mode has been enabled, then pair with the second remote control device, and determine whether the pairing with the second remote control device is successful by detecting whether the pairing success information sent by the second remote control device is received. If the pairing is successful, execute the steps: send the first communication address information and the first remote control system information to the second remote control device.

[0040] Among them, the step of performing a handshake with the second remote control device and interacting with the second remote control device to determine whether to enable the data transfer mode includes:

[0041] Perform a handshake with the second remote control device. If the handshake is successful, it proves that the second remote control device is a remote control device that needs to receive data and has enabled the data transfer mode, and the first remote control device proves to the second remote control device that the first remote control device is a remote control device that needs to send data and has enabled the data transfer mode. If the handshake fails, perform the handshake again or select other remote control devices to perform the handshake until the handshake is successful.

[0042] Among them, the step of pairing with the second remote control device that has also enabled the data transfer mode and determining whether the pairing with the second remote control device is successful includes:

[0043] Step A11, start broadcasting a data transfer signal for the second remote control device to determine whether the first remote control device needs to perform data transfer based on the received data transfer signal, and generate a handshake command after determining that the first remote control device needs to perform data transfer;

[0044] Step A12, receive the handshake command sent by the second remote control device, and verify the identity of the second remote control device based on the handshake command;

[0045] Step A13, after successful verification, send the first device information to the second remote control device for the second remote control device to verify whether the first device information matches the second device information stored locally;

[0046] Step A14, if the matching success information sent by the second remote control device is detected, it is determined that the pairing with the second remote control device is successful.

[0047] In this embodiment, it should be noted that the data transfer signal is a signal for the first remote control device to prove to other remote control devices that it needs to perform data transfer, that is, a signal for the first remote control device to prove to other remote control devices that it has enabled the data transfer mode, and those that have also enabled the data transfer mode will respond to the data transfer signal. The first device information may be information such as the device manufacturer or device model of the first remote control device, and the second device information may be information such as the device manufacturer or device model of the second remote control device.

[0048] As an example, steps A11 to A14 include:

[0049] Start broadcasting a data transfer signal for the second remote control device to receive the data transfer signal and detect whether the data transfer signal is consistent with a preset target data transfer signal stored locally. If the second remote control device determines that the data transfer signal is inconsistent with the preset target data transfer signal stored locally, it is determined that the first remote control device does not need to perform data transfer; if the second remote control device determines that the data transfer signal is consistent with the preset target data transfer signal stored locally, it is determined that the first remote control device needs to perform data transfer and generate a handshake command; receive the handshake command sent by the second remote control device and determine whether the handshake command is consistent with a preset target handshake command. If the handshake command is inconsistent with the preset target handshake command, it is determined that the second remote control device is not a remote control device recognized by the first remote control device; if the handshake command is consistent with the preset target handshake command, it is determined that the second remote control device is a remote control device recognized by the first remote control device, that is, the identity verification of the second remote control device is successful. Furthermore, the first remote control device sends the first device information to the second remote control device for the second remote control device to send the matching success information to the first remote control device; if the first remote control device receives the matching success information sent by the second remote control device, it is determined that the pairing with the second remote control device is successful. Among them, the purpose of pairing the first remote control device and the second remote control device is to determine whether memory data transfer can be performed between the first remote control device and the second remote control device, where the memory data is the first communication address information and the first remote control system information.

[0050] Among them, after the step of sending the first communication address information and the first remote control system information to the second remote control device, the remote control device matching method:

[0051] Step S30, if a shutdown command sent by the second remote control device is received, perform shutdown to disconnect the communication with the host.

[0052] In this embodiment, it should be noted that after the second remote control device receives the first communication address information and the first remote control system information sent by the first remote control device, it will send a shutdown command to the first remote control device. Then, if the first remote control device receives the shutdown command sent by the second remote control device, it will shut down to disconnect the communication with the host. After the first remote control device disconnects the communication with the host, the second remote control device can communicate with the host according to the first communication address information.

[0053] The embodiment of the present application provides a method for matching remote control devices. After detecting the activation of the data transfer mode, the embodiment of the present application obtains the first communication address information and the first remote control system information, and then sends the first communication address information and the first remote control system information to the second remote control device for the second remote control device to pair with the host according to the first communication address information and the first remote control system information. The embodiment of the present application sets a data transfer mode in the remote control device, which can transplant the communication address information and the corresponding remote control system information corresponding to the old remote control device (the first remote control device) to the new remote control device (the second remote control device). Then, when the new remote control device pairs with the host, it can directly inherit the custom button information of the old remote control device without the user having to manually set it again, overcoming the technical defect in the prior art that when a new remote control device pairs with the host, for some custom button information, it usually needs to be manually set again, which affects the pairing efficiency between the remote control device and the host, and improves the pairing efficiency between the remote control device and the host.

[0054] Embodiment 2

[0055] Further, referring to Figure 2 , in another embodiment of the present application, the embodiment of the present application provides a method for matching remote control devices, which is applied to the second remote control device. The method for matching remote control devices includes:

[0056] Step B10, after detecting the activation of the data transfer mode, receive the first communication address information and the first remote control system information sent by the first remote control device;

[0057] Step B20, pair with the corresponding host according to the first communication address information and the first remote control system information.

[0058] In this embodiment, it should be noted that the first remote control device is usually the remote control device to be replaced, for example, it can be an old remote control device, and the second remote control device is the remote control device used to replace the first remote control device, for example, it can be a new remote control device. Both the first remote control device and the second remote control device are set with a data transfer mode. The first remote control system information includes custom button information, and this custom button information can be the button information customized by the user according to usage habits. The first communication address information is stored in the host, and communication can be carried out between the first remote control device and the host relying on the first communication address information.

[0059] As an example, steps B10 to B20 include:

[0060] After detecting that the data transfer mode is turned on, perform a handshake with the first remote control device. After the handshake is successful, receive the first communication address information and the first remote control system information sent by the first remote control device; replace the second communication address information in the local control system with the first communication address information, and replace the second remote control system information in the local control system with the first remote control system information, so as to transplant the first remote control system information into the local control system of the second remote control device. After notifying the first remote control device to shut down, pair with the host according to the first communication address information and the first remote control system information.

[0061] As an example, the first remote control device can send the first communication address information, the first remote control system information, and the generated information code to the second remote control device together. The second remote control device can verify the first communication address information and the first remote control system information according to the generated information code, so as to verify the security and integrity of the first communication address information, and the security and integrity of the first remote control system information. Among them, the generated information code can be a CRC (Cyclic Redundancy Check) check information code, or a hash value jointly corresponding to the first communication address information and the first remote control system information. If the verification passes, step B20 is executed; if the verification fails, the first remote control device is notified to resend the first communication address information, the first remote control system information, and the generated information code.

[0062] As an example, the step of verifying the first communication address information and the first remote control system information according to the generated information code includes:

[0063] According to the received first communication address information and first remote control system information, calculate the corresponding information code to obtain the second generated information code. If the second generated information code is consistent with the generated information code sent by the first remote control device, it is determined that the verification passes; if the second generated information code is inconsistent with the generated information code sent by the first remote control device, it is determined that the verification fails.

[0064] Wherein, before the step of receiving the first communication address information and first remote control system information sent by the first remote control device, the remote control device matching method further includes:

[0065] Step C10, pair with the first remote control device that also enables the data transfer mode, and determine whether the pairing with the first remote control device is successful;

[0066] Step C20, if the pairing is successful, execute the steps: receive the first communication address information and first remote control system information sent by the first remote control device.

[0067] As an example, steps C10 to C20 include:

[0068] By performing a handshake with the first remote control device, interact with the first remote control device to determine whether the data transfer mode has been enabled. If it is determined through interaction between the first remote control device and the second remote control device that the data transfer mode has been enabled, then pair with the first remote control device. If the pairing is successful, send a pairing success message to the first remote control device to notify the first remote control device that the pairing is successful, and execute the steps: receive the first communication address information and first remote control system information sent by the first remote control device.

[0069] Wherein, the step of pairing with the first remote control device that also enables the data transfer mode and determining whether the pairing with the first remote control device is successful includes:

[0070] Step C11, receive the data transfer signal sent by the first remote control device. If it is determined according to the data transfer signal that the first remote control device needs to perform data transfer, then generate a handshake command;

[0071] Step C12, send the handshake command to the second remote control device, where the handshake command is used for the first remote control device to verify the identity of the second remote control device;

[0072] Step C13, receive the first device information triggered and sent by the first remote control device after successful identity verification, and verify whether the first device information matches the second device information stored locally;

[0073] Step C14, if they match, determine that the pairing with the first remote control device is successful, and notify the first remote control device that the pairing is successful;

[0074] Step C15, if there is no match, it is determined that the pairing with the first remote control device is unsuccessful.

[0075] As an example, steps C11 to C15 include:

[0076] Receive the data transfer signal broadcast by the first remote control device, and detect whether the data transfer signal is consistent with the preset target data transfer signal stored locally. If the data transfer signal is inconsistent with the preset target data transfer signal stored locally, it is determined that the first remote control device does not need to perform data transfer; if the data transfer signal is consistent with the preset target data transfer signal stored locally, it is determined that the first remote control device needs to perform data transfer, and then a handshake command is generated and sent to the first remote control device for the first remote control device to determine whether the handshake command is consistent with the preset target handshake command. If the handshake command is inconsistent with the preset target handshake command, the first remote control device determines that the second remote control device is not a remote control device recognized by the first remote control device; if the handshake command is consistent with the preset target handshake command, the first remote control device determines that the second remote control device is a remote control device recognized by the first remote control device and sends the first device information to the second remote control device; the second remote control device receives the first device information sent by the first remote control device and detects whether the first device information is consistent with the second device information stored locally. If it is detected that the first device information and the second device information are inconsistent, it is determined that the pairing with the first remote control device fails; if it is detected that the first device information and the second device information are consistent, a matching success message is generated and it is determined that the pairing with the first remote control device is successful, and then the matching success message is sent to the first remote control device to notify the first remote control device that the pairing is successful.

[0077] Among them, the step of pairing with the corresponding host according to the first communication address information and the first remote control system information includes:

[0078] Step B21, send a shutdown command to the first remote control device, where the shutdown command is used to control the first remote control device to shut down;

[0079] Step B22, replace the second communication address information in the local remote control system with the first communication address information, and replace the second remote control system information in the local remote control system with the first remote control system information;

[0080] Step B23, pair with the host according to the first communication address information and the first remote control system information.

[0081] In this embodiment, it should be noted that since the second remote control device needs to communicate with the host based on the first communication address information, and usually only one device can use a communication address, before the second remote control device communicates with the host, the first remote control device needs to disconnect the communication with the host.

[0082] As an example, steps B21 to B23 include:

[0083] Send a shutdown command to the first remote control device for the first remote control device to shut down after receiving the shutdown command, so as to disconnect the communication between the first remote control device and the host; replace the second communication address information in the local remote control system with the first communication address information, and replace the second remote control system information in the local remote control system with the first remote control system information, so as to transplant the first remote control system information to the local remote control system; communicate with the host based on the first communication address information, and remotely control the host based on the first remote control system information on the basis of communicating according to the first communication address information.

[0084] The embodiment of the present application provides a method for matching remote control devices. After detecting the opening of the data transfer mode, the embodiment of the present application receives the first communication address information and the first remote control system information sent by the first remote control device; pairs with the corresponding host according to the first communication address information and the first remote control system information. The embodiment of the present application sets a data transfer mode in the remote control device, which can transplant the communication address information and the corresponding remote control system information corresponding to the old remote control device (the first remote control device) to the new remote control device (the second remote control device). Then, when the new remote control device pairs with the host, it can directly inherit the custom button information of the old remote control device without the user having to manually set it again, overcoming the technical defect that in the prior art, when a new remote control device pairs with the host, for some custom button information, it usually needs to manually set some custom button information again, which affects the pairing efficiency between the remote control device and the host, and improves the pairing efficiency between the remote control device and the host.

[0085] Embodiment Three

[0086] The embodiment of the present application further provides a remote control device matching device, which is applied to the first remote control device. The remote control device matching device includes:

[0087] An acquisition module, configured to acquire the first communication address information and the first remote control system information when detecting the opening of the data transfer mode;

[0088] A sending module, configured to send the first communication address information and the first remote control system information to a second remote control device, so that the second remote control device pairs with a host according to the first communication address information and the first remote control system information.

[0089] Optionally, the remote control device matching apparatus is further configured to:

[0090] Pair with a second remote control device that also enables the data transfer mode, and determine whether the pairing with the second remote control device is successful;

[0091] If the pairing is successful, execute the step of sending the first communication address information and the first remote control system information to the second remote control device.

[0092] Optionally, the remote control device matching apparatus is further configured to:

[0093] Start broadcasting a data transfer signal, so that the second remote control device determines whether the first remote control device needs to perform data transfer according to the received data transfer signal, and generate a handshake command after determining that the first remote control device needs to perform data transfer;

[0094] Receive the handshake command sent by the second remote control device, and verify the identity of the second remote control device according to the handshake command;

[0095] After successful verification, send first device information to the second remote control device, so that the second remote control device verifies whether the first device information matches the second device information stored locally;

[0096] If the matching success information sent by the second remote control device is detected, it is determined that the pairing with the second remote control device is successful.

[0097] Optionally, the remote control device matching apparatus is further configured to:

[0098] If a shutdown command sent by the second remote control device is received, perform shutdown to disconnect the communication with the host.

[0099] The remote control device matching apparatus provided by the present invention adopts the remote control device matching method in the above embodiment, and solves the technical problem of low pairing efficiency between the remote control device and the host. Compared with the prior art, the beneficial effects of the remote control device matching apparatus provided by the embodiment of the present invention are the same as those of the remote control device matching method provided by the above embodiment, and other technical features in the remote control device matching apparatus are the same as the features disclosed in the method of the above embodiment, and will not be elaborated herein.

[0100] Embodiment 4

[0101] An embodiment of the present application further provides a remote control device matching apparatus, which is applied to a second remote control device. The remote control device matching apparatus includes:

[0102] A receiving module, configured to receive first communication address information and first remote control system information sent by a first remote control device when detecting that the data transfer mode is enabled;

[0103] A pairing module, configured to pair with a corresponding host according to the first communication address information and the first remote control system information.

[0104] Optionally, the remote control device matching apparatus is further configured to:

[0105] Pair with the first remote control device that also enables the data transfer mode, and determine whether the pairing with the first remote control device is successful;

[0106] If the pairing is successful, execute the steps: receive the first communication address information and the first remote control system information sent by the first remote control device.

[0107] Optionally, the remote control device matching apparatus is further configured to:

[0108] Receive a data transfer signal sent by the first remote control device. If it is determined according to the data transfer signal that the first remote control device needs to perform data transfer, generate a handshake command;

[0109] Send the handshake command to the second remote control device, where the handshake command is used for the first remote control device to verify the identity of the second remote control device;

[0110] Receive first device information triggered and sent by the first remote control device after successful identity verification, and verify whether the first device information matches the second device information stored locally;

[0111] If they match, determine that the pairing with the first remote control device is successful, and notify the first remote control device that the pairing is successful;

[0112] If they do not match, determine that the pairing with the first remote control device is unsuccessful.

[0113] Optionally, the pairing module is further configured to:

[0114] Send a shutdown command to the first remote control device, where the shutdown command is used to control the first remote control device to shut down;

[0115] Replace the second communication address information in the local remote control system with the first communication address information, and replace the second remote control system information in the local remote control system with the first remote control system information;

[0116] Pair with the host according to the first communication address information and the first remote control system information.

[0117] The remote control device matching apparatus provided by the present invention adopts the remote control device matching method in the above embodiment, and solves the technical problem of low pairing efficiency between the remote control device and the host. Compared with the prior art, the beneficial effects of the remote control device matching apparatus provided by the embodiments of the present invention are the same as those of the remote control device matching method provided by the above embodiment, and other technical features in the remote control device matching apparatus are the same as the features disclosed in the method of the above embodiment, and will not be described in detail herein.

[0118] Embodiment Five

[0119] An embodiment of the present invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the remote control device matching method in the first embodiment above.

[0120] Refer to the following Figure 3 , which shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example, and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.

[0121] As Figure 3 shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, the ROM, and the RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.

[0122] Typically, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, magnetic tape, a hard disk, etc.; and a communication device. The communication device can allow the electronic device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows an electronic device having various systems, it should be understood that it is not required to implement or have all the shown systems. Instead, more or fewer systems can be implemented or had.

[0123] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device, or installed from the storage device, or installed from the ROM. When the computer program is executed by the processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0124] The electronic device provided by the present invention adopts the remote control device matching method in the above embodiment, and solves the technical problem of low pairing efficiency between the remote control device and the host. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as those of the remote control device matching method provided by the above embodiment, and other technical features in the electronic device are the same as those disclosed in the above embodiment method, which will not be elaborated here.

[0125] It should be understood that each part of the present disclosure can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.

[0126] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

[0127] Embodiment Six

[0128] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for executing the remote control device matching method in the first embodiment above.

[0129] The computer-readable storage medium provided by the embodiment of the present invention can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, device, or component. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0130] The above computer-readable storage medium can be included in an electronic device; or it can exist separately without being assembled into the electronic device.

[0131] The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by an electronic device, the electronic device: after detecting the activation of the data transfer mode, obtains the first communication address information and the first remote control system information; and sends the first communication address information and the first remote control system information to a second remote control device for the second remote control device to pair with a host according to the first communication address information and the first remote control system information.

[0132] Or after detecting the activation of the data transfer mode, receives the first communication address information and the first remote control system information sent by a first remote control device; and pairs with the corresponding host according to the first communication address information and the first remote control system information.

[0133] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0134] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0135] The modules described in the embodiments of the present disclosure may be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the unit itself.

[0136] The computer-readable storage medium provided by the present invention stores computer-readable program instructions for performing the above-mentioned remote control device matching method, and solves the technical problem of low pairing efficiency between the remote control device and the host. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiments of the present invention are the same as those of the remote control device matching method provided by the above embodiments, and will not be elaborated herein.

[0137] Embodiment Seven

[0138] The present application also provides a computer program product, including a computer program which, when executed by a processor, implements the steps of the remote control device matching method as described above.

[0139] The computer program product provided by the present application solves the technical problem of low pairing efficiency between the remote control device and the host. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiments of the present invention are the same as those of the remote control device matching method provided by the above embodiments, and will not be elaborated herein.

[0140] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent scope of the present application.

Claims

1. A method for matching a remote control device, characterized in that, Applied to a first remote control device, the remote control device matching method includes: After detecting the activation of the data transfer mode, obtain the first communication address information and the first remote control system information, where the first remote control system information includes custom button information, and the first remote control device communicates with the host relying on the first communication address information; Pair with a second remote control device that also activates the data transfer mode, and determine whether the pairing with the second remote control device is successful; If the pairing is successful, send the first communication address information and the first remote control system information to the second remote control device, so that the second remote control device replaces the second communication address information in the local control system with the first communication address information, and replaces the second remote control system information in the local control system with the first remote control system information, and communicates with the host according to the first communication address information and remotely controls the host according to the first remote control system information.

2. The remote control device matching method according to claim 1, wherein, The step of pairing with a second remote control device that also activates the data transfer mode and determining whether the pairing with the second remote control device is successful includes: Start broadcasting a data transfer signal, so that the second remote control device determines whether the first remote control device needs to perform data transfer according to the received data transfer signal, and generates a handshake command after determining that the first remote control device needs to perform data transfer; Receive the handshake command sent by the second remote control device, and verify the identity of the second remote control device according to the handshake command; After successful verification, send the first device information to the second remote control device, so that the second remote control device verifies whether the first device information matches the second device information stored locally; If the matching success information sent by the second remote control device is detected, determine that the pairing with the second remote control device is successful.

3. The remote control device matching method according to claim 1, characterized in that, After the step of sending the first communication address information and the first remote control system information to the second remote control device, the remote control device matching method: If a shutdown command sent by the second remote control device is received, perform shutdown to disconnect the communication with the host.

4. A method for remote control device matching, characterized in that, Applied to a second remote control device, the remote control device matching method includes: After detecting the activation of the data transfer mode, pair with a first remote control device that also activates the data transfer mode, and determine whether the pairing with the first remote control device is successful; If the pairing is successful, receive the first communication address information and the first remote control system information sent by the first remote control device, where the first remote control system information includes custom button information; Replace the second communication address information in the local control system with the first communication address information, and replace the second remote control system information in the local control system with the first remote control system information; Communicate with the host according to the first communication address information and remotely control the host according to the first remote control system information.

5. The remote control device matching method according to claim 4, wherein, The step of pairing with a first remote control device that also activates the data transfer mode and determining whether the pairing with the first remote control device is successful includes: Receive the data transfer signal sent by the first remote control device. If it is determined according to the data transfer signal that the first remote control device needs to perform data transfer, generate a handshake command. Send the handshake command to the second remote control device, where the handshake command is used for the first remote control device to verify the identity of the second remote control device. Receive the first device information triggered and sent by the first remote control device after successful identity verification, and verify whether the first device information matches the second device information stored locally. If they match, determine that the pairing with the first remote control device is successful, and notify the first remote control device that the pairing is successful. If they do not match, determine that the pairing with the first remote control device is unsuccessful.

6. The remote control device matching method according to claim 4, wherein The step of pairing with the corresponding host according to the first communication address information and the first remote control system information includes: Send a shutdown command to the first remote control device, where the shutdown command is used to control the first remote control device to shut down. Replace the second communication address information in the local remote control system with the first communication address information, and replace the second remote control system information in the local remote control system with the first remote control system information. Pair with the host according to the first communication address information and the first remote control system information.

7. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; where The memory stores instructions executable by the at least one processor. The instructions are executed by the at least one processor so that the at least one processor can execute the steps of the remote control device matching method according to any one of claims 1 to 3 or 4 to 6.

8. A computer-readable storage medium, characterized in that, A program for implementing the remote control device matching method is stored on the computer-readable storage medium. The program for implementing the remote control device matching method is executed by the processor to implement the steps of the remote control device matching method according to any one of claims 1 to 3 or 4 to 6.

Citation Information

Patent Citations

  • Remote control method and device

    CN113034886A