Motor controller and motor control system for electric bicycle
By designing a motor controller for electric bicycles, the safety hazards caused by high voltage in secondary circuits in shared electric bicycles and the battery matching problems of new models are solved, and the safety performance and operational flexibility of electric bicycles are improved.
Patent Information
- Application Number
- CN202311541240.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-17
- Publication Date
- 2025-05-20
AI Technical Summary
There is a high DC voltage in the secondary circuit of shared electric motorcycles, which leads to safety hazards. The new model is difficult to match the new and old batteries, and cannot meet the needs of shared operation.
A motor controller is designed, including a first interface circuit, a power output circuit, an anti-reverse circuit, a first DC-DC converter and a second DC-DC converter. These components realize the control and power management of the power supply voltage of the electric bicycle motor to ensure that the DC voltage of the secondary circuit is low and compatible with new and old batteries.
It effectively reduces the DC voltage of the secondary circuit of the electric bicycle, avoids the safety hazard of high voltage in the main circuit after returning the vehicle and locking it, and meets the matching needs with new and old batteries, improving the safety performance and operational flexibility of the electric bicycle.
Smart Images

Figure CN120019974A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of electric bicycles, and in particular, to a motor controller for an electric bicycle, a motor control system, a method, an apparatus, and a computer-readable storage medium for power control of the motor controller. Background Art
[0002] In the shared electric bicycle industry, the electrical architecture used to drive the motor includes a main circuit and a secondary circuit. The main circuit is mainly used to supply electrical energy to the motor, and the secondary circuit includes other circuits such as control circuits other than the main circuit. In conventional shared electric bicycles, the secondary circuit generally has a relatively high DC voltage exceeding 35V, and there is still high voltage in the main circuit after returning the vehicle and locking the lock. For example, only the voltage of the electric door lock is turned off after returning the vehicle, and the controller locks the motor function when anti-theft is activated. These situations will cause potential safety hazards in shared electric bicycles.
[0003] In addition, there is a general demand in the shared electric bicycle industry for scenarios of matching existing old batteries with new vehicle models. During actual operation, new vehicle models may be mobilized between new batteries and old batteries that meet different standards. It is difficult to ensure that new vehicle models necessarily use new batteries, and it is very likely that old batteries are used. Therefore, new vehicle models may have battery matching problems and cannot meet the shared operation requirements. Summary of the Invention
[0004] Embodiments of the present disclosure provide a motor controller for an electric bicycle, a motor control system, a method, an apparatus, and a computer-readable storage medium for power control of the motor controller.
[0005] In a first aspect of the present disclosure, there is provided a motor controller for an electric bicycle, including: a first interface circuit including a first input terminal and a second input terminal, the first input terminal being adapted to receive a first power supply voltage, the second input terminal being adapted to receive a second power supply voltage, the second power supply voltage being lower than the first power supply voltage; a power output circuit connected to the first input terminal and capable of using the first power supply voltage as a supply voltage for the motor of the electric bicycle when the first input terminal receives the first power supply voltage; an anti-reverse circuit having an input terminal connected to the first input terminal and the second input terminal and an output terminal connected to a common node; a first DC-DC converter having an input terminal connected to the common node, an output terminal connected to the power output circuit, and being adapted to provide a control voltage lower than the first power supply voltage to the power output circuit; and a second DC-DC converter having an input terminal connected to the common node, an output terminal providing a working voltage for powering the central control system of the electric bicycle, the working voltage being lower than the first power supply voltage and the second power supply voltage.
[0006] In a second aspect of the present disclosure, a motor control system is provided, including: the motor controller of the first aspect of the present disclosure; and a battery management system, connected to the first interface circuit of the motor controller, and capable of providing the first power supply voltage to the first input terminal and providing the second power supply voltage to the second input terminal when the electric bicycle is in an unlocked state, and providing the second power supply voltage to the second input terminal and stopping providing the first power supply voltage to the first input terminal when the electric bicycle is in a locked state.
[0007] In a third aspect of the present disclosure, a method for power control of the motor controller of the first aspect of the present disclosure is provided, including: receiving a first signal for indicating the model of the electric bicycle; in response to the first signal indicating that the electric bicycle is a first model and receiving a borrowing unlocking instruction, providing the first power supply voltage to the first input terminal; in response to the first signal indicating that the electric bicycle is a first model and receiving a returning locking instruction, stopping providing the first power supply voltage to the first input terminal; and in response to the first signal indicating that the electric bicycle is a second model, providing the first power supply voltage to the first input terminal.
[0008] In a fourth aspect of the present disclosure, a device for power control of a motor controller is provided, including: at least one processing unit; and at least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the device to execute the method of the third aspect of the present disclosure when executed by the at least one processing unit.
[0009] In a fifth aspect of the present disclosure, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the third aspect.
[0010] According to the embodiments of the present disclosure, it is possible to make the secondary circuit of the electric bicycle have a lower DC voltage, and to avoid the existence of a high voltage in the main circuit after returning the vehicle and locking it, thereby improving the safety performance of the electric bicycle. In addition, the electrical architecture solution of the embodiments of the present disclosure enables the electric bicycle to meet the matching requirements of new and old batteries.
[0011] It should be understood that the content described in this part is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In conjunction with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent. In the drawings, the same or similar reference numerals denote the same or similar elements, where:
[0013] Figure 1 shows a circuit schematic diagram of a motor control system according to some embodiments of the present disclosure;
[0014] Figure 2 shows a flowchart of a process for powering on and off a motor controller according to some embodiments of the present disclosure;
[0015] Figure 3 shows a flowchart of a process for powering on and off a motor controller according to some embodiments of the present disclosure; and
[0016] Figure 4 shows a block diagram of a device capable of implementing multiple embodiments of the present disclosure. Detailed Embodiments
[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0018] In the description of the embodiments of the present disclosure, the term "including" and its like should be understood as an open inclusion, that is, "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". There may also be other explicit and implicit definitions hereinafter. The terms "first", "second", etc. may refer to different or the same objects. There may also be other explicit and implicit definitions hereinafter.
[0019] As briefly mentioned above, in conventional shared electric bicycles, there is generally a relatively high DC voltage exceeding 35V in the secondary circuit, and there is still high voltage in the main circuit after returning the vehicle and locking it. These situations will pose safety hazards to shared electric bicycles. In addition, there is a general demand in the shared electric bicycle industry for scenarios where old batteries in stock are matched with new vehicle models. There may be battery matching problems with new vehicle models, which cannot meet the shared operation requirements. Embodiments of the present disclosure provide an electrical architecture solution for electric bicycles (especially shared electric bicycles), so that there is a lower DC voltage in the secondary circuit of the electric bicycle, avoiding high voltage in the main circuit after returning the vehicle and locking it, and meeting the matching requirements of electric bicycles with new and old batteries. The following will be combined with Figures 1 to 4 to describe the exemplary embodiments of the present disclosure in detail.
[0020] Figure 1 The circuit schematic diagram of the motor control system 100 according to some embodiments of the present disclosure is shown. As Figure 1 shown, the motor control system 100 described herein generally includes a motor controller 1, a central control system 2, and a battery management system 3. The motor controller 1 includes a first interface circuit 11 and a second interface circuit 12. The battery management system 3 is coupled to the motor controller 1 via the first interface circuit 11. The central control system 2 is coupled to the motor controller 1 via the second interface circuit 12.
[0021] The first interface circuit 11 includes a first input terminal 111 and a second input terminal 112. The first input terminal 111 is adapted to receive a first power supply voltage. The second input terminal 112 is adapted to receive a second power supply voltage. The second power supply voltage is lower than the first power supply voltage. In one embodiment, the first power supply voltage is, for example, 48V, and the second power supply voltage is, for example, 33V.
[0022] It should be noted that the numbers, numerical values, etc. mentioned above and elsewhere in the present disclosure are exemplary and are not intended to limit the scope of the present disclosure in any way. Any other appropriate numbers and numerical values are possible. The first input terminal 111 is connected to the main circuit in the motor controller 1, and the second input terminal 112 is connected to the secondary circuit in the motor controller 1.
[0023] As Figure 1 shown, the motor controller 1 further includes a power output circuit 10, and the power output circuit 10 is connected to the first input terminal 111. The power output circuit 10 can use the first power supply voltage as the power supply voltage for the motor of the electric bicycle and provide a large working current to the motor when the first input terminal 111 receives the first power supply voltage.
[0024] As Figure 1As shown, the motor controller 1 further includes an anti-reverse circuit 14. The input end of the anti-reverse circuit 14 is connected to the first input terminal 111 and the second input terminal 112. The output end of the anti-reverse circuit 14 is connected to the common node 17. The anti-reverse circuit 14 allows current to flow from the first input terminal 111 and the second input terminal 112 to the common node 17 via the anti-reverse circuit 14, while preventing current from flowing reversely from the common node 17 to the first input terminal 111 and the second input terminal 112.
[0025] In one embodiment, as Figure 1 shown, the anti-reverse circuit 14 may include a first diode D1 and a second diode D2. The anode of the first diode D1 is connected to the first input terminal 111, and the cathode of the first diode D1 is connected to the common node 17. The anode of the second diode D2 is connected to the second input terminal 112, and the cathode of the second diode D2 is connected to the common node 17. By arranging the first diode D1 and the second diode D2, unidirectional current flow can be achieved.
[0026] It should be understood that in the embodiments of the present disclosure, the anti-reverse circuit 14 may have any suitable arrangement as long as it can achieve unidirectional current flow only from its input end to its output end, and these implementations all fall within the scope of the present disclosure.
[0027] As Figure 1 shown, the motor controller 1 further includes a first DC-DC converter 131. The input end of the first DC-DC converter 131 is connected to the common node 17, and the output end of the first DC-DC converter 131 is connected to the power output circuit 10. The first DC-DC converter 131 can step down the first power supply voltage to provide a control voltage lower than the first power supply voltage to the power output circuit 10. The power output circuit 10 can control the chips and circuits included therein based on the control voltage to drive the motor. In one embodiment, the control voltage may be 13V for example. It should be understood that higher or lower control voltages can be adopted according to design requirements to supply the power output circuit 10.
[0028] As Figure 1 shown, the motor controller 1 further includes a second DC-DC converter 132. The input end of the second DC-DC converter 132 is connected to the common node 17, and the output end of the second DC-DC converter 132 provides a working voltage for powering the central control system 2 of the electric bicycle. This working voltage is lower than the first power supply voltage and the second power supply voltage. In one embodiment, the working voltage may be 24V for example. It should be understood that higher or lower working voltages can be provided to the central control system 2 according to design requirements.
[0029] In one embodiment, as Figure 1As shown, the motor controller 1 further includes a third DC-DC converter 133. The input terminal of the third DC-DC converter 133 is connected to the output terminal of the first DC-DC converter 131 to step down the control voltage. In one embodiment, the output voltage of the third DC-DC converter 133 can be, for example, 5V to supply power to some internal circuits of the motor control system 100. It should be understood that the third DC-DC converter 133 can provide a higher or lower output voltage.
[0030] In one embodiment, as Figure 1 shown, the motor controller 1 further includes a voltage detection circuit 15. The voltage detection circuit 15 is connected to the second input terminal 112 to detect whether there is a second power supply voltage on the second input terminal 112. By providing the voltage detection circuit 15, it is possible to monitor whether the battery management system 3 normally outputs a voltage such as 33V required for the secondary circuit. In the case where the voltage detection circuit 15 detects that there is no second power supply voltage on the second input terminal 112, the motor controller 1 can send a high-voltage power-down command to the central control system 2 to cause the central control system 2 to perform a power-down operation.
[0031] In one embodiment, as Figure 1 shown, the motor controller 1 further includes a reserved unit 16. The reserved unit 16 can replace the second DC-DC converter 132 and has a 0Ω resistor. By using the reserved unit 16 to replace the second DC-DC converter 132, the overall cost of the motor control system 100 can be reduced.
[0032] As Figure 1 shown, the first power supply voltage and the second power supply voltage required by the motor controller 1 are provided by the battery management system 3. The battery management system 3 can provide the first power supply voltage to the first input terminal 111 and the second power supply voltage to the second input terminal 112 when the electric bicycle is in the unlocked state. The battery management system 3 can provide the second power supply voltage to the second input terminal 112 and stop providing the first power supply voltage to the first input terminal 111 when the electric bicycle is in the locked state.
[0033] In one embodiment, as Figure 1 shown, the battery management system 3 includes a fourth DC-DC converter 30. The fourth DC-DC converter 30 can step down the first power supply voltage to obtain the second power supply voltage.
[0034] In some embodiments, if the battery used is an old battery, the battery management system 3 may only provide the first power supply voltage and not provide the second power supply voltage. In this case, the first power supply voltage can be converted into the control voltage of the power output circuit 10 via the first DC-DC converter 131 and into the operating voltage of the central control system 2 via the second DC-DC converter 132. Therefore, the motor controller 1 according to the embodiments of the present disclosure can be compatible with new and old batteries.
[0035] According to the embodiments of the present disclosure, it is possible to make the secondary circuit of the electric bicycle have a lower DC voltage and avoid the existence of a high voltage in the main circuit after returning the vehicle and locking it, thereby improving the safety performance of the electric bicycle. In addition, the electrical architecture solution according to the embodiments of the present disclosure enables the electric bicycle to meet the matching requirements with new and old batteries.
[0036] Next, the power-on and power-off control process of the electric bicycle will be described in conjunction with Figure 2 and Figure 3 The power-on and power-off control process of the electric bicycle will be described. Among them Figure 2 FIG. shows a flowchart of a process 200 for controlling the power-on and power-off of the motor controller according to some embodiments of the present disclosure, Figure 3 FIG. shows a flowchart of a process 300 for controlling the power-on and power-off of the motor controller according to some embodiments of the present disclosure. The processes 200 and 300 can be executed together by the battery management system 3 and the central control system 2 described above. The battery management system 3 and the central control system 2 can communicate via a Controller Area Network (CAN) bus.
[0037] As Figure 2 shown, in block 210, the battery management system 3 receives a first signal from the central control system 2 for indicating the model of the electric bicycle. The models of the electric bicycle can include a first model and a second model. In one embodiment, the first model can be an old model and the second model can be a new model. The battery management system 3 can receive the model signal from the central control system 2 via the CAN bus.
[0038] In block 220, in response to the first signal indicating that the electric bicycle is the first model and receiving the vehicle borrowing and unlocking instruction, the battery management system 3 provides the first power supply voltage to the first input terminal 111 of the motor controller 1, thereby performing high-voltage power-on. For example, when the battery management system 3 determines that the electric bicycle is a new model and there is a vehicle borrowing instruction, high-voltage power-on is performed on the motor controller 1.
[0039] At block 230, in response to a first signal indicating that the electric bicycle is of a first model type and upon receiving a vehicle return and lock command, the supply of the first power voltage to the first input terminal 111 of the motor controller 1 is stopped, thereby performing high-voltage power-down. For example, when the battery management system 3 determines that the electric bicycle is a new model type and there is a vehicle return command, high-voltage power-down is performed on the motor controller 1.
[0040] At block 240, in response to a first signal indicating that the electric bicycle is of a second model type, the first power voltage is supplied to the first input terminal 11 of the motor controller 1. For example, when the battery management system 3 determines that the electric bicycle is an old model type, high-voltage power-up can be directly performed on the motor controller 1 without determining whether there is a vehicle borrowing command.
[0041] As used herein, the term "in response to" refers to a state in which a corresponding event occurs or a condition is satisfied. It will be understood that the timing of the execution of subsequent actions performed in response to the event or condition and the time when the event occurs or the condition is established are not necessarily strongly correlated. For example, in some cases, the subsequent action can be immediately executed when the event occurs or the condition is established; while in other cases, the subsequent action can be executed after a period of time after the event occurs or the condition is established.
[0042] As Figure 3 shown, at block 301, the motor controller 1 is initially in a power-down state.
[0043] At block 302, the central control system 2 determines whether there is external power plugged in. If there is external power plugged in, process 300 proceeds to block 303; if there is no external power plugged in, process 300 proceeds to block 304.
[0044] At block 303, the central control system 2 writes an authentication power supply command to the battery management system 3 for the battery management system 3 to perform an authentication operation. In addition, the central control system 2 also writes a vehicle status register to the battery management system 3 to indicate the model type of the electric bicycle, such as whether it is a new model type or an old model type.
[0045] At block 304, the central control system 2 determines whether there is external power cut-off. If there is external power cut-off, process 300 proceeds to block 303; if there is no external power cut-off, process 300 proceeds to block 305.
[0046] At block 305, the central control system 2 periodically reads the battery data packet to determine whether there is external power. If there is external power, process 300 proceeds to block 303; if there is no external power, process 300 proceeds to block 306.
[0047] At block 306, the central control system 2 determines whether a vehicle search ring occurs. If a vehicle search ring occurs, process 300 proceeds to block 303; if a vehicle search ring does not occur, process 300 proceeds to block 307.
[0048] At block 307, the central control system 2 determines whether a request authentication instruction is received from the battery management system 3. If a request authentication instruction is received, process 300 proceeds to block 303; if a request authentication instruction is not received, process 300 returns to block 301.
[0049] At block 308, in the case of unlocking for borrowing a vehicle, the server sends an unlocking instruction for borrowing a vehicle to the central control system 2.
[0050] At block 309, the central control system 2 sends the unlocking instruction for borrowing a vehicle to the battery management system 3.
[0051] At block 310, in the case of locking when returning a vehicle, the server sends a locking instruction for returning a vehicle to the central control system 2.
[0052] At block 311, the central control system 2 sends the locking instruction for returning a vehicle to the battery management system 3.
[0053] At block 312, the motor controller 1 is initially in the state of powering off both high and low voltages. Next, the low-voltage power-on / off process and the high-voltage power-on / off process of the motor controller 1 will be described.
[0054] At block 313, the battery management system 3 determines whether the charging wake-up condition is met based on at least one of the authentication signal (DET signal), temperature signal (RTC signal), and CAN bus communication signal. If the charging wake-up condition is met, process 300 proceeds to block 314; if the charging wake-up condition is not met, process 300 returns to block 312.
[0055] At block 314, the battery management system 3 is woken up or restarted.
[0056] At block 315, the battery management system 3 performs a self-check to determine whether there is a fault that prohibits power-on. If there is no fault that prohibits power-on, process 300 proceeds to block 315. If there is a fault that prohibits power-on, process 300 returns to block 313.
[0057] At block 316, the battery management system 3 determines whether there is an abnormal restart behavior. If there is an abnormal restart behavior, process 300 proceeds to block 317; if there is no abnormal restart behavior, process 300 proceeds to block 320.
[0058] At block 317, in response to an abnormal restart, the battery management system 3 determines whether it was in the output state before the abnormal restart and whether the battery of the electric bicycle is in place. If it was in the output state before the abnormal restart and the battery of the electric bicycle is in place, process 300 proceeds to block 318. If it was not in the output state before the abnormal restart or the battery of the electric bicycle is not in place, process 300 proceeds to block 319.
[0059] At block 318, the battery management system 3 closes the charge and discharge transistor, such as a MOSFET.
[0060] At block 319, the battery management system 3 stops supplying the second power voltage to the second input terminal 112 of the motor controller 1 to achieve low-voltage power-off.
[0061] At block 320, the battery management system 3 sends an abnormal restart event to the central control system 2 after a predetermined period (such as 25 seconds).
[0062] At block 321, the battery management system 3 keeps the charge and discharge transistor closed and continuously supplies the first power voltage to the first input terminal 111 of the motor controller 1.
[0063] At block 322, the battery management system 3 performs authentication to determine whether the battery of the electric bicycle is in place. If the battery is in place, process 300 proceeds to block 323; if the battery is not in place, process 300 proceeds to block 319.
[0064] At block 323, in response to the battery being in place, the battery management system 3 turns on the secondary loop output and supplies the second power voltage to the second input terminal 112 of the motor controller 1, thereby achieving low-voltage power-on. At this time, the main loop remains in the off state.
[0065] At block 324, the battery management system 3 sends a request authentication event to the central control system 2 and waits for a predetermined time, such as 300 milliseconds.
[0066] At block 325, the battery management system 3 determines whether the number of consecutive requests for authentication without receiving a response result exceeds a predetermined number, such as 3 times. If it exceeds the predetermined number, process 300 proceeds to block 321; if the response result is received before the predetermined number is exceeded, process 300 proceeds to block 326. If no response result for the request authentication event is received from the central control system 2 when continuously sending a predetermined number of request authentication events to the central control system 2, it indicates that the small battery inside the central control system 2 may be over-discharged and short of power. In this case, whether it is a new model or an old model, the battery management system 3 immediately performs high-voltage power-on on the motor controller 1.
[0067] At block 326, the battery management system 3 determines whether the electric bicycle is a new model. If not, process 300 proceeds to block 327; if so, process 300 proceeds to block 328.
[0068] At block 327, the battery management system 3 determines whether the electric bicycle is an old model. If not, process 300 returns to block 324; if so, process 300 proceeds to block 321.
[0069] At block 328, the battery management system 3 determines whether it has received a vehicle borrowing unlocking instruction or a vehicle returning locking instruction from the central control system 2. If it has received a vehicle borrowing unlocking instruction, the process 300 proceeds to block 321. If it has received a vehicle returning locking instruction, the process 300 proceeds to block 329.
[0070] At block 329, the battery management system 3 powers down the motor controller 1 under high voltage and stops providing the first power supply voltage to the first input terminal 111 of the motor controller.
[0071] At block 330, the battery management system 3 determines whether the battery is in place. If it is, the process proceeds to block 331. If not, the process proceeds to block 332.
[0072] At block 331, the battery management system 3 enters the sleep mode, waits for a vehicle borrowing unlocking instruction or a vehicle returning locking instruction, and the process 300 returns to block 328.
[0073] At block 332, the battery management system 3 powers down the motor controller 1 under high and low voltages, and the process 300 returns to block 312.
[0074] Through processes 200 and 300, the power-on and power-off control of the motor control system 100 of the electric bicycle is realized. According to the embodiments of the present disclosure, it is possible to make the secondary circuit of the electric bicycle have a relatively low DC voltage and avoid the existence of high voltage in the main circuit after the vehicle is returned and locked, thereby improving the safety performance of the electric bicycle.
[0075] Figure 4 A block diagram of an electronic device 400 in which one or more embodiments of the present disclosure can be implemented is shown. It should be understood that Figure 4 The illustrated electronic device 400 is merely exemplary and should not constitute any limitation to the functions and scopes of the embodiments described herein. Figure 4 The illustrated electronic device 400 can be used to implement Figure 1 at least a part of the motor control system 100.
[0076] As Figure 4 shown, the electronic device 400 is in the form of a general-purpose electronic device. The components of the electronic device 400 can include, but are not limited to, one or more processors or processing units 410, a memory 420, a storage device 430, one or more communication units 440, one or more input devices 450, and one or more output devices 460. The processing unit 410 can be an actual or virtual processor and can execute various processes according to the programs stored in the memory 420. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing ability of the electronic device 400.
[0077] The electronic device 400 generally includes multiple computer storage media. Such media can be any accessible media that the electronic device 400 can access, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 420 can be a volatile memory (such as registers, caches, random access memory (RAM)), a non-volatile memory (such as read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 430 can be a removable or non-removable medium and can include machine-readable media, such as a flash drive, a magnetic disk, or any other medium that can be capable of storing information and / or data (such as training data for training) and can be accessed within the electronic device 400.
[0078] The electronic device 400 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in Figure 4 it, a disk drive for reading from or writing to a removable, non-volatile magnetic disk (such as a "floppy disk") and an optical disk drive for reading from or writing to a removable, non-volatile optical disk can be provided. In these cases, each drive can be connected to a bus (not shown) by one or more data media interfaces. The memory 420 can include a computer program product 425 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0079] The communication unit 440 enables communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 400 can be implemented by a single computing cluster or multiple computer machines that are capable of communicating through a communication connection. Thus, the electronic device 400 can operate in a networked environment using a logical connection with one or more other servers, network personal computers (PCs), or another network node.
[0080] The input device 450 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 460 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 400 can also communicate with one or more external devices (not shown) as needed through the communication unit 440, external devices such as storage devices, display devices, etc., communicate with one or more devices that enable a user to interact with the electronic device 400, or communicate with any device that enables the electronic device 400 to communicate with one or more other electronic devices (such as a network card, a modem, etc.). Such communication can be performed via an input / output (I / O) interface (not shown).
[0081] According to an exemplary implementation of the present disclosure, a device for power control of a motor controller is provided. The device includes at least one processing unit and at least one memory. The at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and the instructions, when executed by the at least one processing unit, cause the device to perform the method described above.
[0082] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, where the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, the computer program product being tangibly stored on a non-transitory computer-readable medium and including computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0083] Aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0084] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is produced that implements the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause a computer, a programmable data processing device, and / or other devices to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured article that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0085] The computer-readable program instructions can be loaded onto a computer, other programmable data processing device, or other device, such that a series of operation steps are performed on the computer, other programmable data processing device, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing device, or other device implement the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0086] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various implementations of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0087] The various implementations of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art in the field of this technology without departing from the scope and spirit of the described implementations. The choice of terms used herein is intended to best explain the principles of the implementations, the practical application, or the improvement of the technology in the market, or to enable other ordinary skill in the art in the field of this technology to understand the various implementation manners disclosed herein.
Claims
1. A motor controller (1) for an electric bicycle, comprising: A first interface circuit (11), comprising a first input terminal (111) and a second input terminal (112), wherein the first input terminal (111) is adapted to receive a first power supply voltage, and the second input terminal (112) is adapted to receive a second power supply voltage, wherein the second power supply voltage is lower than the first power supply voltage; a power output circuit (10) connected to the first input terminal (111) and capable of using the first power supply voltage as a power supply voltage for the motor of the electric bicycle when the first input terminal (111) receives the first power supply voltage; an anti-reverse circuit (14), an input end of which is connected to the first input terminal (111) and the second input terminal (112), and an output end of which is connected to a common node (17); a first DC-DC converter (131), whose input terminal is connected to the common node (17), whose output terminal is connected to the power output circuit (10), and adapted to provide a control voltage lower than the first power supply voltage to the power output circuit (10); and A second DC-DC converter (132) has an input end connected to the common node (17), and an output end providing an operating voltage for powering the central control system (2) of the electric bicycle, wherein the operating voltage is lower than the first power supply voltage and the second power supply voltage.
2. The motor controller (1) according to claim 1, wherein the anti-reverse circuit (14) includes a first diode and a second diode, the anode of the first diode is connected to the first input terminal (111), the cathode of the first diode is connected to the common node (17), the anode of the second diode is connected to the second input terminal (112), and the cathode of the second diode is connected to the common node (17).
3. The motor controller (1) according to claim 1 further comprises a third DC-DC converter (133), wherein an input end of the third DC-DC converter (133) is connected to an output end of the first DC-DC converter (131) to step down the control voltage.
4. The motor controller (1) according to claim 1, further comprising a voltage detection circuit (15), wherein the voltage detection circuit (15) is connected to the second input terminal (112) to detect whether the second power supply voltage is present at the second input terminal (112).
5. The motor controller (1) according to claim 1, further comprising a reserve unit (16), the reserve unit (16) being capable of replacing the second DC-DC converter (132) and having a resistance of 0Ω.
6. A motor control system (100), comprising: The motor controller (1) according to any one of claims 1 to 5; as well as A battery management system (3) is connected to the first interface circuit (11) of the motor controller (1), and is capable of supplying the first power supply voltage to the first input terminal (111) and the second power supply voltage to the second input terminal (112) when the electric bicycle is in an unlocked state, and supplying the second power supply voltage to the second input terminal (112) and stopping supplying the first power supply voltage to the first input terminal (111) when the electric bicycle is in a locked state.
7. A method for controlling power supply of a motor controller according to any one of claims 1 to 5, comprising: receiving a first signal for indicating a model of the electric bicycle; In response to the first signal indicating that the electric bicycle is of a first model and a borrowing and unlocking instruction is received, providing the first power supply voltage to the first input terminal; In response to the first signal indicating that the electric bicycle is of a first model and receiving a return and lock instruction, stopping providing the first power supply voltage to the first input terminal; as well as In response to the first signal indicating that the electric bicycle is a second model, the first power supply voltage is provided to the first input terminal.
8. The method according to claim 7, further comprising: Sending an authentication request event to the central control system of the electric bicycle; as well as When the authentication request event is sent a predetermined number of times in succession and no response result to the authentication request event is received from the central control system, the first power supply voltage is provided to the first input terminal.
9. The method according to claim 7, further comprising: determining whether a battery of the electric bicycle is in place; as well as In response to the battery being in place, providing the second supply voltage to the second input terminal; as well as In response to the battery being not in place, supplying the first power supply voltage to the first input terminal is stopped and supplying the second power supply voltage to the second input terminal is stopped.
10. The method according to claim 7, further comprising: Determining whether an abnormal restart occurs in the battery management system of the electric bicycle; In response to an abnormal restart of the battery management system, determining whether the battery management system was in an output state before the abnormal restart and whether the battery of the electric bicycle is in place; In response to the battery management system being in an output state before the abnormal restart and the battery of the electric bicycle being in place, the first power supply voltage is provided to the first input terminal.
11. The method according to claim 7, wherein the first signal is received from a central control system of the electric bicycle via a controller area network bus.
12. A device for controlling power supply of a motor controller, comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the apparatus to perform a method according to any one of claims 7 to 11 when executed by the at least one processing unit.
13. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 7 to 11.