CHARGING AN EXTERNAL BATTERY USING AN ON-BOARD GENERATOR

The system uses an on-board generator in a series hybrid vehicle to charge external batteries directly, addressing the limitations of traditional charging methods by enabling efficient Stage 3 DC fast charging and providing power to electric vehicles in remote areas.

DE102025148291A1Pending Publication Date: 2026-06-18GM GLOBAL TECHNOLOGY OPERATIONS LLC

Patent Information

Authority / Receiving Office
DE · DE
Patent Type
Applications
Current Assignee / Owner
GM GLOBAL TECHNOLOGY OPERATIONS LLC
Filing Date
2025-11-21
Publication Date
2026-06-18

AI Technical Summary

Technical Problem

Existing solutions for providing power to devices like electric vehicles in remote areas are costly, impractical, and limited to Stage 1 or Stage 2 charging, while there is a need for efficient Stage 3 DC fast charging using a mobile power source.

Method used

A system and method for charging an external battery using an on-board generator in a series hybrid vehicle, which includes a generator, charging port, and internal battery, with a controller to adapt voltage based on the external battery's state of charge, enabling direct DC fast charging without charging the internal battery.

Benefits of technology

Enables efficient and direct Stage 3 DC fast charging of external batteries, providing large amounts of power without the costs and inefficiencies of traditional solutions, allowing the series hybrid vehicle to support electric vehicles in distress.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Devices, methods, and non-transient machine-readable storage media for providing power to an external device using an on-board generator of an integrated system, without providing power to an internal battery, are disclosed. According to some embodiments, the integrated system can be a series hybrid vehicle and can be used to provide power to an electric vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

AREA

[0001] The present disclosure relates generally to the provision of power from an on-board generator of an integrated system. More specifically, embodiments of the present disclosure relate to the charging of an external battery using an on-board generator in a series hybrid vehicle without charging an internal battery. BACKGROUND

[0002] There is a constantly increasing need to supply electrical charge to provide power to a variety of devices. If there are no readily available power sources to supply power to a device, obtaining power can be costly and inefficient. For example, such a device requiring power might be a rechargeable battery. The battery might be, for instance, part of an electric vehicle or a plug-in hybrid vehicle, whose energy may run out in remote areas where there are no readily available power sources. According to some embodiments, the devices requiring power may be stationary or difficult to transport to an available power source. In such cases, it is advantageous to have a mobile power source capable of supplying a large amount of power.According to some embodiments, it may be advantageous to have a transportable device such as a series hybrid vehicle that is capable of providing Stage 3 fast charging directly for an electric vehicle using an on-board generator of the device.

[0003] Previous solutions might involve loading a gasoline- or diesel-powered generator into a vehicle and transporting it to the charging location. However, these solutions are costly, impractical, and time-consuming, and are only capable of delivering limited amounts of power. Furthermore, such cases provide AC power, enabling Stage 1 or Stage 2 charging of an electric vehicle. Stage 3 charging, also known as DC fast charging, delivers DC power instead of AC power, allowing for significantly faster charging.

[0004] The present disclosure relates to a robust device, a robust system and a robust method for delivering large amounts of power while avoiding the costs, complexity, weight, form factor, time concerns and safety concerns associated with previous solutions. SUMMARY

[0005] Certain devices, systems, and methods for providing power to external equipment from a mobile system are described herein. According to some embodiments of the present disclosure, a device configured to provide power to an external battery is provided. A device may include a generator, a charging port, and an internal battery. A device may be configured to determine whether the charging port is connected to an external battery and, if so, to determine the state of charge of the external battery, to adapt a first voltage generated by the generator to a second voltage of the external battery based on the state of charge of the external battery, and to charge the battery via the charging port and using the generator.

[0006] According to some embodiments of the present disclosure, a method for charging an external battery is provided. One method comprises connecting an external battery to a charging port, the charging port being associated with an internal battery and a generator. One method comprises determining the state of charge of the external battery based on a determination that the charging port is connected to the external battery, using a processor and a non-transient, machine-readable storage medium encoded with program code (e.g., software, firmware, combinations thereof, etc.) executable by the processor; matching a first voltage generated by the generator to a second voltage of the external battery based on the determined state of charge of the external battery; and charging the external battery using the generator.

[0007] According to some embodiments, a non-transitory, machine-readable storage medium is provided, encoded with program code executable by a processor of a device, wherein the program code executable by the processor is configured to determine whether a charging port of the device is connected to an external battery, and if so, to determine a state of charge of the external battery; based on the determined state of charge of the external battery, to adapt a first voltage generated by the generator of the device to a second voltage of the external battery; and to charge the external battery via the charging port and using the generator.

[0008] Accompanying advantages of at least some of the disclosed concepts include a novel method for providing large amounts of power from a portable device. Disclosed embodiments could, for example, allow a series hybrid vehicle to travel to a location where an electric vehicle is in distress and provide the electric vehicle with large amounts of DC power using an onboard generator, without charging an internal battery of the series hybrid vehicle. While previous solutions may enable Stage 1 or Stage 2 charging using a separate, portable AC generator, some embodiments of the disclosed invention may enable Stage 3 DC fast charging directly from an onboard generator of a series hybrid vehicle using a charging port of the series hybrid vehicle. BRIEF DESCRIPTION OF THE DRAWINGS Fig. Figure 1A is a simplified exemplary schematic diagram of an embodiment of the present disclosure. Fig. Figure 1B is a simplified exemplary schematic diagram of an embodiment of the present disclosure. Fig. 2 is a flowchart that presents an exemplary method for providing power from an on-board generator of a system to an external battery or device without charging an internal on-board battery according to an embodiment of the present disclosure. Fig. 3 is a flowchart that presents another exemplary method for providing power from an on-board generator of a system to an external battery or device without charging an internal on-board battery according to an embodiment of the present disclosure.

[0009] The present disclosure permits various modifications and alternative forms, some representative embodiments of which are shown by way of example in the drawings and are described in detail here. However, it is understood that the new aspects of this disclosure are not limited to the specific forms shown in the drawings listed above. Rather, this disclosure encompasses all modifications, correspondences, combinations, substitutions, groupings, and alternatives that fall within the scope of protection of this disclosure, as contained, for example, in the attached claims. DETAILED DESCRIPTION

[0010] This disclosure can be embodied in many different forms. Exemplary embodiments are shown in the drawings and are described in detail here, whereby it is understood that these embodiments are given as an explanation of the disclosed principles, not as limitations of the comprehensive aspects of the disclosure. To this extent, elements and limitations that are described, for example, in the sections Summary, Introduction, Abstract, and Detailed Description, but are not explicitly set forth in the claims, are not to be incorporated into the claims, individually or collectively, by implication, inference, or otherwise. Furthermore, the indication of "first," "second," "third," etc., is to be avoided.The terms "battery" are not used in the description or in the claims to establish a successive or numerical limitation; rather, these terms may be used to facilitate reference to specific features in the description and in the drawings and to distinguish between similar elements in the claims. Unless explicitly limited otherwise, the term "battery" may refer to any suitable rechargeable energy storage system. Furthermore, the term "generator" may refer to a generator set or generator set and may include additional components therein, such as a power engine and a generator.

[0011] Unless specifically omitted, the following applies to the present detailed description: The singular contains the plural and vice versa; the words "and" and "or" are to be used both subjunctive and disjunctive; the words "any" and "all" are to both mean "any"; and the words "containing", "encompassing", "showing", and the like are to each mean "containing without restriction".

[0012] Now in Fig. Figure 1A shows a schematic diagram of a device 100 according to an embodiment of the present disclosure. According to some embodiments, the device 100 can be a motor vehicle such as a series hybrid vehicle. As in Fig. As shown in Figure 1A, the device 100 can include a generator 102, an internal battery 106 and a charging port 104.

[0013] According to some embodiments, the device 100 includes a master controller 150, which comprises a processor and a non-transient, computer-readable medium that stores program code executable by the processor to perform various steps, which are described in detail below. According to some embodiments, the master controller 150 can operate instead of, or in conjunction with, the generator control module 122, the internal battery control module 120, the charging port control module 105, and the control feedback module 118.According to some embodiments, one or more of the generator control module 122, the internal battery control module 120, the charging port control module 105, and the control feedback module 118 may include a processor and a non-transitory computer-readable medium that stores program code executable by the processor to perform one or more of the various steps described below.

[0014] According to some embodiments, the generator 102 can be configured to output direct current (DC). According to various embodiments, the generator 102 can further be configured to provide power to the internal battery 106 or to other high-voltage modules. According to some embodiments, the generator 102 can include a power unit that can run on, but is not limited to, fuel such as gasoline or diesel. According to some embodiments, the generator 102 can be configured to generate direct current (DC). As in Fig. As shown in Figure 1A, the generator 102 can include a generator control module 122, which, according to certain embodiments, comprises a processor and a non-transient, computer-readable medium that stores program code executable by the processor to perform various steps. According to some embodiments, the generator control module 122 can be configured to receive control instructions (e.g., from the master controller 150) and / or to generate control instructions that may be based on received signals. According to some embodiments, the generator control module 122 can be configured to execute instructions, including those for starting, stopping, or adjusting the generator 102.According to some embodiments, the generator control module 122 can comprise a processor and a non-transient, computer-readable medium that stores program code executable by the processor to perform various steps, including, but not limited to, starting the generator, stopping the generator, and / or adjusting the generator's output voltage. According to some embodiments, the generator 102 can further be configured to output a high voltage, such as voltages greater than or equal to 60 V DC. According to some embodiments, the generator 102 can, for example, be configured to generate 80 kW DC. According to some embodiments, the generator 102 can be configured to generate 160 kW DC, 240 kW DC, 360 kW DC, 480 kW DC, 1 MW DC, or any suitable amount of generating power. According to some (in . . Fig. In embodiments 1A (not shown), one or more additional generators may be configured in the device 100.

[0015] The internal battery 106 can be any suitable energy storage device. For example, according to some embodiments, the internal battery 106 can be a rechargeable lithium-ion battery. According to some embodiments, the internal battery 106 can be, for example, a solid-state battery or a supercapacitor. According to some embodiments, the internal battery 106 can comprise several smaller batteries coupled together, as is known in the field. As in Fig. As shown in Figure 1A, the internal battery 106 is, according to some embodiments, part of the device 100 and can be configured to provide power to various components of the device 100. According to some embodiments, the internal battery 106 can also be configured to receive power from the generator 102 or to receive power from an external power source 114 via the charging port 104. According to some embodiments, the internal battery 106 can be configured to be selectively connected to or disconnected from any component in the device 100 (such as the generator 102 or the charging port 104) using suitable means. For example, according to some embodiments, the internal battery 100 can be selectively electrically connected to or disconnected via a module 120 for controlling the internal battery.

[0016] According to some embodiments, the module 120 for controlling the internal battery may include a processor and a non-transient, computer-readable medium that stores program code executable by the processor to perform various steps, including, but not limited to, monitoring the internal battery 106, performing operations for maintaining the internal battery 106 (e.g., regulating the battery temperature), monitoring the battery's functional state, monitoring the battery's state of charge, and reporting the battery's operating status to other controllers. According to some embodiments, the module 120 for controlling the internal battery may report the battery's operating status to, for example, the master controller 150 and / or the generator control module 122. According to some embodiments, the module 120 for controlling the internal battery may be configured, for example,to receive control instructions from the master controller 150, the generator control module 122, and / or the charging port 104. According to some embodiments, the module 120 can be configured to control the internal battery, generate control instructions, and send them to the master controller 150, the generator control module 122, and / or the charging port 104. According to some embodiments, the module 120 can be configured to control the internal battery, communicate with other systems such as a charging station 114 or an external battery 116, and provide information about the internal battery 106, such as its state of charge or charge limits, and any other functions suitable for performance by a battery control module. According to some embodiments, the module 120 can connect or disconnect the internal battery 106. Additionally or alternatively, the device 100 can be configured to...B. at some point in the system there are contactors (e.g., contactors 136 and 138 of the internal battery) that can open or close to control the current flow through the system, or it can use any other suitable solution to stop the current flow. According to some (in . Fig. In embodiments 1A (not shown), there may be (in addition to the internal battery 106) one or more additional internal batteries configured in the device.

[0017] As in the Fig. As shown in the embodiment shown in Figure 1A, the device 100 can also include a charging port 104. According to some embodiments, the charging port 104 can be switchable and connected to the internal battery 106 and / or to the generator 102. According to some embodiments, the charging port 104 is configured to accept a charging cable 128 and can connect to an external battery 116 via the charging cable 128. According to some embodiments, the charging port 104 can be configured to accept a charging cable 130 and can connect to an external power source 114 via the charging cable 130.According to some embodiments, the charging port 104 may include a charging port control module 105, which comprises a processor and a non-transient, computer-readable medium that stores program code executable by the processor to perform various steps, including, but not limited to, determining an internal resistance value of the charging cable (such as charging cable 128 or 130). According to some embodiments, the device 100 may include multiple charging ports, which may include a first charging port configured to receive charge from an external power source and a second charging port configured to supply power to an external battery.

[0018] The external battery 116 can be any suitable energy storage device. According to some embodiments, the external battery 116 can be a rechargeable lithium-ion battery. According to some embodiments, the external battery 116 can be, for example, a solid-state battery or a supercapacitor. According to some embodiments, the internal battery 106 can comprise several smaller batteries coupled together, as is known in the field. According to some embodiments, the external battery 116 can be configured to receive power from the device 100 of the present embodiment. According to some embodiments, the external battery 116 can be a component of or for an electric vehicle, a plug-in hybrid vehicle, or any other device or facility that requires power.According to some embodiments, the external battery 116 can be equipped with a module for controlling the external battery (in . Fig. 1A not shown) configured to include a processor and a non-transitory computer-readable medium that stores program code executable by the processor.

[0019] According to some embodiments, the external battery 116 can be configured to communicate using certain specified protocols, such as a standard powerline communication protocol. The use of such a communication protocol can enable the external battery 116 to communicate with the device 100 to share information such as the state of charge of the external battery 116 or any charge limits associated with the external battery 116. According to some embodiments, a module for controlling the external battery (in Fig. 1A (not shown) may be configured to receive control instructions (e.g., from the master controller 150) or to generate control instructions, or it may connect or disconnect the external battery 116. According to some embodiments, a module for controlling the external battery (not shown) may be configured to communicate with other systems, such as those in the device 100, and may provide information about the external battery 116, such as its state of charge or charge limits, and any other functions typically performed by a battery control module.

[0020] According to some embodiments, a device such as device 100 can consist of Fig. 1B for a variety of facilities that require performance (e.g., for facilities 142 from Fig. 1B), provide power. According to some embodiments, the devices 142 may not be configured to store energy. According to certain embodiments, the devices 142 could consist of Fig. 1B e.g. tools, household appliances, a household (such as household 144 from Fig. 1B) or any suitable device requiring power. According to certain embodiments, an adapter (e.g., the 140 adapter from Fig. 1B) as part of a device (e.g., the device 100) or as a separate component (configured, e.g., to be coupled to the charging port 104 using a charging cable 140). According to some embodiments, an adapter (e.g., the adapter 140) converts power from DC to AC. According to some embodiments, an adapter (e.g., the adapter 140) contains Fig. 1B) a step-up or step-down voltage converter.

[0021] Further based on Fig. 1A According to some embodiments, the device 100 can be connected to the external battery 116 using a charging cable 128 having a unique internal resistance value. According to some embodiments, the charging cable 128 is configured with a unique internal resistance value. According to some embodiments, the charging port control module 105 determines the resistance value of the charging cable connected to the charging port 104 (e.g., charging cable 128 or 130). According to some embodiments, a determination of a unique resistance value of the charging cable 128 indicates that an external battery 116 is connected to the charging port 104. According to some embodiments, the charging port control module 105 can, based on a determination of a unique resistance value, communicate with the master controller 150 and / or with any of the other control modules in the system (e.g.,to the module 120 for controlling the internal battery, to the generator control module 122, etc.) a signal indicating that the device 100 is connected to an external battery (e.g., to the external battery 116) and / or that the device 100 is not connected to an external power source (e.g., the external power source 114).

[0022] As in Fig. As shown in Figure 1A, an external power source 114, according to some embodiments, is any suitable device or system configured to provide power to the device 100. According to some embodiments, the external power source 114 is, for example, a mains-connected charger.

[0023] According to some embodiments, the high-voltage distribution module 108 is based on Fig. 1A is designed to control the supply of power to various systems and components of the device 100 (e.g., to the internal battery 106, to the generator 102, to the charging port 104, etc.). According to some embodiments, the high-voltage distribution module 108, as shown in Fig. Figure 1A shows pre-charging contactors 110 and main contactors 112. According to some embodiments, the pre-charging contactors 110 and the main contactors 112 can be configured to connect the generator 102 to the charging terminal 104 via a switchable connection. According to some embodiments, the pre-charging contactors 110 and the main contactors 112 are configured to operate at high voltages (e.g., voltages greater than or equal to 60 V DC). According to some embodiments, the pre-charging contactors 110 and the main contactors 112 are in an open position, as shown in the embodiment illustrated. Fig. 1A is shown in which no current flows between the generator 102 and the charging port 104, or in a closed position (not shown) or configured in a combination of an open and a closed position (not shown). According to some embodiments, the high-voltage distribution module 108 comprises a processor and a non-transient, computer-readable medium that stores program code executable by the processor to perform various steps, including, but not limited to, opening and closing the pre-charging contactors 110 and / or the main contactors 112, generating signals indicating the state of the pre-charging contactors 110 and / or the main contactors 112, receiving signals from certain controllers / control modules in the device 100 (e.g., from the master controller 150, from the module 120 for controlling the internal battery, from the generator control module 122, and / or from the charging terminal module 105), etc.According to various embodiments, the pre-charging contactors 110 can be closed before the main contactors 112 are closed to allow electric current to flow in a controlled manner until the voltages at one source voltage and a second voltage are comparable, whereupon the main contactors 112 can also be closed, with the current flowing freely at this point to prevent damage to the system or its components.

[0024] According to some embodiments, the high-voltage distribution module 108 comprises high-voltage busbars (e.g., busbars capable of handling voltages greater than or equal to 60 V DC). According to some embodiments, the high-voltage distribution module 108 can be configured with a control feedback module 118. According to some embodiments, the control feedback module 118 comprises a processor and a non-transient, computer-readable medium that stores program code executable by the processor to perform various steps, including, but not limited to, monitoring currents and / or voltages across the main contactors 112 and the pre-charge contactors 110, and generating signals indicating the voltages and / or currents across the main contactors 112 and the pre-charge contactors 110 to transmit them to one or more of the controller / control modules of the device 100 (e.g.,to send to the master controller 150, to the module 120 for controlling the internal battery, to the generator control module 122, to the charging port module 105, etc. According to some embodiments, the high-voltage distribution module 108 can receive signals from one or more other controllers / control modules of the device 100 (e.g., from the master controller 150, from the module 120 for controlling the internal battery, from the generator control module 122, from the control feedback module 118, from the charging port module 105, etc.) indicating when the pre-charge contactors 110 and / or the main contactors 112 should be opened or closed.

[0025] According to some embodiments, the device can be 100, as in Fig. Figure 1A shows a separation module 132 and a mass 134.

[0026] According to some embodiments, the device can be 100, as in Fig. Figure 1A shows one or more high-voltage modules 124. The high-voltage modules 124 can contain a variety of components configured to operate using high voltage, including, but not limited to, electric motors.

[0027] Although this in Fig. Not shown in Figure 1A, various embodiments of the device may include additional features such as a second generator, a second internal battery, a second charging port and / or additional modules that may require power, such as electric motors, instruments, computers, etc., and necessary corresponding control modules and software for operation as described here.

[0028] According to some embodiments, the master controller 150 comprises a processor and a non-transitory computer-readable medium that stores program code executable by the processor to perform various steps, including, but not limited to, one or more steps as described in some embodiments, as performed by the generator control module 122, the internal battery control module 120, the charging port control module 105 and / or the control feedback module 118.

[0029] Now, based on the schedule from Fig. 2 According to some embodiments, an exemplary flowchart for carrying out a method for providing charge to an external battery (e.g. the external battery 116) from an on-board generator such as the generator 102 of the device 100 is shown. Fig. 1A provided. One or all of the operations that are in Fig. The operations shown in Figure 2 and described in more detail below can correspond to non-transitory, processor-executable instructions that are stored, for example, in memory and executed, for example, by an electronic controller, a processing unit, a dedicated control module, a logic circuit, or another module or device, or a network of modules / devices, to perform any of the functions described above and below that are associated with the disclosed concepts. It should be understood that the order of execution of the illustrated operation blocks can be changed, that additional operation blocks can be added, and that some of the operations described here can be modified, combined, or removed.

[0030] The exemplary procedure from Fig. 2 begins in block 200 with the connection of a charging cable (e.g. the charging cable 128 of the device 100) to a device such as the charging port 104 of the device 100. Fig. 1A is connected. Moving on to block 202, there is a provision that a generator of a device (e.g., the generator 106 of the device 100) for external vehicle charging, such as for charging the external battery 106, is to be used. Fig. 1A is used. This setting 202 can be made in a variety of ways, including, but not limited to, a manual input (such as by an operator being able to flip a switch) indicating to a device (e.g., the device 100) that it is to supply power from an on-board generator (e.g., from the on-board generator 102). Furthermore, this setting 202 can be made, for example, by using a second charging port configured to generate power only. This setting 202 can also be made, for example, by the charging port control module 105 determining that a unique resistance of the charging cable 128 is coupled to the charging port 104. An exemplary technique for determining that a device that is plugged in (e.g., into the charging port 104 of the device 100) Fig. 1A is plugged in), to receive charge (e.g. from the external battery 116). Fig. 1A) is configured to use a charging cable (e.g., charging cable 128) that has a unique resistance value. According to some embodiments, the charging port control module 105 determines (e.g., using Ohm's law to determine the unique resistance value of the charging cable) that a charging cable (e.g., charging cable 128) with a unique resistance is coupled to the charging port 104. According to some embodiments, the presence of a charging cable (such as charging cable 128) can Fig. 1A) with a unique resistance value in a charging port (such as in charging port 104 from Fig. 1A) specify that (e.g. by the charging port controller 105) a signal should be generated indicating that a device (such as the device 100 from Fig. 1A) using an on-board generator (such as generator 106 from Fig. 1A) is intended to provide power to an external battery (such as external battery 116), and this can enable the process to proceed to the next step.

[0031] According to a determination ( Fig. 2, Fig. 202), that an on-board generator (e.g., the generator 106 of the device 100 from Fig. 1A) Power for an external battery (e.g. for the external battery 116 from Fig. 1A) is to be provided, the exemplary procedure from Fig. 2 proceed to step 204, in which one or more contactors to an internal battery of the device (e.g., contactors 136 and 138 to the internal battery 106 of the device 100) are opened so that no power flows to or from the internal battery. According to various embodiments, the implementation of step 204 can ensure that the internal battery is not affected (e.g., charged or discharged) by any interaction between an onboard generator and an external battery (e.g., by any interaction between the onboard generator 102 and the external battery 116). According to some embodiments, the contactor(s) to the internal battery in step 204 can be opened using an internal battery control module, such as the internal battery control module 120 of the device 100. Fig. 1A can be opened or closed.

[0032] After disconnecting the internal battery (step 204), the exemplary procedure can be continued. Fig. Proceed to step 206, where a charging cable (e.g., the charging cable 128) is connected to an external battery (e.g., the external battery 116). According to some embodiments, the external battery (e.g., the external battery 116) can communicate with the device (e.g., the charging port control module 105 and / or the master controller 150) using standardized protocols such as powerline communication and confirm that the external battery is connected to a charging port (e.g., the charging port 104).

[0033] The exemplary procedure from Fig. 2 can proceed to step 208, in which an onboard generator (e.g., generator 102) is started. According to some embodiments, for example, a generator control module (such as generator control module 122 in Fig. 1A) (e.g., from the charging port control module 105 and / or from the master controller 150) receives a signal indicating that the generator should start and causes the on-board generator to start. Step 208 can, for example, start a power unit that is a component of an on-board generator (e.g., generator 102 in Fig. 1A) is configured, but cannot require the generator to start producing power.

[0034] The in Fig. The exemplary method shown in step 2 can proceed to step 210, in which the voltage of the external battery (e.g., external battery 116) is determined. According to some embodiments, an external battery such as external battery 116 can be made of Fig. 1A may be configured to transmit the charge status of the external battery, e.g., using a standard powerline communication protocol, and a device (e.g., the device 100) may be configured to receive and interpret the communication, e.g., using a processor and a non-transitory, computer-readable medium that stores program code executable by the processor (e.g., by the charging port control module 105 and / or by the master controller 150).

[0035] The exemplary procedure can proceed to step 212, in which an on-board generator (e.g., generator 102 in Fig. 1A) begins to generate a voltage equal to or substantially equal to the voltage of an external battery (e.g., the external battery 116 in Fig. 1A). According to some embodiments, for example, a processor and a non-transitory, computer-readable medium that stores program code executable by the processor, such as the generator control module 122 in Fig. 1A may be configured, for example, to receive a signal from the charging port control module 105 indicating the voltage of the external battery. According to some embodiments, the generator control module (e.g., the generator control module 122) can be configured by setting the output of the on-board generator (e.g., generator 102) in Fig. 1A) respond to a received signal to match a specified voltage of the external battery (e.g., external battery 130 in 1A). According to some embodiments, a master controller such as master controller 150 can be configured to provide instructions for setting an output of an onboard generator such as generator 102 in Fig. 1A to be executed.

[0036] The exemplary procedure in Fig. 2 can proceed to step 214, in which loader such as loader 110 from Fig. 1A can be closed. According to some embodiments, a processor and a non-transient, computer-readable medium that stores program code which is executed by the processor (e.g., by the high-voltage distribution module 108 in Fig. 1A) is executable, e.g. by the master controller 150 or by the generator control module 122 in Fig. 1A receives a signal indicating that the loading gates should be closed, and can close the gates (e.g., loading gate 110).

[0037] As in Fig. As shown in Figure 2, the exemplary procedure can proceed to step 216, in which a check is performed to ensure that the voltages on both sides of the preload contactor(s) (e.g., preload contactor 112) are balanced. According to some embodiments, a processor and a non-transient, computer-readable medium storing program code that is executed by the processor (e.g., by the control feedback module 118) can be used. Fig. 1A) is executable, e.g., configured to determine the voltage drop across the pre-charge contactor(s) (e.g., across pre-charge contactors 110). If the processor and the non-transient, computer-readable medium that stores program code, which is executed by the processor (e.g., by the control feedback module 118) Fig. 1A) is executable, e.g., has determined that the voltages on both sides of the pre-charging contactor are equal or substantially equal (e.g., the voltage values ​​are approximately 99% (e.g., 99.326%) or a higher percentage of each other), the processor and the non-transitory computer-readable medium that stores program code executed by the processor (e.g., by the control feedback module 118) can Fig. 1A) is executable, be configured to generate a signal that instructs a high-voltage distribution module (e.g., the high-voltage distribution module 108) to close the main contactors (e.g., the main contactors 112).

[0038] The exemplary procedure can be continued to step 218 ( Fig. 2) pass where a high-voltage distribution module (e.g., the high-voltage distribution module 108) can receive a signal indicating that the main contactors (e.g., the main contactors 112) should be closed, which allows current to flow freely between an on-board generator (e.g., the generator 102) and an external battery (e.g., the external battery 116).

[0039] The exemplary procedure from Fig. Step 2 can proceed to step 220, where a generator (e.g., generator 102) can generate a voltage sufficient to charge the external battery (e.g., external battery 116). According to an exemplary embodiment, a generator control module, such as generator control module 122, can be made of Fig. 1A receives a signal indicating that the voltage of an on-board generator, such as generator 102, should be increased to a charging voltage, and the generator control module can, in response to such a signal, cause the on-board generator to increase its voltage. According to some embodiments, a charging voltage can be determined using a processor and a non-transient, computer-readable medium that stores program code executable by the processor (e.g., by the generator control module 122, by the charging port control module 105, and / or by the master controller 150), which can receive a charging voltage, e.g., from the external battery (e.g., external battery 116), using a standard powerline communication protocol. According to some embodiments, a generator control module (e.g., the generator control module 122) can receive a charging voltage from the external battery (e.g.,Use the charging voltage received from the external battery 116) to set an on-board generator (e.g., the generator 102) to a nominal charging voltage.

[0040] The exemplary procedure from Fig. 2 can proceed to step 222, where an external battery such as the external battery 116 is selected. Fig. 1A charges (e.g., charge via the main contactors 112 and the pre-charge contactors 110 of the high-voltage distribution module 108 and the charging port 104 receives charge from the on-board generator 102).

[0041] The exemplary procedure from Fig. 2 can proceed to step 224, in which a current limit of an external battery such as external battery 116 is set. Fig. 1A can be monitored while the external battery is charging. According to some embodiments, the external battery, such as the external battery 116, can be made of Fig. 1A may be configured to monitor the continuous current against stored current limits using a processor, memory, and / or computer-readable instructions. According to some embodiments, the external battery, such as the external battery 116, may consist of Fig. 1A be configured, charging and / or current limits e.g. using a powerline communication protocol e.g. to a processor and to a non-transient computer-readable medium storing program code that is executed by the processor (e.g. by the charging port control module 105 and / or by the master controller 150 of the device 100 in Fig. 1A) is executable, to be transmitted.

[0042] The exemplary procedure from Fig. 2 can proceed to step 226, in which an output current of an on-board generator (e.g., generator 102) is set (e.g., by the master controller 150 and / or by the generator control module 122) to match the charging limits of the external battery (e.g., external battery 116), as can be determined in step 224 of the exemplary procedure. The management of an output current can be carried out, for example, using the generator control module 122. Fig. 1A is used to adjust the on-board generator (e.g., generator 102) to output the desired current.

[0043] As in step 228 from Fig. As shown in Figure 2, the exemplary procedure can stop an onboard generator (e.g., generator 102 from Fig. 1A). According to some embodiments, stopping an on-board generator may involve a generator control module (e.g., the generator control module 122) causing the generator (e.g., the generator 102) to stop generating power, stopping the generator's power unit, or both. According to some embodiments, an on-board generator (e.g., the generator 102) may stop generating power when the external battery (e.g., the external battery 116), as can be specified using the powerline communication protocol (e.g., for the charging port controller 105 or for the master controller 150 and for the generator control module 122), has reached its maximum capacity. According to some embodiments, an on-board generator (e.g., the generator 102) may be triggered to stop generating power if the charging cable (e.g., the charging cable 128) is removed or if it (e.g.,(determined by the charging port control module 105 or by the master controller 150 and transmitted to the generator control module 122) an attempt to remove it. According to some embodiments, an onboard generator (e.g., the generator 102) can be stopped if the charging operation is overridden by any other means (e.g., manually, if the master controller 150 or the generator control module 122 determines that it is unsafe to continue running the generator, etc.).

[0044] Now based on Fig. 3 is an exemplary method for providing power to an external battery (e.g. the external battery 116) from an on-board generator (e.g. from the generator 102 of the device 100). Fig. 1A). Some or all of the Fig. The operations shown in Figure 3 and described in more detail below can correspond to non-transitory, processor-executable instructions that are stored, for example, in memory and executed, for example, by an electronic controller, a processing unit, a dedicated control module, a logic circuit, or another module or device, or by a network of modules / devices, to perform any of the functions described above and below that are associated with the disclosed concepts. It should be recognized that the order of execution of the operation blocks shown can be changed, that additional operation blocks can be added, and that some of the operations described here can be modified, combined, or removed.

[0045] The exemplary procedure from Fig. 3 can begin in block 300 by connecting a charging cable (e.g., the charging cable 128 of the device 100) to a device such as, for example, the charging port 104 of the device 100. Fig. 1A is connected.

[0046] Moving on to block 302 ( Fig. 3) It can be determined that a generator of a device (e.g. the generator 106 of the device 100) is used for external charging such as charging the external battery 106 from Fig. 1A is used. This determination (302) can be made in several ways, including, but not limited to, a manual input (such as a switch that an operator can flip) indicating that the device intended to supply power from the on-board generator uses a second charging port configured solely for generating power, or by, for example, a charging port control module 105 determining that a unique resistance of the charging cable (e.g., charging cable 128) is coupled to the charging port (e.g., charging port 104). An exemplary method for determining that the device that is plugged in (e.g., into charging port 104 of the device 100) Fig. 1A is plugged in) is configured to receive charge (e.g., the external battery 116), the use of a charging cable (e.g., the charging cable 128) that has a unique resistance value is required. According to some embodiments, a charging port control module (e.g., the charging port control module 105) can determine (e.g., using Ohm's law to determine the unique resistance of the charging cable) that a charging cable with a unique resistance value is coupled to the charging port 104. According to some embodiments, the presence of a charging cable (such as the cable 128 from Fig. 1A) with a unique resistance value in a charging port (such as charging port 104 from Fig. 1A) indicate that (e.g. by the charging port controller 105) a signal is generated indicating that a device (such as the device 100) is being charged using an on-board generator (such as the generator 106 from Fig. 1A) is intended to provide power for an external battery (such as external battery 116), and this can enable the process to proceed to the next step.

[0047] After determining (step 302) that the on-board generator (e.g., generator 106 of device 100) Fig. 1A) for an external battery (e.g. for the external battery 116 from Fig. 1A) To provide performance, the exemplary procedure can be derived from Fig. 3. Proceed to step 204, in which one or more contactors to an internal battery of the device (e.g., contactors 136 and 138 of the internal battery to the internal battery 106 of the device 100) can be opened so that no power flows to or from the internal battery. According to various embodiments, the implementation of step 204 can ensure that the external battery is not affected (e.g., charged or discharged) by any interaction between the on-board generator and the external battery (e.g., by any interaction between the on-board generator 102 and the external battery 116). According to some embodiments, the contactor(s) to the internal battery in step 204 can be opened using an internal battery control module, such as the internal battery control module 120 of the device 100. Fig. 1A can be opened or closed.

[0048] After disconnecting the internal battery (step 304), the exemplary procedure can be followed. Fig. Proceed to step 306, in which the charging cable (e.g., the charging cable 128) can be connected to an external battery (e.g., the external battery 116). According to some embodiments, the external battery (e.g., the external battery 116) can communicate with the device (e.g., the charging port control module 105 and / or the master controller 150) using standardized protocols such as powerline communication and confirm that the external battery is connected to the charging port (e.g., the charging port 104).

[0049] The exemplary procedure from Fig. 3 can proceed to step 308, where an external battery management module (e.g., a component of external battery 116) can determine that an external battery (e.g., external battery 116) should be charged and closes contactors of the external battery (e.g., one or more components of external battery 116) to allow current to flow to the external battery (e.g., external battery 116). The exemplary procedure from Fig. 3 can proceed to step 310, in which an onboard generator (e.g., generator 102 in Fig. 1A). According to some embodiments, for example, a generator control module (such as the generator control module 122 in Fig. 1A) (e.g., from the charging port controller 105 and / or from the master controller 150) receives a signal indicating that a generator should be started and can cause the generator to start. This can start a power unit that is a component of an on-board generator (e.g., generator 102 in Fig. 1A) is configured, but cannot require the generator to start producing power.

[0050] The following can be found in Fig. The exemplary methods shown in Figure 3 proceed to step 312, in which the voltage of the external battery (e.g., external battery 116) can be determined. According to some embodiments, an external battery such as external battery 116 can be made of Fig. 1A may be configured to transmit the charge status of the external battery, e.g., using a standard powerline communication protocol, and a device (e.g., the device 100) may be configured to receive and interpret the communication, e.g., using a processor and a non-transitory, computer-readable medium that stores program code executable by the processor (e.g., by the charging port control module 105 and / or by the master controller 150).

[0051] The exemplary procedure can proceed to step 314, where an on-board generator (e.g., generator 102 in Fig. 1A) a voltage equal to or substantially equal to (where, for example, voltage values ​​are approximately 99% (e.g., 99.326%) or a higher percentage of each other) the voltage of an external battery (e.g., the external battery 116 in Fig. 1A) begins to generate. According to some embodiments, for example, a processor and a non-transitory, computer-readable medium that stores program code, which is generated by the processor such as by the generator control module 122 in Fig. 1A is executable, configured, for example, to receive a signal from the charging port control module 105 indicating the voltage of the external battery. According to some embodiments, the generator control module (e.g., the generator control module 122) can respond to a received signal by adjusting the output of an on-board generator (e.g., the generator 102 in Fig. 1A) to connect to a specified voltage of the external battery (e.g., the external battery 116 in Fig. 1A) to adapt, address. According to some embodiments, a master controller such as the master controller 150 can be configured to provide instructions for setting an output of an on-board generator such as the generator 102 in Fig. 1A to be executed.

[0052] Further based on Fig. 3. The exemplary procedure described here can proceed to step 316, where a loader such as loader 110 from Fig. 1A can be closed. According to some embodiments, a processor and a non-transient, computer-readable medium that stores program code which is executed by the processor (e.g., by the high-voltage distribution module 108 in Fig. 1A) is executable, e.g. by the master controller 150 or by the generator control module 122 in Fig. 1A receives a signal indicating that the loading gates should be closed, and the loading gates (e.g., loading gates 110) can close in response to the received signal.

[0053] As in Fig. As shown in Figure 3, the exemplary procedure can proceed to step 318, in which a check is performed to ensure that the voltages on both sides of the pre-charging contactor(s) (e.g., pre-charging contactor(s) 112) are balanced. According to some embodiments, a processor and a non-transient, computer-readable medium storing program code executed by the processor (e.g., the control feedback module 118) can be used. Fig. 1A) is executable, e.g., configured to determine the voltage drop across the pre-charging contactor(s) (e.g., the pre-charging contactors 110). According to some embodiments, the processor and the non-transitory computer-readable medium that stores program code executed by the processor (e.g., by the control feedback module 118) can be configured to determine the voltage drop across the pre-charging contactor(s) (e.g., the pre-charging contactor(s) 110). Fig. 1A) is executable, be configured to generate a signal indicating to a high-voltage distribution module (e.g., the high-voltage distribution module 108) that the main contactors (e.g., the main contactors 112) should be closed when a processor and a non-transitory computer-readable medium storing program code executed by the processor (e.g., by the control feedback module 118) Fig. 1A) is feasible, has determined that the voltages on both sides of the preloading device are equal or substantially equal (e.g. the voltage values ​​are approximately 99% (e.g. 99.326%) or a higher percentage of each other).

[0054] The exemplary procedure can proceed to step 320, where a high-voltage distribution module (e.g., the high-voltage distribution module 108) can receive a signal indicating that the main contactors (e.g., the main contactor 112) should be closed to allow current to flow freely between an on-board generator (e.g., the generator 102) and an external battery (e.g., the external battery 116).

[0055] The exemplary procedure from Fig. Step 3 can proceed to step 322, in which an onboard generator (e.g., generator 102) can generate a voltage sufficient to charge the external battery (e.g., external battery 116). According to a certain embodiment, a generator control module, such as generator control module 122, can be used. Fig. 1A receives a signal indicating that the voltage of an on-board generator, such as generator 102, should be increased to a charging voltage, and can cause a generator control module to increase the voltage of the on-board generator in response to such a signal. According to some embodiments, a charging voltage can be determined using a processor and a non-transient, computer-readable medium that stores program code executable by the processor (e.g., by the generator control module 122, by the charging port control module 105, and / or by the master controller 150), which can receive a charging voltage, e.g., from the external battery (e.g., external battery 116), using a standard powerline communication protocol. According to some embodiments, a generator control module (e.g., the generator control module 122) can receive a charging voltage from an external battery (e.g.,The external battery 116) receives the charging voltage to set an on-board generator (e.g., generator 102) at a nominal charging voltage.

[0056] The exemplary procedure from Fig. 3 can proceed to step 323, in which an external battery such as the external battery 116 is selected. Fig. 1A charges (e.g., from the on-board generator 102 via main contactors 112 and pre-charge contactors 110 of the high-voltage distribution module 108 and receives charge via the charging port 104).

[0057] The exemplary procedure from Fig. 3 can proceed to step 324, in which a current limit of an external battery such as external battery 116 is set. Fig. 1A can be monitored while the external battery is charging. According to some embodiments, the external battery, such as the external battery 116, can be made of Fig. 1A may be configured to monitor the continuous current against stored limits using a processor, memory, and / or computer-readable instructions. According to some embodiments, the external battery, such as the external battery 116, may consist of Fig. 1A be configured, charging and / or current limits e.g. using a powerline communication protocol e.g. to a processor and to a non-transient computer-readable medium storing program code that is executed by the processor (e.g. by the charging port control module 105 and / or by the master controller 150 of the device 100 in Fig. 1A) is executable, to be transmitted.

[0058] With reference to step 326 from Fig. 3. An output current of an on-board generator (e.g., generator 102) can be set (e.g., by the master controller 150 and / or by the generator control module 122) to match the charging and / or current limits of an external battery (e.g., external battery 116), as specified in step 324 ( Fig. 3) can be determined and adapted. For example, the management of an output current can be achieved using a generator control module (e.g., the 122 generator control module). Fig. 1A) to adjust an on-board generator (e.g., the on-board generator 102) to output the desired current.

[0059] With reference to step 328 from Fig. 3 can stop an onboard generator (e.g., generator 102). Fig. 1A). According to some embodiments, stopping an onboard generator may involve a generator control module (e.g., the generator control module 122) and / or the master controller 150 causing the generator (e.g., the generator 102) to cease generating power. According to some embodiments, an onboard generator (e.g., the generator 102) may receive a signal to cease generating power (e.g., from the generator control module 122 and / or from the master controller 150) when an external battery (e.g., the external battery 116), as can be specified using the powerline communication protocol (e.g., to the charging port controller 105 or to the master controller 150 and to the generator control module 122), has reached its maximum capacity. According to some embodiments, it can be triggered that an on-board generator (e.g., generator 102) stops generating power if a charging cable (e.g.,the charging cable) is removed, or if there is an attempt to remove it (as determined, for example, by the charging port control module 105 or by the master controller 150 and transmitted to the generator control module 122). According to some embodiments, an onboard generator (e.g., the generator 102) can be stopped if the charging operation is overridden by any other means (e.g., manually, if the master controller 150 or the generator control module 122 determines that it is unsafe to continue running the generator, etc.). According to some embodiments, in step 328 of the exemplary method from . Fig. 3 a charging module a generator power machine such as a power machine which is a component of generator 102 Fig. 1A is, switch off.

[0060] According to some embodiments of the present disclosure, a device or method may be configured to provide AC power for equipment (e.g., equipment 142 from Fig. 1B) to provide, and according to some embodiments they can even provide power for a household or other building (e.g., building 144 from Fig. 1B). Such a configuration can provide an adapter (e.g., adapter 140 from Fig. 1B) for converting DC to AC. According to some embodiments, an adapter (e.g., the adapter 140) may be configured with a charging port of a device (e.g., the charging port 104 of the device 100). Fig. 1B) to be coupled, which according to some embodiments includes a charging cable (e.g. the charging cable 144 made of Fig. 1B). According to some embodiments, an adapter (e.g., adapter 140 from Fig. 1B) be part of a device (e.g., the device 100). According to some embodiments, an adapter (e.g., the adapter 140) can be configured to step up or step down the output voltage. An adapter (e.g., the adapter 140) can be externally connected to a device (e.g., the device 100), for example, by plugging it into a charging port (e.g., the charging port 104 of the device 100). Fig. 1B), which according to some embodiments includes a charging cable (e.g. the charging cable 144 made of Fig. 1B) can be configured. According to some embodiments, an adapter (e.g., the adapter 140) can be used within a device (e.g., the device 100). Fig. 1B) as an additional module, which can be combined with, for example, a high-voltage distribution module (e.g., with the high-voltage distribution module 108 from Fig. 1B) is connected, be configured.

[0061] According to some embodiments, an exemplary method or device (e.g., the device 100) may include software configured to control the operation of a mains-connected fast charger (e.g., as part of the master controller 150 of the device 100). Fig. 1A) to imitate so that no additional configuration (e.g., external battery 116) is required for an electric vehicle. Fig. 1A) is necessary to receive charge.

[0062] According to some embodiments, a charging cable (e.g., the charging cable 128 made of Fig.1A) during the charging process at the point of use (e.g., in the charging port 104). According to some embodiments, a charging port (e.g., the charging port 104) may include a locking mechanism, e.g., a mechanical pin lock, which is engaged immediately after a charging cable (e.g., the charging cable 128) has been inserted into a charging port (e.g., the charging port 104).

[0063] Furthermore, aspects of this disclosure can be implemented using a variety of computer systems, including multiprocessor systems, microprocessor-based electronics or programmable consumer electronics, minicomputers, mainframes, and the like. Additionally, aspects of this disclosure can be implemented in distributed computing environments where tasks are performed by resident and remote processing units linked via a communication network. In a distributed computing environment, program modules can reside in both local and remote computer storage media, including storage devices. Thus, aspects of this disclosure can be implemented in conjunction with various hardware, software, or a combination thereof in a computer system or other processing system.

[0064] Any of the methods described herein may contain machine-readable instructions for execution by: (a) a processor, (b) a controller, and / or (c) any other suitable processing device. Any algorithm, software, control logic, protocol, or method disclosed herein may be embodied as software stored on a specific medium, such as flash memory, solid-state drive (SSD) memory, hard disk drive (HDD) memory, CD-ROM, digital versatile disc (DVD), or other storage devices. Alternatively, the entire algorithm, control logic, protocol, or method and / or parts thereof may be executed by a device other than a controller and / or implemented in firmware or dedicated hardware in an available manner (e.g.,This may be implemented using an application-specific integrated circuit (ASIC), a programmable logic device (PLD), a free programmable logic device (FPLD), discrete logic, etc. While specific algorithms may be described using flowcharts and / or workflow diagrams shown here, many other methods can also be used to implement exemplary machine-readable instructions.

[0065] Aspects of the present disclosure have been described in detail with reference to the embodiments presented; however, those skilled in the art will recognize that many modifications can be made without altering the scope of protection of the present disclosure. The present disclosure is not limited to the exact construction and compositions disclosed herein; any modifications, changes, and variants arising from the foregoing descriptions are within the scope of protection of the disclosure as defined by the appended claims. Furthermore, the present concepts explicitly include any combinations and partial combinations of the preceding elements and features.

Claims

[1] Device comprising: a generator; a charging port; an internal battery; a processor; and a non-transitory, machine-readable storage medium encoded with program code that can be executed by the processor to: Determine whether the charging port is connected to an external battery, and if so, determine the state of charge of the external battery; Matching a first voltage generated by the generator to a second voltage of the external battery based on the specific state of charge of the external battery; and Charging the external battery via the charging port and using the generator. [2] Device according to claim 1, wherein the charging port is configured to connect to an external power source for operations to charge the internal battery via the charging port. [3] Device according to claim 2, further comprising: a charging cable configured to work with the charging port; wherein the charging cable has a first resistance value, the first resistance value being configured to indicate that the charging port is connected to the external battery. [4] Device according to claim 1, wherein the generator is configured to output a DC voltage. [5] Device according to claim 1, wherein the program code executable by the processor to charge the external battery further serves to respond to charge limit values ​​received from the external battery. [6] Device according to claim 1, wherein the program code executable by the processor further serves to: Disconnect the internal battery from the generator before adjusting the first voltage of the generator to the second voltage of the external battery. [7] Device according to claim 1, wherein the device is a series hybrid vehicle. [8] Device according to claim 1, wherein the external battery is a component of an electric vehicle. [9] Device according to claim 1, wherein the program code executable by the processor further serves to: The generator stops producing power after receiving a signal indicating that the external battery has finished charging. [10] Device according to claim 1, wherein the program code executable by the processor to charge the external battery is further configured to mimic an operation of a mains-connected DC fast charger. [11] Method for charging an external battery, the method comprising: Connecting an external battery to a charging port, with the charging port being associated with an internal battery and a generator; Determining the charge level of the external battery based on a determination that the charging port is connected to the external battery, using a processor and a non-transitory machine-readable storage medium encoded with program code executable by the processor; Matching a first voltage generated by the generator to a second voltage of the external battery based on the specific state of charge of the external battery; and Charging the external battery using the generator. [12] The method of claim 11, further comprising: coupling a charging cable to the charging port, wherein: the charging cable includes a first resistance value; and The first resistance value is configured to indicate a connection to the external battery. [13] The method of claim 12, further comprising: Determine that the charging cable includes the first resistance value, using the processor and the non-transitory machine-readable storage medium encoded with program code executable by the processor; where determining that the charging port is connected to the external battery is based on determining that the charging cable includes the first resistance value. [14] Method according to claim 11, wherein the generator is configured to output a DC voltage. [15] The method of claim 11, further comprising: Receiving charging limit values ​​from the external battery; where charging the external battery using the generator is based on the received charging limits. [16] The method of claim 15, further comprising: disconnecting the internal battery from the generator before adjusting the first voltage generated by the generator to the second voltage of the external battery. [17] Method according to claim 11, wherein the internal battery, generator, charging port, processor and non-transient machine-readable storage medium are components of a series hybrid vehicle. [18] Method according to claim 11, wherein the external battery is a component of an electric vehicle. [19] The method of claim 11, further comprising: Receiving a notification that the external battery has reached its maximum charging capacity; and Stopping charging the external battery using the generator in response to the received information. [20] Non-transitory machine-readable storage medium encoded with program code executable by a processor of a device, wherein the program code is executable by the processor to: Determine whether a charging port of the device is connected to an external battery, and if so, determine the state of charge of the external battery; Matching a first voltage generated by the device's generator to a second voltage of the external battery based on the determined state of charge of the external battery; and Charging the external battery via the charging port and using the generator.