A control method and device of intelligent power-off data line

By collecting electrical signal data from the data cable in real time and setting multiple judgment durations and power-off conditions, the charging device is ensured to only cut off power when all conditions are met. This solves the problem of inaccurate detection in existing intelligent power-off data cables, improving charging accuracy and consumer satisfaction.

CN115663952BActive Publication Date: 2025-11-28SHENZHEN BASEUS TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211316080.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2025-11-28
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

Existing smart power-off data cables are not accurate enough in detecting whether the charging device is fully charged, which can easily lead to misjudgments, affecting the normal charging of the charging device and the consumer experience.

Method used

By collecting electrical signal data from the data line in real time, it is determined whether the target value is less than the preset value. Then, within multiple judgment periods, it is determined whether the target value meets the power-off conditions, including the first power-off condition, the second power-off condition, and the third power-off condition. The power-off operation is only performed when the target value meets the conditions within each period.

Benefits of technology

This improves the accuracy of charging equipment, avoids misjudgments, and enhances consumer satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115663952B_ABST
    Figure CN115663952B_ABST
Patent Text Reader

Abstract

The embodiment of the application relates to the field of data lines, and provides a control method and device of an intelligent power-off data line, which collects electric signal data of the data line in real time, determines a corresponding target value according to the electric signal data, and determines whether the target value is less than a first preset value; when the target value is less than the first preset value, a plurality of judgment time lengths starting from a current time point are determined, and whether the target value in each judgment time length meets a corresponding power-off condition is determined in turn; when the target value in each judgment time length meets the corresponding power-off condition, the data line is controlled to perform a power-off operation. The application can not only avoid misjudgment caused by short message prompts during charging or current sudden change during temporary use, but also improve the satisfaction of consumers.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of data lines, in particular to a control method and device of an intelligent power-off data line. BACKGROUND

[0002] At present, there are many data lines with intelligent power-off function on the market. When the charging device is fully charged, the intelligent power-off data line will automatically cut off the connection between the data line and the charging device to avoid overcharging the charging device. This not only prolongs the service life of the charging device, but also saves energy and reduces unnecessary power loss.

[0003] However, the existing intelligent power-off data line is not accurate enough in detecting whether the charging device is fully charged, and there is usually a misjudgment that affects the normal charging of the charging device, thereby affecting the consumer experience of consumers. SUMMARY

[0004] The purpose of the present application is to provide a control method and device of an intelligent power-off data line.

[0005] In a first aspect, the present application provides a control method of an intelligent power-off data line, the method comprising:

[0006] S100: collecting the electrical signal data of the data line in real time, determining the corresponding target value according to the electrical signal data, and determining whether the target value is less than a first preset value;

[0007] S200: when the target value is less than the first preset value, determining a plurality of judgment time lengths starting from the current time point, and sequentially determining whether the target value in each judgment time length meets the corresponding power-off condition;

[0008] S300: when the target value in each judgment time length meets the corresponding power-off condition, controlling the data line to perform a power-off operation.

[0009] In an optional embodiment, the plurality of judgment time lengths includes a first judgment time length, a second judgment time length and a third judgment time length, and the sequentially determining whether the target value in each judgment time length meets the corresponding power-off condition comprises:

[0010] determining whether the target value in the first judgment time length meets the corresponding first power-off condition;

[0011] If the target value in the first judgment time length meets the first power-off condition, then determining whether the target value in the second judgment time length meets the corresponding second power-off condition;

[0012] If the target value in the second determination time period meets the second power-off condition, it is determined whether the target value in the third determination time period meets a corresponding third power-off condition.

[0013] If the target value in the third determination time period meets the third power-off condition, it is determined that the target value in each determination time period meets a corresponding power-off condition, wherein the first determination time period, the second determination time period and the second determination time period are sequentially increased.

[0014] In an optional embodiment, the determination of whether the target value in the first determination time period meets a corresponding first power-off condition comprises:

[0015] determining whether the target value corresponding to each time point in the first determination time period starting from the current time point is less than the first preset value;

[0016] If the target value corresponding to each time point is less than the first preset value, it is determined that the target value in the first determination time period meets the corresponding first power-off condition.

[0017] If the target value corresponding to any time point in the first determination time period is greater than or equal to the first preset value, the timing zero operation is started from the current time point, and the steps of S100 are executed.

[0018] In an optional embodiment, the determination of whether the target value in the second determination time period meets a corresponding second power-off condition comprises:

[0019] determining whether the target value corresponding to each time point in the second determination time period starting from the current time point is less than the second preset value;

[0020] If the target value corresponding to each time point is less than the second preset value, it is determined that the target value in the second determination time period meets the corresponding second power-off condition.

[0021] If the target value corresponding to any time point in the second determination time period is greater than or equal to the second preset value, the timing zero operation is started from the current time point, and the steps of S100 are executed.

[0022] In an optional embodiment, the determination of whether the target value in the third determination time period meets a corresponding third power-off condition comprises:

[0023] determining whether the target value corresponding to each time point in the third determination time period starting from the current time point is less than the third preset value;

[0024] If the target value corresponding to each time point is less than the third preset value, it is determined that the target value in the third determination duration satisfies a corresponding third power-off condition;

[0025] If the target value corresponding to any time point in the third determination duration is greater than or equal to the third preset value, a duration in which the target value is greater than or equal to the third preset value starting from the current time point is recorded as an actual interference duration, and it is determined whether the actual interference duration is less than a preset interference duration;

[0026] When the actual interference duration is less than the preset interference duration, it is continued to be determined whether the target value corresponding to each time point in the remaining duration of the third determination duration is less than the third preset value; if the target value corresponding to each time point in the remaining duration is less than the third preset value, it is determined that the target value in the third determination duration satisfies the third power-off condition;

[0027] When the actual interference duration is greater than or equal to the preset interference duration, it is executed to determine whether the target value corresponding to each time point in the third determination duration starting from the current time point is less than the third preset value.

[0028] In an optional implementation, the determination of whether the target value in the third determination duration satisfies a corresponding third power-off condition comprises:

[0029] The third determination duration starting from the current time point is divided into a plurality of time periods, a number of time periods in which the target value corresponding to each time point is less than a third preset value is determined as a power-off satisfaction number;

[0030] It is determined whether the power-off satisfaction number is less than a preset satisfaction number;

[0031] When the power-off satisfaction number is greater than or equal to the preset satisfaction number, it is determined that the target value in the third determination duration satisfies the corresponding third power-off condition.

[0032] In an optional implementation, the electric signal data is a current value and / or a voltage value, and the target value is a power value or a current value; when the target value is the power value, the determination of the corresponding target value according to the electric signal data comprises:

[0033] The corresponding power value is determined according to the current value and the voltage value.

[0034] In an optional implementation, the data line comprises an indication unit, and the method further comprises:

[0035] It is determined whether the power value is greater than a preset power value;

[0036] control the indication unit to generate a corresponding indication signal when the power value is greater than the preset power value;

[0037] control the indication signal to be turned off after a preset holding duration from a current time point when the power value is less than or equal to the preset power value.

[0038] In an optional implementation, the indication unit is an indicator light, and the indication signal of the indicator light includes constant lighting.

[0039] control the indicator light to keep constant lighting when the power value is greater than the preset power value.

[0040] control the indicator light to keep constant lighting for the preset holding duration and then turn off when the power value is less than or equal to the preset power value.

[0041] In a second aspect, the present application provides a control device of an intelligent power-off data line, and the control device comprises:

[0042] a collection unit, configured to collect electrical signal data of the data line in real time, determine a corresponding target value according to the electrical signal data, and determine whether the target value is less than a first preset value;

[0043] a judgment unit, configured to determine a plurality of judgment durations starting from a current time point when the target value is less than the first preset value, and determine whether the target value in each judgment duration meets a corresponding power-off condition in turn;

[0044] a power-off unit, configured to control the data line to perform a power-off operation when the target value in each judgment duration meets the corresponding power-off condition.

[0045] The present application has the following beneficial effects:

[0046] The present application provides a control method of an intelligent power-off data line, which collects electrical signal data of the data line in real time, determines a corresponding target value according to the electrical signal data, and determines whether the target value is less than a first preset value; when the target value is less than the first preset value, a plurality of judgment durations starting from a current time point are determined, and whether the target value in each judgment duration meets a corresponding power-off condition is determined in turn; when the target value in each judgment duration meets the corresponding power-off condition, the data line is controlled to perform a power-off operation. The present application can not only avoid misjudgment caused by short message prompts during charging or sudden current changes during temporary use, but also improve the satisfaction of consumers.

[0047] In order to make the above objectives, characteristics and advantages of the present application more obvious and easy to understand, the following preferred embodiments are described in detail below, and the accompanying drawings are described as follows. BRIEF DESCRIPTION OF DRAWINGS

[0048] In order to more clearly illustrate the technical solutions of the present application, the drawings required to be used in the embodiments will be briefly introduced as follows. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be considered as limiting the scope of protection of the present application. In the various drawings, similar components are denoted by similar reference numerals.

[0049] Figure 1 A structural schematic diagram of an intelligent power-off data line according to an embodiment of the present application is shown.

[0050] Figure 2 A first flowchart of a control method of an intelligent power-off data line according to an embodiment of the present application is shown.

[0051] Figure 3 A flowchart of determining a first power-off condition in a control method of an intelligent power-off data line according to an embodiment of the present application is shown.

[0052] Figure 4 A first flowchart of determining a third power-off condition in a control method of an intelligent power-off data line according to an embodiment of the present application is shown.

[0053] Figure 5 A second flowchart of determining a third power-off condition in a control method of an intelligent power-off data line according to an embodiment of the present application is shown.

[0054] Figure 6 A structural schematic diagram of a control device of an intelligent power-off data line according to an embodiment of the present application is shown.

[0055] Main component symbol explanation:

[0056] 10 - intelligent power-off data line; 11 - protocol acquisition module; 12 - micro control module; 13 - power-off switch module; 14 - electric signal data acquisition module; 15 - insertion identification module; 100 - control device of intelligent power-off data line; 110 - acquisition unit; 120 - judgment unit; 130 - power-off unit. DETAILED DESCRIPTION

[0057] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments.

[0058] The components of the embodiments of the present application described and illustrated herein can be arranged and designed in a wide variety of different configurations. Therefore, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, but is merely representative of selected embodiments of the application. All other embodiments not explicitly described or shown herein are intended to be within the scope of the present application.

[0059] Hereinafter, the terms "include", "have", and their conjugates, as used in various embodiments of the present application, merely indicate the presence of the features, numbers, steps, operations, elements, components, or combinations thereof described in the specification, and do not preclude the presence or addition of one or more other features, numbers, steps, operations, elements, components, or combinations thereof.

[0060] In addition, the terms "first", "second", "third", and the like are used only to distinguish the description, and cannot be understood as indicating or implying a relative importance.

[0061] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present application belong. The terms (such as terms defined in generally used dictionaries) will be interpreted as having the same meaning as the context in the relevant technical field and will not be interpreted as having idealized or overly formal meanings, unless clearly defined in various embodiments of the present application.

[0062] Embodiment 1

[0063] The embodiments of the present application propose a control method of an intelligent power-off data line, please refer to Figure 1 The intelligent power-off data line 10 includes a micro control module 12, a power-off switch module 13, a protocol acquisition module 11, a telecommunication signal data acquisition module 14, and an insertion identification module 15. The micro control module can be a MCU (Microcontroller Unit) or the like, which is used to receive and process information input by the protocol acquisition module, the telecommunication signal data acquisition module, and the insertion identification module, and send control instructions to the power-off switch module. The telecommunication signal data acquisition module is used to acquire telecommunication signal data flowing through the intelligent power-off data line. The power-off switch module is arranged in the intelligent power-off data line, which is used to receive control commands sent by the micro control module to control the on-off of the intelligent power-off data line. The insertion identification module is used to detect whether a device to be charged is inserted, and the protocol acquisition module is used to acquire the communication protocol type of the device to be charged.

[0064] Exemplarily, asFigure 2 As shown, the control method of the intelligent power-off data line includes steps S100-S300.

[0065] Step S100: Real-time acquisition of electrical signal data of the data line, determination of the corresponding target value according to the electrical signal data, and determination of whether the target is less than a first preset value.

[0066] It can be understood that when the intelligent power-off data line insertion recognition module detects that the intelligent power-off data line is inserted into the corresponding device to be charged, and on the intelligent power-off data line, the electrical signal data acquisition module of the intelligent power-off data line will acquire the electrical signal data on the data line in real time, and determine the corresponding target value according to the acquired electrical signal data. The electrical signal data can be any one or more of the voltage value and the current value. When the acquired electrical signal data is the current value, the corresponding target value is the current value; when the acquired electrical signal data is the current value and the voltage value, the corresponding power value will be calculated according to the acquired voltage value and current value, that is, the power value is the target value.

[0067] After determining the target value, it is determined whether the target value is less than the first preset value, in other words, it is determined whether the current value or the power value is less than the corresponding first preset current value or first preset power value. When the target value is less than the first preset value, step S200 is executed; when the target value is greater than or equal to the first preset value, the real-time acquisition of the electrical signal data of the intelligent power-off data line is continued.

[0068] Step S200: Determine a plurality of judgment time lengths starting from the current time point, and determine whether the target value in each judgment time length satisfies the corresponding power-off condition.

[0069] In the present application, each judgment time length includes a plurality of time points, and each time point corresponds to an electrical signal data, that is, a target value. When the target value is less than the first preset value, the target value in the plurality of judgment time lengths starting from the current time point is determined, that is, the time point corresponding to the target value less than the first preset value, whether the target value satisfies the corresponding power-off condition. When the target value in each judgment time length satisfies the corresponding power-off condition, step S300 is executed; when there is a judgment time length in the plurality of judgment time lengths in which the target value does not satisfy the corresponding power-off condition, the corresponding step will be executed.

[0070] In one embodiment, as shown in the figure, step S200 includes sub-steps S210-S230. Figure 3

[0071] Sub-step S210: Determine whether the target value in the first judgment time length satisfies the corresponding first power-off condition.

[0072] ​It can be understood that the plurality of determination time lengths can include a first determination time length, a second determination time length and a third determination time length, and the first determination time length, the second determination time length and the third determination time length increase in turn, in other words, the first determination time length is less than the second determination time length, and the second determination time length is less than the third determination time length. Among them, there is a large difference between each determination time length, the first determination time length is the shortest, setting a shorter first determination time length not only can more accurately judge and cyclically count the target value of the data line, but also can improve the judgment efficiency; the second determination time length is relatively long, so as to further judge the target value; the third determination time length is longer, which can more accurately judge the target value of the data line. For example, the first determination time length is set to 5 seconds, the second determination time length is set to 20 seconds, and the third determination time length is set to 45 minutes. In the present application, each determination time length is set according to a hierarchical progressive relationship, which can not only more accurately judge the target value of the data line, but also can avoid misjudgment and affect normal charging.

[0073] When the determined target value is less than the first preset value, the electric signal data of the data line will be continuously collected in real time, and the corresponding target value will be determined. The time is counted from the current time point when the target value is less than the first preset value, and it is determined whether the target value corresponding to each time point in the first determination time length from the current time point is less than the first preset value. If the target value corresponding to each time point in the first determination time length is less than the first preset value, it is determined that the target value in the first determination time length meets the first power-off condition, and the sub-step S220 will be executed. At this time, the intelligent power-off data line will remain in the charging state; if it is determined that the target value of any time point in the first determination time length from the current time point is greater than or equal to the first preset value, that is, if there is a target value greater than or equal to the first preset value in the first determination time length, it is determined that the intelligent power-off data line is in the charging state, the intelligent power-off data line is controlled to remain in the charging state, and the counting operation is cleared from the current time point, that is, the first determination time length counted from the time when the target value is less than the first preset value is cleared, and the step S100 is executed.

[0074] For example, when the target value is the current value, the first preset value is 200 milliamps, and the first determination time length is 5 seconds, if it is determined that the current value is less than 200 milliamps, the current time point is marked as A, and it is determined whether the current value corresponding to each time point in 5 seconds from the current time point A is less than 200 milliamps. If the current value of each time point in 5 seconds is less than 200 milliamps, it is determined that the current value of the intelligent power-off data line in 5 seconds meets the first power-off condition, at this time the intelligent power-off data line will be controlled to remain in the charging state, and the second power-off condition will be continuously judged; if the current value of any time point in 5 seconds is greater than or equal to 200 milliamps, it is determined that the data line is in the charging state, at this time the charging operation will be maintained, and the counting operation will be cleared from the current time point, that is, no counting will be performed, until the next time the target value is less than the first preset value, the counting will be restarted.

[0075] Sub-step S220: determining whether the target value in the second judgment duration satisfies the corresponding second power-off condition.

[0076] In the present application, when the target value in the first judgment duration satisfies the first power-off condition, it is determined whether the target value at each time point in the second judgment duration counted from the current time point is less than the second preset value. If the target value at each time point in the second judgment duration is less than the second preset value, it is determined that the target value in the second judgment duration satisfies the second power-off condition, and sub-step S230 is executed. If the target value at any time point in the second judgment duration is greater than or equal to the second preset value, the counting from the time point at which the target value is greater than or equal to the second preset value, i.e., the current time point, is cleared, and step S100 is executed.

[0077] For example, when the second judgment duration is 20 seconds and the second preset value is 200 mA, after it is determined that the target value at each time point in the first judgment duration is less than the first preset value, the current time point is marked as B, and it is determined whether the target value at each time point in the 20 seconds counted from the current time point B is less than 200 mA. If the target value in the 20 seconds is less than 200 mA, it is determined that the data line satisfies the second power-off condition, the intelligent power-off data line will still be kept charging, and the judgment of the third power-off condition is continued. If the target value at any time point in the 20 seconds is greater than or equal to 200 mA, it is determined that the intelligent power-off data line is in a charging state, and the counting from the current time point is cleared.

[0078] Sub-step S230: determining whether the target value in the third judgment duration satisfies the corresponding third power-off condition.

[0079] It can be understood that when the target value in the second judgment duration satisfies the second power-off condition, it is further determined whether the target value in the third judgment duration counted from the current time point satisfies the corresponding third power-off condition. When the target value in the third judgment duration satisfies the third power-off condition, it is determined that the target value in each judgment duration satisfies the corresponding power-off condition, and step S300 is executed. When the target value in the third judgment duration does not satisfy the third power-off condition, sub-step S230 is executed.

[0080] In an embodiment, as shown in FIG. 2, sub-step S230 includes sub-steps S231-S233. Figure 4

[0081] Sub-step S231: determining whether the target value at each time point in the third judgment duration counted from the current time point is less than a third preset value.

[0082] ​It can be understood that, from the time point when the target value in the second judgment duration meets the second power-off condition, that is, from the current time point, the target value at each time point in the third judgment duration is judged whether it is less than the third preset value, if the target value at each time point in the third judgment duration is less than the third preset value, it is determined that the target value in the third judgment duration meets the corresponding third power-off condition, and step S300 is executed; if the target value at any time point in the corresponding third judgment duration is greater than or equal to the third preset value, substep S232 is executed.

[0083] Substep S232: record the duration that the target value is greater than or equal to the third preset value from the current time point as the actual interference duration, and determine whether the actual interference duration is less than the preset interference duration.

[0084] When the target value at any time point in the third judgment duration is greater than or equal to the third preset value, the time is counted from the time point when the target value is greater than or equal to the third preset value, that is, from the current time point, the duration that the target value is greater than or equal to the third preset value is recorded as the actual interference duration, and it is judged whether the recorded actual interference duration is less than the preset interference duration. When the actual interference duration is less than the preset interference duration, substep S233 is executed; when the actual interference duration is greater than or equal to the preset interference duration, the time counting from the current time point is cleared, that is, the time counting from the time point when the actual interference duration is greater than or equal to the preset interference duration is cleared, and substep S231 is re-executed.

[0085] Exemplarily, in the present application, the third judgment duration can also be divided into multiple time periods, and the target values in the multiple time periods are detected, when there is a time point in one of the time periods that the target value is greater than or equal to the third preset value, the time is counted from the time point when the target value is greater than or equal to the third preset value, and the duration that the target value is greater than or equal to the third preset value is recorded as the actual interference duration.

[0086] Substep S233: continue to determine whether the target value at each time point in the remaining duration of the third judgment duration is less than the third preset value.

[0087] It can be understood that, if the actual interference duration is less than the preset interference duration, it is determined that the actual interference duration is the time of information interference, for example, when the user receives a short message prompt or temporarily uses, a current surge will be generated. When it is determined that the actual interference duration is information interference, it is continued to judge whether the target value corresponding to each time point in the remaining duration of the third judgment duration is less than the third preset value. In the present application, the first preset value, the second preset value and the third preset value can be the same or different, and the user can set them according to the actual situation, and in the present application, the first preset value, the second preset value and the third preset value are all 200 milliamperes.

[0088] If the target value corresponding to each time point in the remaining time of the third determination time length is less than the third preset value, it is determined that the target value in the third determination time length satisfies the third power-off condition, that is, it is determined that the charging equipment currently charging through the intelligent power-off data line is fully charged, and step S300 is executed. If the target value of any time point in the remaining time of the third determination time length is greater than or equal to the third preset value, the substep S231 is re-executed.

[0089] In an embodiment, as shown in FIG. 8, step S230 further includes substeps S234-S235. Figure 5

[0090] Substep S234: The third determination time length starting from the current time point is divided into multiple time periods, and the number of time periods in which the target value corresponding to each time point is less than the third preset value is determined as the satisfied power-off times.

[0091] It can be understood that after it is determined that the target value of each time point in the second determination time length satisfies the second power-off condition, the third determination time length starting from the current time point is determined, and the third determination time length is divided into multiple time periods, each time period including at least one time point. The time periods in which the target value corresponding to each time point is less than the third preset value are determined, and the corresponding number is recorded as the satisfied power-off times.

[0092] Substep S235: It is determined whether the satisfied power-off times are less than a preset satisfied times.

[0093] After the corresponding satisfied power-off times are recorded, it is determined whether the satisfied power-off times are less than a preset power-off times. When the satisfied power-off times are greater than or equal to the preset satisfied power-off times, step S236 is executed: it is determined that the target value in the third determination time length satisfies the corresponding third power-off condition, and step S300 is executed. When the satisfied power-off times are less than the preset power-off times, the timing starting from the current time point is cleared, and substep S234 is re-executed.

[0094] For example, the third determination time length is 45 minutes, and each time period is 20 seconds. The 45 minutes are divided into 135 time periods of 20 seconds, and the 135 time periods are detected. If the target value in a time period is less than 200 mA within 20 seconds, the time period is considered to satisfy the power-off, and the recorded satisfied power-off times are incremented by one. When the satisfied power-off times are greater than or equal to the preset power-off times, or the probability of the satisfied power-off times in the total number of time periods is greater than or equal to the preset probability, such as 90%, it is determined that the target value in the third determination time length satisfies the third power-off condition.

[0095] Step S300: When the target value in each determination time length satisfies the corresponding power-off condition, the data line is controlled to perform the power-off operation.​

[0096] It can be understood that when the target value in each judgment time length meets the corresponding power-off condition, it is determined that the device to be charged is fully charged at this time, and the data line is powered off by sending a control command to the power-off switch.

[0097] In an embodiment, the intelligent power-off data line further comprises an indication unit.

[0098] It can be understood that when the target value is a power value, it is determined whether the power value is greater than a preset power value; when the power value is greater than the preset power value, the indication unit is controlled to generate a corresponding indication signal; and when the power value is less than or equal to the preset power value, the indication signal is controlled to be turned off after a preset holding time from the current time point. When the indication unit is an indicator light, if the power value is greater than the preset power value, the indicator light is controlled to remain on; and if the power value is less than or equal to the preset power value, the indicator light is controlled to remain on for a preset holding time and then turn off. For example, when the power value is greater than 1W, the data line remains in a charging state, and the indication signal is controlled to remain on; and when the charging is completed and the data line is powered off, i.e., when the power value is less than or equal to 1W, the indicator light is delayed for 1-5 minutes and then turned off.

[0099] When the indication unit is an indicator light, the indication signal can also be a first preset color or a first flashing frequency. When the power value is greater than the preset power value, the indicator light is controlled to display the first preset color or the first flashing frequency; when the power value is less than or equal to the preset power value, the indicator light is controlled to display the first preset color or the first flashing frequency for a preset holding time and then turn off, or the indicator light is controlled to display the first preset color or the first flashing frequency for a preset holding time and then display a corresponding second preset color or a second flashing frequency. The first flashing frequency and the second flashing frequency are obviously different, and the first preset color and the second preset color are also obviously different. For example, the first flashing frequency is one flash per second, and the second flashing frequency is one flash per minute; the first preset color can be green, purple, etc., and the second preset color can be yellow, red, etc.

[0100] In the present application, by setting multiple power-off conditions, i.e., by judging the power-off conditions in multiple judgment time lengths, the misjudgment caused by short message prompts during charging or sudden current changes during temporary use can be avoided, thereby improving the satisfaction of consumers.

[0101] A control method of the intelligent power-off data line based on the above-mentioned embodiments, Figure 6 A structural schematic diagram of a control device 100 of an intelligent power-off data line provided by an embodiment of the present application is shown. The control device 100 of the intelligent power-off data line comprises:

[0102] The collection unit 110 is configured to collect the electrical signal data of the data line in real time, determine a target value according to the electrical signal data, and determine whether the target value is less than a first preset value.

[0103] The judgment unit 120 is configured to, when the target value is less than the first preset value, determine a plurality of judgment time lengths starting from a current time point, and determine whether the target value in each judgment time length meets a corresponding power-off condition.

[0104] The power-off unit 130 is configured to, when the target value in each judgment time length meets the corresponding power-off condition, control the data line to perform a power-off operation.

[0105] The control device 100 of the intelligent power-off data line in the embodiment is configured to execute the control method of the intelligent power-off data line in the above embodiment, and the implementation solutions and beneficial effects related to the above embodiment are also applicable to the embodiment, which will not be described herein.

[0106] The embodiment further provides a terminal device including a memory and a processor, the memory storing a computer program, and the computer program being executed on the processor to perform the control method of the intelligent power-off data line.

[0107] The embodiment further provides a computer readable storage medium storing a computer program, and the computer program being executed on the processor to perform the control method of the intelligent power-off data line.

[0108] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are only schematic, for example, the flowcharts and structural diagrams in the drawings show the possible implementation architectures, functions and operations of the devices, methods and computer program products according to the embodiments of the present application. In this regard, each block in the flowcharts or block diagrams can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that, in alternative implementation manners, the functions noted in the blocks can also occur in different orders from those noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. It should also be noted that each block in the structural diagram and / or flowchart, and the combination of blocks in the structural diagram and / or flowchart, can be implemented by a dedicated hardware-based system for executing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0109] In addition, each functional module or unit in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0110] If the functions are implemented in the form of software functional modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts that essentially contribute to the prior art or the parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0111] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application.

Claims

1. A control method of an intelligent power-off data line, characterized in that, The method comprises: S100: collecting electrical signal data of a data line in real time, determining a corresponding target value according to the electrical signal data, and determining whether the target value is less than a first preset value; S200: when the target value is less than the first preset value, determining a plurality of judgment time lengths starting from a current time point, and sequentially determining whether the target value in each judgment time length meets a corresponding power-off condition; wherein the plurality of judgment time lengths comprise a first judgment time length, a second judgment time length, and a third judgment time length that increase sequentially; when the target value in the second judgment time length meets the power-off condition, determining whether the target value at each time point in the third judgment time length starting from the current time point is less than a third preset value; if the target value at any time point in the third judgment time length is greater than or equal to the third preset value, recording a time length during which the target value is greater than or equal to the third preset value starting from the current time point as an actual interference time length; when the actual interference time length is less than a preset interference time length, continuing to determine whether the target value at each time point in the remaining time length of the third judgment time length is less than the third preset value; if the target value at each time point in the remaining time length is less than the third preset value, it is determined that the target value in the third judgment time length meets a third power-off condition; when the actual interference time length is greater than or equal to the preset interference time length, performing the determination of whether the target value at each time point in the third judgment time length starting from the current time point is less than the third preset value; S300: when the target value in each judgment time length meets the corresponding power-off condition, controlling the data line to perform a power-off operation.

2. The control method of the intelligent power-off data line according to claim 1, wherein, The sequential determination of whether the target value in each judgment time length meets the corresponding power-off condition comprises: determining whether the target value in the first judgment time length meets a corresponding first power-off condition; if the target value in the first judgment time length meets the first power-off condition, determining whether the target value in the second judgment time length meets a corresponding second power-off condition; if the target value in the second judgment time length meets the second power-off condition, determining whether the target value in the third judgment time length meets a corresponding third power-off condition; if the target value in the third judgment time length meets the third power-off condition, it is determined that the target value in each judgment time length meets the corresponding power-off condition.

3. The control method of the intelligent power-off data line according to claim 2, wherein, The determination of whether the target value in the first judgment time length meets the corresponding first power-off condition comprises: determining whether the target value corresponding to each time point in the first judgment time length starting from the current time point is less than the first preset value; if the target value corresponding to each time point is less than the first preset value, it is determined that the target value in the first judgment time length meets the corresponding first power-off condition; if the target value corresponding to any time point in the first judgment time length is greater than or equal to the first preset value, a timing clear operation is performed starting from the current time point, and the steps of S100 are executed.

4. The control method of the intelligent power-off data line according to claim 2, wherein, The determining whether the target value in the second judgment duration meets a corresponding second power-off condition comprises: determining whether the target value at each time point in the second judgment duration starting from the current time point is less than a second preset value; if the target value at each time point is less than the second preset value, determining that the target value in the second judgment duration meets the corresponding second power-off condition; if the target value at any time point in the second judgment duration is greater than or equal to the second preset value, starting a timing clear operation from the current time point and performing the steps of S100.

5. The control method of the intelligent power-off data line according to claim 1, wherein, The determining whether the target value at each time point in the third judgment duration starting from the current time point is less than a third preset value further comprises: if the target value at each time point is less than the third preset value, determining that the target value in the third judgment duration meets the third power-off condition.

6. The control method of the intelligent power-off data line according to claim 2, wherein, The determining whether the target value in the third judgment duration meets a corresponding third power-off condition comprises: dividing the third judgment duration starting from the current time point into multiple time periods, determining the number of time periods in which the target value at each time point is less than a third preset value as a power-off frequency meeting number, determining whether the power-off frequency meeting number is less than a preset meeting number, and determining that the target value in the third judgment duration meets the corresponding third power-off condition when the power-off frequency meeting number is greater than or equal to the preset meeting number. The electric signal data is a current value and / or a voltage value, and the target value is a power value or a current value. When the target value is the power value, the determining a corresponding target value according to the electric signal data comprises: determining a corresponding power value according to the current value and the voltage value.

7. The control method of the intelligent power-off data line according to claim 1, wherein, The data line comprises an indication unit, and the method further comprises: determining whether the power value is greater than a preset power value; 8. The control method of the intelligent power-off data line according to claim 7, wherein, when the power value is greater than the preset power value, controlling the indication unit to generate a corresponding indication signal; when the power value is less than or equal to the preset power value, controlling the indication signal to be turned off after being kept for a preset keeping duration starting from the current time point. The indication unit is an indicator light, and the indication signal of the indicator light comprises a constant light. When the power value is greater than the preset power value, the indicator light is controlled to be kept constantly on.

9. The control method of the intelligent power-off data line according to claim 8, wherein, When the power value is less than or equal to the preset power value, the indicator light is controlled to be kept constantly on for the preset keeping duration and then turned off. The control device comprises: a collection unit configured to collect electric signal data of a data line in real time, determine a corresponding target value according to the electric signal data, and determine whether the target value is less than a first preset value; 10. A control device for an intelligent power-off data line, characterized in that, a judgment unit configured to, when the target value is less than the first preset value, determine a plurality of judgment durations starting from a current time point, and in turn determine whether the target value in each judgment duration meets a corresponding power-off condition; wherein the plurality of judgment durations comprise a first judgment duration, a second judgment duration, and a third judgment duration that are in turn increased; ​ ​ determining whether the target value at each time point in the third determination duration starting from the current time point is less than a third preset value when the target value in the second determination duration meets the power-off condition; if the target value at any time point in the third determination duration is greater than or equal to the third preset value, recording a duration during which the target value is greater than or equal to the third preset value starting from the current time point as an actual interference duration; when the actual interference duration is less than a preset interference duration, continuing to determine whether the target value corresponding to each time point in the remaining duration of the third determination duration is less than the third preset value; if the target value at each time point in the remaining duration is less than the third preset value, determining that the target value in the third determination duration meets a third power-off condition; when the actual interference duration is greater than or equal to the preset interference duration, performing the determination of whether the target value at each time point in the third determination duration starting from the current time point is less than a third preset value; a power-off unit configured to control the data line to perform a power-off operation when the target value in each determination duration meets the corresponding power-off condition.

Citation Information

Patent Citations

  • Current detection intelligent self-power-off data line

    CN114914741A