CN117650599A - Charging architecture updating method and device, computer equipment and storage medium - Google Patents

Charging architecture updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN117650599A
CN117650599A CN202311468813.9A CN202311468813A CN117650599A CN 117650599 A CN117650599 A CN 117650599A CN 202311468813 A CN202311468813 A CN 202311468813A CN 117650599 A CN117650599 A CN 117650599A
Authority
CN
China
Prior art keywords
charging
scene
architecture
path
current
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
Application number
CN202311468813.9A
Other languages
Chinese (zh)
Inventor
李志杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202311468813.9A priority Critical patent/CN117650599A/en
Publication of CN117650599A publication Critical patent/CN117650599A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The application relates to a charging architecture updating method, a charging architecture updating device, computer equipment and a storage medium. The method comprises the following steps: acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, wherein the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene; based on the scene information of each charging scene, updating the charging paths in the initial charging architecture to obtain the target charging architecture. By adopting the method, the charging architecture design can be carried out based on the service condition of the charging scene.

Description

Charging architecture updating method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of charging technologies, and in particular, to a charging architecture updating method, a charging architecture updating device, a computer device, and a storage medium.
Background
With the development of charging technology, various charging scenes occur, and the current charging scenes include: plug and play (OTG) charging, wired charging, wireless forward charging, wireless reverse charging. If it is desired to support coexistence of these multiple charging scenarios, a more complex path architecture is required, and the architecture needs to include a path that can support each charging scenario at the same time, and has a complex structure and high cost. At present, in practical application, the usage rate of some charging scenes is very low or the charging scenes cannot be used simultaneously, so that a method for designing a charging architecture based on the usage condition of the charging scenes is needed.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a charging architecture updating method, apparatus, computer device, and computer-readable storage medium that are capable of performing charging architecture design based on usage conditions of a charging scenario.
In a first aspect, the present application provides a charging architecture updating method, the method including:
acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, wherein the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene;
and updating the charging paths in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture.
In one embodiment, the scenario information includes an occupation time of each charging scenario, and updating a charging path in the initial charging architecture based on the scenario information of each charging scenario to obtain a target charging architecture includes:
determining a usage time duty ratio of each charging scene based on the occupation time of each charging scene, and/or a probability of simultaneous usage of each charging scene;
And updating a charging path in the initial charging architecture based on the usage time duty ratio of each charging scene and/or the probability of simultaneous usage of each charging scene so as to obtain a target charging architecture.
In one embodiment, the updating the charging path in the initial charging architecture based on the probability of simultaneous usage of the charging scenes to obtain a target charging architecture includes:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, configuring a common charging chip for a first charging path and a second charging path in the initial charging architecture so as to obtain the target charging architecture;
the first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
In one embodiment, the updating the charging path in the initial charging architecture based on the usage time duty ratio of each charging scenario and the probability of simultaneous usage of each charging scenario to obtain a target charging architecture includes:
If the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, and the usage time duty ratio of the second charging scene is smaller than the usage time duty ratio of the first charging scene, the following updating operation is executed on the initial charging architecture:
removing the charging chip in the second charging path, and configuring the charging chip of the first charging path as a common charging chip of the first charging path and the second charging path to obtain the target charging architecture;
the first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
In one embodiment, the scene information further includes: maximum battery current for each charging scenario;
updating the charging path in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture, including:
if the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is smaller than a preset value, the current of the charging chip in the target charging path is adjusted so that the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is larger than or equal to the preset value;
The target charging path is a charging path corresponding to the target charging scene.
In one embodiment, the acquiring the occupation time of each charging scene in the initial charging architecture within the first preset duration includes:
detecting battery current corresponding to each charging scene once every time period;
for the target charging scenario, in the event that the current detected battery current is greater than the historically saved battery maximum current, the battery current is recorded as a new battery maximum current.
In one embodiment, the first preset duration includes at least one time period, and the scene information is acquired once in each time period;
the obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration includes:
if the value of a first indicating bit corresponding to a first charging scene is a first preset value in the current time period, determining to acquire scene information of the first charging scene;
the first preset value is used for indicating that the first charging scene exists.
In one embodiment, the scene information includes an occupied time of each charging scene, and if a value of a first indicator bit corresponding to a first charging scene in a current time period is a first preset value, determining to acquire the scene information of the first charging scene includes:
If the value of the first indicating bit in the current time period is a first preset value and the value of the first indicating bit in the previous time period is also the first preset value, determining that the occupied time of the first charging scene is the accumulated time of the previous time period and the current time period;
if the value of the first indicating bit is a first preset value and the value of the first indicating bit in the previous time period is a second preset value, determining that the occupied time of the first charging scene is the occupied time of the current time period;
the second preset value is used for indicating that the first charging scene does not exist.
In one embodiment, after obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration, the method further includes:
and displaying the scene information in a billboard form, or displaying the result of classifying statistics based on the scene information in a billboard form.
In a second aspect, the present application further provides a charging architecture updating apparatus, including:
the device comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene;
And the updating module is used for updating the charging paths in the initial charging framework based on the scene information of each charging scene so as to obtain a target charging framework.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, wherein the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene;
and updating the charging paths in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, wherein the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene;
And updating the charging paths in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture.
In a fifth aspect, the present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, wherein the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene;
and updating the charging paths in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture.
According to the charging architecture updating method, the charging architecture updating device, the computer equipment and the storage medium, the scene information of each charging scene in the initial charging architecture can be obtained within the first preset duration, the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene; based on the scene information of each charging scene, updating the charging paths in the initial charging architecture to obtain the target charging architecture. According to the scheme, the service conditions of all charging scenes can be obtained based on the scene information of all the charging scenes, and the initial charging architecture is updated based on the scene information, so that the obtained target charging architecture can better meet the actual use requirements, and the charging architecture updating method realizes the charging architecture design based on the service conditions of the charging scenes.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is a schematic diagram of a charging architecture supporting multiple charging scenarios simultaneously in one embodiment;
FIG. 2 is a schematic diagram of an application environment of a charging architecture update method according to an embodiment;
FIG. 3A is a flowchart illustrating a method for updating a charging architecture according to one embodiment;
FIG. 3B is a diagram showing the result of statistics of usage time ratios of each charging scenario for each charging scenario;
FIG. 3C is a second flowchart illustrating a method for updating a charging architecture according to an embodiment;
FIG. 4 is a flowchart illustrating a charging architecture updating method according to an embodiment;
FIG. 5 is a schematic diagram of another charging architecture according to one embodiment;
FIG. 6 is a flowchart illustrating a charging architecture updating method according to an embodiment;
FIG. 7A is a block diagram of a charging architecture update device according to one embodiment;
FIG. 7B is a block diagram of a charging architecture update device according to an embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
With the development of charging technology, various charging scenes occur, and the current charging scenes include: plug and play (OTG) charging, wired charging, wireless forward charging, wireless reverse charging. If it is desired to support coexistence of these multiple charging scenarios, a more complex path architecture is required, and the architecture needs to include a path that can support each charging scenario at the same time, and has a complex structure and high cost.
Fig. 1 is a schematic diagram of a charging architecture supporting multiple charging scenarios simultaneously in one embodiment. The charging architecture can support various charging scenes such as OTG charging, wired general charging, wired quick charging, wireless normal charging general charging, wireless normal charging quick charging and wireless reverse charging, and comprises different charging paths corresponding to the scenes, namely the following charging paths:
Wired general charging path: corresponding to the charging scenario of wired common charging, the wired common charging path may be a path formed by the following devices in sequence shown in fig. 1: TYPE C, physical Switch 1 (Load Switch 1), buck power management integrated circuit (PMIC Buck), charge pump 1 (CP 1), battery (BAT). The TYPE C is an interface TYPE of a universal serial bus (Universal Serial Bus, USB) interface profile standard, and the TYPE C interface may provide data transmission, and may also support audio/video transmission, device charging, and so on.
And (3) a wired quick-charging direct-charging passage: corresponding to the charging scenario of the wired fast charging, the wired fast charging direct charging path may be a path formed by the following devices shown in fig. 1 in sequence: TYPE C, SVOOC Metal-Oxide-semiconductor field effect transistor (MOS), BAT. Wherein SVOOC is a fast charge protocol, and SVOOC MOS is a field effect transistor supporting the SVOOC fast charge protocol.
Wireless normal filling general filling passage: corresponding to the charging scenario of the wireless normal charging and normal charging, the wireless normal charging and normal charging path can be a path formed by the following devices in sequence shown in fig. 1: wireless transceiver chip (RX), physical Switch 2 (Load Switch 2), PMIC Buck, charge pump 1 (CP 1), BAT. Wherein the input and output voltage ratio of CP1 is 2:1.
Wireless positive charging fast charging passage: corresponding to the charging scenario of the wireless positive charge and fast charge, the wireless positive charge and fast charge path may be a path formed by the following components in sequence shown in fig. 1: wireless transceiver chip (RX), charge pump 2 (CP 2), BAT. Wherein, the ratio of the input voltage to the output voltage of the CP2 is 4:2, and the working voltage of the CP2 is larger than the working voltage of the CP 1.
OTG pathway: corresponding to the charging scenario of OTG, the OTG path may be a path composed of the following devices in order shown in fig. 1: CP1, 5V BOOST (BOOST) chip, physical Switch 3 (Load Switch 3), TYPE C. The power supply in the channel can be 5V voltage output by a 5V BOOST chip (namely, a BOOST chip with the voltage of 5V) or 5V voltage output by a PMIC Buck.
Wireless reverse charging passage: corresponding to the charging scenario of wireless reverse charging, the wireless reverse charging path may be a path formed by the following components in sequence shown in fig. 1: CP1, 9V BOOST (BOOST) chip, physical Switch 4 (Load Switch 4), wireless transceiver chip (RX). The power supply in the channel can be 9V voltage output by a 9V BOOST chip (namely, a BOOST chip with the voltage of 5V) or 9V voltage output by a PMIC Buck.
The charging architecture in fig. 1 supports coexistence of the above multiple scenarios, and the multiple paths shown in the figure are all provided with corresponding charging chips (or devices with equivalent functions), so the charging architecture is relatively high in cost.
If, for cost saving, the BOOST chip is not used in the OTG path or the wireless reverse charging path to supply power, but the PMIC Buck is directly used for supplying power, then some charging scenarios may not coexist, for example:
assuming that the OTG channel adopts PMIC Buck for power supply, the OTG channel and the wireless normal charging common charging channel cannot coexist;
assuming that the OTG channel is powered by a 5V BOOST chip and the wireless reverse charging channel is powered by a PMIC Buck, the wireless reverse charging channel and the wired common charging channel cannot coexist.
Assuming that the OTG channel is powered by a 5V BOOST chip, the wireless reverse charging channel is powered by 5V voltage output by the PMIC Buck, the wireless reverse charging channel and the wired common charging channel can coexist, and the wireless reverse charging channel is disconnected once only because the 5V power output by the PMIC Buck is switched to the 5V BOOST chip power.
At present, the coexistence situation of each scene is not monitored, so that the product experience and the cost of the charging architecture cannot be balanced, and in practical application, the use rate of some charging scenes is very low or the charging scenes cannot be used simultaneously, so that a method for designing the charging architecture based on the use situation of the charging scenes is needed. Therefore, the application provides a charging architecture updating method capable of conducting charging architecture design based on the service condition of a charging scene.
The charging architecture updating method provided by the embodiment of the application can be applied to an application environment shown in fig. 2, and fig. 2 is a schematic diagram of the application environment of the charging architecture updating method in one embodiment. Wherein terminal 202 communicates with server 204 via a network. The data storage system may store data that server 204 needs to process. The data storage system may be integrated on the server 204 or may be located on a cloud or other network server. The terminal 202 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 204 may be implemented as a stand-alone server or as a server cluster of multiple servers.
The charging architecture updating method provided in the embodiment of the present application may be executed by the terminal 202 in the application environment shown in fig. 1, or may be executed by the server 204 alone, or may be executed through interaction between the terminal 202 and the server 204.
In an exemplary embodiment, as shown in fig. 3A, a flowchart of a charging architecture updating method is provided, including the following steps 301 and 302.
301. And acquiring scene information of each charging scene in the initial charging architecture within a first preset duration.
The initial charging framework comprises a plurality of charging paths, and each charging path corresponds to one charging scene.
The initial charging architecture may be, for example, the charging architecture shown in fig. 1.
In some embodiments, the first preset duration includes at least one time period, and the scene information is acquired once in each time period.
For example, the time period may be 5 seconds, 3 seconds or other time periods, and the setting of the time period may be set according to actual requirements, which is not limited in the embodiments of the present disclosure.
Wherein, each charging scene may include, but is not limited to, part or all of the following charging scenes: OTG charges, wired ordinary fills, and wired quick fills, and wireless normal fills ordinary fills, and wireless normal fills quick fills, wireless reverse fills.
The above-mentioned scene information may include, but is not limited to, at least one of the following:
scene identification, occupation time of each charging scene, maximum current of each charging scene.
Acquiring scene information of each charging scene in the initial charging architecture within a first preset duration, wherein the scene information comprises: and if the value of the first indication bit corresponding to the first charging scene is a first preset value in the current time period, determining to acquire scene information of the first charging scene. The first preset value is used for indicating that a first charging scene exists.
In the embodiment of the disclosure, different indication bits can be adopted to correspondingly indicate different charging scenes, and whether the charging scenes exist or not is represented by the value of the indication bit.
In some embodiments, a first preset value may be used to indicate that a charging scenario is present (i.e., the charging scenario is being used), and a second preset value may be used to indicate that the charging scenario is not present (i.e., the charging scenario is not being used).
The first preset value is 1, and the second preset value is 0.
In some embodiments, the scene information of each charging scene may be represented by a 32-bit unsigned integer. Wherein each bit in the 32-bit unsigned integer represents a different charging scenario as one indication bit.
In some embodiments, the scene information includes an occupied time of each charging scene, and if the value of the first indicator bit in the current time period is a first preset value and the value of the first indicator bit in the previous time period is also the first preset value, determining that the occupied time of the first charging scene is an accumulated time of the previous time period and the current time period; if the value of the first indicating bit is a first preset value and the value of the first indicating bit in the previous time period is a second preset value, determining that the occupied time of the first charging scene is the occupied time of the current time period; the first preset value is used for indicating that the first charging scene exists, and the second preset value is used for indicating that the first charging scene does not exist.
In some embodiments, after the scene information of each charging scene in the initial charging architecture is acquired within the first preset duration, the scene information may be displayed in a billboard form, or a result after categorizing and counting based on the scene information may be displayed in a billboard form.
The statistics and classification of each parameter in the scene information can obtain the usage time ratio of each charging scene and/or the probability of simultaneous usage of each charging scene, and the like, and the information is displayed in the form of a billboard.
It should be noted that the above display forms are merely exemplary, and other display modes may be adopted in practical application, which is not limited by the embodiments of the present disclosure.
Fig. 3B is a schematic diagram of a result of statistics of usage time ratios of respective charging scenes, wherein the usage time ratios of several charging scenes including OTG charging (OTG), wired forward charging, wireless forward charging, and wireless reverse charging, and the usage time ratio of coexistence of partial charging scenes are related. In the diagram, the horizontal axis represents the charging scenario, and the vertical axis represents the percentage value of the usage time.
In an exemplary embodiment, as shown in fig. 3C, a second flowchart of a charging architecture updating method is provided, which includes the following steps 310 to 325.
310. And starting the terminal.
311. And loading the embedded point driver by the terminal.
When the terminal is started, a real-time operating system Kernel (Kernel) is loaded, and the Kernel loads a buried point driver. The embedded point driver is used for realizing the charging architecture updating method.
312. The terminal initializes scene information of each charging scene.
The embedded point driver program initializes scene information of each charging scene.
Illustratively, the charging scenario within the current time period is represented as: the charge scenario in the last time period is expressed as: pre_record_scene.
Wherein, the values of the record_scan and the pre-record_scan can be represented by a 32-bit (bit) unsigned integer. Each bit represents a charging scenario, for example, wired charging is represented by bit0, if wired charging exists, bit0 is set to be equal to 1, and if no wired charging exists, bit0 is set to be equal to 0; if the wireless charging is represented by bit1, the wireless charging is performed, bit1 is set to be equal to 1, and if the wireless charging is not performed, bit1 is set to be equal to 0.
Both the record_scene and the pre_record_scene at initialization may be equal to 0, indicating that there is no scene trigger. The initial time may also be recorded at initialization. The initial time may be expressed as current_time, which is not a system time. While the initial maximum battery current may be the battery current obtained using the meter's read-write interface function (I2C), denoted as battcurrent max.
313. And starting polling to detect scene information of the charging scene.
In this application, polling may be performed at a certain time period. For example, once every 5 seconds, the following steps 314-325 may be performed during each polling period.
314. Traversing attribute values of different charging scenes.
315. And judging whether all the charging scenes are traversed.
After traversing all charging scenarios, then steps 319-325 described below may be performed; when all the charging scenes are not traversed, further determining the attribute values corresponding to the charging scenes is required, and the following steps 316 to 325 are executed.
316. It is determined whether the attribute value is 1.
Wherein, an attribute value of 1 indicates that a scene exists, a bit corresponding to the charging scene is set to 1, an attribute value of 0 indicates that a scene does not exist, and a bit corresponding to the charging scene is set to 0.
317. The bit corresponding to the charging scenario is set to 0.
318. The bit corresponding to the charging scenario is set to 1.
The embedded point driver program polls and inquires the current charging scene according to a certain time period, namely, the attribute state (attribute value) of the embedded point driver program is obtained through the driving interface functions of the related different charging scenes, then whether the attribute value is set to 1 is judged respectively, if so, a bit corresponding to the record_scene corresponding to the charging scene is set to 1, and otherwise, the bit is set to 0.
319. And obtaining the battery current.
And acquiring the battery current after determining that all the charging scenes are traversed.
320. It is determined whether the battery current is greater than the recorded maximum battery current.
When the battery current is greater than the recorded maximum battery current, the following steps 321 to 325 are performed, and when the battery current is less than or equal to the maximum battery current, the following steps 322 to 325 are directly performed.
321. The recorded maximum battery current is updated to the battery current.
After traversing all charging scenarios in turn, the current battery current (battjcurrent) obtained by accessing the battery electricity meter chip through the I2C may be obtained, and if battjcurrent is greater than battjcurrent_max, the battjcurrent_max is updated to be equal to battjcurrent.
322. And judging whether the values of bits corresponding to the same charging scene of the current polling period and the previous polling period are not equal, and judging whether the values of bits corresponding to the charging scene of the previous polling period are not equal to 0.
323. And adding the scene identification of the charging scene with the bit value of 1 into the character string data, determining the occupied time of the current polling period as the occupied time of the charging scene, and acquiring the maximum battery current.
And when the values of bits corresponding to the same charging scene of the current polling period and the previous polling period are not equal, determining the occupation time of the current polling period as the occupation time of the charging scene.
324. Adding a scene identification of a charging scene with a bit value of 1 to the character string data, determining the accumulated time of the last time period and the current time period as the occupied time of the charging scene, and acquiring the maximum battery current.
When the values of bits corresponding to the same charging scene in the current polling period (i.e., the current time period) and the previous polling period (i.e., the previous time period) are not equal, determining the accumulated time of the previous time period and the current time period as the occupied time of the charging scene.
For example, it is determined whether the record_record is equal to the corresponding bit value of the pre-record_record, if the bit value is equal, the charging scene is not changed in two polling periods, if the bit value is not equal, and there is a related scene record in the previous polling period, that is, the pre-record_record is not equal to 0, at this time, the occupied time (expressed as the record_time) of the pre-record_record is required to be recorded, the record_time=the system time (get_current_time) at this time minus the saved time record (current_time), and then the current_time=get_current_time is updated again. And traversing all bits of the pre-record_scene which are 1 circularly, and adding the scene identification corresponding to the bit which is 1 into the character string array.
For example, the string array is denoted as str_scene, assuming that bit of the charging scene of OTG charging is 1, the scene parameter is "OTG", bit of the wireless reverse charging scene is 1, and the scene parameter is "wtx", str_scene= "otg+ wtx".
325. And packing the scene identification, the occupation time of each charging scene and the maximum battery current of each charging scene into buried point information and sending the buried point information to the server so that the server can update the charging architecture based on the scene information, and displaying the scene information in a billboard form or classifying and counting results based on the scene information.
The scene information composed of the scene identification, the occupation time of each charging scene and the maximum battery current of each charging scene can be packaged into embedded point information and sent to the server.
The server receives the embedded point information, can analyze the embedded point information to obtain each parameter in the scene information, and performs statistics and classification on each parameter in the scene information, and displays the parameters in the form of a billboard.
302. Based on the scene information of each charging scene, updating the charging paths in the initial charging architecture to obtain the target charging architecture.
In some embodiments, when the above steps 301 and 302 are implemented based on the terminal 202 and the server 204 as shown in fig. 2, the terminal 202 may perform the above step 302 to obtain the scene information of each charging scene, then send the scene information of each charging scene to the server 204, and then perform the above step 302 by the server 204, thereby obtaining the target charging architecture.
According to the charging architecture updating method, the scene information of each charging scene in the initial charging architecture can be obtained within the first preset time period, the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene; based on the scene information of each charging scene, updating the charging paths in the initial charging architecture to obtain the target charging architecture. According to the scheme, the service conditions of all charging scenes can be obtained based on the scene information of all the charging scenes, and the initial charging architecture is updated based on the scene information, so that the obtained target charging architecture can better meet the actual use requirements, and the charging architecture updating method realizes the charging architecture design based on the service conditions of the charging scenes.
In an exemplary embodiment, as shown in fig. 4, a third flowchart of a charging architecture updating method is provided, which includes the following steps 401 to 403.
401. And acquiring the occupation time of each charging scene in the initial charging framework within a first preset duration.
The occupation time of the charging scene can be understood as at least one of the following:
duration of the charging scenario, start time of the charging scenario, end time of the charging scenario.
In some embodiments, the charging scenario duration may be a duration that is used cumulatively for a first preset duration.
402. And determining the usage time duty ratio of each charging scene and/or the probability of simultaneous usage of each charging scene based on the occupancy time of each charging scene.
In some embodiments, the probability of using two charging scenes simultaneously may be calculated according to the corresponding occupation time of using two charging scenes simultaneously and the first preset duration. For example, the corresponding occupied time of two charging scenes may be used simultaneously, divided by the first preset duration, to obtain the probability of using the two charging scenes simultaneously.
In some embodiments, the usage time duty ratio of each charging scenario may be calculated according to the occupation time of each charging scenario and the first preset duration. For example, the duration of each charging scenario may be divided by the first preset duration, so as to obtain the usage time duty ratio of each charging scenario.
403. And updating the charging paths in the initial charging architecture based on the usage time duty ratio of each charging scene and/or the probability of simultaneous usage of each charging scene so as to obtain a target charging architecture.
In some embodiments, updating the charging path in the initial charging architecture based on the probability of simultaneous use of the respective charging scenarios to obtain the target charging architecture includes: if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, a shared charging chip is configured for the first charging path and the second charging path in the initial charging architecture so as to obtain a target charging architecture.
The first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
When the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, in order to reduce the cost, the first charging scene and the second charging scene can not be supported to be used simultaneously, and the first charging path and the second charging path in the initial charging framework are configured to share the charging chip, so that the first charging path and the second charging path are configured to share one charging chip, and thus, the two charging scenes can be supported and only used in different time periods.
In some embodiments, updating a charging path in an initial charging architecture based on a usage time duty cycle of each charging scenario and a probability of each charging scenario being used simultaneously to obtain a target charging architecture includes: if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, and the usage time duty ratio of the second charging scene is smaller than the usage time duty ratio of the first charging scene, the following updating operation is executed on the initial charging architecture: removing the charging chip in the second charging path, and configuring the charging chip of the first charging path as a common charging chip of the first charging path and the second charging path to obtain a target charging architecture; the first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
When the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, in order to reduce the cost, the first charging path and the second charging path in the initial charging framework are not required to support the simultaneous use of the first charging scene and the second charging scene, and further, when the usage time of the second charging scene is smaller than the usage time of the first charging scene, the time for using the first charging scene is more, the charging chips in the second charging path are removed, and the charging chips of the first charging path are configured as the common charging chips of the first charging path and the second charging path, so that the usage effect of the first charging path corresponding to the first charging scene can be better ensured, and the performance of the charging path can be ensured to the greatest extent on the basis of reducing the cost.
For example, assuming that the probability of using the wireless reverse charging scene and the wired charging scene simultaneously is very small according to the scene information in the wireless reverse charging and wired general charging scenes, the PMIC Buck can be directly used for supplying power to the wireless reverse charging channel corresponding to the wireless reverse charging scene, and the cost is increased without additionally adding 9V Boost. Fig. 5 is a schematic diagram of another charging architecture in an embodiment, as shown in fig. 5, in which a 9V BOOST chip is removed on the basis of fig. 1, so that the 9V voltage output by the PMIC Buck in the wired common charging path supplies power to the wireless reverse charging path.
In some embodiments, when the usage time duty ratio of a certain charging scenario is smaller than the preset time duty ratio, the charging path corresponding to the charging scenario may be removed from the charging architecture, so as to reduce the cost.
The preset time duty ratio may be set according to practical situations, and the embodiment of the disclosure is not limited.
Based on the scene information of each charging scene, the usage time duty ratio of each charging scene and/or the probability of simultaneous usage of each charging scene can be known, and the initial charging architecture is updated based on the information, so that the obtained target charging architecture can better meet the actual use requirements, and the charging architecture updating method realizes the charging architecture design based on the usage condition of the charging scene.
In some embodiments, the scene information for each charging scene includes a maximum current for the battery for each charging scene.
In an exemplary embodiment, as shown in fig. 6, a flowchart of a charging architecture updating method is provided, which includes the following steps 601 and 602.
601. And acquiring the maximum current of the battery of each charging scene in the initial charging framework within a first preset duration.
The maximum current of the battery can be obtained for a plurality of times within a first preset time period, and then the maximum current value is selected from a plurality of battery currents of the same charging scene to be used as the maximum current of the battery corresponding to the charging scene.
In some embodiments, the scene information of each charging scene further includes the maximum battery current of each charging scene, and then the current of the charging chip in the target charging path in the charging architecture can be adjusted based on the maximum battery current of each charging scene.
602. And if the difference between the maximum current of the battery in the target charging scene and the allowable charge and discharge current is smaller than a preset value, adjusting the current of the charging chip in the target charging path so that the difference between the maximum current of the battery in the target charging scene and the allowable charge and discharge current is larger than or equal to the preset value.
The maximum current of the battery is the maximum current of battery charge and discharge in actual use, and the allowable charge and discharge current is the maximum charge and discharge current which is preset in advance and can ensure the normal operation of the battery.
The method for acquiring the occupation time of each charging scene in the initial charging framework in the first preset duration comprises the following steps: and detecting the battery current corresponding to each charging scene once every time period. For a target charging scenario, in the event that the current detected battery current is greater than the historically saved battery maximum current, the battery current is recorded as the new battery maximum current.
That is, during each time period, the newly obtained battery current may be compared to the previously recorded maximum battery current, and once the historical maximum battery current is exceeded, the newly obtained battery current is recorded as the present maximum battery current.
When the difference between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is smaller than the preset value, the maximum current of the battery in charge and discharge in actual use is very close to the allowable charge and discharge current, or the allowable charge and discharge current is already reached, and the current of the charging chip in the target charging path is adjusted at the moment to reduce the maximum current of the battery, so that the difference between the maximum current of the battery in the target charging scene and the allowable charge and discharge current is larger than or equal to the preset value, and the normal operation of the battery can be ensured.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a charging architecture updating device for realizing the above-mentioned charging architecture updating method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the charging architecture updating device or devices provided below may be referred to the limitation of the charging architecture updating method hereinabove, and will not be repeated here.
In an exemplary embodiment, as shown in fig. 7A, there is provided a block diagram of a charging architecture updating device, including:
the obtaining module 701 is configured to obtain, in a first preset duration, scene information of each charging scene in an initial charging architecture, where the initial charging architecture includes a plurality of charging paths, and each charging path corresponds to one charging scene;
and the updating module 702 is configured to update the charging paths in the initial charging architecture based on the scene information of each charging scene, so as to obtain a target charging architecture.
In one embodiment, the scenario information includes an occupation time of each charging scenario, and the updating module 702 is specifically configured to: updating the charging path in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture, including:
determining a usage time duty ratio of each charging scene based on the occupation time of each charging scene, and/or a probability of simultaneous usage of each charging scene;
and updating a charging path in the initial charging architecture based on the usage time duty ratio of each charging scene and/or the probability of simultaneous usage of each charging scene so as to obtain a target charging architecture.
In one embodiment, the update module 702 is specifically configured to: updating the charging path in the initial charging architecture based on the probability of simultaneous use of the charging scenes to obtain a target charging architecture, including:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, configuring a common charging chip for a first charging path and a second charging path in the initial charging architecture so as to obtain the target charging architecture;
the first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
In one embodiment, the update module 702 is specifically configured to: the updating the charging path in the initial charging architecture based on the usage time duty ratio of each charging scenario and the probability of simultaneous usage of each charging scenario to obtain a target charging architecture includes:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, and the usage time duty ratio of the second charging scene is smaller than the usage time duty ratio of the first charging scene, the following updating operation is executed on the initial charging architecture:
Removing the charging chip in the second charging path, and configuring the charging chip of the first charging path as a common charging chip of the first charging path and the second charging path to obtain the target charging architecture;
the first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
In one embodiment, the scene information includes: maximum battery current for each charging scenario;
the update module 702 is specifically configured to: updating the charging path in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture, including:
if the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is smaller than a preset value, the current of the charging chip in the target charging path is adjusted so that the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is larger than or equal to the preset value;
the target charging path is a charging path corresponding to the target charging scene.
In one embodiment, the obtaining module 701 is specifically configured to: the obtaining the occupation time of each charging scene in the initial charging architecture within the first preset duration includes:
detecting battery current corresponding to each charging scene once every time period;
for the target charging scenario, in the event that the current detected battery current is greater than the historically saved battery maximum current, the battery current is recorded as a new battery maximum current.
In one embodiment, the first preset duration includes at least one time period, and the scene information is acquired once in each time period;
the obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration includes:
if the value of a first indicating bit corresponding to a first charging scene is a first preset value in the current time period, determining to acquire scene information of the first charging scene;
the first preset value is used for indicating that the first charging scene exists.
In one embodiment, the scenario information includes an occupation time of each charging scenario, and the obtaining module 701 is specifically configured to: if the value of the first indicator bit corresponding to the first charging scene is a first preset value in the current time period, determining to acquire scene information of the first charging scene includes:
If the value of the first indicating bit in the current time period is a first preset value and the value of the first indicating bit in the previous time period is also the first preset value, determining that the occupied time of the first charging scene is the accumulated time of the previous time period and the current time period;
if the value of the first indicating bit is a first preset value and the value of the first indicating bit in the previous time period is a second preset value, determining that the occupied time of the first charging scene is the occupied time of the current time period;
the second preset value is used for indicating that the first charging scene does not exist.
In one embodiment, on the basis of fig. 7A, as shown in fig. 7B, a second structural block diagram of the charging architecture updating device, where the device further includes: the display module 703 is configured to, after obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration, further include:
and displaying the scene information in a billboard form, or displaying the result of classifying statistics based on the scene information in a billboard form.
The respective modules in the charging architecture updating apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, or a terminal, the internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a charging architecture update method.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one exemplary embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, wherein the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene;
and updating the charging paths in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture.
In one embodiment, the scenario information includes an occupation time of each charging scenario, and updating a charging path in the initial charging architecture based on the scenario information of each charging scenario to obtain a target charging architecture includes:
determining a usage time duty ratio of each charging scene based on the occupation time of each charging scene, and/or a probability of simultaneous usage of each charging scene;
and updating a charging path in the initial charging architecture based on the usage time duty ratio of each charging scene and/or the probability of simultaneous usage of each charging scene so as to obtain a target charging architecture.
In one embodiment, the updating the charging path in the initial charging architecture based on the probability of simultaneous usage of the charging scenes to obtain a target charging architecture includes:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, configuring a common charging chip for a first charging path and a second charging path in the initial charging architecture so as to obtain the target charging architecture;
the first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
In one embodiment, the updating the charging path in the initial charging architecture based on the usage time duty ratio of each charging scenario and the probability of simultaneous usage of each charging scenario to obtain a target charging architecture includes:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, and the usage time duty ratio of the second charging scene is smaller than the usage time duty ratio of the first charging scene, the following updating operation is executed on the initial charging architecture:
Removing the charging chip in the second charging path, and configuring the charging chip of the first charging path as a common charging chip of the first charging path and the second charging path to obtain the target charging architecture;
the first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
In one embodiment, the scene information further includes: maximum battery current for each charging scenario;
updating the charging path in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture, including:
if the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is smaller than a preset value, the current of the charging chip in the target charging path is adjusted so that the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is larger than or equal to the preset value;
the target charging path is a charging path corresponding to the target charging scene.
In one embodiment, the acquiring the occupation time of each charging scene in the initial charging architecture within the first preset duration includes:
Detecting battery current corresponding to each charging scene once every time period;
for the target charging scenario, in the event that the current detected battery current is greater than the historically saved battery maximum current, the battery current is recorded as a new battery maximum current.
In one embodiment, the first preset duration includes at least one time period, and the scene information is acquired once in each time period;
the obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration includes:
if the value of a first indicating bit corresponding to a first charging scene is a first preset value in the current time period, determining to acquire scene information of the first charging scene;
the first preset value is used for indicating that the first charging scene exists.
In one embodiment, the scene information includes an occupied time of each charging scene, and if a value of a first indicator bit corresponding to a first charging scene in a current time period is a first preset value, determining to acquire the scene information of the first charging scene includes:
if the value of the first indicating bit in the current time period is a first preset value and the value of the first indicating bit in the previous time period is also the first preset value, determining that the occupied time of the first charging scene is the accumulated time of the previous time period and the current time period;
If the value of the first indicating bit is a first preset value and the value of the first indicating bit in the previous time period is a second preset value, determining that the occupied time of the first charging scene is the occupied time of the current time period;
the second preset value is used for indicating that the first charging scene does not exist.
In one embodiment, after obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration, the method further includes:
and displaying the scene information in a billboard form, or displaying the result of classifying statistics based on the scene information in a billboard form.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, wherein the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene;
and updating the charging paths in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture.
In one embodiment, the scenario information includes an occupation time of each charging scenario, and updating a charging path in the initial charging architecture based on the scenario information of each charging scenario to obtain a target charging architecture includes:
determining a usage time duty ratio of each charging scene based on the occupation time of each charging scene, and/or a probability of simultaneous usage of each charging scene;
and updating a charging path in the initial charging architecture based on the usage time duty ratio of each charging scene and/or the probability of simultaneous usage of each charging scene so as to obtain a target charging architecture.
In one embodiment, the updating the charging path in the initial charging architecture based on the probability of simultaneous usage of the charging scenes to obtain a target charging architecture includes:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, configuring a common charging chip for a first charging path and a second charging path in the initial charging architecture so as to obtain the target charging architecture;
The first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
In one embodiment, the updating the charging path in the initial charging architecture based on the usage time duty ratio of each charging scenario and the probability of simultaneous usage of each charging scenario to obtain a target charging architecture includes:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, and the usage time duty ratio of the second charging scene is smaller than the usage time duty ratio of the first charging scene, the following updating operation is executed on the initial charging architecture:
removing the charging chip in the second charging path, and configuring the charging chip of the first charging path as a common charging chip of the first charging path and the second charging path to obtain the target charging architecture;
the first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
In one embodiment, the scene information further includes: maximum battery current for each charging scenario;
updating the charging path in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture, including:
if the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is smaller than a preset value, the current of the charging chip in the target charging path is adjusted so that the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is larger than or equal to the preset value;
the target charging path is a charging path corresponding to the target charging scene.
In one embodiment, the acquiring the occupation time of each charging scene in the initial charging architecture within the first preset duration includes:
detecting battery current corresponding to each charging scene once every time period;
for the target charging scenario, in the event that the current detected battery current is greater than the historically saved battery maximum current, the battery current is recorded as a new battery maximum current.
In one embodiment, the first preset duration includes at least one time period, and the scene information is acquired once in each time period;
the obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration includes:
if the value of a first indicating bit corresponding to a first charging scene is a first preset value in the current time period, determining to acquire scene information of the first charging scene;
the first preset value is used for indicating that the first charging scene exists.
In one embodiment, the scene information includes an occupied time of each charging scene, and if a value of a first indicator bit corresponding to a first charging scene in a current time period is a first preset value, determining to acquire the scene information of the first charging scene includes:
if the value of the first indicating bit in the current time period is a first preset value and the value of the first indicating bit in the previous time period is also the first preset value, determining that the occupied time of the first charging scene is the accumulated time of the previous time period and the current time period;
If the value of the first indicating bit is a first preset value and the value of the first indicating bit in the previous time period is a second preset value, determining that the occupied time of the first charging scene is the occupied time of the current time period;
the second preset value is used for indicating that the first charging scene does not exist.
In one embodiment, after obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration, the method further includes:
and displaying the scene information in a billboard form, or displaying the result of classifying statistics based on the scene information in a billboard form.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, wherein the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene;
and updating the charging paths in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture.
In one embodiment, the scenario information includes an occupation time of each charging scenario, and updating a charging path in the initial charging architecture based on the scenario information of each charging scenario to obtain a target charging architecture includes:
determining a usage time duty ratio of each charging scene based on the occupation time of each charging scene, and/or a probability of simultaneous usage of each charging scene;
and updating a charging path in the initial charging architecture based on the usage time duty ratio of each charging scene and/or the probability of simultaneous usage of each charging scene so as to obtain a target charging architecture.
In one embodiment, the updating the charging path in the initial charging architecture based on the probability of simultaneous usage of the charging scenes to obtain a target charging architecture includes:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, configuring a common charging chip for a first charging path and a second charging path in the initial charging architecture so as to obtain the target charging architecture;
The first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
In one embodiment, the updating the charging path in the initial charging architecture based on the usage time duty ratio of each charging scenario and the probability of simultaneous usage of each charging scenario to obtain a target charging architecture includes:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, and the usage time duty ratio of the second charging scene is smaller than the usage time duty ratio of the first charging scene, the following updating operation is executed on the initial charging architecture:
removing the charging chip in the second charging path, and configuring the charging chip of the first charging path as a common charging chip of the first charging path and the second charging path to obtain the target charging architecture;
the first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
In one embodiment, the scene information further includes: maximum battery current for each charging scenario;
updating the charging path in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture, including:
if the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is smaller than a preset value, the current of the charging chip in the target charging path is adjusted so that the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is larger than or equal to the preset value;
the target charging path is a charging path corresponding to the target charging scene.
In one embodiment, the acquiring the occupation time of each charging scene in the initial charging architecture within the first preset duration includes:
detecting battery current corresponding to each charging scene once every time period;
for the target charging scenario, in the event that the current detected battery current is greater than the historically saved battery maximum current, the battery current is recorded as a new battery maximum current.
In one embodiment, the first preset duration includes at least one time period, and the scene information is acquired once in each time period;
the obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration includes:
if the value of a first indicating bit corresponding to a first charging scene is a first preset value in the current time period, determining to acquire scene information of the first charging scene;
the first preset value is used for indicating that the first charging scene exists.
In one embodiment, the scene information includes an occupied time of each charging scene, and if a value of a first indicator bit corresponding to a first charging scene in a current time period is a first preset value, determining to acquire the scene information of the first charging scene includes:
if the value of the first indicating bit in the current time period is a first preset value and the value of the first indicating bit in the previous time period is also the first preset value, determining that the occupied time of the first charging scene is the accumulated time of the previous time period and the current time period;
If the value of the first indicating bit is a first preset value and the value of the first indicating bit in the previous time period is a second preset value, determining that the occupied time of the first charging scene is the occupied time of the current time period;
the second preset value is used for indicating that the first charging scene does not exist.
In one embodiment, after obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration, the method further includes:
and displaying the scene information in a billboard form, or displaying the result of classifying statistics based on the scene information in a billboard form.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use, and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (13)

1. A method of updating a charging architecture, the method comprising:
acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, wherein the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene;
and updating the charging paths in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture.
2. The method of claim 1, the context information comprising occupancy times of respective charging contexts, the updating charging paths in the initial charging architecture based on the context information of the respective charging contexts to obtain a target charging architecture comprising:
determining a usage time duty ratio of each charging scene based on the occupation time of each charging scene, and/or a probability of simultaneous usage of each charging scene;
and updating a charging path in the initial charging architecture based on the usage time duty ratio of each charging scene and/or the probability of simultaneous usage of each charging scene so as to obtain a target charging architecture.
3. The method of claim 2, wherein updating the charging path in the initial charging architecture based on the probability of simultaneous use of the respective charging scenarios to obtain a target charging architecture comprises:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, configuring a common charging chip for a first charging path and a second charging path in the initial charging architecture so as to obtain the target charging architecture;
The first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
4. The method of claim 2, wherein updating the charging path in the initial charging architecture to obtain a target charging architecture based on the usage time duty cycle of each charging scenario and the probability of each charging scenario being used simultaneously, comprises:
if the probability of using the first charging scene and the second charging scene simultaneously is smaller than the preset probability, and the usage time duty ratio of the second charging scene is smaller than the usage time duty ratio of the first charging scene, the following updating operation is executed on the initial charging architecture:
removing the charging chip in the second charging path, and configuring the charging chip of the first charging path as a common charging chip of the first charging path and the second charging path to obtain the target charging architecture;
the first charging path is a charging path corresponding to the first charging scene, and the second charging path is a charging path corresponding to the second charging scene.
5. The method according to any one of claims 1 to 4, wherein the scene information includes: maximum battery current for each charging scenario;
updating the charging path in the initial charging architecture based on the scene information of each charging scene to obtain a target charging architecture, including:
if the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is smaller than a preset value, the current of the charging chip in the target charging path is adjusted so that the difference value between the maximum current of the battery and the allowable charge and discharge current in the target charging scene is larger than or equal to the preset value;
the target charging path is a charging path corresponding to the target charging scene.
6. The method of claim 5, wherein the obtaining the occupation time of each charging scenario in the initial charging architecture within the first preset duration comprises:
detecting battery current corresponding to each charging scene once every time period;
for the target charging scenario, in the event that the current detected battery current is greater than the historically saved battery maximum current, the battery current is recorded as a new battery maximum current.
7. The method according to any one of claims 1 to 4, comprising at least one time period within the first preset duration, the scene information being acquired once within each time period;
the obtaining the scene information of each charging scene in the initial charging architecture within the first preset duration includes:
if the value of a first indicating bit corresponding to a first charging scene is a first preset value in the current time period, determining to acquire scene information of the first charging scene;
the first preset value is used for indicating that the first charging scene exists.
8. The method of claim 7, wherein the scene information includes an occupied time of each charging scene, and determining to acquire the scene information of the first charging scene if the value of the first indicator bit corresponding to the first charging scene is a first preset value in the current time period includes:
if the value of the first indicating bit in the current time period is a first preset value and the value of the first indicating bit in the previous time period is also the first preset value, determining that the occupied time of the first charging scene is the accumulated time of the previous time period and the current time period;
If the value of the first indicating bit is a first preset value and the value of the first indicating bit in the previous time period is a second preset value, determining that the occupied time of the first charging scene is the occupied time of the current time period;
the second preset value is used for indicating that the first charging scene does not exist.
9. The method according to any one of claims 1 to 4, wherein after obtaining the scene information of each charging scene in the initial charging architecture within the first preset time period, the method further comprises:
and displaying the scene information in a billboard form, or displaying the result of classifying statistics based on the scene information in a billboard form.
10. A charging architecture updating device, the device comprising:
the device comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring scene information of each charging scene in an initial charging architecture within a first preset duration, the initial charging architecture comprises a plurality of charging paths, and each charging path corresponds to one charging scene;
and the updating module is used for updating the charging paths in the initial charging framework based on the scene information of each charging scene so as to obtain a target charging framework.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 9 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 9.
13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 9.
CN202311468813.9A 2023-11-06 2023-11-06 Charging architecture updating method and device, computer equipment and storage medium Pending CN117650599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311468813.9A CN117650599A (en) 2023-11-06 2023-11-06 Charging architecture updating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311468813.9A CN117650599A (en) 2023-11-06 2023-11-06 Charging architecture updating method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117650599A true CN117650599A (en) 2024-03-05

Family

ID=90044187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311468813.9A Pending CN117650599A (en) 2023-11-06 2023-11-06 Charging architecture updating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117650599A (en)

Similar Documents

Publication Publication Date Title
US9853476B2 (en) Electronic device and battery charge/discharge control method thereof
US9831701B2 (en) Monitoring a battery in a portable electronic device
US11682908B2 (en) Mechanism for extending cycle life of a battery
CN104659881A (en) Charging method and device for mobile terminal
CN115765119A (en) Charging management method of energy storage power supply, energy storage power supply and storage medium
CN112672405B (en) Power consumption calculation method, device, storage medium, electronic equipment and server
CN106786959B (en) Charge control method, device and terminal
CN117650599A (en) Charging architecture updating method and device, computer equipment and storage medium
US20200067327A1 (en) Systems and methods for reuse of battery pack-side current and voltage sensing
US20230231405A1 (en) Charging method, electronic apparatus, and storage medium
CN116908701A (en) Battery capacity calibration method, device and equipment
US11592888B2 (en) Highly configurable power-delivery management policy
CN111049219A (en) Charging method and charging equipment
CN113420171B (en) Image management method, device and storage medium
CN112347745B (en) Method and device for acquiring file generation progress, electronic device and storage medium
CN117996887A (en) Battery system equalization method, apparatus, device, storage medium, and program product
US20230238821A1 (en) Charging method, electronic apparatus, and storage medium
US20240126353A1 (en) Current Measurement for Power Converter Circuits
CN116661683B (en) Wear balance management method, system, equipment and medium for flash memory
CN110943502B (en) Charging method, split terminal and computer storage medium
CN114325392A (en) Electric quantity display method and device, storage medium and electronic equipment
CN117806673A (en) Controller upgrading method and device, vehicle-mounted terminal and vehicle
WO2017185215A1 (en) Method and device for supplying power to multiple devices
CN117783880A (en) Capacity calibration method and device of battery module and computer equipment
CN117977747A (en) Charging method and device and mobile terminal

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