Driving mode signal source switching method, computer device, vehicle and storage medium
By configuring signal source flag values and CAN bus switching methods, the problem of switching between different signal sources in the vehicle control device is solved, enabling flexible driving mode switching, reducing development costs and time, and shortening the vehicle delivery cycle.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2026-03-10
AI Technical Summary
In existing technologies, vehicle control devices need to be reconfigured for different driving modes and signal sources, resulting in high material management costs, long development cycles, and inability to be directly applied to vehicle models with different signal sources.
A method for switching driving mode signal sources is provided. By configuring signal source flag values, the CAN bus is used to realize the switching modes of hard wiring, gear position and screen. The vehicle control device switches the driving mode of different signal sources according to the configuration parameters.
It enables flexible switching between signal sources for different driving modes, reduces development costs and time, avoids material classification management, and shortens vehicle delivery cycles.
Smart Images

Figure CN121625980A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control, specifically to a method for switching between signal sources of different vehicle driving modes, and also to a corresponding computer device, vehicle, and computer-readable storage medium. Background Technology
[0002] To cater to the preferences of diverse user groups, manufacturers offer various driving modes, such as Normal, ECO, and Sport. Vehicle control units, such as the Vehicle Control Unit (VCU), switch between different driving modes upon receiving the driver's driving mode signal. Generally, automakers provide driving mode signals through three signal sources: physical buttons, gear shifters, and screens (such as the central control screen). Different vehicle configurations are equipped with corresponding driving mode signal sources. For example, some models allow switching between driving modes via physical buttons, while others use options provided by the gear shifter or a screen. This necessitates the categorization and management of vehicle control devices and configuration information applicable to different vehicle models.
[0003] Furthermore, when configuring driving mode switching methods for different vehicle models, control devices designed for models that send driving mode signals via physical buttons cannot be directly applied to models that send signals via the gear shifter or on-screen options. Reconfiguration of both hardware and software is required. For example, a control device for a model sending a request signal via physical buttons cannot be directly applied to a model sending a driving mode signal via the gear shifter. A communication interface and protocol need to be configured to enable communication between the gear shifter and the vehicle's control device, allowing the vehicle's control device to receive the driving mode signal from the gear shifter. Similarly, a control device for a model sending a driving mode signal via the gear shifter may lack pre-installed wiring terminals, making it unusable for models sending signals via physical buttons. When applying a control device for a model sending a driving mode signal via the gear shifter to a model sending signals via the screen, the communication interface and protocol between the display and the vehicle's control device need to be reconfigured to enable the vehicle's control device to receive the driving mode signal from the display. This increases material management costs, development cycle and costs, and extends vehicle delivery time. Summary of the Invention
[0004] The purpose of this invention is to provide a method for switching driving mode signal sources for vehicles, which can respond to different driving mode signal sources. When applied to vehicle models with different driving mode signal sources, only parameter configuration is required, and the vehicle's control device switches between different driving mode signal sources according to the configured parameters.
[0005] Another object of the present invention is to provide a computer device for controlling a vehicle, implementing the aforementioned method for switching driving mode signal sources for a vehicle, and capable of responding to driving mode signals sent from different signal sources.
[0006] Another object of the present invention is to provide a vehicle capable of transmitting and responding to driving mode signals from different signal sources.
[0007] Another object of the present invention is to provide a computer storage medium having stored thereon a program or instructions for implementing the aforementioned method for switching driving mode signal sources for a vehicle, so as to respond to driving mode signals sent from different signal sources.
[0008] This invention provides a method for switching driving mode signal sources for a vehicle. The method provides driving mode switching methods including hard-wired switching, gear shifting, and screen switching. The method includes configuration, setting, reading, and execution steps. In the configuration step, CAN bus signals for implementing gear shifting and screen switching are configured. In the setting step, the value of a signal source flag indicating the source of the driving mode signal is set and saved. The signal source flag indicates the source of the driving mode signal. The value of the signal source flag represents one of hard-wired, gear shifting, or screen switching, indicating the driving mode switching method. In the reading step, the value of the signal source flag is read. In the execution step, the corresponding driving mode switching method is executed according to the driving mode switching method indicated by the value of the signal source flag.
[0009] The driving mode signal source switching method for vehicles provided by this invention can respond to driving mode signals sent from different driving mode signal sources. When applied to vehicle models with different driving mode signal sources, only parameter configuration is required, and the vehicle control device can switch between different driving mode signal sources according to the configured parameters.
[0010] In one illustrative embodiment of the driving mode signal source switching method, the configuration step includes configuring the communication interface and communication protocol of the CAN bus for implementing gear shifting mode and screen shifting mode respectively, to adapt to the situation where driving mode switching mode is implemented by sending driving mode signals through the gear shifter or display.
[0011] In one illustrative embodiment of the driving mode signal source switching method, the execution steps include: when the value of the signal source flag indicates a hard wire, performing a hard wire switching method step to acquire and transmit a driving mode signal transmitted via a hard wire, and outputting the driving mode signal to realize a driving mode switching method where the driving mode signal source is a hard wire.
[0012] In another illustrative embodiment of the driving mode signal source switching method, the execution steps include: when the value of the signal source flag indicates a gear position, executing a gear switching mode step to acquire and transmit the driving mode signal transmitted by the vehicle's gear shifter via the CAN bus, and outputting the driving mode signal.
[0013] In another illustrative embodiment of the driving mode signal source switching method, the execution steps include: when the value of the signal source flag indicates the screen, performing a screen switching mode step to acquire and transmit the driving mode signal transmitted by the vehicle's display via the CAN bus, and outputting the driving mode signal.
[0014] This invention also provides a computer device for controlling a vehicle, comprising: a processor, a memory for storing programs or instructions, a CAN bus interface for connecting to the vehicle's CAN bus, and multiple hardwired terminals for connecting to the vehicle's driving mode physical buttons. When the processor executes the program or instructions stored in the memory, it implements the aforementioned driving mode signal source switching method to respond to driving mode signals sent from different signal sources. When this computer device is applied to vehicle models with different configuration requirements, only parameter configuration is required, without any additional changes to the software or hardware.
[0015] The present invention further provides a vehicle including the aforementioned computer device and a driving mode signal generator. The driving mode signal generator sends a driving mode signal to the computer device.
[0016] In one illustrative embodiment of the vehicle, the driving mode signal generator consists of multiple physical buttons. These physical buttons are connected to the hard-wired terminals of a computer device via hard-wired connections, enabling the transmission of driving mode signals to the computer device through the hard-wired connections. This achieves a driving mode switching method where the driving mode signal source is a hard-wired connection.
[0017] In another illustrative embodiment of the vehicle, the driving mode signal generator is a gear shifter. The gear shifter has a driving mode position and is connected to the vehicle's CAN bus, while the computer device is also connected to the CAN bus. When the gear shifter is moved to the driving mode position, it can send a driving mode signal to the computer device via the CAN bus, thus realizing a driving mode switching method where the driving mode signal source is the gear shifter.
[0018] In another illustrative embodiment of the vehicle, where the driving mode signal generator is a display, the display is connected to the vehicle's CAN bus, and the computer device is also connected to the CAN bus. The display screen can show multiple driving mode options. When one of the driving mode options is selected, the display can send a driving mode signal to the computer device via the CAN bus, thus realizing a driving mode switching method where the driving mode signal source is the display.
[0019] The present invention further provides a computer-readable storage medium having a program or instructions stored thereon, which, when the program or instructions are executed, implements the aforementioned driving mode signal source switching method.
[0020] The driving mode signal source switching method for vehicles provided by this invention can respond to driving mode signals sent from different driving mode signal sources. When applied to vehicle models with different driving mode signal sources, only parameter configuration is required. The vehicle's control device can switch between different driving mode signal sources according to the configured parameters. This eliminates the need to redevelop the vehicle's control device and classify and manage materials, facilitating vehicle production scheduling, thereby saving development time and costs, and shortening the vehicle delivery cycle. Attached Figure Description
[0021] The following figures are for illustrative purposes only and do not limit the scope of the invention.
[0022] Figure 1 A schematic block diagram illustrating one application of the computer device according to the present invention is shown.
[0023] Figure 2 A schematic block diagram illustrating another application of the computer device according to the present invention is shown.
[0024] Figure 3 A schematic flowchart of the method according to the present invention is shown.
[0025] Label Explanation 10. Computer devices 20 CAN bus 30 Driving Mode Signal Generator S100 Configuration Steps S200 Setup Steps S300 Reading Steps S400 Execution Steps S410 Hard-wire switching procedure S420 Gear Shifting Procedure S430 Screen Switching Procedure Detailed Implementation
[0026] To provide a clearer understanding of the technical features, objectives, and effects of the invention, specific embodiments of the invention are now described with reference to the accompanying drawings. In the drawings, the same reference numerals indicate components with the same or similar structures but the same function.
[0027] In this document, “illustrative” means “serving as an example, illustration or description”, and any illustration or implementation described herein as “illustrative” should not be construed as a more preferred or advantageous technical solution.
[0028] To keep the drawings simple, each figure only schematically shows the parts related to the present invention, and they do not represent the actual process of the method and / or the actual structure of the product.
[0029] Figure 1 A schematic block diagram of one application of the computer device 10 according to the present invention is shown. Figure 2 A schematic block diagram illustrating another application of the computer device 10 according to the present invention is shown. Figure 1 and 2 As shown, the computer unit 10 for a vehicle has hard-wired terminals and a CAN bus interface. The computer unit 10 can be a VCU, ECU, or other computer unit that can be used to control the vehicle. Figure 1 As shown, the driving mode signal generator 30 can be hardwired to the hardwired terminal block of the computer device 10, thereby sending a driving mode signal to the computer device 10 via a hardwire. Figure 2 As shown, the driving mode signal generator 30 can be connected to the vehicle's CAN bus 20 via its CAN bus interface, and the computer device 10 can be connected to the CAN bus 20 via its CAN bus interface, thereby enabling the driving mode signal generator 30 to send driving mode signals to the computer device 10 via the CAN bus 20. The driving mode signal generator 30 includes physical buttons, a gear selector, and a display, but is not limited to these; it may also include other onboard devices capable of sending driving mode signals.
[0030] The computer device 10 also includes a processor and memory. The memory includes volatile memory and non-volatile memory. For example, volatile memory may include, but is not limited to, random access memory (RAM) and cache memory, etc., while non-volatile memory may include, but is not limited to, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), and electronically erasable programmable read-only memory (EEPROM). 2 PROM and flash memory, etc.
[0031] In one example, where the driving mode signal generator 30 consists of multiple physical buttons, these physical buttons are connected via hardwired terminals to the computer device 10 to send driving mode signals to the computer device 10. For example, the computer device 10 may have two or three hardwired terminals, allowing the vehicle to send driving mode signals to the computer device 10 via multiple driving mode buttons. The hardwired cable can be a twisted pair, coaxial cable, or shielded cable, but is not limited to these; it can be any suitable cable.
[0032] In another example, when the driving mode signal generator 30 is a gear shifter, the gear shifter has a driving mode position and is connected to the CAN bus 20. When the gear shifter is moved to the driving mode position, it can send a driving mode signal to the computer device 10 via the CAN bus 20. For example, in a vehicle model configured to send driving mode signals via the gear shifter, the gear shifter has a position for adjusting the driving mode, so that the driver can send a change driving mode signal to the computer device 10 via the CAN bus 20 by operating the gear shifter.
[0033] In another example, where the driving mode signal generator 30 is a display, the display is connected to the CAN bus 20, and the display screen can show multiple driving mode options. When one of the driving mode options is selected, the display can send a driving mode signal to the computer device 10 via the CAN bus 20. For example, the vehicle's central control screen provides options for selecting driving modes, such as menu options. After the user selects a driving mode, the central control screen sends the corresponding driving mode signal to the computer device 10 via the CAN bus 20.
[0034] Figure 3 A schematic flowchart of a driving mode signal source switching method for a vehicle according to the present invention is shown. The driving mode signal source switching method for a vehicle includes a configuration step S100, a setting step S200, a reading step S300, and an execution step S400.
[0035] Driving mode switching methods include hard-line switching, gear shifting, and screen switching.
[0036] In configuration step S100, the CAN bus signals for implementing the gear shifting mode and the screen switching mode are configured. For example, in one example, configuration step S100 includes configuring the communication interface and communication protocol of the CAN bus for implementing the gear shifting mode and the screen switching mode, respectively, to accommodate the case where the driving mode switching mode is implemented by sending a driving mode signal through the gear shifter or display. For example, the interface and protocol for transmitting driving mode signals between the vehicle control device 10 and the driving mode signal generator 30 are defined in the system. For example, a parameter Signal_DrivingMode is defined to represent the driving mode signal, which is transmitted via the CAN bus to indicate the driving mode selected by the vehicle driver. The driving modes include Normal, ECO, and SPORT driving modes.
[0037] For example, the value of the driving mode signal Signal_DrivingMode can be defined as follows: Flag_DrivingMode=0X00: Represents normal driving mode; Flag_DrivingMode=0X01: Represents energy-saving driving mode; Flag_DrivingMode=0X02: Represents sport driving mode.
[0038] Driving modes can also include other driving modes such as comfort driving mode, and the value of the driving mode signal Signal_DrivingMode is further defined according to the encoding rules. The value of the driving mode signal Signal_DrivingMode can also use other encoding methods.
[0039] When the driving mode signal generator 30 is a gear shifter or display, it sends a driving mode signal according to the communication protocol defined above. At the same time, the vehicle control unit 10 receives the driving mode signal according to the communication protocol defined above. For example, the vehicle manufacturer sets the driving mode signal Signal_DrivingMode on the gear shifter or display (e.g., the central control screen) according to the protocol defined above, and sends the driving mode signal Signal_DrivingMode through the CAN bus transceiver of the gear shifter or display.
[0040] Define a signal source flag Flag_DrivingModeSignalSource in the system. The signal source flag is used to indicate the source of the driving mode signal, and its value indicates the driving mode switching method.
[0041] For example, the value of the signal source flag Flag_DrivingModeSignalSource can be defined as follows: Flag_DrivingModeSignalSource=0X00: This indicates that the signal source is a hard wire, representing the hard wire switching mode; Flag_DrivingModeSignalSource=0X01: This indicates that the signal source is the gear shifter, representing the gear switching mode; Flag_DrivingModeSignalSource=0X02: This indicates that the signal source is the display and represents the screen switching mode.
[0042] The value of the signal source flag Flag_DrivingModeSignalSource can also use other encoding methods.
[0043] In setting step S200, the value of the signal source flag Flag_DrivingModeSignalSource, which indicates the source of the driving mode signal, is set and saved, for example, in the memory of the computer device 10. The value of the signal source flag Flag_DrivingModeSignalSource represents one of the following: a hard line, a gear position, or a screen. For example, when the vehicle is off the production line, the parameters of the vehicle's control device are configured, i.e., the value of the signal source flag Flag_DrivingModeSignalSource is set. For example, for a vehicle model configured to issue a driving mode signal via a physical button, the value of the signal source flag Flag_DrivingModeSignalSource is set to 0x00, etc.
[0044] In the reading step S300, the value of the signal source flag Flag_DrivingModeSignalSource is read. For example, when the vehicle is powered on, the value of the signal source flag Flag_DrivingModeSignalSource is read from the memory of the vehicle's control unit 10.
[0045] In step S400, the corresponding driving mode switching method is executed according to the driving mode switching method indicated by the value of the signal source flag Flag_DrivingModeSignalSource.
[0046] In one example, step S400 includes: when the value of the signal source flag indicates a hard wire, performing the hard wire switching mode step S410, acquiring and transmitting the driving mode signal transmitted via the hard wire, and outputting the driving mode signal, thereby realizing the driving mode switching mode where the driving mode signal source is a hard wire.
[0047] In another example, when the value of the signal source flag indicates the gear position, the gear shifting method step S420 is executed to acquire and transmit the driving mode signal transmitted by the vehicle's gear shifter via the CAN bus, and to output the driving mode signal, thereby realizing the driving mode shifting method where the driving mode signal source is the gear shifter.
[0048] In another example, when the value of the signal source flag indicates the screen, the screen switching mode step S430 is executed to acquire and transmit the driving mode signal transmitted by the vehicle's display via the CAN bus, and to output this driving mode signal, thereby realizing a driving mode switching mode where the driving mode signal source is the display.
[0049] Therefore, the method of the present invention can switch between different driving mode switching methods when the driving mode signal comes from different signal sources.
[0050] like Figure 1 and 2 As shown, the computer device 10 for controlling a vehicle according to the present invention stores programs or instructions in its memory. When the processor executes the programs or instructions stored in the memory, the aforementioned driving mode signal source switching method is implemented.
[0051] Therefore, when the computer device 10 for controlling the vehicle according to the present invention is applied to vehicle models with different driving mode signal sources, only the relevant parameters need to be configured. The switching between different driving mode signal sources can be realized according to the configured parameters. There is no need to classify and manage materials, which facilitates vehicle production scheduling.
[0052] The present invention also provides a vehicle including a computer device 10 and a driving mode signal generator 30 (see...). Figure 1 and 2 The driving mode signal generator 30 sends a driving mode signal to the computer device 10.
[0053] The present invention further provides a computer-readable storage medium storing a program or instructions that, when executed, implement the aforementioned driving mode signal source switching method.
[0054] The driving mode signal source switching method for vehicles provided by this invention can respond to driving mode signals sent by different driving mode signal sources. When applied to vehicle models with different driving mode signal sources, only parameter settings are required. The vehicle's control device can obtain the driving mode request sent by the driving mode signal source according to the set parameters and the set driving mode switching method, without having to redevelop the software of the vehicle's control device. At the same time, there is no need to classify and manage materials, which facilitates vehicle production scheduling, thereby saving development time and development costs and shortening the vehicle delivery cycle.
[0055] The detailed descriptions listed above are merely specific descriptions of feasible embodiments of the present invention and are not intended to limit the scope of protection of the present invention. All equivalent implementation schemes or modifications made without departing from the spirit of the present invention, such as combinations, divisions or repetitions of features, should be included within the scope of protection of the present invention.
Claims
1. A drive mode signal source switching method for a vehicle, characterized by, The method provides a driving mode switching mode including a hard-wire switching mode, a gear switching mode and a screen switching mode, and the method includes: a configuration step (S100) of configuring a CAN bus signal for implementing the gear switching mode and the screen switching mode; a setting step (S200) of setting a value of a signal source mark for indicating a driving mode signal source and saving the value of the signal source mark, the signal source mark being for indicating a source of a driving mode signal, the value of the signal source mark indicating one of hard-wire, gear and screen, and being for indicating the driving mode switching mode; a reading step (S300) of reading the value of the signal source mark; and an execution step (S400) of executing a corresponding driving mode switching mode according to the driving mode switching mode indicated by the value of the signal source mark.
2. The driving mode signal source switching method according to claim 1, wherein the configuration step (S100) includes a step of respectively configuring a communication interface and a communication protocol of a CAN bus for implementing the gear switching mode and the screen switching mode.
3. The drive mode signal source switching method according to claim 1, characterized by, the execution step (S400) includes: in a case where the value of the signal source mark indicates hard-wire, a hard-wire switching mode step (S410) of acquiring and transmitting a driving mode signal transmitted via the hard-wire, and outputting the driving mode signal.
4. The drive mode signal source switching method according to claim 1, characterized by, the execution step (S400) includes: in a case where the value of the signal source mark indicates gear, a gear switching mode step (S420) of acquiring and transmitting a driving mode signal transmitted via a CAN bus by a gear of the vehicle, and outputting the driving mode signal.
5. The drive mode signal source switching method according to claim 1, characterized by, the execution step (S400) includes: in a case where the value of the signal source mark indicates screen, a screen switching mode step (S430) of acquiring and transmitting a driving mode signal transmitted via a CAN bus by a display of the vehicle, and outputting the driving mode signal.
6. Computer means (10) for controlling a vehicle, characterized in that comprises: a processor; a memory for storing programs or instructions; a CAN bus interface for connecting a CAN bus of a vehicle; and a plurality of hard-wire terminals for connecting driving mode physical buttons of the vehicle; when the processor executes the programs or instructions stored in the memory, the driving mode signal source switching method according to any one of claims 1 to 5 is implemented.
7. Vehicle, characterized in that comprises: a computer device (10) according to claim 6; and a driving mode signal generator (30) capable of transmitting a driving mode signal to the computer device (10).
8. The vehicle according to claim 7, wherein the computer device (10) is connected to a CAN bus (20) of the vehicle, in a case where the driving mode signal generator (30) is a plurality of physical buttons, the physical buttons are connected to the hard-wire terminals of the computer device (10) through hard-wires, for transmitting the driving mode signal to the computer device (10) through the hard-wires; In the case that the driving mode signal generator (30) is a gear lever, the gear lever has a driving mode gear and is connected to the CAN bus (20), when the gear lever is turned to the driving mode gear, the gear lever sends the driving mode signal to the computer device (10) through the CAN bus (20); In the case that the driving mode signal generator (30) is a display, the display is connected to the CAN bus (20), the screen of the display can display multiple driving mode options, when one of the driving mode options is selected, the display sends the driving mode signal to the computer device (10) through the CAN bus (20).
9. A computer readable storage medium, characterized in that, The computer readable storage medium stores a program or instructions, when the program or instructions are executed, the driving mode signal source switching method according to any one of claims 1 to 5 is realized.