Patent Description:
With continuous development and improvement of technologies such as the Internet of Things and artificial intelligence, new functions of various smart home devices are constantly updated and iterated. Since many intelligent functions need to rely on expensive hardware, for example, a high-precision camera required for machine vision, a voice recognition module required for voice recognition, a high-resolution colorful large screen required for screen interaction and a high-speed processor required for large amounts of data operations, the addition of these hardware will greatly increase the manufacturing cost of smart home devices and many complex and difficult problems in the design and production will be faced. It is hard to accommodate more hardware in a limited space, which has high difficulty to be realized. When these smart home devices are on market, prices have often risen sharply, will be doubled or higher such that new smart products such as smart electrical appliances and smart home devices are unpopular.

In recent years, the technology of smart terminal products represented by mobile phones has been developed rapidly, functions and performance thereof have been continuously increased and improved, performance has begun to gradually surplus, prices have also been declining, these smart terminal products have been basically popular and most people own smart phones. However, in the current smart home device and system, smart terminals such as mobile phones are usually used as simple remote controls, and there is basically no interaction effect. For the user, the smart terminal is just a controller and brings no much use value in addition to remote control operation compared with the operation on an original device panel or screen.

<CIT> discloses a method and system for managing household devices.

<CIT> discloses an LED based illumination source with integrated communications and processing functions, which can communicate via wireless communications to a mobile phone, smart phone, smart pad, notebook, tablet, desktop or other computing device.

In view of the shortcomings of the prior art, the present application is to provide a method, a medium, a mobile terminal and an apparatus for controlling a smart home device.

The technical solution of the present application to solve the above technical problems is as follows. A method for controlling a smart home device includes: obtaining a distance between a target home device and a mobile terminal, and obtaining device information of the target home device when the distance is less than or equal to a preset distance; and.

According to an embodiment of the present application, the obtaining the distance between the target home device and the mobile terminal includes:
scanning and detecting a short-distance wireless communication signal transmitted by the target home device, and calculating the distance between the target home device and the mobile terminal according to a signal strength value of the short-distance wireless communication signal.

Further, according to an embodiment of the present application, the short-distance wireless communication signal is a near-field communication signal.

The obtaining the device information of the target home device when the distance is less than or equal to a preset distance includes:.

Further, according to an embodiment of the present application, obtaining device information of the target home device when the distance is less than or equal to a preset distance includes:.

Further, according to an embodiment of the present application, the method for controlling the smart home device further includes: when a member of a target home device matched with the device identifier is not present in the device list, querying, in a cloud server, whether the target home device is connected in a network based on the device identifier; and
obtaining the device information of the target home device when the target home device is connected in a network.

Further, according to an embodiment of the present application, obtaining the device information of the target home device when the target home device is connected in a network includes:.

Further, according to an embodiment of the present application, obtaining device information of the target home device when the distance is less than or equal to a preset distance further includes:.

Further, according to an embodiment of the present application, the short-distance wireless communication signal is a Bluetooth signal or a radio frequency signal.

The method for controlling the smart home device according to the embodiment of the present application has the following technical effects that by approaching a target home device and obtaining device information thereof, and executing a device control program of a corresponding target home device according to the device information, the home device can be controlled intelligently, user's operation can be simplified, and a user experience of the home device can be improved. Full use of hardware multiplexing of a mobile terminal can enrich the function of the home device without significantly increasing the hardware cost of the home device, and reduce the design difficulty and complexity of the home device.

According to an embodiment of the present application, a computer-readable storage medium having stored thereon computer programs is provided, the computer programs are executed by a processor to implement the steps of the method.

According to an embodiment of the present application, a mobile terminal for controlling a smart home device is further provided, including the computer-readable storage medium and the processor, and the processor implements the steps of the method when executing the computer programs on the computer-readable storage medium.

Further, according to an embodiment of the present application, the mobile terminal may be a smart phone, a tablet computer, or a PDA.

According to an embodiment of the present application, a smart home device control apparatus is further provided, including:.

Further, according to an embodiment of the present application, the sensing module includes:
a sensing submodule configured to scan and detect a short-distance wireless communication signal transmitted by the target home device, and calculate the distance between the target home device and the mobile terminal according to a signal strength value of the short-distance wireless communication signal.

The sensing module also includes an identifying submodule and a querying submodule;.

Further, the sensing module further includes a reading submodule configured to read a device identifier of the target home device corresponding to the short-distance wireless communication signal when the distance is less than or equal to a preset distance threshold; and
the querying submodule is configured to determine whether the device identifier of the target home device matches that pre-stored in a device list and obtain the device information of the target home device corresponding to the device identifier when the device identifier of the target home device matches the device identifier pre-stored in a device list.

Further, according to an embodiment of the present application, the querying submodule is further configured to: query, when there is no target home device member in the device list matched with the device identifier of the target home device, in a cloud server whether the target home device is connected in a network based on the device identifier of the target home device; and
obtain the device information of the target home device when the target home device is connected in a network.

Further, according to an embodiment of the present application, the querying submodule is further configured to:.

Further, according to an embodiment of the present application, the sensing module further includes a prompting submodule configured to:.

Further, according to an embodiment of the present application, the sensing module further includes a detecting submodule configured to detect a change trend of signal strength of the short-distance wireless communication signals, determine a home device with a signal strength increasing fastest as a target home device, and obtain the device information of the target home device, depending on scanning of short-distance wireless communication signals transmitted by the plurality of home devices.

The mobile terminal further includes a sending module; and
the sending module is configured to feed control state information indicating that the target home device is in a controlled state back to the target home device.

Further, according to an embodiment of the present application, the mobile terminal for controlling a smart home device further includes one or more of a voice module, an image acquiring module, and a display-input module. The voice module, image acquiring module, and display-input module are electrically connected to the above processing module respectively;.

The smart home device control apparatus in the embodiment of the present application has the following technical effects that by approaching a target home device and obtaining device information thereof, and executing a device control program of a corresponding target home device according to the device information, the home device can be intelligently controlled, user's operation can be simplified, and a user experience of the home device can be improved. Full use of hardware multiplexing of a mobile terminal can enrich the function of the home device without significantly increasing the hardware cost of the home device, and reduce the design difficulty and complexity of the home device.

According to an embodiment of the present application, a smart home device control system is further provided, including: a cloud server, at least one home device, and at least one mobile terminal for controlling a smart home device, wherein the cloud server is connected wirelessly to the at least one home device and the at least one mobile terminal, respectively and the at least one home device and the at least one mobile terminal are connected wirelessly.

Further, according to embodiment of the present application, the home device may be a TV, an electric rice cooker, a refrigerator, an air conditioner, a microwave oven, or a water heater.

The smart home device control system in the embodiment of the present application has the following technical effects that the home device can be intelligently controlled by the cloud server and the mobile terminals, which facilitates the user to approach a target home device and obtain device information thereof, and execute a device control program of a corresponding target home device according to the device information, and a user experience of the home device can be improved by simplifying user's operation. The use of hardware multiplexing of a mobile terminal can enrich the function of the home device without significantly increasing the hardware cost of the home device, and reduce the design difficulty and complexity of the home device.

The principles and features of the present application are described below in conjunction with the accompanying drawings. The examples are only used to explain the present application, and are not used to limit the scope of the present application.

The hardware of the smart home device control system generally consists of at least one smart home device, at least one smart terminal, and a cloud server. The smart home device is generally connected to the cloud server via a gateway (such as a router). The smart terminal may be connected to the cloud server via a cellular network or a WiFi network and is connected to the smart home in a wireless manner through WiFi (<NUM> protocol). The smart home device and the smart terminal are located in the same wireless local area network, etc., and can communicate with each other.

<FIG> shows a schematic diagram of a hardware configuration of a smart home device control method according to an embodiment of the present application, which includes a smart refrigerator, a cloud server, and a plurality of smart phones (only one smart phone is shown in the figure, but it is not limited thereto). The smart refrigerator is connected wirelessly with the cloud server via a router, the smart terminal is connected wirelessly with the smart refrigerator via a WiFi network, and the smart phone and the smart refrigerator are located in the same wireless local area network and are connected with each other via the wireless local area network.

As shown in <FIG>, a smart home device control method is used in a mobile terminal, and includes:
S11: obtaining a distance between a target home device and a mobile terminal, and obtaining device information of the target home device when the distance is less than or equal to a preset distance;
wherein the device information includes a unique device identifier corresponding to the target home device.

If a user needs to control the home device, e.g., refrigerator, the user needs to hold the mobile terminal and approach the home device, e.g., refrigerator, and obtain the device information when the distance between the mobile terminal and the home device, e.g. refrigerator is less than or equal to the preset distance, so that when the use moves closer to the refrigerator until reaches within a preset range, the unique device identifier of the target home device, e.g. refrigerator, can be directly read and the home device, e.g. refrigerator can be identified, thereby making a preparation for the subsequent control of the target home device.

S12: executing a device control program corresponding to the target home device according to the device information so as to control the target home device.

After the mobile terminal obtains the device information of the home device, e.g. refrigerator, the mobile terminal executes the device control program of a target refrigerator according to the obtained device information, so that the user may control the device control program of the refrigerator on the mobile terminal, the refrigerator may be successfully controlled, working parameters and working status of the refrigerator can be adjusted according to the user's control commands.

By approaching a target home device and obtaining device information thereof, and executing a device control program of a corresponding target home device according to the device information, the home device is intelligently controlled, user's operation is simplified, and a user experience of the home device is improved. The use of hardware multiplexing of a mobile terminal can enrich the function of the home device without significantly increasing the hardware cost of the home device, and reduce the design difficulty and complexity of the home device.

According to one or more embodiments of the present application, the obtaining the distance between the target home device and the mobile terminal may include:
scanning and detecting short-distance wireless communication signal transmitted by the target home device, and calculating the distance between the target home device and the mobile terminal according to a signal strength value of the short-distance wireless communication signal.

According to one or more embodiment of the present application, as shown in <FIG>, the short-distance wireless communication signal is a near-field communication signal.

Obtaining device information of the target home device when the distance is less than or equal to a preset distance may include:.

S22: determining whether the device identifier matches that pre-stored in a device list and obtaining the device information of the target home device when the device identifier matches the device identifier pre-stored in a device list.

According to one or more embodiments of the present application, as shown in <FIG>, obtaining device information of the target home device when the distance is less than or equal to a preset distance may include:.

For example, when the refrigerator is provided with a Bluetooth module, and will continuously transmit Bluetooth signals when working. When the user with the mobile terminal moves closer to the refrigerator, and the Bluetooth signal is detected, a distance between the refrigerator and the mobile terminal can be obtained by detecting strength of the Bluetooth signal and then performing a distance conversion, and when the calculated distance is less than or equal to the preset distance threshold (for example, <NUM>), the Bluetooth signal is analyzed to obtain a MAC address corresponding to the refrigerator as the device identifier and the refrigerator can be sensed and identified due to unique MAC address of each home device.

Here, the short-distance wireless communication signal includes but are not limited to radio frequency signals and Bluetooth signals, etc. Based on the short-distance wireless communication signal, the mobile terminal and the smart home device may be connected with each other and perform information interaction. Near-field wireless communication (NFC or Bluetooth) used for distance measurement and Wi-Fi used for communication may be different communication manners. For example, near-field wireless communication can ensure the accuracy of distance measurement. Wi-Fi has a power that cannot be too low so as to ensure global signal and has relatively poor ranging accuracy.

S32: determining whether the device identifier matches that pre-stored in a device list and obtaining the device information of the target home device when the device identifier matches the device identifier pre-stored in a device list.

After obtaining the device identifier (such as the unique MAC address of the device) corresponding to the refrigerator, the mobile terminal searches the pre-stored device list according to the device identifier of the refrigerator, the device list stores information of different home devices in user's home, including but not limited to device brand, device model, device identifier, MAC address, date of manufacture, quality guarantee period, etc. which is pre-stored in the device list one by one. After the device identifier of the home device is obtained by the mobile terminal, the home device may be determined to be a refrigerator, a corresponding device control program may be executed and displayed, which is convenient for the user to visually view and perform corresponding control operations.

Here, the above device list is pre-stored in the mobile terminal or cloud server. The device list stores information of the different home devices in user's home, including but not limited to device brand, device model, device identifier, MAC address, date of manufacture, quality guarantee period, etc., which are pre-stored in the device list one by one. After the device identifier of the home device is obtained by the mobile terminal, the mobile terminal searches the pre-stored device list according to the device identifier of the home device, the home device may be determined to be a refrigerator, a corresponding device control program is executed and displayed, which is convenient for the user to visually view and perform corresponding control operations. According to one or more embodiments of the present application, when a target home device member matched with the device identifier is not present in the device list, it may query in a cloud server whether the target home device is connected in a network identifier based on the device; and the device information of the target home device is obtained when the target home device is connected in a network.

In practice, when a member of a target home device matched with the device identifier is not present in the device list or the user has just purchased a new home device and has not completed the configuration, the mobile terminal queries the target home device in the cloud server according to the obtained device identifier and obtains a network-connecting state of the target home device, and the user accesses the cloud server through the mobile terminal and obtains the device information of the target home device when the home device has been connected in a network. In this case, the mobile terminal indirectly completes the control of the target home device through the cloud server.

It should be particularly noted that when the mobile terminal queries the above-mentioned target device in the cloud server according to the obtained device identifier, and obtains that the home device is in a network-disconnecting state, the user needs to first connect the target home device in a network, and then obtains the device information of the target home device according to the above-mentioned steps after it is connected in the network. It is a prior art how to connect the network, which will not be described in detail in the embodiments of the present application.

According to one or more embodiments of the present application, when the target home device is connected in a network, the following steps are further included:
determining whether the target home device is a family member according to the device identifier, and obtaining the device information of the target home device when the target home device is a family member; otherwise, sending a control request for using the device to the cloud server, and obtaining the device information of the target home device depending on receiving of an use authorization transmitted by the cloud server when the target home device is not the family member.

Here, when the target home device is in a network-connecting state, the user's identity information needs to be verified to ensure the security of the home device. In an embodiment of the present application, it can be determined that whether the target home device is a family member according to the device identifier. For example, when the home device corresponding to the device identifier is present in a family member list, the home device is a family member and the home device is not a family member when the home device corresponding to the device identifier is not present in a family member list. In this case, the user sends a control request for using the device to the cloud server through the mobile terminal. After the cloud server receives the control request for using the device, it can use key verification permission and other methods to perform a verification, and send use authorization to the mobile terminal after the verification is passed so that the mobile terminal may enter a control page corresponding to the target home device after receiving the use authorization so as to control the target home device, which is very convenient and greatly improves the control security of the home device.

According to one or more embodiments of the present application, the obtaining the device information may further include: generating a selection prompt message to select a home device from a plurality of home devices by a user, and determining the home device as a target home device, and obtaining the device information of the target home device, when short-distance wireless communication signals transmitted by the plurality of home devices are scanned, distances corresponding to the short-distance wireless communication signals are all less than or equal to a first preset distance threshold, and distances between a closet home device and other home devices are all less than or equal to a second preset distance threshold,
wherein, the first preset distance threshold is greater than the second preset distance threshold.

In practice, since there usually have a plurality of home devices in the user's home, it is likely to detect short-distance wireless communication signals transmitted by different home devices when the mobile terminal carried by the user scans the short-distance wireless communication signals transmitted by the home device. In this case, the mobile terminal needs to determine which one of the home devices needs to be controlled by the user, otherwise the corresponding home device control program cannot be accurately executed subsequently. In the embodiment of the present application, when the short-distance wireless communication signals transmitted by different home devices are scanned, the distance between the plurality of home devices corresponding to the short-distance wireless communication signals and the mobile terminal is calculated. When distances between a plurality of home devices and the mobile terminal are all less than or equal to a first preset distance threshold, especially when distances between the closest home device and other home devices are all less than or equal to a second preset distance threshold, it is impossible to determine which one of the home devices is the target home device. In this case, the mobile terminal will automatically generate a prompt message containing the plurality of home devices whose distance to the mobile terminal is less than or equal to the first preset distance threshold to allow the use to choose a specific home device. The mobile terminal may accurately determine the target home device after receiving a selection command input by the user and obtain the device information of the target home device.

As shown in <FIG>, for example, when the user enters a kitchen and needs to control the home device, e. refrigerator, other home devices in the kitchen, such as an electric rice cooker and a disinfection cabinet, etc. are also working normally, and the mobile terminal will receive short-distance wireless communication signals transmitted by the plurality of home devices and even receive short-distance wireless communication signals transmitted by washing machines on the balcony and air conditioners in restaurants. In this case, the distance between the mobile terminal and the plurality of home devices are all less than or equal to the first preset distance threshold and the distances between the refrigerator, a rice cooker and a disinfection cabinet are all less than or equal to the second preset distance threshold, and the target home device cannot be accurately determined. In this case, the mobile terminal automatically generates a prompt message "Please select a target home device: refrigerator, rice cooker, or disinfection cabinet". The user selects the refrigerator on the mobile terminal, and the mobile terminal determines the refrigerator as the target home device according to the control command entered by the user, and obtains the device information of the home device, so that the mobile terminal may accurately execute a device control program of the target home device according to the device information, thereby controlling the target home device.

According to one or more embodiments of the present application, obtaining device information of the target home device when the distance is less than or equal to a preset distance further includes: detecting a change trend of signal strength of the short-distance wireless communication signals, determining a home device with the fastest increase in signal strength as a target home device, and obtaining the device information of the target home device, when distances corresponding to scanned short-distance wireless communication signals transmitted by the plurality of home devices are all less than or equal to a first preset distance threshold, and distances between a home device having the closest distance and other home devices are all less than or equal to a second preset distance threshold, wherein the first preset distance threshold is greater than the second preset distance threshold.

In practice, when a user needs to control the target home device, the user will approach the target home device. During the approaching, when the short-distance wireless communication signals transmitted by different home devices are scanned, signal strengths of the short-distance wireless communication signals will be changed, for example, the signal strength will decrease, increase, first decrease and then increase, first increase and then decrease, etc, and the signal strength of the target home device that needs to be controlled will gradually increase, and finally, the signal strength is increased fastest as the distance to the mobile terminal become small, with the remaining home devices having a signal strength decreasing, increasing, or increasing first and then decreasing and having a distance to the mobile terminal becoming greater than the distance between the target home device and the mobile terminal. Therefore, in the embodiment of the present application, the home device with the fastest increase in signal strength is determined as the target home device by detecting the trend of the signal strength change of the short-distance wireless communication signals.

For example, when a user enters a living room and needs to control an air conditioner <NUM> as the target home device, during approaching of the user to the air conditioner <NUM>, short-distance wireless communication signals transmitted by different home devices are scanned by the mobile terminal, and the strength change of the short-distance wireless communication signals of different home device are different. As for the air conditioner <NUM>, when the user is approaching, the mobile terminal detects that the signal strength of the short-distance wireless communication signal transmitted by the air conditioner <NUM> has the fastest increase, and when the user stops approaching, the distance between the mobile terminal and the air conditioner <NUM> is less than the first preset distance threshold, it can be determined the air conditioner <NUM> as the target home device, and the mobile terminal obtains the device information of the air conditioner <NUM>.

According to one or more embodiments of the present application, as shown in <FIG>, the smart home device control method further includes the following steps:
S13: feeding back to, the target home device, control state information indicating that the target home device is in a controlled state.

Here, the home device is in the intelligent control state after the mobile terminal starts the device control program of the target home device, and the home device can be controlled very conveniently on the mobile terminal. The control state information is then fed back to the home device to show it is in the controlled state, so that it can be displayed in forms of lights, text, etc., and displayed in a more intuitive manner to inform the user and his family that the home device is currently in a controlled state, thereby successfully providing the intelligent control of the home device.

For example, after the mobile terminal starts the device control program of the target home device, such as an air conditioner, the mobile terminal feeds back to the air conditioner the status information indicating that it is in a controlled state, which can be displayed in a flashing manner.

According to one or more embodiments of the present application, as shown in <FIG>, the smart home device control method further includes the following steps:.

When a member of a target home device matched with the device identifier is not present in the device list, whether the refrigerator as the target home device is connected in a network based on the device identifier is queried in the cloud server; and the device information of the refrigerator is obtained when the refrigerator is connected in the network. When the refrigerator is not connected in the network, the user needs to connect the refrigerator in a network first, and then obtain the device information of the target household appliance according to the above steps.

According to one or more embodiments of the present application, the smart home device control method further includes the following steps:.

The refrigerator can be controlled as follows: the user clicks the function of adding ingredients through the mobile terminal, controls the mobile terminal to turn on the camera, uses the mobile terminal to identify the ingredients (by taking photos of the ingredients or by the barcode on the ingredients, two-dimensional code, etc.), and obtain food-related information from the cloud server, automatically recommends suitable placement locations based on the type of food, expiration date and other information, and the user can be guided to place them and can also view the food in the refrigerator through the mobile terminal. In addition, the mobile terminal will also calculate the appropriate temperature and gear based on the ingredients stored in the refrigerator and weather changes, and control the refrigerator to adjust the operating temperature and gear, and start to calculate the expiration date and best consumption time of the ingredients when the user stores the ingredients, and the mobile terminal generates a reminder message when the expiration date is approaching. The mobile terminal can also query the cloud server for a recipe library based on the ingredients stored in the refrigerator, and generate recipe information and recommend it to the user, so that the user can use the ingredients in a timely and healthy manner.

In the present embodiment, without adding a camera module, a large color screen, and other high-cost smart hardware, the intelligent functions such as the identification of the food in the refrigerator, the monitoring of the food, and the recommendation of the food recipe may be provided to the user based on the mobile terminal, which increases smart functions of the refrigerator, improves smart experience and reduces both the cost and selling price of the refrigerator.

According to an embodiment of the present application, a computer-readable storage medium on which computer programs are stored is further provided, and the computer programs are executed by a processor to implement the smart home device control method.

According to an embodiment of the present application, a mobile terminal for controlling a smart home device is further provided, including the computer-readable storage medium and the processor, and the processor implements the steps of the smart home device control method when executing the computer programs on the computer-readable storage medium.

According to one or more embodiments of the present application, the mobile terminals include, but are not limited to, smart terminals with interactive functions such as smart phones, tablet computers, or PDAs.

As shown in <FIG>, a smart home device control apparatus is further provided, including:.

By approaching a target home device and obtaining device information thereof through the sensing module, and executing a device control program of a corresponding target home device according to the device information through the processor, the home device is intelligently controlled, user's operation is simplified, and a user experience of the home device is improved. The use of hardware multiplexing of a mobile terminal can enrich the function of the home device without significantly increasing the hardware cost of the home device, and reduce the design difficulty and complexity of the home device.

According to one or more embodiments of the present application, the sensing module is configured to control the detection of the mobile terminal approaching the smart home device, which can be performed by NFC, or Bluetooth through ranging to a certain range by detecting RSSI. For detection of approaching, the sensing method is not limited to NFC/Bluetooth, as long as it detects approaching and can transmit information;
According to one or more embodiment of the present application, the sensing module includes:
a sensing submodule configured to scan and detect a short-distance wireless communication signal transmitted by the target home device, and calculate the distance between the target home device and the mobile terminal according to a signal strength value of the short-distance wireless communication signal.

According to one or more embodiment of the present application, the short-distance wireless communication signal is a near-field communication signal.

According to one or more embodiment of the present application, the sensing module further includes a reading submodule configured to read a device identifier of the target home device corresponding to the short-distance wireless communication signal when the distance is less than or equal to a preset distance threshold; and
the querying submodule is configured to determine whether the device identifier matches that pre-stored in a device list and obtain the device information of the target home device corresponding to matched device identifier when the device identifier matches the device identifier pre-stored in a device list.

According to one or more embodiments of the present application, when a member of a target home device matched with the device identifier is not present in the device list, the querying submodule queries the cloud server for whether the target home device is connected in a network based on the device identifier; and the device information of the target home device is obtained when the target home device is configured with the network.

According to one or more embodiments of the present application, the querying submodule is further configured to determine, when the target home device is connected in a network, whether the target home device is a family member according to the device identifier, and obtaining the device information of the target home device when the target home device is a family member; and sending a control request for using the device to the cloud server, and obtaining the device information of the target home device according to received use authorization transmitted by the cloud server when the target home device is not the family member.

According to one or more embodiment of the present application, the sensing module further includes a prompting submodule:
the prompting submodule is configured to generate a selection prompt message, select a home device from a plurality of home devices by a user, and determine the home device as a target home device, and obtain the device information of the target home device, when short-distance wireless communication signals transmitted by the plurality of home devices are scanned, distances corresponding to the short-distance wireless communication signals are all less than or equal to a first preset distance threshold, and distances between a home device having the closest distance and another home device are all less than or equal to a second preset distance threshold, wherein the first preset distance threshold is greater than the second preset distance threshold.

According to one or more embodiment of the present application, the sensing module further includes a detecting submodule configured to detect a change trend of signal strength of the short-distance wireless communication signals, determine a home device with a signal strength increasing fastest as a target home device, and obtain the device information of the target home device, depending on scanning of short-distance wireless communication signals transmitted by different home devices.

According to one or more embodiment of the present application, the mobile terminal further includes a sending module:
the sending module is configured to feed back to the target home device control state information indicating that the target home device is in a controlled state.

According to one or more embodiment of the present application, the mobile terminal for controlling a smart home further includes one or more of a voice module, an image acquiring module, and a display-input module. The voice module, image acquiring module, and display-input module are electrically connected to the processor respectively;.

As shown in <FIG>, a smart home device control system is further provided, including: a cloud server, at least one home device, and at least one mobile terminal for controlling the smart home. The cloud server and the home device are connected wirelessly with the mobile terminal, respectively. When the user makes the mobile terminal move closer to the home device, the mobile terminal senses the device tag (such as NFC tag) of the home device or receives the wireless information transmitted by the home device, and will automatically establish connections with home device through the NFC radio frequency signal, Bluetooth signal or Wi-Fi Signals, etc..

The home device is intelligently controlled by the cloud server and the mobile terminals, which facilitates the user to approach a target home device and obtain device information thereof, and enter a device control program of a corresponding target home device according to the device information, user's operation is simplified, and a user experience of the home device is improved. The use of hardware multiplexing of a mobile terminal can enrich the function of the home device without significantly increasing the hardware cost of the home device, and reduce the design difficulty and complexity of the home device.

According to one or more embodiments of the present application, the home device may be: a TV, an electric rice cooker, a refrigerator, an air conditioner, a microwave oven, or a water heater, etc., which have built-in wireless communication modules such as a Bluetooth module and a Wi-Fi module. Device tags or built-in tag modules (such as NFC modules) can be attached to the smart home device.

It will be clear to those skilled in the art that, for the convenience and brevity of the description, the specific working processes of the system, devices and units described above may be referred to the corresponding processes in the preceding method embodiments and will not be repeated herein.

In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.

If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or all or a part of the technical solution, which is essential or contributes to the prior art, may be embodied in the form of a software product, which is stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The storage medium described above includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like.

Claim 1:
A method for controlling a smart home device, comprising:
obtaining a distance between a target home device and a mobile terminal;
obtaining device information of the target home device when the distance is less than or equal to a preset distance; and
executing a device control program corresponding to the target home device based on the device information so as to control the target home device,
wherein the device information includes a unique device identifier corresponding to the target home device;
determining whether the device identifier of the target home device matches that pre-stored in a device list;
wherein when the device identifier of the target home device does not match any one pre-stored in the device list, querying, in a cloud server, whether the target home device is connected in a network based on the device identifier of the target home device; and
obtaining the device information of the target home device when the target home device is connected in the network; wherein
the obtaining the device information of the target home device when the target home device is connected in the network, comprises:
determining whether the target home device is a family member according to the device identifier;
obtaining the device information of the target home device when the target home device is the family member; and
sending, when the target home device is not the family member, a control request for using the target home device to the cloud server, and obtaining the device information of the target home device when an use authorization transmitted by the cloud server is received.