A method, system and medium for using docking and being compatible with PD charging
Through the MTK chip, the charger parameters are detected and the battery capacity is monitored, and the charging output is dynamically adjusted, which solves the problem of poor power dependence and compatibility of Docking equipment, and achieves more efficient and safe charging and interface expansion, meeting the diverse needs of users.
Patent Information
- Application Number
- CN202410927251.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Existing Docking devices rely on the power supply of mobile devices, resulting in accelerated battery consumption and large compatibility differences. Mobile devices are not suitable for complex applications and large-screen scenarios, and have reliability and security issues.
The MTK chip detects the charger connection parameters, dynamically adjusts the charging current and voltage output, monitors the real-time battery power and charging status, generates abnormal information or displays the charging status, provides a charging protection mechanism, and realizes a compatible PD charging function.
It improves the work efficiency and convenience of mobile devices, meets the diverse needs of users, enhances the safety and stability of charging, and provides additional interfaces and functions.
Smart Images

Figure CN118473062B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging technology, and in particular to a method, system and medium for using docking while being compatible with PD charging. Background Art
[0002] Docking is a technology used for mobile devices that allows devices to connect and exchange data directly without a computer. Device refers to mobile devices such as smartphones and tablets. Docking technology has been widely used and supports direct connection between multiple devices, such as the connection between smartphones and external USB devices. Docking devices usually provide a standard interface and protocol, allowing data transmission, file sharing and other operations between devices. Docking technology has high compatibility and can be connected to various types of devices, such as storage devices, keyboards, mice, etc.
[0003] The defects of the existing technology are as follows: Docking devices rely on the power supply of mobile devices, which may cause the battery of mobile devices to consume faster. There may be differences in support and compatibility for Docking devices. Different mobile devices may have different Docking implementations. Mobile devices have become an indispensable tool in people's daily lives and are highly portable and multifunctional. Mobile devices have built-in various sensors and communication modules, such as cameras, GPS, Bluetooth, etc., which can meet people's needs for multiple functions and applications. Mobile devices have limited resources and energy and may not be able to meet the needs of certain complex applications, such as large-scale data processing, high-performance games, etc. Mobile devices have small screens and may not be suitable for certain application scenarios that require large screens, such as graphic design and movie watching. The reliability and stability of mobile devices may be problematic and they are easily affected by factors such as accidental impacts and water immersion. The security and privacy issues of mobile devices need to be taken seriously, such as data leakage and malware. Effective technical solutions are urgently needed for the above problems. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, system and medium that use docking and are compatible with PD charging. By connecting the expansion port of a computer or mobile device through Docking, additional interfaces and functions are provided to meet more user needs and provide higher work efficiency and convenience.
[0005] The embodiment of the present application also provides a method for using docking while being compatible with PD charging, including:
[0006] Detecting the connection parameters of the charger based on the MTK chip, judging the type and power of the charger based on the connection parameters of the charger, generating current and voltage outputs according to the type and power of the charger, and obtaining output results;
[0007] Based on the output result, the real-time battery power of the device is monitored, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the output results of the adjusted charging current and voltage;
[0008] Based on the output results of the adjusted charging current and voltage, the real-time charging state is obtained, and the real-time charging state is compared with the set charging state to obtain the state deviation rate;
[0009] Determining whether the state deviation rate is greater than or equal to a set state deviation rate threshold;
[0010] If it is greater than or equal to, an abnormal information is generated, and a charging protection mechanism is generated based on the abnormal information. If it is less than, the charging status is dynamically displayed on the display screen, and a DOCKING detection is performed.
[0011] Optionally, in the method for using docking and being compatible with PD charging described in an embodiment of the present application, detecting the connection parameters of the charger based on the MTK chip, determining the type and power of the charger based on the connection parameters of the charger, generating current and voltage outputs according to the type and power of the charger, and obtaining an output result specifically include:
[0012] Analyze the connection mode of the charger based on the MTK chip, and analyze the type and maximum power of the charger according to the connection mode of the charger;
[0013] Obtain device parameter information, and obtain the optimal output range of current and voltage during the device charging process based on the device parameter information;
[0014] Generate the current current and voltage output based on the type and maximum power of the charger, and determine whether the current current and voltage output are within the set optimal output range;
[0015] If it is, the output results of voltage and current are obtained;
[0016] If not, the output results of voltage and current are dynamically adjusted according to the MTK chip.
[0017] Optionally, in the method for using docking and being compatible with PD charging described in an embodiment of the present application, the real-time battery power of the device is monitored based on the output result, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the output results of the adjusted charging current and voltage, specifically including:
[0018] Obtain the real-time battery power, analyze the real-time battery power according to the output results of voltage and current, and compare it with the set battery power threshold to obtain the battery power difference value;
[0019] Compare the battery power difference value with the set difference threshold to obtain the charging power deviation rate;
[0020] Determine whether the charging power deviation rate is greater than or equal to a set power deviation rate threshold;
[0021] If it is greater than or equal to, then generate adjustment information, and dynamically adjust the output results of current and voltage based on the adjustment information;
[0022] If it is less than, the output results of current and voltage are generated.
[0023] Optionally, in the method for using docking and being compatible with PD charging described in an embodiment of the present application, based on the output results of the adjusted charging current and voltage, a real-time charging state is obtained, and the real-time charging state is compared with a set charging state to obtain a state deviation rate, specifically including:
[0024] Based on the output results of the adjusted charging current and voltage, analyze the output results at different time nodes;
[0025] Analyze output fluctuation information based on output results at different time nodes, and analyze voltage and current fluctuation values based on output fluctuation information;
[0026] Generate compensation information based on the fluctuation values of voltage and current, compensate the charging current and voltage according to the compensation information, and obtain the real-time charging status;
[0027] The charging status at different time nodes is compared and analyzed to obtain the state deviation rate.
[0028] Optionally, in the method for using docking and being compatible with PD charging described in an embodiment of the present application, if it is greater than or equal to, then an abnormal information is generated, and a charging protection mechanism is generated based on the abnormal information, specifically including:
[0029] Obtain real-time charging status and analyze the state deviation rate of charging status;
[0030] If the state deviation rate is greater than the first deviation rate threshold and less than the second state deviation rate threshold, first abnormal information is generated, a first protection mode is generated based on the first abnormal information, and a first protection mechanism is generated according to the first protection mode;
[0031] If the state deviation rate is greater than or equal to the second state deviation rate threshold, second abnormal information is generated, a second protection mode is generated based on the second abnormal information, and a second protection mechanism is generated according to the second protection mode.
[0032] Optionally, in the method for using docking and being compatible with PD charging described in an embodiment of the present application, if it is less than, the charging status is dynamically displayed based on the display screen, and a DOCKING detection is performed, specifically including:
[0033] Obtaining the charging status displayed on the display screen, wherein the charging status includes charging, fully charged, and abnormal charging;
[0034] Display different modes based on different charging status and perform docking detection;
[0035] Identify that the docking level changes from high to low and enter HOST mode. The host acts as the master device and other devices act as slave devices.
[0036] In a second aspect, an embodiment of the present application provides a system for using docking and being compatible with PD charging, the system comprising: a memory and a processor, the memory comprising a program for a method for using docking and being compatible with PD charging, and the program for a method for using docking and being compatible with PD charging is executed by the processor to implement the following steps:
[0037] Detecting the connection parameters of the charger based on the MTK chip, judging the type and power of the charger based on the connection parameters of the charger, generating current and voltage outputs according to the type and power of the charger, and obtaining output results;
[0038] Based on the output result, the real-time battery power of the device is monitored, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the output results of the adjusted charging current and voltage;
[0039] Based on the output results of the adjusted charging current and voltage, the real-time charging state is obtained, and the real-time charging state is compared with the set charging state to obtain the state deviation rate;
[0040] Determining whether the state deviation rate is greater than or equal to a set state deviation rate threshold;
[0041] If it is greater than or equal to, an abnormal information is generated, and a charging protection mechanism is generated based on the abnormal information. If it is less than, the charging status is dynamically displayed on the display screen, and a DOCKING detection is performed.
[0042] Optionally, in the system using docking and being compatible with PD charging described in the embodiment of the present application, detecting the connection parameters of the charger based on the MTK chip, judging the type and power of the charger based on the connection parameters of the charger, generating current and voltage outputs according to the type and power of the charger, and obtaining the output results specifically include:
[0043] Analyze the connection mode of the charger based on the MTK chip, and analyze the type and maximum power of the charger according to the connection mode of the charger;
[0044] Obtain device parameter information, and obtain the optimal output range of current and voltage during the device charging process based on the device parameter information;
[0045] Generate the current current and voltage output based on the type and maximum power of the charger, and determine whether the current current and voltage output are within the set optimal output range;
[0046] If it is, the output results of voltage and current are obtained;
[0047] If not, the output results of voltage and current are dynamically adjusted according to the MTK chip.
[0048] Optionally, in the system using docking and being compatible with PD charging described in the embodiment of the present application, the real-time battery power of the device is monitored based on the output result, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the output results of the adjusted charging current and voltage, specifically including:
[0049] Obtain the real-time battery power, analyze the real-time battery power according to the output results of voltage and current, and compare it with the set battery power threshold to obtain the battery power difference value;
[0050] Compare the battery power difference value with the set difference threshold to obtain the charging power deviation rate;
[0051] Determine whether the charging power deviation rate is greater than or equal to a set power deviation rate threshold;
[0052] If it is greater than or equal to, then generate adjustment information, and dynamically adjust the output results of current and voltage based on the adjustment information;
[0053] If it is less than, the output results of current and voltage are generated.
[0054] In the third aspect, an embodiment of the present application also provides a computer-readable storage medium, which includes a method program for using docking and being compatible with PD charging. When the method program for using docking and being compatible with PD charging is executed by a processor, the steps of the method for using docking and being compatible with PD charging as described in any one of the above items are implemented.
[0055] As can be seen from the above, the embodiment of the present application provides a method, system and medium that uses docking and is compatible with PD charging. The method detects the connection parameters of the charger based on the MTK chip, determines the type and power of the charger based on the connection parameters of the charger, generates current and voltage outputs according to the type and power of the charger, and obtains output results; monitors the real-time battery power of the device based on the output results, dynamically adjusts the output of the charging current and voltage based on the real-time battery power, and obtains the output results of the adjusted charging current and voltage; obtains the real-time charging status based on the output results of the adjusted charging current and voltage, compares the real-time charging status with the set charging status, and obtains the state deviation rate; determines whether the state deviation rate is greater than or equal to the set state deviation rate threshold; if greater than or equal to, generates abnormal information, and generates a charging protection mechanism based on the abnormal information; if less than, dynamically displays the charging status based on the display screen, and performs DOCKING detection; connects to the expansion port of a computer or mobile device through Docking, provides additional interfaces and functions, to meet more user needs, and provide higher work efficiency and convenience. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 A flowchart of a method for using docking while being compatible with PD charging provided in an embodiment of the present application;
[0058] Figure 2 A flow chart of a method for generating current and voltage output according to the type and power of a charger in a method for using docking while being compatible with PD charging provided in an embodiment of the present application;
[0059] Figure 3 A flow chart of a method for adjusting the output results of charging current and voltage of a method for using docking while being compatible with PD charging provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0061] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0062] Please refer to Figure 1 , Figure 1 This is a flowchart of a method for using docking and being compatible with PD charging in some embodiments of the present application. The method for using docking and being compatible with PD charging is used in a terminal device, and the method for using docking and being compatible with PD charging includes the following steps:
[0063] S101, detecting connection parameters of the charger based on the MTK chip, determining the type and power of the charger based on the connection parameters of the charger, generating current and voltage outputs according to the type and power of the charger, and obtaining an output result;
[0064] S102, monitoring the real-time battery power of the device based on the output result, dynamically adjusting the output of the charging current and voltage based on the real-time battery power, and obtaining the output results of the adjusted charging current and voltage;
[0065] S103, obtaining a real-time charging state based on the output results of the adjusted charging current and voltage, and comparing the real-time charging state with a set charging state to obtain a state deviation rate;
[0066] S104, determining whether the state deviation rate is greater than or equal to a set state deviation rate threshold;
[0067] S105, if it is greater than or equal to, then generate abnormal information, and generate a charging protection mechanism based on the abnormal information; if it is less than, then dynamically display the charging status based on the display screen, and perform DOCKING detection.
[0068] It should be noted that Docking is a device used to expand the connection interface and functions of a computer or mobile device. It provides additional interfaces and functions by connecting to the expansion port of a computer or mobile device to meet more needs of users.
[0069] Interface expansion: The docking station obtains data transmission and power supply capabilities by connecting to the expansion port of the computer or mobile device, such as USB-C, Thunderbolt, Dock Connector, etc. Once the connection is established, the docking station can connect the expansion port of the computer or mobile device to the multiple interfaces provided by itself through internal circuits.
[0070] Interface conversion: Docking stations usually have multiple interface types, such as USB, HDMI, VGA, Ethernet, audio interface, etc. Through internal circuits and chipsets, docking stations can convert the expansion ports of computers or mobile devices into different types of interfaces to connect to various external devices and accessories. For example, a docking station can convert a computer's USB-C interface to a USB-A interface to connect traditional USB devices.
[0071] Data transfer and charging: The docking station can support high-speed data transfer, such as USB 3.0 or Thunderbolt interface, to provide fast and stable data transfer speed. At the same time, the docking station can also provide power supply function for charging computers or mobile devices. By connecting to the docking station, users can perform data transfer and charging at the same time, improving work efficiency and convenience.
[0072] External device connection: The docking station allows users to easily connect various external devices and accessories by providing multiple interfaces. For example, the docking station can be used to connect external monitors, keyboards, mice, printers, storage devices, audio devices, etc. In this way, users can transform their computer or mobile device into a more powerful and diverse workstation.
[0073] Please refer to Figure 2 , Figure 2 This is a flow chart of a method for generating current and voltage output according to the type and power of the charger in some embodiments of the present application using docking while being compatible with PD charging. According to an embodiment of the present invention, the connection parameters of the charger are detected based on the MTK chip, the type and power of the charger are determined based on the connection parameters of the charger, and the current and voltage output are generated according to the type and power of the charger to obtain the output result, which specifically includes:
[0074] S201, analyzing the connection mode of the charger based on the MTK chip, and analyzing the type and maximum power of the charger according to the connection mode of the charger;
[0075] S202, obtaining device parameter information, and obtaining an optimal output range of current and voltage during the charging process of the device based on the device parameter information;
[0076] S203, generating current current and voltage outputs based on the type and maximum power of the charger, and determining whether the current current and voltage outputs are within a set optimal output range;
[0077] S204, if it is, then obtain the output results of voltage and current;
[0078] S205: If not, dynamically adjust the output results of voltage and current according to the MTK chip.
[0079] It should be noted that different device parameters set different optimal output ranges. By analyzing whether the current and voltage outputs exceed the optimal output range, the output is dynamically adjusted to ensure that the voltage and current outputs are always in the optimal output range, thereby achieving the best charging method.
[0080] Please refer to Figure 3 , Figure 3 This is a flow chart of a method for adjusting the output results of charging current and voltage in a method of using docking while being compatible with PD charging in some embodiments of the present application. According to an embodiment of the present invention, the real-time battery power of the device is monitored based on the output result, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the adjusted output results of the charging current and voltage, specifically including:
[0081] S301, obtaining the real-time battery power, analyzing the real-time battery power according to the output results of the voltage and current and comparing it with the set battery power threshold to obtain a battery power difference value;
[0082] S302, comparing the battery power difference value with a set difference threshold to obtain a charging power deviation rate;
[0083] S303, determining whether the charging power deviation rate is greater than or equal to a set power deviation rate threshold;
[0084] S304, if it is greater than or equal to, generating adjustment information, and dynamically adjusting the output results of the current and voltage based on the adjustment information;
[0085] S305: If it is less than , then generate the output results of current and voltage.
[0086] It should be noted that the status of the charging process is determined by analyzing the changes in battery power, so that the output of current and voltage can be dynamically adjusted to improve the safety of device charging.
[0087] According to an embodiment of the present invention, based on the output results of the adjusted charging current and voltage, the real-time charging state is obtained, and the real-time charging state is compared with the set charging state to obtain the state deviation rate, which specifically includes:
[0088] Based on the output results of the adjusted charging current and voltage, analyze the output results at different time nodes;
[0089] Analyze output fluctuation information based on output results at different time nodes, and analyze voltage and current fluctuation values based on output fluctuation information;
[0090] Generate compensation information based on the fluctuation values of voltage and current, compensate the charging current and voltage according to the compensation information, and obtain the real-time charging status;
[0091] The charging status at different time nodes is compared and analyzed to obtain the state deviation rate.
[0092] It should be noted that the fluctuations of voltage and current at different time nodes are analyzed, the fluctuation values are determined, and the voltage and current are dynamically compensated according to the fluctuation values to improve the stability of the charging voltage and current.
[0093] According to an embodiment of the present invention, if it is greater than or equal to, abnormal information is generated, and a charging protection mechanism is generated based on the abnormal information, specifically including:
[0094] Obtain real-time charging status and analyze the state deviation rate of charging status;
[0095] If the state deviation rate is greater than the first deviation rate threshold and less than the second state deviation rate threshold, first abnormal information is generated, a first protection mode is generated based on the first abnormal information, and a first protection mechanism is generated according to the first protection mode;
[0096] If the state deviation rate is greater than or equal to the second state deviation rate threshold, second abnormal information is generated, a second protection mode is generated based on the second abnormal information, and a second protection mechanism is generated according to the second protection mode.
[0097] It should be noted that by analyzing the real-time charging status to determine the charging status deviation rate, different abnormal information is obtained, and different abnormal information is used to adjust the protection mechanism in different ways to improve charging safety.
[0098] According to an embodiment of the present invention, if it is less than, the charging status is dynamically displayed based on the display screen, and a DOCKING detection is performed, which specifically includes:
[0099] Get the charging status displayed on the display screen, which includes charging, fully charged and abnormal charging;
[0100] Display different modes based on different charging status and perform docking detection;
[0101] Identify that the docking level changes from high to low and enter HOST mode. The host acts as the master device and other devices act as slave devices.
[0102] It should be noted that Docking realizes intelligent control functions by carrying intelligent chips and software systems. For example, high-speed transmission: Docking supports high-speed data transmission, for example, it can achieve the data transmission speed of USB 3.0. This high-speed transmission design can greatly improve the efficiency and speed of data transmission and meet users' needs for efficient data transmission.
[0103] Docking is usually equipped with multiple interfaces, such as USB interface, HDMI interface, SD card slot, etc., which can connect different external devices and storage media. This multi-interface support design allows users to easily connect and use various external devices, improving the compatibility and scalability of the device.
[0104] According to an embodiment of the present invention, the method further includes: setting a plugging sequence, wherein the plugging sequence includes plugging in charging first and then plugging in docking, and plugging in docking first and then plugging in charging;
[0105] If the order of plugging in is charging first and then docking, plug in the charger to charge and enter none mode. When the docking level is detected to change from high to low, it enters HOST mode from none mode.
[0106] If the order of plugging in is to plug in the docking first and then the charging, the high level is switched to the low level through the docking first, and the none mode is switched to the HOST mode;
[0107] Then plug in the charger to charge the device while keeping the HOST mode unchanged.
[0108] It should be noted that different charging sequences of the charger and docking will result in different charging methods, thereby achieving flexible charging methods and charging flexibility.
[0109] In a second aspect, an embodiment of the present application provides a system for using docking and being compatible with PD charging at the same time, the system comprising: a memory and a processor, the memory comprising a program for a method for using docking and being compatible with PD charging at the same time, and when the program for a method for using docking and being compatible with PD charging is executed by the processor, the following steps are implemented:
[0110] Detecting the connection parameters of the charger based on the MTK chip, judging the type and power of the charger based on the connection parameters of the charger, generating current and voltage outputs according to the type and power of the charger, and obtaining output results;
[0111] Based on the output result, the real-time battery power of the device is monitored, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the output results of the adjusted charging current and voltage;
[0112] Based on the output results of the adjusted charging current and voltage, the real-time charging state is obtained, and the real-time charging state is compared with the set charging state to obtain the state deviation rate;
[0113] Determine whether the state deviation rate is greater than or equal to a set state deviation rate threshold;
[0114] If it is greater than or equal to, an abnormal information is generated, and a charging protection mechanism is generated based on the abnormal information. If it is less than, the charging status is dynamically displayed on the display screen, and a DOCKING detection is performed.
[0115] It should be noted that Docking is a device used to expand the connection interface and functions of a computer or mobile device. It provides additional interfaces and functions by connecting to the expansion port of a computer or mobile device to meet more needs of users.
[0116] Interface expansion: The docking station obtains data transmission and power supply capabilities by connecting to the expansion port of the computer or mobile device, such as USB-C, Thunderbolt, Dock Connector, etc. Once the connection is established, the docking station can connect the expansion port of the computer or mobile device to the multiple interfaces provided by itself through internal circuits.
[0117] Interface conversion: Docking stations usually have multiple interface types, such as USB, HDMI, VGA, Ethernet, audio interface, etc. Through internal circuits and chipsets, docking stations can convert the expansion ports of computers or mobile devices into different types of interfaces to connect to various external devices and accessories. For example, a docking station can convert a computer's USB-C interface to a USB-A interface to connect traditional USB devices.
[0118] Data transfer and charging: The docking station can support high-speed data transfer, such as USB 3.0 or Thunderbolt interface, to provide fast and stable data transfer speed. At the same time, the docking station can also provide power supply function for charging computers or mobile devices. By connecting to the docking station, users can perform data transfer and charging at the same time, improving work efficiency and convenience.
[0119] External device connection: The docking station allows users to easily connect various external devices and accessories by providing multiple interfaces. For example, the docking station can be used to connect external monitors, keyboards, mice, printers, storage devices, audio devices, etc. In this way, users can transform their computer or mobile device into a more powerful and diverse workstation.
[0120] According to an embodiment of the present invention, the connection parameters of the charger are detected based on the MTK chip, the type and power of the charger are determined based on the connection parameters of the charger, and the current and voltage outputs are generated according to the type and power of the charger to obtain the output result, which specifically includes:
[0121] Analyze the connection mode of the charger based on the MTK chip, and analyze the type and maximum power of the charger according to the connection mode of the charger;
[0122] Obtain device parameter information, and obtain the optimal output range of current and voltage during the device charging process based on the device parameter information;
[0123] Generate the current current and voltage output based on the type and maximum power of the charger, and determine whether the current current and voltage output are within the set optimal output range;
[0124] If it is, the output results of voltage and current are obtained;
[0125] If not, the output results of voltage and current are dynamically adjusted according to the MTK chip.
[0126] It should be noted that different device parameters set different optimal output ranges. By analyzing whether the current and voltage outputs exceed the optimal output range, the output is dynamically adjusted to ensure that the voltage and current outputs are always in the optimal output range, thereby achieving the best charging method.
[0127] According to an embodiment of the present invention, the real-time battery power of the device is monitored based on the output result, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the output results of the adjusted charging current and voltage, specifically including:
[0128] Obtain the real-time battery power, analyze the real-time battery power according to the output results of voltage and current, and compare it with the set battery power threshold to obtain the battery power difference value;
[0129] Compare the battery power difference value with the set difference threshold to obtain the charging power deviation rate;
[0130] Determine whether the charging power deviation rate is greater than or equal to a set power deviation rate threshold;
[0131] If it is greater than or equal to, then generate adjustment information, and dynamically adjust the output results of current and voltage based on the adjustment information;
[0132] If it is less than, the output results of current and voltage are generated.
[0133] It should be noted that the status of the charging process is determined by analyzing the changes in battery power, so that the output of current and voltage can be dynamically adjusted to improve the safety of device charging.
[0134] According to an embodiment of the present invention, based on the output results of the adjusted charging current and voltage, the real-time charging state is obtained, and the real-time charging state is compared with the set charging state to obtain the state deviation rate, which specifically includes:
[0135] Based on the output results of the adjusted charging current and voltage, analyze the output results at different time nodes;
[0136] Analyze output fluctuation information based on output results at different time nodes, and analyze voltage and current fluctuation values based on output fluctuation information;
[0137] Generate compensation information based on the fluctuation values of voltage and current, compensate the charging current and voltage according to the compensation information, and obtain the real-time charging status;
[0138] The charging status at different time nodes is compared and analyzed to obtain the status deviation rate.
[0139] It should be noted that the fluctuations of voltage and current at different time nodes are analyzed, the fluctuation values are determined, and the voltage and current are dynamically compensated according to the fluctuation values to improve the stability of the charging voltage and current.
[0140] According to an embodiment of the present invention, if it is greater than or equal to, abnormal information is generated, and a charging protection mechanism is generated based on the abnormal information, specifically including:
[0141] Obtain real-time charging status and analyze the state deviation rate of charging status;
[0142] If the state deviation rate is greater than the first deviation rate threshold and less than the second state deviation rate threshold, first abnormal information is generated, a first protection mode is generated based on the first abnormal information, and a first protection mechanism is generated according to the first protection mode;
[0143] If the state deviation rate is greater than or equal to the second state deviation rate threshold, second abnormal information is generated, a second protection mode is generated based on the second abnormal information, and a second protection mechanism is generated according to the second protection mode.
[0144] It should be noted that by analyzing the real-time charging status to determine the charging status deviation rate, different abnormal information is obtained, and different abnormal information is used to adjust the protection mechanism in different ways to improve charging safety.
[0145] According to an embodiment of the present invention, if it is less than, the charging status is dynamically displayed based on the display screen, and a DOCKING detection is performed, which specifically includes:
[0146] Get the charging status displayed on the display screen, which includes charging, fully charged and abnormal charging;
[0147] Display different modes based on different charging status and perform docking detection;
[0148] Identify that the docking level changes from high to low and enter HOST mode. The host acts as the master device and other devices act as slave devices.
[0149] It should be noted that Docking realizes intelligent control functions by carrying intelligent chips and software systems. For example, high-speed transmission: Docking supports high-speed data transmission, for example, it can achieve the data transmission speed of USB 3.0. This high-speed transmission design can greatly improve the efficiency and speed of data transmission and meet users' needs for efficient data transmission.
[0150] Docking is usually equipped with multiple interfaces, such as USB interface, HDMI interface, SD card slot, etc., which can connect different external devices and storage media. This multi-interface support design allows users to easily connect and use various external devices, improving the compatibility and scalability of the device.
[0151] According to an embodiment of the present invention, the method further includes: setting a plugging sequence, wherein the plugging sequence includes plugging in charging first and then plugging in docking, and plugging in docking first and then plugging in charging;
[0152] If the order of plugging in is charging first and then docking, plug in the charger to charge and enter none mode. When the docking level is detected to change from high to low, it enters HOST mode from none mode.
[0153] If the order of plugging in is to plug in the docking first and then the charging, the high level is switched to the low level through the docking first, and the none mode is switched to the HOST mode;
[0154] Then plug in the charger to charge the device while keeping the HOST mode unchanged.
[0155] It should be noted that different charging sequences of the charger and docking will result in different charging methods, thereby achieving flexible charging methods and charging flexibility.
[0156] A third aspect of the present invention provides a computer-readable storage medium, which includes a method program for using docking and being compatible with PD charging. When the method program for using docking and being compatible with PD charging is executed by a processor, the steps of the method for using docking and being compatible with PD charging as described above are implemented.
[0157] The present invention discloses a method, system and medium for using docking and being compatible with PD charging. The method comprises the following steps: detecting connection parameters of a charger based on an MTK chip, judging the type and power of the charger based on the connection parameters of the charger, generating current and voltage outputs according to the type and power of the charger, and obtaining output results; monitoring the real-time battery power of a device based on the output results, dynamically adjusting the output of charging current and voltage based on the real-time battery power, and obtaining output results of adjusted charging current and voltage; obtaining a real-time charging state based on the output results of adjusted charging current and voltage, comparing the real-time charging state with a set charging state, and obtaining a state deviation rate; judging whether the state deviation rate is greater than or equal to a set state deviation rate threshold; if greater than or equal to, generating abnormal information, and generating a charging protection mechanism based on the abnormal information; if less than, dynamically displaying the charging state based on a display screen, and performing DOCKING detection; connecting an expansion port of a computer or mobile device through Docking to provide additional interfaces and functions to meet more needs of users and provide higher work efficiency and convenience.
[0158] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0159] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0160] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0161] Those skilled in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, the aforementioned program can be stored in a readable storage medium, and when the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, and other media that can store program codes.
[0162] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A method for using docking while being compatible with PD charging, characterized in that: include: Detecting the connection parameters of the charger based on the MTK chip, judging the type and power of the charger based on the connection parameters of the charger, generating current and voltage outputs according to the type and power of the charger, and obtaining output results; Based on the output result, the real-time battery power of the device is monitored, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the output results of the adjusted charging current and voltage; Based on the output results of the adjusted charging current and voltage, the real-time charging state is obtained, and the real-time charging state is compared with the set charging state to obtain the state deviation rate; Determining whether the state deviation rate is greater than or equal to a set state deviation rate threshold; If it is greater than or equal to, an abnormal information is generated, and a charging protection mechanism is generated based on the abnormal information. If it is less than, the charging status is dynamically displayed on the display screen, and a DOCKING detection is performed; The connection parameters of the charger are detected based on the MTK chip, the type and power of the charger are determined based on the connection parameters of the charger, and the current and voltage outputs are generated according to the type and power of the charger to obtain the output results, including: Analyze the connection mode of the charger based on the MTK chip, and analyze the type and maximum power of the charger according to the connection mode of the charger; Obtain device parameter information, and obtain the optimal output range of current and voltage during the device charging process based on the device parameter information; Generate the current current and voltage output based on the type and maximum power of the charger, and determine whether the current current and voltage output are within the set optimal output range; If it is, the output results of voltage and current are obtained; If not, the output results of voltage and current are dynamically adjusted according to the MTK chip; Based on the output results of the adjusted charging current and voltage, the real-time charging state is obtained, and the real-time charging state is compared with the set charging state to obtain the state deviation rate, which specifically includes: Based on the output results of the adjusted charging current and voltage, analyze the output results at different time nodes; Analyze output fluctuation information based on output results at different time nodes, and analyze voltage and current fluctuation values based on output fluctuation information; Generate compensation information based on the fluctuation values of voltage and current, compensate the charging current and voltage according to the compensation information, and obtain the real-time charging status; The charging status at different time nodes is compared and analyzed to obtain the status deviation rate.
2. The method of using docking while being compatible with PD charging according to claim 1, characterized in that: Based on the output result, the real-time battery power of the device is monitored, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the output results of the adjusted charging current and voltage, specifically including: Obtain the real-time battery power, analyze the real-time battery power according to the output results of voltage and current, and compare it with the set battery power threshold to obtain the battery power difference value; Compare the battery power difference value with the set difference threshold to obtain the charging power deviation rate; Determine whether the charging power deviation rate is greater than or equal to a set power deviation rate threshold; If it is greater than or equal to, then generate adjustment information, and dynamically adjust the output results of current and voltage based on the adjustment information; If it is less than, the output results of current and voltage are generated.
3. The method of using docking while being compatible with PD charging according to claim 1, characterized in that: If it is greater than or equal to, an abnormal information is generated, and a charging protection mechanism is generated based on the abnormal information, specifically including: Obtain real-time charging status and analyze the state deviation rate of charging status; If the state deviation rate is greater than the first deviation rate threshold and less than the second state deviation rate threshold, first abnormal information is generated, a first protection mode is generated based on the first abnormal information, and a first protection mechanism is generated according to the first protection mode; If the state deviation rate is greater than or equal to the second state deviation rate threshold, second abnormal information is generated, a second protection mode is generated based on the second abnormal information, and a second protection mechanism is generated according to the second protection mode.
4. The method of using docking while being compatible with PD charging according to claim 3, characterized in that: If the charging state is less than , the steps of dynamically displaying the charging state based on the display screen and performing the DOCKING detection specifically include: Obtaining the charging status displayed on the display screen, wherein the charging status includes charging, fully charged, and abnormal charging; Display different modes based on different charging status and perform docking detection; Identify that the docking level changes from high to low and enter HOST mode. The host acts as the master device and other devices act as slave devices.
5. A system using docking and compatible with PD charging, characterized in that: The system includes: a memory and a processor, wherein the memory includes a program for a method for using docking while being compatible with PD charging, and when the program for the method for using docking while being compatible with PD charging is executed by the processor, the following steps are implemented: Detecting the connection parameters of the charger based on the MTK chip, judging the type and power of the charger based on the connection parameters of the charger, generating current and voltage outputs according to the type and power of the charger, and obtaining output results; Based on the output result, the real-time battery power of the device is monitored, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the output results of the adjusted charging current and voltage; Based on the output results of the adjusted charging current and voltage, the real-time charging state is obtained, and the real-time charging state is compared with the set charging state to obtain the state deviation rate; Determining whether the state deviation rate is greater than or equal to a set state deviation rate threshold; If it is greater than or equal to, an abnormal information is generated, and a charging protection mechanism is generated based on the abnormal information. If it is less than, the charging status is dynamically displayed on the display screen, and a DOCKING detection is performed; The connection parameters of the charger are detected based on the MTK chip, the type and power of the charger are determined based on the connection parameters of the charger, and the current and voltage outputs are generated according to the type and power of the charger to obtain the output results, including: Analyze the connection mode of the charger based on the MTK chip, and analyze the type and maximum power of the charger according to the connection mode of the charger; Obtain device parameter information, and obtain the optimal output range of current and voltage during the device charging process based on the device parameter information; Generate the current current and voltage output based on the type and maximum power of the charger, and determine whether the current current and voltage output are within the set optimal output range; If it is, the output results of voltage and current are obtained; If not, the output results of voltage and current are dynamically adjusted according to the MTK chip; Based on the output results of the adjusted charging current and voltage, the real-time charging state is obtained, and the real-time charging state is compared with the set charging state to obtain the state deviation rate, which specifically includes: Based on the output results of the adjusted charging current and voltage, analyze the output results at different time nodes; Analyze output fluctuation information based on output results at different time nodes, and analyze voltage and current fluctuation values based on output fluctuation information; Generate compensation information based on the fluctuation values of voltage and current, compensate the charging current and voltage according to the compensation information, and obtain the real-time charging status; The charging status at different time nodes is compared and analyzed to obtain the state deviation rate.
6. The system using docking and being compatible with PD charging according to claim 5, characterized in that: Based on the output result, the real-time battery power of the device is monitored, and the output of the charging current and voltage is dynamically adjusted based on the real-time battery power to obtain the output results of the adjusted charging current and voltage, specifically including: Obtain the real-time battery power, analyze the real-time battery power according to the output results of voltage and current, and compare it with the set battery power threshold to obtain the battery power difference value; Compare the battery power difference value with the set difference threshold to obtain the charging power deviation rate; Determine whether the charging power deviation rate is greater than or equal to a set power deviation rate threshold; If it is greater than or equal to, then generate adjustment information, and dynamically adjust the output results of current and voltage based on the adjustment information; If it is less than, the output results of current and voltage are generated.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a method program for using docking while being compatible with PD charging. When the method program for using docking while being compatible with PD charging is executed by a processor, the steps of the method for using docking while being compatible with PD charging as described in any one of claims 1 to 4 are implemented.
