CN117033284A - Processing method, electronic device and storage medium - Google Patents
Processing method, electronic device and storage medium Download PDFInfo
- Publication number
- CN117033284A CN117033284A CN202311000186.6A CN202311000186A CN117033284A CN 117033284 A CN117033284 A CN 117033284A CN 202311000186 A CN202311000186 A CN 202311000186A CN 117033284 A CN117033284 A CN 117033284A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- parameter information
- target
- electronic equipment
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 38
- 238000001514 detection method Methods 0.000 claims abstract description 50
- 238000000034 method Methods 0.000 claims description 44
- 238000013507 mapping Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000003032 molecular docking Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000012512 characterization method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000035484 reaction time Effects 0.000 description 2
- 238000011897 real-time detection Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 238000012421 spiking Methods 0.000 description 2
- 230000007488 abnormal function Effects 0.000 description 1
- 230000005669 field effect Effects 0.000 description 1
- 230000017525 heat dissipation Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The embodiment of the application discloses a processing method, electronic equipment and a storage medium, wherein the processing method comprises the following steps: acquiring parameter information of the second electronic equipment based on a connection path of the first electronic equipment and the second electronic equipment; detecting target parameters of the first electronic equipment to obtain a detection result; and adjusting the first electronic equipment according to the detection result and the parameter information of the second electronic equipment.
Description
Technical Field
The embodiment of the application relates to electronic technology, and relates to a processing method, electronic equipment and a storage medium, but is not limited to the processing method, the electronic equipment and the storage medium.
Background
Type-C (a USB interface appearance standard) interface has integrated the function of charging and signal transmission, so that many Type-C equipment such as display/docking station can be connected through a Type-C cable, when providing the power supply for notebook computer, realize data signal's transmission, including display signal's output or file transmission etc..
Disclosure of Invention
In view of the above, the embodiments of the present application provide a processing method, an electronic device, and a storage medium.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a processing method, which is applied to a first electronic device, where the method includes:
acquiring parameter information of the second electronic equipment based on a connection path of the first electronic equipment and the second electronic equipment;
detecting target parameters of the first electronic equipment to obtain a detection result;
and adjusting the first electronic equipment according to the detection result and the parameter information of the second electronic equipment.
In some embodiments, the parameter information of the second electronic device includes at least first parameter information; correspondingly, the adjusting the first electronic device according to the detection result and the parameter information of the second electronic device includes: determining a target adjustment mode for adjusting the first electronic equipment according to the detection result and the first parameter information of the second electronic equipment; and adjusting the first electronic equipment based on the target adjustment mode.
In some embodiments, the target adjustment means includes at least one of: adjusting the power consumption of the first electronic device; adjusting a state of a connection path between the first electronic device and the second electronic device; wherein the adjustment of the power consumption comprises adjustment of a power consumption level and/or adjustment of a power consumption time.
In some embodiments, the determining, according to the detection result and the first parameter information of the second electronic device, a target adjustment manner for adjusting the first electronic device includes: determining a target threshold according to the first parameter information of the second electronic equipment; comparing the detection result with the target threshold value to obtain a first comparison result; and determining a target adjustment mode for adjusting the first electronic equipment based on the first comparison result.
In some embodiments, the parameter information of the second electronic device further includes second parameter information; correspondingly, the determining the target threshold according to the first parameter information of the second electronic device includes: determining a target coefficient according to the first parameter information of the second electronic equipment; the target threshold is determined based on the target coefficient and second parameter information of the second electronic device.
In some embodiments, the parameter information of the second electronic device further includes third parameter information; correspondingly, the determining, based on the first comparison result, a target adjustment manner for adjusting the first electronic device includes: determining a target power scene corresponding to the first electronic equipment based on the first comparison result; determining third parameter information of the first electronic equipment; and determining a target adjustment mode for adjusting the first electronic equipment according to the target power scene, the third parameter information of the first electronic equipment and the third parameter information of the second electronic equipment.
In some embodiments, the determining, according to the target power scenario, the third parameter information of the first electronic device, and the third parameter information of the second electronic device, a target adjustment manner for adjusting the first electronic device includes: comparing the third parameter information of the first electronic equipment with the third parameter information of the second electronic equipment to obtain a second comparison result; determining a target adjustment mode for adjusting the first electronic equipment through a preset mapping relation set based on the target power scene and the second comparison result; the preset mapping relation set comprises corresponding relations among a plurality of adjustment modes, the power scene and a third parameter comparison result.
In some embodiments, the detecting the target parameter of the first electronic device to obtain a detection result includes: responding to the second electronic equipment to supply power to the first electronic equipment, and detecting target parameters of the first electronic equipment in real time to obtain a detection result; wherein the target parameters include at least one of: the temperature of the target element of the electronic device, the current of the target element of the electronic device, the voltage of the target element of the electronic device, the operating mode of the electronic device.
In a second aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program executable on the processor, and the processor implements steps in the above processing method when executing the program.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described processing method.
Drawings
FIG. 1 is a schematic diagram of a process flow for implementing a processing method according to an embodiment of the present application;
FIG. 2 is a second schematic diagram of an implementation flow of the processing method according to the embodiment of the present application;
FIG. 3 is a schematic diagram of a third implementation flow of the processing method according to the embodiment of the present application;
FIG. 4A is a schematic diagram of a circuit structure of an R_PTC according to an embodiment of the present application;
FIG. 4B is a flowchart illustrating a processing method according to an embodiment of the present application;
FIG. 5 is a schematic diagram showing the structure of a processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further elaborated below with reference to the drawings and examples. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
It should be noted that the term "first\second\third" related to the embodiments of the present application is merely to distinguish similar objects, and does not represent a specific order for the objects, it being understood that the "first\second\third" may interchange a specific order or sequencing, where allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
Based on this, the embodiment of the application provides a processing method, and the function realized by the method can be realized by calling program codes by a processor in the first electronic device, and the program codes can be saved in a storage medium of the first electronic device. Fig. 1 is a schematic flow chart of an implementation of a processing method according to an embodiment of the present application, as shown in fig. 1, where the method includes:
Step S101, acquiring parameter information of a second electronic device based on a connection path of the first electronic device and the second electronic device;
here, the first electronic device may be various types of devices having information processing capability, such as a navigator, a smart phone, a tablet computer, a laptop computer, a smart home, an automobile, and the like. The second electronic device is a device capable of being connected with the first electronic device, including but not limited to an external device and the like. Such as a display, a docking station.
Wherein the connection path includes, but is not limited to: connection paths for data interaction, connection paths for power transmission, etc.
In the embodiment of the application, the first electronic equipment can establish a connection path with the second electronic equipment so as to form connection. The first electronic device can acquire the parameter information of the second electronic device based on the connection path. For example, when the second electronic device supplies power to the first electronic device, the parameter information of the second electronic device includes power parameter information of the second electronic device.
Step S102, detecting target parameters of the first electronic equipment to obtain a detection result;
Here, the target parameter of the first electronic device is different from the parameter information of the second electronic device, for example, the target parameter of the first electronic device may be a temperature of a certain component, a current flowing through a certain component, whether the first electronic device is in a certain operation mode, or the like. According to the embodiment of the application, the target parameters of the first electronic equipment can be detected in real time, and a real-time detection result is obtained.
And step S103, adjusting the first electronic equipment according to the detection result and the parameter information of the second electronic equipment.
Here, the first electronic device may be adjusted according to the real-time detection result of the target parameter and the parameter information of the second electronic device.
In the embodiment of the present application, by the processing methods in steps S101 to S103, when the first electronic device is connected to the second electronic device, the first electronic device can be adjusted according to the parameter information of the second electronic device.
Based on the foregoing embodiments, an embodiment of the present application further provides a processing method, where the method is applied to a first electronic device, and the method includes:
step S111, obtaining parameter information of the second electronic equipment based on a connection path of the first electronic equipment and the second electronic equipment;
Step S112, responding to the second electronic equipment to supply power to the first electronic equipment, and detecting target parameters of the first electronic equipment in real time to obtain a detection result; wherein the target parameters include at least one of: the temperature of the target element of the electronic device, the current of the target element of the electronic device, the voltage of the target element of the electronic device, the operating mode of the electronic device;
here, the second electronic device can supply power to the first electronic device, for example, the first electronic device is a notebook computer, the second electronic device is an external display, and when the notebook computer is connected with the external display, the external display can supply power to the notebook computer.
In the embodiment of the application, the first electronic equipment detects own target parameters in real time to obtain a detection result in response to the second electronic equipment starting to supply power to the first electronic equipment. For example, when the external display starts to supply power to the notebook computer, the notebook computer detects the temperature of a certain element in real time, and a real-time temperature detection result is obtained. For another example, after the docking station starts to supply power to the notebook computer, the notebook computer detects the running mode of the notebook computer in real time, and detects whether the notebook computer is in the running mode of the over-frequency Turbo, so as to obtain a detection result of the running mode.
And step S113, adjusting the first electronic equipment according to the detection result and the parameter information of the second electronic equipment.
Based on the foregoing embodiments, the embodiments of the present application further provide a processing method, where the method is applied to a first electronic device, and fig. 2 is a schematic diagram of a second implementation flow of the processing method of the embodiment of the present application, as shown in fig. 2, and the method includes:
step S201, obtaining first parameter information of a second electronic device based on a connection path of the first electronic device and the second electronic device;
in an embodiment of the present application, the first parameter information of the second electronic device includes parameter information capable of characterizing an instantaneous peak power capability of the second electronic device. For example, the first parameter information includes, but is not limited to: instantaneous peak power, instantaneous peak current, etc. That is, the first parameter information can characterize a short-time spike power capability (i.e., peak Current capability) of the second electronic device.
Step S202, detecting target parameters of the first electronic equipment to obtain a detection result;
step 203, determining a target adjustment mode for adjusting the first electronic device according to the detection result and the first parameter information of the second electronic device;
In the embodiment of the application, the first electronic device can determine the target adjustment mode for adjusting the first electronic device based on the detection result of the target parameter and the parameter for representing the instantaneous peak power capability of the second electronic device. Furthermore, the first electronic device adjusts itself based on the target adjustment mode, so that the risk of dragging the second electronic device, which may be caused by the heavy current pulling load of the first electronic device from the second electronic device, can be reduced.
Step S204, adjusting the first electronic device based on the target adjustment mode.
Here, by the processing method in step S201 to step S204, when the first electronic device is connected to the second electronic device, the first electronic device is adjusted by determining the adjustment mode of the first electronic device according to the first parameter information of the second electronic device, so that the risk of dragging and collapsing the second electronic device, which may be caused by heavy current pulling and loading of the first electronic device from the second electronic device, is reduced.
In some embodiments, the target adjustment means includes at least one of:
first, adjusting power consumption of the first electronic device; wherein the adjustment of the power consumption comprises adjustment of a power consumption level and/or adjustment of a power consumption time;
For example, the power consumption of the first electronic device may be adjusted by adjusting a system load amount of the first electronic device. As another example, the power consumption of the CPU may be adjusted to different gears. It should be noted that, in the embodiment of the present application, the content of adjusting the power consumption of the first electronic device is not limited, and the power consumption adjustment of any content is within the protection scope of the present application.
And second, adjusting the state of a connecting channel between the first electronic device and the second electronic device.
Here, the states of the connection path include, but are not limited to: a connection state and a disconnection state. For example, when the second electronic device is supplying power to the first electronic device, if the determined target adjustment mode is the second mode, the VBUS path of the first electronic device may be adjusted to be disconnected.
Based on the foregoing embodiments, an embodiment of the present application further provides a processing method, where the method is applied to a first electronic device, and the method includes:
step S211, obtaining first parameter information of the second electronic device based on a connection path between the first electronic device and the second electronic device;
step S212, detecting target parameters of the first electronic equipment to obtain a detection result;
Step S213, determining a target threshold according to the first parameter information of the second electronic equipment;
here, the first parameter information is a parameter (i.e., peak Current capability) capable of characterizing a short-time spike power capability of the second electronic device, such as instantaneous Peak power, instantaneous Peak Current.
In the embodiment of the application, the target threshold for comparison can be determined according to the short-time peak power capability of the second electronic equipment. For example, the target threshold is relatively low if the second electronic device does not have short-time spiking power capability, and relatively high if the second electronic device does have short-time spiking power capability.
Step S214, comparing the detection result with the target threshold value to obtain a first comparison result;
for example, the detection result includes a current of the first electronic device, and if the current rises rapidly to exceed the target threshold, the connection between the first electronic device and the second electronic device is triggered to be disconnected. For another example, if the current frequently approaches the target threshold, the embedded controller fed back to the first electronic device requires adjustment of the system load, reducing the pull load from the second electronic device. For another example, if the short-time current exceeds the target threshold multiple times to trigger VBUS disconnection, the first electronic device sets a timeout period, and after a period of time, the VBUS path is completely disconnected.
Wherein pulling refers to the first electronic device pulling current from the second electronic device.
Step S215, determining a target adjustment manner for adjusting the first electronic device based on the first comparison result;
step S216, adjusting the first electronic device based on the target adjustment mode.
Based on the foregoing embodiments, an embodiment of the present application further provides a processing method, where the method is applied to a first electronic device, and the method includes:
step S221, obtaining first parameter information and second parameter information of the second electronic equipment based on a connection path of the first electronic equipment and the second electronic equipment;
here, the second parameter information of the second electronic device is a maximum power capability that the second electronic device can continuously provide, for example, a maximum current that the second electronic device can continuously provide, and the like.
Step S222, detecting target parameters of the first electronic equipment to obtain a detection result;
step S223, determining a target coefficient according to the first parameter information of the second electronic equipment;
here, if the second electronic device does not have Peak Current capability, the target coefficient is 1, that is, 100%, and if the second electronic device has Peak Current capability, the target coefficient is greater than 1. In general, the stronger the Peak Current capability of the second electronic device, the greater the corresponding target coefficient.
Step S224, determining the target threshold based on the target coefficient and the second parameter information of the second electronic device;
in the embodiment of the application, the target threshold value can be determined based on the target coefficient determined by the first parameter information and the second parameter information. For example, the second parameter information is a sustainable maximum Current Ia, and if the second electronic device does not have Peak Current capability, the target coefficient is 1 (i.e. 100%), and the target threshold is 100% Ia; as another example, if the second electronic device has Peak Current capability and the capability is 150% Ia, the target coefficient is 1.5 (i.e., 150%), and the target threshold is 150% Ia.
Of course, during actual use, in order to ensure the safety of the second electronic device, the target threshold is designed to be slightly lower than the above theoretical value. For example, if the second electronic device does not have Peak Current capability, the target threshold is 97% Ia; if the second electronic device has Peak Current capability and the capability is 150% Ia, the target threshold is 145% Ia.
Step S225, comparing the detection result with the target threshold value to obtain a first comparison result;
step S226, determining a target adjustment mode for adjusting the first electronic device based on the first comparison result;
Step S227, adjusting the first electronic device based on the target adjustment mode.
Based on the foregoing embodiments, the embodiment of the present application further provides a processing method, where the method is applied to a first electronic device, and fig. 3 is a schematic diagram of an implementation flow of the processing method according to the embodiment of the present application, as shown in fig. 3, and the method includes:
step 301, obtaining first parameter information and third parameter information of a second electronic device based on a connection path of the first electronic device and the second electronic device;
here, the third parameter information of the second electronic device includes parameter information capable of characterizing the Power capability (i.e., power capability) of the second electronic device when the second electronic device is operating normally, such as rated Power, rated current, rated voltage, and the like.
Step S302, detecting target parameters of the first electronic equipment to obtain a detection result;
step S303, determining a target threshold according to the first parameter information of the second electronic equipment;
step S304, comparing the detection result with the target threshold value to obtain a first comparison result;
step S305, determining a target power scenario corresponding to the first electronic device based on the first comparison result;
Here, the power scenario corresponding to the first electronic device includes, but is not limited to: the current detection result of the first electronic device exceeds the target threshold value once, the current detection result of the first electronic device frequently approaches the target threshold value in a first preset time period, and the current detection result of the first electronic device exceeds the target threshold value for a plurality of times in a second preset time period.
In the embodiment of the application, the detection result can be compared with the target threshold value, and the target power scene corresponding to the first electronic device is determined from the plurality of power scenes according to the comparison result.
Step S306, determining third parameter information of the first electronic equipment;
here, the third parameter information of the first electronic device includes parameter information capable of characterizing the Power capability (i.e., power capability) of the first electronic device when the first electronic device is operating normally, such as rated Power, rated current, rated voltage, and the like.
Step S307, determining a target adjustment mode for adjusting the first electronic device according to the target power scene, the third parameter information of the first electronic device, and the third parameter information of the second electronic device;
in the embodiment of the application, the third parameter information of the first electronic device and the third parameter information of the second electronic device are the same type of parameter information. For example, if the third parameter information of the first electronic device is the rated power of the first electronic device, the third parameter information of the second electronic device is the rated power of the second electronic device; for another example, if the third parameter information of the first electronic device is the rated current of the first electronic device, the third parameter information of the second electronic device is the rated current of the second electronic device.
Step S308, adjusting the first electronic device based on the target adjustment mode.
Here, by the processing method in the steps S301 to S308, when the first electronic device is connected to the second electronic device, the first electronic device is adjusted by determining the adjustment mode of the first electronic device according to the parameter information of the first electronic device and the second electronic device, so that the risk of dragging the second electronic device, which may be caused by heavy current pulling of the first electronic device from the second electronic device, is reduced.
Based on the foregoing embodiments, an embodiment of the present application further provides a processing method, where the method is applied to a first electronic device, and the method includes:
step S311, obtaining first parameter information and third parameter information of the second electronic device based on a connection path of the first electronic device and the second electronic device;
step S312, detecting target parameters of the first electronic equipment to obtain a detection result;
step S313, determining a target threshold according to the first parameter information of the second electronic device;
step S314, comparing the detection result with the target threshold value to obtain a first comparison result;
Step 315, determining a target power scene corresponding to the first electronic device based on the first comparison result;
step S316, determining third parameter information of the first electronic equipment;
step S317, comparing the third parameter information of the first electronic device with the third parameter information of the second electronic device to obtain a second comparison result;
for example, the third parameter information includes a rated power (i.e. a maximum power), and the second comparison result includes: the rated power of the first electronic device is equal to the rated power of the second electronic device, the rated power of the first electronic device is larger than the rated power of the second electronic device, and the rated power of the first electronic device is smaller than the rated power of the second electronic device.
Step S318, determining a target adjustment mode for adjusting the first electronic device through a preset mapping relation set based on the target power scene and the second comparison result; the preset mapping relation set comprises corresponding relations among a plurality of adjustment modes, the power scene and a third parameter comparison result;
here, a mapping relation set may be preset, and the mapping relation set includes correspondence relations between a plurality of adjustment modes and comparison results of the power scene and the third parameter information. Furthermore, based on the mapping relation set, a corresponding target adjustment mode can be determined through the target power scene and the second comparison result. For example, the following table 1 is a mapping relation set corresponding to an external Type-C device when charging a notebook computer. If the target Power scene is Ip and exceeds 100% Ia at a time, and the second comparison result is that Power1 is greater than Power2, then it may be determined from the mapping relation set that the target adjustment mode is PD, and the EC requires the CPU to stop Turbo within 500 ms.
Step S319 is to adjust the first electronic device based on the target adjustment mode.
Here, by the processing method in step S311 to step S319 described above, it is possible to reduce the risk that if the system power consumption of the first electronic device is excessive, or the CPU of the first electronic device suddenly overtakes, the first electronic device pulls a large current from the second electronic device, which may cause the second electronic device to be towed down.
Currently, the frequency of a CPU (Central Processing Unit ) is pressed more and more by a mobile notebook computer, including improvement of a heat dissipation technology, the Power level of the whole notebook computer is higher and higher, and from the previous 65W (watt) of system Power consumption, a 100W threshold is already put into most, and even a light and thin notebook product with 140W of system Power consumption appears.
However, currently most Type-C displays/docking stations can provide only 60W to 90W of power capability, and there are two problems with the general lack of Peak Current capability:
(1) when the Type-C device is connected with a 100W or 140W notebook, the heavy current pulling load of the notebook from the Type-C device may risk the display/docking station to be towed down.
(2) Even if the display has the capacity of 100W, the external display can be dragged down due to the sudden Peak Power (instantaneous Power) demand generated when the CPU Turbo (over-frequency) of the notebook computer is met due to the lack of Peak Current capacity, so that the display can not be displayed all the time after a user accesses the display, or the problems of screen flickering and repeated connection occur.
However, existing solutions can only define the magnitude of the current by means of a fixed current device, or the charge IC (charging wafer) itself, there are two drawbacks:
1) The fixed current device can only protect against the fixed current, but the power supply capability of the fixed current device is also the same as that of the external Type-C equipment, and a single device cannot cover the conditions of various different peripherals.
2) The Charger IC can adjust the OCP (Over Current Protection, over-Current protection) threshold in real time according to the externally accessed Power Source (i.e. Type-C device), but its reaction time is relatively slow, so that the transient spike of Peak Current cannot be handled.
Therefore, based on the foregoing embodiment, the embodiment of the present application further provides a processing method, where the processing method includes the following scheme: the device with a positive temperature coefficient is added on the Current VBUS (i.e. a Power line for supplying Power), the Current magnitude and the rising speed are fed back by the temperature coefficient and are sent to the PD (a controller of a TypeC port) in a voltage form, and the PD judges whether the VBUS channel needs to be cut off timely according to the voltage and the Power capability and the Peak Current capability of different inserted Type-C devices, and finally, the requirement of ensuring that a user normally lights a display is met.
The advantages after the scheme is adopted are as follows:
1. the problem that when a high wattage system (such as a certain notebook computer) is connected to a Type-C display/docking station capable of being powered, the pulling load current possibly exceeds the limit of the Type-C device, so that abnormal functions such as display and the like are caused in data transmission is solved.
2. Aiming at different Type-C devices, various external Type-C devices can be dynamically adjusted and adapted by the PD according to the Power size and Peak Current capability which can be provided by the device.
The implementation details of the above scheme are described in detail below:
(1) When the Type-C device (such as a display, a docking station, etc.) is plugged in, if the Type-C device can charge the system (such as a notebook computer), the Type-C device can communicate with the PD of the system to inform the system of the Power supply capability of the system, and a specific bit in the communication can inform the system of the Power capability (such as the maximum Power) which can be provided by the system and whether the system has the Peak Current capability or not.
Here, bit is a data bit when the register communicates, and if the data bit is 1 or 0, it is known whether there is Peak Current capability. When the Type-C device is inserted into the notebook computer to supply Power to the notebook computer, the Type-C device can communicate with the notebook computer based on a protocol, information of different positions in a table of the protocol represents different contents, the external device provides a string of data from B0 to B32 for the notebook computer when communicating, and the notebook computer can acquire the Power capability (such as the maximum available voltage Va and the maximum sustainable Current Ia) of the inserted Type-C device and whether the notebook computer has Peak Current capability and the capability range thereof based on the string of data and the protocol. The Peak Current capability is actually characterized by how much the Peak Current capability can be exceeded upwards on the basis of the maximum Current that can be provided.
(2) When an instantaneous Peak Current (i.e. Peak Current) occurs, the r_ptc (a positive temperature coefficient device) outputs corresponding values to the PD depending on different rising speeds and Peak Current magnitudes, the system PD combines its Power capability with its own Power Source (i.e. Type-C device) to dynamically adjust the VBUS path according to its own maximum Power (maximum Current multiplied by maximum voltage) and Peak Current capability given by the table in the protocol, and the following three adjustment modes are mainly included:
(1) triggering VBUS open circuit if the current (such as Peak instantaneous current on a notebook) rises rapidly above a threshold;
here, the rptc is a temperature sensitive element capable of reflecting the magnitude of current as a temperature level. There is a linear relationship between voltage and temperature. The R_PTC is used for detecting the change of the temperature of the sensor to reflect the change of the current, and the temperature reflecting speed and the cost are lower.
(2) If the threshold value is frequently approached, feeding back to the EC (Embedded Controller ) to require adjustment of the system load, and reducing the pulling load of external Type-C equipment;
(3) if the short-time current exceeds the critical value for a plurality of times to trigger the VBUS to break, the PD sets a Timeout time to thoroughly break the VBUS path within a period of time, thereby achieving the purpose of protecting the Sink line at the system end.
Here, the Sink line is a charging line for the Type-C device to supply power to the electronic device.
Fig. 4A is a schematic circuit structure of an embodiment of the r_ptc of the present application, as shown in fig. 4A, vbus_typec1 is an interface terminal of a Type-C device, and current flows from vbus_typec1 to vbus_typecpp_hv. The vbus_type_pp_hv terminal is connected to a system (such as a battery of a notebook computer, a CPU of a notebook computer, or other electronic components of a notebook computer). Q1 and Q2 are two MOS tubes (namely MOSFET, field effect tube) which can be respectively simplified into a single-pole single-throw switch, and the function is to make power supply on-off. The current demand of the vbus_type_pp_hv terminal connected system can be adjusted to control the current. MOS pipe Q1 and Q2 can be adjusted jointly and play the effect of switch, also can replace MOS pipe Q1 and Q2 with an integrated switch, and the control logic of switch is carried out by PD, and positive temperature coefficient's device R_PTC is located between MOS pipe Q1 and the MOS pipe Q2. That is, the PD can know the Current in real time and acquire the Current (Ip) by the voltage difference between the two ends of the VBUS path r_ptc, and whether there is a Peak Current condition, where the Peak Current Ip can be obtained by the following formula:
(V1-V2)/R=Ic
d(Ic)/dt=Irise,t1-t0=2ms
here, (V1-V2)/R is the current through the r_ptc, and Irise is the time the current rises, which corresponds to how much the current will rise in dt time. This Irise corresponds to PeakCurrentip from t0 to t1 (e.g., 2 ms). PeakCurrentip is a large current instantaneously generated on a system when the Type-C device supplies power to the system.
Fig. 4B is a schematic implementation flow chart of the processing method according to the embodiment of the present application, as shown in fig. 4B, where the Type-C device supplies power to the notebook computer, and if the system frequently triggers Peak Current, the r_ptc outputs the Peak Current characterization value to the PD; if the PD receives the report of R_PTC, the PD combines the Peak Current capability of the system Power and the Type-C equipment to determine to intervene in the VBUS, and the means for intervening at least comprise: 1) Disconnecting VBUS for a short time; 2) Disconnecting VBUS for a long time; 3) The EC is notified to limit the system power consumption. In contrast, the R_PTC outputs a Peak Current characterization value to the PD, and if the PD detects that the Current VBUS is risk-free, the VBUS is restored. Of course, in the process that the Type-C device supplies power to the notebook computer, the PD continuously receives the R_PTC detection signal, and the R_PTC is continuously monitored and continuously detected.
In summary, the Power capability and Peak Current capability provided by different Type-C devices are different, so that the system adjusts itself according to the obtained Ip for the different Type-C devices.
For example, table 1 is an exemplary electronic device adjustment method, and table 1 shows a manner in which the computer system adjusts itself if the notebook computer has a Peak Current condition during the power supply of the notebook computer (system) by a Type-C device.
Table 1 shows an exemplary electronic device adjustment method
In table 1, ip is the current flowing through the r_ptc device, ia is the maximum current sustainable by the Type-C device, min represents minutes, ms represents milliseconds, trubo represents the CPU of the computer in an over-frequency state, power1 represents the Power capability of the first electronic device (notebook computer), and Power2 represents the Power capability of the second electronic device (Type-C device, such as an external display, docking station, etc.). As can be seen from table 1, the critical values in the determination of different scenarios (for example, when the Type-C device does not have Peak Current capability, the critical values in the determination include 100%, 90%, 97% of Ia) are mainly based on the maximum Current that the Type-C device can continuously provide, i.e., the maximum Current providing capability of the Type-C device, which can also be understood as the maximum instantaneous Peak capability of the Current, where the maximum instantaneous Peak capability is instantaneous, and the capability of continuously providing the maximum Current refers to sustainable, and these two are generally based on sustainable Current. For example, if the Type-C device does not have Peak Current capability, the threshold value may be set according to the maximum sustainable power (Ia), and if the Type-C device has Peak Current capability, it may be set according to the maximum sustainable power (Ia) multiplied by a specific percentage. However, the actual setting process needs to be slightly modified, so that the Type-C device cannot be directly pulled up when the Type-C device is slightly exceeded, and a little reaction time is reserved for the system. For example, when the Type-C device does not have Peak Current capability, the theoretical threshold is 100% Ia, but in order to reduce the risk of damage to the Type-C device, the thresholds are set to be slightly lower in two other scenarios, such as 90% Ia and 97% Ia.
Based on the foregoing embodiments, the embodiments of the present application provide a processing apparatus, where the processing apparatus includes units included, modules included in the units, and components included in the modules may be implemented by a processor in a first electronic device; of course, the method can also be realized by a specific logic circuit; in an implementation, the processor may be a CPU (Central Processing Unit ), MPU (Microprocessor Unit, microprocessor), DSP (Digital Signal Processing, digital signal processor), or FPGA (Field Programmable Gate Array ), or the like.
Fig. 5 is a schematic diagram of the composition structure of a processing apparatus according to an embodiment of the present application, as shown in fig. 5, the apparatus 500 includes:
an obtaining unit 501, configured to obtain parameter information of a second electronic device based on a connection path between the first electronic device and the second electronic device;
the detection unit 502 is configured to detect a target parameter of the first electronic device, so as to obtain a detection result;
and the processing unit 503 is configured to adjust the first electronic device according to the detection result and the parameter information of the second electronic device.
In some embodiments, the parameter information of the second electronic device includes at least first parameter information;
correspondingly, the processing unit 503 includes:
the determining module is used for determining a target adjusting mode for adjusting the first electronic equipment according to the detection result and the first parameter information of the second electronic equipment;
and the processing module is used for adjusting the first electronic equipment based on the target adjustment mode.
In some embodiments, the target adjustment means includes at least one of:
adjusting the power consumption of the first electronic device;
adjusting a state of a connection path between the first electronic device and the second electronic device;
wherein the adjustment of the power consumption comprises adjustment of a power consumption level and/or adjustment of a power consumption time.
In some embodiments, the determining module includes:
a first determining unit, configured to determine a target threshold according to first parameter information of the second electronic device;
the comparison component is used for comparing the detection result with the target threshold value to obtain a first comparison result;
and the second determining part is used for determining a target adjustment mode for adjusting the first electronic equipment based on the first comparison result.
In some embodiments, the parameter information of the second electronic device further includes second parameter information;
correspondingly, the first determining means includes:
a first determining sub-component, configured to determine a target coefficient according to first parameter information of the second electronic device;
the first determining subcomponent is further configured to determine the target threshold value based on the target coefficient and second parameter information of the second electronic device.
In some embodiments, the parameter information of the second electronic device further includes third parameter information;
correspondingly, the second determining part includes:
a second determining sub-component, configured to determine a target power scenario corresponding to the first electronic device based on the first comparison result;
the second determining sub-component is further configured to determine third parameter information of the first electronic device;
the second determining sub-component is further configured to determine a target adjustment manner for adjusting the first electronic device according to the target power scenario, the third parameter information of the first electronic device, and the third parameter information of the second electronic device.
In some embodiments, the second determining subcomponent includes:
A comparing sub-component, configured to compare the third parameter information of the first electronic device with the third parameter information of the second electronic device, to obtain a second comparison result;
the determining sub-component is used for determining a target adjustment mode for adjusting the first electronic equipment through a preset mapping relation set based on the target power scene and the second comparison result;
the preset mapping relation set comprises corresponding relations among a plurality of adjustment modes, the power scene and a third parameter comparison result.
In some embodiments, the detection unit 502 includes:
the detection subunit is used for responding to the second electronic equipment to supply power to the first electronic equipment and detecting the target parameters of the first electronic equipment in real time to obtain a detection result;
wherein the target parameters include at least one of: the temperature of the target element of the electronic device, the current of the target element of the electronic device, the voltage of the target element of the electronic device, the operating mode of the electronic device.
The description of the apparatus embodiments above is similar to that of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, please refer to the description of the embodiments of the method of the present application.
In the embodiment of the present application, if the processing method is implemented in the form of a software functional module and sold or used as a separate product, the processing method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied essentially or in part in the form of a software product stored in a storage medium, including instructions for causing an electronic device (which may be a personal computer, a server, etc.) to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a ROM (Read Only Memory), a magnetic disk, or an optical disk. Thus, embodiments of the application are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program which can be run on the processor, and the processor realizes the steps in the processing method provided in the embodiment when executing the program.
Correspondingly, an embodiment of the present application provides a readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the above-mentioned processing method.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present application, please refer to the description of the method embodiments of the present application.
It should be noted that fig. 6 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application, as shown in fig. 6, the hardware entity of the electronic device 600 includes: a processor 601, a communication interface 602 and a memory 603, wherein
The processor 601 generally controls the overall operation of the electronic device 600.
The communication interface 602 may enable the electronic device 600 to communicate with other electronic devices or servers or platforms over a network.
The memory 603 is configured to store instructions and applications executable by the processor 601, and may also cache data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or processed by each module in the processor 601 and the electronic device 600, and may be implemented by FLASH (FLASH) or RAM (Random Access Memory ).
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units. Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The methods disclosed in the method embodiments provided by the application can be arbitrarily combined under the condition of no conflict to obtain a new method embodiment.
The features disclosed in the several product embodiments provided by the application can be combined arbitrarily under the condition of no conflict to obtain new product embodiments.
The features disclosed in the embodiments of the method or the apparatus provided by the application can be arbitrarily combined without conflict to obtain new embodiments of the method or the apparatus.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A processing method applied to a first electronic device, the method comprising:
acquiring parameter information of the second electronic equipment based on a connection path of the first electronic equipment and the second electronic equipment;
detecting target parameters of the first electronic equipment to obtain a detection result;
And adjusting the first electronic equipment according to the detection result and the parameter information of the second electronic equipment.
2. The method of claim 1, the parameter information of the second electronic device comprising at least first parameter information;
correspondingly, the adjusting the first electronic device according to the detection result and the parameter information of the second electronic device includes:
determining a target adjustment mode for adjusting the first electronic equipment according to the detection result and the first parameter information of the second electronic equipment;
and adjusting the first electronic equipment based on the target adjustment mode.
3. The method of claim 2, wherein the target adjustment means comprises at least one of:
adjusting the power consumption of the first electronic device;
adjusting a state of a connection path between the first electronic device and the second electronic device;
wherein the adjustment of the power consumption comprises adjustment of a power consumption level and/or adjustment of a power consumption time.
4. The method of claim 2, wherein the determining, according to the detection result and the first parameter information of the second electronic device, a target adjustment manner for adjusting the first electronic device includes:
Determining a target threshold according to the first parameter information of the second electronic equipment;
comparing the detection result with the target threshold value to obtain a first comparison result;
and determining a target adjustment mode for adjusting the first electronic equipment based on the first comparison result.
5. The method of claim 4, the parameter information of the second electronic device further comprising second parameter information;
correspondingly, the determining the target threshold according to the first parameter information of the second electronic device includes:
determining a target coefficient according to the first parameter information of the second electronic equipment;
the target threshold is determined based on the target coefficient and second parameter information of the second electronic device.
6. The method of claim 4, the parameter information of the second electronic device further comprising third parameter information;
correspondingly, the determining, based on the first comparison result, a target adjustment manner for adjusting the first electronic device includes:
determining a target power scene corresponding to the first electronic equipment based on the first comparison result;
determining third parameter information of the first electronic equipment;
And determining a target adjustment mode for adjusting the first electronic equipment according to the target power scene, the third parameter information of the first electronic equipment and the third parameter information of the second electronic equipment.
7. The method of claim 6, wherein determining the target adjustment mode for adjusting the first electronic device according to the target power scenario, the third parameter information of the first electronic device, and the third parameter information of the second electronic device comprises:
comparing the third parameter information of the first electronic equipment with the third parameter information of the second electronic equipment to obtain a second comparison result;
determining a target adjustment mode for adjusting the first electronic equipment through a preset mapping relation set based on the target power scene and the second comparison result;
the preset mapping relation set comprises corresponding relations among a plurality of adjustment modes, the power scene and a third parameter comparison result.
8. The method according to any one of claims 1 to 7, wherein the detecting the target parameter of the first electronic device, to obtain a detection result, includes:
Responding to the second electronic equipment to supply power to the first electronic equipment, and detecting target parameters of the first electronic equipment in real time to obtain a detection result;
wherein the target parameters include at least one of: the temperature of the target element of the electronic device, the current of the target element of the electronic device, the voltage of the target element of the electronic device, the operating mode of the electronic device.
9. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, the processor implementing the steps of the processing method of any one of claims 1 to 8 when the program is executed.
10. A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the processing method of any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311000186.6A CN117033284A (en) | 2023-08-09 | 2023-08-09 | Processing method, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311000186.6A CN117033284A (en) | 2023-08-09 | 2023-08-09 | Processing method, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117033284A true CN117033284A (en) | 2023-11-10 |
Family
ID=88625713
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311000186.6A Pending CN117033284A (en) | 2023-08-09 | 2023-08-09 | Processing method, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117033284A (en) |
-
2023
- 2023-08-09 CN CN202311000186.6A patent/CN117033284A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10714950B2 (en) | Charging control method and charging device | |
JP5634608B2 (en) | Charging port | |
US8207628B2 (en) | Output power port management control | |
KR101233556B1 (en) | Systems and methods for disabling power management in a computer system | |
TWI451703B (en) | Mobile terminal aware of external device and control method for the same | |
US20190109484A1 (en) | Electronic device, charger, and charging method | |
CN104578277A (en) | Method for charging electronic equipment and electronic equipment | |
CN106655344B (en) | Charging method and device for mobile terminal | |
CN111917163A (en) | Multi-port charging control circuit and method, charging chip and power supply equipment | |
CN107332208A (en) | A kind of protection circuit, mainboard guard method and terminal | |
US7679321B2 (en) | Power circuit | |
CN211605566U (en) | USBType-C connects, USB data line and battery charging outfit | |
WO2020181971A1 (en) | Charging method and apparatus, terminal, and storage medium | |
US20050099159A1 (en) | Charging and feeding control method and charging and feeding device which changes setting of current flowing into current control circuit according to load state of load device | |
CN106685018A (en) | Reverse charging method and device as well as terminal | |
CN112260348A (en) | Charging control circuit and charging equipment | |
CN104485712A (en) | Charging method and electronic equipment | |
US20140173309A1 (en) | Information processing apparatus, and control method for information processing apparatus | |
CN117033284A (en) | Processing method, electronic device and storage medium | |
CN106708232A (en) | Electronic device and control method | |
CN113595213B (en) | power distribution device | |
CN104578275A (en) | Charging method and electronic equipment | |
CN111045506B (en) | Control method and electronic equipment | |
CN105762884B (en) | Method for charging electronic device and electronic device | |
CN103095929B (en) | Method and system capable of preventing terminal from restarting repeatedly and mobile terminal using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |