Vehicle control method and device, electronic equipment and vehicle
By introducing stationary instructions in the vehicle controller LAN, the problem of false triggering of the same function by multiple controllers is solved, and the user experience and stability of vehicle control is improved.
Patent Information
- Application Number
- CN202411370277.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2024-12-06
AI Technical Summary
In vehicles, the signal transmission method of the controller's local area network may cause multiple controllers to accidentally trigger the same function, which will cause inconvenience to users' use of the vehicle.
By introducing a stationary command in the controller's local area network, the second controller is instructed to perform no operations and send the stationary command again after sending the function control command to ensure that the second controller maintains the status quo and avoids false triggering of functions.
It effectively avoids the problem of mistriggering the same function by multiple controllers, and improves the user's car satisfaction and the stability of vehicle control logic.
Smart Images

Figure CN119078703A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle control method, device, electronic equipment and vehicle. Background Art
[0002] At present, the Controller Area Network (CAN) bus is widely used in the vehicle field for signal transmission, and the signal transmission adopts the form of broadcast messages. In the functional design of the vehicle, in order to facilitate user operation, multiple controllers can be used to control the same in-vehicle function. For example, the switching of driving modes can be controlled by both physical switches and virtual switches. When different controllers issue different control instructions, the signal transmission method of the controller area network may cause the function to be triggered incorrectly, causing inconvenience to users. Summary of the invention
[0003] In view of this, the purpose of the present application is to propose a vehicle control method, device, electronic device and vehicle to solve the problem of function mis-triggering that occurs when multiple controllers control the same function.
[0004] A first aspect of the present application provides a vehicle control method, which is applied to a first controller in a vehicle, comprising:
[0005] In response to receiving a function control request for a target function, generating a function control instruction according to the function control request, and sending the function control instruction to the second controller via a controller area network bus, so that the second controller responds to the function control request;
[0006] A quiescent instruction is generated and sent to the second controller via a controller area network bus, wherein the quiescent instruction is used to instruct the second controller not to perform any operation.
[0007] Optionally, the method further includes:
[0008] In response to the vehicle being powered on, a stationary instruction is generated and sent to the second controller via a controller area network bus.
[0009] Optionally, sending the function control instruction to the second controller via a controller area network bus includes:
[0010] continuously sending a plurality of frames of function control instructions to the second controller via the controller area network bus, and in the process of sending the plurality of frames of function control instructions, in response to receiving a feedback success instruction from the second controller and the number of function control instructions sent being less than a preset number of frames, stopping sending the function control instructions;
[0011] In response to not receiving a feedback success instruction from the second controller, continue to send function control instructions until the number of sent function control instructions equals the preset frame number.
[0012] Optionally, after generating the function control instruction according to the function control request, the method further includes:
[0013] Adjusting the display state of the logo corresponding to the target function on the vehicle-side display interface from an initial state to a state corresponding to the function control instruction;
[0014] After continuing to send the function control instruction until the number of the sent function control instructions is equal to the preset number of frames, the method further comprises:
[0015] In response to not receiving a feedback success instruction from the second controller, adjusting the display state of the logo from the state corresponding to the function control instruction to the initial state.
[0016] A second aspect of the present application further provides a vehicle control method, which is applied to a second controller in a vehicle, comprising:
[0017] In response to receiving a function control instruction sent by the first controller through the controller area network bus, executing the function control instruction, wherein the function control instruction is generated by the first controller according to the received function control request for the target function;
[0018] In response to receiving a static instruction sent by the first controller through the controller area network bus, no operation is performed.
[0019] Optionally, in response to receiving a function control instruction sent by the first controller through the controller area network bus, executing the function control instruction includes:
[0020] In response to receiving a message broadcast by the controller area network bus, querying in the message whether there is a function control instruction corresponding to the second controller identifier, and if so, executing the function control instruction.
[0021] Optionally, the method further includes:
[0022] In response to the time interval between the function control command received through the controller area network bus and the last command received being less than a preset time length, displaying a command warning message in the vehicle-side human-computer interaction interface;
[0023] In response to receiving a confirmation operation triggered by a user in response to the instruction warning information, executing the function control instruction.
[0024] The third aspect of the present application further provides a vehicle control device, applied to a first controller in a vehicle, comprising:
[0025] A first sending module is configured to, in response to receiving a function control request for a target function, generate a function control instruction according to the function control request, and send the function control instruction to the second controller via a controller area network bus, so that the second controller responds to the function control request;
[0026] The second sending module is configured to generate a static instruction and send the static instruction to the second controller via a controller area network bus, wherein the static instruction is used to instruct the second controller not to perform any operation.
[0027] A fourth aspect of the present application further provides a vehicle control device, applied to a second controller in a vehicle, comprising:
[0028] A first receiving module is configured to execute the function control instruction in response to receiving the function control instruction sent by the first controller through the controller area network bus, wherein the function control instruction is generated by the first controller according to the received function control request for the target function;
[0029] The second receiving module is configured not to perform any operation in response to receiving a static instruction sent by the first controller through the controller area network bus.
[0030] The fifth aspect of the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method described in the first aspect or the second aspect when executing the computer program.
[0031] The sixth aspect of the present application also provides a vehicle, comprising the electronic device as described in the fifth aspect.
[0032] As can be seen from the above, the vehicle control method, device, electronic device and vehicle provided by the present application include generating a function control instruction according to the function control request in response to receiving a function control request for a target function, and sending the function control instruction to a second controller through a controller area network bus, so that the second controller responds to the function control request; wherein, the user can send a function control request for the target function through any of the multiple first controllers. When multiple first controllers can control the target function, the second controller executes the function control instruction issued by the first controller, responds to the function control request, realizes the corresponding vehicle function, and meets the user's vehicle use needs. After that, the subsequent messages transmitted in the controller area network continue to contain the function control instruction. The first controller generates a static instruction and sends the static instruction to the second controller through the controller area network bus, and the static instruction is used to instruct the second controller not to perform any operation. In the design of the vehicle control signal, a static instruction is added. After the first controller sends the function control instruction, the static instruction is sent again to instruct the second controller not to perform any action, which is equivalent to continuing to execute the function control instruction. Afterwards, subsequent messages transmitted in the controller LAN continue to contain the latest instructions issued by the first controller, that is, static instructions, rather than functional control instructions. If other first controllers send different functional control instructions for the target function, the second controller can execute different functional control instructions sent by other first controllers. Since the instructions related to the first controller contained in the message at this time are static instructions, the second controller will not perform any operations after receiving the static instructions, that is, the second controller will not execute the functional control instructions sent by the first controller before sending the static instructions again. Therefore, it will not affect the execution of different functional control instructions sent by other first controllers. The present application avoids the problem of false function triggering that may occur when the same function can be controlled by multiple first controllers through the addition of static instructions, thereby improving user satisfaction with the use of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A schematic flow chart of a vehicle control method according to an embodiment of the present application;
[0035] Figure 2 A schematic flow chart of a vehicle control method according to another embodiment of the present application;
[0036] Figure 3 A schematic diagram of the structure of a vehicle control device according to an embodiment of the present application;
[0037] Figure 4 A schematic structural diagram of a vehicle control device according to another embodiment of the present application;
[0038] Figure 5 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0040] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0041] As described in the background technology, there is a control method for multiple controllers in a vehicle to control the same vehicle function. For example, for function A in the vehicle, it can be turned on or off by an electronic hard switch and a soft switch on the central control screen. Since the controller area network bus is generally used in vehicles for signal transmission, the controller area network bus uses a broadcast message to transmit signals. Each frame of the broadcast message contains signals from multiple controllers, including not only the currently sent signal, but also the previously sent signal, that is, the broadcast message will repeat the signal sent by each controller for the last time. When the user turns on function A through the electronic hard switch, a control instruction 0x1 is generated, and the current frame broadcast message of the controller area network bus contains the control instruction 0x1, and the vehicle-related equipment executes the control instruction 0x1 to turn on function A. Each subsequent frame of the broadcast message contains the control instruction 0x1, that is, the vehicle-related equipment continues to turn on function A. After a period of time, if the user turns off function A through the soft switch on the central control screen, a control instruction 0x2 is generated, and the current frame broadcast message of the controller area network bus contains the control instruction 0x2, and the vehicle-related equipment executes the control instruction 0x2 to turn off function A. However, since the controller that issues control instructions 0x1 and control instruction 0x2 is not the same controller, the broadcast message of the controller LAN bus still includes control instruction 0x1 (the last instruction sent by the controller corresponding to the electronic hard switch), and function A may be turned on again. Since the re-activation of function A is not a control instruction issued by the user, function A is accidentally triggered, which brings inconvenience to the user and low user satisfaction.
[0042] In view of this, the present application provides a vehicle control method to solve the problem of function mis-triggering that may occur when multiple controllers can control the same vehicle function. The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0043] Figure 1 The vehicle control method of the embodiment of the present application is shown, which is applied to a first controller in the vehicle. Figure 1 As shown, the following steps are included:
[0044] Step 102, in response to receiving a function control request for a target function, generating a function control instruction according to the function control request, and sending the function control instruction to a second controller via a controller area network bus, so that the second controller responds to the function control request.
[0045] Specifically, the target function is one of the functions in the vehicle, such as the switching function of the driving mode, the switching function of the main and auxiliary fuel tanks, etc., and the target function can be controlled by multiple first controllers, that is, the user can control the target function through any of the multiple first controllers. The first controller is a controller that sends control instructions. Exemplarily, the target function is the switching of the driving model, or the target function is the switching of the main and auxiliary fuel tanks. The switching of driving modes and the switching of the main and auxiliary fuel tanks can be controlled by multiple first controllers. The first controller specifically includes: an electronic hard switch controller, a central control screen soft switch controller, a remote mobile terminal controller and a voice controller control. The setting of multiple first controllers can enrich the user's operation method.
[0046] When receiving a function control request for a target function input by a user, the first controller generates a function control instruction according to the function control request. Exemplarily, when the first controller is an electronic hard switch controller, the target function is the main and auxiliary fuel tank switching function, and the function control request is specifically to switch from the main fuel tank to the auxiliary fuel tank, the function control instruction generated by the electronic hard switch controller is A1:0x2, wherein A1 indicates that the function control instruction is generated by the electronic hard switch controller, and 0x2 indicates that the function control instruction requires switching from the main fuel tank to the auxiliary fuel tank. The first controller sends the function control instruction to the controller area network bus, and the function control instruction is broadcast on the controller area network bus in the form of a message. The second controller receives the function control instruction from the controller area network bus and executes the function control instruction. Continuing with the above example, the second controller is the main and auxiliary fuel tank controller. When the main and auxiliary fuel tank controllers receive the function control instruction A1:0x2, they execute the function control instruction to switch the fuel tank currently used by the vehicle to the auxiliary fuel tank. The design of the main and auxiliary fuel tanks is mainly to meet the needs of users for long-range driving. When the fuel in the main tank is exhausted, it can be switched to the auxiliary fuel tank to continue driving. After the function control instruction A1: 0x2 is sent, the message broadcast on the controller area network bus will still include the function control instruction most recently sent by the first controller, that is, the message includes the function control instruction A1: 0x2.
[0047] Step 104: Generate a static instruction, and send the static instruction to the second controller via the controller area network bus, wherein the static instruction is used to instruct the second controller not to perform any operation.
[0048] Specifically, after sending the function control instruction, the first controller generates a static instruction. The static instruction is used to instruct the second controller not to perform any operation, that is, after the second controller receives the static instruction, it maintains the status quo. The static instruction is a signal discard value added in the signal design. The static instruction is specifically: A1: 0x0. The first controller sends the static instruction to the controller LAN bus. The static instruction is broadcast on the controller LAN bus in the form of a message. The second controller receives the static instruction from the controller LAN bus and does not perform any operation. Continuing with the above example, the second controller is the main and auxiliary fuel tank controller. When the main and auxiliary fuel tank controllers receive the static instruction A1: 0x0, they do not perform any operation, and the fuel tank currently used by the vehicle is still the auxiliary fuel tank. After the static instruction A1: 0x0 is sent, the message broadcast on the controller LAN bus includes the instruction most recently sent by the first controller, which is transformed from a function control instruction to a static instruction, that is, the message contains the static instruction A1: 0x0.
[0049] When the user sends other function control instructions for the target function through other first controllers, the second controller receives the other function control instructions and executes the other function control instructions. At this time, even if the message of the controller LAN bus includes a static instruction, it will not affect the second controller's execution of other function control instructions.
[0050] Exemplarily, when the other first controller is a central control screen soft switch controller, the corresponding function control instruction is A2:0x1, wherein A2 indicates that the function control instruction is generated by the central control screen soft switch controller, and 0x1 indicates that the function control instruction requires switching to the main fuel tank. When the main and auxiliary fuel tank controllers receive the function control instruction A2:0x1, they execute the switch from the fuel tank to the main fuel tank. Since the last instruction sent by the electronic hard switch controller contained in the message of the controller local area network is a static instruction, the main and auxiliary fuel tank controllers will no longer switch the current fuel tank from the main fuel tank to the auxiliary fuel tank after receiving the static instruction, that is, the problem of false triggering of the main and auxiliary fuel tank switching function will not occur, thus avoiding the problem of false triggering of functions that may occur when multiple controllers can control the same function, optimizing the control logic in the vehicle, and improving user satisfaction.
[0051] It should be noted that, when designing the vehicle signal, a static signal code is added to each first controller, and the target function is the main and auxiliary fuel tank switching as an example for explanation. Table 1 shows the main and auxiliary fuel tank switching function signal code table.
[0052] Table 1 Main and auxiliary fuel tank switching function signal coding table
[0053]
[0054] As can be seen from Table 1, each first controller is configured with a corresponding command name and command code. The command name sent by the electronic hard switch controller is A1, the command name sent by the central control screen soft switch controller is A2, the command name sent by the mobile remote controller is A3, and the command name sent by the voice controller is A4. The command code for each first controller includes the static command 0x0, the command code for switching to the main fuel tank 0x1, and the command code for switching to the auxiliary fuel tank 0x2. Type E indicates that the command is an event-type command.
[0055] After any first controller sends a function control instruction for a target function, a static instruction will be generated and sent to avoid a situation where the target function is falsely triggered.
[0056] Based on the above steps 102 to 104, the vehicle control method provided by the present application includes responding to receiving a function control request for a target function, generating a function control instruction according to the function control request, and sending the function control instruction to the second controller through the controller area network bus, so that the second controller responds to the function control request. When multiple first controllers can control the target function, the second controller executes the function control instruction issued by the first controller, responds to the function control request, realizes the corresponding vehicle function, and meets the user's vehicle use needs. After that, the subsequent messages transmitted in the controller area network continue to include the function control instruction. The first controller generates a static instruction and sends the static instruction to the second controller through the controller area network bus. The static instruction is used to instruct the second controller not to perform any operation. In the design of the vehicle control signal, a static instruction is added. After the first controller sends the function control instruction, the static instruction is sent again to instruct the second controller not to perform any action, which is equivalent to continuing to execute the function control instruction. After that, the subsequent messages transmitted in the controller area network continue to include the static instruction. If other first controllers send different function control instructions for the target function, the second controller can execute the different function control instructions sent by other first controllers. Since the instructions related to the first controller contained in the message are static instructions, the second controller will not execute the function control instructions sent by the first controller again. Therefore, it will not affect the execution of different function control instructions sent by other first controllers. This application avoids the problem of false function triggering that may occur when multiple terminals control the same function by adding static instructions, optimizes the control logic in the vehicle, and improves user satisfaction with the vehicle.
[0057] After the vehicle is powered on, in order to further ensure that the target function is not triggered by mistake, in a specific embodiment, the vehicle control method of the present application further includes:
[0058] In response to the vehicle being powered on, a stationary instruction is generated and sent to the second controller via a controller area network bus.
[0059] Specifically, after the vehicle is powered on, the messages in the controller area network are started and sent at the same time, and the broadcast messages sent out will contain the current function control instructions of each controller. For example, after the vehicle is powered on, the initial state of the lights is off, and the current function control instruction of controller A that controls the lights is the off instruction. Even if the user does not currently issue any control instructions for the lights through controller A, the broadcast message will carry the off instruction of controller A. If the user sends an on instruction for the lights through other controllers B in the multi-terminal controller, there may be a command conflict between different controllers. In order to avoid this phenomenon, after the vehicle is powered on, each controller generates a static instruction, and in the broadcast message of the controller area network, the instructions corresponding to each controller are static instructions. When the user controls the vehicle function through one of the multi-terminal controllers, it will not be affected by other controllers in the broadcast message, which can effectively avoid the phenomenon of false triggering of functions when the multi-terminal controllers control the same function.
[0060] Exemplarily, for the main and auxiliary fuel tank switching function, after the vehicle is powered on, all first controllers that can control the main and auxiliary fuel tank switching function send a static command. For example, if the electronic hard switch controller, the central control screen soft switch controller, the remote mobile terminal controller or the voice controller all send a static command, the main and auxiliary fuel tank controllers do not perform any actions, and the main and auxiliary fuel tank switching function maintains the current state, which can be using the main fuel tank or using the auxiliary fuel tank. If a function control command is received from one of the multiple first controllers, the main and auxiliary fuel tank controllers execute the function control command, but the commands of the other first controllers in the broadcast message are still static commands, which will not affect the command execution of the main and auxiliary fuel tank controllers.
[0061] At the same time, after the vehicle is powered on, each first controller generates and sends a stationary command, and can also detect whether the first controller can send a command signal normally. If it is found that the first controller cannot send the command information normally, the user can be notified to perform a fault detection. In this embodiment, if the first controller can send a stationary command normally, it means that there is no communication failure in the first controller. If the first controller cannot send a stationary command normally, it means that there is a communication failure in the first controller, and the user is prompted to perform a fault check to avoid affecting driving safety.
[0062] In this embodiment, since the second controller does not perform any operation when receiving the static command, there will be no command conflict between different controllers, and the realization of subsequent target functions will not be affected. At the same time, it can also help detect whether there is a communication failure in the first controller, ensuring that during the subsequent vehicle operation, the user can flexibly control the realization of the target function through each first controller, ensuring the safety and stability of vehicle operation.
[0063] Due to the instability of the CAN network or other factors, messages broadcast in the CAN may be lost. In order to avoid the loss of messages and affect the realization of the target function, in a specific embodiment, sending the function control instruction to the second controller through the CAN bus includes:
[0064] continuously sending a plurality of frames of function control instructions to the second controller via the controller area network bus, and in the process of sending the plurality of frames of function control instructions, in response to receiving a feedback success instruction from the second controller and the number of function control instructions sent being less than a preset number of frames, stopping sending the function control instructions;
[0065] In response to not receiving a feedback success instruction from the second controller, continue to send function control instructions until the number of sent function control instructions equals the preset frame number.
[0066] Specifically, in order to avoid the problem of message loss, usually, when sending a function control instruction to the second controller through the controller area network bus, multiple frames of the same function control instruction will be continuously sent to the second controller, that is, the function control instruction will be repeatedly sent. Through actual testing, it is found that when 5 frames (that is, the pre-frame number) of function control instructions are continuously sent, the probability of the second controller successfully receiving the function control instruction is high. However, if the second controller has received the function control instruction when the number of sent frames does not reach 5 frames, continuing to send the function control instruction will waste communication resources. Therefore, in this embodiment, when the number of function control instructions continuously sent to the second controller through the controller area network bus does not reach the preset number of frames, if the first controller receives the feedback success instruction sent by the second controller, there is no need to continue to send the function control instruction. For example, after sending 2 frames of function control instructions, the first controller receives the feedback success instruction from the second controller, and then stops sending the function control instruction. Correspondingly, if the first controller has not received the feedback success instruction during the continuous sending process, it stops sending after completing the continuous sending of the function control instruction of the preset number of frames. The preset number of frames can be set according to the actual communication capability of the controller area network, and is not specifically limited in this embodiment. The method of this embodiment can avoid the problem of loss of function control instructions during the sending process to the greatest extent. It is ensured that the function control instructions can be successfully sent to the second controller, and the second controller can then execute the function control instructions, respond to the function control request, and meet the user's needs for vehicle functions. At the same time, if it is determined that the second controller has received the function control instruction, the number of frames sent by the function control instruction is reduced to save communication resources.
[0067] If the function control instruction fails to be sent through the first controller and the second controller does not successfully execute the function control instruction, it is necessary to notify the user of the instruction execution failure, and the specific method is implemented through the following embodiment.
[0068] In some embodiments, after generating a function control instruction according to the function control request, the method includes:
[0069] Adjusting the display state of the logo corresponding to the target function on the vehicle-side display interface from an initial state to a state corresponding to the function control instruction;
[0070] After continuing to send the function control instruction until the number of the sent function control instructions is equal to the preset number of frames, the method further comprises:
[0071] In response to not receiving a feedback success instruction from the second controller, adjusting the display state of the logo from the state corresponding to the function control instruction to the initial state.
[0072] Specifically, after the first controller generates the function control instruction, the vehicle-side display interface, such as the vehicle computer display interface, will adjust the indicator corresponding to the target function from the initial state to the state corresponding to the function control instruction. For example, the target function is the vehicle light control function, and when the exterior lights are currently turned off, the initial state of the corresponding indicator is gray. When the generated function control instruction is to turn on the exterior lights, the display state of the exterior lights indicator is adjusted from the initial state to the state of turning on the exterior lights, and the display state of the indicator is switched to green.
[0073] If the first controller still does not receive a successful feedback instruction after sending the function control instruction of the preset number of frames, it means that the function control instruction execution failed, and the target function logo is adjusted to the initial state. Continuing with the above example, at this time, the display state of the logo is adjusted from green to gray. At this time, the user can observe the change of the target function logo on the vehicle-side display interface and obtain the information that the function control instruction execution failed.
[0074] Alternatively, in addition to adjusting the display state of the logo from the state corresponding to the function control instruction to the initial state, a prompt message can also be displayed on the vehicle-side display interface to notify the user that the function instruction execution failed, so that the user can find the cause of the failure in time.
[0075] Through the method of this embodiment, the execution result of the function control instruction is transmitted to the user through the display state of the target function identifier in the display interface, so that the user can determine whether the function control instruction is executed successfully or failed, and take the next step. For multi-end controllers, if the control through one of the first controllers fails, the first controllers of other ends can be switched to send the function control instruction to meet the control of the target function.
[0076] It should be noted that during the sending process, the static instruction can be set to continuously send a preset number of frames (for example, 5 frames) like the function control instruction, or it can be set to send 1 frame. After the first controller sends the static instruction, the subsequent messages in the controller LAN will continue to include the static instruction. Therefore, even if 1 frame of static instruction is sent, the second controller can also receive the static instruction, and will not affect the function control instructions issued by other first controllers.
[0077] Figure 2 A vehicle control method according to an embodiment of the present application is shown. Figure 2 As shown, it is applied to the second controller in the vehicle, including the following steps:
[0078] Step 202: In response to receiving a function control instruction sent by a first controller through a controller area network bus, executing the function control instruction, wherein the function control instruction is generated by the first controller according to a received function control request for a target function.
[0079] Specifically, the second controller is a controller for controlling the operation of corresponding vehicle equipment to achieve the target function. Exemplarily, the second controller may be a main and auxiliary fuel tank switching controller, which may control the switching of fuel tanks in the vehicle, switching to the main fuel tank or the auxiliary fuel tank. The target function is one of the functions in the vehicle, such as the switching function of the driving mode, the switching function of the main and auxiliary fuel tanks, etc., and the target function may be controlled by multiple first controllers. Exemplarily, the target function is the switching of the driving mode or the switching of the main and auxiliary fuel tanks. The multiple first controllers specifically include: an electronic hard switch controller, a central control screen soft switch controller, a remote mobile terminal controller, and a voice controller control. The setting of multiple first controllers may enrich the user's operation mode. The first controller is a controller that sends function control instructions.
[0080] When receiving a function control request for a target function input by a user, the first controller generates a function control instruction according to the function control request. Exemplarily, when the first controller is an electronic hard switch controller, the target function is the main and auxiliary fuel tank switching function, and the function control request is to switch from the main fuel tank to the auxiliary fuel tank, the function control instruction generated by the electronic hard switch controller is A1:0x2, wherein A1 indicates that the function control instruction is generated by the electronic hard switch controller, and 0x2 indicates that the function control instruction requires switching to the auxiliary fuel tank. The first controller sends the function control instruction to the controller area network bus, and the function control instruction is broadcast on the controller area network bus in the form of a message. The second controller receives the function control instruction from the controller area network bus and executes the function control instruction. Continuing with the above example, the second controller is the main and auxiliary fuel tank controller. When the main and auxiliary fuel tank controllers receive the function control instruction A1:0x2, they execute the function control instruction to switch the fuel tank currently used by the vehicle to the auxiliary fuel tank. The design of the main and auxiliary fuel tanks is mainly to meet the needs of users for long-range driving. When the fuel in the main tank is exhausted, it can be switched to the auxiliary fuel tank to continue driving. After the function control instruction A1: 0x2 is sent, the message broadcast on the controller area network bus will still include the function control instruction most recently sent by the first controller, that is, the message includes the function control instruction A1: 0x2.
[0081] Step 204: In response to receiving a static instruction sent by the first controller through the controller area network bus, no operation is performed.
[0082] Specifically, after receiving the static instruction, the second controller does not perform any operation, that is, maintains the instruction previously received by the second controller. After sending the function control instruction, the first controller generates a static instruction, which is used to instruct the second controller not to perform any operation, that is, after receiving the static instruction, the second controller maintains the status quo. The static instruction is a signal discard value added in the signal design, and the static instruction is specifically: A1: 0x0. The first controller sends the static instruction to the controller LAN bus, and the static instruction is broadcast on the controller LAN bus in the form of a message. The second controller receives the static instruction from the controller LAN bus and does not perform any operation. Continuing with the above example, the second controller is the main and auxiliary fuel tank controllers. When the main and auxiliary fuel tank controllers receive the static instruction A1: 0x0, they do not perform any operation, and the fuel tank currently used by the vehicle is still the auxiliary fuel tank. After the static instruction A1: 0x0 is sent, the message broadcast on the controller LAN bus will still include the static instruction sent by the first controller the last time, that is, the message contains the static instruction A1: 0x0.
[0083] When the user sends other function control instructions for the target function through other first controllers, the second controller receives the other function control instructions and executes the other function control instructions. At this time, even if the message of the controller LAN bus includes a static instruction, it will not affect the second controller's execution of other function control instructions.
[0084] Exemplarily, when the other first controller is a central control screen soft switch controller, the corresponding function control instruction is A2:0x1, wherein A2 indicates that the function control instruction is generated by the central control screen soft switch controller, and 0x1 indicates that the function control instruction requires switching to the main fuel tank. When the main and auxiliary fuel tank controllers receive the function control instruction A2:0x1, they execute the switch from the fuel tank to the main fuel tank. Since the last instruction sent by the electronic hard switch controller contained in the message of the controller local area network is a static instruction, after receiving the static instruction, the main and auxiliary fuel tank controllers will no longer switch the current fuel tank from the main fuel tank to the auxiliary fuel tank, that is, the problem of false triggering of the main and auxiliary fuel tank switching function will not occur, thus avoiding the problem of false triggering of functions that may occur when multiple controllers control the same function, optimizing the control logic in the vehicle, and improving user satisfaction.
[0085] Based on the above steps 202 to 204, after receiving the function control instruction, the second controller can execute the function control instruction, respond to the function control request, and meet the user's needs for the vehicle function. After the second controller receives the static instruction, it does not perform any operation. At the same time, the subsequent message transmitted in the controller local area network continues to contain the static instruction. If other first controllers send different function control instructions for the target function, the second controller can execute different function control instructions sent by other first controllers. Since the instructions related to the first controller contained in the message at this time are static instructions, the second controller will not execute the function control instructions sent by the first controller again. Therefore, it will not affect the execution of different function control instructions sent by other first controllers. The present application avoids the problem of false function triggering that may occur when multiple terminals control the same function by adding static instructions, optimizes the control logic in the vehicle, and improves user satisfaction with the vehicle.
[0086] The following describes the process of the second controller executing the function control instruction through a specific embodiment.
[0087] In some embodiments, in response to receiving a function control instruction sent by the first controller through a controller area network bus, executing the function control instruction includes:
[0088] In response to receiving a message broadcast by the controller area network bus, querying in the message whether there is a function control instruction corresponding to the second controller identifier, and if so, executing the function control instruction.
[0089] Specifically, in the controller area network, the instruction is broadcast in the form of a message. All nodes in the vehicle can receive the message broadcast by the controller area network, and the first controller and the second controller are both one of the nodes. The message contains multiple instructions, each instruction is configured with a corresponding identifier, and the identifier code is used to indicate the object to which the instruction is sent. When the second controller receives the message, it queries in the message whether there is an instruction with the same identifier as the second controller, and if so, executes the instruction. Exemplarily, the identifier of the second controller is aaa. After the second controller receives the message, it queries in the message whether there is a function control instruction identified as aaa and executes the instruction. When the function control instruction queried is A2:0x1, the second controller executes the function control instruction A2:0x1 to control the vehicle tank to switch to the main tank. Through the method of this embodiment, the second controller can accurately query in the received message whether there is a function control instruction related to itself, and if so, execute the function control instruction, thereby achieving the effect of accurately executing the instruction.
[0090] In order to further avoid the situation where the target function is falsely triggered, when the second controller detects that the interval between two consecutive instructions is short, it issues an instruction warning message to ask the user whether to execute the instruction, which is explained below through a specific embodiment.
[0091] In some embodiments, the method further comprises:
[0092] In response to the time interval between the function control command received through the controller area network bus and the last command received being less than a preset time length, displaying a command warning message in the vehicle-side human-computer interaction interface;
[0093] In response to receiving a confirmation operation triggered by a user in response to the instruction warning information, executing the function control instruction.
[0094] Specifically, if the time interval between the function control instruction received by the second controller from the controller area network bus and the instruction received last time is less than the preset time length, it means that the time interval between the function control instruction currently received and the instruction received last time is small, and the reception time of the two instructions is similar. The instruction received last time can be a function control instruction or a static instruction. The function control instruction may be sent by the first controller B1 or the first controller B2. If the time interval is less than the preset time length, it means that the second controller receives instructions more frequently. One situation may be caused by the controller area network bus broadcast message, and the other may be caused by the user's false triggering. In order to avoid performing unnecessary operations, when the second controller detects that the time interval between the function control instruction and the previous instruction is less than the preset time length, the instruction warning information is displayed in the human-computer interaction interface of the vehicle end, such as the vehicle screen, to ask the user whether to execute this function control instruction. If the user confirms to execute, the second controller executes the current function control instruction. If the user confirms not to execute, the second controller does not execute the current function control instruction.
[0095] Further, if it is detected within the preset time that the last received function control instruction was sent by the first controller B1, and the currently received instruction is also a function control instruction sent by the first controller B1 and is different from the function control instruction received last, a first warning message is displayed on the vehicle screen, and the first warning message can be specifically "The function control instruction currently received through the XX terminal is too frequent, do you need to continue to execute?" Wherein, XX is the name of the first controller B1. If it is detected within the preset time that the last received function control instruction was sent by the first controller B1, and the currently received instruction is a function control instruction sent by the first controller B2, and the function control instructions sent by the first controller B1 and the first controller B2 are different, a second warning message is displayed on the vehicle screen, and the second warning message can be specifically "The function control instructions currently received through the X1 terminal and the X2 terminal are different and the interval is short, do you need to continue to execute?" Wherein, X1 is the name of the first controller B1, and X2 is the name of the first controller B2.
[0096] Through the active inquiry method in this embodiment, the user can be informed of the reason for the execution of the inquiry, and can further avoid the false triggering of the target function, thereby avoiding user complaints and improving user satisfaction.
[0097] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0098] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0099] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a vehicle control device.
[0100] refer to Figure 3 The vehicle control device is applied to a first controller in a vehicle, comprising:
[0101] The first sending module 302 is configured to, in response to receiving a function control request for a target function, generate a function control instruction according to the function control request, and send the function control instruction to the second controller via a controller area network bus, so that the second controller responds to the function control request;
[0102] The second sending module 304 is configured to generate a static instruction and send the static instruction to the second controller via the controller area network bus, wherein the static instruction is used to instruct the second controller not to perform any operation.
[0103] In some embodiments, a third sending module is further included, which is configured to generate a stationary instruction in response to the vehicle being powered on, and send the stationary instruction to the second controller via a controller area network bus.
[0104] In some embodiments, the first sending module 302 is further configured to
[0105] continuously sending a plurality of frames of function control instructions to the second controller via the controller area network bus, and in the process of sending the plurality of frames of function control instructions, in response to receiving a feedback success instruction from the second controller and the number of function control instructions sent being less than a preset number of frames, stopping sending the function control instructions;
[0106] In response to not receiving a feedback success instruction from the second controller, continue to send function control instructions until the number of sent function control instructions equals the preset frame number.
[0107] In some embodiments, after generating a function control instruction according to the function control request, a display module is further included, which is configured to adjust the display state of the identifier corresponding to the target function from an initial state to a state corresponding to the function control instruction on the vehicle-side display interface;
[0108] After continuing to send function control instructions until the number of function control instructions sent is equal to the preset number of frames, the display module is configured to adjust the display state of the logo from the state corresponding to the function control instruction to the initial state in response to not receiving a feedback success instruction from the second controller.
[0109] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a vehicle control device.
[0110] refer to Figure 4 The vehicle control device is applied to a second controller in the vehicle, comprising:
[0111] A first receiving module 402 is configured to execute the function control instruction in response to receiving the function control instruction sent by the first controller through the controller area network bus, wherein the function control instruction is generated by the first controller according to the received function control request for the target function;
[0112] The second receiving module 404 is configured not to perform any operation in response to receiving a static instruction sent by the first controller through the controller area network bus.
[0113] In some embodiments, the first receiving module 402 is further configured to, in response to receiving a message broadcast by the controller area network bus, query whether there is a function control instruction corresponding to the second controller identifier in the message, and if so, execute the function control instruction.
[0114] In some embodiments, an alarm module is also included, which is configured to display an instruction alarm message in the vehicle-side human-computer interaction interface in response to the time interval between a function control instruction received through the controller local area network bus and a most recently received instruction being less than a preset duration; and execute the function control instruction in response to receiving a confirmation operation triggered by a user in response to the instruction alarm message.
[0115] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0116] The device of the above embodiment is used to implement the corresponding vehicle control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0117] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the vehicle control method described in any of the above embodiments is implemented.
[0118] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0119] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0120] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0121] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0122] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0123] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0124] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0125] The electronic device of the above embodiment is used to implement the corresponding vehicle control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0126] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the vehicle control method described in any of the above embodiments.
[0127] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0128] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the vehicle control method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0129] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer executes the method described in any of the above embodiments, which has the beneficial effects of the corresponding method embodiments and will not be repeated here.
[0130] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0131] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0132] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to the electronic device providing personal information.
[0133] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0134] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0135] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0136] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0137] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.
Claims
1. A vehicle control method, characterized in that: The first controller used in a car includes: In response to receiving a function control request for a target function, generating a function control instruction according to the function control request, and sending the function control instruction to the second controller via a controller area network bus, so that the second controller responds to the function control request; A quiescent instruction is generated and sent to the second controller via a controller area network bus, wherein the quiescent instruction is used to instruct the second controller not to perform any operation.
2. The method according to claim 1, characterized in that The method further comprises: In response to the vehicle being powered on, a stationary instruction is generated and sent to the second controller via a controller area network bus.
3. The method according to claim 1, characterized in that The step of sending the function control instruction to the second controller via the controller area network bus includes: continuously sending a plurality of frames of function control instructions to the second controller via the controller area network bus, and in the process of sending the plurality of frames of function control instructions, in response to receiving a feedback success instruction from the second controller and the number of function control instructions sent being less than a preset number of frames, stopping sending the function control instructions; In response to not receiving a feedback success instruction from the second controller, continue to send function control instructions until the number of sent function control instructions equals the preset frame number.
4. The method according to claim 3, characterized in that After generating a function control instruction according to the function control request, the method includes: Adjusting the display state of the logo corresponding to the target function on the vehicle-side display interface from an initial state to a state corresponding to the function control instruction; After continuing to send the function control instruction until the number of the sent function control instructions is equal to the preset number of frames, the method further comprises: In response to not receiving a feedback success instruction from the second controller, adjusting the display state of the logo from the state corresponding to the function control instruction to the initial state.
5. A vehicle control method, characterized in that: Applied to the second controller in the car, including: In response to receiving a function control instruction sent by the first controller through the controller area network bus, executing the function control instruction, wherein the function control instruction is generated by the first controller according to the received function control request for the target function; In response to receiving a static instruction sent by the first controller through the controller area network bus, no operation is performed.
6. The method according to claim 5, characterized in that In response to receiving a function control instruction sent by the first controller through the controller area network bus, executing the function control instruction includes: In response to receiving a message broadcast by the controller area network bus, querying in the message whether there is a function control instruction corresponding to the second controller identifier, and if so, executing the function control instruction.
7. The method according to claim 5, characterized in that The method further comprises: In response to the time interval between the function control command received through the controller area network bus and the last command received being less than a preset time length, displaying a command warning message in the vehicle-side human-computer interaction interface; In response to receiving a confirmation operation triggered by a user in response to the instruction warning information, executing the function control instruction.
8. A vehicle control device, characterized in that: The first controller used in a car includes: A first sending module is configured to, in response to receiving a function control request for a target function, generate a function control instruction according to the function control request, and send the function control instruction to the second controller via a controller area network bus, so that the second controller responds to the function control request; The second sending module is configured to generate a static instruction and send the static instruction to the second controller via a controller area network bus, wherein the static instruction is used to instruct the second controller not to perform any operation.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1-4 or 5-7 is implemented.
10. A vehicle, characterized in that: The vehicle comprises the electronic device as claimed in claim 9.
Citation Information
Cited By
Vehicle control method and device, electronic equipment and vehicle
CN119766852A
Vehicle control method and device, electronic equipment and vehicle
CN119766852B
Vehicle light cooperative control method and device
CN120916308A
Vehicle light coordination control method and device
CN120916308B
