CN114125795A - 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
CN114125795A
CN114125795A CN202111187781.6A CN202111187781A CN114125795A CN 114125795 A CN114125795 A CN 114125795A CN 202111187781 A CN202111187781 A CN 202111187781A CN 114125795 A CN114125795 A CN 114125795A
Authority
CN
China
Prior art keywords
equipment
control
controlled
identity information
code
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
CN202111187781.6A
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.)
Dingtalk China Information Technology Co Ltd
Original Assignee
Dingtalk China Information 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 Dingtalk China Information Technology Co Ltd filed Critical Dingtalk China Information Technology Co Ltd
Priority to CN202111187781.6A priority Critical patent/CN114125795A/en
Publication of CN114125795A publication Critical patent/CN114125795A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Abstract

The present specification provides a device control method, an apparatus, an electronic device, and a storage medium, where the method, when applied to a control device, may include: acquiring an equipment code, and determining controlled equipment corresponding to the equipment code; if the control device is determined to be within the short-range wireless communication range of the controlled device, acquiring a control authority for the controlled device; and controlling the controlled equipment based on the control authority.

Description

Equipment control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a device control method and apparatus, an electronic device, and a storage medium.
Background
In the related art, for example, in an intelligent conference scenario, if a user wants to control an intelligent conference device, the user needs to use an entity remote controller for control, or first complete registration in a server platform of corresponding software to join a self account into a user group capable of managing the corresponding intelligent conference device, so as to obtain an operation right of the corresponding intelligent conference device, further input an authentication code or screen projection code of the intelligent conference device in the software, and obtain a control right of the intelligent conference device after completing pairing, thereby implementing control of the intelligent conference device.
On one hand, the control of the equipment can be really finished by utilizing the entity remote controller, but under the condition that a plurality of users carry out cooperative control, a plurality of remote controllers are needed, so the cost is higher, and the entity remote controller is easy to damage or lose, thereby further increasing the hidden cost; on the other hand, the existing scheme for controlling the equipment by using software is often complicated to operate, a user has a threshold for obtaining the control authority, and the scheme for controlling the equipment by using the verification code or the screen projection code pair is not safe enough, for example, when the verification code or the screen projection code is leaked, an irrelevant person who should not participate in the equipment control may illegally control the equipment.
Disclosure of Invention
To overcome the problems in the related art, the present specification provides a device control method, apparatus, electronic device, and storage medium.
According to a first aspect of embodiments of the present specification, there is provided an apparatus control method applied to control an apparatus, the method including:
acquiring an equipment code, and determining controlled equipment corresponding to the equipment code;
if the control device is determined to be within the short-range wireless communication range of the controlled device, acquiring a control authority for the controlled device;
and controlling the controlled equipment based on the control authority.
According to a second aspect of embodiments of the present specification, there is provided an apparatus control method applied to a server, the method including:
receiving an equipment code sent by control equipment, and determining controlled equipment corresponding to the equipment code;
receiving first equipment identity information sent by any one of the control equipment and the controlled equipment, wherein the first equipment identity information is extracted from the detected wireless signals by the any one of the equipment;
if the first device identity information matches second device identity information of another device of the control device and the controlled device, determining that the control device is within a short-range wireless communication range of the controlled device;
and feeding back the judgment result to the control device so as to enable the control device to acquire the control authority aiming at the controlled device, wherein the control authority is used for controlling the controlled device.
According to a third aspect of embodiments herein, there is provided a device control method applied to a controlled device, the method including:
detecting a wireless signal and extracting third equipment identity information contained in the wireless signal;
receiving fourth equipment identity information of the control equipment sent by a server to be matched with the third equipment identity information, wherein the fourth equipment identity information is sent by the server under the condition that an equipment code sent by the control equipment is received and the equipment code is determined to correspond to the controlled equipment; or, the third equipment identity information is sent to the server to be matched with the fourth equipment identity information;
wherein if the third device identity information matches the fourth device identity information, the control device is determined to be within a short-range wireless communication range of the controlled device and is given a control authority for the controlled device, the control authority being used to control the controlled device.
According to a fourth aspect of embodiments herein, there is provided an apparatus control device applied to control an apparatus, the device comprising:
the device code acquisition unit is used for acquiring a device code and determining controlled equipment corresponding to the device code;
an authority acquisition unit configured to acquire a control authority for the controlled apparatus if it is determined that the control apparatus is within a short-range wireless communication range of the controlled apparatus;
and the control unit is used for controlling the controlled equipment based on the control authority.
According to a fifth aspect of embodiments herein, there is provided an apparatus for controlling a device, applied to a server, the apparatus including:
the device code receiving unit is used for receiving a device code sent by the control device and determining the controlled device corresponding to the device code;
the device identity information receiving unit is used for receiving first device identity information sent by any one of the control device and the controlled device, wherein the first device identity information is extracted from the detected wireless signal by the any one device;
a determination unit configured to determine that the control apparatus is within a short-range wireless communication range of the controlled apparatus if the first apparatus identification information matches second apparatus identification information of another apparatus of the control apparatus and the controlled apparatus;
a feedback unit, configured to feed back a determination result to the control device, so that the control device obtains a control right for the controlled device, where the control right is used to control the controlled device.
According to a sixth aspect of embodiments herein, there is provided an apparatus control device applied to a controlled apparatus, the device including:
the detection unit is used for detecting a wireless signal and extracting third equipment identity information contained in the wireless signal;
the matching unit is used for receiving fourth equipment identity information of the control equipment sent by the server so as to match the fourth equipment identity information with the third equipment identity information, wherein the fourth equipment identity information is sent by the server when an equipment code sent by the control equipment is received and the equipment code is determined to correspond to the controlled equipment; or, the third equipment identity information is sent to the server to be matched with the fourth equipment identity information; wherein if the third device identity information matches the fourth device identity information, the control device is determined to be within a short-range wireless communication range of the controlled device and is given a control authority for the controlled device, the control authority being used to control the controlled device.
According to a seventh aspect of embodiments herein, there is provided an electronic apparatus comprising:
a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the above-described device control method.
According to an eighth aspect of embodiments herein, there is provided a computer-readable storage medium having stored thereon executable instructions; wherein the instructions, when executed by the processor, implement the steps of the above-described device control method.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
FIG. 1 is a diagram of a network architecture shown in accordance with an exemplary embodiment of the present description.
FIG. 2 is a flow chart illustrating a method of controlling a device according to an exemplary embodiment of the present description.
FIG. 3 is a flow chart illustrating another method of device control according to an exemplary embodiment of the present description.
FIG. 4 is a flow chart illustrating yet another method of device control according to an exemplary embodiment of the present description.
FIG. 5 is a diagram illustrating an application scenario in accordance with an exemplary embodiment of the present specification.
FIG. 6 is an interaction flow diagram illustrating a method of controlling a device according to an exemplary embodiment of the present description.
Fig. 7 is a hardware configuration diagram of a computer device in which a device control apparatus according to an embodiment of the present disclosure is located.
Fig. 8 is a block diagram of a device control apparatus shown in the present specification according to an exemplary embodiment.
Fig. 9 is a block diagram of another appliance control device shown in this specification according to an example embodiment.
Fig. 10 is a block diagram of yet another appliance control device shown in the present specification according to an exemplary embodiment.
Detailed Description
For further explanation of the present application, the following examples are provided:
fig. 1 is a diagram illustrating a network architecture according to an exemplary embodiment of the present specification, where the network architecture includes at least one control device, at least one controlled device, and a server, where the control device and the controlled device can know whether or not a counterpart is in a short-range wireless communication range by detecting a wireless signal transmitted by the counterpart, and each is connected to the server through the internet.
The control device in the embodiments of the present description refers to an intelligent terminal device, such as a smart phone, a computer, and a smart watch, capable of sending or detecting a wireless signal and connecting to the internet, and the controlled device in the embodiments of the present description may include any hardware device, such as a smart home appliance, a smart robot, a smart conference all-in-one machine, and a smart conference box, capable of sending or detecting a wireless signal and connecting to the internet.
Fig. 2 is a flowchart illustrating a device control method according to an exemplary embodiment, which is applied to a control device in the network architecture shown in fig. 1, and includes the following steps:
s201: and acquiring the equipment code and determining the controlled equipment corresponding to the equipment code.
The device code referred to in the embodiments of the present specification refers to a character string ID uniquely corresponding to a certain controlled device, and when the controlled device registers in the server, the server assigns an automatically generated device code to the registered controlled device, and in order to ensure global uniqueness of the device code, the device code newly registered in the controlled device is randomly selected from unassigned device codes, or is manually specified by an administrator: when the administrator inputs a device code to be allocated, the system firstly checks whether the device code to be allocated is occupied by the registered device, if so, the allocation is cancelled and the administrator is prompted to input again, and if not, the device code to be allocated is allocated to the registered controlled device and the administrator is prompted to allocate successfully. The server also manages the correspondence between the device code of the registered controlled device and its network address, so as to accurately find the network address of the corresponding controlled device through the device code and complete the access and control of the controlled device, the network address referred to in the embodiment of the present specification may include an IP address, a MAC address, a bluetooth address ID, etc., the network addresses can also uniquely determine the corresponding controlled devices, and therefore, the network addresses can be used as device identity information of the controlled devices, the device identity information referred to in the embodiments of the present specification may also include any other identification information capable of determining the identity of the controlled devices in addition to the network addresses, in some cases, the device identification information may be the device code, but this is not considered in the embodiments of the present specification, and the device identification information is considered to be identification information other than the device code. The server stores the registered controlled device and the corresponding device code, network address or other device identity information as registration information in a registration information table so as to facilitate query and management.
After the control device acquires the device code, the device code may be sent to the server, so that the server determines the controlled device corresponding to the device code from the registered controlled devices, and at this time, the server may return the device identity information corresponding to the controlled device to the control device, so that the control device can obtain the device identity information of the controlled device, thereby determining the controlled device corresponding to the device code according to the device identity information; or after the control device acquires the device code, the controlled device corresponding to the device code may be determined according to the history information, for example, the control device has successfully acquired the control right of the controlled device corresponding to the device code and has stored the device identity information of the controlled device, so that the subsequent control device can directly determine the device identity information of the controlled device through the device code, and the device identity information is used to determine the controlled device corresponding to the device code.
S202: and if the control equipment is determined to be in the short-range wireless communication range of the controlled equipment, acquiring the control authority of the controlled equipment.
The short-range wireless communication in the embodiments of the present specification means a communication technology in which both communication parties transmit information by wireless signals and the transmission distance is limited to a short range of several tens of meters, and wireless communication technologies such as bluetooth, Wi-Fi, IrDA, NFC, and ZigBee all belong to the short-range wireless communication described in the embodiments of the present specification. The wireless signal referred to in this specification specifically refers to an electromagnetic wave signal operating in a 2.4GHz ISM (Industrial Scientific Medical Band) frequency Band, and for example, wireless networks such as a WiFi wireless local area network, bluetooth, and ZigBee can all operate in the 2.4GHz ISM frequency Band.
In this embodiment of the present specification, determining that the control device is within the short-range wireless communication range of the controlled device may be implemented in any one of the following two ways: firstly, if the control device detects a wireless signal sent by the controlled device, the control device is determined to be in the close range wireless communication range of the controlled device; and if the controlled equipment is determined to detect the wireless signal sent by the control equipment, determining that the control equipment is in the short-range wireless communication range of the controlled equipment. In the embodiment of the present specification, the process of detecting the short-range wireless communication range does not need to establish a wireless communication connection, because detecting a wireless signal does not mean that a network connection must be established with the device that transmits the wireless signal, but only passively receives and simply identifies the wireless signal, for example, when the wireless signal is a bluetooth broadcast signal, the bluetooth broadcast signal can be detected without establishing a bluetooth connection because the bluetooth broadcast signal is transmitted in one direction, and detecting the bluetooth broadcast signal does not mean that bluetooth pairing with the device that transmits the bluetooth broadcast signal is required.
In the embodiment of the present specification, whether the control device actively detects the wireless signal of the controlled device or the controlled device actively detects the wireless signal of the control device, on one hand, such an active detection action may be performed in a preset time period or according to a preset frequency, for example, for a case where the control device actively detects the wireless signal of the controlled device, the control device may automatically detect the wireless signal sent by the controlled device at 7:00 to 11:00 and 14:00 to 17:00 every day to control the controlled device within a specific time period, or the control device is configured to detect the wireless signal of the controlled device once every 5 minutes, so as to save resource overhead of the detection process. On the other hand, the action of sending out the wireless signals can be limited, the action of sending out the wireless signals is set to be carried out in a preset time period or according to a preset frequency, and still taking the case that the control device actively detects the wireless signals of the controlled device as an example, the controlled device can send out the wireless signals in 7:00 to 11:00 and 14:00 to 17:00 every day, so that the control device can receive the wireless signals from the controlled device only in the time period, and therefore the time period is equivalent to the time period for setting the controlled device to be controlled, or the controlled device is set to send out the wireless signals every 5 minutes, and therefore the resource overhead of the process of sending out the wireless signals is saved.
S203: and controlling the controlled equipment based on the control authority.
In this embodiment of the present description, when a control device has acquired a control right for a controlled device, the controlled device can be accessed and controlled through a server, and specifically, the server determines, according to a device code sent by the control device, the controlled device and a network address thereof corresponding to the device code, and establishes a network connection with the controlled device according to the network address, so that data traffic sent from the control device can be sent to the controlled device through the network connection, or data traffic sent by the controlled device through the network connection is sent to the control device, thereby establishing a network connection between the control device and the controlled device. In addition, the control device can also establish wireless connection with the controlled device based on the control authority of the controlled device, so that data information is exchanged according to the wireless connection, and the controlled device is wirelessly controlled without participation of a server.
In one embodiment, after a control device acquires a device code, a control interface corresponding to the device code is not provided to the control device by default, and only when the control device has acquired a control authority, the control interface corresponding to the controlled device is provided to the control device, the control interface in the embodiment of the present specification refers to a control platform capable of inputting a control instruction and interacting data information, when a user inputs the control instruction at the control interface, the user can complete the input of the control instruction through a predefined control such as a function button and a text input box on the control interface, or can perform voice input by using a microphone, which is not limited by the present specification, the user acquires the control instruction input by the user through the control interface and sends the control instruction to a server, the server forwards the control instruction to the controlled device, thereby completing the control of the controlled device, in addition, the control interface can also display the state information of the controlled equipment or other data information from the server or the controlled equipment, such as video, voice information and the like.
In another embodiment, the control device may default to provide a control interface corresponding to the device code for the control device after the control device acquires the device code, and acquire a control instruction input by a user through the control interface, and when the control device does not acquire a control authority, the control device does not respond to the control instruction input by the user, and when the control device has acquired the control authority, the control device responds to the control instruction input by the user and sends the control instruction to the server, and the server sends the control instruction to the controlled device according to a network connection established in advance, thereby completing control of the controlled device; or, the default is to send the control instruction input by the user to the server through the control interface, the server does not respond to the control instruction when the control device does not acquire the control authority, but responds to the control instruction input by the user and sends the control instruction to the server when the control device acquires the control authority, and the server sends the control instruction to the controlled device according to the network connection established in advance, so as to complete the control of the controlled device.
The control instruction related in this embodiment may include: a screen projection instruction, namely projecting at least one part of display content on the control equipment to the controlled equipment; the video or voice call instruction can transmit image information captured by a camera at the side of the control equipment or voice information captured by a microphone to the side of the controlled equipment or other control equipment for obtaining the control authority of the controlled equipment through a server; mechanical operation instructions, which are used for controlling the controlled equipment to perform corresponding mechanical operations, such as controlling the robot to walk and the aircraft to fly; a shutdown or startup instruction is used for controlling the controlled equipment to be in standby or startup; other system configuration instructions.
It should be noted that, in this embodiment of the present specification, the control device acquires the device code, acquires the control authority of the controlled device corresponding to the device code, and there is no strict sequential execution order for the three steps of controlling the controlled device based on the control authority, the three steps may be simultaneously completed in one operation by the user, or may be sequentially executed in any order, for example, the control device may first determine, through the received wireless signal, which control authorities of the controlled device the control device owns, and then the user may input the device code and the control instruction at the same time, so as to directly control the controlled device having the control authority corresponding to the device code.
The technical scheme provided by the embodiment of the specification can have the following beneficial effects:
in the embodiment of the present specification, after a user inputs an equipment code, it needs to further determine whether a control device used by the user is within a short-range wireless communication range of a controlled device corresponding to the equipment code, and only if the control device is within the range, the control authority of the controlled device is obtained and the controlled device is controlled; and the fact that the user is in the short-distance wireless communication range of the controlled equipment generally means that the user is very close to the geographical position of the controlled equipment, and the user can be regarded as a related control person participating in the control of the equipment under normal conditions, so that the binding of the control authority and the geographical position is equivalent to the fact that the control authority is only released to the related control person, the situation that the controlled equipment is illegally controlled by irrelevant persons due to screen-projecting code leakage is avoided, the controlled equipment is conveniently controlled by the related control person, and meanwhile, the safety of equipment control is guaranteed.
Optionally, on the basis of the foregoing exemplary embodiment, the specific process of acquiring the device code may include any one or more of the following manners:
and acquiring the equipment code input by the user. In this embodiment of the present specification, a text input box for inputting information is first provided for the control device, a user is waited to input information, and after the user completes inputting and determining information, the input information is obtained as a device code.
The device code is extracted from a first wireless signal for forming the short-range wireless communication range, which is emitted from the controlled device. In the embodiment of the specification, the control device extracts the device code information from the first wireless signal which is transmitted by the controlled device and used for determining the near-field wireless communication range, so that the user does not need to input the device code manually, and the user operation is simplified.
Extracting the device code from a second wireless signal emitted from the controlled device that is different from the first wireless signal. In this embodiment of the present specification, the second wireless signal may include an ultrasonic signal or an optical signal, and since the device code is obtained from the second wireless signal, the first wireless signal used for determining the short-range wireless communication range does not need to carry device code information, so that the control device does not need to perform deep information analysis and extraction on the first wireless signal, and only needs to pay attention to whether the first wireless signal can be detected, so as to detect whether the control device is in the short-range wireless communication range, and separate from a task of automatically obtaining the device code, which is helpful for performing personalized adjustment for different application scenarios, and meanwhile, the scheme does not need to manually input the device code by a user, thereby simplifying user operation.
And extracting equipment identity information from a first wireless signal which is sent by the controlled equipment and used for forming the short-range wireless communication range, and acquiring the equipment code corresponding to the equipment identity information from historical information stored in the control equipment. The embodiment of the present disclosure is described by taking the first wireless signal as a bluetooth broadcast signal and the device identity information as a bluetooth address ID as an example: the control device stores the corresponding relation between the Bluetooth address ID of the controlled device which has acquired the control authority and the device code thereof in the history information, so that after the control device receives the Bluetooth broadcast signal, the Bluetooth address ID is extracted from the message header of the Bluetooth broadcast signal and is matched with the Bluetooth address ID stored in the history information, if the same Bluetooth address ID is obtained by matching in the history information, the control device is proved to have acquired the control authority of the controlled device corresponding to the Bluetooth address ID, and the device code corresponding to the controlled device is also input, therefore, the device code corresponding to the Bluetooth address ID stored in the history information can be directly acquired, and thus, the deep information analysis and extraction of the first wireless signal are not required, and the second wireless signal is not required, and the equipment code is automatically acquired, so that the user operation is simplified.
Optionally, on the basis of the above exemplary embodiment, the detection of the wireless signal sent by the controlled device by the control device may be accomplished by:
extracting to-be-verified equipment identity information of equipment of a sender of the wireless signal from the wireless signal detected by the control equipment;
and if the equipment identity information to be verified is consistent with the equipment identity information of the controlled equipment corresponding to the equipment code, determining that the equipment of the sender of the wireless signal is the controlled equipment.
In this embodiment, it may be determined that the control device is within the short-range wireless communication range of the controlled device by receiving a wireless signal of the controlled device, where the wireless signal is a bluetooth broadcast signal and the device identity information is a bluetooth address ID, and the embodiment of this specification is described as follows: the control equipment firstly sends the equipment code to the server so that the server determines the corresponding controlled equipment through the equipment code and returns the Bluetooth address ID of the controlled equipment to the control equipment, so that the control equipment obtains the Bluetooth address ID corresponding to the equipment code; or, if the control device has obtained the control authority of the controlled device, the bluetooth address ID corresponding to the device code can be searched from the history information;
and extracting a Bluetooth address ID from the detected Bluetooth broadcast signal as a to-be-verified Bluetooth address ID, matching the to-be-verified Bluetooth address ID with a Bluetooth address ID corresponding to the equipment code, if the matching result is that the to-be-verified Bluetooth address ID is consistent with the Bluetooth address ID corresponding to the equipment code, determining that the equipment of a sender of the wireless signal is the controlled equipment, considering that the control equipment is in the short-distance wireless communication range of the controlled equipment at the moment, and further obtaining the control authority of the controlled equipment.
In the embodiment of the present specification, the control authority of the controlled device may be obtained by receiving a wireless signal of the controlled device, in this case, the controlled device is used as a center to divide an authorization range, and the authority issuing of the control device in the authorization range is open, and the initiative for implementing control is grasped on the control device side, so that unconditional control of the control device on the controlled device may be ensured, the control delay is reduced to a certain extent, and the method is suitable for a scenario in which the control authority of the controlled device is completely open.
Optionally, on the basis of the above exemplary embodiment, the determining that the controlled device detects the wireless signal sent by the control device may be performed by:
the control equipment sends out a wireless signal containing equipment identity information of the control equipment;
sending a matching request to a server, wherein the matching request comprises the equipment code and the equipment identity information of the control equipment, so that the equipment identity information contained in the matching request is used for matching with the equipment identity information contained in the wireless signal detected by the controlled equipment;
and receiving a matching result returned from the server, and if the matching result is successful, determining that the controlled equipment detects the wireless signal sent by the control equipment.
In this embodiment, it may be determined that the controlled device detects a wireless signal sent by the control device to determine that the control device is within a short-range wireless communication range of the controlled device, where the wireless signal is a bluetooth broadcast signal and the device identity information is a bluetooth address ID, as an example, to describe the embodiment of this specification: the control equipment sends out a Bluetooth broadcast signal to the periphery, and the message header of the Bluetooth broadcast signal contains the Bluetooth address ID of the control equipment;
meanwhile, the control equipment sends a matching request containing the equipment code of the controlled equipment and the Bluetooth address ID of the control equipment to the server, after the server receives the matching request, the server firstly searches for the corresponding controlled equipment according to the equipment code, further obtains the network address of the controlled equipment in a registration information table, and sends the Bluetooth address ID contained in the matching request to the controlled equipment through the network address of the controlled equipment, and on one hand, the controlled equipment extracts the Bluetooth address ID by receiving Bluetooth broadcast signals, and on the other hand, receives the Bluetooth address ID from the server;
the controlled device matches the bluetooth address IDs obtained from the two aspects, and in general, because there are many control devices, the controlled device may receive a plurality of bluetooth broadcast signals, and therefore, the bluetooth address IDs in the bluetooth broadcast signals are extracted and stored uniformly, and are organized into an authorization ID table, and each control device corresponding to the bluetooth address ID in the authorization ID table is regarded as being in the short-range wireless communication range of the controlled device, and is therefore in a default authorized state. In addition, the server may receive a plurality of matching requests, so that the controlled device matches each bluetooth address ID transmitted from the server in the authorization ID table one by one, if the authorization ID table has a bluetooth address ID table entry consistent with the bluetooth address ID transmitted from the server, the matching is considered to be successful, if the bluetooth address ID transmitted from the server is not found in the authorization ID table, the matching is considered to be failed, the controlled device returns a matching result to the server after completing the matching, and the server further returns the matching result to the corresponding control device according to the network connection established between the server and the corresponding control device through the matching request; in another embodiment, the matching process occurs at the server, in this case, the server does not send the bluetooth address ID in the matching request to the corresponding controlled device, but arranges multiple authorization request tables according to the received matching request, where each authorization request table corresponds to one controlled device, specifically, each time the server receives one matching request, firstly determines the corresponding controlled device in the registration information table according to the device code included in the matching request, and stores the bluetooth address ID included in the matching request into the authorization request table of the controlled device, and in addition, the server also receives the authorization ID tables from the respective controlled devices, so that for each controlled device, the server manages the corresponding authorization request table and authorization ID table at the same time, and matches the bluetooth address IDs in the two tables, if a certain bluetooth address ID in the authorization request table can be found in the authorization ID table, the matching result corresponding to the bluetooth address ID is considered as successful matching, if the matching result cannot be found in the authorization ID table, the matching result corresponding to the bluetooth address ID is considered as failed matching, and the matching result is returned to the corresponding control equipment.
And the control equipment receives the matching result returned from the server, and if the matching result is successful, the controlled equipment corresponding to the equipment code in the matching request can detect the wireless signal sent by the control equipment.
In the embodiment of the present specification, the control authority of the controlled device may be obtained by determining that the controlled device detects a wireless signal sent by the control device, in this case, the authorization range is divided by taking the control device as a center, and since whether the controlled device receives the wireless signal of the control device or whether the control authority is issued according to a process after receiving the wireless signal is not determined by the control device, the authority of the control device within the authorization range is not open in the embodiment of the present specification, and the initiative for implementing control is grasped by the controlled device side, so that an authorization policy may be designed for the controlled device, for example, shielding a wireless signal in some directions, ignoring some control devices according to ID information of the wireless signal, or rejecting the wireless signal according to a time period, and thus implementing conditional control of the controlled device by the control device, the safety and the expandability of the control scheme are improved in a certain sense, and the method is suitable for a scene that the control authority of the controlled equipment is not completely opened.
Optionally, on the basis of the foregoing exemplary embodiment, if it is determined that the control device is not within the short-range wireless communication range of the controlled device, a verification code input by a user is acquired; and if the verification code input by the user is determined to be matched with the verification code distributed to the controlled equipment, acquiring the control authority aiming at the controlled equipment.
In the embodiment of the present specification, if the control device is not in the short-range wireless communication range of the controlled device, the control authority of the controlled device may also be obtained by inputting the verification code, for example, in an intelligent conference scene, the controlled device is an intelligent conference television, the server first assigns a verification code to the intelligent conference television, and if a user wants to participate in a conference remotely, the server may further input the verification code after inputting the device code, so as to obtain the control authority of the intelligent conference television and complete control operations such as screen projection. The verification code related to the embodiment of the description can be randomly and dynamically generated, and at the moment, the intelligent conference television can display the dynamic verification code distributed by the server on a screen, so that related control personnel participating in a conference on the spot can send the verification code to other related control personnel participating in a remote conference by other communication means; or, the verification code may be preset, for example, a text password related to the conference subject, and when a user participating in the conference remotely inputs a correct password verification code, the control authority of the intelligent conference television corresponding to the device code can be obtained. In addition, if the control device is in the short-range wireless communication range of the controlled device, the control authority of the controlled device may also be acquired by inputting the verification code, which is not limited in this embodiment of the present specification.
In the embodiment of the description, the control authority of the controlled device can be acquired by inputting the verification code, so that the device control can be still finished under some special conditions, and the flexibility of the device control scheme is improved. For example, when the control device or the controlled device fails to send or detect a wireless signal or when personnel cannot be present on the spot, the user can input the verification code to control the device on the premise of ensuring safety as much as possible.
Optionally, on the basis of the foregoing exemplary embodiment, after the control authority for the controlled device is acquired, if it is detected that the control device leaves the short-range wireless communication range of the controlled device, the control authority for the controlled device is cancelled.
For example, when the control device detects a wireless signal of the controlled device and acquires the control authority of the controlled device, the control device can continue to periodically detect the wireless signal, and once the wireless signal of the controlled device corresponding to the control authority cannot be detected, the control authority is immediately cancelled; or, after the control device acquires the control authority of the controlled device, it may be redetected whether the wireless signal of the corresponding controlled device can be acquired each time the control instruction is input, and if not, the control authority for the controlled device may be cancelled. In the embodiment of the present specification, after the control device leaves the short-range wireless communication range of the controlled device, the control authority of the control device for the controlled device can be cancelled, so that only the relevant control personnel in the field in real time can be ensured to control the controlled device, and the security is further ensured. In another optional embodiment, after obtaining the control authority for the controlled device, if it is detected that the control device leaves the short-range wireless communication range of the controlled device, the control authority for the controlled device may also be maintained, so that the user may leave the short-range wireless communication range of the controlled device after obtaining the control authority within the short-range wireless communication range.
As shown in fig. 3, fig. 3 is a flowchart of another device control method according to an exemplary embodiment, which is applied to a server in the network architecture shown in fig. 1, and includes the following steps:
s301: and receiving a device code sent by the control device, and determining the controlled device corresponding to the device code.
S302: and receiving first equipment identity information sent by any one of the control equipment and the controlled equipment, wherein the first equipment identity information is extracted from the detected wireless signal by any one of the equipment.
S303: and if the first equipment identity information is matched with second equipment identity information of the other equipment of the control equipment and the controlled equipment, judging that the control equipment is in the short-distance wireless communication range of the controlled equipment.
S304: and feeding back the judgment result to the control device so as to enable the control device to acquire the control authority aiming at the controlled device, wherein the control authority is used for controlling the controlled device.
The embodiments of the present specification include the following two cases:
firstly, a server receives an equipment code and equipment identity information sent by control equipment, wherein the equipment identity information sent by the control equipment is extracted from a wireless signal detected by the control equipment, the server stores a registration information table containing equipment codes and equipment identity information of all registered controlled equipment, the server firstly searches the equipment identity information of the corresponding controlled equipment according to the received equipment code, matches the searched equipment identity information with the equipment identity information sent by the control equipment, if the equipment identity information and the equipment identity information are consistent, the control equipment is judged to be in a short-distance wireless communication range of the controlled equipment, if the equipment identity information and the equipment identity information are not consistent, the control equipment is judged not to be in the short-distance wireless communication range of the controlled equipment, and a judgment result is fed back to the control equipment so that the control equipment acquires a control authority aiming at the controlled equipment according to the judgment result, the control authority is used for controlling the controlled equipment. In this case, the first device identity information is device identity information extracted from a wireless signal detected by the control device, and the second device identity information is device identity information of the corresponding controlled device searched by the server.
Secondly, the server receives the equipment code sent by the control equipment, the controlled equipment corresponding to the equipment code is determined according to the registration information table, the controlled equipment can send the equipment identity information extracted from the detected wireless signal to the server, the server can pre-store the equipment identity information of the control equipment, or the control equipment sends the equipment identity information of the server when sending the equipment code, so that the server can obtain the equipment identity information of the control equipment, the server matches the equipment identity information received from the controlled equipment with the equipment identity information of the control equipment sending the equipment code, if the equipment identity information is consistent with the equipment identity information, the control equipment is judged to be in the short-distance wireless communication range of the controlled equipment, and if the equipment identity information is inconsistent with the equipment identity information, the control equipment is judged not to be in the short-distance wireless communication range of the controlled equipment, and feeding back the judgment result to the control device so that the control device acquires the control authority for the controlled device according to the judgment result, wherein the control authority is used for controlling the controlled device. In this case, the first device information is device identification information extracted from a wireless signal detected by the controlled device, and the second device information is device identification information of the control device acquired by the server.
The embodiment of the method is an embodiment explained from the server side of the embodiment of the method shown in fig. 1, and the detailed implementation process thereof refers to the implementation process of the corresponding steps in the method shown in fig. 1.
In the embodiment of the specification, a user can participate in the control of the controlled device only by inputting the corresponding device code within the short-distance wireless communication range of the controlled device, so that the operation process of the user is simplified, and the convenience of device control is improved; the binding of the control authority and the geographic position is equivalent to the transfer of the control authority to related control personnel, so that the condition that the controlled equipment is illegally controlled by the unrelated personnel due to the leakage of screen-casting codes is avoided, and the safety of equipment control is guaranteed; and because the matching of the equipment identity information occurs at the server side instead of the control equipment side, the judgment of the control authority is completed at the server side, so that the problem of illegal authorization caused by program tampering at the control equipment side can be avoided, and the safety is further improved.
Optionally, on the basis of the above exemplary embodiment, if it is determined that the control apparatus is not within the short-range wireless communication range of the controlled apparatus, an authentication code is assigned to the controlled apparatus;
receiving a verification code sent by the control equipment; and if the verification code sent by the control equipment is determined to be matched with the verification code distributed to the controlled equipment, feeding back a matching result to the control equipment so that the control equipment can acquire the control authority aiming at the controlled equipment.
In the embodiment of the description, the control authority of the controlled device can be acquired by inputting the verification code, so that the device control can be still finished under some special conditions, and the flexibility of the device control scheme is improved. For example, when the control device or the controlled device fails to send or detect a wireless signal or when personnel cannot be present on the spot, the user can input the verification code to control the device on the premise of ensuring safety as much as possible.
As shown in fig. 4, fig. 4 is a flowchart of a further device control method according to an exemplary embodiment, which is applied to a controlled device in the network architecture shown in fig. 1, and includes the following steps:
s401: and detecting a wireless signal and extracting third equipment identity information contained in the wireless signal.
S402: receiving fourth equipment identity information of the control equipment sent by a server to be matched with the third equipment identity information, wherein the fourth equipment identity information is sent by the server under the condition that an equipment code sent by the control equipment is received and the equipment code is determined to correspond to the controlled equipment; or, the third equipment identity information is sent to the server to be matched with the fourth equipment identity information; wherein if the third device identity information matches the fourth device identity information, the control device is determined to be within a short-range wireless communication range of the controlled device and is given a control authority for the controlled device, the control authority being used to control the controlled device.
The third device identity information referred to in the embodiments of this specification refers to a wireless signal extracted by the controlled device from the received wireless signal, and the fourth device identity information refers to device identity information stored on the server and corresponding to the control device, where the device identity information may be pre-stored by the server or sent to the server while the control device sends the device code.
The embodiment of the method is an embodiment explained from the controlled device side of the embodiment of the method shown in fig. 1, and specifically is a scheme for determining that the control device is within the short-range wireless communication range of the controlled device by determining that the controlled device detects a wireless signal sent by the control device, and a detailed implementation process of the method refers to an implementation process of corresponding steps in the method shown in fig. 1.
In the embodiment of the specification, a user can participate in the control of the controlled device only by inputting the corresponding device code within the short-distance wireless communication range of the controlled device, so that the operation process of the user is simplified, and the convenience of device control is improved; the binding of the control authority and the geographic position is equivalent to the transfer of the control authority to related control personnel, so that the condition that the controlled equipment is illegally controlled by the unrelated personnel due to the leakage of screen-casting codes is avoided, and the safety of equipment control is guaranteed; in addition, in the embodiment of the present specification, the control right of the controlled device is obtained by determining that the controlled device detects a wireless signal sent by the control device, and the initiative right for implementing control is mastered on the controlled device side, so that an authorization policy can be designed for the controlled device, thereby implementing conditional control of the controlled device by the control device, and improving the security and the expandability of the control scheme to a certain extent.
The device control scheme of the present specification will be described below in such a manner that a control device detects a bluetooth broadcast signal transmitted by the controlled device and determines that the control device is within the short-range wireless communication range of the controlled device. Fig. 5 is a diagram of an application scenario of an exemplary device control, where the application scenario includes: the intelligent conference all-in-one machine is used for sending out Bluetooth broadcast signals and displaying own equipment codes on a screen, the intelligent mobile phone B and the notebook computer are located in a Bluetooth signal range, the intelligent mobile phone A is located outside the Bluetooth signal range, and the server is connected with the intelligent mobile phone A, the intelligent mobile phone B, the notebook computer and the intelligent conference all-in-one machine through the Internet.
The detailed description will be given by taking a scene that the smart phone B controls the smart conference all-in-one machine to project a screen as an example. Referring to fig. 6, the control scenario may be implemented based on the interaction between the smart phone B, the server, and the smart conference all-in-one machine, and the method may include the following steps:
s601: the user opens the intelligent conference interface on the client on the smart phone B, the interface provides an input box for inputting information for the user, and the user can know the equipment code information of the controlled equipment, such as '123456', through the equipment code displayed on the screen of the intelligent conference all-in-one machine.
S602: after the user types and confirms the equipment code in the input box, the smart phone B sends the equipment code to the server through the client.
S603: the server stores a registration information table in which the controlled device has been registered, as shown in table 1.
Equipment code IP address Bluetooth Address ID Others
10000 1.1.1.1 12:50:0E:F1:E4:E3
123456 128.1.1.10 14:7D:DA:0F:60:0A
1200000 2.2.2.2 48:98:C5:33:92:81
TABLE 1
After receiving the device code sent by the smartphone B, the server searches for the bluetooth address ID corresponding to the device code in the registration information table, for example, according to the "123456" table search, the bluetooth address ID corresponding to the device code is "14: 7D: DA:0F:60: 0A".
S604: the server returns the bluetooth address ID obtained by table lookup to the client of the smartphone B.
S605: and the smart phone B opens the Bluetooth function and detects nearby Bluetooth broadcast signals, wherein the Bluetooth broadcast signals comprise Bluetooth broadcast signals of the intelligent conference all-in-one machine.
S606: extracting the Bluetooth address IDs contained in the detected plurality of Bluetooth broadcast signals to obtain a Bluetooth address ID list.
S607: and matching the Bluetooth address ID returned by the server in a Bluetooth address ID list, if the Bluetooth address ID list has a table entry consistent with the Bluetooth address ID returned from the server, judging that the Bluetooth address ID list is in the Bluetooth range of the intelligent all-in-one conference machine corresponding to the equipment code input by the user, and acquiring the control authority of the intelligent all-in-one conference machine.
S608: and under the condition of acquiring the control authority, the smart phone B displays a control interface aiming at the intelligent conference all-in-one machine, wherein the control interface comprises a screen projection button.
S609: and the user triggers a screen projection button on the control interface and sends a screen projection instruction to the server.
S610: and the server forwards the screen projection instruction to the intelligent conference all-in-one machine according to the IP address of the intelligent conference all-in-one machine.
S611: and after the intelligent conference all-in-one machine receives the screen projection instruction, displaying the video information carried by the screen projection instruction on a screen.
Meanwhile, because the notebook computer in the application scene shown in fig. 5 is also within the range of the bluetooth signal of the intelligent all-in-one conference machine, the control device in the above step can be replaced by the notebook computer from the smart phone B, and then the corresponding step can be executed, so that the screen projection control of the same intelligent all-in-one conference machine by the notebook computer can be realized, and thus the intelligent all-in-one conference machine can display a plurality of screen projection pictures on the same screen. If the smart phone B in the above step is replaced with the smart phone a, the bluetooth broadcast signal of the smart conference all-in-one machine cannot be detected in S603, so that the entry corresponding to the bluetooth address ID returned from the server cannot be found in S605, which results in a matching failure, and the control authority of the smart conference all-in-one machine cannot be obtained, so that the control interface for the smart conference all-in-one machine cannot be displayed in S606, and the smart conference all-in-one machine cannot be controlled.
The present specification also provides embodiments of an apparatus, an electronic device, and a storage medium, corresponding to embodiments of the foregoing method.
The embodiment of the device control apparatus in the present specification can be applied to a computer device, such as a server, a control device or a controlled device. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and the device control apparatus in a logical sense is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory through the processor and running the computer program instructions. From a hardware aspect, as shown in fig. 7, it is a hardware structure diagram of a computer device where a device control apparatus according to this embodiment of the present disclosure is located, and besides the processor 710, the network interface 720, the memory 730, and the nonvolatile memory 740 shown in fig. 7, other hardware may also be included according to actual functions of the computer device, which is not described again.
As shown in fig. 8, fig. 8 is a block diagram of a device control apparatus shown in the present specification according to an exemplary embodiment, the apparatus being applied to control a device, and the apparatus including the following units:
an equipment code obtaining unit 801, configured to obtain an equipment code, and determine a controlled equipment corresponding to the equipment code;
an authority acquisition unit 802, configured to acquire a control authority for the controlled device if it is determined that the control device is within a short-range wireless communication range of the controlled device;
a control unit 803, configured to control the controlled device based on the control authority.
Optionally, the device code acquiring unit 801 is specifically configured to:
acquiring the equipment code input by a user; or the like, or, alternatively,
extracting the device code from a first wireless signal for forming the short-range wireless communication range emitted from the controlled device; or the like, or, alternatively,
extracting the device code from a second wireless signal different from the first wireless signal, which is transmitted from the controlled device; or the like, or, alternatively,
and extracting equipment identity information from a first wireless signal which is sent by the controlled equipment and used for forming the short-range wireless communication range, and acquiring the equipment code corresponding to the equipment identity information from historical information stored in the control equipment.
Optionally, the first wireless signal includes: a Bluetooth broadcast signal; the second wireless signal includes: ultrasonic signals or optical signals.
Optionally, in the authority obtaining unit 802, the determining that the control device is within the short-range wireless communication range of the controlled device includes:
and if the control equipment detects the wireless signal sent by the controlled equipment, judging that the control equipment is in the short-distance wireless communication range of the controlled equipment.
Optionally, the detecting, by the control device, the wireless signal sent by the controlled device includes:
extracting to-be-verified equipment identity information of equipment of a sender of the wireless signal from the wireless signal detected by the control equipment;
and if the equipment identity information to be verified is consistent with the equipment identity information of the controlled equipment corresponding to the equipment code, determining that the equipment of the sender of the wireless signal is the controlled equipment.
Optionally, in the authority obtaining unit 802, the determining that the control device is within the short-range wireless communication range of the controlled device includes:
and if the controlled equipment is determined to detect the wireless signal sent by the control equipment, determining that the control equipment is in the short-range wireless communication range of the controlled equipment.
Optionally, the wireless signal sent by the control device includes device identity information of the control device; the determining that the controlled device detects the wireless signal sent by the control device includes:
sending a matching request to a server, wherein the matching request comprises the equipment code and the equipment identity information of the control equipment, so that the equipment identity information contained in the matching request is used for matching with the equipment identity information contained in the wireless signal detected by the controlled equipment;
and receiving a matching result returned from the server, and if the matching result is successful, determining that the controlled equipment detects the wireless signal sent by the control equipment.
Optionally, the control unit 803 is specifically configured to:
under the condition that the control authority is obtained, displaying a control interface aiming at the controlled equipment, and obtaining a control instruction input by a user through the control interface so as to control the controlled equipment based on the control instruction; or the like, or, alternatively,
and acquiring a control instruction input by a user through a default provided control interface, and controlling the controlled equipment based on the control instruction under the condition that the control authority of the controlled equipment is acquired.
Optionally, in the control unit 803, the controlling the controlled device specifically includes:
and projecting at least a part of display content on the control device to the controlled device.
Optionally, the method further includes:
a verification code obtaining unit 804, configured to obtain a verification code input by a user if it is determined that the control apparatus is not within the short-range wireless communication range of the controlled apparatus;
an authentication code matching unit 805, if it is determined that the authentication code input by the user matches the authentication code assigned to the controlled device, acquires the control authority for the controlled device.
Optionally, the method further includes:
the control authority cancelling unit 806, after acquiring the control authority for the controlled device, cancels the control authority for the controlled device if it is detected that the control device leaves the short-range wireless communication range of the controlled device.
As shown in fig. 9, fig. 9 is a block diagram of another device control apparatus shown in the present specification according to an exemplary embodiment, the apparatus being applied to a server, and the apparatus including the following units:
a device code receiving unit 901, configured to receive a device code sent by a control device, and determine a controlled device corresponding to the device code;
an equipment identity information receiving unit 902, configured to receive first equipment identity information sent by any one of the control equipment and the controlled equipment, where the first equipment identity information is extracted from a detected wireless signal by the any one of the equipment;
a determining unit 903, configured to determine that the control apparatus is within a short-range wireless communication range of the controlled apparatus if the first apparatus identity information matches second apparatus identity information of another apparatus of the control apparatus and the controlled apparatus;
a feedback unit 904, configured to feed back the determination result to the control device, so that the control device obtains a control right for the controlled device, where the control right is used to control the controlled device.
Optionally, the method further includes:
an assigning unit 905 that assigns a verification code to the controlled apparatus if it is determined that the control apparatus is not within the proximity wireless communication range of the controlled apparatus;
a matching unit 906 that receives the verification code transmitted by the control device; and if the verification code sent by the control equipment is determined to be matched with the verification code distributed to the controlled equipment, feeding back a matching result to the control equipment so that the control equipment can acquire the control authority aiming at the controlled equipment.
As shown in fig. 10, fig. 10 is a block diagram of another device control apparatus shown in this specification according to an exemplary embodiment, the apparatus being applied to a controlled device, and the apparatus including the following units:
a detecting unit 1001, configured to detect a wireless signal and extract third device identity information included in the wireless signal;
a matching unit 1002, configured to receive fourth device identity information of the control device sent by the server, so as to match the fourth device identity information with the third device identity information, where the fourth device identity information is sent by the server when receiving a device code sent by the control device and determining that the device code corresponds to the controlled device; or, the third equipment identity information is sent to the server to be matched with the fourth equipment identity information; wherein if the third device identity information matches the fourth device identity information, the control device is determined to be within a short-range wireless communication range of the controlled device and is given a control authority for the controlled device, the control authority being used to control the controlled device.
Correspondingly, the present specification also provides an apparatus comprising a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the device control method provided by all of the above method embodiments.
Accordingly, the present specification also provides a computer readable storage medium having executable instructions stored thereon; wherein the instructions, when executed by the processor, implement the steps of the device control method provided by all the above method embodiments.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
In a typical configuration, a computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 like elements in a process, method, article, or apparatus that comprises the element.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (19)

1. An apparatus control method, applied to a control apparatus, the method comprising:
acquiring an equipment code, and determining controlled equipment corresponding to the equipment code;
if the control device is determined to be within the short-range wireless communication range of the controlled device, acquiring a control authority for the controlled device;
and controlling the controlled equipment based on the control authority.
2. The method of claim 1, wherein obtaining the device code comprises:
acquiring the equipment code input by a user; or the like, or, alternatively,
extracting the device code from a first wireless signal for forming the short-range wireless communication range emitted from the controlled device; or the like, or, alternatively,
extracting the device code from a second wireless signal different from the first wireless signal, which is transmitted from the controlled device; or the like, or, alternatively,
and extracting equipment identity information from a first wireless signal which is sent by the controlled equipment and used for forming the short-range wireless communication range, and acquiring the equipment code corresponding to the equipment identity information from historical information stored in the control equipment.
3. The method of claim 2, wherein the first wireless signal comprises: a Bluetooth broadcast signal; the second wireless signal includes: ultrasonic signals or optical signals.
4. The method of claim 1, wherein the determining that the controlling device is within a close-range wireless communication range of the controlled device comprises:
and if the control equipment detects the wireless signal sent by the controlled equipment, judging that the control equipment is in the short-distance wireless communication range of the controlled equipment.
5. The method of claim 4, wherein the control device detecting the wireless signal from the controlled device comprises:
extracting to-be-verified equipment identity information of equipment of a sender of the wireless signal from the wireless signal detected by the control equipment;
and if the equipment identity information to be verified is consistent with the equipment identity information of the controlled equipment corresponding to the equipment code, determining that the equipment of the sender of the wireless signal is the controlled equipment.
6. The method of claim 1, wherein the determining that the controlling device is within a close-range wireless communication range of the controlled device comprises:
and if the controlled equipment is determined to detect the wireless signal sent by the control equipment, determining that the control equipment is in the short-range wireless communication range of the controlled equipment.
7. The method according to claim 6, wherein the wireless signal sent by the control device includes device identity information of the control device; the determining that the controlled device detects the wireless signal sent by the control device includes:
sending a matching request to a server, wherein the matching request comprises the equipment code and the equipment identity information of the control equipment, so that the equipment identity information contained in the matching request is used for matching with the equipment identity information contained in the wireless signal detected by the controlled equipment;
and receiving a matching result returned from the server, and if the matching result is successful, determining that the controlled equipment detects the wireless signal sent by the control equipment.
8. The method of claim 1, wherein the controlling the controlled device based on the control authority comprises:
under the condition that the control authority is obtained, displaying a control interface aiming at the controlled equipment, and obtaining a control instruction input by a user through the control interface so as to control the controlled equipment based on the control instruction; or the like, or, alternatively,
and acquiring a control instruction input by a user through a default provided control interface, and controlling the controlled equipment based on the control instruction under the condition that the control authority of the controlled equipment is acquired.
9. The method of claim 1, wherein the controlling the controlled device comprises:
and projecting at least a part of display content on the control device to the controlled device.
10. The method of claim 1, further comprising:
if the control equipment is determined not to be in the short-distance wireless communication range of the controlled equipment, acquiring a verification code input by a user;
and if the verification code input by the user is determined to be matched with the verification code distributed to the controlled equipment, acquiring the control authority aiming at the controlled equipment.
11. The method of claim 1, further comprising:
and after the control authority aiming at the controlled equipment is acquired, if the control equipment is detected to leave the short-range wireless communication range of the controlled equipment, the control authority aiming at the controlled equipment is cancelled.
12. An apparatus control method applied to a server, the method comprising:
receiving an equipment code sent by control equipment, and determining controlled equipment corresponding to the equipment code;
receiving first equipment identity information sent by any one of the control equipment and the controlled equipment, wherein the first equipment identity information is extracted from the detected wireless signals by the any one of the equipment;
if the first device identity information matches second device identity information of another device of the control device and the controlled device, determining that the control device is within a short-range wireless communication range of the controlled device;
and feeding back the judgment result to the control device so as to enable the control device to acquire the control authority aiming at the controlled device, wherein the control authority is used for controlling the controlled device.
13. The method of claim 12, further comprising:
if the control device is not within the short-range wireless communication range of the controlled device, distributing a verification code to the controlled device;
receiving a verification code sent by the control equipment; and if the verification code sent by the control equipment is determined to be matched with the verification code distributed to the controlled equipment, feeding back a matching result to the control equipment so that the control equipment can acquire the control authority aiming at the controlled equipment.
14. An apparatus control method applied to a controlled apparatus, the method comprising:
detecting a wireless signal and extracting third equipment identity information contained in the wireless signal;
receiving fourth equipment identity information of the control equipment sent by a server to be matched with the third equipment identity information, wherein the fourth equipment identity information is sent by the server under the condition that an equipment code sent by the control equipment is received and the equipment code is determined to correspond to the controlled equipment; or, the third equipment identity information is sent to the server to be matched with the fourth equipment identity information;
wherein if the third device identity information matches the fourth device identity information, the control device is determined to be within a short-range wireless communication range of the controlled device and is given a control authority for the controlled device, the control authority being used to control the controlled device.
15. An apparatus for controlling a device, the apparatus comprising:
the device code acquisition unit is used for acquiring a device code and determining controlled equipment corresponding to the device code;
an authority acquisition unit configured to acquire a control authority for the controlled apparatus if it is determined that the control apparatus is within a short-range wireless communication range of the controlled apparatus;
and the control unit is used for controlling the controlled equipment based on the control authority.
16. An apparatus for controlling a device, applied to a server, the apparatus comprising:
the device code receiving unit is used for receiving a device code sent by the control device and determining the controlled device corresponding to the device code;
the device identity information receiving unit is used for receiving first device identity information sent by any one of the control device and the controlled device, wherein the first device identity information is extracted from the detected wireless signal by the any one device;
a determination unit configured to determine that the control apparatus is within a short-range wireless communication range of the controlled apparatus if the first apparatus identification information matches second apparatus identification information of another apparatus of the control apparatus and the controlled apparatus;
a feedback unit, configured to feed back a determination result to the control device, so that the control device obtains a control right for the controlled device, where the control right is used to control the controlled device.
17. An apparatus control device, applied to a controlled apparatus, the device comprising:
the detection unit is used for detecting a wireless signal and extracting third equipment identity information contained in the wireless signal;
the matching unit is used for receiving fourth equipment identity information of the control equipment sent by the server so as to match the fourth equipment identity information with the third equipment identity information, wherein the fourth equipment identity information is sent by the server when an equipment code sent by the control equipment is received and the equipment code is determined to correspond to the controlled equipment; or, the third equipment identity information is sent to the server to be matched with the fourth equipment identity information; wherein if the third device identity information matches the fourth device identity information, the control device is determined to be within a short-range wireless communication range of the controlled device and is given a control authority for the controlled device, the control authority being used to control the controlled device.
18. An electronic device includes a processor; memory for storing processor-executable instructions, wherein the processor is configured to implement the steps of the method of any one of claims 1-14.
19. A computer-readable storage medium having executable instructions stored thereon, wherein the instructions, when executed by a processor, perform the steps of the method of any one of claims 1-14.
CN202111187781.6A 2021-10-12 2021-10-12 Equipment control method and device, electronic equipment and storage medium Pending CN114125795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111187781.6A CN114125795A (en) 2021-10-12 2021-10-12 Equipment control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111187781.6A CN114125795A (en) 2021-10-12 2021-10-12 Equipment control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114125795A true CN114125795A (en) 2022-03-01

Family

ID=80441865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111187781.6A Pending CN114125795A (en) 2021-10-12 2021-10-12 Equipment control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114125795A (en)

Similar Documents

Publication Publication Date Title
US10075849B2 (en) Secure distribution of electronic content
US10587654B2 (en) Privacy enhancements for wireless devices
CN110505606B (en) Bluetooth Mesh network and distribution network authentication method, equipment and storage medium thereof
CA2997954C (en) Device enabled identity authentication
CN108337677B (en) Network authentication method and device
EP3276910B1 (en) Bluetooth-based identity recognition method and device
US9326091B2 (en) Near field communication automatic self-provisioning
CN105656948A (en) Account login method and device
US8549593B2 (en) Network access control system and method
CN106211359B (en) Method and device for enabling device to obtain service
WO2019160960A1 (en) Enhanced processing and verification of digital access rights
CN111221484B (en) Screen projection method and device
CN107211028A (en) The discovery and connection based on audio to service controller
WO2017058001A1 (en) A type of smart home management method based on instant messasing (im)
US20160241431A1 (en) Methods, apparatuses, and system for device management
JP6385100B2 (en) Information processing apparatus, information processing system, information processing apparatus control method, and computer program
CN108696864B (en) Virtual number request and transmission method, device and storage medium
CN111182013B (en) Spatial digitization platform system, construction method, interaction method, device and equipment
CN112422488A (en) Screen projection method and device
CN111756669B (en) Login request processing method, mobile device and intelligent hardware device
CN114125795A (en) Equipment control method and device, electronic equipment and storage medium
US20220303314A1 (en) Image Sharing and Conference Participant Identification Method and Image Sharing and Conference Participant Identification System Capable of Performing Bi-directional Communications and Partitioning Images
CN109542644B (en) Application programming interface calling method and device
US20210251027A1 (en) Peer to peer communication system
KR101657087B1 (en) Method and system for personal authentication using beacon

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40069294

Country of ref document: HK