CN114283573A - Equipment control method and device, electronic equipment and storage medium - Google Patents

Equipment control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114283573A
CN114283573A CN202111581069.4A CN202111581069A CN114283573A CN 114283573 A CN114283573 A CN 114283573A CN 202111581069 A CN202111581069 A CN 202111581069A CN 114283573 A CN114283573 A CN 114283573A
Authority
CN
China
Prior art keywords
remote control
control device
detected
trigger event
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111581069.4A
Other languages
Chinese (zh)
Inventor
欧阳耀锦
王沅召
甄志坚
宋德超
李绍斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111581069.4A priority Critical patent/CN114283573A/en
Publication of CN114283573A publication Critical patent/CN114283573A/en
Priority to PCT/CN2022/123511 priority patent/WO2023116118A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0431Key distribution or pre-distribution; Key agreement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/40Security arrangements using identity modules
    • H04W12/47Security arrangements using identity modules using near field communication [NFC] or radio frequency identification [RFID] modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention relates to a device control method, a device, an electronic device and a storage medium, wherein the device control method is applied to a first remote control device and comprises the following steps: determining whether a first trigger event is detected; if a first trigger event is detected, acquiring a control key, wherein the control key is a certificate for controlling at least one controlled device; and controlling the NFC module to start an active mode to transmit an NFC radio frequency field, and writing a control key into the second remote control device through the NFC radio frequency field. According to the embodiment of the invention, when the first trigger event is detected, the control key is sent to the second remote control device in an NFC mode, namely, the control right of at least one controlled device is transferred to the second remote control device, the second remote control device can control the controlled device in an infrared remote control signal transmitting mode by using the control key, and the second remote control device can control the controlled device without the need of a user to carry out operations such as distribution network authorization and the like on the second remote control device which is transferred with the control right, so that the second remote control device can control the controlled device, the operation is simple, and the use by the user is convenient.

Description

Equipment control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic information technologies, and in particular, to a device control method and apparatus, an electronic device, and a storage medium.
Background
In the smart home industry, remote controllers come in a variety of forms. The magic cube has the appearance like a magic stick, equipment can be controlled by swinging the magic stick, and the magic cube is placed on different surfaces to realize switching of family scenes. Wherein the magic wand can be said to be a novel remote control device closest to the conventional remote controller.
If a family has a magic stick, several family members want to control the intelligent household equipment through the magic stick, or if the currently used magic stick is insufficient in electric quantity or has a fault, other magic sticks are needed to be used for controlling the equipment, then the later used magic stick needs to be newly distributed with a network so that the magic stick can have the control right for the intelligent equipment of the family, and the operation is very complicated, so that the intelligent household equipment is not beneficial to use by users.
Disclosure of Invention
In order to solve the technical problems that the magic wand used later needs to be newly distributed with a network to enable the magic wand to have the control right for the intelligent equipment of the family, the operation is very complicated, and the use by a user is not facilitated, the application provides an equipment control method, an apparatus, electronic equipment and a storage medium.
In a first aspect, the present application provides a device control method, applied to a first remote control device, including:
determining whether a first triggering event is detected, wherein the first triggering event is used for indicating transfer of control right of at least one controlled device;
if the first trigger event is detected, acquiring a control key, wherein the control key is a certificate for controlling at least one controlled device;
and controlling the NFC module to start an active mode to transmit an NFC radio frequency field, and writing a control key into the second remote control device through the NFC radio frequency field.
Optionally, the method further comprises:
determining whether a second trigger event is detected, wherein the second trigger event is used for indicating that the control right of at least one controlled device is received;
if the second trigger event is detected, controlling the NFC module to start a passive mode and write a control key into the NFC module, wherein the control key is a certificate for controlling at least one controlled device;
and storing the control key for use in controlling at least one controlled device.
Optionally, determining whether the first trigger event is detected comprises:
acquiring a first residual electric quantity of a power supply module of the first remote control device;
and if the first residual electric quantity is smaller than a preset first electric quantity threshold value, determining that the first trigger event is detected.
Optionally, determining whether the first trigger event is detected comprises:
acquiring a second residual capacity of a power supply module of the first remote control device;
if the second remaining electric quantity is smaller than a preset second electric quantity threshold value, sending first prompt information, wherein the first prompt information is used for indicating that the electric quantity is insufficient;
and if the third remaining electric quantity of the power module of the first remote control device is smaller than a preset third electric quantity threshold value after the preset duration sent by the first prompt message, and the preset third electric quantity threshold value is smaller than the preset second electric quantity threshold value, determining that the first trigger event is detected.
Optionally, determining whether the first trigger event is detected comprises:
acquiring fault information of the first remote control device;
and if it is determined that the first remote control device has a preset type of fault based on the fault information, the preset type of fault is that at least one controlled device cannot be controlled, and it is determined that the first trigger event is detected.
Optionally, the method further comprises:
receiving configuration information sent by a user terminal, wherein the configuration information is used for indicating that the first remote control device is a master remote control device or a guest remote control device;
if the configuration information is used for indicating that the first remote control device is a main remote control device, sending a key acquisition request to the user terminal;
and receiving a control key returned by the user terminal in response to the key acquisition request.
Optionally, the method further comprises:
determining whether the device is a main remote control device;
if the device is the main remote control device, executing a step of determining whether a first trigger event is detected;
and if the device is the guest remote control device, executing the step of determining whether a second trigger event is detected.
In a second aspect, the present application provides a device control apparatus, applied to a first remote control device, including:
the device comprises a detection determining module, a judging module and a judging module, wherein the detection determining module is used for determining whether a first triggering event is detected, and the first triggering event is used for indicating transfer of control right of at least one controlled device;
a key obtaining module, configured to obtain a control key if the first trigger event is detected, where the control key is a credential for controlling at least one controlled device;
and the device control module is used for controlling the NFC module to start an active mode to emit an NFC radio frequency field, and writing a control key into the second remote control device through the NFC radio frequency field.
Optionally, the apparatus further comprises:
the event determining module is used for determining whether a second triggering event is detected, wherein the second triggering event is used for indicating that the control right of at least one controlled device is received;
the control module is used for controlling the NFC module to start a passive mode and write a control key into the NFC module if the second trigger event is detected, wherein the control key is a certificate for controlling at least one controlled device;
and the storage module is used for storing the control key for controlling at least one controlled device.
Optionally, the detection determining module includes:
the first electric quantity obtaining unit is used for obtaining a first residual electric quantity of a power supply module of the first remote control device;
the first determining unit is configured to determine that the first trigger event is detected if the first remaining power is smaller than a preset first power threshold.
Optionally, the detection determining module includes:
the second electric quantity obtaining unit is used for obtaining a second residual electric quantity of the power supply module of the first remote control device;
the prompting unit is used for sending first prompting information if the second residual electric quantity is smaller than a preset second electric quantity threshold value, and the first prompting information is used for indicating that the electric quantity is insufficient;
and the second determining unit is used for determining that the first trigger event is detected if the third remaining electric quantity of the power module of the first remote control device is smaller than a preset third electric quantity threshold value after the preset duration sent by the first prompt message, and the preset third electric quantity threshold value is smaller than the preset second electric quantity threshold value.
Optionally, the detection determining module includes:
the information acquisition unit is used for acquiring the fault information of the first remote control equipment;
a third determining unit, configured to determine that the first trigger event is detected if it is determined that the first remote control device has a preset type of fault based on the fault information, where the preset type of fault is that at least one controlled device cannot be controlled.
Optionally, the apparatus further comprises:
the information receiving module is used for receiving configuration information sent by a user terminal, wherein the configuration information is used for indicating that the first remote control equipment is master remote control equipment or guest remote control equipment;
a request sending module, configured to send a key acquisition request to the user terminal if the configuration information is used to indicate that the first remote control device is a master remote control device;
and the key receiving module is used for receiving the control key returned by the user terminal in response to the key acquisition request.
Optionally, the apparatus further comprises:
the device determining module is used for determining whether the device is a main remote control device;
the first execution module is used for executing the step of determining whether the first trigger event is detected or not if the first execution module is the main remote control equipment;
and the second execution module is used for executing the step of determining whether the second trigger event is detected or not if the second execution module is the guest remote control device.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor configured to implement the apparatus control method according to any one of the first aspect when executing a program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a program of an apparatus control method, which when executed by a processor, implements the steps of the apparatus control method of any one of the first aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the embodiment of the invention can firstly determine whether a first trigger event is detected, wherein the first trigger event is used for indicating the transfer of the control right of at least one controlled device, if the first trigger event is detected, a control key is obtained, the control key is a certificate for controlling the at least one controlled device, and finally, the NFC module can be controlled to start an active mode to emit an NFC radio frequency field, and the control key is written into a second remote control device through the NFC radio frequency field.
According to the embodiment of the invention, when the first trigger event is detected, the control key is sent to the second remote control device in an NFC mode, namely, the control right of at least one controlled device is transferred to the second remote control device, the second remote control device can control the controlled device in an infrared remote control signal transmitting mode by using the control key, and the second remote control device can control the controlled device without the need of a user to carry out operations such as distribution network authorization and the like on the second remote control device which is transferred with the control right, so that the second remote control device can control the controlled device, the operation is simple, and the use by the user is convenient.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of an apparatus control method according to an embodiment of the present disclosure;
fig. 2 is a structural diagram of an apparatus control device according to an embodiment of the present application;
fig. 3 is a structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Because in a family, several family members all possess a magic stick, all want to pass through magic stick control intelligent household equipment, perhaps, the magic stick electric quantity that uses at present is not enough or the trouble, needs to use other magic sticks to carry out the control of equipment, and the magic stick that uses later then need join in marriage the net again and just can make the magic stick possess the right of control to the smart machine of this family, and the operation is very loaded down with trivial details, is unfavorable for the user to use. To this end, an embodiment of the present application provides a device control method, an apparatus, an electronic device, and a storage medium, where the device control method may be applied to any remote control device, where the remote control device may include an infrared module, that is, the remote control device may be an infrared remote controller, and the remote control device may control a controlled device in an infrared signal manner, and in order to facilitate information exchange with other remote control devices, the remote control device may further include an NFC module, and the like, for example: the remote control device can control at least one controlled device, the controlled device can be intelligent household equipment and the like, and the remote control device is communicated with the user terminal to transmit control information and the like.
As shown in fig. 1, the device control method may be applied to a first remote control device that may exchange information with a second remote control device through an NFC module. The device control method may include the steps of:
step S101, it is determined whether a first trigger event is detected.
In this embodiment of the present invention, the first trigger event is used to instruct transfer of control right to at least one controlled device. In practical application, the first remote control device generates a first trigger event when it is required to transfer a control right to at least one controlled device as a master remote control device. In practical application, the user can actively trigger the trigger, such as: and triggering a button and the like to determine that the control right of at least one controlled device needs to be transferred, and triggering to generate a first triggering event.
Step S102, if the first trigger event is detected, a control key is obtained.
In the embodiment of the present invention, the control key is a credential for controlling at least one controlled device. In practical application, the control key is sent to the first remote control device by the user terminal in advance when the first remote control device is the master remote control device, and the received control key can be regarded as that the user authorizes the first remote control device to have the control right of all controlled devices bound with the user.
The first remote control device stores the control key after receiving the control key, encrypts the control command input by the user by using the control key when the user wants to send the control command to at least one controlled device, and then sends the encrypted control command to at least one controlled device.
And step S103, controlling the NFC module to start an active mode to emit an NFC radio frequency field, and writing a control key into the second remote control device through the NFC radio frequency field.
In the embodiment of the invention, when the NFC module starts the active mode, the NFC module transmits the control key to the second remote control device in a mode of transmitting an NFC radio frequency field and transmits the control right to the guest remote control device.
The embodiment of the invention can firstly determine whether a first trigger event is detected, wherein the first trigger event is used for indicating the transfer of the control right of at least one controlled device, if the first trigger event is detected, a control key is obtained, the control key is a certificate for controlling the at least one controlled device, and finally, the NFC module can be controlled to start an active mode to emit an NFC radio frequency field, and the control key is written into a second remote control device through the NFC radio frequency field.
According to the embodiment of the invention, when the first trigger event is detected, the control key is sent to the second remote control device in an NFC mode, namely, the control right of at least one controlled device is transferred to the second remote control device, the second remote control device can control the controlled device in an infrared remote control signal transmitting mode by using the control key, and the second remote control device can control the controlled device without the need of a user to carry out operations such as distribution network authorization and the like on the second remote control device which is transferred with the control right, so that the second remote control device can control the controlled device, the operation is simple, and the use by the user is convenient.
In yet another embodiment of the present invention, the method further comprises:
step 201, it is determined whether a second triggering event is detected.
In this embodiment of the present invention, the second trigger event is used to indicate that the control right of at least one controlled device is received; in practical application, the first remote control device generates a second trigger event when the first remote control device is used as a guest remote control device and needs to receive the control right of at least one controlled device. In practical application, a user may determine that the control right of the at least one controlled device needs to be received by means of a trigger button or the like, and trigger generation of a second trigger event.
Step 202, if the second trigger event is detected, controlling the NFC module to start the passive mode and write the control key.
In the embodiment of the invention, when the NFC module starts the passive mode, the NFC module passively responds that the NFC radio frequency field is written into the control key.
In the embodiment of the invention, the control key is a certificate for controlling at least one controlled device; in practice, it may be determined that the control right handed over from the master remote control device is received when the first remote control device receives the control key as a guest remote control device, and thereafter the first remote control device as a guest remote control device has control right to all controlled devices bound to the user.
The first remote control device serving as the guest remote control device stores the control key after receiving the control key, decrypts the control instruction input by the user by using the control key when the user wants to send the control instruction to the at least one controlled device, and then sends the decrypted control instruction to the at least one controlled device.
Step 203, storing the control key for use in controlling at least one controlled device.
In practical application, in order to ensure security, if the guest remote control device is previously bound to other user accounts for the distribution network, the guest remote control device cannot continue to control the controlled device previously bound to the user account after receiving the control right of the master remote control device.
The embodiment of the invention can receive the control key when the first remote control device is used as the guest remote control device and the second trigger event is detected, so that the control key can be conveniently used for controlling the controlled device, a user does not need to manually carry out network distribution on the first remote control device, and the controlled device is controlled by receiving and realizing.
In yet another embodiment of the present invention, the step S101 of determining whether the first trigger event is detected includes:
step 301, acquiring a first remaining capacity of a power module of the first remote control device;
in practical application, the triggering can be realized in a passive triggering mode, such as: and determining that the master remote control device needs to transfer the control right to at least one controlled device in the mode of insufficient residual power, and triggering to generate a first trigger event. Therefore, in this step, the first remaining capacity of the power supply module can be acquired.
Step 302, if the first remaining power is less than a preset first power threshold, it is determined that the first trigger event is detected.
According to the embodiment of the invention, the master remote control equipment transfer control right is triggered through insufficient electric quantity, so that the control right can be transferred to the guest remote control equipment in time when the electric quantity of the master remote control equipment is insufficient, a user always has available remote control equipment, the situation that the controlled equipment cannot be controlled due to insufficient electric quantity of the remote control equipment is avoided, and the use by the user is facilitated.
In yet another embodiment of the present invention, the step S101 of determining whether the first trigger event is detected includes:
step 401, acquiring a second remaining capacity of a power module of the first remote control device;
in practical application, the triggering can be realized in a passive triggering mode, such as: and determining that the master remote control device needs to transfer the control right to at least one controlled device in the mode of insufficient residual power, and triggering to generate a first trigger event. Therefore, in this step, the second remaining capacity of the power supply module can be acquired.
Step 402, if the second remaining power is smaller than a preset second power threshold, sending a first prompt message.
In the embodiment of the invention, the first prompt message is used for indicating that the electric quantity is insufficient; in practical application, can send first prompt message to user terminal, when the user knows that the remote control equipment electric quantity is not enough, can in time charge or change battery etc. to remote control equipment.
Step 403, determining that the first trigger event is detected if a third remaining power of the power module of the first remote control device is less than a preset third power threshold after a preset duration that the first prompt message is sent.
In an embodiment of the present invention, the preset third electric quantity threshold is smaller than the preset second electric quantity threshold.
If the user does not supplement the electric energy to the remote control device in time, the third remaining electric quantity of the power supply module is obtained again, the third remaining electric quantity can be compared with a preset third electric quantity threshold value, and when the third remaining electric quantity changes, the first trigger event is determined to be detected.
Such as: when the electric quantity of the main remote control equipment is lower than 10%, the main remote control equipment sends an electric quantity shortage prompt to a user terminal (APP) to remind a user of charging, if the user does not charge, when the electric quantity is lower than 5%, the main remote control equipment determines that the control right needs to be handed over.
In practical applications, a user may have multiple remote control devices in the home, and different remote control function devices may have different priorities, such as: the master remote control device is used for determining priority levels of the master remote control devices, namely the master remote control devices inherit the control rights, and the master remote control device is granted to the guest remote control device which inherits the control rights first according to the inheritance sequence of the guest remote control devices, then the user is informed that the master remote control device has changed the authority levels and the electric quantity is less than 5%, and if no guest remote control device exists, the user is informed that the electric quantity is less than 5% to prepare for shutdown.
The embodiment of the invention triggers the master remote control equipment to transfer the control right through two times of electricity shortage, can reserve time for replenishing electricity to the remote control equipment for users, and transfers the control right to the guest remote control equipment in time when finally determining that the electricity shortage of the master remote control equipment exists, so that the users always have available remote control equipment, the situation that the controlled equipment cannot be controlled due to the electricity shortage of the remote control equipment does not exist, and the use of the users is convenient.
In yet another embodiment of the present invention, the step S101 of determining whether the first trigger event is detected includes:
step 501, acquiring fault information of the first remote control device;
step 502, if it is determined that the first remote control device has a fault of a preset type based on the fault information.
In this embodiment of the present invention, the preset type of fault is that at least one controlled device cannot be controlled, and it is determined that the first trigger event is detected.
In the embodiment of the invention, when the first remote control device has a fault, if the fault is the network disconnection, when the APP detects that the main remote control device is disconnected, the APP prompts a user to re-distribute the network or selects one of a plurality of guest remote control devices as the main remote control device, and after the user performs corresponding operation, the first trigger event is determined to be detected.
If the fault is control failure or button failure or NFC fault, the fault can be discovered through self-checking of the master remote control device, then a user is informed of the fault of the master remote control device, the master remote control device is transferred to the guest remote control device and then powered off, and if the guest remote control device does not exist, the power off is carried out.
According to the embodiment of the invention, the master remote control equipment is triggered to transfer the control right to the guest remote control equipment in time when the remote control equipment fails, so that a user always has available remote control equipment, the situation that the controlled equipment cannot be controlled due to insufficient electric quantity of the remote control equipment is avoided, and the use by the user is facilitated.
In yet another embodiment of the present invention, the method further comprises:
step 601, receiving configuration information sent by a user terminal.
In this embodiment of the present invention, the configuration information is used to indicate that the first remote control device is a master remote control device or a guest remote control device;
in practical application, a user can switch whether the remote control device is the master remote control device or the guest remote control device through the APP of the user terminal, and the APP can also control each controlled device, such as: and binding each controlled device, and controlling each controlled device to correctly respond to the control instruction only when receiving the control instruction encrypted by using the control key, and the like.
In practical application, when a user logs in the APP of the user terminal for the first time, the APP can automatically generate a private key according to information such as a user account and the like by using a symmetric encryption algorithm, and the private key is sent to each bound controlled device, so that the controlled device decrypts a control instruction encrypted by using the control key by using the private key.
In practical application, the APP of the user terminal can be used for a network distribution of the first remote control device, and the network distribution mode includes but is not limited to a WiFi network distribution and a Bluetooth network distribution. After the network is distributed, the first remote control device can be bound with the user account, so that the first remote control device can control the controlled device bound with the user account.
Step 602, if the configuration information is used to indicate that the first remote control device is a master remote control device, sending a key acquisition request to the user terminal;
step 603, receiving the control key returned by the user terminal in response to the key obtaining request.
The embodiment of the invention can receive the configuration information of the user terminal, and set the user terminal as the master remote control device or the guest remote control device according to the configuration information so as to determine outward transfer of the control right or receive the transferred control right.
In yet another embodiment of the present invention, the method further comprises:
step 701, determining whether the device is a master remote control device;
step 702, if the device is a master remote control device, executing a step of determining whether a first trigger event is detected;
and 703, if the device is a guest remote control device, executing the step of determining whether a second trigger event is detected.
The embodiment of the invention can selectively execute the embodiment of determining whether the first trigger event is detected or not or the embodiment of determining whether the second trigger event is detected or not according to whether the device is the master remote control device or the guest remote control device.
In another embodiment of the present invention, there is also provided a device control apparatus applied to a first remote control device, as shown in fig. 2, including:
the detection determining module 11 is configured to determine whether a first trigger event is detected, where the first trigger event is used to instruct transfer of control right to at least one controlled device;
a key obtaining module 12, configured to obtain a control key if the first trigger event is detected, where the control key is a credential for controlling at least one controlled device;
and the device control module 13 is configured to control the NFC module to start an active mode to transmit an NFC radio frequency field, and write a control key into the second remote control device through the NFC radio frequency field.
Optionally, the apparatus further comprises:
the event determining module is used for determining whether a second triggering event is detected, wherein the second triggering event is used for indicating that the control right of at least one controlled device is received;
the control module is used for controlling the NFC module to start a passive mode and write a control key into the NFC module if the second trigger event is detected, wherein the control key is a certificate for controlling at least one controlled device;
and the storage module is used for storing the control key for controlling at least one controlled device.
Optionally, the detection determining module includes:
the first electric quantity obtaining unit is used for obtaining a first residual electric quantity of a power supply module of the first remote control device;
the first determining unit is configured to determine that the first trigger event is detected if the first remaining power is smaller than a preset first power threshold.
Optionally, the detection determining module includes:
the second electric quantity obtaining unit is used for obtaining a second residual electric quantity of the power supply module of the first remote control device;
the prompting unit is used for sending first prompting information if the second residual electric quantity is smaller than a preset second electric quantity threshold value, and the first prompting information is used for indicating that the electric quantity is insufficient;
and the second determining unit is used for determining that the first trigger event is detected if the third remaining electric quantity of the power module of the first remote control device is smaller than a preset third electric quantity threshold value after the preset duration sent by the first prompt message, and the preset third electric quantity threshold value is smaller than the preset second electric quantity threshold value.
Optionally, the detection determining module includes:
the information acquisition unit is used for acquiring the fault information of the first remote control equipment;
a third determining unit, configured to determine that the first trigger event is detected if it is determined that the first remote control device has a preset type of fault based on the fault information, where the preset type of fault is that at least one controlled device cannot be controlled.
Optionally, the apparatus further comprises:
the information receiving module is used for receiving configuration information sent by a user terminal, wherein the configuration information is used for indicating that the first remote control equipment is master remote control equipment or guest remote control equipment;
a request sending module, configured to send a key acquisition request to the user terminal if the configuration information is used to indicate that the first remote control device is a master remote control device;
and the key receiving module is used for receiving the control key returned by the user terminal in response to the key acquisition request.
Optionally, the apparatus further comprises:
the device determining module is used for determining whether the device is a main remote control device;
the first execution module is used for executing the step of determining whether the first trigger event is detected or not if the first execution module is the main remote control equipment;
and the second execution module is used for executing the step of determining whether the second trigger event is detected or not if the second execution module is the guest remote control device.
In another embodiment of the present invention, an electronic device is further provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the equipment control method of any one of the method embodiments when executing the program stored in the memory.
In the electronic device provided in the embodiment of the present invention, the processor implements, by executing the program stored in the memory, determining whether a first trigger event is detected first, where the first trigger event is used to indicate that a control right to at least one controlled device is to be transferred, and if the first trigger event is detected, acquiring a control key, where the control key is a credential for controlling the at least one controlled device, and finally controlling the NFC module to start an active mode to transmit an NFC radio frequency field, and writing the control key into a second remote control device through the NFC radio frequency field.
According to the embodiment of the invention, when the first trigger event is detected, the control key is sent to the second remote control device in an NFC mode, namely, the control right of at least one controlled device is transferred to the second remote control device, the second remote control device can control the controlled device in an infrared remote control signal transmitting mode by using the control key, and the second remote control device can control the controlled device without the need of a user to carry out operations such as distribution network authorization and the like on the second remote control device which is transferred with the control right, so that the second remote control device can control the controlled device, the operation is simple, and the use by the user is convenient.
The communication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices.
The memory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The processor 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon a program of a device control method, which when executed by a processor, implements the steps of the device control method of any of the preceding method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A device control method applied to a first remote control device includes:
determining whether a first triggering event is detected, wherein the first triggering event is used for indicating transfer of control right of at least one controlled device;
if the first trigger event is detected, acquiring a control key, wherein the control key is a certificate for controlling at least one controlled device;
and controlling the NFC module to start an active mode to transmit an NFC radio frequency field, and writing a control key into the second remote control device through the NFC radio frequency field.
2. The apparatus control method according to claim 1, characterized in that the method further comprises:
determining whether a second trigger event is detected, wherein the second trigger event is used for indicating that the control right of at least one controlled device is received;
if the second trigger event is detected, controlling the NFC module to start a passive mode and write a control key into the NFC module, wherein the control key is a certificate for controlling at least one controlled device;
and storing the control key for use in controlling at least one controlled device.
3. The device control method of claim 1, wherein determining whether the first trigger event is detected comprises:
acquiring a first residual electric quantity of a power supply module of the first remote control device;
and if the first residual electric quantity is smaller than a preset first electric quantity threshold value, determining that the first trigger event is detected.
4. The device control method of claim 1, wherein determining whether the first trigger event is detected comprises:
acquiring a second residual capacity of a power supply module of the first remote control device;
if the second remaining electric quantity is smaller than a preset second electric quantity threshold value, sending first prompt information, wherein the first prompt information is used for indicating that the electric quantity is insufficient;
and if the third remaining electric quantity of the power module of the first remote control device is smaller than a preset third electric quantity threshold value after the preset duration sent by the first prompt message, and the preset third electric quantity threshold value is smaller than the preset second electric quantity threshold value, determining that the first trigger event is detected.
5. The device control method of claim 1, wherein determining whether the first trigger event is detected comprises:
acquiring fault information of the first remote control device;
and if it is determined that the first remote control device has a preset type of fault based on the fault information, the preset type of fault is that at least one controlled device cannot be controlled, and it is determined that the first trigger event is detected.
6. The apparatus control method according to claim 1, characterized in that the method further comprises:
receiving configuration information sent by a user terminal, wherein the configuration information is used for indicating that the first remote control device is a master remote control device or a guest remote control device;
if the configuration information is used for indicating that the first remote control device is a main remote control device, sending a key acquisition request to the user terminal;
and receiving a control key returned by the user terminal in response to the key acquisition request.
7. The apparatus control method according to claim 1, characterized in that the method further comprises:
determining whether the device is a main remote control device;
if the device is the main remote control device, executing a step of determining whether a first trigger event is detected;
and if the device is the guest remote control device, executing the step of determining whether a second trigger event is detected.
8. An apparatus control device, applied to a first remote control apparatus, comprising:
the device comprises a detection determining module, a judging module and a judging module, wherein the detection determining module is used for determining whether a first triggering event is detected, and the first triggering event is used for indicating transfer of control right of at least one controlled device;
a key obtaining module, configured to obtain a control key if the first trigger event is detected, where the control key is a credential for controlling at least one controlled device;
and the device control module is used for controlling the NFC module to start an active mode to emit an NFC radio frequency field, and writing a control key into the second remote control device through the NFC radio frequency field.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of controlling an apparatus according to any one of claims 1 to 7 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a program of a device control method is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the device control method of any one of claims 1 to 7.
CN202111581069.4A 2021-12-22 2021-12-22 Equipment control method and device, electronic equipment and storage medium Pending CN114283573A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111581069.4A CN114283573A (en) 2021-12-22 2021-12-22 Equipment control method and device, electronic equipment and storage medium
PCT/CN2022/123511 WO2023116118A1 (en) 2021-12-22 2022-09-30 Device control method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111581069.4A CN114283573A (en) 2021-12-22 2021-12-22 Equipment control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114283573A true CN114283573A (en) 2022-04-05

Family

ID=80873772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111581069.4A Pending CN114283573A (en) 2021-12-22 2021-12-22 Equipment control method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114283573A (en)
WO (1) WO2023116118A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116118A1 (en) * 2021-12-22 2023-06-29 珠海格力电器股份有限公司 Device control method and apparatus, electronic device, and storage medium
CN115134764B (en) * 2022-05-27 2024-06-04 阿里云计算有限公司 Bluetooth-based communication method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105070004A (en) * 2015-07-15 2015-11-18 泰凌微电子(上海)有限公司 Intelligent equipment, as well as remote control system and remote control pairing method of intelligent equipment
CN105629744A (en) * 2015-04-30 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Control method of smart home, control system, terminal and smart home system
CN105955295A (en) * 2016-05-27 2016-09-21 北京小米移动软件有限公司 Unmanned plane control method and unmanned plane control device
CN107395751A (en) * 2017-08-23 2017-11-24 绵阳美菱软件技术有限公司 A kind of remote control system of intelligent household electrical appliance and method
CN108337253A (en) * 2018-01-29 2018-07-27 苏州南尔材料科技有限公司 A kind of computer based intelligent electrical appliance control
CN109017676A (en) * 2018-07-23 2018-12-18 奇瑞汽车股份有限公司 Control method for vehicle, device and storage medium
CN109941227A (en) * 2019-04-12 2019-06-28 余永昌 A kind of auto burglar alarm remote controler
CN112950844A (en) * 2021-04-29 2021-06-11 四川虹美智能科技有限公司 Intelligent vending machine control method, control platform and system
CN113345131A (en) * 2020-03-03 2021-09-03 上海擎感智能科技有限公司 Management method of key device and key device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557477A (en) * 2008-04-11 2009-10-14 深圳Tcl新技术有限公司 Television system and auxiliary remote controller
US9730257B2 (en) * 2013-11-06 2017-08-08 Lg Electronics Inc. Method and apparatus for establishing device-to-device connection in wireless communication system
CN114283573A (en) * 2021-12-22 2022-04-05 珠海格力电器股份有限公司 Equipment control method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105629744A (en) * 2015-04-30 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Control method of smart home, control system, terminal and smart home system
CN105070004A (en) * 2015-07-15 2015-11-18 泰凌微电子(上海)有限公司 Intelligent equipment, as well as remote control system and remote control pairing method of intelligent equipment
CN105955295A (en) * 2016-05-27 2016-09-21 北京小米移动软件有限公司 Unmanned plane control method and unmanned plane control device
CN107395751A (en) * 2017-08-23 2017-11-24 绵阳美菱软件技术有限公司 A kind of remote control system of intelligent household electrical appliance and method
CN108337253A (en) * 2018-01-29 2018-07-27 苏州南尔材料科技有限公司 A kind of computer based intelligent electrical appliance control
CN109017676A (en) * 2018-07-23 2018-12-18 奇瑞汽车股份有限公司 Control method for vehicle, device and storage medium
CN109941227A (en) * 2019-04-12 2019-06-28 余永昌 A kind of auto burglar alarm remote controler
CN113345131A (en) * 2020-03-03 2021-09-03 上海擎感智能科技有限公司 Management method of key device and key device
CN112950844A (en) * 2021-04-29 2021-06-11 四川虹美智能科技有限公司 Intelligent vending machine control method, control platform and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116118A1 (en) * 2021-12-22 2023-06-29 珠海格力电器股份有限公司 Device control method and apparatus, electronic device, and storage medium
CN115134764B (en) * 2022-05-27 2024-06-04 阿里云计算有限公司 Bluetooth-based communication method and device

Also Published As

Publication number Publication date
WO2023116118A1 (en) 2023-06-29

Similar Documents

Publication Publication Date Title
CN103221962B (en) Peripheral authentication
US20210088564A1 (en) Authentication, Authorization, And/Or Accounting Of Power-Consuming Devices
WO2016193417A1 (en) Home appliance control method and control system
TW201106760A (en) Commissioning a network system
CN108198026B (en) Household appliance sharing method, terminal and computer readable storage medium
CA3032230C (en) Energy control method and apparatus for power consumption system
CN109639692A (en) Method, apparatus, equipment, system and the storage medium logged in offline
CN105812140A (en) Authorization access method
CN114283573A (en) Equipment control method and device, electronic equipment and storage medium
CN114785541B (en) Binding method and device of equipment, electronic equipment and storage medium
JP6316723B2 (en) Power management system, power transmission management device, power reception management device, power management method, and computer program
CN106658488B (en) Intelligent household appliance and method and device for safely accessing intelligent household appliance
CN105938566A (en) Method for keeping working state of smart card entering field again and smart card
CN111371872B (en) Anti-theft control method, shared household appliance, server and shared system
US11837993B2 (en) System for controlling a photovoltaic system, method and device for controlling the photovoltaic system
KR102401989B1 (en) A mobile charging system that combines alternating current single-phase and three-phase based on internal batteries to satisfy both fast charging speed and charging accessibility
CN110908293A (en) Shared electrical appliance control method and system based on NB-IOT
TWM562509U (en) Fee-charging socket structure
CN105472693A (en) Terminals, a wireless access device and a triggering method and system
US10412672B2 (en) Technique for managing power usage in a local communication network
CN105335268A (en) Method and apparatus for controlling NFC component in mobile device and mobile device
CN115604247B (en) Public equipment temporary authorization management method, device, electronic equipment and system
CN109246147A (en) A kind of decryption system of the smart home based on dynamic address table
CN117111495B (en) Data processing method and device of intelligent socket and electronic equipment
CN107608247B (en) Data processing method, electronic equipment and data processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220405