Equipment control method and device, rotating equipment and storage medium

By establishing the correspondence between rotation information and target adjustment information, adaptively adjusting the sensitivity of the knob controller, the problem of poor knob controller in intelligent device control is solved, and more refined and efficient equipment control is achieved.

CN119270653APending Publication Date: 2025-01-07SHENZHEN LUMIUNITED TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411091036.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

When the existing knob controller controls smart devices, the adjustment amount corresponding to the rotation angle is fixed, resulting in poor control effect of the equipment and the inability to finely adjust certain values, affecting the user experience of the equipment.

Method used

By acquiring the rotation information, establish a correspondence between the rotation information and the target adjustment information, adjust the sensitivity adaptively according to the rotation information, and achieve fine control.

Benefits of technology

It improves the accuracy and efficiency of equipment control, reduces the number of rotation operations, and enhances the fine control capabilities of the knob controller.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119270653A_ABST
    Figure CN119270653A_ABST
Patent Text Reader

Abstract

The invention provides an equipment control method and device, rotating equipment and a storage medium, and relates to the technical field of Internet of Things. The method comprises the following steps: acquiring rotation information; according to the rotation information, obtaining target adjustment information having a corresponding relationship with the rotation information; the corresponding relation is used for describing the sensitivity of the rotating equipment under different rotating information and corresponding adjusting information; equipment control is conducted on target equipment according to the target adjustment information, so that the target equipment executes corresponding actions according to the target adjustment information, and the target adjustment information is used for indicating actions expected to be executed by the target equipment. According to the method and the device, the problem of poor effect of controlling the equipment through rotation in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things. Specifically, the present application relates to a device control method, device, rotating device and storage medium. Background Art

[0002] With the rapid development of Internet of Things technology, more and more smart devices are entering people's homes. These smart devices form a smart home network, and users can control smart devices through user terminals and smart switches. At present, smart devices are controlled more and more frequently by rotary control. For example, smart lights, air conditioners, curtain lights and other smart devices are controlled by rotating knob controllers. Specifically, when the user rotates the knob controller, the knob controller can control the smart device according to the rotation angle.

[0003] However, when the knob controller controls the smart device, the adjustment amount of the smart device is fixed each time it is rotated by a set angle, so some values ​​of the smart device cannot be adjusted by the knob controller, thereby affecting the effect of device control.

[0004] As can be seen from the above, the problem of poor effect of device control based on rotation still needs to be solved. Summary of the invention

[0005] The present application provides a device control method, an apparatus, an electronic device and a storage medium, which can solve the problem of poor effect of device control by rotation in the related art. The technical solution is as follows:

[0006] According to one aspect of the present application, a device control method includes: obtaining rotation information; obtaining target adjustment information corresponding to the rotation information based on the rotation information; the corresponding relationship is used to describe the sensitivity of the rotating device under different rotation information and its corresponding adjustment information; controlling the target device based on the target adjustment information, so that the target device performs a corresponding action according to the target adjustment information, and the target adjustment information is used to indicate the action that the target device is expected to perform.

[0007] According to one aspect of the present application, a device control apparatus includes: an acquisition module for acquiring rotation information; a mapping module for obtaining target adjustment information corresponding to the rotation information based on the rotation information; the corresponding relationship is used to describe the sensitivity of the rotating device under different rotation information and its corresponding adjustment information; a control module is used to control the target device based on the target adjustment information, so that the target device performs a corresponding action according to the target adjustment information, and the target adjustment information is used to indicate the action that the target device is expected to perform.

[0008] In an exemplary embodiment, the corresponding relationship includes the relationship between the rotation information, the control gear and the adjustment information; the control gear is used to indicate the sensitivity of the rotating device; the sensitivity is used to indicate the degree of influence of the rotation information on the adjustment information; the adjustment information is used to adjust the parameters of the target device; the mapping module is also used to, based on the corresponding relationship, perform a first mapping between the rotation information and the control gear to obtain a target control gear; according to the target control gear, perform a second mapping between the rotation information and the adjustment information to obtain target adjustment information.

[0009] In an exemplary embodiment, the mapping module is further used to calculate the rotation speed of the rotating device according to the rotation angle in the rotation information; and based on the rotation speed of the rotating device, find the corresponding target control gear in the corresponding relationship.

[0010] In an exemplary embodiment, the mapping module is also used to determine the operating state of the rotating device based on the rotation information; if the operating state of the rotating device is a cold start state, the target control gear is determined to be a set gear, and the cold start state is the device state after the rotating device is triggered to start.

[0011] In an exemplary embodiment, the mapping module is further used to determine whether the rotating device is within a cold start range according to the rotation angle in the rotation information; if yes, determine that the operating state of the rotating device is a cold start state.

[0012] In an exemplary embodiment, the mapping module is also used to determine the trigger angle corresponding to the unit adjustment information under the target control gear based on the sensitivity of the rotating device indicated by the target control gear; and calculate the target adjustment information according to the rotation angle in the rotation information and the determined trigger angle.

[0013] In an exemplary embodiment, the mapping module is also used to detect whether the current rotation speed of the rotating device changes if the operating state of the rotating device is a rotation state; if the current rotation speed changes, readjust the target control gear based on the corresponding relationship to obtain an adjusted target control gear.

[0014] In an exemplary embodiment, the mapping module is also used to obtain a current rotation time based on the time when the rotating device currently rotates to the trigger angle; calculate the angular velocity of the rotating device based on the trigger angle and the current rotation time, and use the angular velocity as the current rotation speed; if the current rotation speed does not conform to the speed range corresponding to the target control gear, confirm that the current rotation speed of the rotating device has changed.

[0015] In an exemplary embodiment, the mapping module is also used to determine the trigger angle corresponding to the unit adjustment information under the target control gear; judge whether the current rotation angle of the rotating device meets the trigger angle, and if so, obtain the current rotation time based on the time taken for the current rotation angle to rotate.

[0016] In an exemplary embodiment, the acquisition module is also used to acquire at least one target image; the target image is taken during the rotation of the rotating device; and a rotation comparison analysis is performed on each of the target images to obtain the rotation information, wherein the rotation information includes at least one or more of the rotation direction and rotation angle of the rotating device.

[0017] According to one aspect of the present application, a rotating device includes a main control module and a sensor module; wherein the sensor module is used to obtain rotation information; the main control module is used to map the rotation information based on a constructed correspondence relationship to obtain target adjustment information that has a corresponding relationship with the rotation information; the correspondence relationship is used to describe the sensitivity of the rotating device under different rotation information and its corresponding adjustment information; the main control module is also used to control the target device according to the target adjustment information, so that the target device performs corresponding actions according to the target adjustment information, and the target adjustment information is used to indicate the action that the target device is expected to perform.

[0018] According to one aspect of the present application, a rotating device includes at least one processor and at least one memory, wherein the memory stores computer-readable instructions; the computer-readable instructions are executed by one or more of the processors, so that the rotating device implements the device control method as described above.

[0019] According to one aspect of the present application, a storage medium stores computer-readable instructions thereon, and the computer-readable instructions are executed by one or more processors to implement the device control method as described above.

[0020] According to one aspect of the present application, a computer program product includes computer-readable instructions, which are stored in a storage medium. One or more processors of an electronic device read the computer-readable instructions from the storage medium, load and execute the computer-readable instructions, so that the electronic device implements the device control method as described above.

[0021] The beneficial effects of the technical solution provided by this application are:

[0022] In the above technical scheme, target adjustment information having a corresponding relationship with the rotation information is obtained according to the rotation information, so that the sensitivity of the rotating device under different rotation information and its corresponding adjustment information can be adaptively changed based on the rotation information, and then the target adjustment information corresponding to the sensitivity of the different rotation information is obtained. The target device is controlled by the target adjustment information, which can reduce the operations required for rotation-based control while ensuring the ability of fine control, improve the control efficiency of the device, and solve the problem of poor effect of device control based on rotation in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0024] Figure 1 It is a schematic diagram of the implementation environment involved in this application;

[0025] Figure 1a A structural block diagram of a rotating device according to an exemplary embodiment;

[0026] Figure 2 is a flow chart of a device control method according to an exemplary embodiment;

[0027] Figure 3 yes Figure 2 A flowchart of step 330 in one embodiment corresponding to the embodiment;

[0028] Figure 4 A schematic diagram showing a control gear position and a trigger angle according to an exemplary embodiment;

[0029] Figure 5 yes Figure 3 A flowchart of step 333 in one embodiment corresponding to the embodiment;

[0030] Figure 6 yes Figure 3 A flowchart of step 333 in another embodiment corresponding to the embodiment;

[0031] Figure 7 yes Figure 3 A flowchart of step 333 in another embodiment corresponding to the embodiment;

[0032] Figure 8 yes Figure 3 The steps after step 333 in the corresponding embodiment are a flowchart of an embodiment;

[0033] Fig. 9 yes Figure 8 A flowchart of step 430 in one embodiment corresponding to the embodiment;

[0034] Fig.10 yes Figure 2 A flowchart of step 310 in one embodiment of the corresponding embodiment;

[0035] Fig.10a A schematic diagram of a rotating device according to an exemplary embodiment;

[0036] Fig.10b A schematic diagram of a working method using an optical angle sensor according to an exemplary embodiment;

[0037] Fig.11 It is a schematic diagram of a specific implementation of a device control method in an application scenario;

[0038] Fig.11a It is a schematic diagram of a device control method in a smart home scenario.

[0039] Fig.12 is a structural block diagram of a device control apparatus according to an exemplary embodiment;

[0040] Fig.13 is a hardware structure diagram of an electronic device according to an exemplary embodiment;

[0041] Fig.14 is a hardware structure diagram of a terminal according to an exemplary embodiment;

[0042] Fig.15 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0043] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0044] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present disclosure refers to the presence of the features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0045] As mentioned above, when the knob controller controls the smart device, the adjustment amount of the smart device is fixed each time it is rotated a set angle.

[0046] Then, if the adjustment amount is large, the user needs to rotate the knob controller to a larger angle, which may increase the rotation time of the knob controller for device control, thereby affecting the effect of device control. Furthermore, if a larger adjustment amount is set for the set angle, although the efficiency of device control is improved, it will cause some values ​​of the smart device to be unable to be adjusted through the knob controller, thereby affecting the effect of device control.

[0047] For example, when the knob controller is associated with the color temperature control of the smart light, each rotation of 1° represents adding or subtracting 1K color temperature. Therefore, if you want to increase the color temperature of the smart light from 2700K to 6500K, you need to rotate the knob controller 3800°. Therefore, the user needs to rotate the knob controller more than 10 times. In other words, the user needs to spend more than 10 turns to adjust the color temperature of the smart light to 6500k. Not only does it take a long time to achieve the desired effect of device control, but the operation is also troublesome (it requires more than 10 turns).

[0048] In order to avoid the above situation, the color temperature increase or decrease corresponding to rotating 1° can be changed from 1k to 100k, thereby reducing the number of rotations required to increase the color temperature of the smart light from 2700k to 6500k by rotating the knob controller. However, the above operation will lose the ability of fine control, and the user will never be able to use the rotary knob controller to adjust the smart light to a certain value, for example, adjusting the color temperature of the smart light to 6550k.

[0049] As can be seen from the above, the related art still has the defect that the effect of controlling the device based on rotation is poor.

[0050] To this end, the device control method provided in the present application can effectively improve the accuracy of device control. Accordingly, the device control method is applicable to a device control device, which can be deployed in an electronic device. The electronic device can be a computer device configured with a von Neumann architecture, for example, the computer device includes a desktop computer, a laptop computer, a server, etc.; the electronic device can also be an electronic device with a central control function, for example, the electronic device includes a gateway, etc.; the electronic device can also refer to a knob controller.

[0051] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0052] Figure 1 Schematic diagram of an implementation environment involved in a device control method. The implementation environment at least includes a user terminal 110, a smart device 130, a server 170, and a network device. Figure 1 In the embodiment, the network devices include a gateway 150 and a router 190, which is not specifically limited herein.

[0053] Among them, the user terminal 110, which can also be considered as a user end or terminal, can deploy (also understood as install) the client associated with the smart device 130. This user terminal 110 can be an electronic device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart control panel, other devices with display and control functions, etc., which are not limited here.

[0054] Among them, the client is associated with the smart device 130, which essentially means that the user registers an account in the client and configures the smart device 130 in the client. For example, the configuration includes adding a device identifier to the smart device 130, so that when the client is run in the user terminal 110, it can provide the user with functions such as device display and device control of the smart device 130. This client can be in the form of an application or a web page. Accordingly, the interface for device display on the client can be in the form of a program window or a web page, which is not limited here.

[0055] The smart device 130 is deployed in the gateway 150, and communicates with the gateway 150 through its own configured communication module, and is then controlled by the gateway 150. It should be understood that the smart device 130 generally refers to one of the multiple smart devices 130, and the embodiment of the present application only takes the smart device 130 as an example, that is, the embodiment of the present application does not limit the number and device type of smart devices deployed in the gateway 150. In an application scenario, the smart device 130 accesses the gateway 150 through a local area network, and is thus deployed in the gateway 150. The process of the smart device 130 accessing the gateway 150 through the local area network includes: the gateway 150 first establishes a local area network, and the smart device 130 joins the local area network established by the gateway 150 by connecting to the gateway 150. This local area network includes, but is not limited to: ZIGBEE or Bluetooth. Among them, the smart device 130 can be a smart printer, a smart fax machine, a smart camera, a smart air conditioner, a smart door lock, a smart light, or a human body sensor equipped with a communication module, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a wireless switch, a wireless wall sticker switch, a magic cube controller, a curtain motor, a millimeter wave radar, etc.

[0056] The interaction between the user terminal 110 and the smart device 130 can be achieved through a local area network or a wide area network. In one application scenario, the user terminal 110 establishes a communication connection between the router 190 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to WIFI, so that the user terminal 110 and the gateway 150 are deployed in the same local area network, so that the user terminal 110 can interact with the smart device 130 through the local area network path. In another application scenario, the user terminal 110 establishes a communication connection between the server 170 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to 2G, 3G, 4G, 5G, WIFI, etc., so that the user terminal 110 and the gateway 150 are deployed in the same wide area network, so that the user terminal 110 can interact with the smart device 130 through the wide area network path.

[0057] The server end 170 may also be considered as a cloud, a cloud platform, a platform end, a service end, etc. The server end 170 may be a server, a server cluster consisting of multiple servers, or a cloud computing center consisting of multiple servers, so as to better provide background services to a large number of user terminals 110. For example, the background service includes a device control service.

[0058] In one possible implementation, Figure 1aA structural block diagram of a rotating device is shown in FIG. Figure 1a As shown, a rotating device includes a main control module and a sensor module; wherein the sensor module is used to obtain rotation information; the main control module is used to obtain target adjustment information corresponding to the rotation information according to the rotation information; the corresponding relationship is used to describe the sensitivity of the rotating device under different rotation information and its corresponding adjustment information; the main control module is also used to control the target device according to the target adjustment information, so that the target device performs corresponding actions according to the target adjustment information, and the target adjustment information is used to indicate the action expected to be performed by the target device.

[0059] In another possible implementation, the rotating device is a knob controller, including a sensor module and a main control module, the sensor module is used to acquire at least one target image; the target image is captured during the rotation of the knob controller; the main control module can be used to perform rotation analysis on the rotating device for each target image to obtain rotation information, the rotation information including at least one or more of the rotation direction and rotation angle of the rotating device.

[0060] In an application scenario, the device control system includes a knob controller and a controlled smart device 130, and a connection relationship can be established between the knob controller and the controlled smart device 130 in a wireless or wired manner. When the user rotates the knob controller, the sensor module of the knob controller obtains the rotation information and sends it to the main control module of the knob controller. The main control module obtains target adjustment information corresponding to the rotation information based on the rotation information, and controls the controlled smart device 130 based on the target adjustment information, so that the controlled smart device 130 performs corresponding actions according to the target adjustment information.

[0061] In another application scenario, the device control system includes a knob controller, a controlled smart device 130, and a gateway 150. The user rotates the knob controller, and the rotation controller sends the rotation information to the gateway 150. The gateway 150 obtains target adjustment information corresponding to the rotation information based on the rotation information, generates a device control instruction based on the target adjustment information, and sends the device control instruction to the controlled smart device 130, so that the controlled smart device 130 performs corresponding actions according to the target adjustment information.

[0062] Of course, in other application scenarios, the above-mentioned device control process completed by the gateway 150 can also be implemented by the server 170. At this time, after the server 130 generates a device control instruction according to the target adjustment information, the device control instruction is sent to the gateway 150 through the wide area network path, so that the gateway 150 can send the device control instruction to the controlled smart device 130, thereby providing device control services to users.

[0063] See also Figure 2The present application embodiment provides a device control method, which is applicable to an electronic device, which may be Figure 1 The gateway in the implementation environment is shown, and it can also be Figure 1 The server side in the implementation environment is shown. In addition, the electronic device can also be Figure 1a The rotating device shown.

[0064] In the following method embodiments, for ease of description, the execution subject of each step of the method is taken as an electronic device as an example for illustration, but this does not constitute a specific limitation.

[0065] like Figure 2 As shown, the method may include the following steps:

[0066] Step 310, obtaining rotation information;

[0067] The rotation information is used to determine target adjustment information for controlling the target device. Specifically, the rotation information can be used to determine the adjustment amount of a parameter of the target device. For example, if the target device is an air conditioner, the temperature of the air conditioner is adjusted by a decrease of 2°C.

[0068] The rotation information is obtained by rotating the rotating device. The rotating device is a device that can be controlled by rotating, including a knob controller, an encoder, and other devices. For example, if the rotating device is a knob controller, the rotation information can be obtained by rotating the knob component of the knob controller. Based on this, the rotation information may include information such as the rotation direction, rotation angle, and rotation speed.

[0069] It is also noted that the user can also associate the knob controller with the smart device under the current Internet of Things, so that when the user rotates the knob controller, the corresponding smart device can be controlled. Furthermore, the knob controller can also be associated with the parameters of the smart device, so that when the user rotates the knob controller, the parameters of the smart device associated with it can be adjusted.

[0070] Step 330: Obtain target adjustment information corresponding to the rotation information according to the rotation information.

[0071] The corresponding relationship is used to describe the sensitivity of the rotating device under different rotation information and its corresponding adjustment information. Specifically, the corresponding relationship may include the corresponding relationship between the rotation information and the adjustment information, and different rotation information has corresponding adjustment information. Based on this, the adjustment information corresponding to the rotation information can be determined based on the established corresponding relationship, and the determined adjustment information is the target adjustment information.

[0072] Furthermore, sensitivity is used to determine the degree of influence of the rotation operation (rotation information) on the adjustment information. In one possible implementation, high sensitivity means that a smaller rotation operation will result in a larger adjustment change, and low sensitivity means that a larger rotation operation is required to achieve the same adjustment change.

[0073] For example, if the target device is a smart light, the high sensitivity is 1.8 degrees corresponding to 1% brightness, and the low sensitivity is 10.8 degrees corresponding to 1% brightness. That is to say, in the case of high sensitivity, rotating the rotating device 1.8 degrees can achieve the effect of adjusting the brightness of the smart light by ±1%. In the case of low sensitivity, rotating the rotating device 10.8 degrees can achieve the effect of adjusting the brightness of the smart light by ±1%.

[0074] It is additionally noted that the established correspondence relationship may be pre-set by the manufacturer, or the manufacturer may provide a user with a customized service regarding the correspondence relationship, which may be set by the user himself, and this is not limited here.

[0075] Of course, different corresponding relationships may be provided for different target devices to adapt to the functional characteristics of different target devices.

[0076] Step 350: Control the target device according to the target adjustment information, so that the target device performs corresponding actions according to the target adjustment information.

[0077] The target adjustment information is used to indicate an action that the target device is expected to perform, and the target adjustment information may include a specific adjustment value, so that the target device can be adjusted according to the adjustment value.

[0078] Regarding the control of the target device, the control process will be different when using different types of electronic devices as the control end. If the control end is a knob controller, the knob controller can map the rotation information into target adjustment information, and then send the target adjustment information to the target device via wired or wireless communication (such as Bluetooth, Zigbee). The target device performs corresponding adjustment operations based on the received target adjustment information.

[0079] For example, the knob controller is the temperature adjustment knob of an air conditioner. When the user rotates the temperature adjustment knob, rotation information is generated. The temperature adjustment knob maps the target temperature adjustment value based on the rotation information and sends the target temperature adjustment value to the air conditioner to make it perform the corresponding action. For example, the target temperature adjustment value mapped by rotating the knob controller by 10 degrees is reduced by 2°C. The knob controller sends the target temperature adjustment value to the air conditioner, and the air conditioner reduces the temperature by 2°C after receiving the target temperature adjustment value.

[0080] If the control end is a gateway, after the knob controller generates rotation information, it sends the rotation information to the gateway. After the gateway maps the rotation information to target adjustment information, it generates corresponding device control instructions based on the target adjustment information and sends them to the target device, so that the target device performs corresponding actions in response to the device control instructions. If the control end is a server, after the knob controller generates rotation information, it sends the rotation information to the server via the gateway. After the server maps the rotation information to target adjustment information, it generates corresponding device control instructions based on the target adjustment information, and sends the device control instructions to the target device via the gateway, so that the target device performs corresponding actions in response to the device control instructions.

[0081] For example, the knob controller is a brightness adjustment knob. The user rotates the brightness adjustment knob to generate rotation information, which is sent to the server via the gateway. The server maps the rotation information based on the corresponding relationship to obtain the target brightness adjustment value (target adjustment information). The server generates a corresponding device control instruction based on the target brightness adjustment value. The device control instruction is sent to the corresponding target device via the gateway to make it perform the corresponding action. Furthermore, the server can also analyze the electronic devices with brightness adjustment function currently deployed under the Internet of Things, and generate corresponding device control instructions in combination with the target brightness adjustment value. For example, the knob controller rotates 10 degrees, and the rotation of 10 degrees is sent to the server. The mapped target brightness adjustment value is to reduce the brightness by 10%. In combination with the target brightness adjustment value, the corresponding device control instruction is generated according to the smart light device currently deployed under the Internet of Things, and the device control instruction is sent to the smart light device. After receiving the device control instruction, the smart light device reduces the brightness by 10%.

[0082] Through the above process, target adjustment information corresponding to the rotation information is obtained according to the rotation information, so that based on the sensitivity of the rotating device under different rotation information and its corresponding adjustment information, adaptive change of sensitivity based on the rotation information can be achieved, and then according to the sensitivity of different rotation information, corresponding target adjustment information is obtained. The target device is controlled by the target adjustment information, which can reduce the operations required for rotation-based control while ensuring the ability of fine control, improve the control efficiency of the device, and thus solve the problem of poor effect of device control based on rotation in the related art.

[0083] See also Figure 3 In an exemplary embodiment, step 330 may further include the following steps:

[0084] Step 331 : Based on the corresponding relationship, a first mapping is performed between the rotation information and the control gear to obtain a target control gear.

[0085] The corresponding relationship includes the relationship between the rotation information, the control gear and the adjustment information.

[0086] First of all, it should be noted that the control gear is used to indicate the sensitivity of the rotating device. Different control gears correspond to different sensitivities. The sensitivity is used to indicate the degree of influence of the rotation information on the adjustment information. The adjustment information is used to adjust the parameters of the target device. Then, since the corresponding relationship is used to describe the sensitivity of the rotating device under different rotation information and its corresponding adjustment information, the corresponding control gear can be determined according to the rotation information, thereby obtaining the target control gear.

[0087] In one possible implementation, Table 1 shows a schematic diagram of a corresponding relationship. As shown in Table 1, the rotation information includes the rotation speed, and the corresponding relationship includes the relationship between the rotation speed and the control gear. Based on this, a first mapping can be performed between the rotation speed and the control gear based on the corresponding relationship. For example, the rotation speed is 160θ / s, which belongs to the range of 90θ / s≤ω≤180θ / s. Then, after the first mapping, the target control gear can be obtained as the second gear.

[0088] Table 1

[0089] Control gear Rotation speed First gear 360θ / s≤ω Second gear 180θ / s≤ω≤360θ / s Third gear 90θ / s≤ω≤180θ / s Four gears 0≤ω≤90θ / s

[0090] It should be noted that the correspondence between the control gear and the rotation speed can be adjusted according to the actual situation to achieve more flexible and precise equipment control. For example, the control gear can be divided into 5 levels, and the rotation speed range corresponding to each control gear can be modified. The above scheme is only an exemplary description and does not constitute a limitation of the present invention.

[0091] Step 333 , performing a second mapping between the rotation information and the adjustment information according to the target control gear position to obtain the target adjustment information.

[0092] As can be seen from the above, the target control gear can indicate the sensitivity of the rotating device, and the sensitivity is used to indicate the degree of influence of the rotation information on the adjustment information. Furthermore, the rotation information is obtained by the rotation operation of the rotating device. Therefore, the sensitivity can determine the degree of influence of the rotation operation on the adjustment information. Based on this, the corresponding target adjustment information can be obtained according to the rotation information.

[0093] In one possible implementation, Table 2 shows a schematic diagram of another correspondence. As shown in Table 2, the correspondence includes the relationship between the control gear, the trigger angle and the unit adjustment information. It should be noted that the trigger angle is a preset rotation angle value. When the rotation angle reaches this rotation angle value (trigger angle), a device control event will be triggered and a unit adjustment information will be generated, so that the target device will be controlled according to the unit adjustment information. For example, if the control gear is one gear, then when the rotation angle reaches 1.8 degrees, a unit adjustment information of 1% will be generated. It can be understood that the sensitivity can determine the degree of influence of the rotation operation on the adjustment information, that is, the correspondence between the trigger angle and the unit adjustment information in Table 2, that is, the sensitivity.

[0094] Table 2

[0095]

[0096]

[0097] It should be noted that the values ​​of the trigger angle and unit adjustment information can be adjusted according to the actual situation. Specifically, the adjustment information is used to adjust the parameters of the target device. That is to say, different parameters need to be adjusted for different devices. For example, the parameters that need to be adjusted for smart lights may include brightness and color temperature, and the parameters that need to be adjusted for air conditioners may include temperature. Then, the unit adjustment information can be modified according to the characteristics of different parameters. For example, the unit adjustment information corresponding to the color temperature is 1000k, and the adjustment value of the temperature is 0.5℃.

[0098] Figure 4 A schematic diagram of controlling the gear position and the trigger angle is shown in FIG. 1 , and the corresponding relationship shown in Table 2 is now described. Figure 4 As shown, to obtain the same unit adjustment information, the first gear needs to be rotated 1.8°, the second gear needs to be rotated 3.6°, the third gear needs to be rotated 7.2°, and the fourth gear needs to be rotated 10.8°. It can be understood that the sensitivity of the rotation device corresponding to the first gear is the highest, and the sensitivity of the rotation device corresponding to the fourth gear is the lowest. Therefore, to obtain the same unit adjustment information, the rotation angle required for the first gear is the smallest, and the fourth gear is the largest.

[0099] In addition, the values ​​of the trigger angle and the unit adjustment information can also be changed. It can be understood that the trigger angle affects the sensitivity. When the value of the unit adjustment information remains unchanged, the smaller the trigger angle, the higher the sensitivity. The value of the unit adjustment information affects the precision of device control. When the trigger angle remains unchanged, the smaller the value of the unit adjustment information, the higher the precision. By changing the correspondence between the trigger angle and the unit adjustment information, more flexible and precise device control can be achieved.

[0100] Under the action of the above-mentioned embodiment, the first mapping is performed between the rotation information and the control gear to obtain the target control gear. Since the rotation information is obtained based on the rotation operation of the knob controller, different control gears correspond to different sensitivities. Therefore, the rotation operation of the knob controller can be used to achieve adaptive control sensitivity.

[0101] In addition, in combination with the sensitivity indicated by the target control gear, the target adjustment information is obtained by using the rotation angle calculation, and the target device is controlled by the target adjustment information. When the adjustment amount is large, the rotation operation can be controlled to switch to a high-sensitivity control gear, and the target adjustment information can be obtained while reducing the number of rotations. When fine control is required, it can be switched to low sensitivity to improve the fine control capability, thereby achieving more flexible and fine device control.

[0102] See also Figure 5 In an exemplary embodiment, step 333 may include the following steps:

[0103] Step 3331, based on the sensitivity of the rotating device indicated by the target control gear, determine the trigger angle corresponding to the unit adjustment information under the target control gear.

[0104] As mentioned above, the sensitivity includes the corresponding relationship between the trigger angle and the unit adjustment information. Then, after the target control gear is determined, the trigger angle and the unit adjustment information corresponding to the target control gear can be determined.

[0105] For example, referring back to Table 2, if the target control gear is the fourth gear, as shown in Table 2, the trigger angle corresponding to the fourth gear is 10.8°, and the unit adjustment information is 1%.

[0106] Step 3333: Calculate the target adjustment information according to the rotation angle in the rotation information and the determined trigger angle.

[0107] The trigger angle is a preset rotation angle value. When the rotation angle reaches this rotation angle value (trigger angle), a device control event will be triggered and a unit adjustment information will be generated.

[0108] For example, referring back to Table 2, if the rotation angle in the rotation information is 21.6, then the adjustment value of 2% can be obtained based on the trigger angle 10.8 degrees corresponding to the fourth gear and the unit adjustment information 1%, and the target adjustment information is 2%.

[0109] It should be noted that the rotation information may also include the rotation direction, and the adjustment direction of the target adjustment information may be determined based on the rotation direction. For example, clockwise rotation may be set to + and counterclockwise rotation may be set to -. Combined with the above example, if the rotation direction is clockwise, then the target adjustment information is +2%.

[0110] In addition, the knob controller can be associated with the parameters of the smart device, that is, the target adjustment information can also be used to adjust the parameters of the smart device. Combined with the above example, if the knob controller is associated with the brightness of the smart light, then the target adjustment information is +2% brightness. The smart light is controlled according to the target adjustment information, and the smart light will increase its brightness by 2%.

[0111] Through the above process, based on the sensitivity of the rotating device indicated by the target control gear, the target adjustment information is calculated according to the rotation angle in the rotation information and the determined trigger angle. On the one hand, it can ensure the accuracy of each triggered device control based on the preset trigger angle. On the other hand, by controlling the sensitivity of the rotating device indicated by the gear, the target adjustment information is accurately calculated, and the device is controlled according to the target adjustment information to ensure that the expected effect of device control can be achieved.

[0112] See also Figure 6 In an exemplary embodiment, step 333 may include the following steps:

[0113] Step 333a, calculating according to the rotation angle in the rotation information to obtain the rotation speed of the rotating device.

[0114] The rotation speed can be calculated according to ω=Φ / t, where ω is the rotation speed, Φ is the rotation angle, and t is the rotation time. The rotation time can be the time taken from the start of rotation to the end of rotation.

[0115] In one possible implementation, an angle sensing unit is configured inside the rotating device. As long as the rotating device rotates, the angle sensing unit can sense the change in the rotation angle, thereby generating rotation information, and sending the rotation information to the control end (such as the main control module, gateway, and server end of the rotating device). Therefore, the rotation information can include the time when the rotation information is sent. Then, based on the time when the rotation information is sent at the beginning of the rotation and the time when the rotation information occurs at the end of the rotation, the rotation time can be obtained. Among them, the angle sensing unit is a unit that senses the change in the rotation angle, which can be an optical angle sensor, a Hall sensor, etc., which is not limited here.

[0116] Step 333c: based on the rotation speed of the rotating device, find the corresponding target control gear in the corresponding relationship.

[0117] Please refer to Table 1 again. According to the corresponding relationship shown in Table 1, different rotation speeds correspond to different control gears. Therefore, the target control gear can be determined according to the calculated rotation speed.

[0118] In the above process, different rotation speeds can be obtained by controlling the rotation operation of the rotating device, thereby adjusting the corresponding target control gear to achieve adaptive control sensitivity. When the adjustment amount is large, the rotation speed can be increased to switch to a high-sensitivity control gear, and when the number of rotations is reduced, the rotation speed can be reduced to switch to a low sensitivity when fine control is required, so as to improve the fine control capability, thereby achieving more flexible and fine equipment control.

[0119] See also Figure 7 In an exemplary embodiment, step 333 may further include the following steps:

[0120] Step 33301, based on the rotation information, determine the operating status of the rotating device.

[0121] The rotating device is a device that can be controlled by rotating operation, including knob controllers, encoders, etc. The operating state is used to determine the control gear, and different operating states correspond to different ways of determining the control gear.

[0122] Step 33303: If the rotation information indicates that the rotating device is in a cold start state, determine that the target control gear is a set gear.

[0123] Among them, the cold start state is the state of the device after the rotating device is triggered to start. Specifically, the cold start state refers to the rotating device just being rotated, or the device control system performing the rotating operation on the rotating device for the first time after restarting. The cold start state is to prevent accidental triggering of device control. In the cold start state, the setting gear can prevent the device from accidentally being in a high sensitivity or high load state, thereby avoiding potential safety risks. Based on this, the setting gear is a low-sensitivity control gear. For example, refer to Table 2. The sensitivity corresponding to the fourth gear is the lowest, so the setting gear is the fourth gear.

[0124] For example, if a knob controller is used to control the load of industrial equipment, and a high-sensitivity control gear is directly entered during cold start, the high-sensitivity control gear will cause a sudden increase in load, which may cause equipment overload or damage. Therefore, a low-sensitivity setting gear can ensure that the equipment starts within a safe range.

[0125] In an exemplary embodiment, step 33303 may further include the following steps: determining whether the rotating device is within the cold start range according to the rotation angle in the rotation information. If yes, the rotating device is in the cold start state.

[0126] The cold start range can be determined based on the minimum and maximum rotation angles of the rotating device, combined with the usual rotation angle range when controlling the target device, to ensure that the user can accurately identify the cold start state when just starting to perform a rotation operation on the rotating device. In a possible implementation, the cold start range is: rotation angle Φ = 0°-10.8°

[0127] It can be understood that if the rotation angle exceeds the cold start range, it can indicate that the device control is not accidentally triggered. In addition, preheating in the cold start state can also prevent the device from being suddenly in a high-load state.

[0128] Through the above process, based on the rotation information, it is determined whether the rotating device is in a cold start state. If it is in a cold start state, the control gear is set to a low-sensitivity setting gear, thereby preventing accidental triggering of device control, causing the device to accidentally be in a high-sensitivity or high-load state, and avoiding potential safety risks.

[0129] See also Figure 8 In an exemplary embodiment, after step 333, the method may further include the following steps:

[0130] Step 410: If the running state of the rotating device is the rotating state, it is detected whether the current rotation speed of the rotating device changes.

[0131] The rotating state means that the rotating action of the rotating device has not stopped.

[0132] First of all, it should be noted that when a rotating device is used to control a target device, the rotation process is not necessarily a uniform speed process, but may also be a speed-varying process. For example, for a 20° rotation, the rotation speed of the first 15° is 45θ / s, while the rotation speed of the last 5° is 100θ / s.

[0133] Step 430 , when the current rotation speed changes, readjust the target control gear position based on the corresponding relationship to obtain an adjusted target control gear position.

[0134] It can be understood that when the rotating device is in a rotating state, its rotation speed may change at any time, and the magnitude of the rotation speed is related to the control gear.

[0135] For example, please refer to Table 1. As shown in Table 1, 45θ / s corresponds to the fourth control gear, and 100θ / s corresponds to the third control gear. It can be seen that as the rotation speed changes continuously, the control gear may also change accordingly.

[0136] Furthermore, the control gear is used to indicate the sensitivity of the rotating device, and the sensitivity can determine the degree of influence of the rotating operation on the adjustment information. That is, if the rotation speed changes, the sensitivity of the rotating device may change, thereby causing the degree of influence of the rotating operation on the adjustment information to change accordingly.

[0137] For example, please refer to Table 2. As shown in Table 2, if the original control gear is the first gear, at the first gear, every rotation of 1.8° can obtain the unit adjustment information of 1%. If the rotation speed changes, the current rotation speed corresponds to the control gear of the fourth gear after the change. Then, at this time, the unit adjustment information of 1% cannot be obtained by rotating 1.8 degrees.

[0138] It can be understood that the user adjusts the rotating device to a suitable control gear by controlling the rotation speed, thereby adjusting the sensitivity of the rotating device to control the target device, so as to meet the device control needs. If the control gear is not adaptively adjusted according to the current rotation speed, the sensitivity corresponding to the control gear will not meet the user's device control needs. Therefore, it is necessary to redetermine the control gear in the corresponding relationship based on the current rotation speed.

[0139] In summary, if the current rotation speed changes, in order to achieve adaptive adjustment of sensitivity, it is necessary to readjust the target control gear according to the current rotation speed to avoid a situation where the current rotation speed does not match the target control gear.

[0140] Regarding readjusting the target control gear, the current rotation speed can be used to readjust according to the correspondence between the rotation speed and the control gear. Specifically, please refer to Table 1, which shows the speed ranges corresponding to different control gears. If the current rotation speed meets the speed range corresponding to a certain control gear, then the control gear is the adjusted target control gear.

[0141] Through the cooperation of the above-mentioned embodiments, the user can change the rotation speed as needed, thereby changing the control gear, so as to achieve adaptive control sensitivity. When the adjustment amount is large, the rotation speed can be increased to switch to a high-sensitivity control gear, and when the number of rotations is reduced, the rotation speed can be reduced to switch to a low sensitivity when fine control is required, so as to improve the fine control capability, thereby achieving more flexible and fine equipment control.

[0142] For information on calculating the rotational speed of a rotating device in a rotating state, see Fig. 9 In an exemplary embodiment, step 430 may include the following steps:

[0143] Step 431, determining the trigger angle corresponding to the unit adjustment information under the target control gear, and judging whether the current rotation angle meets the trigger angle.

[0144] First of all, it should be noted that the minimum adjustment unit of device control is the unit adjustment information in the corresponding relationship. If the current rotation angle does not meet the trigger angle corresponding to the target control gear, the device control event will not be triggered, that is, the target device will not be controlled.

[0145] For example, the target control gear is the fourth gear, the corresponding trigger angle is 10.8°, and the adjustment amount is 1%. If the current rotation angle is 10° and does not reach 10.8°, the target device will not be controlled. If the current rotation angle is 22°, which meets 10.8° twice, the adjustment amount is 2%, and the target device is controlled based on 2%.

[0146] Calculating the rotation speed using the trigger angle in the rotating state can avoid changing the control gear before the condition for triggering the device control event is met (ie, the current rotation angle has not reached the trigger angle), thereby preventing normal device control from being disturbed.

[0147] For example, the rotation angle is 5°, the target control gear is 4th gear, and the trigger angle is 10.8°. If the angular velocity is calculated when the rotation angle is 5°, the current rotation speed may not conform to the speed range corresponding to 4th gear. If the control gear is redetermined at this time, frequent switching of the control gear may result, interfering with the normal control of the equipment.

[0148] In summary, in order to ensure the effect of device control, the angular velocity calculation is performed only when the rotation angle meets the trigger angle. In one possible implementation, based on the difference between the rotation angle when the device control event was last triggered and the current rotation angle, it can be determined whether the current rotation angle meets the trigger angle. For example, the trigger angle is 10.8°, the rotation angle when the device control event was last triggered was 3°, and the current rotation angle is 13.8°, then (13.8°-3°)=10.8°, and the current rotation angle meets the trigger angle.

[0149] Step 433: If it is met, the current rotation time is obtained according to the time when the rotating device is currently rotated to the trigger angle.

[0150] First of all, it should be noted that the trigger angle is a pre-set fixed angle value. Every time the rotating device rotates by the trigger angle, the device control event can be triggered. For example, the trigger angle is 1.8°, and the rotating device rotates a total of 7.2°, then it is equivalent to rotating 4 times 1.8°, which means that 4 device control events are triggered.

[0151] Of course, in order to ensure that the sensitivity of the rotating device indicated by the target control gear meets the device control requirements, the current rotation speed needs to match the target control gear. Furthermore, since the device control event is triggered based on the trigger angle, if the rotating device currently rotates to the trigger angle, it will trigger a device control event, thereby calculating the current rotation speed.

[0152] It can be understood that the current rotation speed is calculated based on the time of the current rotation to the trigger angle and the trigger angle. Based on this, in a possible implementation, the current rotation time (t1-t2) can be obtained by recording the time t1 when the previous trigger angle of the rotating device is satisfied and the current time t2 when the trigger angle is currently satisfied.

[0153] In addition, if the rotating device has just started to rotate, the current rotation time (t1-t2) can be obtained by recording the time t1 when the rotating device starts to rotate and the current time t2 when the trigger angle is currently met.

[0154] In addition, as mentioned above, in one possible implementation, after generating the rotation information, the rotating device can send the rotation information to the control end (such as the main control module, gateway, or server end of the rotating device). Therefore, the rotation information can include the time when the rotation information is sent. Then, based on the time when the rotation starts and the time when the rotation information occurs at the end of the rotation, the current rotation time can be obtained.

[0155] Step 435 , calculating the angular velocity of the rotating device based on the trigger angle and the current rotation time, and using the angular velocity as the current rotation velocity.

[0156] As mentioned above, the angular velocity can be calculated according to ω=Φ / t, where ω is the current rotation speed, Φ is the trigger angle, and t is the current rotation time.

[0157] Step 437: If the current rotation speed does not conform to the speed range corresponding to the target control gear, it is confirmed that the current rotation speed of the rotating device has changed.

[0158] First of all, each control gear has a corresponding speed range. If the rotation speed meets a certain speed range, then the control gear corresponding to the speed range can be determined. Based on this, if the current rotation speed does not meet the speed range corresponding to the target control gear, it can be indicated that the current rotation speed of the rotating device is changed.

[0159] Through the coordination of the above-mentioned embodiments, the current rotation speed is calculated based on the trigger angle and the current rotation time, so as to determine whether the current rotation speed has changed, so as to readjust the target control gear when the rotation speed has changed. In addition, by calculating the current rotation speed through the pre-set trigger angle, frequent switching of the control gear can be avoided to ensure normal control of the equipment.

[0160] See also Fig.10 In an exemplary embodiment, step 310 may further include the following steps:

[0161] Step 311, acquiring at least one target image.

[0162] The target image is captured during the rotation of the rotating device.

[0163] In a possible implementation, the optical angle sensor deployed in the rotating device is used to photograph the rotating device in the rotating process. Fig.10a A schematic diagram of a rotating device is shown in FIG. Fig.10a As shown, the rotating device includes a knob component, an optical angle sensor and a screen, wherein the knob component is used for rotation operation, the screen can display rotation information such as the current rotation angle and rotation direction, and the optical angle sensor is used to sense changes in the rotation angle.

[0164] Step 313: Perform rotation comparison analysis on each target image to obtain rotation information.

[0165] The rotation information includes at least one or more of the rotation direction and the rotation angle of the rotating device.

[0166] Regarding the rotation comparison analysis, the rotation direction and rotation angle of the rotating part are obtained by comparing the continuously shot target images.

[0167] For example, Fig.10b A schematic diagram of an optical angle sensor is shown in FIG. Fig.10b As shown, when the optical sensor is working, the light-emitting diode can illuminate the knob component, the purpose is to provide a lighting environment for shooting so that the micro camera can capture a clear target image. When the knob component rotates, the micro camera can continuously capture the knob component at a certain time interval. Different target images corresponding to the knob component during rotation will be transmitted to the optical angle sensor for digital processing, and analyzed by the main control module of the optical angle sensor. By comparing the continuously captured target images, the rotation direction and rotation angle of the rotating component are obtained, and the analysis results are converted into coordinate offsets to achieve cursor positioning, thereby obtaining rotation information.

[0168] Under the effect of the above-mentioned embodiments, the perception capability of the knob controller to the rotation speed is optimized, and the optical sensor is used to perceive the rotation angle, which greatly improves the perception accuracy of the knob controller to the rotation angle.

[0169] Fig.11 This is a schematic diagram of a device control method in an application scenario. The application scenario is a smart home scenario. This application scenario can be applied to Figure 1 The server side 170 shown in the implementation environment can also be applied to Figure 1 The gateway 150 shown in the implementation environment can also be used in Figure 1a The rotating device is shown.

[0170] Fig.11a A schematic diagram of a device control method is shown in FIG. Fig.11a As shown, the smart home network includes a knob controller, a gateway or a cloud and a target device. After the knob controller obtains the rotation information, it can send it to the gateway or the cloud in the form of a message. The gateway or the cloud can analyze the rotation information, generate corresponding device control instructions, and send the device control instructions to the target device, so that the target device performs corresponding actions in response to the device control instructions.

[0171] Now combined Fig.11a A device control method in this application scenario is described. In this application scenario, the knob controller is used to control the color temperature of the smart light associated with it, which specifically includes the following steps:

[0172] Through step 801, a knob controller associated with the smart light is rotated to obtain rotation information.

[0173] The rotation information includes that the rotation angle is 21.6° and the rotation direction is clockwise.

[0174] Through step 803, the rotation speed of the knob controller is obtained by calculation according to the rotation angle in the rotation information.

[0175] The rotation speed is 45θ / s.

[0176] Through step 805, based on the rotation speed of the knob controller, the corresponding target control gear is searched in the corresponding relationship.

[0177] Please refer to Table 1 again, which shows the corresponding relationship between the control gear and the rotation speed. As shown in Table 1, the control gear corresponding to the rotation speed of 45θ / s is the fourth gear, so the target control gear is the fourth gear.

[0178] Through step 807, based on the sensitivity of the knob controller indicated by the target control gear, the trigger angle corresponding to the unit adjustment information under the target control gear is determined.

[0179] Table 3 shows the corresponding relationship of the smart light. As shown in Table 3, the trigger angle corresponding to the fourth gear is 21.6°, and the unit adjustment information is 1K.

[0180] Table 3

[0181] Control gear Trigger Angle Unit adjustment information (color temperature) First gear 1.8° 1k Second gear 3.6° 1k Third gear 7.2° 1k Four gears 10.8° 1k

[0182] Through step 809, target adjustment information is calculated according to the rotation angle in the rotation information and the determined trigger angle.

[0183] According to the rotation angle of 21.6°, the trigger angle of 10.8°, and the unit adjustment information of 1k, the target adjustment information can be obtained as 2k. And because the knob controller rotates clockwise to increase, the target adjustment information is +2k color temperature.

[0184] Through step 809, a device control instruction is generated according to the target adjustment information, and the device control instruction is sent to the smart light.

[0185] Through step 811, the smart light responds to the device control instruction and executes the action of "increasing the color temperature by 2k".

[0186] In this application scenario, the smart light is associated with the knob controller by device association. The color temperature of the smart light can be controlled by rotating the knob controller, and the color temperature range of the smart light is 2700K to 6500K. The adaptive control sensitivity is achieved by changing the rotation speed, thereby improving the control accuracy of the knob controller. In the past, the adjustment of parameters such as color temperature of the knob controller was generally only around 10K, but now it can be up to 1K. In addition, the adjustable sensitivity makes the control range of the rotary knob controller wider, which can not only control lamps, but also control curtain motors, audio, air conditioners and other smart appliances that need to adjust parameters.

[0187] Compared with the related art, this scheme obtains target adjustment information corresponding to the rotation information based on the rotation information, so that based on the sensitivity of the rotating device under different rotation information and its corresponding adjustment information, it can realize adaptive change of sensitivity based on the rotation information, and then obtain the corresponding target adjustment information according to the sensitivity of different rotation information. By controlling the target device through the target adjustment information, it is possible to reduce the operations required for rotation-based control while ensuring the ability of fine control, improve the control efficiency of the device, and thus solve the problem of poor effect of device control based on rotation in the related art.

[0188] Of course, the sensitivity indicated by the target control gear can also be combined to use the rotation angle calculation to obtain the target adjustment information, and the target device can be controlled through the target adjustment information. When the adjustment amount is large, the rotation operation can be controlled to switch to a high-sensitivity control gear, and the target adjustment information can be obtained while reducing the number of rotations. When fine control is required, it can be switched to low sensitivity to improve fine control capabilities, thereby achieving more flexible and fine device control.

[0189] In addition, based on the rotation information, it is possible to determine whether the rotating device is in a cold start state. If it is in a cold start state, the control gear is set to a low-sensitivity setting gear, thereby preventing accidental triggering of device control, causing the device to accidentally be in a high-sensitivity or high-load state, and avoiding potential safety risks.

[0190] Furthermore, based on the sensitivity of the rotating device indicated by the target control gear, the target adjustment information is calculated according to the rotation angle in the rotation information and the determined trigger angle. On the one hand, it can ensure the accuracy of each triggered device control based on the pre-set trigger angle. On the other hand, by controlling the sensitivity of the rotating device indicated by the gear, the target adjustment information is accurately calculated, and the device is controlled according to the target adjustment information to ensure that the expected effect of the device control can be achieved.

[0191] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0192] The following is an embodiment of the device of the present application, which can be used to execute the device control method involved in the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the method embodiment of the device control method involved in the present application.

[0193] See also Fig.12 In an embodiment of the present application, a device control apparatus 900 is provided, including but not limited to: an acquisition module 910, a mapping module 930, and a control module 950.

[0194] The acquisition module 910 is used to acquire rotation information.

[0195] The mapping module 930 obtains target adjustment information corresponding to the rotation information according to the rotation information; the corresponding relationship is used to describe the sensitivity of the rotating device under different rotation information and its corresponding adjustment information;.

[0196] The control module 950 is used to control the target device according to the target adjustment information so that the target device performs corresponding actions according to the target adjustment information. The target adjustment information is used to indicate the action that the target device is expected to perform.

[0197] In an exemplary embodiment, the corresponding relationship includes the relationship between the rotation information, the control gear and the adjustment information; the control gear is used to indicate the sensitivity of the rotating device; the sensitivity is used to indicate the degree of influence of the rotation information on the adjustment information; the adjustment information is used to adjust the parameters of the target device; the mapping module 930 is also used to, based on the corresponding relationship, perform a first mapping between the rotation information and the control gear to obtain the target control gear; the control gear is used to indicate the sensitivity of the rotating device; according to the target control gear, a second mapping is performed between the rotation information and the adjustment information to obtain the target adjustment information.

[0198] In an exemplary embodiment, the mapping module 930 is further used to calculate the rotation speed of the rotating device according to the rotation angle in the rotation information; and to find the corresponding target control gear in the corresponding relationship based on the rotation speed of the rotating device.

[0199] In an exemplary embodiment, the mapping module 930 is also used to determine the operating state of the rotating device based on the rotation information; if the operating state of the rotating device is a cold start state, the target control gear is determined to be a set gear, and the cold start state is the device state after the rotating device is triggered to start.

[0200] In an exemplary embodiment, the mapping module 930 is further used to determine whether the rotating device is within the cold start range according to the rotation angle in the rotation information; if yes, determine that the operating state of the rotating device is a cold start state.

[0201] In an exemplary embodiment, the mapping module 930 is also used to determine the trigger angle corresponding to the unit adjustment information under the target control gear based on the sensitivity of the rotating device indicated by the target control gear; and calculate the target adjustment information according to the rotation angle in the rotation information and the determined trigger angle.

[0202] In an exemplary embodiment, the mapping module 930 is also used to detect whether the current rotation speed of the rotating device changes if the operating state of the rotating device is a rotation state; when the current rotation speed changes, the target control gear is readjusted based on the corresponding relationship to obtain an adjusted target control gear.

[0203] In an exemplary embodiment, the mapping module 930 is also used to obtain the current rotation time based on the time when the rotating device currently rotates to the trigger angle; calculate the angular velocity of the rotating device based on the trigger angle and the current rotation time, and use the angular velocity as the current rotation speed; if the current rotation speed does not conform to the speed range corresponding to the target control gear, it is confirmed that the current rotation speed of the rotating device has changed.

[0204] In an exemplary embodiment, the mapping module 930 is also used to determine the trigger angle corresponding to the unit adjustment information under the target control gear; determine whether the current rotation angle of the rotating device meets the trigger angle, and if so, obtain the current rotation time based on the time taken for the current rotation angle to rotate.

[0205] In an exemplary embodiment, the acquisition module 910 is also used to acquire at least one target image; the target image is taken during the rotation of the rotating device; and rotation comparison analysis is performed on each target image to obtain rotation information, and the rotation information includes at least one or more of the rotation direction and rotation angle of the rotating device.

[0206] It should be noted that the device control device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example when performing device control. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device control device will be divided into different functional modules to complete all or part of the functions described above.

[0207] In addition, the device control apparatus and the device control method provided in the above embodiments belong to the same concept, wherein the specific manner in which each module performs operations has been described in detail in the method embodiments and will not be repeated here.

[0208] Fig.13 A schematic diagram of the structure of an electronic device according to an exemplary embodiment. Figure 1 The server 170 and the gateway 150 in the implementation environment are shown, as well as the rotating device.

[0209] It should be noted that the server is only an example adapted to the present application and cannot be considered to provide any limitation on the scope of use of the present application. The server cannot be interpreted as requiring dependence on or having Fig.13 One or more components of exemplary server 2000 are shown.

[0210] The hardware structure of the server 2000 may vary greatly due to different configurations or performances, such as Fig.13As shown, the server 2000 includes: a power supply 210 , an interface 230 , at least one memory 250 , and at least one central processing unit (CPU) 270 .

[0211] Specifically, the power supply 210 is used to provide operating voltage for each hardware device on the server 2000 .

[0212] The interface 230 includes at least one wired or wireless network interface 231 for interacting with external devices. Figure 1 The illustrated embodiment shows the interaction between the gateway 150 and the server 130 , and between the gateway 150 and the smart device 130 in the implementation environment.

[0213] Of course, in other examples adapted by the present application, the interface 230 may further include at least one serial-to-parallel conversion interface 233, at least one input-output interface 235, and at least one USB interface 237, etc. Fig.13 As shown, this is not intended to be a specific limitation.

[0214] The memory 250 is a carrier for storing resources, which may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 251, an application 253 and data 255, etc. The storage method may be temporary storage or permanent storage.

[0215] Among them, the operating system 251 is used to manage and control the hardware devices and application programs 253 on the server 2000 to enable the central processor 270 to calculate and process the massive data 255 in the memory 250. It can be WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0216] The application program 253 is a computer-readable instruction that performs at least one specific task based on the operating system 251, and may include at least one module ( Fig.13 (not shown), each module may respectively include computer-readable instructions for the server 2000. For example, the device control apparatus may be regarded as an application 253 deployed on the server 2000.

[0217] The data 255 may be photos, pictures, etc. stored in a disk, or rotation information, etc., stored in the memory 250 .

[0218] The central processor 270 may include one or more processors and is configured to communicate with the memory 250 through at least one communication bus to read the computer-readable instructions stored in the memory 250, thereby realizing the operation and processing of the mass data 255 in the memory 250. For example, the device control method is completed by the central processor 270 reading a series of computer-readable instructions stored in the memory 250.

[0219] In addition, the present application can also be implemented through hardware circuits or hardware circuits combined with software. Therefore, the implementation of the present application is not limited to any specific hardware circuits, software, or a combination of the two.

[0220] See also Fig.14 , Fig.14 is a schematic diagram of a terminal structure according to an exemplary embodiment. The terminal is suitable for Figure 1 A user terminal 110 is shown in an implementation environment.

[0221] It should be noted that the terminal is only an example adapted to the present application and cannot be considered as providing any limitation on the scope of use of the present application. The terminal cannot be interpreted as requiring dependence on or having Fig.14 One or more components of the exemplary terminal 1100 shown in FIG.

[0222] like Fig.14 As shown, the terminal 1100 includes a memory 101, a storage controller 103, one or more ( Fig.14 The processor 105 (only one is shown in the figure), the peripheral interface 107, the radio frequency module 109, the positioning module 111, the camera module 113, the audio module 115, the touch screen 117 and the key module 119. These components communicate with each other via one or more communication buses / signal lines 121.

[0223] Among them, the memory 101 can be used to store computer-readable instructions, such as the computer-readable instructions corresponding to the device control method and apparatus in the exemplary embodiment of the present application. The processor 105 reads the computer-readable instructions stored in the memory 101 to execute various functions and data processing, thereby completing the device control method.

[0224] The memory 101 is a carrier for storing resources, and may be a random access memory, such as a high-speed random access memory, a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other solid-state memory. The storage method may be temporary storage or permanent storage.

[0225] The peripheral interface 107 may include at least one wired or wireless network interface, at least one serial-parallel conversion interface, at least one input / output interface, and at least one USB interface, etc., for coupling various external input / output devices to the memory 101 and the processor 105 to achieve communication with various external input / output devices.

[0226] The radio frequency module 109 is used to receive and transmit electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with other devices through a communication network. The communication network includes a cellular telephone network, a wireless local area network or a metropolitan area network, and the above communication network can use various communication standards, protocols and technologies.

[0227] The positioning module 111 is used to obtain the current geographical location of the terminal 1100. Examples of the positioning module 111 include, but are not limited to, a global satellite positioning system (GPS) and positioning technology based on a wireless local area network or a mobile communication network.

[0228] The camera module 113 is a camera for taking pictures or videos. The taken pictures or videos can be stored in the memory 101 and can also be sent to the host computer through the radio frequency module 109.

[0229] The audio module 115 provides an audio interface to the user, which may include one or more microphone interfaces, one or more speaker interfaces, and one or more headphone interfaces. The audio data is interacted with other devices through the audio interface. The audio data can be stored in the memory 101 and can also be sent through the radio frequency module 109.

[0230] The touch screen 117 provides an input / output interface between the terminal 1100 and the user. Specifically, the user can perform input operations through the touch screen 117, such as gesture operations such as clicking, touching, and sliding, so that the terminal 1100 responds to the input operation. The terminal 1100 displays the output content formed by any form or combination of text, pictures, or videos to the user through the touch screen 117.

[0231] The key module 119 includes at least one key to provide an interface for the user to input to the terminal 1100. The user can press different keys to make the terminal 1100 perform different functions. For example, the sound adjustment key allows the user to adjust the volume of the sound played by the terminal 1100.

[0232] Understandably, Fig.14 The structure shown is for illustration only. The terminal 1100 may also include Fig.14 More or fewer components as shown, or with Fig.14 The different components are shown. Fig.14 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0233] See also Fig.15 In an embodiment of the present application, an electronic device 4000 is provided, and the electronic device 4000 may include: a desktop computer, a laptop computer, a server, a rotating device, etc.

[0234] exist Fig.15 In the embodiment, the electronic device 4000 includes at least one processor 4001 and at least one memory 4003.

[0235] The data interaction between the processor 4001 and the memory 4003 can be realized through at least one communication bus 4002. The communication bus 4002 may include a path for transmitting data between the processor 4001 and the memory 4003. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.15 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0236] Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0237] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0238] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program instructions or codes in the form of instructions or data structures and can be accessed by the electronic device 400, but is not limited to this.

[0239] Computer-readable instructions are stored in the memory 4003 , and the processor 4001 can read the computer-readable instructions stored in the memory 4003 through the communication bus 4002 .

[0240] The computer-readable instructions are executed by one or more processors 4001 to implement the device control method in the above-mentioned embodiments.

[0241] In addition, an embodiment of the present application provides a storage medium on which computer-readable instructions are stored. The computer-readable instructions are executed by one or more processors to implement the device control method as described above.

[0242] A computer program product is provided in an embodiment of the present application. The computer program product includes computer-readable instructions. The computer-readable instructions are stored in a storage medium. One or more processors of an electronic device read the computer-readable instructions from the storage medium, load and execute the computer-readable instructions, so that the electronic device implements the device control method as described above.

[0243] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A device control method, characterized in that: include: Get rotation information; According to the rotation information, obtaining target adjustment information having a corresponding relationship with the rotation information; The corresponding relationship is used to describe the sensitivity of the rotating device under different rotation information and its corresponding adjustment information; The target device is controlled according to the target adjustment information so that the target device performs a corresponding action according to the target adjustment information, wherein the target adjustment information is used to indicate an action that the target device is expected to perform.

2. The method according to claim 1, characterized in that The corresponding relationship includes the relationship between the rotation information, the control gear and the adjustment information; the control gear is used to indicate the sensitivity of the rotating device; the sensitivity is used to indicate the degree of influence of the rotation information on the adjustment information; The adjustment information is used to adjust the parameters of the target device; The obtaining, according to the rotation information, target adjustment information having a corresponding relationship with the rotation information includes: Based on the corresponding relationship, a first mapping is performed between the rotation information and the control gear to obtain a target control gear; According to the target control gear, a second mapping is performed between the rotation information and the adjustment information to obtain target adjustment information.

3. The method according to claim 2, characterized in that The first mapping between the rotation information and the control gear position based on the corresponding relationship to obtain the target control gear position includes: Calculating the rotation speed of the rotating device according to the rotation angle in the rotation information; Based on the rotation speed of the rotating device, the corresponding target control gear is searched in the corresponding relationship.

4. The method according to claim 2, characterized in that The first mapping between the rotation information and the control gear position based on the corresponding relationship to obtain the target control gear position includes: Based on the rotation information, determining an operating state of the rotating device; If the running state of the rotating device is a cold start state, the target control gear is determined to be a set gear, and the cold start state is the device state after the rotating device is triggered to start.

5. The method according to claim 4, characterized in that The determining the operating state of the rotating device based on the rotation information includes: determining, according to the rotation angle in the rotation information, whether the rotating device is within a cold start range; If yes, it is determined that the operating state of the rotating device is a cold start state.

6. The method according to claim 2, characterized in that The second mapping between the rotation information and the adjustment information is performed according to the target control gear to obtain the target adjustment information, including: Determining, based on the sensitivity of the rotating device indicated by the target control gear, a trigger angle corresponding to the unit adjustment information at the target control gear; The target adjustment information is calculated according to the rotation angle in the rotation information and the determined trigger angle.

7. The method according to claim 2, characterized in that After performing a first mapping between the rotation information and the control gear based on the corresponding relationship to obtain a target control gear, the method further includes: If the running state of the rotating device is a rotating state, detecting whether the current rotation speed of the rotating device changes; In the case where the current rotation speed changes, the target control gear is readjusted based on the corresponding relationship to obtain an adjusted target control gear.

8. The method according to claim 7, characterized in that If the running state of the rotating device is a rotating state, detecting whether the current rotation speed of the rotating device changes includes: According to the time when the rotating device currently rotates to the trigger angle, the current rotation time is obtained; Calculate the angular velocity of the rotating device based on the trigger angle and the current rotation time, and use the angular velocity as the current rotation velocity; If the current rotation speed does not conform to the speed interval corresponding to the target control gear, it is confirmed that the current rotation speed of the rotating device has changed.

9. The method according to claim 8, characterized in that The obtaining the current rotation time according to the time when the rotating device currently rotates to the trigger angle comprises: Determine a trigger angle corresponding to the unit adjustment information under the target control gear; It is determined whether the current rotation angle of the rotating device meets the trigger angle. If it meets the trigger angle, the current rotation time is obtained based on the time elapsed by the current rotation angle.

10. The method according to any one of claims 1 to 9, characterized in that: The obtaining of rotation information comprises: Acquire at least one target image; the target image is taken during the rotation of the rotating device; Performing rotation comparison analysis on each of the target images to obtain the rotation information, wherein the rotation information includes at least one or more of the rotation direction and the rotation angle of the rotating device.

11. A rotating device, characterized in that: It includes a main control module and a sensor module; wherein, The sensor module is used to obtain rotation information; The main control module is used to obtain target adjustment information having a corresponding relationship with the rotation information according to the rotation information; the corresponding relationship is used to describe the sensitivity of the rotating device under different rotation information and its corresponding adjustment information; The main control module is further used to control the target device according to the target adjustment information, so that the target device performs corresponding actions according to the target adjustment information, and the target adjustment information is used to indicate the action that the target device is expected to perform.

12. A device control device, characterized in that: include: An acquisition module, used to acquire rotation information; A mapping module, configured to obtain target adjustment information corresponding to the rotation information according to the rotation information; The corresponding relationship is used to describe the sensitivity of the rotating device under different rotation information and its corresponding adjustment information; The control module is used to control the target device according to the target adjustment information so that the target device performs a corresponding action according to the target adjustment information, and the target adjustment information is used to indicate the action that the target device is expected to perform.

13. A rotating device, characterized in that: include: at least one processor and at least one memory, wherein: The memory has computer-readable instructions stored thereon; The computer-readable instructions are executed by one or more of the processors to enable the rotating device to implement the device control method according to any one of claims 1 to 10.

14. A storage medium having computer-readable instructions stored thereon, characterized in that: The computer-readable instructions are executed by one or more processors to implement the device control method according to any one of claims 1 to 10.

15. 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 10 are implemented.

Citation Information

Patent Citations

  • Knob control method and device and knob

    CN107065650A

  • Parameter adjusting method and device for household appliance with knob

    CN114442730A

  • Household appliance control method and device based on knob screen, equipment and storage medium

    CN117031990A

  • Device and knob of control handle

    CN206563885U

  • Mobile terminal comprising rotary type input device and method of setting sensitivity using the same

    US20080165124A1