Patent Description:
The Internet of Things is an important part of the new generation of information technology, and is also an important development stage in the "information" age. The Internet of Things is widely used in the integration of networks through communication perception technologies such as intelligent perception, recognition technology and pervasive computing. Therefore, it is called the third wave of the development of the world's information industry after computers and the Internet. <CIT> discloses a system for building automation, made up of a portable or handheld apparatus for situation-related information configuration and of at least one stationary unit, in which system the apparatus comprises a proximity sensor, a communication unit for wireless communication with at least one of the stationary units, an evaluation and control unit having at least one processor or logic unit and a memory, an information output unit, and an energy reservoir, the system being designed to create a wireless communication connection between the apparatus and at least one of the stationary units via the communication unit as a consequence of an approach by the apparatus, as ascertained by the proximity sensor, to at least one stationary unit, and to display a state of the at least one stationary unit via the information output unit.

The present disclosure provides a device control method and apparatus, a device, and a storage medium.

According to a first aspect of the disclosure, there is provided a device control method as defined by claim <NUM>.

In some embodiments, determining the candidate receiving device corresponding to the minimum signal attenuation value as the target controlled device according to the received power values for receiving the second signals by the main control device and the transmit power values of the candidate controlled devices carried in the second signals, includes:.

In some embodiments, the first signal includes a discovery request signal, and the second signal includes a discovery response signal.

In some embodiments, the discovery request signal is a discovery request signal of Wi-Fi direct communication; and the discovery response signal is a discovery response signal of Wi-Fi direct communication;
or,
the discovery request signal is a discovery request signal of D2D communication; and the discovery response signal is a discovery response signal of D2D communication.

In some embodiments, sending the first signal to the candidate controlled devices includes:
sending the first signal to the candidate controlled devices through access gateways between the main control device and the candidate controlled devices.

In some embodiments, the main control device stores device identifiers of the candidate controlled devices, and sending the control instruction to the target controlled device includes:
sending the control instruction to the target controlled device according to the device identifier of the target controlled device.

In some embodiments, the control instruction carries indication information that represents a device type; and.

According to a second aspect of the disclosure, there is provided a device control method as defined by claim <NUM>.

In some embodiments, receiving the first signal sent by the main control device according to the received control instruction includes:
receiving the first signal sent by the main control device according to the received control instruction through an access gateway between the main control device and the controlled device.

In some embodiments, the discovery request signal is a discovery request signal for Wi-Fi direct communication; and the discovery response signal is a discovery response signal for Wi-Fi direct communication;
or,
the discovery request signal is a discovery request signal of D2D communication; and the discovery response signal is a discovery response signal of D2D communication.

According to a third aspect of the disclosure, there is provided a control apparatus, which is applied to a main control device, as defined by claim <NUM>.

According to a fourth aspect of the disclosure, there is provided a device control apparatus, which is applied to a controlled device, as defined by claim <NUM>.

According to a fifth aspect of of the disclosure, there is provided a storage medium, as defined by claim <NUM>, including:
when instructions in the storage medium are executed by a processor of a main control device, the main control device can execute the device control method as described in the first aspect; or, when instructions in the storage medium are controlled by a processor of a controlled device, the controlled device can execute the device control method described in the second aspect.

The technical solutions provided by the embodiments of the disclosure may include the following beneficial effects.

In the embodiments of the disclosure, the main control device receives the control instruction, sends the first signal to each candidate controlled device, and receives the second signal including the second signal transmit power value fed back by each candidate controlled device, then the main control device determines the candidate controlled device corresponding to the minimum signal attenuation value as the target controlled device according to the received power values and the transmit power values of the second signals, and sends the control instruction to the target controlled device. Since the candidate controlled device corresponding to the minimum signal attenuation value is the device closest to the main control device, the nearby control can be achieved through the solution of the disclosure, without manually selecting the controlled device or configuring the location information in advance by the user. Therefore, the control intelligence of the Internet of Things devices is improved, and the user experience is improved.

The Internet of Things is an Internet in which things are connected with things. Generally, when a control device controls a certain type of other device based on the Internet of Things, it is an important issue to select which device to control. For example, if a mobile phone is used for controlling an air conditioner, and there are a plurality of air conditioners in the house, the issue of which air conditioner is controlled needs to be solved.

The implementations set forth in the following description of embodiments do not represent all implementations consistent with the disclosure. Instead, they are examples of apparatuses and methods consistent with aspects related to the disclosure as recited in the appended claims.

The terms "module," "sub-module," "circuit," "sub-circuit," "circuitry," "sub-circuitry," "unit," or "sub-unit" may include memory (shared, dedicated, or group) that stores code or instructions that can be executed by one or more processors. A module may include one or more circuits with or without stored code or instructions. The module or circuit may include one or more components that are directly or indirectly connected. These components may or may not be physically attached to, or located adjacent to, one another.

<FIG> is a first flow chart of a device control method shown in an embodiment of the disclosure, which is applied to a main control device. As shown in <FIG>, the device control method applied to the main control device includes the following steps.

In S11, a control instruction is received.

In S12, a first signal is sent to candidate controlled devices according to the control instruction.

In S13, second signals sent by the candidate controlled devices in response to the first signal are received; where the second signals carry transmit power values of the candidate controlled devices.

In S14, according to received power values for receiving the second signals by the main control devices, and the transmit power values of the candidate controlled devices carried in the second signals, the candidate controlled device corresponding to a minimum signal attenuation value is determined as a target controlled device.

In S15, the control instruction is sent to the target controlled device.

In the embodiments of the disclosure, the main control device may be a smart device or an Internet of Things household device that a user can carry, such as a smart phone, a smart wearable device, or a smart speaker. The controlled device may be an Internet of Things household device, such as a smart lamp, a smart curtain, or a smart TV.

In step S11, the main control device may receive a control instruction, and the control instruction may be a control instruction generated based on a manual operation of the user, or may be a voice instruction of the user. The control instruction may carry controlled information, for example, the control instruction may carry device type information of the controlled device and/or a function to be executed.

In step S12, the main control device sends a first signal to the candidate controlled devices according to the control instruction.

It should be noted that in the embodiments of the disclosure, there may be a plurality of candidate controlled devices, all of which can execute the control instruction. The main control device sends the first signal to each candidate controlled device that can execute the control instruction. In addition, in the embodiments of the disclosure, the main control device may send the first signal to the candidate controlled devices multiple times according to a time interval, so as to improve the success rate of receiving the first signal by the candidate controlled devices.

In an embodiment, the control instruction carries indication information that represents a device type, and.

In an embodiment, the indication information may directly indicate type information of the device type.

For example, if the control instruction is "turn on the air conditioner", the "air conditioner" belongs to device type information, and the main control device may send the first signal to all air conditioners in the house.

In another embodiment, the indication information may be indication information that indirectly determines the device type.

For example, if the control instruction is "switch to Hubei station", then the main control device may determine that the device type identification that can perform TV station switching is a TV based on "Hubei station", and thus sends the first signal to all the TVs in the house.

In an embodiment, sending the first signal to the candidate controlled devices includes:
sending the first signal to the candidate controlled devices through access gateways between the main control device and the candidate controlled devices.

In the embodiments of the disclosure, the main control device and the candidate controlled device may access the same local area network through the access gateway, so the main control device may send the first signal to the candidate controlled device through the access gateway. For example, the access gateway is a router or other network device that can provide a network access function.

It should be noted that in the embodiments of the disclosure, the main control device sends the first signal to the candidate controlled devices through the access gateway, the reason of which is as follows: the main control device has control authority for the devices belonging to the same user, and the main control device and the candidate controlled devices connected to the same gateway may belong to the same user, therefore, in the disclosure, the security of device control can be improved by using the access gateway to transfer the first signal when sending the first signal. In the disclosure, the way of the main control device sending the first signal to the candidate controlled device is not limited to the access gateway. For example, the main control device and the candidate controlled devices may also communicate based on Bluetooth communication, Wi-Fi direct connection or D2D communication, or the like.

In step S13, after the main control device sends the first signal to the candidate controlled devices, it may receive the second signals that carry the transmit power values of the candidate controlled devices fed back by the candidate controlled devices, and in step S14, based on the received power values for receiving the second signals by the main control device and the transmit power values of the candidate controlled devices carried in the second signals, the candidate controlled device corresponding to the minimum signal attenuation value is determined as the target controlled device.

As mentioned above, there may be a plurality of candidate controlled devices. Therefore, after the main control device sends the first signal to each candidate controlled device, it may receive the second signals fed back by the plurality of candidate controlled devices and carrying their own transmit power values.

However, when the signal is transmitted in a transmission medium, a part of the energy is converted into heat or absorbed by the transmission medium, which causes the signal strength (power) to be continuously weakened, that is, there is signal attenuation. The degree of signal attenuation is usually related to the transmission distance. The longer the transmission distance is, the larger the attenuation may be; and the shorter the transmission distance is, the smaller the attenuation may be. Therefore, the disclosure may determine the candidate controlled device corresponding to the minimum signal attenuation value as the target controlled device according to the received power values of the second signals and the transmit power values of the second signals. For example, if the candidate controlled device closest to the main control device among the plurality of candidate controlled devices has the smallest signal attenuation value, the candidate controlled device closest to the main control device is determined as the target controlled device.

In an embodiment of the disclosure, the locations of the candidate controlled devices are stored in the main control device, and the method further includes:.

It should be noted that the main control device may determine its current location based on the enabled positioning function, or it may obtain its own location based on the user's settings, so as to determine the relative location information between the location of each candidate controlled device and the main control device.

For example, according to the relative location information, it is determined whether there is any obstruction on a transmission path from any candidate controlled device to the main control device;.

The obstruction includes, but is not limited to, walls and/or home furnishings, etc..

For example, the main control device stores that the candidate controlled device A is in the bedroom <NUM> and the candidate controlled device B is in the bedroom <NUM>, and the main control device determines that it per se is in the living room based on the positioning function. Because there is a wall between the living room and each bedroom, when the main control device determines the signal attenuation corresponding to the candidate controlled device A based on the received second signal of the candidate controlled device A and the signal attenuation value corresponding to the candidate controlled device B based on the received second signal of the candidate controlled device B, the wall will affect the determination. The different coating materials on the wall, etc., make the signal attenuation different. Therefore, the disclosure may obtain the correction value of the signal attenuation value according to the location information of the candidate controlled device and the current location information of the main control device. For example, the main control device may store the signal attenuation coefficients of different walls to obtain the attenuation values of the signal excluded the affection of the wall, so as to accurately locate the target controlled device with the smallest signal attenuation value.

In an embodiment of the disclosure, the first signal includes a discovery request signal, and the second signal includes a discovery response signal.

Based on the first signal being a discovery request signal (discovery request), the candidate controlled device can send a discovery response signal (discovery response) to the main control device based on the end-to-end device communication mode, that is, the discovery response signal is a signal that is directly fed back to the main control device without being transferred by the transfer device when the candidate controlled device responds to the first signal.

It should be noted that, in the embodiments of the disclosure, when the main control device sends the first signal to the candidate controlled device using the access gateway relay mode, if the candidate controlled device determines that the type of the first signal is a discovery request signal after receiving the first signal, then it may feed back the second signal in an end-to-end device communication mode, and the main control device switches to the end-to-end device communication mode to receive the second signal. However, if the candidate controlled device and the main control device transfer the second signal through the access gateway, there is signal attenuation in the process of sending the second signal to the access gateway by the candidate controlled device, and there is also signal attenuation when forwarding the second signal to the main control device by the access gateway. Therefore, the transmit power value of the second signal received by the main control device cannot accurately reflect the spatial relationship between the main control device and the candidate controlled device, for example, it cannot accurately reflect the distance between the main control device and the candidate controlled device. Therefore, in the disclosure, when the main control device transfers the first signal through the access gateway, the candidate controlled device and the main control device both switch to the end-to-end device communication mode to exchange the second signal, which can improve the accuracy of determining the target controlled device by the main control device.

In an embodiment, the discovery request signal is a discovery request signal of Wi-Fi direct communication; the discovery response signal is a discovery request signal of Wi-Fi direct communication;
or,
the discovery request signal is a discovery request signal of D2D communication; the discovery response signal is a discovery response signal of D2D communication.

In this embodiment, the discovery request signal is the discovery request signal of Wi-Fi direct communication, and the discovery response signal is the discovery response signal of Wi-Fi direct communication, that is, the main control device and the candidate controlled device may communicate based on Wi-Fi direct connection technology, and the main control device obtains the second signal sent by the candidate controlled device based on Wi-Fi direct connection.

The discovery request signal may also be the discovery request signal of D2D communication, and the discovery response signal is the discovery response signal of D2D communication, that is, the main control device and the candidate controlled device may perform device-to-device communication based on D2D communication technology, and the main control device obtains the second signal sent by the candidate controlled device based on the D2D communication.

It should be noted that in the embodiments of the disclosure, the minimum signal attenuation value may be determined by a ratio between the transmit power value and the received power value of the second signal. If there is no signal attenuation, the ratio between the transmit power value and the received power value of the second signal should be <NUM>; and if there is signal attenuation, the greater the ratio between the transmit power value and the received power value, the smaller the signal attenuation. Therefore, the candidate controlled device corresponding to the minimum signal attenuation value may be the target controlled device closest to the main control device.

In an embodiment, according to the received power values for receiving the second signals by the main control device and the transmit power values of the candidate controlled devices carried in the second signals, determining the candidate controlled device corresponding to the minimum signal attenuation value to be the target controlled device, includes:.

In this embodiment, the differences between the transmit power values and the received power values may also be determined, and the candidate controlled device corresponding to the smallest difference is determined as the target controlled device. The smaller the difference, the less the signal attenuation, and the less signal attenuation may be due to that the main control device and the candidate controlled device are closer.

For example, the second signal sent by each candidate controlled device includes the transmit power value TxPower, and the received power value of the second signal received by the main control device is RxPower, then the power attenuation value FadePower may be obtained by the following formula (<NUM>):
<MAT>.

Based on the FadePower corresponding to different candidate controlled devices determined by the main control device, the candidate controlled device corresponding to the smallest difference may be determined as the target controlled device.

In step S15, after the target controlled device is determined, the main control device may send the control instruction to the target controlled device, so that the target controlled device responds to the control instruction.

In an embodiment, the main control device stores device identifiers of the candidate controlled devices, and sending the control instruction to the target controlled device includes:
sending the control instruction to the target controlled device according to the device identifier of the target controlled device.

In the embodiments of the disclosure, the main control device may store the device identifier of each candidate controlled device, and therefore, the control instruction may be sent to the candidate controlled device that is determined as the target controlled device based on the device identifiers of the candidate controlled devices. The device identifier of the target controlled device includes at least one of the following: a device serial number; a Universally Unique Identifier (UUID); and a physical address (Media Access Control Address, MAC). For example, in the disclosure, the main control device has uniquely identified the MAC address of each candidate controlled device.

In one embodiment, when there are a plurality of devices of the same type (such as a plurality of air conditioners) in the house and the mobile phone controls the air conditioner, the user is required to provide the specific name of the air conditioner to the mobile phone. If the user instructs the mobile phone to "turn on the air conditioner" in a room, even though there is one air conditioner in this room, the mobile phone does not know which air conditioner to turn on, and then a list of all air conditioners in the house will pop up for the user to choose. In another embodiment, when the smart speaker is used for control, the user needs to manually set in advance which room the speaker is in and which room the air conditioner is in. When the user gives the smart speaker a voice command to control the air conditioner, the smart speaker may know which air conditioner to control based on the location information set in advance.

<FIG> is an example diagram of the location of the main control device and the controlled devices in the space. As shown in <FIG>, there are <NUM> rooms (Room A, Room B, and Room C) in the house, and each room has an air conditioning. When the user is closest to Room C, he/she may turn on or off the air conditioner closest to the user simply by the instruction of "turn on (turn off) the air conditioner", without selecting "Turn on the air conditioner in Room C" or configuring the location information of the smart speaker and the air conditioner in advance by the user.

It may be understood that, in the embodiments of the disclosure, the main control device receives the control instruction, sends the first signal to each candidate controlled device, and receives the second signal including the transmit power value of the second signal fed back by each candidate controlled device. Therefore, according to the received power values and the transmit power values of the second signals, the candidate controlled device corresponding to the minimum signal attenuation value is determined as the target controlled device, and the control instruction is sent to the target controlled device. Since the candidate controlled device corresponding to the minimum signal attenuation value is the device closest to the main control device, the nearby control can be achieved through the solution of the disclosure, without the user manually selecting the controlled device or configuring the location information in advance. Therefore, the control intelligence of the Internet of Things devices is improved, and the user experience is improved.

<FIG> is a second flowchart of a device control method shown in an embodiment of the disclosure, which is applied to a controlled device. As shown in <FIG>, the device control method applied to the controlled device includes the following steps.

In S21, a first signal sent by a main control device according to a received control instruction is received.

In S22, in response to the first signal, a second signal is sent to the main control device; where the second signal carries a transmit power value of the controlled device; and the transmit power value is used for the main control device to determine a target controlled device that executes the control instruction from the controlled devices.

In S23, if the controlled device is determined to be the target controlled device, the control instruction sent by the main control device is received.

In the embodiments of the disclosure, the controlled device may be any device in the same indoor environment as the main control device. In step S21, the controlled device may receive the first signal sent by the main control device according to the control instruction, where the control instruction may be a control instruction generated based on a user's manual operation, or may be a user's voice instruction.

In step S22, the controlled device sends a second signal in response to the first signal to the main control device, and the second signal carries the transmit power value of the controlled device, so that the main control device can determine the target controlled device for executing the control instruction. In step S23, if the controlled device is determined to be the target controlled device, the control instruction sent by the main control device is received.

As mentioned earlier, when the signal is transmitted in the transmission medium, there will be signal attenuation. The degree of signal attenuation is usually related to the transmission distance. The longer the transmission distance is, the larger the attenuation may be, and the shorter the transmission distance is, the smaller the attenuation may be. Therefore, in the disclosure, through sending the second signals to the main control device by the controlled devices and carrying the transmit power values of the second signals, the main control device can determine the controlled device closer to itself based on the transmit power values. The controlled device closer to the controlled device is the target controlled device.

In an embodiment, receiving the first signal sent by the main control device according to the received control instruction includes:
receiving the first signal sent by the main control device according to the received control instruction through an access gateway between the main control device and the controlled device.

In the embodiment of the disclosure, the main control device and the controlled device may access the same local area network through the access gateway, and thus the controlled device may receive the first signal sent by the main controlled device through the access gateway. For example, the access gateway is a router or other network device that can provide network access functions.

It should be noted that in the embodiments of the disclosure, the controlled device receiving the first signal sent by the main control device is not limited to the way of using the access gateway. For example, the controlled device and the main control device may also communicate based on Bluetooth communication, Wi-Fi direct connection or D2D communication and other methods.

In an embodiment, the first signal includes a discovery request signal; the second signal includes a discovery response signal.

Based on the first signal being a discovery request signal, the controlled device may send a discovery response signal to the main control device based on the end-to-end device communication mode, that is, the discovery response signal is a signal directly fed back to the main control device without being transferred by a transfer device when responding to the first signal by the candidate controlled device.

It should be noted that, in the embodiments of the disclosure, if the controlled device receives the first signal sent by the main control device using the access gateway relay mode, after the controlled device receives the first signal whose type is the discovery request signal, it may switch to the end-to-end device communication mode to feed back the second signal to the main control device, and the main control device also switches to the end-to-end mode to receive the second signal.

In an embodiment, the discovery request signal is a discovery request signal of Wi-Fi direct communication; the discovery response signal is a discovery response signal of Wi-Fi direct communication;
or,
the discovery request signal is a discovery request signal of D2D communication; the discovery response signal is a discovery response signal of D2D communication.

In this embodiment, the discovery request signal is the discovery request signal of Wi-Fi direct communication, and the discovery response signal is the discovery response signal of Wi-Fi direct communication, that is, the main control device and the candidate controlled devices may perform communication based on Wi-Fi direct connection technology, and the main control device obtains the second signal sent by the candidate controlled device based on Wi-Fi direct connection.

The discovery request signal may also be the discovery request signal of D2D communication, and the discovery response signal is the discovery response signal of D2D communication, that is, the main control device and the candidate controlled devices may perform device-to-device communication based on D2D communication technology, and the main control device obtains the second signals sent by the candidate controlled devices based on the D2D communication.

It is understandable that, in the embodiments of the disclosure, the controlled device may receive the first signal sent by the main control device according to the received control instruction, and feed back to the main control device the second signal including the transmit power value of the second signal. In this way, the main control device can determine the target controlled device, and if the controlled device is determined to be the target controlled device, it receives the control instruction sent by the main control device. Through the solution of the disclosure, nearby control can be realized without the user manually selecting the controlled device and configuring the location information in advance, to improve the control intelligence of the Internet of Things device and improving the user experience.

<FIG> is a flow interaction diagram of a device control method shown in an embodiment of the disclosure. As shown in <FIG>, the device control method is applied to a main control device and a controlled device, and includes the following steps.

In S101, the main control device receives a control instruction.

In S102, the main control device sends a first signal to the controlled device according to the control instruction.

In S103, the controlled device sends a second signal to the main control device in response to the first signal; where the second signal carries a transmit power value of the controlled device.

In S104, according to a received power value of receiving the second signal and the transmit power value of the candidate controlled device carried in the second signal, the main control device determines the controlled device corresponding to the minimum signal attenuation value as the target controlled device.

In S105, the main control device sends the control instruction to the target controlled device.

It is understandable that, in the embodiments of the disclosure, the main control device receives the control instruction, sends the first signal to each controlled device, and receives the second signal including the second signal transmit power value fed back by each controlled device. Therefore, according to the received power values and the transmit power values of the second signals, the candidate controlled device corresponding to the minimum signal attenuation value is determined as the target controlled device, and the control instruction is sent to the target controlled device. Since the candidate controlled device corresponding to the minimum signal attenuation value is the device closest to the main control device, the nearby control can be achieved through the solution of the disclosure, without the user manually selecting the controlled device or configuring the location information in advance. Therefore, the user experience can be improved.

<FIG> is an apparatus diagram of a main control device in an embodiment of the disclosure. Referring to <FIG>, which is applied to the main control device, the apparatus includes:.

In some embodiments, the determining module <NUM> is specifically configured to determine a difference between the transmit power values and the received power values; and determine the candidate controlled device corresponding to the smallest difference as the target controlled device.

In some embodiments, the discovery request signal is a discovery request signal of Wi-Fi direct communication; the discovery response signal is a discovery response signal of Wi-Fi direct communication;
or,
the discovery request signal is a discovery request signal of D2D communication; the discovery response signal is a discovery response signal of D2D communication.

In some embodiments, the first sending module <NUM> is specifically configured to send the first signal to the candidate controlled devices through access gateways between the main control device and the candidate controlled devices.

In some embodiments, the second sending module <NUM> is specifically configured to send the control instruction to the target controlled device according to a device identifier of the target controlled device.

In some embodiments, the control instruction carries indication information that represents a device type; and
the first sending module <NUM> is specifically configured to send the first signal to a candidate controlled device corresponding to the device type represented by the indication information according to the indication information carried in the control instruction.

<FIG> is an apparatus diagram of a controlled device in an embodiment of the disclosure. Referring to <FIG>, which is applied to controlled device, the apparatus includes:.

In some embodiments, the third receiving module <NUM> is specifically configured to receive, through an access gateway between the main control device and the controlled device, the first signal sent by the main control device according to the received control instruction.

Regarding the apparatuses in the embodiments shown in <FIG>, the specific manner of performing operations of each module has been described in detail in the embodiments of the method, and detailed description will not be given here.

<FIG> is a block diagram showing an apparatus <NUM> according to an embodiment. For example, the apparatus <NUM> may be a main control device such as a smart phone or a smart speaker, and may also be a controlled device such as a smart air conditioner or a smart curtain.

Referring to <FIG>, the apparatus <NUM> may include one or more of the following components: a processing component <NUM>, a memory <NUM>, a power component <NUM>, a multimedia component <NUM>, an audio component <NUM>, an input/output (I/O) interface <NUM>, a sensor component <NUM> and a communication component <NUM>.

The processing component <NUM> typically controls overall operations of the apparatus <NUM>, such as the operations associated with display, telephone calls, data communications, camera operations and recording operations.

The memory <NUM> is configured to store various types of data to support the operation of the apparatus <NUM>. Examples of such data include instructions for any applications or methods operated on the apparatus <NUM>, contact data, phonebook data, messages, pictures, video, etc. The memory <NUM> may be implemented using any type of volatile or non-volatile memory devices, or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or an optical disk.

The multimedia component <NUM> includes a screen providing an output interface between the apparatus <NUM> and the user. The front camera and the rear camera may receive an external multimedia datum while the apparatus <NUM> is in an operation mode, such as a photographing mode or a video mode.

The audio component <NUM> is configured to output and/or input audio signals. For example, the audio component <NUM> includes a microphone ("MIC") configured to receive an external audio signal when the apparatus <NUM> is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory <NUM> or transmitted via the communication component <NUM>. In some embodiments, the audio component <NUM> further includes a speaker to output audio signals.

The sensor component <NUM> includes one or more sensors to provide status assessments of various aspects of the apparatus <NUM>. For instance, the sensor component <NUM> may detect an open/closed status of the apparatus <NUM>, relative positioning of components, e.g., the display and the keypad, of the apparatus <NUM>, a change in position of the apparatus <NUM> or a component of the apparatus <NUM>, a presence or absence of user contact with the apparatus <NUM>, an orientation or an acceleration/deceleration of the apparatus <NUM>, and a change in temperature of the apparatus <NUM>.

The communication component <NUM> is configured to facilitate communication, wired or wirelessly, between the apparatus <NUM> and other devices. The apparatus <NUM> may access a wireless network based on a communication standard, such as WiFi, <NUM>, or <NUM>, or a combination thereof. In one embodiment, the communication component <NUM> receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In one embodiment, the communication component <NUM> further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on a radio frequency identification (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.

In embodiments, the apparatus <NUM> may be implemented with one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components, for performing the above-described methods.

In embodiments, there is also provided a non-transitory computer-readable storage medium including instructions, such as included in the memory <NUM>, executable by the processor <NUM> in the apparatus <NUM>, for performing the above-described methods. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device, and the like.

There is provided a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a main control device, the main control device is enabled to execute a device control method, the method including:.

Alternatively, when the instructions in the storage medium are executed by a processor of a controlled device, the controlled device is enabled to execute the device control method, and the method includes:.

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed here. The disclosure is intended to cover any variations, uses, or adaptations of the disclosure following the general principles thereof and including such departures from the disclosure as come within known or customary practice in the art.

It will be appreciated that the disclosure is not limited to the exact construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof. It is intended that the scope of the disclosure only be limited by the appended claims.

The disclosure provides a device control method and apparatus, a device, and a storage medium.

According to an aspect of the disclosure, there is provided a device control method, which is applied to a main control device and includes:.

According to an aspect of the disclosure, there is provided a device control method, which is applied to a controlled device and includes:.

According to an aspect of the disclosure, there is provided a control apparatus, which is applied to a main control device, and the apparatus includes:.

In some embodiments, the determining module is specifically configured to determine differences between the transmit power values and the received power values; and determine a candidate controlled device corresponding to a smallest difference as the target controlled device.

In some embodiments, the first sending module is specifically configured to send the first signal to the candidate controlled devices through access gateways between the main control device and the candidate controlled devices.

In some embodiments, the second sending module is specifically configured to send the control instruction to the target controlled device according to a device identifier of the target controlled device.

In some embodiments, the control instruction carries indication information that represents a device type; and
the first sending module is specifically configured to send the first signal to the candidate controlled devices corresponding to the device type represented by the indication information according to the indication information carried in the control instruction.

According to an aspect of the disclosure, there is provided a control apparatus, which is applied to a controlled device and includes:.

In some embodiments, the third receiving module is specifically configured to receive the first signal sent by the main control device according to the received control instruction through an access gateway between the main control device and the controlled device.

According to an aspect of the disclosure, there is provided a device, the device including:.

According to an aspect of the disclosure, there is provided a storage medium, including:
when instructions in the storage medium are executed by a processor of a main control device, the main control device can execute the device control method as described in the first aspect; or, when instructions in the storage medium are controlled by a processor of a controlled device, the controlled device can execute the device control method described in the second aspect.

Claim 1:
A device control method, comprising:
receiving (S11), by a main control device, a control instruction;
sending (S12), by the main control device, a first signal to candidate controlled devices according to the control instruction;
receiving (S13), by the main control device, second signals sent by the candidate controlled devices in response to the first signal, wherein the second signals carry transmit power values of the candidate controlled devices;
determining (S14), by the main control device, a candidate controlled device corresponding to a minimum signal attenuation value as a target controlled device according to received power values for receiving the second signals by the main control device and the transmit power values of the candidate controlled devices carried in the second signals; and
sending (S15), by the main control device, the control instruction to the target controlled device.