Electric vehicle control method, device and equipment and storage medium
By converting the analog signal of the electric vehicle into a digital signal and using the CAN bus and MOSFET to drive the control object, the problem of the susceptibility of the analog signal of the electric vehicle is solved, achieving more efficient control and reducing maintenance costs.
Patent Information
- Application Number
- CN202510598200.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-09
- Publication Date
- 2025-08-08
AI Technical Summary
The analog signal of electric two-wheeled vehicles has poor anti-interference ability and is prone to distortion, resulting in abnormal or out of control of the vehicle, and the redundant wiring harness increases maintenance costs.
The analog signal of the electric vehicle is converted into a digital signal, and sent to the control object unit through the CAN bus, and the control object is driven by the MOSFET to realize differential transmission of the digital signal.
It improves the control accuracy and response speed of electric vehicles, reduces the number of wire harnesses and maintenance costs, and reduces the failure rate caused by poor wire harness contact.
Smart Images

Figure CN120447453A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric vehicle control technology, and in particular to an electric vehicle control method, device, equipment and storage medium. Background Art
[0002] Electric two-wheelers, leveraging their evolving technology, are transforming how people travel and driving urban transportation towards a greener, smarter, and more efficient future. With the global emphasis on green mobility, market demand for electric two-wheelers, driven by their low-carbon and environmentally friendly features, is rapidly growing. Especially in lower-tier cities and rural areas with underdeveloped public transportation, electric two-wheelers, with their convenience and low cost, are an ideal means of short-distance transportation.
[0003] Currently, electric two-wheeled vehicles use batteries as auxiliary energy sources and integrate mechatronic components such as motors, controllers, and display systems, providing a more convenient means of transportation. The throttle signals on traditional electric two-wheeled vehicles are typically analog. These analog voltage signals are used to control vehicle movement.
[0004] However, analog signals have poor anti-interference capabilities and are prone to signal distortion, causing vehicle abnormalities or loss of control. In addition, wiring harness redundancy increases vehicle maintenance costs. Summary of the Invention
[0005] The present invention provides an electric vehicle control method, device, equipment and storage medium to solve the problems that analog signals in the vehicle are easily interfered with and the vehicle maintenance cost is high.
[0006] In a first aspect, the present invention provides an electric vehicle control method, comprising:
[0007] Get the current electric vehicle control analog signal;
[0008] Converting the control analog signal into a control digital signal using an analog-to-digital conversion module;
[0009] The control digital signal is sent to the control object unit via the CAN bus, so as to control the current electric vehicle via the control object unit.
[0010] In a second aspect, the present invention provides an electric vehicle control device, comprising:
[0011] A signal acquisition module is used to obtain the current electric vehicle control analog signal;
[0012] A signal conversion module, configured to convert the control analog signal into a control digital signal using an analog-to-digital conversion module;
[0013] The first control module is used to send the control digital signal to the control object unit through the CAN bus, so as to control the current electric vehicle through the control object unit.
[0014] In a third aspect, the present invention provides an electronic device, comprising:
[0015] at least one processor;
[0016] and a memory communicatively coupled to the at least one processor;
[0017] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the electric vehicle control method of the first aspect mentioned above.
[0018] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer instructions, which are used to enable a processor to implement the electric vehicle control method of the first aspect when executed.
[0019] The electric vehicle control solution provided by the present invention obtains an analog control signal from the current electric vehicle, converts the analog control signal into a digital control signal using an analog-to-digital conversion module, and transmits the digital control signal to a control target unit via a CAN bus, thereby controlling the current electric vehicle via the control target unit. By adopting this technical solution, the analog control signal for the electric vehicle is converted into a digital signal, and then transmitted to the control target via a CAN bus. This not only achieves accurate control of the electric vehicle, improving vehicle safety and response speed, but also saves wiring harnesses and significantly reduces costs.
[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 This is a flow chart of an electric vehicle control method provided according to the first embodiment of the present invention;
[0023] Figure 2 This is a flow chart of an electric vehicle control method provided according to a second embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of the architecture of an electric vehicle provided according to the second embodiment of the present invention;
[0025] Figure 4 This is a schematic structural diagram of an electric vehicle control device provided according to a third embodiment of the present invention;
[0026] Figure 5 It is a structural diagram of an electronic device provided according to the fourth embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first," "second," and the like in the specification and claims of the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than that illustrated or described herein. In the description of the present invention, unless otherwise specified, "plurality" refers to two or more. "And / or" describes an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.
[0029] Example 1
[0030] Figure 1A flowchart of an electric vehicle control method is provided for the first embodiment of the present invention. This embodiment is applicable to the case of controlling multi-wheeled electric vehicles, such as electric two-wheeled vehicles. The method can be executed by an electric vehicle control device, which can be implemented in the form of hardware and / or software. The electric vehicle control device can be configured in an electronic device, which can be composed of two or more physical entities or one physical entity.
[0031] like Figure 1 As shown, the electric vehicle control method provided in the first embodiment of the present invention can be applied to electric vehicles and specifically includes the following steps:
[0032] S101: Acquire a current control analog signal of the electric vehicle.
[0033] In this embodiment, the user can trigger the current electric vehicle to generate a control analog signal by touching the screen, pressing, rotating, etc. For example, the acceleration analog signal can be generated by rotating the handlebar.
[0034] S102: Convert the control analog signal into a control digital signal using an analog-to-digital conversion module.
[0035] In this embodiment, a current electric vehicle may be pre-installed with an analog-to-digital conversion module, which can be used to convert a control analog signal into a control digital signal.
[0036] S103: Send the control digital signal to the control object unit through the CAN bus, so as to control the current electric vehicle through the control object unit.
[0037] In this embodiment, a CAN bus may be pre-arranged in the current electric vehicle, and a control digital signal may be sent to a control target unit, such as a motor controller unit, via the CAN bus to control the speed of the current electric vehicle via the motor controller unit.
[0038] The electric vehicle control method provided by an embodiment of the present invention obtains an analog control signal from the current electric vehicle, converts the analog control signal into a digital control signal using an analog-to-digital conversion module, and transmits the digital control signal to a control target unit via a CAN bus, thereby controlling the current electric vehicle via the control target unit. The technical solution of an embodiment of the present invention converts the analog control signal for the electric vehicle into a digital signal and then transmits the digital signal to the control target via a CAN bus. This not only achieves accurate control of the electric vehicle, improving vehicle safety and response speed, but also saves wiring harnesses and significantly reduces costs.
[0039] Optionally, the control digital signal is sent to the control object unit via the CAN bus to control the current electric vehicle via the control object unit, including: if the control digital signal includes a second control signal for controlling a second object, the second control signal is differentially transmitted to the microcontroller unit MCU in the liquid-cooled motor module via the CAN bus, wherein the second object includes the liquid-cooled motor in the liquid-cooled motor module; and the liquid-cooled motor is instructed by the MCU to execute the instruction corresponding to the second control signal to achieve control of the speed of the current electric vehicle.
[0040] Specifically, the current driving motor of the electric vehicle can be a digital liquid-cooled motor. If the control digital signal includes a digital signal for controlling the liquid-cooled motor (i.e., a second control signal for controlling the second object), the digital signal is differentially transmitted to the MCU in the liquid-cooled motor module via the CAN bus. The MCU can execute the instructions corresponding to the digital signal to control the wheel speed of the current electric vehicle. Among them, differential transmission is a signal transmission technology. Different from the traditional practice of one signal line and one ground line, differential transmission transmits signals on both lines. The two signals have the same amplitude and opposite phases. The signal receiving end determines the logical state sent by the sending end by comparing the voltage difference of the signals on the two lines.
[0041] Optionally, after the MCU instructs the liquid-cooled motor to execute the instruction corresponding to the control digital signal, it also includes: differentially transmitting the wheel speed signal of the current vehicle to the instrument display screen through the CAN bus.
[0042] Specifically, the wheel speed signal of the current vehicle can be differentially transmitted to the instrument display screen via the CAN bus, so that the wheel speed can be displayed on the instrument display screen.
[0043] Optionally, the CAN bus includes: a power line, a ground line, a low-order data line CAN-L and a high-order data line CAN-H.
[0044] Specifically, traditional vehicle front and rear lighting controls and controllers are typically independent wiring units with numerous leads, numerous plug-ins, and a relatively complex design. The main wiring harness typically has 16 to 18 wires. However, this solution enables vehicle control via a four-wire CAN bus. This eliminates 12 to 14 wires, significantly reducing costs and lowering the risk of failures caused by poor contact between plug-ins and wiring harnesses.
[0045] Example 2
[0046] Figure 2 This is a flow chart of a method for controlling an electric vehicle provided in the second embodiment of the present invention. The technical solution of the embodiment of the present invention is further optimized on the basis of the above-mentioned optional technical solutions, and provides a specific method for controlling a multi-wheeled electric vehicle.
[0047] Optionally, the control analog signal includes a handlebar control analog signal; wherein, using an analog-to-digital conversion module to convert the control analog signal into a control digital signal includes: using the analog-to-digital conversion module built into the front electronic control unit FECU of the current electric vehicle to convert the handlebar control analog signal into a control digital signal.
[0048] Optionally, the FECU further has a built-in first metal oxide semiconductor field effect transistor MOSFET;
[0049] Among them, after the control analog signal is converted into a control digital signal by using the analog-to-digital conversion module, it also includes: if the control digital signal includes a first control signal for controlling a first object, then through the first MOSFET in the FECU, the first object of the current electric vehicle is controlled according to the first control signal, wherein the first object includes a mobile phone charging device, a voice speaker, a headlight, a horn and an electric vehicle lock.
[0050] Optionally, the current electric vehicle is equipped with a rear electronic control unit RECU; the RECU has a built-in second MOSFET; wherein, the control digital signal is sent to the control object unit via the CAN bus to control the current electric vehicle via the control object unit, including: if the control digital signal includes a third control signal for controlling a third object, the third control signal is differentially transmitted to the RECU via the CAN bus, wherein the third object includes a breathing light, a license plate light, a taillight and a saddle lock; and the third object in the current electric vehicle is controlled according to the third control signal through the second MOSFET in the RECU.
[0051] like Figure 2 As shown, a second embodiment of the present invention provides an electric vehicle control method, which specifically includes the following steps:
[0052] S201: Acquire a current analog signal of a handlebar control of the electric vehicle.
[0053] S202: Utilize the analog-to-digital conversion module built into the front electronic control unit (FECU) of the current electric vehicle to convert the handlebar control analog signal into a control digital signal.
[0054] Specifically, Figure 3 Figure 1 is a schematic diagram of the structure of an electric vehicle. Figure 3As shown, current electric vehicles can be equipped with a front electronic control unit (FECU). The left handlebar 101, instrument display 102, right handlebar 103, mobile phone charger 104, voice speaker 105, left headlight 106, electric vehicle lock 107, horn 108, and right headlight 109 are electrically connected to the FECU. An analog-to-digital conversion module can be pre-installed in the FECU. The FECU is used to convert analog signals into digital signals.
[0055] S203. Convert the handlebar control analog signal into a control digital signal using an analog-to-digital conversion module, wherein the control digital signal includes a first control signal for controlling a first object, a second control signal for a second object, and a third control signal for a third object.
[0056] S204 : Control a first object of the current electric vehicle according to the first control signal through the first MOSFET in the FECU.
[0057] Among them, the first objects include a mobile phone charging device, a voice speaker, a headlight, a horn and an electric vehicle lock.
[0058] Specifically, existing vehicles directly control the first object through mechanical switches, while the present invention drives the first object through signal processing and MOSFETs. Since the signal switch does not draw current, its service life can be significantly extended. The FECU can include multiple MOSFETs. Upon receiving the first control signal, these MOSFETs can drive the mobile phone charger, voice speaker, headlights, horn, and electric vehicle locks.
[0059] S205. Differentially transmit the second control signal to the microcontroller unit MCU in the liquid-cooled motor module through the CAN bus, wherein the second object includes the liquid-cooled motor in the liquid-cooled motor module; instruct the liquid-cooled motor to execute the instruction corresponding to the second control signal through the MCU to control the speed of the current electric vehicle.
[0060] Specifically, the integrated powertrain control system is subject to interference from the electromagnetic field inside the motor, which can interfere with the traditional analog signal from the handlebar, affecting vehicle riding. Digital signals are differentially transmitted to the control object via the CAN bus, effectively suppressing interference.
[0061] S206. Differentially transmit the third control signal to the rear electronic control unit RECU via the CAN bus; control a third object in the current electric vehicle according to the third control signal via the second MOSFET in the RECU, wherein the current electric vehicle is equipped with the RECU and the second MOSFET is built into the RECU.
[0062] The third object includes a breathing light, a license plate light, a tail light and a saddle lock.
[0063] Specifically, such as Figure 3 As shown, the current electric vehicle is equipped with a rear electronic control unit (RECU). The liquid-cooled motor module 110, the left breathing light 111, the license plate light 112, the tail light 113, the saddle lock 114, the right breathing light 115, the battery pack 116, the first heating plate 117, the second heating plate 117, the battery temperature display screen 119 and the charging interface 120 are electrically connected to the RECU respectively, and the connection between the FECU and the RECU is a CAN bus. Multiple MOSFETs can be built into the RECU. The RECU is electrically connected to the main power supply battery of the current electric vehicle (such as a 72V lead-acid battery), and the RECU can power the FECU, MCU, instrument display screen and vehicle handlebars. After receiving the third control signal, these MOSFETs can drive the breathing light, license plate light, taillight and saddle lock.
[0064] S207 : Differentially transmit the current vehicle's wheel speed signal to the instrument display screen via the CAN bus.
[0065] For example, the current control methods for electric vehicles include the following 14 items:
[0066] 1. Receive the analog signal that triggers the push-to-start function. After analog-to-digital conversion, the FECU forwards the analog signal to the RECU via the CAN bus. The RECU then turns on the vehicle's power supply, illuminating the instrument cluster. Simultaneously, the RECU closes the MOSFETs in the left and right breathing lights and the license plate light, illuminating them. The MOSFET in the mobile phone charger also closes.
[0067] 2. Receive the analog signal that triggers the horn switch. After the analog signal is converted to a digital signal, it is forwarded by the FECU to the RECU via the CAN bus. The RECU drives the MOSFET of the horn to close, causing the horn to sound.
[0068] 3. Receive the analog signal that triggers the left and right turn signals. After the analog signal is converted to a digital signal, it is forwarded by the FECU to the RECU via the CAN bus. The RECU turns on the MOSFETs of the left and right turn signals, illuminating them.
[0069] 4. Receive the analog signal that triggers the high and low beams. This analog signal is converted to a digital signal and then forwarded by the FECU to the RECU via the CAN bus. The RECU turns on the MOSFETs of the left and right headlights, illuminating the low beams. Receive the analog signal that triggers the high and low beam switching. This analog signal is converted to a digital signal and then forwarded by the FECU to the RECU via the CAN bus. The RECU activates the low and high beam switching.
[0070] 5. Receive the analog signal that triggers the overtaking switch. After the analog signal is converted to a digital signal, it is forwarded by the FECU via the CAN bus to the digital liquid-cooled motor integrated power control system, triggering acceleration for overtaking.
[0071] 6. Receives the analog signal that triggers the upshift or downshift switch. After the analog signal is converted to a digital signal, it is forwarded by the FECU via the CAN bus to the digital liquid-cooled motor integrated power control system to perform the three-gear shift.
[0072] 7. Receive the analog signal that triggers the double flash switch. After the analog signal is converted to a digital signal, it is forwarded by the FECU to the RECU via the CAN bus. The FECU drives the MOSFETs of the left and right lights to close, causing the left and right turn signals to flash and illuminate.
[0073] 8. Receive the analog signal that triggers cruise control. After the analog signal is converted to a digital signal, it is forwarded by the FECU via the CAN bus to the digital liquid-cooled motor integrated power control system, triggering cruise control.
[0074] 9. Receive the analog signal that triggers reverse. After the analog signal is converted into a digital signal, it is forwarded by the FECU via the CAN bus to the digital liquid-cooled motor integrated power control system to trigger reverse.
[0075] 10. Receive the analog signal that triggers the saddle lock switch. After the analog signal is converted to a digital signal, it is forwarded by the FECU to the RECU via the CAN bus. The RECU drives the MOSFET of the saddle lock to close, and the saddle lock is opened.
[0076] 11. Receive the analog signal that triggers the light-sensing switch. After the analog signal is converted to a digital signal, it is forwarded by the FECU to the RECU via the CAN bus. The FECU activates the light-sensing headlight function.
[0077] 12. Receive the analog signal that triggers the headlight switch. After the analog signal is converted to a digital signal, it is forwarded by the FECU to the RECU via the CAN bus. The FECU turns on the MOSFETs of the left and right headlights, illuminating the headlights.
[0078] 13. Receive the analog signal that triggers the brake switch. After analog-to-digital conversion, the analog signal is forwarded by the FECU via the CAN bus to the RECU and the digital liquid-cooled motor integrated power control system, which activates the brakes. Simultaneously, the taillight MOSFET closes, illuminating the brake lights.
[0079] 14. Receive the analog signal that triggers the throttle signal. After the analog signal is converted into a digital signal, it is forwarded by the FECU via the CAN bus to the digital liquid-cooled motor integrated power control system for speed control.
[0080] The electric vehicle control method provided by the embodiment of the present invention uses MOSFET to drive the control object, greatly extending the service life of the switch, and differentially transmits the digital signal to the control object through the CAN bus, which can effectively suppress interference, reduce wiring costs, and reduce the failure rate caused by poor contact between the plug-in and the wiring harness.
[0081] Example 3
[0082] Figure 4 This is a schematic diagram of the structure of an electric vehicle control device provided by the third embodiment of the present invention. Figure 4 As shown, the device includes: a signal acquisition module 301, a signal conversion module 302 and a first control module 303, wherein:
[0083] A signal acquisition module is used to obtain the current electric vehicle control analog signal;
[0084] A signal conversion module, configured to convert the control analog signal into a control digital signal using an analog-to-digital conversion module;
[0085] The first control module is used to send the control digital signal to the control object unit through the CAN bus, so as to control the current electric vehicle through the control object unit.
[0086] The electric vehicle control device provided in an embodiment of the present invention converts the analog signal for controlling the electric vehicle into a digital signal, and then sends the digital signal to the controlled object through the CAN bus. This not only achieves accurate control of the electric vehicle and improves vehicle safety and response speed, but also saves wiring harnesses and greatly reduces costs.
[0087] Optionally, the control analog signal includes a handlebar control analog signal;
[0088] The signal conversion module is specifically used to utilize the analog-to-digital conversion module built into the front electronic control unit FECU of the current electric vehicle to convert the handlebar control analog signal into a control digital signal.
[0089] Optionally, the FECU further has a built-in first metal oxide semiconductor field effect transistor MOSFET;
[0090] The device also includes:
[0091] The second control module is used to control the first object of the current electric vehicle according to the first control signal through the first MOSFET in the FECU after the control analog signal is converted into a control digital signal by the analog-to-digital conversion module, if the control digital signal includes a first control signal for controlling a first object, wherein the first object includes a mobile phone charging device, a voice speaker, a headlight, a horn and an electric vehicle lock.
[0092] Optionally, the first control module includes:
[0093] a first differential transmission unit, configured to differentially transmit the second control signal to a microcontroller unit MCU in a liquid-cooled motor module via a CAN bus if the control digital signal includes a second control signal for controlling a second object, wherein the second object includes a liquid-cooled motor in the liquid-cooled motor module;
[0094] The first control unit is used to instruct the liquid-cooled motor to execute the instruction corresponding to the second control signal through the MCU, so as to control the speed of the current electric vehicle.
[0095] Optionally, the current electric vehicle is equipped with a rear electronic control unit RECU; the RECU has a second MOSFET built in;
[0096] The first control module includes:
[0097] a second differential transmission unit, configured to differentially transmit the third control signal to the RECU via a CAN bus if the control digital signal includes a third control signal for controlling a third object, wherein the third object includes a breathing light, a license plate light, a tail light, and a saddle lock;
[0098] The second control unit is configured to control a third object in the current electric vehicle according to the third control signal through the second MOSFET in the RECU.
[0099] Optionally, the first control module further includes:
[0100] The third differential transmission unit is used to differentially transmit the wheel speed signal of the current vehicle to the instrument display screen through the CAN bus after the MCU instructs the liquid-cooled motor to execute the instruction corresponding to the control digital signal.
[0101] Optionally, the CAN bus includes: a power line, a ground line, a low-order data line CAN-L and a high-order data line CAN-H.
[0102] The electric vehicle control device provided in the embodiment of the present invention can execute the electric vehicle control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0103] Example 4
[0104] Figure 5 Schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device can be a digital computer built into the electric multi-wheeled vehicle. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0105] like Figure 5 As shown, the electronic device 40 may include at least one processor 41, and a memory, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., which is communicatively connected to the at least one processor 41. The memory stores a computer program that can be executed by the at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 into the random access memory (RAM) 43. Various programs and data required for the operation of the electronic device 40 can also be stored in the RAM 43. The processor 41, ROM 42, and RAM 43 are connected to each other via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0106] Multiple components in the electronic device 40 are connected to the I / O interface 45, including an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a magnetic disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0107] The processor 41 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as the electric vehicle control method.
[0108] In some embodiments, the electric vehicle control method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the electric vehicle control method described above can be performed. Alternatively, in other embodiments, the processor 41 can be configured to execute the electric vehicle control method in any other appropriate manner (for example, by means of firmware).
[0109] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip (SOC) systems, complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0110] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0111] The computer device provided above can be used to execute the electric vehicle control method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0112] Example 5
[0113] In the context of the present invention, a computer-readable storage medium may be a tangible medium, wherein the computer-executable instructions, when executed by a computer processor, are used to perform an electric vehicle control method, the method comprising:
[0114] Get the current electric vehicle control analog signal;
[0115] Converting the control analog signal into a control digital signal using an analog-to-digital conversion module;
[0116] The control digital signal is sent to the control object unit via the CAN bus, so as to control the current electric vehicle via the control object unit.
[0117] In the context of the present invention, computer-readable storage medium can be a tangible medium that can contain or store a computer program for use with an instruction execution system, device or equipment or used in conjunction with an instruction execution system, device or equipment. Computer-readable storage medium can include but is not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0118] The computer device provided above can be used to execute the electric vehicle control method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0119] It is worth noting that in the embodiment of the above-mentioned electric vehicle control device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0120] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for controlling an electric vehicle, characterized in that: include: Get the current electric vehicle control analog signal; Converting the control analog signal into a control digital signal using an analog-to-digital conversion module; The control digital signal is sent to the control object unit via the CAN bus, so as to control the current electric vehicle via the control object unit.
2. The method according to claim 1, characterized in that The control analog signal includes a handlebar control analog signal; wherein, converting the control analog signal into a control digital signal using an analog-to-digital conversion module includes: The analog-to-digital conversion module built into the front electronic control unit FECU of the current electric vehicle is used to convert the handlebar control analog signal into a control digital signal.
3. The method according to claim 2, characterized in that The FECU also has a built-in first metal oxide semiconductor field effect transistor MOSFET; Wherein, after converting the control analog signal into a control digital signal by using the analog-to-digital conversion module, the method further includes: If the control digital signal includes a first control signal for controlling a first object, the first object of the current electric vehicle is controlled according to the first control signal through the first MOSFET in the FECU, wherein the first object includes a mobile phone charging device, a voice speaker, a headlight, a horn and an electric vehicle lock.
4. The method according to any one of claims 1 to 3, characterized in that The step of sending the control digital signal to the control object unit via the CAN bus to control the current electric vehicle via the control object unit includes: If the control digital signal includes a second control signal for controlling a second object, differentially transmitting the second control signal to a microcontroller unit MCU in a liquid-cooled motor module via a CAN bus, wherein the second object includes a liquid-cooled motor in the liquid-cooled motor module; The MCU instructs the liquid-cooled motor to execute the instruction corresponding to the second control signal to control the speed of the current electric vehicle.
5. The method according to claim 1, characterized in that Current electric vehicles are equipped with a rear electronic control unit (RECU); the RECU has a second MOSFET built in; The step of sending the control digital signal to the control object unit via the CAN bus to control the current electric vehicle via the control object unit includes: If the control digital signal includes a third control signal for controlling a third object, differentially transmitting the third control signal to the RECU via the CAN bus, wherein the third object includes a breathing light, a license plate light, a tail light, and a saddle lock; The third object in the current electric vehicle is controlled according to the third control signal through the second MOSFET in the RECU.
6. The method according to claim 4, characterized in that After the MCU instructs the liquid-cooled motor to execute the instruction corresponding to the control digital signal, the method further includes: The current vehicle's wheel speed signal is differentially transmitted to the instrument display via the CAN bus.
7. The method according to claim 1, characterized in that The CAN bus includes: a power line, a ground line, a low-order data line CAN-L and a high-order data line CAN-H.
8. An electric vehicle control device, characterized in that: include: A signal acquisition module is used to obtain the current electric vehicle control analog signal; A signal conversion module, configured to convert the control analog signal into a control digital signal using an analog-to-digital conversion module; The first control module is used to send the control digital signal to the control object unit through the CAN bus, so as to control the current electric vehicle through the control object unit.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the electric vehicle control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the electric vehicle control method according to any one of claims 1 to 7 when executed.