Disclosure of Invention
In view of the above, an object of the present application is to provide a device driving method and apparatus, which are used to solve the problem of how to improve the accuracy of device selection in the prior art.
In a first aspect, an embodiment of the present application provides an apparatus driving method, which is applied to an intelligent home system, where the intelligent home system includes a cloud server, a mobile control terminal, a plurality of intelligent home apparatuses, and a router; the cloud server is in communication connection with the mobile control terminal and the plurality of intelligent household devices respectively; the router is in communication connection with the mobile control end and the plurality of intelligent household devices respectively; the router and the intelligent household equipment are relatively unchanged in position, and the method comprises the following steps:
the cloud server acquires a signal intensity variation trend between the mobile control terminal and the router;
the cloud server determines the predicted moving position of the mobile control end according to the signal intensity variation trend;
and the cloud server drives target equipment corresponding to the predicted mobile position to start in the plurality of intelligent household equipment.
In some embodiments, the driving, by the cloud server, a target device corresponding to the expected moving location among the plurality of smart home devices to start includes:
the cloud server identifies equipment type keywords in voice information sent by a user through the mobile control terminal, and determines the type of target equipment;
the cloud server screens out at least one device to be selected according with the type of the target device from the plurality of intelligent household devices;
and the cloud server drives the target equipment corresponding to the expected mobile position in the equipment to be selected to start.
In some embodiments, the driving, by the cloud server, of the candidate devices, the target device corresponding to the expected moving position is started, including:
and when the signal intensity variation trend is that the signal intensity becomes stronger, the cloud server takes the device to be selected with the weakest signal intensity with the router in the expected movement position as the target device and drives the target device to start.
In some embodiments, the driving, by the cloud server, of the candidate devices, the target device corresponding to the expected moving position is started, including:
and when the signal strength change trend is that the signal strength is weakened, the cloud server takes the candidate device with the strongest signal strength with the router in the expected mobile position as the target device and drives the target device to start.
In some embodiments, the driving, by the cloud server, of the candidate devices, the target device corresponding to the expected moving position is started, including:
and when at least two devices to be selected meeting the conditions of the target device exist in the expected mobile position, the cloud server acquires the near field communication signal strength between the mobile control terminal and the devices to be selected, and takes the devices to be selected with the strongest near field communication signal strength as the target device.
In a second aspect, an embodiment of the present application provides an apparatus driving device, which is applied to an intelligent home system, where the intelligent home system includes a cloud server, a mobile control terminal, a plurality of intelligent home devices, and a router; the cloud server is in communication connection with the mobile control terminal and the plurality of intelligent household devices respectively; the router is in communication connection with the mobile control end and the plurality of intelligent household devices respectively; the router and the position of intelligent household equipment are relatively unchanged, and the device comprises:
the acquisition module is used for acquiring the signal intensity variation trend between the mobile control terminal and the router;
the calculation module is used for determining the predicted movement position of the mobile control end according to the signal intensity variation trend;
and the driving module is used for driving the target equipment corresponding to the expected moving position in the plurality of pieces of intelligent household equipment to start.
In some embodiments, the drive module comprises:
the identification unit is used for identifying the equipment type key words in the voice information sent by the user through the mobile control terminal and determining the type of the target equipment;
the screening unit is used for screening out at least one device to be selected according with the type of the target device from the plurality of pieces of intelligent household equipment;
and the starting unit is used for driving the target equipment corresponding to the expected moving position in the equipment to be selected to start.
In some embodiments, the starting unit includes:
and the selection subunit is configured to, when at least two devices to be selected meeting the conditions of the target device exist in the expected mobile position, acquire, by the cloud server, the near field communication signal strength between the mobile control terminal and the device to be selected, and use the device to be selected with the strongest near field communication signal strength as the target device.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of the method described in any one of the first aspect and the related embodiments.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps of the method of any one of the first aspect and the related embodiments.
According to the device driving method provided by the embodiment of the application, the relative positions of the devices and the router are judged according to the signal strength between the devices and the router, the expected moving position of a user is predicted according to the signal strength variation trend between the mobile control end and the router in the fixed space, and the target device in the expected moving position is confirmed according to the relative positions of the smart home devices and the router in the fixed space. The method improves the accuracy of device selection, and improves the use convenience of the user because the device is selected to be driven according to the prediction made by the moving position of the user.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an equipment driving method, which is applied to an intelligent home system, wherein the intelligent home system comprises a cloud server, a mobile control terminal, a plurality of intelligent home equipment and a router; the cloud server is in communication connection with the mobile control terminal and the plurality of intelligent household devices respectively; the router is in communication connection with the mobile control end and the plurality of intelligent household devices respectively; the position of the router and the position of the smart home device are relatively unchanged, as shown in fig. 1, the method includes the following steps:
step S101, the cloud server acquires a signal intensity variation trend between the mobile control end and the router;
step S102, the cloud server determines an estimated moving position of the mobile control end according to the signal intensity variation trend;
step S103, the cloud server drives a target device corresponding to the estimated moving position to start up in the plurality of smart home devices.
Specifically, in step S101, the signal strength variation trend is a variation trend of the signal strength obtained after the mobile control terminal continuously collects the signal strength between the mobile control terminal and the router for a plurality of times within a certain time, the signal strength variation trend can reflect the movement trend of the user, and when the signal strength variation trend is gradually increased, it indicates that the user is gradually approaching the router; when the trend of the signal strength changes to be gradually weaker, the situation shows that the user is gradually far away from the router. The signal intensity variation trend can be obtained by analysis of the cloud server, or can be obtained by analysis of the mobile control terminal and then uploaded to the cloud server.
In step S102, the predicted movement position is a user movement area predicted by using a last position corresponding to the signal strength between the routers, which is acquired last by the mobile control terminal, as a starting point and combining a signal strength variation trend, and when the signal strength variation trend is gradually increased, the predicted movement position is all or part of the area from the last position to the router; when the trend of the signal strength change is gradually weakened, the mobile position is expected to be continuously far away from all or part of the router from the last position.
In step S103, the target device is at least one smart home device meeting the user requirement in the predicted mobile location.
When a user uses the mobile control terminal to initiate a starting request of the intelligent home equipment, the cloud server obtains the variation trend of the signal intensity, analyzes and obtains the predicted mobile position of the mobile control terminal, namely the predicted mobile area of the user, and then drives the intelligent home equipment which meets the user requirements in the predicted mobile position to start, so that the situation that the user position is easily interfered by judging through a plurality of pickup modules in the traditional scheme is avoided, the accuracy of equipment selection is improved, and the convenience in use of the user is improved.
In some embodiments, step S103, as shown in fig. 2, comprises:
step S1031, the cloud server identifies device type keywords in the voice information sent by the user through the mobile control terminal, and determines the type of the target device;
step S1032, the cloud server screens out at least one device to be selected according with the type of the target device from the plurality of intelligent household devices;
step S1033, the cloud server drives a target device corresponding to the predicted moving position in the candidate device to start.
Specifically, the cloud server performs semantic recognition on voice information of a user, extracts an equipment type keyword, and obtains a target equipment type by querying a mapping relationship between the equipment type keyword and the equipment type. For example, if the user says "i want to listen to music", the device type keyword may be extracted as "music", and the obtained target device type may be an intelligent sound device, or may include other intelligent home devices (such as an intelligent television) having the same music playing capability.
And screening out corresponding equipment from all the intelligent household equipment in the fixed space according to the type of the target equipment to serve as equipment to be selected, and selecting the optimal equipment in the expected mobile position as the target equipment to start. The optimal device may use a relative distance between the optimal device and the mobile control terminal as a priority condition, or use an implementation capability of the smart home device for a function corresponding to the device type keyword (for example, for "music", the music playing capability of the smart sound is strongest) as a priority condition.
The following illustrates a scheme with priority on the relative distance from the mobile control end:
in some embodiments, step S1033, comprises:
and step 201, when the signal intensity variation trend is that the signal intensity becomes stronger, the cloud server takes the device to be selected with the weakest signal intensity with the router in the predicted movement position as the target device, and drives the target device to start.
Step 202, when the signal strength variation trend is that the signal strength is weakened, the cloud server takes the candidate device with the strongest signal strength with the router in the expected moving position as the target device, and drives the target device to start.
Specifically, in a scheme that takes a relative distance from the mobile control terminal as a priority condition, it is necessary to select, as a target device, a device to be selected that is closest to the current position of the mobile control terminal among the predicted mobile positions of the mobile control terminal. In the application, the signal strength between the device and the router is taken as the relative position between the device and the router, so that when the signal strength variation trend is that the signal strength becomes stronger, the situation that the user is at a position close to the router is explained, and the target device closest to the current position of the mobile control end is the candidate device which is the weakest signal strength and the farthest relative position between the target device and the router in the expected mobile position; and in the case that the signal strength variation trend is weaker, the situation shows that the user is at a position far away from the router, and the target device closest to the current position of the mobile control end is the candidate device with the strongest signal strength and the closest relative position with the router in the expected mobile position.
In some embodiments, step S1033, comprises:
step 203, when at least two devices to be selected meeting the conditions of the target device exist in the expected mobile position, the cloud server obtains the strength of the near field communication signal between the mobile control terminal and the devices to be selected, and the devices to be selected with the strongest near field communication signal strength are taken as the target devices.
In particular, in some special cases, due to the installation position of the router in the fixed space, it may occur that the signal strength between two or more candidate devices and the router is the same and is the device closest to the current position of the mobile control end in the expected mobile position. This is because the signal strength between several candidate devices and the router is the same, but it may be that some devices are blocked by objects or walls, so that the signal strength between the devices and the router is weakened. In this case, the candidate device closest to the mobile control end needs to be determined with the aid of signal strength of near field communication (such as bluetooth) between the mobile control end and the candidate device.
The embodiment of the application also provides a device driving device, which is applied to an intelligent home system, wherein the intelligent home system comprises a cloud server, a mobile control terminal, a plurality of intelligent home devices and a router; the cloud server is in communication connection with the mobile control terminal and the plurality of intelligent household devices respectively; the router is in communication connection with the mobile control end and the plurality of intelligent household devices respectively; the position of the router and the position of the smart home device are relatively unchanged, as shown in fig. 3, the apparatus includes:
an obtaining module 30, configured to obtain a signal strength variation trend between the mobile control end and the router;
a calculating module 31, configured to determine an expected moving position of the mobile control end according to the signal strength variation trend;
and the driving module 32 is configured to drive a target device corresponding to the expected moving position in the plurality of smart home devices to start.
In some embodiments, the driving module 32 includes:
an identifying unit 321, configured to identify a device type keyword in the voice information sent by the user through the mobile control end, and determine a target device type;
the screening unit 322 is configured to screen at least one device to be selected that meets the type of the target device from the multiple pieces of smart home devices;
a starting unit 323, configured to drive a target device corresponding to the expected moving position in the candidate device to start.
In some embodiments, the starting unit 323 includes:
a first judging subunit 3231, configured to, when the trend of change of the signal strength is that the signal strength becomes stronger, regard, as the target device, the device to be selected that is weakest in signal strength with the router in the expected moving position, and drive the target device to start.
And a second determining subunit 3232, configured to, when the trend of change of the signal strength is that the signal strength is weakened, regard, as the target device, the candidate device with the strongest signal strength with the router in the expected moving position, and drive the target device to start.
In some embodiments, the starting unit 323 includes:
a selecting subunit 3233, configured to, when at least two devices to be selected that meet the conditions of the target device exist in the expected moving position, obtain, by the cloud server, the near field communication signal strength between the mobile control end and the device to be selected, and use the device to be selected that has the strongest near field communication signal strength as the target device.
Corresponding to a device driving method in fig. 1, an embodiment of the present application further provides a computer device 400, as shown in fig. 4, the device includes a memory 401, a processor 402, and a computer program stored in the memory 401 and executable on the processor 402, wherein the processor 402 implements the device driving method when executing the computer program.
Specifically, the memory 401 and the processor 402 can be general memories and processors, which are not limited in particular, and when the processor 402 runs a computer program stored in the memory 401, the device driving method can be executed, which solves the problem of how to improve the accuracy of device selection in the prior art.
Corresponding to a device driving method in fig. 1, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the device driving method.
Specifically, the storage medium can be a general-purpose storage medium, such as a mobile disk, a hard disk, and the like, and when a computer program on the storage medium is executed, the device driving method can be executed, so as to solve the problem of how to improve the accuracy of device selection in the prior art. The method improves the accuracy of device selection, and improves the use convenience of the user because the device is selected to be driven according to the prediction made by the moving position of the user.
In the embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.