Current dynamic monitoring method, device and equipment and computer readable storage medium
By adjusting the current monitoring level according to the working status of smart home devices, the problem of inaccurate acquisition of operating parameters in existing technologies has been solved, achieving precise current monitoring and anomaly detection.
Patent Information
- Application Number
- CN202310123420.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-14
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-02-14
AI Technical Summary
Existing technologies cannot accurately obtain the operating parameters of devices under different working conditions in smart homes, which affects security management.
Determine the working scenario based on the current working status of the target device, adjust the current monitoring level, obtain the actual current through the current sensor, and output fault information in abnormal situations.
It enables accurate monitoring of current under different working scenarios, improving the quality of current data and safety management capabilities.
Smart Images

Figure CN116087587B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of measurement, in particular to a current dynamic measurement method, device, equipment and computer readable storage medium. BACKGROUND
[0002] With the development of speech recognition technology and the popularity of smart home field, smart home gradually enters the family. In order to ensure that the smart home can run normally, the electrical operation parameters of the smart home are usually monitored in real time. However, the existing monitoring method of the smart home device cannot accurately obtain the corresponding operation parameters under different working conditions of the smart home, thereby affecting the safety management of the smart home.
[0003] The above content is only used to assist in understanding the technical solutions of the present application, and does not represent the acknowledgement of the above content as prior art. SUMMARY
[0004] The main purpose of the present application is to provide a current dynamic monitoring method, device, equipment and medium, which aims to solve the technical problem that the existing monitoring method of the smart home device cannot accurately obtain the corresponding operation parameters under different working conditions of the smart home.
[0005] In order to achieve the above purpose, the present application provides a current dynamic monitoring method, which comprises the following steps:
[0006] determining the current working scene of the target device according to the current working state of the target device;
[0007] adjusting the current current monitoring gear of the target device based on the current working scene;
[0008] obtaining the actual current of the target device under the current current monitoring gear.
[0009] Further, the step of adjusting the current current monitoring gear of the target device based on the current working scene comprises:
[0010] determining the current measurement calibration value of the target device according to the preset maximum estimated current of the current working scene;
[0011] write the current measurement calibration value to the current sensor of the target device to adjust the current current monitoring gear of the target device.
[0012] Further, the step of determining the current measurement calibration value of the target device according to the preset maximum estimated current of the current working scene comprises:
[0013] calculating a current resolution of the current sensor according to the preset maximum estimated current;
[0014] calculating the current measurement calibration value based on the current resolution, a preset voltage resolution of the target device, and a sampling resistance value of a corresponding sampling resistance of the current sensor.
[0015] Further, the step of obtaining the actual current of the target device under the current current monitoring gear includes:
[0016] obtaining an acquisition current by collecting the current of the target device through the current sensor;
[0017] calculating the actual current of the target device based on the acquisition current and the current resolution.
[0018] Further, after the step of obtaining the actual current of the target device under the current current monitoring gear, the method includes:
[0019] if the actual current continuously remains the preset maximum estimated current within a preset time period, determining a maximum current measurement calibration value based on a maximum allowed current of the target device;
[0020] writing the maximum current measurement calibration value to the current sensor and re-obtaining the actual current through the current sensor.
[0021] Further, after the step of writing the maximum current measurement calibration value to the current sensor and re-obtaining the actual current through the current sensor, the method includes:
[0022] outputting abnormal power consumption fault information, wherein the abnormal power consumption fault information includes the current working scenario, the preset maximum estimated current of the current working scenario, the actual current, the actual voltage of the target device, and a preset protection action;
[0023] performing the preset protection action.
[0024] Further, the current working state includes first opening content of a corresponding peripheral device of the target device and second opening content of an original function of the target device, and the step of determining the current working scenario of the target device according to the current working state of the target device includes:
[0025] matching the first opening content and the second opening content to the current working scenario, wherein different preset maximum estimated currents exist under each working scenario.
[0026] In addition, to achieve the above object, the application further provides a current dynamic monitoring device, comprising:
[0027] a determining module configured to determine a current working scenario of the target device according to a current working state of the target device;
[0028] an adjusting module configured to adjust a current current monitoring gear of the target device based on the current working scenario;
[0029] an acquiring module configured to acquire an actual current of the target device under the current current monitoring gear.
[0030] In addition, to achieve the above object, the application further provides a current dynamic monitoring device, comprising a memory, a processor, and a current dynamic monitoring program stored in the memory and executable on the processor, wherein the current dynamic monitoring program, when executed by the processor, implements the steps of the current dynamic monitoring method as described above.
[0031] In addition, to achieve the above object, the application further provides a computer readable storage medium having a current dynamic monitoring program stored thereon, wherein the current dynamic monitoring program, when executed by a processor, implements the steps of the current dynamic monitoring method as described above.
[0032] The current dynamic monitoring method, device, equipment and computer readable storage medium provided by the embodiments of the application can determine the current working scenario of the target device according to the current working state of the target device, adjust the current current monitoring gear of the target device based on the current working scenario, and acquire the actual current of the target device under the current current monitoring gear. That is, the embodiments of the application can determine the current working scenario of the target device in real time according to the current working state of the target device, and the working scenario can actually represent the power consumption of the target device. Correspondingly, the current is different under different power consumptions, so the current monitoring gear suitable for the current working current of the target device can be determined based on the current working scenario, and the current current monitoring gear can be adjusted, so that the accurate actual current of the target device is acquired under the appropriate current monitoring gear, and the quality of the current data monitoring is ensured. BRIEF DESCRIPTION OF DRAWINGS
[0033] Figure 1 is a device structure schematic diagram of a hardware running environment related to the embodiments of the application;
[0034] Figure 2 is a flowchart of a first embodiment of the current dynamic monitoring method of the application;
[0035] Figure 3 is a flowchart of a second embodiment of the current dynamic monitoring method of the application;
[0036] Figure 4 Figure 1 is a schematic diagram of a system for monitoring current dynamics according to an embodiment of the present application.
[0037] Figure 5 Figure 2 is a schematic diagram of a device for monitoring current dynamics according to an embodiment of the present application.
[0038] The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings. DETAILED DESCRIPTION
[0039] It should be understood that the specific embodiments described herein merely exemplify the application and do not limit the application.
[0040] As shown in Figure 1 Figure 1 is a schematic diagram of a system for monitoring current dynamics according to an embodiment of the present application. Figure 1
[0041] The device of the present application can be a smart speaker, or a television, a refrigerator, an air conditioner, a washing machine, a smart phone, a PC, a tablet computer, a portable computer, or other power-consuming electronic terminal devices.
[0042] As shown in Figure 1 the device can include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the components. The user interface 1003 can include a display screen (Display), an input unit such as a keyboard (Keyboard), and can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a magnetic disk memory. The memory 1005 can also be a storage device independent of the aforementioned processor 1001.
[0043] Optionally, the device can further include a camera, RF (Radio Frequency) circuit, sensors, audio circuit, WiFi module, etc. The sensors can include, for example, a light sensor, a motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display according to the brightness of ambient light, and the proximity sensor can turn off the display and / or backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the size of acceleration in each direction (generally three axes), and when at rest, it can detect the size and direction of gravity, which can be used for applications such as mobile terminal posture recognition (such as landscape / portrait screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. Of course, the mobile terminal can also be configured with a gyroscope, barometer, hygrometer, thermometer, infrared sensor, and other sensors, which will not be described here.
[0044] Those skilled in the art can understand that Figure 1 The device structure shown in the above embodiments does not constitute a limitation on the terminal, and can include more or fewer components than shown, or combine certain components, or different component arrangements.
[0045] As shown in Figure 1 The memory 1005 as a computer storage medium can include an operating system, a network communication module, a user interface module, and a current dynamic monitoring program.
[0046] In the device shown in Figure 1 In the device shown in
[0047] determining a current working scenario of the target device according to a current working state of the target device;
[0048] adjusting a current current monitoring gear of the target device based on the current working scenario;
[0049] obtaining an actual current of the target device in the current current monitoring gear.
[0050] Further, the processor 1001 can invoke the current dynamic monitoring program stored in the memory 1005, and further perform the following operations:
[0051] The step of adjusting the current current monitoring gear of the target device based on the current working scenario includes:
[0052] determining a current measurement calibration value of the target device according to a preset maximum estimated current of the current working scenario;
[0053] writing the current measurement calibration value to a current sensor of the target device to adjust a current monitoring level of the target device.
[0054] Further, the processor 1001 can invoke a current dynamic monitoring program stored in the memory 1005, and further perform the following operations:
[0055] The step of determining a current measurement calibration value of the target device according to a preset maximum estimated current of the current working scenario comprises:
[0056] calculating a current resolution of the current sensor according to the preset maximum estimated current;
[0057] calculating the current measurement calibration value based on the current resolution, a preset voltage resolution of the target device, and a sampling resistance of the current sensor.
[0058] Further, the processor 1001 can invoke a current dynamic monitoring program stored in the memory 1005, and further perform the following operations:
[0059] The step of obtaining an actual current of the target device at the current monitoring level comprises:
[0060] acquiring a sampling current of the target device through the current sensor;
[0061] calculating the actual current of the target device based on the sampling current and the current resolution.
[0062] Further, the processor 1001 can invoke a current dynamic monitoring program stored in the memory 1005, and further perform the following operations:
[0063] After the step of obtaining an actual current of the target device at the current monitoring level, the method comprises:
[0064] if the actual current continuously remains the preset maximum estimated current within a preset time period, determining a maximum current measurement calibration value based on a maximum allowed current of the target device;
[0065] writing the maximum current measurement calibration value to the current sensor and reacquiring the actual current through the current sensor.
[0066] Further, the processor 1001 can invoke a current dynamic monitoring program stored in the memory 1005, and further perform the following operations:
[0067] After the step of writing the maximum current measurement calibration value to the current sensor and reacquiring the actual current through the current sensor, the method comprises:
[0068] outputting abnormal power consumption fault information, wherein the abnormal power consumption fault information comprises the current working scenario, the preset maximum estimated current of the current working scenario, the actual current, the actual voltage of the target device, and a preset protection action;
[0069] executing the preset protection action.
[0070] Further, the processor 1001 can invoke the current dynamic monitoring program stored in the memory 1005, and further perform the following operations:
[0071] The current working state comprises first opening content of a current corresponding peripheral device of the target device and second opening content of an original function of the target device, and the step of determining the current working scenario of the target device according to the current working state of the target device comprises:
[0072] matching the first opening content and the second opening content based on the current working scenario, wherein different preset maximum estimated currents exist under each working scenario.
[0073] Referring to Figure 2 , the first embodiment of the current dynamic monitoring method comprises:
[0074] Step S10, determining the current working scenario of the target device according to the current working state of the target device;
[0075] It should be noted that in the present embodiment, the target device refers to an electrical device, which can be a household electrical device, such as a television, an air conditioner, a washing machine, a sound box, etc., and generally, each type of electrical device includes different working modes with different power consumptions. At present, with the development of smart home technology, various household electrical appliances are gradually associated to form a set of smart home system, at this time, it is particularly important to obtain accurate operating parameters of each household electrical appliance. At present, smart home usually uses voice recognition technology to control various household electrical appliances, and the commonly used scheme is to use a smart sound box as an entrance to control the entire smart home system, that is, to complete voice instruction receiving by means of the smart sound box to control other household electrical appliances, so the smart sound box plays a more prominent role in the smart home system. In the present embodiment, the smart sound box will be taken as an example to illustrate the current dynamic monitoring method of the present application. In addition, it should be noted that the monitored operating parameters of the household electrical appliance usually refer to the voltage or current of the electrical appliance during operation, and generally, the voltage of the electrical appliance is relatively stable, while the current changes frequently and the current change amplitude is large, thereby causing inconvenience to accurately monitor the current value.
[0076] Further, the current working state includes first opening content of a peripheral device corresponding to the target device and second opening content of the original function of the target device, and the step of determining the current working scene of the target device according to the current working state of the target device includes:
[0077] Step S11, matching the current working scene based on the first opening content and the second opening content, wherein different preset maximum estimated currents exist under each working scene.
[0078] Specifically, when the target device is a smart speaker, the peripheral device can include an LED (Light-Emitting Diode) light bar, a device providing a Wifi (Wireless-Fidelity) service, and a device providing a Bluetooth service, etc., and the original function of the target device can include a voice collection function (such as turning on the microphone of the smart speaker to collect voice data) and a playing function (such as playing music through the loudspeaker of the smart speaker) and the like. Correspondingly, the first opening content refers to the function item opened by the peripheral device, and the second opening content refers to the function item opened by the target device itself. At the same time, for the target device, the opened content (function) is different in different working scenarios, so the current working scenario can be matched according to the current first opening content and the current second opening content. For example, taking a smart speaker as an example, the working scenarios can include an off scenario, a standby scenario, a WIFI music playing scenario, and a Bluetooth music playing scenario, etc. In the off scenario, the smart speaker is in an off state, all peripherals including the LED light bar, the Wifi, the Bluetooth and the like will be turned off, the microphone is powered off, only the SOC (System on Chip) basic service is reserved, the current is the lowest in this scenario, and the actual maximum current is I1_MAX, that is, the preset maximum estimated current in the off scenario is I1MAX; in the standby scenario, only the microphone is turned on for recording, the SOC continuously detects the wake-up word, and is ready to respond to the user's instruction at any time. This scenario is more common, and the actual maximum current is I2_MAX, that is, the preset maximum estimated current in the standby scenario is I2MAX; in the WIFI music playing scenario, the user communicates with the smart speaker to play music, the smart speaker interacts with the server through WIFI to obtain the audio source data stream, and starts music playing. The current in this scenario is relatively large, and the actual maximum current is I3_MAX, that is, the preset maximum estimated current in the WIFI music playing scenario is I3MAX; in the Bluetooth music playing scenario, the user uses the phone app (Application) to connect the smart speaker through Bluetooth, the phone plays music, and the smart speaker obtains the audio data stream through Bluetooth to play music. The actual maximum current is I4_MAX, that is, the preset maximum estimated current in the Bluetooth music playing scenario is I4MAX. It should be noted that the functions of the same electrical equipment produced by different manufacturers can be different, and the functions of different electrical equipment are also different, so the above working scenarios with different opening functions can be set by the technical personnel according to the actual situation.
[0079] It can be understood that the function content opened by the target device is different in different working scenarios, and the number of opening is also different, and the power consumption of the target device is also different in different working scenarios. The transformation of power consumption will cause the current of the target device to fluctuate greatly. In this application, different working scenarios will be determined based on the working state of the target device, and the working scenario will facilitate the determination of the subsequent current monitoring gear.
[0080] Step S20, adjusting the current current monitoring gear of the target device based on the current working scenario;
[0081] Specifically, based on the above example of the smart speaker, the current difference is large in different working scenarios, from tens of milliamperes to four or five hundred milliamperes. The current is usually collected in a large collection range in the existing collection scheme, but the current value collected in the small current working mode is not accurate enough. The current current monitoring gear refers to different current collection ranges. When a small current collection range is configured to collect a small current, the accuracy of the collected current value can be improved. It can be understood that the current working scenario actually represents the approximate range of the current generated by the target device at this time, so the current current monitoring gear is adjusted in real time according to the working scenario, which can ensure that the current is collected and monitored in the appropriate current monitoring gear, ensuring the accuracy of current collection and improving the quality of monitoring. Moreover, high-precision current operating parameters can also serve as a reference for subsequent product upgrades for technical personnel.
[0082] Further, the step of adjusting the current current monitoring gear of the target device based on the current working scenario comprises:
[0083] Step S21, determining a current measurement calibration value of the target device according to a preset maximum estimated current of the current working scenario;
[0084] Step S22, writing the current measurement calibration value to the current sensor of the target device to adjust the current current monitoring gear of the target device.
[0085] Specifically, different working scenarios correspond to different preset maximum estimated currents, and the current measurement calibration value is calculated according to the maximum estimated current. The current measurement calibration value will be written to the current sensor of the target device, and correspondingly, the current sensor will update the internal calculation coefficient based on the written current measurement calibration value, thereby adjusting the current current monitoring gear of the target device. The current sensor is used to collect the current of the target device, and the current sensor configured with different current measurement calibration values has different current value collection ranges in the internal current sensor.
[0086] Further, the step of determining the current measurement calibration value of the target device according to the preset maximum estimated current of the current working scenario comprises:
[0087] Step S211, calculating the current resolution of the current sensor according to the preset maximum estimated current;
[0088] Step S212, calculating the current measurement calibration value based on the current resolution, the preset voltage resolution of the target device and the sampling resistance value of the sampling resistance corresponding to the current sensor.
[0089] Specifically, the current resolution of the current sensor refers to the minimum current change degree that can be measured by the current sensor. The calculation formula of the current resolution is as follows:
[0090]
[0091] In the formula, CurrentLSB is the current resolution, and Imax is the preset maximum estimated current of the current working scenario.
[0092] The current resolution, the preset voltage resolution of the target device and the resistance value of the sampling resistance corresponding to the current sensor are used to calculate the current measurement calibration value. The calculation formula of the current measurement calibration value is as follows:
[0093]
[0094] In the formula, Cal is the current measurement calibration value, CurrentLSB is the current resolution, ShuntLSB is the voltage resolution (usually a fixed value, such as 2.5uV), and R shunt is the resistance value of the sampling resistance corresponding to the current sensor.
[0095] Step S30, acquiring the actual current of the target device under the current current monitoring gear.
[0096] Specifically, the actual current of the target device can be accurately acquired under the current current monitoring gear obtained according to the current working scenario.
[0097] Further, the current of the target device is collected by the current sensor to obtain a collected current; and the actual current of the target device is calculated based on the collected current and the current resolution.
[0098] Specifically, the collected current collected by the current sensor is read, and the actual current of the target device is calculated based on the collected current and the current resolution. The calculation formula of the actual current is as follows:
[0099] Current=Current[R]×CurrentLSB
[0100] In the formula, Current is the actual current of the target device, Current[R] is the collected current read from the current sensor, and CurrentLSB is the current resolution.
[0101] In addition, it should be noted that the power-related operating parameters of the target device are usually monitored, so the actual current described above can be the current of the input power of the target device, or the current of a component or module in another target device that has a high demand for current accuracy and a large current fluctuation.
[0102] It can be understood that the present application determines the current working scenario of the target device according to the current working state of the target device, adjusts the current current monitoring gear of the target device based on the current working scenario, and obtains the actual current of the target device under the current current monitoring gear. That is, the present application will determine the current working scenario of the target device in real time according to the current working state of the target device, and the working scenario actually represents the power consumption of the target device. Correspondingly, the current is different under different power consumptions, so the current monitoring gear suitable for the current current of the target device can be determined based on the current working scenario, and the current current monitoring gear is adjusted, so that the accurate actual current of the target device is obtained under the appropriate current current monitoring gear, and the quality of current data monitoring is ensured.
[0103] Referring to Figure 3 Based on the first embodiment of the current dynamic monitoring method of the present application, a second embodiment of the current dynamic monitoring method of the present application is proposed. In this embodiment, the same parts as the above-mentioned embodiments can refer to the above content, and will not be repeated here. After the step of obtaining the actual current of the target device under the current current monitoring gear, the method comprises:
[0104] Step S40, if the actual current continuously remains the preset maximum estimated current within a preset time period, determining a maximum current measurement calibration value based on the maximum allowable current of the target device;
[0105] It should be noted that the current current monitoring range of the target device in the present application is adjusted based on the working scene of the target device, and therefore, the acquisition range corresponding to the current current monitoring range can acquire the current generated by the target device when the target device is working normally in the current working scene. However, if the target device is abnormal, the actual current generated by the target device when working may exceed the acquisition range corresponding to the current current monitoring range, so that the actual current monitored is continuously maintained as the upper limit of the acquisition range corresponding to the current current monitoring range, that is, the preset maximum estimated current corresponding to the current working scene. Therefore, the actual current of the target device is acquired and monitored in real time, and if the acquired actual current is always maintained as the preset maximum estimated current corresponding to the current working scene within a preset time period, it indicates that the accurate actual current cannot be acquired and the current generated by the target device when working does not match the current working mode (abnormal power consumption). Therefore, the accurate actual current needs to be acquired. The above maximum allowable current can be the current of the target device when all functions are turned on, or the maximum allowable current designed by the technician. Therefore, the current measurement calibration value, that is, the maximum current measurement calibration value, can be determined based on the maximum allowable current. The calculation process of the maximum current measurement calibration value can refer to the above embodiment, and the preset maximum estimated current is replaced by the maximum current measurement calibration value. Details are not repeated here.
[0106] In step S50, the maximum current measurement calibration value is written to the current sensor, and the actual current is reacquired by the current sensor.
[0107] Specifically, the maximum current measurement calibration value is written to the current sensor, and the actual current is reacquired by the current sensor, so as to attempt to acquire the accurate actual current value in the case that the target device is working abnormally.
[0108] Further, after the step of writing the maximum current measurement calibration value to the current sensor and reacquiring the actual current by the current sensor, the method comprises:
[0109] In step S60, abnormal power consumption fault information is output, wherein the abnormal power consumption fault information comprises the current working scene, the preset maximum estimated current of the current working scene, the actual current, the actual voltage of the target device, and a preset protection action.
[0110] In step S70, the preset protection action is performed.
[0111] It can be understood that the actual current of the target device obtained under normal circumstances and in a suitable current monitoring gear is usually within the collection range of the gear, and will not be continuously maintained as the upper limit of the collection range. Therefore, when the actual current is continuously maintained as the upper limit of the collection range, it can be determined that the target device has an abnormality, and the abnormal power consumption information is output. The abnormal power consumption information includes the current working scenario, the preset maximum estimated current of the current working scenario, the actual current, the actual voltage of the target device, and the preset protection action corresponding to the fault information. The preset protection action can include function disabling, power cutoff, etc., which can be set by the technician according to the actual situation. The above abnormal power consumption fault information can be uploaded to the server associated with the target device or sent to the mobile terminal associated with the target device through the server, and the user can understand the situation of the target device through the mobile terminal.
[0112] As mentioned above with reference to Figure 4 , the current dynamic monitoring method of the present application includes a smart speaker system connection diagram. The system includes a power supply, a smart speaker, a server and a mobile terminal. The smart speaker includes a current sensor and a SOC. The current sensor collects the current input by the power supply, and the SOC reads the current collected by the current sensor in real time to generate an actual current and perform monitoring. When the real-time current continuously maintains the upper limit of the current collection range, the smart speaker will generate abnormal power consumption fault information. The fault information will be uploaded to the server in network communication with itself, and the server can also push the fault information to the mobile terminal, so that the user can view the historical records or monitor the abnormal state in real time through the APP.
[0113] It can be understood that in the present embodiment, in addition to adjusting the current monitoring gear in real time according to the working scenario of the target device to obtain accurate actual current, the collection range corresponding to the current monitoring gear can also be used as a basis for determining whether the target device has abnormal power consumption. Thus, the abnormal power consumption of the target device in different working scenarios can be dynamically monitored.
[0114] In addition, with reference to Figure 5 , the present embodiment also provides a current dynamic monitoring method device 100A, which includes:
[0115] A determination module 10A is configured to determine the current working scenario of the target device according to the current working state of the target device.
[0116] An adjustment module 20A is configured to adjust the current current monitoring gear of the target device based on the current working scenario.
[0117] An acquisition module 30A is configured to acquire the actual current of the target device under the current current monitoring gear.
[0118] Optionally, the adjusting module 20A is further configured to:
[0119] determine a current measurement calibration value of the target device according to a preset maximum estimated current of the current working scenario;
[0120] write the current measurement calibration value to a current sensor of the target device to adjust a current monitoring level of the target device.
[0121] Optionally, the adjusting module 20A is further configured to:
[0122] The step of determining the current measurement calibration value of the target device according to the preset maximum estimated current of the current working scenario comprises:
[0123] calculating a current resolution of the current sensor according to the preset maximum estimated current;
[0124] calculating the current measurement calibration value based on the current resolution, a preset voltage resolution of the target device and a sampling resistance of the current sensor.
[0125] Optionally, the obtaining module 30A is further configured to:
[0126] obtaining an acquired current by collecting a current of the target device through the current sensor;
[0127] calculating an actual current of the target device based on the acquired current and the current resolution.
[0128] Optionally, the current dynamic monitoring device further comprises a re-checking module 30A configured to:
[0129] if the actual current continuously remains the preset maximum estimated current within a preset time period, determining a maximum current measurement calibration value based on a maximum allowed current of the target device;
[0130] writing the maximum current measurement calibration value to the current sensor and re-obtaining the actual current through the current sensor.
[0131] Optionally, the re-checking module 30A is further configured to:
[0132] outputting an abnormal power consumption fault information, wherein the abnormal power consumption fault information comprises the current working scenario, the preset maximum estimated current of the current working scenario, the actual current, an actual voltage of the target device and a preset protection action;
[0133] performing the preset protection action.
[0134] Optionally, the current working state includes first opening content of a peripheral device corresponding to the target device and second opening content of an original function of the target device, and the determination module 10A is further configured to:
[0135] match the first opening content and the second opening content with the current working scenario, wherein different preset maximum estimated currents exist in each working scenario.
[0136] The current dynamic monitoring method and device provided in the present application can accurately obtain the corresponding running parameters in different working conditions of the smart home device, which solves the technical problem that the existing monitoring method cannot accurately obtain the corresponding running parameters in different working conditions of the smart home device. Compared with the prior art, the current dynamic monitoring method and device provided in the embodiments of the present application have the same beneficial effects as the current dynamic monitoring method provided in the above embodiments, and other technical features in the current dynamic monitoring method and device are the same as the features disclosed in the above embodiments, which will not be described here.
[0137] In addition, to achieve the above-mentioned purpose, the present application also provides a current dynamic monitoring method device, which comprises a memory, a processor and a current dynamic monitoring program stored in the memory and executable on the processor. When the current dynamic monitoring program is executed by the processor, the steps of the current dynamic monitoring method are implemented.
[0138] The specific implementation of the current dynamic monitoring method device of the present application is basically the same as that of the above-mentioned current dynamic monitoring method, which will not be described here.
[0139] In addition, to achieve the above-mentioned purpose, the present application also provides a computer medium, which stores a current dynamic monitoring program. When the current dynamic monitoring program is executed by the processor, the steps of the current dynamic monitoring method are implemented.
[0140] The specific implementation of the computer medium of the present application is basically the same as that of the above-mentioned current dynamic monitoring method, which will not be described here.
[0141] It should be noted that in this paper, the term "include", "contain" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or system. Without more limitations, the element defined by the sentence "includes a" does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0142] The above application embodiment serial numbers are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0143] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and the necessary general hardware platform, of course, it can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, smart speaker, or network device, etc.) execute the methods described in various embodiments of the present application.
[0144] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method of current dynamic monitoring, characterized in that, The current dynamic monitoring method comprises the following steps: determining a current working scenario of the target device according to a current working state of the target device; adjusting a current current monitoring gear of the target device based on the current working scenario; acquiring an actual current of the target device under the current current monitoring gear; wherein, the current working state comprises first opening content of a corresponding peripheral device of the target device and second opening content of original function of the target device, the types of the peripheral device include LED light bar, device providing Wifi service and device providing Bluetooth service, the types of the original function of the target device include voice collection function and playing function, the step of determining the current working scenario of the target device according to the current working state of the target device comprises: matching the current working scenario based on the first opening content and the second opening content, wherein, different preset maximum estimated currents exist under each working scenario, and the preset maximum estimated current is used to determine a current measurement calibration value of the target device.
2. The current dynamic monitoring method of claim 1, wherein, The step of adjusting the current current monitoring gear of the target device based on the current working scenario comprises: determining the current measurement calibration value of the target device according to the preset maximum estimated current of the current working scenario; writing the current measurement calibration value into a current sensor of the target device to adjust the current current monitoring gear of the target device.
3. The current dynamic monitoring method of claim 2, wherein, The step of determining the current measurement calibration value of the target device according to the preset maximum estimated current of the current working scenario comprises: calculating a current resolution of the current sensor according to the preset maximum estimated current; calculating the current measurement calibration value based on the current resolution, preset voltage resolution of the target device and sampling resistance value of a corresponding sampling resistance of the current sensor.
4. The current dynamic monitoring method of claim 3, wherein, The step of acquiring the actual current of the target device under the current current monitoring gear comprises: acquiring a collection current of the target device through the current sensor; calculating the actual current of the target device based on the collection current and the current resolution.
5. The current dynamic monitoring method of claim 2, wherein, After the step of acquiring the actual current of the target device under the current current monitoring gear, the method comprises: if the actual current continuously remains as the preset maximum estimated current within a preset time period, determining a maximum current measurement calibration value based on a maximum allowed current of the target device; writing the maximum current measurement calibration value into the current sensor and reacquiring the actual current through the current sensor.
6. The current dynamic monitoring method of claim 5, wherein, After the step of writing the maximum current measurement calibration value into the current sensor and reacquiring the actual current through the current sensor, the method comprises: outputting abnormal power consumption fault information, wherein, the abnormal power consumption fault information comprises the current working scenario, preset maximum estimated current of the current working scenario, the actual current, actual voltage of the target device and preset protection action; executing the preset protection action.
7. A current dynamic monitoring device, characterized by, The current dynamic monitoring device comprises: determining a current working scenario of the target device according to a current working state of the target device; adjusting a current current monitoring gear of the target device based on the current working scenario; acquiring an actual current of the target device in the current current monitoring gear; wherein the current working state comprises first opening content of a corresponding peripheral device of the target device and second opening content of an original function of the target device, the types of the peripheral device include an LED light bar, a device providing a Wifi service, and a device providing a Bluetooth service, the types of the original function of the target device include a voice collection function and a playing function, and the current working scenario of the target device is determined according to the current working state of the target device by matching the first opening content and the second opening content with the current working scenario, wherein different preset maximum estimated currents exist in each working scenario, and the preset maximum estimated current is used to determine a current measurement calibration value of the target device. The current dynamic monitoring device comprises a memory, a processor, and a current dynamic monitoring program stored in the memory and executable on the processor, and the current dynamic monitoring program, when executed by the processor, implements the steps of the current dynamic monitoring method according to any one of claims 1 to 6.
8. An electrical current dynamic monitoring device, characterized by The current dynamic monitoring program is stored on the computer readable storage medium, and the current dynamic monitoring program, when executed by the processor, implements the steps of the current dynamic monitoring method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that,
Citation Information
Patent Citations
Power system current measuring device and method
CN110412339A
Current test circuit, device and method and storage medium
CN114267405A