Equipment control method and device, control equipment, electronic equipment, storage medium and program product
By acquiring and analyzing the operation data of the smart device and determining control instructions based on configuration information, the problem of insufficient flexibility in traditional device control methods is solved, flexible and precise control of the smart device is achieved, and user operation experience is improved.
Patent Information
- Application Number
- CN202411053512.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-12-06
AI Technical Summary
Traditional device control methods have poor control flexibility for smart devices. Due to the fixed rotation method, it is impossible to flexibly select and control the controlled devices.
By acquiring the operation data of the target control device, the target controlled device and control instructions are determined based on the device control configuration information, the target controlled device and control instructions are determined based on the target direction and operating status in the operation data, and the instructions are sent to the controlled device. , realize flexible control of smart devices.
Improves control flexibility for controlled devices, and users can quickly adjust smart devices through physical operations, without turning on the phone or using voice control, providing a richer operating experience and higher control accuracy and perceptibility.
Smart Images

Figure CN119094258A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a device control method, apparatus, control device, electronic device, computer-readable storage medium and computer program product. Background Art
[0002] With the development of Internet of Things (IOT) technology, various smart devices are rapidly becoming popular, such as various smart home devices. There are more and more ways to control smart devices, and users can adjust smart devices through various controllers. For example, users can use a lamp dimming controller to adjust the brightness or color temperature of lamps.
[0003] However, conventional technologies such as lamp dimming controllers are limited to controlling specific controlled devices in fixed ways such as clockwise and counterclockwise rotation, and have poor flexibility in controlling the controlled devices. Summary of the invention
[0004] Based on this, it is necessary to provide a device control method, apparatus, control device, electronic device, computer-readable storage medium and computer program product to address the above technical problems.
[0005] In a first aspect, the present application provides a device control method, comprising:
[0006] Acquire operation data for target control equipment;
[0007] Based on the device control configuration information, a target controlled device and a corresponding target control instruction are determined according to the operation data; the target controlled device is determined according to a target direction of the operation for the target controlled device in the operation data; the target control instruction is determined according to an operation state in the target direction in the operation data;
[0008] The target control instruction is sent to the target controlled device to instruct the target controlled device to execute the target control instruction.
[0009] In a second aspect, the present application also provides a device control apparatus, comprising:
[0010] An acquisition module, used for acquiring operation data for a target control device;
[0011] A determination module, configured to determine a target controlled device and a corresponding target control instruction according to the operation data based on the device control configuration information; the target controlled device is determined according to a target direction of the operation for the target control device in the operation data; the target control instruction is determined according to an operation state in the target direction in the operation data;
[0012] The sending module is used to send the target control instruction to the target controlled device to instruct the target controlled device to execute the target control instruction.
[0013] In an exemplary embodiment, a determination module is used to determine the target controlled device, the target parameters for the target controlled device and the adjustment method for the target parameters based on the device control configuration information and the target direction in the operation data, and to determine the change characteristics of the target parameters under the adjustment method based on the operation state in the operation data; and to determine the target control instruction based on the target parameters, the adjustment method and the change characteristics.
[0014] In an exemplary embodiment, a determination module is used to determine, based on the device control configuration information, that the target controlled device is a first target controlled device, the target parameter is a first target parameter for the first target controlled device, and the adjustment method is a first adjustment method or a second adjustment method for the first target parameter if the target direction is a first direction or a second direction; wherein the first direction is opposite to the second direction, and the first adjustment method is opposite to the second adjustment method.
[0015] In an exemplary embodiment, a determination module is used to determine, based on the device control configuration information, that the target controlled device includes a first target controlled device and a second target controlled device, the target parameter includes a first target parameter for the first target controlled device and a second target parameter for the second target controlled device, and the adjustment method includes an adjustment method for the first target parameter and an adjustment method for the second target parameter if the target direction includes a first direction and a third direction; wherein the third direction is different from a second direction opposite to the first direction.
[0016] In an exemplary embodiment, a determination module is used to determine, based on the device control configuration information, that the target controlled device is a first target controlled device, the target parameters include first target parameters and third target parameters for the first target controlled device, and the adjustment method includes an adjustment method for the first target parameter and an adjustment method for the third target parameter if the target direction includes a first direction and a third direction; wherein the third direction is different from a second direction opposite to the first direction.
[0017] In an exemplary embodiment, the operating state includes an operation duration; a determination module is used to determine a parameter adjustment amount corresponding to the operation duration in the operating state based on the device control configuration information; the parameter adjustment amount is positively correlated with the operation duration; and the change characteristic is obtained based on the parameter adjustment amount.
[0018] In an exemplary embodiment, the operating state also includes an operating speed; a determination module is used to determine a parameter adjustment speed corresponding to the operating speed in the operating state based on the device control configuration information; the parameter adjustment speed is positively correlated with the operating speed; and the change characteristic is obtained based on the parameter adjustment amount and the parameter adjustment speed.
[0019] In an exemplary embodiment, the acquisition module is also used to determine the operation data component for the target control device in at least one direction based on the operation data; determine the direction in which the operation data component in at least one of the directions meets the threshold condition as the target direction; and determine the operation state based on the operation data component in the target direction.
[0020] In an exemplary embodiment, the acquisition module is further used to determine the operation duration of the target control device in the target direction according to the operation data; and determine the operation state according to the operation duration in the target direction.
[0021] In a third aspect, the present application further provides a control device, including: a motion sensor, a processor and a communication module; wherein:
[0022] The motion sensor is used to collect operation data for the control device;
[0023] The processor is configured to obtain the operation data collected by the motion sensor, and determine a target controlled device and a corresponding target control instruction according to the operation data based on the device control configuration information; the target controlled device is determined according to a target direction of the operation for the target control device in the operation data; the target control instruction is determined according to an operation state in the target direction in the operation data;
[0024] The processor is further configured to send the target control instruction to the target controlled device through the communication module to instruct the target controlled device to execute the target control instruction.
[0025] In a fourth aspect, the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the device control method of each embodiment of the present application when executing the computer program.
[0026] In a fifth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the device control method of each embodiment of the present application are implemented.
[0027] In a sixth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps in the device control method of each embodiment of the present application.
[0028] The above-mentioned device control method, apparatus, control device, electronic device, computer-readable storage medium and computer program product can flexibly configure device control configuration information for the control device, set controlled devices and control instructions corresponding to different directions and different operating states of the control device operation, so that the user's selection and control of the controlled device on the control device does not need to be restricted by the traditional technology of controlling specific devices in a fixed manner, thereby achieving flexible selection and control of the controlled device on the basis of convenient operation, and greatly improving the flexibility of controlling the controlled device. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0030] FIG1 is an application environment diagram of a device control method in one embodiment;
[0031] FIG2 is a schematic diagram of a flow chart of a device control method in one embodiment;
[0032] FIG3 is a flowchart of steps for determining devices and instructions in one embodiment;
[0033] FIG4 is a flow chart of the steps of determining the change characteristics under the adjustment mode in one embodiment;
[0034] FIG5 is a flow chart of the steps of determining the change characteristics under the adjustment mode in another embodiment;
[0035] 6(a) to 6(c) are schematic diagrams of configuration pages of device control configuration information in some embodiments;
[0036] FIG7 is a schematic diagram of the structure of a control device in one embodiment;
[0037] 8(a) to 8(c) are schematic diagrams of device control methods in some embodiments;
[0038] FIG9 is a schematic flow chart of a device control method in another embodiment;
[0039] FIG10 is a block diagram of a device control device in one embodiment;
[0040] FIG. 11 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] The device control method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1, which can be a smart home system. The smart home system may include: cloud / cloud servers, routers, gateways, user terminals (such as mobile phones, tablet computers), multiple devices (such as smart lamps, smart curtains, smart speakers, smart TVs, smart sockets, smart air conditioners, sensors, switches, smart door locks, control devices), etc. In the smart home system, each device can be connected to the gateway through the ZIGBEE / Bluetooth / matter network, and the gateway and user terminal can be connected to the router through WiFi respectively. In addition, the user terminal can also establish a network connection with the cloud / cloud server through 2G / 3G / 4G / 5G, WiFi, etc., so as to obtain the data sent by the cloud / cloud server.
[0043] For the smart home system, the system configuration method can be: the corresponding application is installed on the user terminal, and at least one gateway device can be added to the application first. When adding other devices (such as smart lamps), you can click the add device button in the application interface and select the gateway device that the device needs to access in the add interface. Then, the device can be added to the network corresponding to the gateway, and then form a local area network with other added devices and gateways, such as ZigBee network, Matter network, Bluetooth network, WIFI network, etc. When the application, router, and gateway are in the same local area network, the application can interact with the gateway and the devices connected to the gateway through the local area network path; when the application, router, and gateway are not in the same local area network, the application can interact with the gateway and the devices connected to the gateway through the wide area network path.
[0044] The smart home system shown in FIG1 may include smart lamps. The current technology provides a lamp dimming controller for controlling smart lamps, and its dimming knob generally can only adjust the brightness but does not support adjusting the color temperature or adjusting other controlled devices, resulting in poor flexibility in controlling the controlled devices.
[0045] In this regard, the method provided by the present application can flexibly configure device control configuration information for the control device, and can allow the user to set the controlled devices and control instructions corresponding to various operating states in various directions of the control device operation, so that the user's selection and control of the controlled device on the control device does not need to be restricted by the traditional technology of controlling specific devices in a fixed manner, thereby achieving flexible selection and control of the controlled device on the basis of convenient operation, greatly improving the flexibility of controlling the controlled device, and the user can quickly control and adjust the controlled device through direct physical operation of the control device, without having to turn on the mobile phone or control the controlled device by voice, providing a richer operation control experience, and also enabling the user to greatly improve the control ability and perception of the control operation accuracy in the interaction between the operation process of the control device and the real-time response of the controlled device.
[0046] The method of the present application is described in detail below in conjunction with various embodiments and corresponding drawings.
[0047] In an exemplary embodiment, the present application provides a device control method, which can be applied to a control device among multiple devices (device 1, ..., device n, where n represents the number of devices) in FIG1 , and the control device can be used to control a controlled device among the multiple devices. Exemplarily, the controlled device may include smart lamps, smart curtains, smart speakers, smart TVs, etc. As shown in FIG2 , the device control method of the present application may include the following steps:
[0048] Step S201: Acquire operation data for a target control device.
[0049] The target control device may be one of the control devices in the multiple devices shown in FIG1 , and may be used to control the controlled devices such as smart lamps, smart curtains, smart speakers, and smart TVs in the multiple devices. The target control device may be provided with an operating component, and the user may operate the operating component. The operation data is the operation data generated by the user's operation of the operating component of the target control device, and may be used to trigger the target control device to control the corresponding controlled device. The target control device may obtain the operation data generated by the user's operation of the operating component of the target control device.
[0050] Among them, the operation data may include the direction in which the user operates the target control device, and the direction in which the target control device is operated is recorded as the target direction. The operation data may also include the operation state of the user operating the target control device in the target direction, and the operation state is the state of operating in the target direction.
[0051] Regarding the target direction and operating status, as an example, the operating component of the target control device can allow the user to operate the target control device in multiple directions. The direction can be expressed in the form of a first direction, a second direction, a third direction, etc., wherein the first direction can correspond to an upward direction, the second direction can correspond to a downward direction, the third direction can correspond to a left direction, and so on. There is no specific limitation on this. The operating component can include a joystick, and the target control device can be a control device equipped with a joystick. The user can operate the joystick to generate operating data. The operating data may include the target direction of operating the joystick, and may also include the operating status in the target direction, wherein the operating status may include but is not limited to one or more of operating speed, operating acceleration, operating duration, and operating amplitude.
[0052] In some embodiments, the target direction may include two or more of the above-mentioned multiple directions. Accordingly, the operating state in the target direction may include the operating states in the two or more directions. The operating state in each of the directions may include but is not limited to one or more of the above-mentioned operating speed, operating acceleration, operating duration, and operating amplitude. The operating states in different directions may be completely the same, partially the same, or completely different, and are not limited here.
[0053] Step S202: Based on the device control configuration information, determine the target controlled device and the corresponding target control instruction according to the operation data. The target controlled device can be determined according to the target direction of the target control device operation in the operation data; the target control instruction can be determined according to the operation state in the target direction in the operation data.
[0054] Among them, the device control configuration information is configuration information used to control the controlled device, which can be obtained by the user through configuration in the application of the user terminal. The device control configuration information may include the controlled devices corresponding to each direction of operation of the target control device, and may also include control instructions corresponding to each operating state in each direction.
[0055] It can be understood that the control instruction can be used to control the corresponding control device, such as a control instruction to increase the brightness, a control instruction to reduce the brightness, a control instruction to increase the color temperature, a control instruction to reduce the color temperature, etc.
[0056] As described above, the target direction is the direction in which the user operates the target control device, and the operation state is the state in which the user operates the target control device in the target direction. The target direction and the operation state can be used to trigger the target control device to control the corresponding controlled device.
[0057] In this step, after the target control device obtains the operation data, it can determine the target controlled device and the corresponding target control instruction according to the operation data based on the device control configuration information. The target controlled device may include one or more of the aforementioned multiple controlled devices, and the target control instruction is a control instruction that needs to be executed by the target controlled device, such as a control instruction to increase brightness, a control instruction to reduce brightness, a control instruction to increase color temperature, a control instruction to reduce color temperature, etc.
[0058] In this step, the target controlled device can be determined according to the target direction of the target control device operation in the operation data, and the target control instruction can be determined according to the operation status in the target direction in the operation data. The determination of the target controlled device and the target control instruction can be performed based on the device control configuration information. The device control configuration information is the configuration information used for controlling the controlled device, and the device control configuration information can be obtained by the user through configuration in the application of the user terminal. The device control configuration information may include controlled devices corresponding to each direction of the target control device operation, and may also include control instructions corresponding to each operation status in each direction. Therefore, after obtaining the operation data, the target controlled device can be determined according to the target direction of the target control device operation in the operation data based on the device control configuration information, and the target control instruction can be determined according to the operation status in the target direction in the operation data.
[0059] As described above, the target direction may include two or more directions, and different directions may correspond to the same target controlled device, or may include different target controlled devices, so that the user may select a controlled device as the target controlled device by operating the target controlled device, or may simultaneously select, for example, two or more controlled devices as the target controlled devices. Accordingly, the operation state in the target direction may be used to determine the target control instruction, and if the target direction includes two or more directions, the user's operation state in the target direction may be used to determine the target control instruction for one controlled device or for multiple controlled devices at the same time.
[0060] Exemplarily, it can be used to determine one target control instruction for one controlled device, or multiple target control instructions for one controlled device, or multiple target control instructions for multiple controlled devices, which is not specifically limited here.
[0061] Step S203: sending the target control instruction to the target controlled device to instruct the target controlled device to execute the target control instruction.
[0062] In this step, the target control device may send the target control instruction to the target controlled device, and the target controlled device receives the target control instruction and executes the target control instruction.
[0063] In some embodiments, the target control device can send the target control instruction to the gateway, and the gateway can determine whether the target control device and the target controlled device are under the same gateway based on the target control instruction. If the target control device and the target controlled device are under the same gateway, the gateway can directly send the target control instruction to the target controlled device. If the target control device and the target controlled device are not under the same gateway, the gateway can send the target control instruction to the cloud, and the cloud sends the target control instruction to the target gateway where the target controlled device is located, and the target gateway sends the target control instruction to the target controlled device.
[0064] The method of this embodiment can flexibly configure device control configuration information for the control device, and set controlled devices and control instructions corresponding to different directions and different operating states of the control device operation, so that the user's selection and control of the controlled device on the control device does not need to be restricted by the traditional technology of controlling specific devices in a fixed manner, thereby achieving flexible selection and control of the controlled device on the basis of convenient operation, greatly improving the flexibility of controlling the controlled device.
[0065] In an exemplary embodiment, as shown in FIG. 3 , determining the target controlled device and the corresponding target control instruction according to the operation data based on the device control configuration information in step S202 may include:
[0066] Step S301, based on the device control configuration information, determine the target controlled device, the target parameters for the target controlled device and the adjustment method for the target parameters according to the target direction in the operation data, and determine the change characteristics of the target parameters under the adjustment method according to the operation state in the operation data.
[0067] The target parameter is a parameter that the user needs to control among one or more parameters of the target controlled device, such as the brightness of the smart lamp can be used as the target parameter, the color temperature of the smart lamp can be used as the target parameter, etc. The adjustment method is a method for adjusting the target parameter of the target controlled device, and the adjustment method can be a method for changing the target parameter, and the change can include increase, decrease, etc.
[0068] In this step, the target control device can determine the target controlled device, the target parameters for the target controlled device and the adjustment method for the target parameters based on the device control configuration information and the target direction in the operation data. The target control device can also determine the change characteristics of the target parameters under the adjustment method based on the operation status in the operation data based on the device control configuration information.
[0069] As an implementation method, the user can set the controlled device corresponding to the direction in the device control configuration information, such as the first direction corresponds to a smart lamp (or a smart curtain, etc.), and the parameters for the controlled device corresponding to the direction, such as the brightness of the smart lamp corresponding to the first direction (or the color temperature, etc.), and the adjustment method for the parameter corresponding to the direction, such as the first direction corresponds to an increase in brightness (or a decrease, etc.), thereby setting the corresponding controlled device, parameters and adjustment method for each direction.
[0070] The user can also set the change characteristics of the parameter corresponding to the operation state in the adjustment mode in the device control configuration information, wherein the change characteristics refer to the characteristics of the parameter change such as increase or decrease when the parameter is used as the target parameter and adjusted in the adjustment mode, and the change characteristics may include but are not limited to one or more of the amount of change, whether the change is continuous, and the speed of change. Therefore, after obtaining the operation data, the target control device can determine the corresponding target controlled device, target parameter and adjustment mode based on the device control configuration information according to the target direction in the operation data, and determine the change characteristics of the target parameter under the adjustment mode according to the operation state in the operation data.
[0071] Step S302, determining the target control instruction according to the target parameter, adjustment method and change characteristics.
[0072] In this step, the target control device may determine the corresponding target control instruction according to the target parameter, the adjustment method and the change characteristic, and then send the target control instruction to the target controlled device.
[0073] The solution of this embodiment allows users to flexibly configure the controlled devices, parameters and adjustment methods corresponding to each direction, and can also flexibly configure the change characteristics corresponding to various operating states in each direction, so as to make full use of the advantages of the operating direction and operating state dimensions and provide a more sophisticated, rich and flexible operation control method for the controlled devices.
[0074] In an exemplary embodiment, determining the target controlled device, the target parameter for the target controlled device, and the adjustment method for the target parameter according to the target direction in the operation data based on the device control configuration information in step S301 may include:
[0075] Based on the device control configuration information, if the target direction is the first direction or the second direction, the target controlled device is determined to be the first target controlled device, the target parameter is the first target parameter for the first target controlled device, and the adjustment method is the first adjustment method or the second adjustment method for the first target parameter; wherein the first direction is opposite to the second direction, and the first adjustment method is opposite to the second adjustment method.
[0076] As described above, the target direction is the direction in which the user operates the target control device. The operating component of the target control device allows the user to operate the target control device in multiple directions. The direction can be represented by a first direction, a second direction, a third direction, etc. The first direction and the second direction can be two opposite directions, such as the first direction can correspond to an upward direction, and the second direction can correspond to a downward direction.
[0077] In this embodiment, the target direction can be a first direction or a second direction, the first direction is opposite to the second direction, the first direction corresponds to the upward direction, and the second direction can correspond to the downward direction. If the target orientation is the first direction or the second direction, the target control device can determine that the target controlled devices are all first target controlled devices, that is, the two directions can correspond to the same target controlled device, and the same target controlled device is represented by the aforementioned first target controlled device, such as a smart lamp. The target parameters can all be first target parameters for the first target controlled device, that is, the controlled target parameter can be the same target parameter of the first target controlled device, and the same target parameter is represented by the aforementioned first target parameter, such as the brightness of the smart lamp.
[0078] As described above, the adjustment method is a method for adjusting the target parameter of the target controlled device, and the adjustment method may be a method for causing the target parameter to change, and the change may include increase, decrease, etc. The adjustment method may include a first adjustment method and a second adjustment method, the first adjustment method is an adjustment method for the first target parameter when the target direction is the first direction mentioned above, and the second adjustment method is an adjustment method for the first target parameter when the target direction is the second direction mentioned above, and the first adjustment method is opposite to the second adjustment method, such as the first adjustment method corresponds to increase, and the second adjustment method may correspond to decrease.
[0079] In this embodiment, for the adjustment method, when the target direction is the first direction, the adjustment method is the first adjustment method for the first target parameter, and when the target direction is the second direction, the adjustment method is the second adjustment method for the first target parameter. The first adjustment method is opposite to the second adjustment method. For example, the first adjustment method can correspond to an increase, and the second adjustment method can correspond to a decrease.
[0080] In this way, when the target direction of the target control device is opposite to the first and second directions, the user can control the same target parameter of the same controlled device in the opposite adjustment method. The operation is simple and intuitive and conforms to the general intuition of using the control device to control the controlled device, without the user having to invest too much cost to learn new operation control methods.
[0081] In an exemplary embodiment, determining the target controlled device, the target parameter for the target controlled device, and the adjustment method for the target parameter according to the target direction in the operation data based on the device control configuration information in step S301 may include:
[0082] Based on the device control configuration information, if the target direction includes a first direction and a third direction, it is determined that the target controlled device includes a first target controlled device and a second target controlled device, the target parameter includes a first target parameter for the first target controlled device and a second target parameter for the second target controlled device, and the adjustment method includes an adjustment method for the first target parameter and an adjustment method for the second target parameter; wherein the third direction is different from the second direction opposite to the first direction.
[0083] As mentioned above, the target direction is the direction in which the user operates the target control device. The operating components of the target control device allow the user to operate the target control device in multiple directions. The direction can be represented by the first direction, the second direction, the third direction, etc. The first direction and the second direction can be two opposite directions, and the third direction can be a direction different from the second direction opposite to the first direction. For example, the first direction can correspond to the upper direction, the second direction can correspond to the lower direction, and the third direction can correspond to the left direction (or the right direction, etc.). The target direction can include two or more directions from the above multiple directions, and different directions can correspond to different target controlled devices, so that the user can select two or more controlled devices as target controlled devices by operating the target controlled devices.
[0084] Among them, the target controlled device may include a first target controlled device and a second target controlled device. The first target controlled device may be a target controlled device corresponding to a first direction, and the second target controlled device may be a target controlled device corresponding to a third direction. The first target controlled device may be a smart lamp, and the second target controlled device may be a smart curtain.
[0085] Among them, the target parameters may include a first target parameter and a second target parameter. The first target parameter may be one of the parameters of the first target controlled device, such as the brightness of a smart lamp, etc., and the second target parameter may be one of the parameters of the second target controlled device, such as the opening and closing of a smart curtain, etc.
[0086] Among them, the adjustment method may include an adjustment method for a first target parameter and an adjustment method for a second target parameter. The adjustment method for the first target parameter may be, for example, increasing the brightness of the smart lamp, and the adjustment method for the second target parameter may be, for example, opening the smart curtains.
[0087] In this embodiment, the target direction may include a first direction and a third direction, and the third direction is different from a second direction that is opposite to the first direction. For example, the first direction may correspond to an upward direction, the second direction may correspond to a downward direction, and the third direction may correspond to a left direction (or a right direction, etc.). If the target direction includes both the first direction and the third direction, the target control device may determine that the target controlled device includes a first target controlled device and a second target controlled device.
[0088] If the target direction belongs to the upper left direction, the target control device can determine that the target direction includes a first direction (corresponding to the upper direction) and a third direction (corresponding to the left direction). Thus, the target control device can determine that the target controlled device includes a first target controlled device corresponding to the first direction and a second target controlled device corresponding to the third direction, such as the target controlled device includes a smart lamp corresponding to the first direction and a smart curtain corresponding to the third direction.
[0089] If the target direction includes both the first direction and the third direction, the target control device can also determine that the target parameters include a first target parameter for the first target controlled device and a second target parameter for the second target controlled device, and the adjustment method includes an adjustment method for the first target parameter and an adjustment method for the second target parameter.
[0090] In this way, the parameters that need to be adjusted for different controlled devices and their adjustment methods can be flexibly set in different directions. Users can adjust different controlled devices at the same time by operating the target control device to a certain direction, thereby improving the efficiency and flexibility of controlling different controlled devices through simple operation control methods.
[0091] In an exemplary embodiment, determining the target controlled device, the target parameter for the target controlled device, and the adjustment method for the target parameter according to the target direction in the operation data based on the device control configuration information in step S301 may include:
[0092] Based on the device control configuration information, if the target direction includes a first direction and a third direction, the target controlled device is determined to be a first target controlled device, the target parameters include a first target parameter and a third target parameter for the first target controlled device, and the adjustment method includes an adjustment method for the first target parameter and an adjustment method for the third target parameter; wherein the third direction is different from a second direction opposite to the first direction.
[0093] In this embodiment, the target direction may include a first direction and a third direction, where the third direction is different from a second direction opposite to the first direction.
[0094] As described above, the first direction can correspond to the upward direction, the second direction can correspond to the downward direction, and the third direction can correspond to the left direction (or the right direction, etc.). If the target direction includes both the first direction and the third direction, the target control device can determine that the target controlled device is the first target controlled device, that is, in this embodiment, the first direction and the third direction can both correspond to the same target controlled device, such as a smart lamp.
[0095] If the target direction includes both the first direction and the third direction, the target control device may also determine that the target parameter includes a first target parameter and a third target parameter for the first target controlled device.
[0096] The first target parameter and the third target parameter may be two different parameters of the first target controlled device. For example, the first target parameter may be the brightness of the smart lamp, and the third target parameter may be the color temperature of the smart lamp.
[0097] The target control device may also determine that the adjustment method includes an adjustment method for a first target parameter, such as increasing the brightness of the smart lamp, etc. The determined adjustment method may also include an adjustment method for a third target parameter, such as reducing the color temperature of the smart lamp.
[0098] In this way, different parameters that need to be adjusted and their adjustment methods of the same controlled device can be flexibly set in different directions, so that the user can adjust different parameters of the same controlled device at the same time by operating the target control device to a certain direction, thereby improving the efficiency and flexibility of controlling different parameters of the controlled device through simple operation control methods.
[0099] In an exemplary embodiment, the operation state may include the operation duration. As shown in FIG. 4 , determining the change characteristics of the target parameter in the adjustment mode according to the operation state in the operation data in step S301 may include:
[0100] Step S401: determining a parameter adjustment amount corresponding to an operation duration in an operation state based on device control configuration information; the parameter adjustment amount is positively correlated with the operation duration.
[0101] Step S402, obtaining a change characteristic according to the parameter adjustment amount.
[0102] In this embodiment, the operation status may include an operation duration, and the operation duration may be the duration for a user to operate a target control device once, and the operation duration may be obtained according to the operation status.
[0103] Among them, the parameter adjustment amount can be the amount used to adjust the target parameter, the unit operation time can be the statistical unit of the operation time, such as every 10 milliseconds can be used as the unit operation time, and the unit adjustment amount corresponding to the unit operation time can also be set accordingly. The unit adjustment amount can be the statistical unit of the parameter adjustment amount, such as 1% brightness can be used as the unit adjustment amount of the unit operation time of 10 milliseconds.
[0104] In this embodiment, parameter adjustment amounts or unit adjustment amounts corresponding to different operation durations or unit operation durations may be set in the device control configuration information. Thus, based on the device control configuration information, the corresponding parameter adjustment amount may be determined according to the operation duration in the operation state, and the parameter adjustment amount may be used as a variable feature. Among them, the parameter adjustment amount is positively correlated with the operation duration, that is, the longer the operation duration, the greater the parameter adjustment amount.
[0105] As an implementation mode, the parameter adjustment amount and the operation duration may be linearly positively correlated, thereby making the adjustment process of the controlled device uniform and continuous as the operation duration changes, and making the adjustment control of the controlled device more precise and controllable.
[0106] In one embodiment, the operation state may further include an operation speed. As shown in FIG5 , the change characteristics obtained according to the parameter adjustment amount in step S402 may include:
[0107] Step S501: determining a parameter adjustment speed corresponding to an operation speed in an operation state based on device control configuration information; the parameter adjustment speed is positively correlated with the operation speed.
[0108] Step S502, obtaining a change characteristic according to the parameter adjustment amount and the parameter adjustment speed.
[0109] In this embodiment, the operation state may further include an operation speed. The operation speed may be an operation speed of a user on a target control device in one operation. The operation speed may be obtained according to the operation state.
[0110] The parameter adjustment speed may be the speed of adjusting the target parameter, and the parameter adjustment speed may be positively correlated with the operation speed, that is, the faster the user operates the target control device, the faster the parameter adjustment speed.
[0111] In this embodiment, the parameter adjustment speeds corresponding to different operation speeds can be set in the device control configuration information. Thus, based on the device control configuration information, the corresponding parameter adjustment speed can be determined according to the operation speed in the operation state.
[0112] In addition, the parameter adjustment amount is determined. The target control device can use the parameter adjustment amount and the parameter adjustment speed as the change characteristics. For example, the change characteristics can include increasing the brightness of the smart lamp by L% at the parameter adjustment speed V. In this way, the operation speed and operation time can be fully utilized to enrich the control dimension of the controlled device and improve the precision of the control.
[0113] In an exemplary embodiment, after obtaining the operation data for the target control device in step S201, the method of the present application may further include the following steps:
[0114] According to the operation data, an operation data component for a target control device in at least one direction is determined; a direction in which the operation data component in at least one direction meets a threshold condition is determined as a target direction; and an operation state is determined according to the operation data component in the target direction.
[0115] The operation data component may be a component of the operation data in one or more directions obtained by performing operation data in the one or more directions.
[0116] The threshold condition may include a threshold condition of an operation displacement in a corresponding direction, and the threshold condition of the operation displacement may include a threshold value of the operation displacement that needs to be satisfied.
[0117] It can be understood that the operation displacement may be a displacement of the target control device in a direction, and may be a displacement of the joystick in a corresponding direction when an operation component of the target control device, such as a joystick, is operated.
[0118] In this embodiment, when the user operates the target control device, the target control device can detect the operation data in multiple directions to determine the target direction and then obtain the control state.
[0119] The operation data can be decomposed in multiple directions to obtain operation data components in at least one direction, such as the operation data can be decomposed into a first operation data component in a first direction and a second operation data component in a third direction, the first direction can be an upward direction, and the third direction can be a left direction. Then, it can be judged whether the first operation data component and the second operation data component meet the threshold condition respectively. The target control device can determine the operation displacement in the first direction and the third direction according to the first operation data component and the second operation data component respectively, and can judge whether the threshold condition of the operation displacement is met according to the operation displacement in the first direction and the third direction respectively. If both the first direction and the third direction meet the threshold condition, both the first direction and the third direction can be used as the target direction, and the target direction includes the first direction and the third direction.
[0120] Thus, the target control device can determine the operation state of each direction in the target direction according to the operation data component of each direction in the target direction. The solution of this embodiment can enable the target control device to accurately and effectively identify the target direction required by the user and determine the operation state of the corresponding direction when the operation is triggered by the user.
[0121] In an exemplary embodiment, after obtaining the operation data for the target control device in step S201, the method of the present application may further include the following steps:
[0122] According to the operation data, the operation duration of the target control device in the target direction is determined; and according to the operation duration in the target direction, the operation state is determined.
[0123] This embodiment provides a method for determining an operation state. In this embodiment, the target control device can determine the operation duration of the user on the target control device in each of the target directions according to the operation data, and according to the operation duration in each of the target directions, the operation state in each of the target directions can be determined respectively.
[0124] As a method, the operation duration of each direction in the target direction may be determined as the operation state of each direction.
[0125] Therefore, the target control device can obtain the operation status in the target direction by accumulating the user's single operation time of the target control device in the target direction, and it is convenient for the user to autonomously control the operation time, so as to intuitively and accurately increase or decrease the target parameters of the target controlled device.
[0126] In an exemplary embodiment, a device control method is also provided. In this embodiment, the device control configuration information can be configured first. As an example, some pages for configuring the device control configuration information are shown in Figures 6 (a) to 6 (c). You can click Add in the "When" area in the page shown in Figure 6 (a) to configure the control conditions triggered on the target control device. You can click Add in the "Just" area in the page shown in Figure 6 (a) to configure the response action performed by, for example, a smart lamp under the corresponding conditions. You can select the joystick to keep up, down, left, right, etc. as the control condition for the target control device through the page shown in Figure 6 (b). You can select the response action of brightness increase / decrease and color temperature increase / decrease for the smart lamp through the page shown in Figure 6 (c).
[0127] As an example, if the user selects holding the joystick upward as the control condition, and selects increasing the brightness as the response action, device control configuration information can be formed based on the control condition and the response action. After the target control device obtains the device control configuration information, if the user operates the joystick upward, the target control device can obtain the operation data. Based on the device control configuration information, the target control instructions for the smart lamp and increasing the brightness can be determined according to the operation data, and the target control instructions can be sent to the smart lamp. The smart lamp can then perform the response action of increasing the brightness according to the target control instructions.
[0128] Based on the target control device shown in FIG7 , the joystick can support multi-directional adjustment, which can greatly improve the flexibility of selecting and controlling the controlled devices. The feasible control methods of the target control device over the controlled devices can be explained by taking smart lamps, smart curtains, and smart speakers / smart TVs as examples.
[0129] For the smart lamp, as shown in FIG8 (a), the brightness can be adjusted by moving up and down, and the color temperature can be adjusted by moving left and right, wherein moving up can increase the brightness, moving down can reduce the brightness, moving left can reduce the color temperature, and moving right can increase the color temperature. Thus, if the joystick is kept in the upward operation state, the brightness of the smart lamp can continue to increase until the brightness reaches the maximum brightness of the smart lamp (such as 100%), and the smart lamp can stop responding to the control command of increasing the brightness triggered by the joystick.
[0130] If the joystick is kept in the downward operation state, the brightness of the smart lamp can continue to decrease until the brightness reaches the minimum brightness of the smart lamp (such as 1%), and the smart lamp can stop responding to the control instruction of reducing the brightness triggered by the joystick. Among them, the current state of the smart lamp can be used as the initial value. When the initial value of the brightness of the smart lamp is 70%, the brightness range adjusted upward by the joystick can include 70%-100%, and the brightness range adjusted downward can include 70%-1%, and so on.
[0131] If the joystick remains in the left operating state, the color temperature of the smart lamp can continue to decrease until the color temperature reaches the minimum color temperature of the smart lamp (such as 2700K), and the smart lamp can stop responding to the control instruction of reducing the color temperature triggered by the joystick.
[0132] If the joystick remains in the right operating state, the color temperature of the smart lamp can continue to increase until the color temperature reaches the maximum color temperature of the smart lamp (such as 6500K), and the smart lamp can stop responding to the control instruction of increasing the color temperature triggered by the joystick. Among them, the current state of the smart lamp can be used as the initial value. When the color temperature value of the smart lamp is 4000K, the color temperature range adjusted by the joystick to the left can include 4000K-2700K, and the color temperature range adjusted to the right can include 4000K-6500K, and so on.
[0133] Among them, the adjustment amount of brightness or color temperature can be linearly positively correlated with the operation time (operation duration) of the joystick up / down / left / right, such as every 100 milliseconds corresponds to 1% of the brightness or color temperature adjustment range, the joystick up operation state lasts for 1 second, the brightness increases by 10%, the joystick down operation state lasts for 2 seconds, the brightness increases by 20%, and so on.
[0134] As shown in FIG8 (a), eight directions can be set. By operating the joystick to the up, down, left, and right directions, the brightness and color temperature can be controlled respectively. By operating the joystick to the upper right, upper left, lower right, and lower left directions, the brightness and color temperature can be controlled simultaneously. In the upper right direction (in the first quadrant), the brightness increases and the color temperature increases; in the upper left direction (in the second quadrant), the brightness increases and the color temperature decreases; in the lower left direction (in the third quadrant), the brightness decreases and the color temperature decreases; and in the lower right direction (in the fourth quadrant), the brightness decreases and the color temperature increases.
[0135] For smart curtains, as shown in FIG8 (b), the curtains can be adjusted to open and close to the left and right, wherein the curtains can be opened to the left and closed to the right. If the joystick is kept in the left operating state, the curtains can be continuously opened until the curtains are fully opened. If the joystick is kept in the right operating state, the curtains can be continuously closed until the curtains are fully closed. The adjustment distance of the curtain opening and closing stroke can be linearly positively correlated with the operation time (operation duration) of the joystick to the left / right. For example, every 100 milliseconds can correspond to a 100 mm stroke of the curtain, that is, the operation state of the joystick to the left / right lasts for 1 second, and the opening / closing stroke of the curtain on one side can be 1 meter, and so on.
[0136] For smart speakers or TVs, as shown in FIG8 (c), the volume of the smart speakers or TVs can be adjusted by moving up and down, where moving up can increase the volume and moving down can decrease the volume. If the joystick is kept in the upward operation state, the volume of the speaker can continue to increase until the volume is adjusted to the maximum value. If the joystick is kept in the downward operation state, the volume of the speaker can continue to decrease until the volume is adjusted to the minimum value. Among them, the volume adjustment range of the speaker can be linearly positively correlated with the operation duration (operation duration) of the joystick up / down, such as every 100 milliseconds can correspond to a 1% increase / decrease in the volume of the speaker, that is, the operation state of the joystick in the upward / downward direction lasts for 1 second, and the speaker increases / decreases the volume by 1%, and so on.
[0137] The solution of this embodiment, through a control device equipped with a joystick, can quickly realize the state change and adjustment of the intelligent controlled device through physical operation, without the need for the user to open the mobile phone or control it through voice, providing a richer operation control experience. At the same time, the interactive method of the adjustment process and the real-time response of the device also improves the user's control ability and perception of the control operation accuracy, which is more participatory and more user-friendly.
[0138] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0139] In an exemplary embodiment, a control device is provided, as shown in FIG7 , the control device may include a motion sensor, a processor and a communication module; wherein,
[0140] The motion sensor can be used to collect operation data for the control device; the processor can be used to obtain the operation data collected by the motion sensor, and based on the device control configuration information, determine the target controlled device and the corresponding target control instruction according to the operation data; the target controlled device can be determined according to the target direction of the operation of the target control device in the operation data; the target control instruction can be determined according to the operation state in the target direction in the operation data; the processor can also be used to send the target control instruction to the target controlled device through the communication module to instruct the target controlled device to execute the target control instruction.
[0141] In this embodiment, the control device may also be provided with a joystick, and the motion sensor may be connected to the joystick. The motion sensor may collect operation data of the joystick in cooperation with the user's operation as the above-mentioned operation data (input) for the control device. Then the motion sensor may transmit the operation data to the processor. The processor may determine the target control instruction and the target controlled device based on the operation data after the above-mentioned processing. The processor may send the target control instruction to the target controlled device (output) through the communication module. The target controlled device may execute the target control instruction upon receiving the target control instruction. As an implementation mode, in combination with Figure 9, the processor of the control device (target control device) can receive operation data and determine the target control instruction and the target controlled device through the above processing. The processor can send the target control instruction to the gateway through the communication module. The gateway can determine whether the target control device and the target controlled device are under the same gateway. If they are under the same gateway, the gateway can directly send the target control instruction to the target controlled device. If they are not under the same gateway, the gateway can send the target control instruction to the cloud. The cloud sends the target control instruction to the target gateway where the target controlled device is located. The target gateway sends the target control instruction to the target controlled device. The target controlled device receives the target control instruction and can execute the target control instruction.
[0142] In this embodiment, the processor can be used to execute the steps of the device control method described in the above embodiments, which will not be repeated here. As an example of operational control of the control device, the user can configure the device control configuration information to establish an automated control correspondence between the user's operation of the control device and the response of the controlled device, so as to achieve control of the corresponding controlled device. For example, if the operating joystick is kept in the upward operating state, the brightness of the smart lamp can continue to increase. If the operating joystick is kept in the left operating state, the curtains continue to open, etc. It has the characteristics of convenient operation and strong flexibility in the selection and control of the controlled devices.
[0143] Based on the same inventive concept, the embodiment of the present application also provides a device control device for implementing the device control method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more device control device embodiments provided below can refer to the limitations on the device control method above, and will not be repeated here.
[0144] In an exemplary embodiment, as shown in FIG10 , a device control apparatus is provided, and the apparatus 1000 may include:
[0145] An acquisition module 1001 is used to acquire operation data for a target control device;
[0146] A determination module 1002 is used to determine a target controlled device and a corresponding target control instruction according to the operation data based on the device control configuration information; the target controlled device is determined according to a target direction of the operation for the target controlled device in the operation data; the target control instruction is determined according to an operation state in the target direction in the operation data;
[0147] The sending module 1003 is used to send the target control instruction to the target controlled device to instruct the target controlled device to execute the target control instruction.
[0148] In an exemplary embodiment, the determination module 1002 is used to determine the target controlled device, the target parameters for the target controlled device and the adjustment method for the target parameters based on the device control configuration information and the target direction in the operation data, and determine the change characteristics of the target parameters under the adjustment method based on the operation state in the operation data; and determine the target control instruction based on the target parameters, the adjustment method and the change characteristics.
[0149] In an exemplary embodiment, the determination module 1002 is used to determine, based on the device control configuration information, that the target controlled device is the first target controlled device, the target parameter is the first target parameter for the first target controlled device, and the adjustment method is the first adjustment method or the second adjustment method for the first target parameter if the target direction is the first direction or the second direction; wherein the first direction is opposite to the second direction, and the first adjustment method is opposite to the second adjustment method.
[0150] In an exemplary embodiment, the determination module 1002 is used to determine, based on the device control configuration information, that the target controlled device includes a first target controlled device and a second target controlled device, the target parameter includes a first target parameter for the first target controlled device and a second target parameter for the second target controlled device, and the adjustment method includes an adjustment method for the first target parameter and an adjustment method for the second target parameter if the target direction includes a first direction and a third direction; wherein the third direction is different from a second direction opposite to the first direction.
[0151] In an exemplary embodiment, the determination module 1002 is used to determine, based on the device control configuration information, that the target controlled device is a first target controlled device, the target parameters include a first target parameter and a third target parameter for the first target controlled device, and the adjustment method includes an adjustment method for the first target parameter and an adjustment method for the third target parameter if the target direction includes a first direction and a third direction; wherein the third direction is different from a second direction opposite to the first direction.
[0152] In an exemplary embodiment, the operation state includes the operation duration; the determination module 1002 is used to determine the parameter adjustment amount corresponding to the operation duration in the operation state based on the device control configuration information; the parameter adjustment amount is positively correlated with the operation duration; and the change characteristic is obtained according to the parameter adjustment amount.
[0153] In an exemplary embodiment, the operating state also includes an operating speed; a determination module 1002 is used to determine a parameter adjustment speed corresponding to the operating speed in the operating state based on the device control configuration information; the parameter adjustment speed is positively correlated with the operating speed; and the change characteristic is obtained based on the parameter adjustment amount and the parameter adjustment speed.
[0154] In an exemplary embodiment, the acquisition module 1001 is also used to determine the operation data component for the target control device in at least one direction based on the operation data; determine the direction in which the operation data component in at least one of the directions meets the threshold condition as the target direction; and determine the operation state based on the operation data component in the target direction.
[0155] In an exemplary embodiment, the acquisition module 1001 is further used to determine the operation duration of the target control device in the target direction according to the operation data; and determine the operation state according to the operation duration in the target direction.
[0156] Each module in the above-mentioned device control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0157] In an exemplary embodiment, an electronic device is provided, which may be a terminal, a control device, a joystick controller, etc., and its internal structure diagram may be shown in FIG11. The electronic device includes a processor, a memory, an input / output interface, a communication interface, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface and the input device are connected to the system bus via the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a device control method is implemented. The input device of the electronic device can be a touch layer covering the display screen, or a key, trackball, touchpad, joystick provided on the housing of the electronic device, or an external keyboard, touchpad or mouse.
[0158] Those skilled in the art will understand that the structure shown in FIG. 11 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0159] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0160] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0161] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0162] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0163] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0164] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0165] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A device control method, characterized in that: The method comprises: Acquire operation data for target control equipment; Based on the device control configuration information, a target controlled device and a corresponding target control instruction are determined according to the operation data; the target controlled device is determined according to a target direction of the operation for the target controlled device in the operation data; the target control instruction is determined according to an operation state in the target direction in the operation data; The target control instruction is sent to the target controlled device to instruct the target controlled device to execute the target control instruction.
2. The method according to claim 1, characterized in that The determining the target controlled device and the corresponding target control instruction based on the device control configuration information and according to the operation data includes: Based on the device control configuration information, determine the target controlled device, the target parameter for the target controlled device, and the adjustment method for the target parameter according to the target direction in the operation data, and determine the change characteristics of the target parameter under the adjustment method according to the operation state in the operation data; The target control instruction is determined according to the target parameter, the adjustment method and the change characteristic.
3. The method according to claim 2, characterized in that The determining, based on the device control configuration information and according to the target direction in the operation data, the target controlled device, the target parameter for the target controlled device, and the adjustment method for the target parameter includes: Based on the device control configuration information, if the target direction is the first direction or the second direction, determining that the target controlled device is the first target controlled device, the target parameter is the first target parameter for the first target controlled device, and the adjustment method is the first adjustment method or the second adjustment method for the first target parameter; The first direction is opposite to the second direction, and the first adjustment method is opposite to the second adjustment method.
4. The method according to claim 2, characterized in that: The determining, based on the device control configuration information and according to the target direction in the operation data, the target controlled device, the target parameter for the target controlled device, and the adjustment method for the target parameter includes: Based on the device control configuration information, if the target direction includes a first direction and a third direction, determining that the target controlled device includes a first target controlled device and a second target controlled device, the target parameter includes a first target parameter for the first target controlled device and a second target parameter for the second target controlled device, and the adjustment method includes an adjustment method for the first target parameter and an adjustment method for the second target parameter; The third direction is different from a second direction opposite to the first direction.
5. The method according to claim 2, characterized in that: The determining, based on the device control configuration information and according to the target direction in the operation data, the target controlled device, the target parameter for the target controlled device, and the adjustment method for the target parameter includes: Based on the device control configuration information, if the target direction includes a first direction and a third direction, determining that the target controlled device is a first target controlled device, the target parameter includes a first target parameter and a third target parameter for the first target controlled device, and the adjustment method includes an adjustment method for the first target parameter and an adjustment method for the third target parameter; The third direction is different from a second direction opposite to the first direction.
6. The method according to claim 2, characterized in that The operation state includes the operation duration; and determining the change characteristics of the target parameter under the adjustment mode according to the operation state in the operation data includes: Based on the device control configuration information, determining a parameter adjustment amount corresponding to the operation duration in the operation state; the parameter adjustment amount is positively correlated with the operation duration; The variation characteristic is obtained according to the parameter adjustment amount.
7. The method according to claim 6, characterized in that The operating state also includes an operating speed; and obtaining the change characteristics according to the parameter adjustment amount includes: Based on the device control configuration information, determining a parameter adjustment speed corresponding to the operation speed in the operation state; the parameter adjustment speed is positively correlated with the operation speed; The variation characteristic is obtained according to the parameter adjustment amount and the parameter adjustment speed.
8. The method according to any one of claims 1 to 7, characterized in that After obtaining the operation data for the target control device, the method further includes: Determine, according to the operation data, an operation data component for the target control device in at least one direction; Determine the direction in which the operation data component in at least one of the directions satisfies a threshold condition as the target direction; The operation state is determined according to the operation data component of the target direction.
9. The method according to any one of claims 1 to 7, characterized in that After obtaining the operation data for the target control device, the method further includes: Determining, according to the operation data, an operation duration of the target control device in the target direction; The operation state is determined according to the operation duration in the target direction.
10. A device control device, characterized in that: The device comprises: An acquisition module, used for acquiring operation data for a target control device; A determination module, configured to determine a target controlled device and a corresponding target control instruction according to the operation data based on the device control configuration information; the target controlled device is determined according to a target direction of the operation for the target control device in the operation data; the target control instruction is determined according to an operation state in the target direction in the operation data; The sending module is used to send the target control instruction to the target controlled device to instruct the target controlled device to execute the target control instruction.
11. A control device, characterized in that: include: Motion sensor, processor and communication module; wherein, The motion sensor is used to collect operation data for the control device; The processor is configured to obtain the operation data collected by the motion sensor, and determine a target controlled device and a corresponding target control instruction according to the operation data based on the device control configuration information; the target controlled device is determined according to a target direction of the operation for the target control device in the operation data; the target control instruction is determined according to an operation state in the target direction in the operation data; The processor is further configured to send the target control instruction to the target controlled device through the communication module to instruct the target controlled device to execute the target control instruction.
12. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
