Intelligent equipment control method and device, electronic equipment and storage medium
By judging the load status of the intelligent device driver device and using appropriate driving mode to control the current, the resource waste and control performance problems of the intelligent device when the power is blocked is solved, and the precise control of current and the optimization of power supply power is achieved.
Patent Information
- Application Number
- CN202410787241.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-11-01
AI Technical Summary
During operation of smart devices, when the motor power reaches the blockage power and adjust the power, it will lead to waste of resources and control performance, and too large power settings will lead to waste of resources.
By judging the load state of the driving device, the first driving mode or the second driving mode is used to control the current, avoid the current from rising continuously when it encounters resistance, accurately find the opportunity to control the current, and reduce waste of electricity resources.
It effectively avoids waste of electricity resources caused by excessive current, improves control performance, ensures that the current is in a moderate state, and reduces the power demand of the power supply.
Smart Images

Figure CN118884852A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of intelligent device control, and in particular to an intelligent device control method, device, electronic device and storage medium. Background Art
[0002] With the development of technology, the application of smart home devices (hereinafter referred to as smart devices) is becoming more and more popular, such as electric curtains. After receiving a command, the smart home device can execute the action corresponding to the command through the operation of the motor deployed in the smart home device. For example, the opening or closing of the electric curtain can be executed by the operation of the motor connected to the electric curtain.
[0003] In order to better drive the operation of smart devices, the motor should support power adjustment (i.e. current adjustment) within a certain power range. In a common scenario, the maximum power of a smart device is the stall power, which refers to the maximum output power required by the motor when it cannot rotate and consumes maximum energy. The motor should support power adjustment within the range after the power reaches the stall power. Based on this, the power supply power needs to be set to a power greater than the stall power.
[0004] However, in the operation scenarios of smart devices, the scenarios where the motor reaches the stall power are not frequent. Therefore, setting the power supply power to a power greater than the stall power will cause a certain waste of resources. In addition, when the motor power reaches the stall power, the power is adjusted. Not only is the adjustment range large, resulting in a waste of electric resources, but also, when the motor power reaches the stall power, it has a certain impact on the control performance of the smart device. Summary of the invention
[0005] In view of this, the purpose of the present disclosure is to propose a smart device control method, device, electronic device and storage medium, which can solve the existing problems in a targeted manner.
[0006] Based on the above-mentioned purpose, in a first aspect, the present disclosure proposes a smart device control method, including: judging the load state of a driving device, wherein the driving device is used to provide kinetic energy for the smart device; if the load state of the driving device is a first load state, controlling the current of the driving device through a first driving mode, and in the first driving mode, the driving device stops generating current flowing to the smart device; if the load state of the driving device is a second load state, controlling the current of the driving device through a second driving mode, and in the second driving mode, the driving device has current flowing to the smart device.
[0007] In the second aspect, a smart device control device is also provided, the device comprising: a judgment unit, for judging the load state of a driving device, the driving device being used to provide kinetic energy for the smart device; a first control unit, configured to control the current of the driving device through a first driving mode if the load state of the driving device is a first load state, and in the first driving mode, the driving device stops generating current flowing to the smart device; a second control unit, configured to control the current of the driving device through a second driving mode if the load state of the driving device is a second load state, and in the second driving mode, the driving device has current flowing to the smart device.
[0008] On the third aspect, a smart device is also provided, characterized in that it includes a drive device and a controller, the controller is used to determine the load state of the drive device, and the drive device is used to provide kinetic energy for the smart device; if the load state of the drive device is a first load state, the current of the drive device is controlled by a first drive mode, wherein, in the first drive mode, the drive device stops generating current flowing to the smart device; if the load state of the drive device is a second load state, the current of the drive device is controlled by a second drive mode, wherein, in the second drive mode, the drive device has current flowing to the smart device.
[0009] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the program is executed by a processor to implement any method described in the first aspect.
[0010] In a fifth aspect, an electronic device is also provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect.
[0011] In general, the present disclosure has at least the following beneficial effects: first determine the load state of the driving device, and under different load states, control the current of the driving device through the first driving mode or the second driving mode. By controlling the current of the driving device, the current of the driving device is prevented from continuously increasing when encountering resistance, and the problem of waste of electric resources caused by excessive current is avoided. In addition, by determining the load state of the driving device, the timing of controlling the current is accurately found. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in accordance with the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0013] Figure 1a A flow chart of a smart device control method according to an embodiment of the present disclosure is shown;
[0014] Figure 1b A schematic diagram of the hardware structure of a control device according to an embodiment of the present disclosure is shown;
[0015] Figure 2 A schematic diagram showing current changes of a motor according to an embodiment of the present disclosure is shown;
[0016] Figure 3a A schematic diagram of line control from the controller to the motor is shown;
[0017] Figure 3b Another current variation schematic diagram of a motor according to an embodiment of the present disclosure is shown;
[0018] Figure 4 A smart device control apparatus according to an embodiment of the present disclosure is shown;
[0019] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown;
[0020] Figure 6 A schematic diagram of a storage medium provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0021] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0022] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0023] FIG1 shows a smart device control method of the present disclosure. In an embodiment of the present disclosure, the method comprises the following steps:
[0024] Step S101, determining a load state of a driving device, where the driving device is used to provide kinetic energy for the smart device.
[0025] In this embodiment, the load state here may refer to a current load state or a voltage load state. The execution subject of the intelligent device control method (such as the controller MCU in the above-mentioned intelligent device) can use various methods to determine the load state of the driving device. For example, the above-mentioned execution subject can detect the current load state of the driving device by detecting the current of the driving device, or detect the voltage load state of the driving device by detecting the voltage of the driving device.
[0026] The smart device here has two states: static and dynamic. The driving device can provide kinetic energy for the smart device to make the smart device dynamic. Specifically, the smart device can be a motor, such as various smart home motors, such as curtain motors, fan motors, etc.
[0027] Step S102: If the load state of the driving device is the first load state, the current of the driving device is controlled by a first driving mode. In the first driving mode, the driving device stops generating current flowing to the smart device.
[0028] In this embodiment, the execution subject may control the current flowing from the driving device to the smart device through the first driving mode when the load state of the driving device is the first load state.
[0029] Specifically, the first load state here is a load state that requires the driving device to stop generating current. For example, the first load state may be that the voltage is greater than a preset voltage threshold, or the current is greater than a preset current threshold.
[0030] It can be understood that the first driving mode may be a driving stop mode, in which the driving device stops generating current flowing to the smart device.
[0031] Step S103: if the load state of the driving device is the second load state, the current of the driving device is controlled by the second driving mode. In the second driving mode, the current of the driving device flows to the smart device.
[0032] In this embodiment, the execution subject may control the current flowing from the driving device to the smart device through the second driving mode when the load state of the driving device is the second load state.
[0033] Specifically, the second load state here requires that the driving device has a current flowing to the smart device. For example, the second load state may be that the voltage is not greater than a preset voltage threshold, or the current is not greater than a preset current threshold.
[0034] It can be understood that the second driving mode may be a driving mode, in which the driving device generates a current flowing to the smart device to provide current to the smart device.
[0035] This embodiment first determines the load state of the driving device, and controls the current of the driving device through the first driving mode or the second driving mode under different load states. By controlling the current of the driving device, the current of the driving device is prevented from continuously increasing when encountering resistance, and the problem of waste of electric resources caused by excessive current is avoided. In addition, by determining the load state of the driving device, the timing of controlling the current is accurately found.
[0036] Figure 1b The hardware structure diagram of the control device in the intelligent device control method is shown. It shows that the power supply and the control unit can be connected. The control device uses a DC brush motor drive as the first drive device, and the control unit includes a controller, a DC brush motor drive, a DC motor current detection, a communication unit, a Hall detection device, a button and an indicator light.
[0037] In some optional implementations of the present embodiment, the above-mentioned determination of the load state of the driving device includes: determining the relationship between the current of the driving device and a current threshold, wherein the current threshold is less than the stall current of the driving device and greater than the load current of the driving device; if the current of the driving device is greater than or equal to the current threshold, then the load state of the driving device is a first load state; if the current of the driving device is less than the current threshold, then the load state of the driving device is a second load state.
[0038] In these optional implementations, the above-mentioned execution subject can determine the magnitude relationship between the current of the driving device and the current threshold. If the judgment result is that the current of the driving device is greater than or equal to the current threshold, it indicates that the current of the driving device is large, and the load state of the driving device can be determined to be the first load state. If the judgment result is that the current of the driving device is less than the current threshold, it indicates that the current of the driving device is small, and the load state of the driving device can be determined to be the second load state.
[0039] The value of the current threshold is between the stall current and the load current of the drive device. The load current here includes the maximum load current.
[0040] It can be understood that by limiting the current threshold between the stall current and the load current, the current of the drive device will not reach the stall current, but can be higher than the normal load, avoiding the current limiting when the current is slightly higher and keeping the high current in a moderate state.
[0041] like Figure 2 As shown in the figure, a schematic diagram of the current change of the motor from no-load to maximum load and stall is shown. Among them, the no-load current is I0, the maximum load current is I1, the stall current is I2, and the current threshold is I3.
[0042] In some optional application scenarios of these implementations, when the current threshold is set, the smart device also includes a preset resistor connected to the driving device, and a first current detector for detecting the current of the driving device and / or a second current detector for detecting the current of the preset resistor, the resistance value of the preset resistor is less than the preset value; the current threshold is obtained by performing current detection on the preset resistor by the second current detector.
[0043] In these application scenarios, a preset resistor can be connected in series, and the preset resistor can be detected by a second current detector to determine the current of the driving device, so as to obtain the result of the current detection, thereby obtaining the current threshold, and then setting the current threshold. Alternatively, a voltage detector can be used to detect the voltage at both ends of the preset resistor to obtain the voltage of the preset resistor, and the current of the driving device can be determined by the voltage and the resistance of the preset resistor.
[0044] It can be understood that the first current detector and the second current detector can detect the current of the driving device and the current of the preset resistor respectively; or only one current detector can be provided, which can detect both the current of the driving device and the current of the preset resistor.
[0045] Because the driving device is connected in series with the preset resistor, the current of the preset resistor is consistent with the current of the driving device.
[0046] The stall current refers to the current of the motor in the stalled state, that is, the current passing through the motor when the motor shaft is fixed and the motor does not rotate.
[0047] The load current refers to the current value actually detected when the motor is dragging a load, and this value varies with the size of the load. The curtain motor is configured with a maximum load, and accordingly, the load current can be the maximum load current of the motor at the maximum load.
[0048] When the motor is unloaded (i.e. without load), its current is the excitation current (once the voltage changes, the voltage is affected and excitation current is generated), and the corresponding power is reactive power.
[0049] The above-mentioned execution subject or other electronic device can obtain the current threshold through current detection in various ways. Specifically, the above-mentioned execution subject or other electronic device can determine the current of the driving device at least twice, and use the determined current to determine the current threshold. For example, the determined current is input into a preset formula or model, or the current threshold is determined using a preset corresponding relationship. The corresponding relationship here refers to the corresponding relationship between the determined current and the current threshold. Alternatively, the above-mentioned execution subject or other electronic device can calculate the rising trend of the current when the motor is working through the at least two determined currents, and determine the current threshold based on the rising trend. For example, the current with the largest corresponding rising trend and between the load current and the stall current is used as the current threshold.
[0050] For example, the process from no-load to stalled by resistance is a process in which the motor current gradually increases. For curtain motor products, generally, I2>10I0, I2 is the stalled current, I0 is the no-load current, I3 is the current threshold, and the I3 detection method is to connect a small sampling resistor (also known as a preset resistor) in series. In the DC motor current detection module circuit, the controller MCU uses ADC voltage sampling to sample the voltage across the resistor and calculate the current I3. For example, a preset resistor is connected in series, and the current detector detects the current of the preset resistor to obtain the current threshold I3.
[0051] These implementations can obtain actual detection data through current detection or voltage detection, which helps to accurately determine the current threshold that meets the actual situation, thereby achieving precise setting of the current threshold, and helps to more accurately obtain the current flowing from the driving device to the smart device.
[0052] In some optional implementations of the present embodiment, if the load state of the driving device is a first load state, the current of the driving device is controlled by a first driving mode, and in the first driving mode, the driving device stops generating current flowing to the smart device, including: the first driving mode includes a driving mode controlled by a first driving pulse, the first driving pulse includes at least one invalid driving pulse band, the level contained in the invalid driving pulse band controls the driving device to stop generating current flowing to the smart device, and the invalid driving pulse band refers to the existence of at least one invalid pulse band within a pulse cycle.
[0053] In these optional implementations, the driving device can drive the smart device through pulse control. Specifically, the driving device can stop generating current flowing to the smart device through an invalid driving pulse. When providing an invalid driving pulse, the driving device cannot provide kinetic energy to the smart device. The invalid driving pulse here can be, for example, a lost pulse, or a pulse with a level as low as close to zero.
[0054] In some cases, the PWM control frequency of the motor can be controlled to be about 20K (for example, within the range of 15K - 25K). The period of one pulse is approximately T = 50us. If one to several pulse periods are lost, and the period time of the lost pulses does not exceed 500us. For example, if 9 pulses are lost, during the time of the lost pulses (450us), let the motor move by inertia. Such a short time will not affect the normal use of the motor, but can reduce the current. Therefore, through pulse control, the rated power of the entire product power supply can be reduced, thereby achieving the purpose of saving energy consumption and reducing product costs.
[0055] For example, select an intermediate current value, that is, the current threshold I3, such that I1 < I3 < I2, where I1 is the load current, and it can be understood that I1 is the maximum load current.
[0056] When it is detected that the current of the motor is greater than I3, the current is reduced by intentionally losing several pulses. After the current drops to a certain extent ΔI (I3 - ΔI > I1), the control pulse resumes. If the current of the motor rises to I3 after a period of time, the current is reduced by losing several pulses again. In this way, the relationship between the current and the current threshold is judged in real time or periodically, and when the current is greater than the current threshold, the pulse loss process is controlled. By this method, the current of the motor can be maintained near I3 all the time.
[0057] Because the current of the motor can be maintained near I3 all the time by controlling the loss of pulses. Therefore, a constant voltage power supply can be set to achieve the purpose of reducing the power of the power supply. Among them, the constant voltage power supply P3 = UI3, and the constant voltage power supply P3 is calculated by the voltage and the current threshold.
[0058] These implementation methods can accurately control the control timing of the invalid drive pulses by setting the invalid pulse band, so that when in the first drive mode, the current flowing to the intelligent device stops being generated, so as to achieve precise control of the current of the intelligent device.
[0059] In some optional implementation methods of this embodiment, if the load state of the drive device is the second load state, the current of the drive device is controlled through the second drive mode. In the second drive mode, there is a current flowing to the intelligent device in the drive device, including: the second drive mode includes a drive mode controlled by second drive pulses, the second drive pulses include at least one drive pulse band, the level included in the drive pulse band controls the current of the drive device, and the drive pulse band refers to that within one pulse period, there is an effective pulse band.
[0060] In these optional implementations, in contrast to the invalid driving pulses, the second driving mode can drive the motor to rotate through valid pulses. These implementations set a valid pulse band, within which valid pulses can be output. Therefore, through valid pulses, the smart device can be driven and controlled, thereby providing kinetic energy to the smart device.
[0061] These implementations can accurately control the timing of issuing effective drive pulses by setting effective pulse bands, thereby performing level control in the second drive mode and utilizing effective pulses to drive the motor to rotate, thereby accurately providing kinetic energy to the smart device.
[0062] The present disclosure also provides an intelligent device, including a drive device and a controller; the controller is used to determine the load state of the drive device, and the drive device is used to provide kinetic energy for the intelligent device; if the load state of the drive device is a first load state, the current of the drive device is controlled by a first drive mode, wherein in the first drive mode, the drive device stops generating current flowing to the intelligent device; if the load state of the drive device is a second load state, the current of the drive device is controlled by a second drive mode, wherein in the second drive mode, the drive device has current flowing to the intelligent device.
[0063] In some optional implementations of this embodiment, the controller is also used to control the current of the driving device; the controller is used to output the first driving mode or the second driving mode to the driving device, and the driving device controls the current of the smart device according to the received first driving mode or the second driving mode.
[0064] In some optional implementations of the present embodiment, when the controller outputs the first driving mode to the smart device through a driving device, the controller outputs a first level signal through a first output terminal, and the first level signal includes a high level signal or a low level signal; the controller outputs a first driving pulse through a second output terminal, and the effective driving level in the first driving pulse is opposite to the first level signal, and the effective driving level is the level that triggers the controller to generate current.
[0065] In these implementations, the pulses may be various pulses, such as PWM (Pulse Width Modulation) pulses. For example, IN_A and IN_B are input terminals of a driving device (such as a DC brushed motor driving module), and OUT_A and OUT_B are output terminals connected to the driving device. Normally, when we need to rotate the motor driven by the driving device, the MCU inputs a fixed level (high level or low level) to one of the input terminals IN_A or IN_B of the driving device, so that the other input terminal of the driving device is input in a PWM manner, so that one output of the output terminal OUT_A or OUT_B of the DC brushed motor driving module is the above-mentioned fixed level, and the other output is output in a PWM manner.
[0066] Figure 3a Figure 1 is a schematic diagram of the line control from the controller to the motor. Figure 3a As shown, the figure shows that the controller outputs to the drive device through IN_A and IN_B, and the drive device outputs to the motor through OUT_A and OUT_B.
[0067] In these optional implementations, the effective driving level in the first driving pulse is opposite to the first level signal, that is, if the effective driving level is high, the first level signal is low. If the effective driving level is low, the first level signal is high.
[0068] This embodiment first determines the load state of the driving device, and controls the current of the driving device through the first driving mode or the second driving mode under different load states. By controlling the current of the driving device, the current of the driving device is prevented from continuously increasing when encountering resistance, and the problem of waste of electric resources caused by excessive current is avoided. In addition, by determining the load state of the driving device, the timing of controlling the current is accurately found.
[0069] In some cases, the controller is also used to: if the first level signal is a high level signal, control the duty cycle of at least one pulse period in the pulse signals output by both the first output terminal and the second output terminal to 1, and the pulse segment with the duty cycle controlled to 1 is an invalid drive pulse band to obtain a first drive pulse; or, if the first level signal is a low level signal, control the duty cycle of at least one pulse period in the pulse signals output by both the first output terminal and the second output terminal to 0, and the pulse segment with the duty cycle controlled to 0 is an invalid drive pulse band to obtain a first drive pulse.
[0070] Figure 3bThe schematic diagram of the process of controlling the current is shown. IN_A and IN_B are the input terminals of the driving device. When the input of IN_A is at a low level, IN_B outputs a PWM pulse with a duty cycle of 50%. Starting from the moment t0 when the motor is unloaded, the motor starts to drive the load and gradually reaches the maximum load current I1. When the current reaches the current threshold I3, the current moment is t1, and the pulse dropping operation begins. The period of the pulse dropping operation is from t1 to t2, and the duty cycle of the PWM pulse output by IN_B at this time is adjusted to 0, and this is maintained for several pulse cycles. Similarly, when the input of IN_A is at a high level ( Figure 3b When the voltage is V1 (the high level corresponding to the voltage in the middle), the duty cycle of the PWM pulse output by IN_B during the time from t1 to t2 is adjusted to 1, that is, 100%. After the pulse dropping operation, at time t2, the current drops by ΔI and the current reaches I4. This is maintained for several pulse cycles to achieve the same pulse dropping effect. During the time from t1 to t2, the invalid pulse processing, that is, the pulse dropping processing, is used to reduce the current. The target current I3 is the current threshold. T is a pulse cycle.
[0071] An embodiment of the present application provides a smart device control device, characterized in that the device includes: a judgment unit 401, which judges the load state of a driving device, and the driving device is used to provide kinetic energy for the smart device; a first control unit 402, which is configured to control the current of the driving device through a first driving mode if the load state of the driving device is a first load state, and in the first driving mode, the driving device stops generating current flowing to the smart device; a second control unit 403, which is configured to control the current of the driving device through a second driving mode if the load state of the driving device is a second load state, and in the second driving mode, the driving device has current flowing to the smart device.
[0072] Optionally, the above-mentioned device is also configured to: determine the relationship between the current of the driving device and the current threshold, wherein the current threshold is less than the stall current of the driving device and greater than the load current of the driving device; if the current of the driving device is greater than or equal to the current threshold, the load state of the driving device is a first load state; if the current of the driving device is less than the current threshold, the load state of the driving device is a second load state.
[0073] Optionally, the first driving mode includes a driving mode controlled by a first driving pulse, the first driving pulse includes at least one invalid driving pulse band, the level contained in the invalid driving pulse band controls the driving device to stop generating current flowing to the smart device, and the invalid driving pulse band refers to the existence of at least one invalid pulse band within a pulse cycle.
[0074] Optionally, the second driving mode includes a driving mode controlled by a second driving pulse, the second driving pulse includes at least one driving pulse band, the level contained in the driving pulse band controls the current of the driving device, and the driving pulse band refers to a valid pulse band within a pulse cycle.
[0075] Optionally, when the current threshold is set, the smart device also includes a preset resistor connected to the driving device, and a first current detector for detecting the current of the driving device and / or a second current detector for detecting the current of the preset resistor, the resistance value of the preset resistor is less than a preset value; the current threshold is obtained by performing current detection on the preset resistor by the second current detector.
[0076] The smart device control apparatus provided in the above-mentioned embodiment of the present disclosure and the smart device control method provided in the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0077] The embodiment of the present disclosure also provides an electronic device corresponding to the smart device control method provided in the above embodiment, so as to execute the above smart device control method. The embodiment of the present disclosure is not limited.
[0078] Please refer to Figure 5 , which shows a schematic diagram of an electronic device provided by some embodiments of the present disclosure. Figure 5 As shown, the electronic device 50 includes: a processor 500, a memory 501, and the memory 501 stores a computer program that can be run on the processor 500. When the processor 500 runs the computer program, it executes the method provided by any of the aforementioned embodiments of the present disclosure.
[0079] The memory 501 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 503 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0080] The bus 502 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 501 is used to store programs, and the processor 500 executes the program after receiving an execution instruction. The intelligent device control method disclosed in any implementation of the aforementioned embodiment of the present disclosure may be applied to the processor 500, or implemented by the processor 500.
[0081] The processor 500 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 500 or the instruction in the form of software. The above processor 500 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 501, and the processor 500 reads the information in the memory 501 and completes the steps of the above method in combination with its hardware.
[0082] The electronic device provided by the embodiment of the present disclosure and the smart device control method provided by the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented by them.
[0083] The present disclosure also provides a computer-readable storage medium corresponding to the intelligent device control method provided in the above embodiment. Figure 6 The computer-readable storage medium shown is a CD 60 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the intelligent device control method provided by any of the aforementioned embodiments will be executed.
[0084] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0085] The computer-readable storage medium provided by the above-mentioned embodiments of the present disclosure and the smart device control method provided by the embodiments of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0086] It should be noted that:
[0087] In the above text, the term "comprises", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be noted that the scope of the method and device in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0089] The embodiments of the present disclosure are described above in conjunction with the accompanying drawings, which are only specific implementation modes of the present disclosure. However, the present disclosure is not limited to the above-mentioned specific implementation modes. The above-mentioned specific implementation modes are merely illustrative and not restrictive. Under the guidance of the present disclosure, ordinary technicians in this field can also make many forms without departing from the purpose of the present disclosure and the scope of protection of the claims, all of which are within the protection of the present disclosure.
Claims
1. A method for controlling an intelligent device, characterized in that: Determining a load state of a driving device, wherein the driving device is used to provide kinetic energy for the smart device; If the load state of the driving device is a first load state, controlling the current of the driving device through a first driving mode, in which the driving device stops generating current flowing to the smart device; If the load state of the driving device is the second load state, the current of the driving device is controlled by the second driving mode. In the second driving mode, the current of the driving device flows to the smart device.
2. The method according to claim 1, characterized in that The determining the load state of the driving device comprises: Determining a magnitude relationship between a current of the drive device and a current threshold, wherein the current threshold is less than a stall current of the drive device and greater than a load current of the drive device; If the current of the driving device is greater than or equal to the current threshold, the load state of the driving device is the first load state; If the current of the driving device is less than the current threshold, the load state of the driving device is the second load state.
3. The method according to claim 1, characterized in that If the load state of the driving device is the first load state, controlling the current of the driving device through a first driving mode, wherein the driving device stops generating the current flowing to the smart device in the first driving mode, comprises: The first driving mode includes a driving mode controlled by a first driving pulse, the first driving pulse includes at least one invalid driving pulse band, the level contained in the invalid driving pulse band controls the driving device to stop generating current flowing to the smart device, and the invalid driving pulse band refers to the existence of at least one invalid pulse band within a pulse cycle.
4. The method according to claim 1, characterized in that If the load state of the driving device is the second load state, the current of the driving device is controlled by the second driving mode, and in the second driving mode, the current of the driving device flows to the smart device, including: The second driving mode includes a driving mode controlled by a second driving pulse, the second driving pulse includes at least one driving pulse band, the level contained in the driving pulse band controls the current of the driving device, and the driving pulse band refers to a valid pulse band within a pulse cycle.
5. The method according to claim 2, characterized in that: When the current threshold is set, the smart device further includes a preset resistor connected to the driving device, and a first current detector for detecting the current of the driving device and / or a second current detector for detecting the current of the preset resistor, and the resistance value of the preset resistor is less than a preset value; The current threshold is obtained by performing current detection on the preset resistor by the second current detector.
6. A smart device control device, characterized in that: The device comprises: a judging unit, configured to judge a load state of a driving device, wherein the driving device is used to provide kinetic energy for the smart device; a first control unit configured to control the current of the driving device through a first driving mode if the load state of the driving device is a first load state, in which the driving device stops generating current flowing to the smart device; The second control unit is configured to control the current of the driving device through a second driving mode if the load state of the driving device is a second load state. In the second driving mode, the current of the driving device flows to the smart device.
7. A smart device, characterized in that: including a drive device and a controller; The controller is used to determine the load state of the driving device, and the driving device is used to provide kinetic energy for the smart device; If the load state of the driving device is a first load state, controlling the current of the driving device through a first driving mode, wherein in the first driving mode, the driving device stops generating current flowing to the smart device; If the load state of the driving device is the second load state, the current of the driving device is controlled by a second driving mode, wherein in the second driving mode, the current of the driving device flows to the smart device.
8. The smart device according to claim 7, characterized in that: The controller is also used to control the current of the driving device; The controller is used to output the first driving mode or the second driving mode to the driving device, and the driving device controls the current of the smart device according to the received first driving mode or the second driving mode.
9. The smart device according to claim 8, characterized in that: In the case where the controller outputs the first driving mode to the smart device through the driving device, the controller outputs a first level signal through the first output terminal, and the first level signal includes a high level signal or a low level signal; The controller outputs a first driving pulse through a second output terminal. An effective driving level in the first driving pulse is opposite to the first level signal. The effective driving level is a level that triggers the controller to generate current.
10. The smart device according to claim 9, characterized in that: The controller is also used for: If the first level signal is a high level signal, the duty cycle of at least one pulse period in the pulse signals output by both the first output terminal and the second output terminal is controlled to be 1, and the pulse segment with the duty cycle controlled to be 1 is the invalid driving pulse band, so as to obtain the first driving pulse; or, If the first level signal is a low level signal, the duty cycle of at least one pulse period in the pulse signals output by both the first output terminal and the second output terminal is controlled to be 0, and the pulse segment with the duty cycle controlled to be 0 is the invalid drive pulse band to obtain the first drive pulse.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 5.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor executes the computer program to implement the method according to any one of claims 1 to 5.
