Low-power-consumption data transmission control method of mobile hard disk, mobile hard disk and system
By optimizing the power consumption time distribution of the mobile hard disk master control chip and setting the power consumption threshold control task execution, the problem of peak power consumption exceeding the limit for large-capacity mobile hard disks is solved, and the effect of adapting to more host models and ensuring data transmission efficiency is achieved.
Patent Information
- Application Number
- CN202510206224.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The peak power consumption of large-capacity mobile hard disks during data transmission exceeds the upper limit of the power supply of smartphones, resulting in unstable connections and interrupted data transmission.
By optimizing the power consumption time distribution of the mobile hard disk master chip, some non-emergency tasks are moved to idle execution, and setting the power consumption threshold to control task execution, ensuring that only emergency tasks are performed when the power consumption exceeds the limit.
It effectively reduces the peak power consumption of mobile hard disks, makes them adapted to more host models, and ensures data transmission efficiency and user experience.
Smart Images

Figure CN119718589A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile hard disks, and in particular to a low-power data transmission control method for a mobile hard disk, a mobile hard disk and a data transmission system. Background Art
[0002] This section is intended to provide a background or context for the embodiments of the invention described herein. No description herein is admitted to be prior art by inclusion in this section.
[0003] A mobile hard disk is a portable external storage device that can obtain power from the host and transmit data with the host after being connected to the host through an interface, thereby expanding the host's storage space. Generally speaking, the larger the capacity of a mobile hard disk, the more electronic components it stores internally, and the more complex the data read and write operations are. Therefore, under the same working conditions, the larger the capacity of a mobile hard disk, the greater its power consumption.
[0004] Due to the limited power supply capacity of the host, sometimes the power output of the host cannot meet the power consumption requirements of the mobile hard disk. For example, the power supply of an Apple mobile phone is about 4.5W, while the peak power consumption of a solid-state mobile hard disk with a capacity of more than 2TB can reach more than 5W. At this time, the connection between the mobile hard disk and the host will be unstable, resulting in data loss and transmission interruption, and may even cause hardware damage, affecting data security and user experience. Summary of the invention
[0005] Based on this, the object of the present invention is to provide a low-power data transmission control method for a mobile hard disk, a mobile hard disk and a data transmission system.
[0006] The present invention provides a low-power data transmission control method for a mobile hard disk, which comprises the following steps: S1, receiving a data transmission request, and generating a work task according to the data transmission request; S2, identifying the urgency of each work task, and dividing the work task into an urgent task and a non-urgent task according to the urgency; S3, monitoring system power consumption; S4, if the system power consumption is less than a first power consumption threshold, executing each work task normally; S5, if the system power consumption is greater than or equal to the first power consumption threshold, only executing the urgent task and postponing the execution of the non-urgent task; S6, continuously monitoring the system power consumption, and if the system power consumption drops from greater than or equal to the first power consumption threshold to less than a second power consumption threshold, resuming the execution of the postponed non-urgent task.
[0007] The present invention optimizes the time distribution of the power consumption of the mobile hard disk main control chip and moves some non-urgent tasks to be executed during idle time, thereby effectively reducing the peak power consumption of the main control chip when it is working, so that large-capacity, high-power mobile hard disk products can be adapted to more host models. Since the non-urgent tasks postponed by the present invention are not directly related to the data reading and writing process, the data transmission speed will not be affected while reducing the peak power consumption of the mobile hard disk, thus ensuring data transmission efficiency and user experience.
[0008] Furthermore, the first power consumption threshold is set to: a first preset proportion of the maximum output power of the host.
[0009] Furthermore, the second power consumption threshold is set to: a second preset ratio of the maximum output power of the host.
[0010] Furthermore, the maximum output power of the host is determined by the following method: continuously monitoring the system power consumption during operation; when insufficient power supply occurs, recording the peak value of the system power consumption in the current time period, and determining the peak value of the system power consumption in the current time period as the maximum output power of the host.
[0011] Furthermore, the method for determining the maximum output power of the host also includes the steps of: recording multiple system power consumption peaks when the power supply is insufficient, and calculating the maximum output power of the host by statistical methods based on multiple system power consumption peaks.
[0012] Furthermore, the second power consumption threshold is set by the following method: ST1, collecting system power consumption data of the mobile hard disk during the entire process of executing multiple full-load data transmission tasks, and obtaining multiple system power consumption data curve graphs; ST2, extracting typical power consumption characteristics of each of the system power consumption data curve graphs; the typical power consumption characteristics include: standby power consumption in the idle stage, short-term peak power consumption in the initialization stage, continuous high power consumption in the data reading and writing stage, and standby power consumption after data reading and writing are completed; ST3, identifying the standby power consumption data of the mobile hard disk after data reading and writing are completed based on the typical power consumption characteristics; ST4, calculating the average standby power consumption of the mobile hard disk after data reading and writing are completed by statistical methods based on multiple standby power consumption data; ST5, determining the second power consumption threshold based on the average standby power consumption.
[0013] Furthermore, after step S2, it also includes: setting an emergency task queue and a non-emergency task queue, and then placing the emergency task into the emergency task queue, and placing the non-emergency task into the non-emergency task queue; step S4 is specifically: if the system power consumption is less than the first power consumption threshold, then all work tasks in the emergency task queue and the non-emergency task queue are executed; step S5 is specifically: if the system power consumption is ≥ the first power consumption threshold, then only the emergency tasks in the emergency task queue are executed, and the execution of non-emergency tasks in the non-emergency task queue is suspended; step S6 is specifically: continuously monitoring the system power consumption, if the system power consumption drops from ≥ the first power consumption threshold to < the second power consumption threshold, then all work tasks in the emergency task queue and the non-emergency task queue are executed.
[0014] Furthermore, step S3 specifically includes: monitoring the power supply voltage and the power supply current, and calculating the system power consumption according to the power supply voltage and the power supply current.
[0015] Based on the same inventive concept, the present invention also provides a mobile hard disk, including a main control chip, the main control chip including: a work task generation module, which is used to receive a data transmission request and generate a work task according to the data transmission request; an urgency division module, which is used to identify the urgency of each work task, and divide the work task into urgent tasks and non-urgent tasks according to the urgency; a power consumption monitoring module, which is used to monitor system power consumption; a first execution module, which is used to normally execute each work task when the system power consumption is less than a first power consumption threshold; a second execution module, which is used to only execute urgent tasks and postpone the execution of non-urgent tasks when the system power consumption is greater than or equal to the first power consumption threshold; a recovery execution module, which is used to continuously monitor the system power consumption, and when the system power consumption drops from greater than or equal to the first power consumption threshold to less than the second power consumption threshold, resume the execution of the postponed non-urgent tasks.
[0016] Based on the same inventive concept, the present invention also provides a data transmission system, which includes a host and a mobile hard disk; the mobile hard disk is connected to the host through an interface; the host sends a data transmission request to the mobile hard disk; the main control chip of the mobile hard disk executes the above-mentioned low-power data transmission control method of the mobile hard disk, thereby controlling the low-power data transmission between the mobile hard disk and the host.
[0017] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a module schematic diagram of the data transmission system of the present invention; Figure 2 It is a module schematic diagram of the main control chip of the mobile hard disk of the present invention; Figure 3The invention discloses a low-power data transmission control method for a mobile hard disk. DETAILED DESCRIPTION
[0019] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0020] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0021] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0022] In addition, in the description of this application, unless otherwise specified, "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0023] It should be understood that the embodiments of the present application are not limited to the precise structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the embodiments of the present application is limited only by the appended claims.
[0024] When testing mobile hard disk products, the inventors found that some smartphone models often have unstable connection and data transmission interruption problems when transmitting data with mobile hard disks, while the same mobile hard disk will not have similar problems when connected to a PC. In order to make mobile hard disk products adapt to as many smartphone models as possible, the inventors tried to explore the root cause of the problem in order to improve mobile hard disk products in a targeted manner. After many experiments, the inventors found that the power supply capacity of some smartphone models is limited, and the peak power consumption of large-capacity mobile hard disk products during data transmission will exceed the upper limit of the power supply power of smartphones, so there will be problems of unstable connection and data transmission interruption. Since the user's smartphone model is unpredictable, in order to make the mobile hard disk product adapt to as many smartphone models as possible, the inventors tried to reduce the power consumption of the mobile hard disk. The prior art method of reducing the power consumption of mobile hard disks is usually to limit the upper limit of the data transmission speed between the mobile hard disk and the host for a long time. This solution will reduce the efficiency of data transmission and the user experience is poor.
[0025] When studying the working principle of a mobile hard disk, the inventor noticed that the signal analysis, data processing, read-write control, garbage collection, bad block management and other tasks performed by the main control chip of the mobile hard disk during the data transmission process are a major source of power consumption of the mobile hard disk. The main control chip of the existing mobile hard disk centrally performs various tasks when receiving a data transmission request sent by the host, resulting in an extremely uneven time distribution of power consumption, that is, there is almost no power consumption when idle, and the peak power consumption is higher when working. Based on the above facts, the inventor hopes to optimize the time distribution of power consumption of the main control chip of the mobile hard disk, move some work tasks to be executed when idle, so as to reduce the peak power consumption of the main control chip when working.
[0026] See also Figure 1 , Figure 1 : is a module schematic diagram of the data transmission system of the present invention. The data transmission system of the present invention includes a host 1 and a mobile hard disk 2. The mobile hard disk 2 is connected to the host 1 through an interface to obtain the power provided by the host 1 and to perform data transmission with the host 1. When the host 1 performs data transmission with the mobile hard disk 2, the host 1 sends a data transmission request to the mobile hard disk 2. At this time, the main control chip 21 of the mobile hard disk 2 reduces the system power consumption of the mobile hard disk 2 by executing the low-power data transmission control method of the mobile hard disk of the present invention, thereby preventing the situation where the power supply output by the host 1 cannot meet the power consumption requirement of the mobile hard disk 2. Specifically, the host 1 can be any smart device such as a mobile phone, a PC, a tablet computer, and a smart gateway. The interface connecting the mobile hard disk 2 to the host 1 can be any interface with power supply and / or data transmission functions such as USB 2.0, USB3.0, M.2, SATA, etc. The present invention does not limit the specific types of the host 1 and the interface.
[0027] See also Figure 2-Figure 3 , Figure 2 It is a module schematic diagram of the main control chip of the mobile hard disk of the present invention, Figure 3 The main control chip 21 of the mobile hard disk 2 includes: a task generation module M1, an urgency classification module M2, a power consumption monitoring module M3, a first execution module M4, a second execution module M5 and a recovery execution module M6.
[0028] The work task generating module M1 is used to execute step S1: receiving a data transmission request sent by a host, and generating a work task according to the data transmission request.
[0029] The urgency classification module M2 is used to execute step S2: identifying the urgency of each work task, and classifying the work tasks into urgent tasks and non-urgent tasks according to the urgency.
[0030] Specifically, the urgent tasks are tasks directly related to the data transmission process, which directly affect the real-time and reliability of data transmission. For example, data buffer management, error checking and correction, interface protocol processing and other tasks are urgent tasks. If the execution is suspended, it will lead to data loss, transmission errors or read and write failures. The non-urgent tasks are tasks that do not directly affect the data transmission process. For example, garbage collection, wear leveling, bad block management and replacement, encryption key update, firmware update, log upload and other tasks are non-urgent tasks. Suspending the execution will not affect the current data transmission process.
[0031] The power consumption monitoring module M3 is used to execute step S3: monitor the system power consumption.
[0032] In one embodiment, the mobile hard disk is provided with a power supply voltage detection circuit and a power supply current detection circuit connected to the main control chip, which are used to monitor the power supply voltage and power supply current provided by the host respectively. The main control chip obtains the power supply voltage and power supply current through the power supply voltage detection circuit and the power supply current detection circuit, and calculates the system power consumption according to the power supply voltage and power supply current. In another embodiment, the mobile hard disk is provided with a power management module connected to the main control chip, and the power management module can directly calculate the system power consumption and transmit the calculated system power consumption to the main control chip.
[0033] The first execution module M4 is used to execute step S4: if the system power consumption is less than the first power consumption threshold, each work task is executed normally.
[0034] The second execution module M5 is used to execute step S5: if the system power consumption is greater than or equal to the first power consumption threshold, only the urgent tasks are executed and the execution of the non-urgent tasks is postponed.
[0035] Further, the first power consumption threshold can be dynamically adjusted with the power supply capacity of the host, for example, it is set to a first preset ratio (for example, 90%) of the maximum output power of the host. Specifically, the main control chip of the mobile hard disk can obtain the maximum output power of the host by the following method: 1. After connecting to the host, the main control chip of the mobile hard disk communicates with the host and requests the host to obtain its power supply parameters, thereby obtaining the maximum output power of the host. 2. The main control chip of the mobile hard disk determines the maximum output power of the host by identifying the type of interface connected to the host. For example, interfaces of different specifications such as USB 2.0, USB 3.0, USB 3.1, USB3.2, etc. have different maximum output powers. The main control chip of the mobile hard disk obtains the maximum output power corresponding to the interface by querying a preset table according to the interface type. 3. The main control chip of the mobile hard disk continuously monitors its own system power consumption when working. When the power supply is insufficient, the system power consumption peak value in the current time period is recorded, and the system power consumption peak value in the current time period is regarded as the maximum output power of the host. Preferably, the system power consumption peak values when the power supply is insufficient for multiple times are recorded, and the maximum output power of the host is calculated by a statistical method based on multiple system power consumption peak values.
[0036] The recovery execution module M6 is used to execute step S6: continuously monitor the system power consumption, and if the system power consumption drops from ≥ the first power consumption threshold to < the second power consumption threshold, then recover the postponed non-urgent task; the second power consumption threshold ≤ the first power consumption threshold.
[0037] Furthermore, the second power consumption threshold can be dynamically adjusted with the power supply capacity of the host, for example, set to a second preset ratio (for example, 30%) of the maximum output power of the host. In order to avoid the system power consumption from continuously fluctuating between the upper and lower limits of [second power consumption threshold, first power consumption threshold], resulting in instability in the list of work tasks executed by the main control chip, the second power consumption threshold is preferably much smaller than the first power consumption threshold, so that the main control chip will only execute non-urgent tasks after completing all urgent tasks with high power consumption.
[0038] In one embodiment, the second power consumption threshold is set using the following steps: ST1, collecting the system power consumption data of the mobile hard disk during the entire process of performing multiple full-load data transmission tasks, and obtaining multiple system power consumption data curves. ST2, extracting the typical power consumption characteristics of each of the system power consumption data curves. The typical power consumption characteristics include: standby power consumption in the idle stage (smaller value), short-term peak power consumption in the initialization stage (largest value), continuous high power consumption in the data reading and writing stage (larger value), and standby power consumption after data reading and writing are completed (smaller value). ST3, based on the typical power consumption characteristics, identifying the standby power consumption data of the mobile hard disk after data reading and writing are completed. ST4, based on multiple standby power consumption data, calculating the average standby power consumption of the mobile hard disk after data reading and writing are completed by statistical methods. ST5, determining the second power consumption threshold based on the average standby power consumption.
[0039] Furthermore, after step S2, the method further includes the steps of: setting an emergency task queue and a non-emergency task queue, and then placing the emergency task obtained in step S2 into the emergency task queue, and placing the non-emergency task into the non-emergency task queue. Step S4 is specifically as follows: if the system power consumption is less than the first power consumption threshold, all work tasks in the emergency task queue and the non-emergency task queue are executed. Step S5 is specifically as follows: if the system power consumption is greater than or equal to the first power consumption threshold, only the emergency tasks in the emergency task queue are executed, and the execution of the non-emergency tasks in the non-emergency task queue is suspended. Step S6 is specifically as follows: continuously monitoring the system power consumption, and if the system power consumption drops from greater than or equal to the first power consumption threshold to less than the second power consumption threshold, all work tasks in the emergency task queue and the non-emergency task queue are executed.
[0040] Furthermore, the present invention also adopts a 12nm process main control chip to replace the 28nm / 40nm process main control chip commonly used in mobile hard disks on the market, thereby reducing the power consumption of the mobile hard disk main control chip at the hardware level.
[0041] The present invention has the following technical effects: by optimizing the time distribution of the power consumption of the mobile hard disk main control chip, the present invention moves some non-urgent tasks to be executed during idle time, effectively reducing the peak power consumption of the main control chip when it is working, so that large-capacity, high-power mobile hard disk products can be adapted to more host models. Since the non-urgent tasks postponed by the present invention are not directly related to the data reading and writing process, the data transmission speed will not be reduced while reducing the peak power consumption of the mobile hard disk, thus ensuring data transmission efficiency and user experience.
[0042] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, and the present invention is also intended to include these modifications and modifications.
Claims
1. A low-power data transmission control method for a mobile hard disk, characterized in that: Includes steps: S1, receiving a data transmission request and generating a work task according to the data transmission request; S2, identifying the urgency of each work task, and dividing the work tasks into urgent tasks and non-urgent tasks according to the urgency; S3, monitoring system power consumption; S4, if the system power consumption is less than the first power consumption threshold, then each work task is performed normally; S5, if the system power consumption is greater than or equal to the first power consumption threshold, only urgent tasks are executed, and non-urgent tasks are postponed; S6, continuously monitoring the system power consumption, if the system power consumption drops from ≥ the first power consumption threshold to < the second power consumption threshold, resuming execution of the postponed non-urgent task.
2. The low-power data transmission control method of a mobile hard disk according to claim 1, characterized in that: The first power consumption threshold is set as: a first preset ratio of the maximum output power of the host.
3. The low power consumption data transmission control method of a mobile hard disk according to claim 2, characterized in that: The second power consumption threshold is set as: a second preset ratio of the maximum output power of the host.
4. The low power consumption data transmission control method of a mobile hard disk according to claim 3, characterized in that: The maximum output power of the host is determined by the following method: The system power consumption is continuously monitored during operation; when the power supply is insufficient, the peak value of the system power consumption in the current time period is recorded, and the peak value of the system power consumption in the current time period is determined as the maximum output power of the host.
5. The low power consumption data transmission control method of a mobile hard disk according to claim 4, characterized in that: The method for determining the maximum output power of the host also includes the steps of: recording multiple system power consumption peaks when the power supply is insufficient, and calculating the maximum output power of the host by a statistical method based on multiple system power consumption peaks.
6. The low-power data transmission control method of a mobile hard disk according to any one of claims 1-2, 4-5, characterized in that: The second power consumption threshold is set by the following method: ST1, collecting system power consumption data of the mobile hard disk during the entire process of performing multiple full-load data transmission tasks, and obtaining multiple system power consumption data curve graphs; ST2, extracting typical power consumption characteristics of each of the system power consumption data curve graphs; The typical power consumption characteristics include: standby power consumption in the idle phase, short-term peak power consumption in the initialization phase, continuous high power consumption in the data reading and writing phase, and standby power consumption after data reading and writing are completed; ST3, identifying the standby power consumption data of the mobile hard disk after data reading and writing are completed according to the typical power consumption characteristics; ST4, calculating the average standby power consumption of the mobile hard disk after data reading and writing are completed by a statistical method according to the plurality of standby power consumption data; ST5, determining a second power consumption threshold according to the average standby power consumption.
7. The low power consumption data transmission control method of a mobile hard disk according to claim 1, characterized in that: After step S2, the method further includes: setting an urgent task queue and a non-urgent task queue, and then placing the urgent task into the urgent task queue and placing the non-urgent task into the non-urgent task queue; Step S4 specifically includes: if the system power consumption is less than the first power consumption threshold, executing all work tasks in the urgent task queue and the non-urgent task queue; Step S5 specifically includes: if the system power consumption is greater than or equal to the first power consumption threshold, only the urgent tasks in the urgent task queue are executed, and the non-urgent tasks in the non-urgent task queue are suspended; Step S6 specifically includes: continuously monitoring the system power consumption, and if the system power consumption decreases from ≥ the first power consumption threshold to < the second power consumption threshold, executing all the work tasks in the urgent task queue and the non-urgent task queue.
8. The low power consumption data transmission control method of a mobile hard disk according to claim 1, characterized in that: Step S3 specifically includes: monitoring the power supply voltage and the power supply current, and calculating the system power consumption according to the power supply voltage and the power supply current.
9. A mobile hard disk, comprising a main control chip, characterized in that: The main control chip includes: A work task generation module, which is used to receive a data transmission request and generate a work task according to the data transmission request; An urgency classification module is used to identify the urgency of each work task and classify the work tasks into urgent tasks and non-urgent tasks according to the urgency; A power consumption monitoring module, which is used to monitor the power consumption of the system; A first execution module, configured to execute each work task normally when the system power consumption is less than a first power consumption threshold; A second execution module, which is used to execute only urgent tasks and postpone the execution of non-urgent tasks when the system power consumption is greater than or equal to a first power consumption threshold; The resuming execution module is used to continuously monitor the system power consumption and resume the execution of the postponed non-urgent tasks when the system power consumption decreases from ≥ a first power consumption threshold to < a second power consumption threshold.
10. A data transmission system, characterized in that: Including host and mobile hard disk; The mobile hard disk is connected to the host through an interface; the host sends a data transmission request to the mobile hard disk; The main control chip of the mobile hard disk executes the low-power data transmission control method of the mobile hard disk according to any one of claims 1 to 8, thereby controlling the low-power data transmission between the mobile hard disk and the host.
Citation Information
Patent Citations
Load control method and electronic equipment
CN118656193A
High-efficiency power management method and system for Internet of Things
CN119396272A
Task scheduling method and related device
WO2024046088A1