CN110065501B - Software control method of electronic controller, configuration device and readable storage medium - Google Patents

Software control method of electronic controller, configuration device and readable storage medium Download PDF

Info

Publication number
CN110065501B
CN110065501B CN201910399718.5A CN201910399718A CN110065501B CN 110065501 B CN110065501 B CN 110065501B CN 201910399718 A CN201910399718 A CN 201910399718A CN 110065501 B CN110065501 B CN 110065501B
Authority
CN
China
Prior art keywords
configuration
electronic controller
software
code
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910399718.5A
Other languages
Chinese (zh)
Other versions
CN110065501A (en
Inventor
陈长健
黄曲
杨希
赵小羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SAIC GM Wuling Automobile Co Ltd
Original Assignee
SAIC GM Wuling Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SAIC GM Wuling Automobile Co Ltd filed Critical SAIC GM Wuling Automobile Co Ltd
Priority to CN201910399718.5A priority Critical patent/CN110065501B/en
Publication of CN110065501A publication Critical patent/CN110065501A/en
Application granted granted Critical
Publication of CN110065501B publication Critical patent/CN110065501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W2050/0062Adapting control system settings
    • B60W2050/0075Automatic parameter input, automatic initialising or calibrating means
    • B60W2050/0083Setting, resetting, calibration

Abstract

The invention discloses a software control method, configuration equipment and a readable storage medium of an electronic controller, wherein the method comprises the steps of obtaining configuration information of a vehicle by scanning an identification code of the vehicle and generating a first configuration code; and writing the first configuration code as a configuration variable into the electronic controller so that the electronic controller activates a corresponding software configuration function according to the configuration variable. The technical scheme provided by the invention avoids the situation that the configuration function of the vehicle when leaving the factory is not matched with the software of the electronic controller, and solves the problem that the configuration function of the vehicle when leaving the factory cannot be normally used.

Description

Software control method of electronic controller, configuration device and readable storage medium
Technical Field
The invention relates to the field of automobiles, in particular to a software control method, configuration equipment and a readable storage medium of an electronic controller.
Background
The function matching of the existing vehicles needs to be activated and configured through software in a vehicle controller, and vehicles of the same type have different specifications, each specification is matched with different functions, and different software needs to be used when the functions are activated. In this way, the situation that the software is not matched with the vehicle controller is easily caused when the vehicle leaves the factory, so that the configuration function of the vehicle cannot be normally used.
Therefore, a new software control method for an electronic controller is desired to be proposed to solve the above technical problems.
Disclosure of Invention
The invention mainly aims to provide a software control method, configuration equipment and a readable storage medium of an electronic controller, and aims to solve the technical problem that the conventional configuration function based on a vehicle is not matched with software of the electronic controller.
In order to achieve the above object, the present invention provides a software control method of an electronic controller, the method comprising:
the method comprises the steps of obtaining configuration information of a vehicle by scanning an identification code of the vehicle and generating a first configuration code;
and writing the first configuration code serving as a configuration variable into the electronic controller so that the electronic controller activates a corresponding software configuration function according to the configuration variable.
Preferably, after the step of causing the electronic controller to activate the corresponding software configuration function according to the configuration variable, the method further includes:
receiving a second configuration code determined by the electronic controller according to the software configuration function after the electronic controller activates the software configuration function;
matching the first configuration code with the second configuration code, and judging whether the first configuration code is matched with the second configuration code;
if the first configuration code and the second configuration code do not match, confirming that the vehicle configuration fails;
and if the first configuration code is matched with the second configuration code, the vehicle configuration is confirmed to be successful.
Preferably, the step of obtaining the configuration information of the vehicle by scanning the identification code of the vehicle and generating the first configuration code comprises:
acquiring configuration information of the vehicle by scanning the identification code of the vehicle;
and traversing the preset mapping relation table of the configuration information of the vehicle and the configuration codes to acquire the configuration codes corresponding to the configuration information of the current vehicle, and taking the acquired configuration codes as first configuration codes.
Preferably, before the step of obtaining the configuration information of the vehicle by scanning the identification code of the vehicle and generating the first configuration code, the method further comprises:
sending the preset mapping relation table to the electronic controller;
the step of receiving a second configuration code determined by the electronic controller according to the software configuration function after the software configuration function is activated includes:
and receiving a second configuration code determined by the electronic controller according to the software configuration function and the preset mapping relation table after the software configuration function is activated.
Preferably, after the step of confirming that the vehicle configuration is failed if the first configuration code does not match the second configuration code, the method further comprises:
acquiring a first software configuration function table corresponding to the first configuration code and a second software configuration function table corresponding to the second configuration code;
comparing the first software configuration function table with the second software configuration function table to generate a comparison table corresponding to software configuration functions to be added to the current vehicle, and acquiring a corresponding third configuration code according to the comparison table;
and writing the third configuration code serving as a newly added configuration variable into the electronic controller so that the electronic controller activates a corresponding software configuration function to be added according to the newly added configuration variable.
Preferably, after the step of comparing the first software configuration function table with the second software configuration function table, the method further includes:
determining whether the current vehicle needs to be added with a software configuration function according to the comparison result;
if yes, executing the following steps: generating a comparison table corresponding to software configuration functions to be added to the current vehicle;
and if not, sending a deleting instruction comprising the software configuration function information to be deleted to the electronic controller, so that the electronic controller correspondingly executes deleting operation according to the software configuration function information to be deleted in the deleting instruction.
Preferably, if the first configuration code and the second configuration code match, the step of confirming that the vehicle configuration is successful further includes:
receiving a function adding instruction sent by a user, determining added software configuration information according to the function adding instruction, and generating a fourth configuration code according to the preset mapping relation table and the added software configuration information;
and writing the fourth configuration code serving as a newly added configuration variable into the electronic controller, so that the electronic controller activates the software configuration function corresponding to the function newly added instruction according to the newly added configuration variable.
Preferably, the step of writing the first configuration code as a configuration variable into the electronic controller to enable the electronic controller to activate a corresponding software configuration function according to the configuration variable includes:
writing the first configuration code as a configuration variable into an electronic controller;
when the configuration variable is a first configuration variable, controlling the electronic controller to activate an electronic stability control system (ESC), an electronic parking brake system (EPB) and an air conditioning function according to the first configuration variable;
when the configuration variable is a second configuration variable, controlling the electronic controller to activate an anti-lock brake system (ABS) and an air conditioning function according to the second configuration variable;
when the configuration variable is a third configuration variable, controlling the electronic controller to activate the ABS, the inverter DC/AC and the air conditioning function according to the third configuration variable;
and when the configuration variable is a fourth configuration variable, controlling the electronic controller to activate ESC, EPB and DC/AC functions according to the fourth configuration variable.
The present invention also provides a configuration device comprising:
the software control program of the electronic controller is stored on the memory and can be executed by the processor, wherein the software control program of the electronic controller is executed by the processor to realize the steps of the software control method of the electronic controller.
The present invention also provides a readable storage medium having stored thereon a software control program of an electronic controller, which when entered by a processing unit implements the steps of the software control method of an electronic controller as described above.
According to the invention, the configuration information of the vehicle is obtained by scanning the identification code of the vehicle and generating the first configuration code, so as to obtain the function configuration codes required to be selected and matched by different specifications of the same type of vehicle, and the first configuration code is written into the electronic controller as the configuration variable, so that the electronic controller activates the corresponding software configuration function according to the configuration variable, and the functions required to be selected and matched by different specifications of the same type of vehicle can be activated by using the same software according to different identification codes of the vehicle, thereby avoiding the situation that the configuration function is not matched with the software of the electronic controller when the vehicle leaves a factory, and solving the situation that the configuration function of the vehicle cannot be normally used when the vehicle leaves the factory.
Drawings
FIG. 1 is a schematic structural diagram of an electronic controller according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a software control method of the electronic controller of the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of a software control method of the electronic controller of the present invention;
FIG. 4 is a schematic flow chart of a third embodiment of a software control method of the electronic controller of the present invention;
FIG. 5 is a schematic flow chart of a fourth embodiment of a software control method of the electronic controller of the present invention;
FIG. 6 is a detailed flow chart of a fifth embodiment of the software control method of the electronic controller of the present invention;
FIG. 7 is a schematic flow chart of a sixth embodiment of a software control method of the electronic controller of the present invention;
fig. 8 is a partial schematic flow chart of a seventh embodiment of the software control method of the electronic controller of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
In the prior art, function matching of existing vehicles needs to be activated and configured through software in a vehicle controller, and vehicles of the same type have different specifications, each specification is matched with different functions, and different software needs to be used when the functions are activated. In this way, the situation that the software is not matched with the vehicle controller when the vehicle leaves the factory is easily caused, so that the configuration function of the vehicle cannot be normally used.
The invention provides a solution, which is characterized in that configuration information of a vehicle is obtained by scanning an identification code of the vehicle, a first configuration code is generated, the first configuration code is used as a configuration variable and is written into an electronic controller, so that the electronic controller activates corresponding software configuration functions according to the configuration variable, and the functions required to be selected and matched by different specifications of the same type of vehicle can be activated according to the identification code of the vehicle, thereby avoiding the situation that the configuration functions of the vehicle when the vehicle leaves a factory are not matched with the software of the electronic controller, and solving the situation that the configuration functions of the vehicle when the vehicle leaves the factory cannot be normally used.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an electronic controller of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the configuration apparatus may include: a processor 1001, e.g. a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005, a scanner 1006. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may optionally be a storage device independent of the processor 1001, and the scanner 1006 may optionally be a camera, a two-dimensional code scanner, or the like.
Optionally, the configuration device may further include a camera, RF (Radio Frequency) circuitry, a sensor, audio circuitry, a WiFi module, and so on. Such as light sensors, motion sensors, and other sensors, among others. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that turns off the display screen and/or the backlight when the hardware device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the motion sensor is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of hardware equipment, and related functions (such as pedometer and tapping) for vibration recognition; of course, the hardware device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and so on, which are not described herein again.
The processor 1001 may be configured to invoke a software control program of the electronic controller stored in the memory 1005 and execute the following hardware methods to implement the steps described:
the method comprises the steps of obtaining configuration information of a vehicle by scanning an identification code of the vehicle and generating a first configuration code;
and writing the first configuration code serving as a configuration variable into the electronic controller so that the electronic controller activates a corresponding software configuration function according to the configuration variable.
Further, the processor 1001 may be configured to invoke a configuration program for vehicle functions stored in the memory 1005, and also perform the following operations:
receiving a second configuration code determined by the electronic controller according to the software configuration function after the electronic controller activates the software configuration function;
matching the first configuration code with the second configuration code, and judging whether the first configuration code is matched with the second configuration code;
if the first configuration code and the second configuration code do not match, confirming that the vehicle configuration fails;
and if the first configuration code is matched with the second configuration code, the vehicle configuration is confirmed to be successful.
Further, the processor 1001 may be configured to invoke a configuration program for vehicle functions stored in the memory 1005, and also perform the following operations:
acquiring configuration information of the vehicle by scanning an identification code of the vehicle;
traversing a preset mapping relation table of the configuration information of the vehicle and the configuration codes to obtain the configuration codes corresponding to the configuration information of the current vehicle, and taking the obtained configuration codes as first configuration codes.
Further, the processor 1001 may be configured to invoke a configuration program for vehicle functions stored in the memory 1005, and also perform the following operations:
sending the preset mapping relation table to the electronic controller;
the step of receiving a second configuration code determined by the electronic controller according to the software configuration function after the electronic controller activates the software configuration function comprises:
and receiving a second configuration code determined by the electronic controller according to the software configuration function and the preset mapping relation table after the software configuration function is activated.
Further, the processor 1001 may be configured to invoke a configuration program for vehicle functions stored in the memory 1005, and also perform the following operations:
acquiring a first software configuration function table corresponding to the first configuration code and a second software configuration function table corresponding to the second configuration code;
comparing the first software configuration function table with the second software configuration function table to generate a comparison table corresponding to software configuration functions to be added to the current vehicle, and acquiring a corresponding third configuration code according to the comparison table;
and writing the third configuration code serving as a newly added configuration variable into the electronic controller so that the electronic controller activates a corresponding software configuration function to be added according to the newly added configuration variable.
Further, the processor 1001 may be configured to invoke a configuration program for vehicle functions stored in the memory 1005, and also perform the following operations:
determining whether the current vehicle needs to be added with a software configuration function according to the comparison result;
if yes, executing the following steps: generating a comparison table corresponding to software configuration functions to be added to the current vehicle;
and if not, sending a deleting instruction comprising the software configuration function information to be deleted to the electronic controller, so that the electronic controller correspondingly executes deleting operation according to the software configuration function information to be deleted in the deleting instruction.
Further, the processor 1001 may be configured to invoke a configuration program for vehicle functions stored in the memory 1005, and also perform the following operations:
receiving a function newly-added instruction sent by a user, determining newly-added software configuration information according to the function newly-added instruction, and generating a fourth configuration code according to the preset mapping relation table and the newly-added software configuration information;
and writing the fourth configuration code serving as a newly added configuration variable into the electronic controller, so that the electronic controller activates the software configuration function corresponding to the function newly added instruction according to the newly added configuration variable.
Further, the processor 1001 may be configured to invoke a configuration program for vehicle functions stored in the memory 1005, and also perform the following operations:
writing the first configuration code as a configuration variable into an electronic controller;
when the configuration variable is a first configuration variable, controlling the electronic controller to activate an electronic stability control system (ESC), an electronic parking brake system (EPB) and an air conditioning function according to the first configuration variable;
when the configuration variable is a second configuration variable, controlling the electronic controller to activate an anti-lock brake system (ABS) and an air conditioning function according to the second configuration variable;
when the configuration variable is a third configuration variable, controlling the electronic controller to activate the ABS, the inverter DC/AC and the air conditioning function according to the third configuration variable;
and when the configuration variable is a fourth configuration variable, controlling the electronic controller to activate ESC, EPB and DC/AC functions according to the fourth configuration variable.
The embodiment of the present invention based on the electronic controller is substantially the same as the embodiments of the software control method of the electronic controller described below, and the details are not repeated herein.
Those skilled in the art will appreciate that the configuration of the electronic controller shown in fig. 1 does not constitute a limitation of the electronic controller and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a software control method of the electronic controller according to the present invention.
A first embodiment of the present invention provides a software control method of an electronic controller, including:
step S100, acquiring configuration information of a vehicle by scanning an identification code of the vehicle and generating a first configuration code;
in this embodiment, during vehicle production, according to the specification of a vehicle, configuration information of different vehicles is integrated into identification codes of different vehicles, and the identification codes of the vehicles are arranged on the outer surfaces of the vehicles, so that the configuration device can scan the identification codes of the vehicles very conveniently, the identification codes of the vehicles can be stacked two-dimensional codes, line-type two-dimensional codes or matrix-type two-dimensional codes, and when the scanners scan the identification codes, the first configuration codes are generated according to configuration information of the vehicles correspondingly integrated by calling the identification codes and according to the configuration information of the vehicles.
Specifically, referring to fig. 3, fig. 3 is a schematic flow chart of a software control method of an electronic controller according to a second embodiment of the present invention. In this embodiment, the step S100 of obtaining the configuration information of the vehicle by scanning the identification code of the vehicle and generating the first configuration code includes:
step S110, obtaining the configuration information of the vehicle by scanning the identification code of the vehicle;
step S120, traversing the preset mapping relationship table between the configuration information of the vehicle and the configuration code to obtain the configuration code corresponding to the configuration information of the current vehicle, and taking the obtained configuration code as the first configuration code.
In this embodiment, since one configuration device often needs to scan vehicles of multiple types and specifications, the preset mapping relationship table is usually stored in the configuration device, when the configuration device scans the identification code of the vehicle, the configuration device may obtain the configuration code corresponding to the configuration information of the current vehicle according to the scanned identification code of the vehicle and the searched preset mapping relationship table, and use the obtained configuration code as the first configuration code, and write the first configuration code as the configuration variable into the electronic controller again, so that the electronic controller activates the corresponding software configuration function according to the configuration variable, thereby ensuring that the preset mapping relationship table corresponding to the vehicle identification code can be accurately obtained when the vehicle identification code is scanned, and ensuring normal activation of the software configuration function of the vehicle.
And step S200, writing the first configuration code as a configuration variable into the electronic controller so that the electronic controller activates a corresponding software configuration function according to the configuration variable.
In this embodiment, after the configuration device scans the identification code of the vehicle and generates the first configuration code, the first configuration code is written into the electronic controller as the configuration variable, so that the electronic controller can activate the corresponding software configuration function according to the written different configuration variables, and thus it is ensured that the functions required to be selected and configured for different specifications of the same type of vehicle can be activated according to the identification code of the vehicle, the problem that the configuration function of the vehicle cannot be normally used when the vehicle leaves the factory is solved, and the situation that the configuration function of the vehicle leaves the factory is not matched with the software of the electronic controller is avoided.
For example, referring to fig. 4, fig. 4 is a schematic flow chart of a software control method of the electronic controller according to a third embodiment of the present invention. In this embodiment, in the step S200, writing the first configuration code as the configuration variable into the electronic controller, so that the step of activating the corresponding software configuration function by the electronic controller according to the configuration variable includes:
step S201, writing the first configuration code as a configuration variable into an electronic controller;
step S202, when the configuration variable is a first configuration variable, controlling the electronic controller to activate an electronic stability control system (ESC), an electronic parking brake system (EPB) and an air conditioning function according to the first configuration variable;
step S203, when the configuration variable is a second configuration variable, controlling the electronic controller to activate an anti-lock brake system (ABS) and an air conditioner function according to the second configuration variable;
step S204, when the configuration variable is a third configuration variable, controlling the electronic controller to activate the ABS, the inverter DC/AC and the air conditioning function according to the third configuration variable;
and S205, when the configuration variable is a fourth configuration variable, controlling the electronic controller to activate the ESC, EPB and DC/AC functions according to the fourth configuration variable.
In the present embodiment, the functions of the same type of vehicle may include: an electronic stability control system ESC, an electronic parking brake system EPB, an air conditioning function, an anti-lock brake system ABS, and an inverter DC/AC. Of course, other functions that can be applied to the vehicle, such as power windows, power seats, etc., may also be included.
When the configuration variable is a first configuration variable, i.e. a vehicle of a first specification, the electronic controller activates the electronic stability control system ESC, the electronic parking actuation system EPB and the air conditioning function according to the first configuration variable.
When the configuration variable is a second configuration variable, i.e., a second specification of the vehicle, the electronic controller activates the antilock braking system ABS and the air conditioning function according to the second configuration variable.
When the configuration variable is a third configuration variable, i.e., a third specification vehicle, the electronic controller activates the antilock braking system ABS, the inverter DC/AC, and the air conditioning function according to the third configuration variable.
When the configuration variable is a fourth configuration variable, namely a vehicle of a fourth specification, the electronic controller activates the electronic stability control system ESC, the electronic parking actuation system EPB and the inverting DC/AC function according to the fourth configuration variable.
Of course, the above-described vehicle functions can also be freely combined to increase the number of different specifications of the same type of vehicle. For example, when the configuration variable is a fifth configuration variable, i.e., a vehicle of a fifth specification, the electronic controller activates the electronic stability control system ESC, the locking brake system ABS, and the inverter DC/AC according to the fifth control variable.
It is understood that when the vehicles of the same specification are activated, the functions are not activated except the functions needing to be activated.
Further, referring to fig. 5, fig. 5 is a schematic flow chart of a fourth embodiment of the software control method of the electronic controller according to the present invention. In this embodiment, the step S200 is further followed by the step of enabling the electronic controller to activate the corresponding software configuration function according to the configuration variable, and includes:
step S300, receiving a second configuration code determined by the electronic controller according to the software configuration function after the software configuration function is activated;
step S400, matching a first configuration code with a second configuration code, and judging whether the first configuration code is matched with the second configuration code; if not, executing step S401; if yes, go to step S402;
step S401, confirming that the vehicle configuration is failed;
step S402, the vehicle configuration is confirmed to be successful.
In this embodiment, after the electronic controller activates the corresponding software configuration function according to the configuration variable, in order to prevent the software configuration function from being incorrect, the electronic controller receives a second configuration code determined according to the activated software configuration function on the vehicle after activating the software configuration function, and matches the first configuration code with the second configuration code.
When the first configuration code is matched with the second configuration code, the vehicle configuration is confirmed to be successful, the configuration function required to be activated for the vehicle with the specification is matched with the activated configuration function, and the vehicle can be conveyed to a downstream production line for subsequent operation.
If the vehicle configuration is determined to fail when the first configuration code and the second configuration code do not match, the configuration function required to be activated for the vehicle of the specification does not match the activated configuration function. In the embodiment, the first configuration code is matched with the second configuration code, so that the normal use of the software configuration function of the off-line vehicle is effectively ensured, and the repair efficiency is reduced.
In addition, before the step of obtaining the configuration information of the vehicle by scanning the identification code of the vehicle and generating the first configuration code, the step S100 further includes:
step S120, sending a preset mapping relation table to an electronic controller;
when step S120 is executed before step S100, the step of receiving the second configuration code determined by the electronic controller according to the software configuration function after the software configuration function is activated in step S300 includes:
and step S310, receiving a second configuration code determined by the electronic controller according to the software configuration function and the preset mapping relation table after the software configuration function is activated.
In this embodiment, when the configuration device searches the preset mapping relationship table corresponding to the current vehicle according to the scanned identification code of the vehicle, and uses the acquired configuration code as the first configuration code, and writes the first configuration code as the configuration variable into the electronic controller again, the searched preset mapping relationship table is sent to the electronic controller, and then the electronic controller determines the second configuration code according to the activated software configuration function of the vehicle and the preset mapping relationship table, and sends the second configuration code to the configuration device, and the configuration device receives the second configuration code and compares the first configuration code with the second configuration code.
Specifically, referring to fig. 6, fig. 6 is a schematic flow chart of a fifth embodiment of a software control method of an electronic controller according to the present invention. In this embodiment, in the step S401, after the step of confirming that the vehicle configuration is failed if the first configuration code does not match the second configuration code, the method further includes:
step S4011, a first software configuration function table corresponding to the first configuration code and a second software configuration function table corresponding to the second configuration code are obtained;
step S4012, comparing the first software configuration function table with the second software configuration function table to generate a comparison table corresponding to software configuration functions to be added to the current vehicle, and acquiring a corresponding third configuration code according to the comparison table;
and step S4013, writing the third configuration code as a newly added configuration variable into the electronic controller, so that the electronic controller activates a corresponding software configuration function to be added according to the newly added configuration variable.
In this embodiment, when the vehicle is activated, and the vehicle configuration is found to be failed and the software configuration function is missing, in the comparison process, a comparison table corresponding to the software configuration function added to the current vehicle is generated through comparison between the first software configuration function table to be activated and the activated second software configuration function table, and a corresponding third configuration code is obtained according to the comparison table.
And writing the third configuration code serving as a newly added configuration variable into the electronic controller so that the electronic controller activates the corresponding software configuration function to be added according to the newly added configuration variable.
Optionally, after the step of writing the third configuration code as a newly added configuration variable into the electronic controller, so that the electronic controller activates the corresponding software configuration function to be added according to the newly added configuration variable, the method may further include: and acquiring a third software configuration function table corresponding to the third configuration code, comparing the third software configuration function table with the first software configuration function table, and if the comparison is successful, determining that the vehicle configuration is successful if no deficiency exists. If the comparison is unsuccessful, a corresponding fourth configuration code is obtained according to the comparison table, and the fourth configuration code is written into the electronic controller as a newly added configuration variable, so that the electronic controller activates the corresponding software configuration function to be added according to the newly added configuration variable until the last obtained software configuration function table is successfully compared with the first software configuration function table, and the successful vehicle configuration is confirmed, thereby effectively solving the problem that the configuration function of the vehicle is not matched with the software of the electronic controller when the vehicle leaves the factory.
Further, referring to fig. 7, fig. 7 is a schematic flowchart illustrating a software control method of an electronic controller according to a sixth embodiment of the present invention. In this embodiment, after the step S4012 of comparing the first software configuration function table with the second software configuration function table, the step further includes:
step S4014, determining whether the current vehicle needs to be added with a software configuration function according to the comparison result;
if yes, executing the following steps: generating a comparison table corresponding to software configuration functions to be added to the current vehicle;
and if not, sending a deleting instruction comprising the software configuration function information to be deleted to the electronic controller, so that the electronic controller correspondingly executes deleting operation according to the software configuration function information to be deleted in the deleting instruction.
In this embodiment, when the first software configuration function table is compared with the second software configuration function table, if it needs to be determined that the current vehicle needs to add a new software configuration function, a step of generating a comparison table corresponding to the software configuration function to be added to the current vehicle is performed.
If the fact that the redundant software configuration functions are additionally activated besides the software configuration functions needing to be activated is found on the second software configuration function table, and at the moment, the fact that the current vehicle does not need to be newly added with the software configuration functions is judged, a deleting instruction comprising the software configuration function information to be deleted is sent to the electronic controller, so that the electronic controller can correspondingly execute deleting operation according to the software configuration function information to be deleted in the deleting instruction, and normal activation of the vehicle software configuration functions is guaranteed.
Referring to fig. 8, fig. 8 is a schematic flow chart of a software control method of an electronic controller according to a seventh embodiment of the present invention. In this embodiment, in step S402, after the step of confirming that the vehicle configuration is successful if the first configuration code matches the second configuration code, the method further includes:
step S403, receiving a function adding instruction sent by a user, determining added software configuration information according to the function adding instruction, and generating a fourth configuration code according to a preset mapping relation table and the added software configuration information;
and S404, writing the fourth configuration code serving as a newly added configuration variable into the electronic controller, so that the electronic controller activates the software configuration function corresponding to the function newly added instruction according to the newly added configuration variable.
In this embodiment, the user may be an engineer, an operator, or the like, and when the user needs to additionally add a new software configuration function to a successfully configured vehicle, the user sends a function addition instruction to the configuration device, the configuration device receives the function addition instruction sent by the user, determines new software configuration information according to the function addition instruction, generates a fourth configuration code according to a preset mapping relationship table and the new software configuration information confirmed in previous scanning of the current vehicle, and writes the fourth configuration code into the electronic controller as a new configuration variable, so that the electronic controller can activate the software configuration function corresponding to the function addition instruction according to the new configuration variable, thereby improving the diversity of the vehicle in the software configuration functions.
Furthermore, an embodiment of the present invention also provides a readable storage medium, on which a computer program is stored, and the computer program, when executed by a processing unit, implements the software control method of the electronic controller as described above.
The specific embodiment of the readable storage medium of the present invention is substantially the same as the embodiments of the software control method of the electronic controller, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on this understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a readable storage medium (such as ROM/RAM, magnetic disk, and optical disk) as described above, and includes several instructions for causing a configuration device to execute the methods according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (7)

1. A software control method of an electronic controller, the method comprising:
the method comprises the steps of obtaining configuration information of a vehicle by scanning an identification code of the vehicle and generating a first configuration code;
writing the first configuration code as a configuration variable into an electronic controller so that the electronic controller activates a corresponding software configuration function according to the configuration variable;
receiving a second configuration code determined by the electronic controller according to the software configuration function after the electronic controller activates the software configuration function;
matching the first configuration code with the second configuration code, and judging whether the first configuration code is matched with the second configuration code;
if the first configuration code and the second configuration code do not match, confirming that the vehicle configuration fails;
if the first configuration code is matched with the second configuration code, confirming that the vehicle configuration is successful;
the step of acquiring configuration information of the vehicle by scanning an identification code of the vehicle and generating a first configuration code includes:
acquiring configuration information of the vehicle by scanning an identification code of the vehicle;
traversing a preset mapping relation table of the configuration information of the vehicle and the configuration codes to acquire the configuration codes corresponding to the configuration information of the current vehicle, and taking the acquired configuration codes as first configuration codes;
after the step of confirming that the vehicle configuration fails if the first configuration code does not match the second configuration code, the method further comprises:
acquiring a first software configuration function table corresponding to the first configuration code and a second software configuration function table corresponding to the second configuration code;
comparing the first software configuration function table with the second software configuration function table to generate a comparison table corresponding to software configuration functions to be added to the current vehicle, and acquiring a corresponding third configuration code according to the comparison table;
and writing the third configuration code serving as a newly added configuration variable into the electronic controller so that the electronic controller activates a corresponding software configuration function to be added according to the newly added configuration variable.
2. The software control method of an electronic controller as set forth in claim 1, wherein said step of obtaining configuration information of the vehicle by scanning an identification code of the vehicle and generating the first configuration code is preceded by the step of:
sending the preset mapping relation table to the electronic controller;
the step of receiving a second configuration code determined by the electronic controller according to the software configuration function after the electronic controller activates the software configuration function comprises:
and receiving a second configuration code determined by the electronic controller according to the software configuration function and the preset mapping relation table after the software configuration function is activated.
3. The method of software control of an electronic controller of claim 1, wherein after the step of comparing the first software configuration function table with the second software configuration function table, further comprising:
determining whether the current vehicle needs to be added with a software configuration function according to the comparison result;
if yes, executing the following steps: generating a comparison table corresponding to software configuration functions to be added to the current vehicle;
and if not, sending a deleting instruction comprising the software configuration function information to be deleted to the electronic controller, so that the electronic controller correspondingly executes deleting operation according to the software configuration function information to be deleted in the deleting instruction.
4. The electronic controller software control method of claim 1, wherein the step of confirming that vehicle configuration is successful if the first configuration code and the second configuration code match further comprises:
receiving a function adding instruction sent by a user, determining added software configuration information according to the function adding instruction, and generating a fourth configuration code according to the preset mapping relation table and the added software configuration information;
and writing the fourth configuration code serving as a newly added configuration variable into the electronic controller, so that the electronic controller activates the software configuration function corresponding to the function newly added instruction according to the newly added configuration variable.
5. The software control method of an electronic controller according to any one of claims 1-4, wherein said step of writing said first configuration code as a configuration variable to the electronic controller to cause the electronic controller to activate a corresponding software configuration function in accordance with said configuration variable comprises:
writing the first configuration code as a configuration variable into an electronic controller;
when the configuration variable is a first configuration variable, controlling the electronic controller to activate an electronic stability control system (ESC), an electronic parking brake system (EPB) and an air conditioning function according to the first configuration variable;
when the configuration variable is a second configuration variable, controlling the electronic controller to activate an anti-lock brake system (ABS) and an air conditioning function according to the second configuration variable;
when the configuration variable is a third configuration variable, controlling the electronic controller to activate the ABS, the inverter DC/AC and the air conditioning function according to the third configuration variable;
and when the configuration variable is a fourth configuration variable, controlling the electronic controller to activate ESC, EPB and DC/AC functions according to the fourth configuration variable.
6. A configuration apparatus, comprising a processor, a memory, a scanner, and a software control program of an electronic controller stored on the memory executable by the processor, wherein the software control program of the electronic controller, when executed by the processor, implements the steps of the software control method of the electronic controller according to any one of claims 1 to 5.
7. A readable storage medium, characterized in that the readable storage medium has stored thereon a software control program of an electronic controller, which when entered by a processor, implements the steps of the software control method of an electronic controller according to any one of claims 1 to 5.
CN201910399718.5A 2019-05-14 2019-05-14 Software control method of electronic controller, configuration device and readable storage medium Active CN110065501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910399718.5A CN110065501B (en) 2019-05-14 2019-05-14 Software control method of electronic controller, configuration device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910399718.5A CN110065501B (en) 2019-05-14 2019-05-14 Software control method of electronic controller, configuration device and readable storage medium

Publications (2)

Publication Number Publication Date
CN110065501A CN110065501A (en) 2019-07-30
CN110065501B true CN110065501B (en) 2022-07-26

Family

ID=67370791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910399718.5A Active CN110065501B (en) 2019-05-14 2019-05-14 Software control method of electronic controller, configuration device and readable storage medium

Country Status (1)

Country Link
CN (1) CN110065501B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445160B (en) * 2019-09-02 2022-06-14 广州汽车集团股份有限公司 Automatic generation method and device of ECU configuration code
CN110794816B (en) * 2019-11-28 2020-08-04 安徽江淮汽车集团股份有限公司 Method, device, equipment and storage medium for adjusting fault tolerance of vehicle controller software
CN111210216B (en) * 2019-12-31 2024-04-05 安徽奇点智能新能源汽车有限公司 Activation method and activation system of advanced driving assistance system
CN113359657A (en) * 2020-03-05 2021-09-07 广州汽车集团股份有限公司 ECU diagnosis configuration code checking method and system and electronic control unit
CN112319500B (en) * 2020-10-20 2023-06-13 上汽通用五菱汽车股份有限公司 Vehicle control method, vehicle, and readable storage medium
CN112102103B (en) * 2020-11-02 2021-09-24 广州汽车集团股份有限公司 Vehicle whole vehicle offline configuration verification method
CN113821275B (en) * 2021-09-27 2023-04-28 重庆长安新能源汽车科技有限公司 Remote starting and stopping method and system for automobile software function and computer readable storage medium
CN114398044A (en) * 2022-01-12 2022-04-26 中国第一汽车股份有限公司 Vehicle control and software configuration method, device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5864510B2 (en) * 2013-10-18 2016-02-17 富士通株式会社 Correction program checking method, correction program checking program, and information processing apparatus
CN104122883A (en) * 2014-07-14 2014-10-29 重庆长安汽车股份有限公司 Automatic automobile controller configuring method
JP6216730B2 (en) * 2015-03-16 2017-10-18 日立オートモティブシステムズ株式会社 Software update device and software update method
CN105607623B (en) * 2016-02-26 2019-05-28 东南(福建)汽车工业有限公司 A kind of auto production line off-line test method
EP3443432A4 (en) * 2016-04-12 2020-04-01 Guardknox Cyber Technologies Ltd. Specially programmed computing systems with associated devices configured to implement secure lockdowns and methods of use thereof
JP7169340B2 (en) * 2017-07-25 2022-11-10 オーロラ ラブズ リミテッド Building Software Delta Updates and Toolchain Based Anomaly Detection for Vehicle ECU Software

Also Published As

Publication number Publication date
CN110065501A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN110065501B (en) Software control method of electronic controller, configuration device and readable storage medium
CN108562024B (en) Centralized control method and system for multi-split air conditioning system and computer readable storage medium
CN107450548B (en) AGV-based control method and device and computer-readable storage medium
US10802814B2 (en) Vehicle control device, update confirmation method of program, and non-transitory computer readable medium storing update confirmation program
CN107589742B (en) Control method and device for automated guided vehicle and computer readable storage medium
CN110855532B (en) Vehicle-mounted gateway testing method, device, equipment and storage medium
US10754615B2 (en) Apparatus and method for processing user input for vehicle
CN111079990A (en) Cluster robot scheduling method, device, system, equipment and computer readable storage medium
US8909418B2 (en) Networking of control devices of a motor vehicle
US9358886B2 (en) Method for configuring user interface of head unit of vehicle dynamically by using mobile terminal, and head unit and computer-readable recording media using the same
CN111131861B (en) Upgrading method, terminal and storage medium for recovering partitions
CN109766276B (en) Open platform test method, device, computer readable storage medium and system
CN111625108A (en) Key simulation method, device, equipment and storage medium based on USB module
CN111124764A (en) System restoring method, smart television and computer storage medium
CN106127018B (en) Mobile terminal unlocking method and system based on touch screen line drawing
US20240013266A1 (en) Estimation apparatus, estimation system, and estimation method
CN110333664B (en) Information processing method and device and computer readable storage medium
CN111124456A (en) Method and device for upgrading firmware of single chip microcomputer through master control and readable storage medium
CN111030848B (en) Automatic configuration method and device of electronic product and storage medium
CN112109723A (en) Plug and play method and device for vehicle automatic driving module and storage medium
CN114500263A (en) Distributed network distribution method and device and computer readable storage medium
CN113038449B (en) Device pairing method, device, storage medium and device
CN108958664B (en) Hard disk formatting method and device and computer readable storage medium
US20230052548A1 (en) Update management apparatus for vehicle and method thereof
CN114356227A (en) Solid state disk instruction processing method, device and system and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant