CN115167351A - Controller function updating method and system, vehicle and server - Google Patents

Controller function updating method and system, vehicle and server Download PDF

Info

Publication number
CN115167351A
CN115167351A CN202210771055.7A CN202210771055A CN115167351A CN 115167351 A CN115167351 A CN 115167351A CN 202210771055 A CN202210771055 A CN 202210771055A CN 115167351 A CN115167351 A CN 115167351A
Authority
CN
China
Prior art keywords
target
function
message
vehicle
controller
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.)
Granted
Application number
CN202210771055.7A
Other languages
Chinese (zh)
Other versions
CN115167351B (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.)
FAW Group Corp
Original Assignee
FAW Group Corp
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 FAW Group Corp filed Critical FAW Group Corp
Priority to CN202210771055.7A priority Critical patent/CN115167351B/en
Publication of CN115167351A publication Critical patent/CN115167351A/en
Priority to PCT/CN2023/094109 priority patent/WO2024001572A1/en
Application granted granted Critical
Publication of CN115167351B publication Critical patent/CN115167351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0262Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a method and a system for updating functions of a controller, a vehicle and a server. The method is applied to a vehicle and comprises the following steps: receiving at least one target function message sent by a server through a gateway controller in a vehicle; broadcasting the received at least one target function message through a gateway controller so that each vehicle-mounted controller in a vehicle receives the at least one target function message; the method comprises the steps that each vehicle-mounted controller analyzes at least one received target function message based on a preset message analysis mode matched with a preset message generation mode, and updates the function of the current vehicle-mounted controller based on analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller, so that the dynamic updating of the functions of the controller is realized, the accuracy of the function updating is ensured, and meanwhile, the flexibility of the function updating of the controller can be improved.

Description

Controller function updating method and system, vehicle and server
Technical Field
The embodiment of the invention relates to the technical field of vehicles, in particular to a method and a system for updating functions of a controller, a vehicle and a server.
Background
With the continuous development of automobile technology, the functions that need to be realized by the controller on the vehicle are more and more complex, and the functions that need to be realized by the controller on the vehicle gradually tend to be personalized along with the requirements of users.
Currently, updating functions of a controller on a vehicle requires that a target function configuration code is written into a corresponding ECU (Electronic Control Unit) on the vehicle all at once through a UDS (universal Diagnostic Services) Diagnostic command. In practice, the realization of a certain function of the whole vehicle is often combined by a plurality of ECUs for use to be effective, namely, the functions of the plurality of ECUs need to be updated. However, in the existing method, only after the function of one ECU is updated, the functions of the other ECUs for realizing the same function of the whole vehicle are updated, which is time-consuming and labor-consuming, and also is easy to cause errors during function updating. Once a certain function is updated incorrectly, the function of the vehicle is directly abnormal, so that the accuracy of updating the function of the controller cannot be effectively ensured.
Disclosure of Invention
The embodiment of the invention provides a method, a system, a vehicle and a server for updating functions of a controller, which are used for realizing dynamic updating of the functions of the controller, ensuring the accuracy of the function updating and improving the flexibility of the function updating of the controller.
In a first aspect, an embodiment of the present invention provides a controller function updating method, which is applied to a vehicle, and the method includes:
receiving at least one target function message sent by a server through a gateway controller in the vehicle, wherein the at least one target function message is generated by the server based on a preset message generation mode and target function configuration information corresponding to at least one target controller with functions to be modified;
broadcasting the received at least one target function message through the gateway controller so that each vehicle-mounted controller in a vehicle receives the at least one target function message;
and analyzing the received at least one target function message through each vehicle-mounted controller based on a preset message analysis mode matched with the preset message generation mode, and updating the function of the current vehicle-mounted controller based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller.
In a second aspect, an embodiment of the present invention further provides a controller function updating method, which is applied to a server, and the method includes:
acquiring target function configuration information corresponding to at least one target controller of a function to be modified;
generating at least one target function message based on a preset message generation mode and the target function configuration information;
sending the at least one target function message to a vehicle so that the vehicle receives the at least one target function message through a gateway controller, and broadcasting the received at least one target function message so that each vehicle-mounted controller in the vehicle receives the at least one target function message; and analyzing the received at least one target function message through each vehicle-mounted controller based on a preset message analysis mode matched with the preset message generation mode, and updating the function of the current vehicle-mounted controller based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller.
In a third aspect, an embodiment of the present invention provides a controller function updating system, where the system includes: a server and a vehicle;
the vehicle is used for realizing the controller function updating method applied to the vehicle, provided by any embodiment of the invention;
the server is used for realizing the controller function updating method applied to the server provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention provides a vehicle, including: a gateway controller and a plurality of vehicle-mounted controllers;
wherein the gateway controller is configured to: receiving at least one target function message sent by a server, wherein the at least one target function message is generated by the server based on a preset message generation mode and target function configuration information corresponding to at least one target controller of a function to be modified; broadcasting the received at least one target function message so that each vehicle-mounted controller receives the at least one target function message;
each of the onboard controllers is configured to: and analyzing the received at least one target function message based on a preset message analysis mode matched with the preset message generation mode, and updating the function of the current vehicle-mounted controller based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller.
In a fifth aspect, an embodiment of the present invention provides a server, where the server includes: at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the controller function updating method applied to the server provided by any of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, at least one target function message is generated by a server based on a preset message generation mode and target function configuration information corresponding to at least one target controller with a function to be modified, the at least one target function message is sent to a vehicle, a gateway controller in the vehicle receives the at least one target function message sent by the server, and broadcasts the received at least one target function message to each vehicle-mounted controller, so that each vehicle-mounted controller in the vehicle receives the at least one target function message. Each vehicle-mounted controller can analyze at least one received target function message based on a preset message analysis mode matched with the preset message generation mode, if the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller exists, the current vehicle-mounted controller needs to be updated, and at the moment, the function of the current vehicle-mounted controller can be updated based on the target vehicle-mounted function configuration information, so that a plurality of controllers can be updated simultaneously, the dynamic updating of the functions of the controllers is realized, the accuracy of the function updating can be ensured through the specific message generation mode and the message analysis mode, and meanwhile, the flexibility and the updating efficiency of the functions of the controllers are improved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present invention, nor are they intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for updating controller functions according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for updating controller functions according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for updating controller functions according to a third embodiment of the present invention;
fig. 4 is a flowchart of a controller function updating method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a controller function updating system according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a vehicle according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a server according to a seventh embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a method for updating a function of a controller according to an embodiment of the present invention. The controller function updating method provided by the embodiment is applicable to the case of dynamic updating of the controller function, and the method can be applied to vehicles. As shown in fig. 1, the controller function updating method may include:
s110, receiving at least one target function message sent by a server through a gateway controller in the vehicle, wherein the at least one target function message can be generated by the server based on a preset message generation mode and target function configuration information corresponding to at least one target controller with functions to be modified.
The Gateway controller GW (Gateway) may refer to a device on the vehicle for automatically receiving and controlling the broadcast function packet. A server refers to a device that can be used to generate function messages. The preset message generation mode may be a mode preset in the server for generating the function message. The function to be modified may refer to a function that needs to be modified in a controller of the vehicle. The target controller may be a controller that currently needs an updated function. The number of target controllers may be one or more. The target controller may include a gateway controller and/or an on-board controller. The onboard controllers may include various controllers in the vehicle in addition to the gateway controller. The target function configuration information may be data information generated according to a preset message generation manner and used for updating a function of the target controller.
Specifically, the gateway controller in The vehicle may receive at least one target function packet sent by The server in an Over-The-Air (OTA) manner. The correspondence between the target function packet and the target controller may be a one-to-many correspondence, that is, one target function packet may update the functions of a plurality of target controllers, so that a plurality of controllers having the same function may be updated in batch by using one target function packet, thereby improving the function update efficiency.
And S120, broadcasting the received at least one target function message through the gateway controller, so that each vehicle-mounted controller in the vehicle receives the at least one target function message.
The gateway Controller may be connected to each of the onboard controllers through, but not limited to, a CAN (Controller Area Network) bus. The gateway controller broadcast period may be 100ms.
Specifically, the gateway controller may broadcast the received at least one target function packet to each vehicle-mounted controller through the CAN bus, so that each vehicle-mounted controller in the vehicle receives the at least one target function packet. The gateway controller in this embodiment may perform repeated broadcasting on each received target function packet for a preset number of times, so as to ensure that each vehicle-mounted controller can receive each target function packet. The repeated broadcasting may refer to broadcasting each target function packet once, and then performing the next broadcasting to ensure that each target function packet is broadcast and received by the onboard controller.
S130, analyzing at least one received target function message through each vehicle-mounted controller based on a preset message analyzing mode matched with the preset message generating mode, and updating the function of the current vehicle-mounted controller based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller.
The preset message parsing mode may be a preset message parsing mode opposite to the preset message generating mode. The current on-board controller may refer to an on-board controller that is currently performing a function update operation. The target vehicle-mounted function configuration information may be information obtained by analyzing the received target function message through the current vehicle-mounted controller and matching the received target function message with the current vehicle-mounted controller, and may be used to update functions of the current controller.
Specifically, each vehicle-mounted controller may parse at least one received target function packet based on a preset packet parsing manner matched with the preset packet generating manner, and if each vehicle-mounted controller may parse corresponding target vehicle-mounted function configuration information, it indicates that the current vehicle-mounted controller needs to perform a function updating operation, and at this time, may perform a function update on the current vehicle-mounted controller based on the parsed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller. If the current vehicle-mounted controller cannot analyze the corresponding target vehicle-mounted function configuration information, the current vehicle-mounted controller does not need to perform function updating, and the function updating operation can not be performed at the moment, so that only the vehicle-mounted controller needing the function updating can be updated, the situation of updating errors is avoided, the accuracy of the function updating can be ensured, and meanwhile, the flexibility of the function updating of the controller can be improved.
According to the technical scheme of the embodiment of the invention, at least one target function message is generated by the server based on a preset message generation mode and target function configuration information corresponding to at least one target controller with a function to be modified, the at least one target function message is sent to the vehicle, the gateway controller in the vehicle receives the at least one target function message sent by the server and broadcasts the received at least one target function message to each vehicle-mounted controller, so that each vehicle-mounted controller in the vehicle receives the at least one target function message. Each vehicle-mounted controller can analyze at least one received target function message based on a preset message analysis mode matched with a preset message generation mode, if target vehicle-mounted function configuration information matched with the current vehicle-mounted controller exists, the fact that the current vehicle-mounted controller needs to be updated is indicated, at the moment, the function of the current vehicle-mounted controller can be updated based on the target vehicle-mounted function configuration information, therefore, a plurality of controllers can be updated simultaneously, dynamic updating of functions of the controllers is achieved, accuracy of function updating can be guaranteed through a specific message generation mode and a specific message analysis mode, and flexibility and updating efficiency of function updating of the controllers are improved.
On the basis of the above technical solution, before the "broadcasting the received at least one target function packet" in S130, the method may further include: and analyzing the received at least one target function message based on a preset message analysis mode matched with the preset message generation mode, and updating the functions of the gateway controller based on the analyzed target gateway function configuration information matched with the gateway controller.
Specifically, before broadcasting the received at least one target function message, the gateway controller may parse the received at least one target function message based on a preset message parsing manner matched with the preset message generating manner, and perform function update on the gateway controller based on the parsed target gateway function configuration information matched with the gateway controller, thereby implementing dynamic update of the gateway controller function, so as to perform function update on the vehicle-mounted controller through the gateway controller after function update in the subsequent process, and further ensuring accuracy of function update.
It should be noted that, the process of analyzing the received at least one target function packet by the gateway controller is the same as the process of analyzing the received at least one target function packet by each vehicle-mounted controller, and reference may be made to the related description of the following embodiments.
Example two
Fig. 2 is a flowchart of a method for updating a function of a controller according to a second embodiment of the present invention. In this embodiment, on the basis of the above embodiment, the step "analyzing at least one received target function packet based on a preset packet analyzing mode matched with the preset packet generating mode" is optimized. Wherein explanations of the same or corresponding terms as those used in the above-described embodiments of the present invention are omitted. As shown in fig. 2, the method for updating the function of the controller may specifically include the following steps:
s210, receiving at least one target function message sent by the server through a gateway controller in the vehicle.
For example, table 1 gives an example of message information stored in a received target function message.
TABLE 1 message information stored in the target function message
Figure BDA0003724004490000081
The CAN ID is a broadcast address of the network communication packet, that is, a preset packet broadcast address, and for example, the CAN ID may be 0x500.SN is a message sequence number, that is, target message identification information. Mask is a hexadecimal target Mask byte value corresponding to a Mask byte. C1 to C6 are 6 functional bytes in hexadecimal.
S220, broadcasting the received at least one target function message through the gateway controller, so that each vehicle-mounted controller in the vehicle receives the at least one target function message.
And S230, acquiring target message identification information in each received target function message through each vehicle-mounted controller.
The target message identification information may refer to unique identification information corresponding to the target function message, so as to distinguish different target function messages. The target message identification information may be information generated according to a preset message generation manner and used for matching with the vehicle-mounted controller. The target message identification information may be characterized by numbers and/or letters. For example, the destination message identification information SN (i.e., the message sequence number) may be 1.
It should be noted that the message parsing manner corresponding to each vehicle-mounted controller is the same, and this embodiment takes the parsing manner of the current vehicle-mounted controller for the function message as an example for explanation. Specifically, the current vehicle-mounted controller analyzes each received target function message to obtain target message identification information in each target function message.
S240, matching each target message identification information with preset demand message identification information corresponding to the current vehicle-mounted controller, and taking a target function message corresponding to the successfully matched target message identification information as a target vehicle-mounted function message.
The preset demand message identification information corresponding to the current vehicle-mounted controller may refer to preset identification information corresponding to a function message required by function update of the current vehicle-mounted controller. The number of the preset required message identification information may be one or more.
Specifically, the current vehicle-mounted controller matches target message identification information in each target function message with preset demand message identification information corresponding to the current vehicle-mounted controller, and if matching of certain target message identification information with any preset demand message identification information corresponding to the current vehicle-mounted controller is successful, it is indicated that the target function message is required by the current vehicle-mounted controller, and at this time, the target function message can be used as the target vehicle-mounted function message. For example, if the SN of the target message is 1 and the preset required message identification information corresponding to the current vehicle-mounted controller includes information such as SN of 1 and SN of 3, the target function message with SN of 1 may be used as the target vehicle-mounted function message. The number of the determined target vehicle-mounted function messages can be one or more. If certain target message identification information is not matched with all preset required message identification information corresponding to the current vehicle-mounted controller, the target function message corresponding to the target message identification information is not the function message required to be updated by the current vehicle-mounted controller, and therefore accuracy of function updating can be further guaranteed through matching and screening.
And S250, determining the target function byte in the effective state in the target vehicle-mounted function message based on the target mask byte value corresponding to the mask byte in the target vehicle-mounted function message.
Where the mask byte may be used to store a mask byte value. For example, the Mask byte may be a Mask in table 1. The target mask byte value may be a hexadecimal value corresponding to the target mask byte. For example, the target Mask byte value may be the value represented by the Mask in table 1. The target mask byte value may be set to 0x08 (hexadecimal, corresponding to a binary number of 00001000). The target mask byte value may be used to represent a target function byte in an effective state in the corresponding vehicle-mounted function packet. The valid state may refer to an enabled state. Whereas the invalid state may refer to a not enabled state. The target function byte may be used to store information for controller function updates. Each target function byte may correspond to a control function. For example, each functional byte may be any one of C1 to C6 in table 1. And if the control functions exceeding the preset number need to be updated, the target function bytes corresponding to the control functions need to be stored in at least one target vehicle-mounted function message. The number of the target functional bytes in the valid state in the target vehicle-mounted functional message may be one or multiple.
Specifically, for each target vehicle-mounted function message, based on a target mask byte value corresponding to a mask byte in the target vehicle-mounted function message, a target function byte in an effective state in the target vehicle-mounted function message can be determined, so that only the function byte in the effective state is analyzed, and the function byte in an ineffective state is not needed to be analyzed, that is, no matter whether the function byte value corresponding to the function byte is any value, as long as the function byte is determined to be in the ineffective state, the target vehicle-mounted controller does not perform function update based on target vehicle-mounted function configuration information corresponding to the function byte in the ineffective state, so that only the target function byte in the effective state can be concerned, the target function byte in the ineffective state does not need to be concerned, and therefore, the situation of function update errors caused by function byte setting errors in the ineffective state can be avoided, and the efficiency and accuracy of function update are further improved while the function update resources of the controller are saved.
And S260, determining target vehicle-mounted function configuration information matched with the current vehicle-mounted controller based on the target function byte value corresponding to the target function byte in the target vehicle-mounted function message.
The target function byte value may be a hexadecimal value corresponding to the preconfigured target mask byte. For example, the target function byte value may be a value represented by any one of C1 to C6 in table 1. The target function byte value may be set to 0x01 (hexadecimal, with the corresponding binary number 00000001).
Specifically, the current vehicle-mounted controller can determine each piece of vehicle-mounted function information to be configured based on the target function byte value corresponding to the target function byte in each target vehicle-mounted function message, and combine each piece of vehicle-mounted function information to obtain target vehicle-mounted function configuration information matched with the current vehicle-mounted controller, thereby further ensuring the accuracy of function updating.
And S270, updating the functions of the current vehicle-mounted controller based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller.
According to the technical scheme of the embodiment of the invention, the target function byte in the valid state in the target vehicle-mounted function message can be determined based on the target mask byte value corresponding to the mask byte in the target vehicle-mounted function message, so that only the function byte in the valid state is analyzed and processed, and the function byte in the invalid state is not required to be analyzed and processed, namely no matter the function byte value corresponding to the function byte is any value, as long as the function byte is determined to be in the invalid state, the target vehicle-mounted controller cannot perform function update based on the target vehicle-mounted function configuration information corresponding to the function byte in the invalid state, so that only the target function byte in the valid state can be concerned, the target function byte in the invalid state is not required to be concerned, the condition of function update error caused by the setting error of the function byte in the invalid state can be avoided, and the efficiency and the accuracy of function update are further improved while the function update resources of the controller are saved.
On the basis of the foregoing technical solution, the determining, based on a target mask byte value corresponding to a mask byte in the target vehicle-mounted function message, a target function byte in an effective state in the target vehicle-mounted function message in S250 may include: acquiring a target binary number value corresponding to each binary bit in the mask byte based on a target mask byte value corresponding to the mask byte in the target vehicle-mounted function message; and determining the target function byte in the effective state in the target vehicle-mounted function message based on the corresponding relation between the binary number value corresponding to each binary digit in the mask byte and the state of the function byte and the target binary number value corresponding to each binary digit in the mask byte.
The corresponding relationship between the binary value and the functional byte state may be obtained by configuration in advance based on the service requirement. The corresponding relationship may be that a binary value of 1 corresponds to an effective state of the functional byte; a binary value of 0 corresponds to an invalid state of the functional byte. The mask byte may be used to store a mask byte value. For example, the Mask byte may be a Mask in table 1. The target mask byte value may be a hexadecimal value corresponding to the target mask byte. For example, the target Mask byte value may be the value represented by Mask in table 1. The target mask byte value may be set to 0x08 (hexadecimal, with a corresponding binary number of 00001000). The target mask byte value may be used to represent a target function byte in an effective state in the corresponding vehicle-mounted function packet. For example, the first two bits of the binary number corresponding to the target mask byte value may be reserved bits, and the remaining 6 bits may respectively indicate whether the corresponding function byte is in a valid state. For example, table 2 gives an example of a correspondence between binary values and functional byte states. C1 to C6 in table 2 may refer to 6 functional bytes. If the target mask byte value is 0x08 (hexadecimal), the value needs to be first converted from hexadecimal to 8-bit, i.e. the binary number after 0x08 conversion is 00001000 (bit 7 to bit 0 from left to right). The target controller can obtain a binary number value corresponding to each binary digit based on the binary number obtained after conversion, and can determine a target function byte in an effective state in the target vehicle-mounted function message based on the binary number obtained after conversion and the binary number value corresponding to each binary digit, namely C2 is effective, and the rest of the target function bytes are invalid, so that the controller only updates data in the C2.
TABLE 2 correspondence between binary values and functional byte states
Figure BDA0003724004490000131
Specifically, a target binary number value corresponding to each binary bit in the mask byte is obtained based on a target mask byte value corresponding to the mask byte in the target vehicle-mounted function message, and a target function byte in an effective state in the target vehicle-mounted function message is determined based on a corresponding relationship between the binary number value corresponding to each binary bit in the mask byte and a function byte state and the target binary number value corresponding to each binary bit in the mask byte, for example, a function byte corresponding to a target binary number value of 1 may be determined as a target function byte in an effective state, so that the effectiveness of each function byte may be accurately controlled by using the mask byte value.
On the basis of the foregoing technical solution, the determining target vehicle-mounted function configuration information matched with the current vehicle-mounted controller based on a target function byte value corresponding to a target function byte in the target vehicle-mounted function message in S260 may include: acquiring a target binary number value corresponding to each binary bit in the target function byte based on the target function byte value corresponding to the target function byte in the target vehicle-mounted function message; if at least two pieces of preset demand message identification information exist, determining a target corresponding relation between a binary number value in a target function byte and function state information under the target message identification information based on the target message identification information and the corresponding relation between the binary number value in the target function byte and the function state information under each piece of preset demand message identification information; and determining target vehicle-mounted function configuration information matched with the current vehicle-mounted controller based on the target corresponding relation between the binary values and the function state information and the target binary values corresponding to each binary bit in the target function bytes.
For example, table 3 gives an example of a target correspondence between a binary value corresponding to the first target function byte C1 and the function status information. Table 4 gives an example of the target correspondence between the binary value corresponding to the second target function byte C2 and the function status information.
Target correspondence between binary values and functional state information corresponding to Table 3C1
Figure BDA0003724004490000141
TABLE 4C2 target correspondence between binary values and functional state information
Figure BDA0003724004490000151
If the target function byte value corresponding to the target function byte C1 is 0x01 (hexadecimal), the target function byte value corresponding to the target function byte C1 is converted into a binary value of 00000001, and corresponds to the function status information of "1.8T" in bit 1-0 of table 3. If the target function byte C2 is also 0x01, the binary value corresponding to the target function byte C2 is also 00000001, but the function status information in bit 0 of the correspondence table 4 is "AQS on".
For example, the air conditioner controller in table 4 defines the engine model to configure the calibration parameters of the cooling capacity, and configure the AQS function to be turned on and off at the same time. The steering controller in table 3 defines the engine type to configure the steering torque corresponding to the engines with different displacement. The preset air conditioner controller needs to receive information of four bytes, such as SN (value is 2), mask, C1 (bit 1-0) and C2 (bit 0), of the functional message in table 1, and the steering controller needs to receive information of three bytes, such as SN (value is 2), mask and C1 (bit 1-0), of the functional message in table 1. If the user subsequently purchases the AQS function, only a function message of 0x500 needs to be sent, wherein SN is set to 2, mask is set to 0x08 (hexadecimal, corresponding bit 7-bit 0 is 00001000), C2 is set to 0x01 (hexadecimal, corresponding bit 7-bit 0 is 00000001, and other bits are assumed to be reserved), so that no matter what value is set in bytes C1 and C3-C6, even if the engine displacement in byte C1 is carelessly set incorrectly, the opening of the AQS function can not be influenced. Similarly, if a user wants to modify the configuration of the engine displacement independently and change the configuration of the engine displacement to 2.0, the Mask is only required to be set to 0x04 (hexadecimal, the value of the corresponding bit 7-bit 0 is 00000100), the C2 is only required to be set to 0x02 (hexadecimal, the value of the corresponding bit 7-bit 0 is 00000010, and other bits are assumed to be reserved), so that the configurations of the air conditioner controller and the steering controller about the engine displacement can be modified simultaneously, that is, dynamic updating of the controller is realized, accuracy of function updating is further ensured, and flexibility of function updating of the controller can be improved.
It should be noted that since the vehicle controller configuration functions are very numerous, SN may be defined from 1 to 255. Through the scheme, the target controller realizes the function updating of the target controller only based on the specified requirement message identification information, the specified mapping relation between the control function and the mask byte value and the actually sent mask byte corresponding value, thereby ensuring the accuracy of the function updating.
Specifically, the current vehicle-mounted controller obtains a target binary number value corresponding to each binary bit in the target function byte C2 based on a target function byte value 00000001 corresponding to the target function byte C2 in the target vehicle-mounted function message, that is, 00000001 corresponds to bits 7 to 0 one to one, and the corresponding result is that bits 7 to 1 all correspond to 0, and only bit 0 corresponds to 1. If at least two pieces of preset demand message identification information exist, it is indicated that at least two pieces of preset demand message identification information matched with the target function message identification information can exist in the current controller, and a target corresponding relation between a binary value in a target function byte and function state information under the target message identification information, such as table 3 and table 4, is determined based on the target message identification information and a corresponding relation between a binary value in a target function byte and the function state information under each piece of preset demand message identification information. And determining target vehicle-mounted function configuration information matched with the current vehicle-mounted controller based on a target corresponding relation between the binary values and the function state information and a target binary value corresponding to each binary bit in the target function byte, so that the functions of a plurality of controllers can be updated simultaneously, the dynamic updating of the functions of the controllers is realized, the accuracy of the function updating is further ensured through a specific message generation mode and a message analysis mode, and the updating efficiency of the functions of the controllers is further improved.
EXAMPLE III
Fig. 3 is a flowchart of a method for updating a function of a controller according to a third embodiment of the present invention. The controller function updating method provided by the embodiment can be applied to the situation of dynamic updating of the controller function, and the method can be applied to a server. As shown in fig. 3, the controller function updating method may include:
s310, acquiring target function configuration information corresponding to at least one target controller of the function to be modified.
The function to be modified may refer to a function that needs to be modified in a controller of the vehicle. The target controller may be a controller that currently needs an updated function. The number of target controllers may be one or more. The target controller may include a gateway controller and/or an on-board controller. The target function configuration information may be data information generated according to a preset message generation manner and used for updating a function of the target controller.
Specifically, the server may obtain, through the operation interface, target function configuration information corresponding to at least one target controller of the function to be modified.
S320, generating at least one target function message based on a preset message generation mode and target function configuration information.
The preset message generation mode may be a mode preset in the server for generating the function message. The target function packet may be packet data generated by presetting a packet generation mode for target function configuration information.
Specifically, the server may generate at least one target function packet by acquiring, on the operation interface, target function configuration information corresponding to at least one target controller of the function to be modified based on a preset packet generation manner.
S330, at least one target function message is sent to the vehicle, so that the vehicle receives the at least one target function message through the gateway controller, and the received at least one target function message is broadcasted, so that each vehicle-mounted controller in the vehicle receives the at least one target function message.
The gateway controller may refer to a device on the vehicle for automatically receiving and controlling the transmission function message. The gateway controller may be connected to the various on-board controllers via, but not limited to, a CAN bus. The gateway controller broadcast period may be 100ms. The onboard controllers may include various controllers in the vehicle in addition to the gateway controller.
Specifically, the server may send at least one target function packet to the vehicle through an OTA technology, so that the vehicle receives the at least one target function packet through the gateway controller, and broadcasts the received at least one target function packet, so that each onboard controller in the vehicle receives the at least one target function packet. The gateway controller in this embodiment may perform repeated broadcasting on each received target function packet for a preset number of times, so as to ensure that each vehicle-mounted controller can receive each target function packet. The repeated broadcasting may refer to broadcasting each target function packet once, and then performing the next broadcasting to ensure that each target function packet is broadcast and received by the onboard controller.
S340, analyzing at least one received target function message through each vehicle-mounted controller based on a preset message analysis mode matched with the preset message generation mode, and updating the function of the current vehicle-mounted controller based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller.
The preset message parsing mode may be a preset message parsing mode opposite to the preset message generating mode. The target vehicle-mounted function configuration information may be information that the received target function message is analyzed by the current vehicle-mounted controller and is matched with the current vehicle-mounted controller, and may be used to update the function of the current controller.
Specifically, each vehicle-mounted controller may parse at least one received target function packet based on a preset packet parsing manner that is matched with the preset packet generating manner, and if each vehicle-mounted controller may parse corresponding target vehicle-mounted function configuration information, it indicates that the current vehicle-mounted controller needs to perform a function updating operation, and at this time, may perform a function update on the current vehicle-mounted controller based on the parsed target vehicle-mounted function configuration information that is matched with the current vehicle-mounted controller. If the current vehicle-mounted controller cannot analyze the corresponding target vehicle-mounted function configuration information, the current vehicle-mounted controller does not need to perform function updating, and at the moment, the function updating operation can not be performed, so that only the vehicle-mounted controller needing the function updating can be updated, the condition of updating errors is avoided, the accuracy of the function updating can be ensured, and meanwhile, the flexibility of the function updating of the controller can be improved.
According to the technical scheme of the embodiment of the invention, at least one target function message is generated by the server based on a preset message generation mode and target function configuration information corresponding to at least one target controller with a function to be modified, the at least one target function message is sent to the vehicle, the gateway controller in the vehicle receives the at least one target function message sent by the server and broadcasts the received at least one target function message to each vehicle-mounted controller, so that each vehicle-mounted controller in the vehicle receives the at least one target function message. Each vehicle-mounted controller can analyze at least one received target function message based on a preset message analysis mode matched with a preset message generation mode, if target vehicle-mounted function configuration information matched with the current vehicle-mounted controller exists, the fact that the current vehicle-mounted controller needs to be updated is indicated, at the moment, the function of the current vehicle-mounted controller can be updated based on the target vehicle-mounted function configuration information, therefore, a plurality of controllers can be updated simultaneously, dynamic updating of functions of the controllers is achieved, accuracy of function updating can be guaranteed through a specific message generation mode and a specific message analysis mode, and flexibility and updating efficiency of function updating of the controllers are improved.
Example four
Fig. 4 is a flowchart of a method for updating a function of a controller according to a fourth embodiment of the present invention. On the basis of the technical scheme, the embodiment of the invention optimizes the step of generating at least one target function message based on the preset message generation mode and the target function configuration information. Wherein explanations of the same or corresponding terms as those of the above-described embodiments of the present invention are omitted. As shown in fig. 4, the controller function updating method may include:
s410, acquiring target function configuration information corresponding to at least one target controller of the function to be modified.
S420, target controller identification information and corresponding target function information corresponding to each target controller in the target function configuration information are obtained.
The target controller identification information may be information for matching with the target packet identification information. The target function information may include target function identification information to be modified and modified target function state information. The target function state information may be information that is set in advance by a user as to whether the function is in an on state or an off state.
Specifically, the server may obtain target controller identification information and corresponding target function information corresponding to each target controller in the target function configuration information.
S430, determining target message identification information corresponding to each target controller based on the preset corresponding relation between the controller identification information and the demand message identification information and the target controller identification information.
The required message identification information may be identification information corresponding to a function message required by the function update of the vehicle-mounted controller. The number of the requirement message identification information can be one or more.
Specifically, the server may determine, for the target controller identification information corresponding to each target controller, the demand packet identification information corresponding to the target controller identification information as the target packet identification information corresponding to the target controller based on a preset correspondence between the controller identification information and the demand packet identification information.
S440, determining target function byte identification information corresponding to each target controller based on the corresponding relation between the function identification information corresponding to each target controller and the function byte identification information and the target function identification information.
The function identification information may be information for uniquely identifying a certain function, so as to distinguish different functions. The function byte identification information may be information for uniquely identifying a certain function corresponding byte.
Specifically, for each target controller, based on the corresponding relationship between the function identification information and the function byte identification information corresponding to the target controller, the function byte identification information corresponding to the target function identification information is determined as the target function byte identification information corresponding to the target controller. And determining the functional byte identification information corresponding to the target functional identification information as the target functional byte identification information corresponding to the target controller based on the corresponding relationship between the functional identification information corresponding to the target controller and the functional byte identification information.
S450, based on the target function byte identification information and the target function state information, a target mask byte value corresponding to the mask byte and a target function byte value corresponding to the target function byte are generated.
Where the mask byte may be used to store a mask byte value. For example, the Mask byte may be a Mask in table 1. The target mask byte value may be a hexadecimal value corresponding to the target mask byte. For example, the target Mask byte value may be the value represented by the Mask in table 1. The target mask byte value may be set to 0x08 (hexadecimal, with a corresponding binary number of 00001000). The target mask byte value may be used to represent a target function byte in an effective state in the corresponding vehicle-mounted function packet. The target function byte may be used to store information for controller function updates. Each target function byte may correspond to a control function. For example, each functional byte may be any one of C1 to C6 in table 1. The target function byte value may be a hexadecimal value corresponding to the preconfigured target mask byte. For example, the target function byte value may be a value represented by any one of C1 to C6 in table 1. The target function byte value may be set to 0x01 (hexadecimal, with the corresponding binary number 00000001).
Specifically, the server may generate a target mask byte value corresponding to the mask byte and a target function byte value corresponding to the target function byte based on the target function byte identification information and the target function state information, thereby ensuring accuracy of matching the target function packet.
And S460, generating a target function message corresponding to the target controller based on the target message identification information, the target mask byte value, the target function byte value and the preset message broadcast address.
The preset message broadcast address may be a preset broadcast address for transmitting the target function message, for example, the preset message broadcast address may be 0x500.
Specifically, the server may combine the target message identification information, the target mask byte value, the target function byte value, and the preset message broadcast address according to the message format, and generate the target function message corresponding to the target controller. The method for generating the target function message corresponding to the target controller may be a preset message generation method. The preset message generation mode corresponds to the preset message analysis mode in the above embodiment.
S470, sending the at least one target function message to the vehicle, so that the vehicle receives the at least one target function message through the gateway controller, and broadcasting the received at least one target function message, so that each vehicle-mounted controller in the vehicle receives the at least one target function message.
The requirement indicates that after determining each target function message corresponding to each target controller, duplicate removal processing may be performed on each target function message, and the duplicate-removed target function message is sent to the vehicle, so as to save device resources. If the same target function messages exist, the number of the target function messages after duplication removal is smaller than that of the target controllers, so that the function of most target controllers can be updated by using a small number of target function messages.
And S480, analyzing at least one received target function message through each vehicle-mounted controller based on a preset message analysis mode matched with the preset message generation mode, and updating the function of the current vehicle-mounted controller based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller.
According to the technical scheme of the embodiment of the invention, the server can generate the target mask byte value corresponding to the mask byte and the target function byte value corresponding to the target function byte based on the target function byte identification information and the target function state information, so that the accuracy of matching the target function message is ensured. Meanwhile, the server can generate a target function message corresponding to the target controller based on the target message identification information, the target mask byte value, the target function byte value and a preset message broadcast address. If the same target function message exists, the message can be merged, so that the broadcast resource is saved.
On the basis of the foregoing technical solution, the "generating a target mask byte value corresponding to a mask byte and a target function byte value corresponding to a target function byte based on target function byte identification information and target function state information" in S450 may include: determining a target binary number value corresponding to each binary bit in the mask byte based on the target function byte identification information and the corresponding relationship between the binary number value corresponding to each binary bit in the mask byte and the function byte state; generating a target mask byte value corresponding to the mask byte based on each target binary number value corresponding to each binary bit in the mask byte; determining a target binary number value corresponding to each binary bit in the target function byte based on the corresponding relation between the binary number value in the target function byte and the function state information; and generating a target function byte value corresponding to the target function byte based on each target binary number value corresponding to each binary digit in the target function byte.
It should be noted that the preset message generation manner corresponds to the preset message analysis manner in the above embodiment, and can be implemented by reverse derivation, so repeated descriptions are not repeated.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a controller function updating system according to a fifth embodiment of the present invention. The controller function update system may include: a server 510 and a vehicle 520.
The vehicle 520 is configured to implement the controller function updating method applied to the vehicle according to any embodiment of the present invention, and the server 510 is configured to implement the controller function updating method applied to the server according to any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, at least one target function message is generated by the server based on a preset message generation mode and target function configuration information corresponding to at least one target controller with a function to be modified, the at least one target function message is sent to the vehicle, the gateway controller in the vehicle receives the at least one target function message sent by the server and broadcasts the received at least one target function message to each vehicle-mounted controller, so that each vehicle-mounted controller in the vehicle receives the at least one target function message. Each vehicle-mounted controller can analyze at least one received target function message based on a preset message analysis mode matched with a preset message generation mode, if target vehicle-mounted function configuration information matched with the current vehicle-mounted controller exists, the fact that the current vehicle-mounted controller needs to be updated is indicated, at the moment, the function of the current vehicle-mounted controller can be updated based on the target vehicle-mounted function configuration information, therefore, a plurality of controllers can be updated simultaneously, dynamic updating of functions of the controllers is achieved, accuracy of function updating can be guaranteed through a specific message generation mode and a specific message analysis mode, and flexibility and updating efficiency of function updating of the controllers are improved.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a vehicle according to a sixth embodiment of the present invention. The vehicle may include: a gateway controller 610 and a plurality of on-board controllers 620.
The gateway controller 610 is configured to: and receiving at least one target function message sent by the server.
The server generates at least one target function message based on a preset message generation mode and target function configuration information corresponding to at least one target controller of a function to be modified; and broadcasting the received at least one target function message, so that each vehicle-mounted controller 620 receives the at least one target function message.
Each onboard controller 620 is configured to: and analyzing at least one received target function message based on a preset message analysis mode matched with the preset message generation mode, and updating the function of the current vehicle-mounted controller 620 based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller 620.
According to the technical scheme of the embodiment of the invention, at least one target function message is generated by a server based on a preset message generation mode and target function configuration information corresponding to at least one target controller with a function to be modified, the at least one target function message is sent to a vehicle, a gateway controller 610 in the vehicle receives the at least one target function message sent by the server, and broadcasts the received at least one target function message to each vehicle-mounted controller 620, so that each vehicle-mounted controller 620 in the vehicle receives the at least one target function message. Each vehicle-mounted controller 620 can analyze at least one received target function message based on a preset message analysis mode matched with a preset message generation mode, if target vehicle-mounted function configuration information matched with the current vehicle-mounted controller 620 exists, it is indicated that the current vehicle-mounted controller 620 needs to be updated, and at the moment, the function of the current vehicle-mounted controller 620 can be updated based on the target vehicle-mounted function configuration information, so that multiple controllers can be updated simultaneously, the dynamic updating of the functions of the controllers is realized, the accuracy of the function updating can be ensured through a specific message generation mode and a message analysis mode, and meanwhile, the flexibility and the updating efficiency of the functions of the controllers are improved.
Optionally, the onboard controller 620 may also be used to: acquiring target message identification information in each received target function message; matching each target message identification information with preset demand message identification information corresponding to the current vehicle-mounted controller 620, and taking a target function message corresponding to the successfully matched target message identification information as a target vehicle-mounted function message; determining a target function byte in an effective state in the target vehicle-mounted function message based on a target mask byte value corresponding to a mask byte in the target vehicle-mounted function message; and determining target vehicle-mounted function configuration information matched with the current vehicle-mounted controller 620 based on the target function byte value corresponding to the target function byte in the target vehicle-mounted function message.
Optionally, the onboard controller 620 may also be used to: acquiring a target binary number value corresponding to each binary bit in the mask byte based on a target mask byte value corresponding to the mask byte in the target vehicle-mounted function message; and determining the target function byte in the effective state in the target vehicle-mounted function message based on the corresponding relation between the binary number value corresponding to each binary digit in the mask byte and the state of the function byte and the target binary number value corresponding to each binary digit in the mask byte.
Optionally, the onboard controller 620 may also be used to: acquiring a target binary number value corresponding to each binary bit in the target function byte based on the target function byte value corresponding to the target function byte in the target vehicle-mounted function message; if at least two pieces of preset demand message identification information exist, determining a target corresponding relation between a binary number value in a target function byte and function state information under the target message identification information based on the target message identification information and the corresponding relation between the binary number value in the target function byte and the function state information under each piece of preset demand message identification information; and determining target vehicle-mounted function configuration information matched with the current vehicle-mounted controller 620 based on the target corresponding relation between the binary values and the function state information and the target binary values corresponding to each binary bit in the target function byte.
Optionally, the gateway controller 610 is specifically configured to: and analyzing at least one received target function message based on a preset message analysis mode matched with the preset message generation mode, and updating the functions of the gateway controller based on the analyzed target gateway function configuration information matched with the gateway controller.
EXAMPLE seven
FIG. 7 shows a schematic block diagram of a server 10 that may be used to implement an embodiment of the invention. Server is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, blade servers, mainframes, and other appropriate computers. The server may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the server 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the server 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the server 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the server 10 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 executes the respective methods and processes described in the above embodiments, such as the controller function update method.
In some embodiments, the controller function update method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed on the server 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the controller function update method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the controller function update method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here may be implemented on a server having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the server. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A controller function updating method applied to a vehicle, the method comprising:
receiving at least one target function message sent by a server through a gateway controller in the vehicle, wherein the at least one target function message is generated by the server based on a preset message generation mode and target function configuration information corresponding to at least one target controller with functions to be modified;
broadcasting the received at least one target function message through the gateway controller so that each vehicle-mounted controller in a vehicle receives the at least one target function message;
and analyzing the received at least one target function message through each vehicle-mounted controller based on a preset message analysis mode matched with the preset message generation mode, and updating the function of the current vehicle-mounted controller based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller.
2. The method according to claim 1, wherein the parsing the received at least one target function packet based on a preset packet parsing manner matched with the preset packet generating manner comprises:
acquiring target message identification information in each received target function message;
matching each target message identification information with preset demand message identification information corresponding to the current vehicle-mounted controller, and taking a target function message corresponding to the successfully matched target message identification information as a target vehicle-mounted function message;
determining a target function byte in an effective state in the target vehicle-mounted function message based on a target mask byte value corresponding to a mask byte in the target vehicle-mounted function message;
and determining target vehicle-mounted function configuration information matched with the current vehicle-mounted controller based on the target function byte value corresponding to the target function byte in the target vehicle-mounted function message.
3. The method according to claim 2, wherein the determining the target vehicle-mounted function byte in the target vehicle-mounted function message in an effective state based on a target mask byte value corresponding to a mask byte in the target vehicle-mounted function message comprises:
acquiring a target binary number value corresponding to each binary bit in the mask byte based on a target mask byte value corresponding to the mask byte in the target vehicle-mounted function message;
and determining the target function byte in the effective state in the target vehicle-mounted function message based on the corresponding relation between the binary number value corresponding to each binary digit in the mask byte and the state of the function byte and the target binary number value corresponding to each binary digit in the mask byte.
4. The method according to claim 2, wherein the determining target vehicle-mounted function configuration information matched with a current vehicle-mounted controller based on a target function byte value corresponding to the target function byte in the target vehicle-mounted function message comprises:
acquiring a target binary number value corresponding to each binary bit in the target function byte based on the target function byte value corresponding to the target function byte in the target vehicle-mounted function message;
if at least two pieces of preset demand message identification information exist, determining a target corresponding relation between a binary number value in the target function byte and function state information under the target message identification information based on the target message identification information and the corresponding relation between the binary number value in the target function byte and the function state information under each piece of preset demand message identification information;
and determining target vehicle-mounted function configuration information matched with the current vehicle-mounted controller based on the target corresponding relation between the binary values and the function state information and the target binary values corresponding to each binary bit in the target function bytes.
5. The method according to any of claims 1-4, further comprising, prior to broadcasting the received at least one target function packet:
and analyzing the received at least one target function message based on a preset message analysis mode matched with the preset message generation mode, and updating the functions of the gateway controller based on analyzed target gateway function configuration information matched with the gateway controller.
6. A controller function updating method is applied to a server, and the method comprises the following steps:
acquiring target function configuration information corresponding to at least one target controller of a function to be modified;
generating at least one target function message based on a preset message generation mode and the target function configuration information;
sending the at least one target function message to a vehicle so that the vehicle receives the at least one target function message through a gateway controller, and broadcasting the received at least one target function message so that each vehicle-mounted controller in the vehicle receives the at least one target function message;
and analyzing the received at least one target function message through each vehicle-mounted controller based on a preset message analysis mode matched with the preset message generation mode, and updating the function of the current vehicle-mounted controller based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller.
7. The method of claim 6, wherein the target controller comprises: a gateway controller and/or at least one onboard controller in the vehicle.
8. The method according to claim 6, wherein the generating at least one target function packet based on a preset packet generation manner and the target function configuration information comprises:
acquiring target controller identification information and corresponding target function information corresponding to each target controller in the target function configuration information, wherein the target function information comprises target function identification information to be modified and modified target function state information;
determining target message identification information corresponding to each target controller based on a preset corresponding relation between controller identification information and demand message identification information and the target controller identification information;
determining target function byte identification information corresponding to each target controller based on the corresponding relation between the function identification information and the function byte identification information corresponding to each target controller and the target function identification information;
generating a target mask byte value corresponding to a mask byte and a target function byte value corresponding to the target function byte based on the target function byte identification information and the target function state information;
and generating a target function message corresponding to the target controller based on the target message identification information, the target mask byte value, the target function byte value and a preset message broadcast address.
9. The method of claim 8, wherein generating a target mask byte value corresponding to a mask byte and a target function byte value corresponding to the target function byte based on the target function byte identification information and the target function status information comprises:
determining a target binary number value corresponding to each binary bit in the mask byte based on the target function byte identification information and the corresponding relationship between the binary number value corresponding to each binary bit in the mask byte and the function byte state;
generating a target mask byte value corresponding to the mask byte based on each target binary number value corresponding to each binary bit in the mask byte;
determining a target binary number value corresponding to each binary bit in the target function byte based on the corresponding relation between the binary number value in the target function byte and the function state information;
and generating a target function byte numerical value corresponding to the target function byte based on each target binary numerical value corresponding to each binary digit in the target function byte.
10. A controller function update system, the system comprising: a server and a vehicle;
wherein the vehicle is configured to implement the controller function update method of any one of claims 1-5;
the server is used for implementing the controller function updating method according to any one of claims 6 to 10.
11. A vehicle, characterized in that the vehicle comprises: a gateway controller and a plurality of vehicle-mounted controllers; wherein,
the gateway controller is configured to: receiving at least one target function message sent by a server, wherein the at least one target function message is generated by the server based on a preset message generation mode and target function configuration information corresponding to at least one target controller of a function to be modified; broadcasting the received at least one target function message so that each vehicle-mounted controller receives the at least one target function message;
each of the onboard controllers is configured to: and analyzing the received at least one target function message based on a preset message analysis mode matched with the preset message generation mode, and updating the function of the current vehicle-mounted controller based on the analyzed target vehicle-mounted function configuration information matched with the current vehicle-mounted controller.
12. A server, characterized in that the server comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the controller function update method of any one of claims 6-10.
CN202210771055.7A 2022-06-30 2022-06-30 Controller function updating method, system, vehicle and server Active CN115167351B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210771055.7A CN115167351B (en) 2022-06-30 2022-06-30 Controller function updating method, system, vehicle and server
PCT/CN2023/094109 WO2024001572A1 (en) 2022-06-30 2023-05-15 Controller function updating method and system, vehicle, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210771055.7A CN115167351B (en) 2022-06-30 2022-06-30 Controller function updating method, system, vehicle and server

Publications (2)

Publication Number Publication Date
CN115167351A true CN115167351A (en) 2022-10-11
CN115167351B CN115167351B (en) 2024-08-13

Family

ID=83489783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210771055.7A Active CN115167351B (en) 2022-06-30 2022-06-30 Controller function updating method, system, vehicle and server

Country Status (2)

Country Link
CN (1) CN115167351B (en)
WO (1) WO2024001572A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024001572A1 (en) * 2022-06-30 2024-01-04 中国第一汽车股份有限公司 Controller function updating method and system, vehicle, and server

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286936A (en) * 2008-05-16 2008-10-15 华为技术有限公司 Method and apparatus for data message processing
CN102624600A (en) * 2011-01-28 2012-08-01 深圳市恒扬科技有限公司 Method, device and terminal of Ethernet packet matching
CN103441931A (en) * 2013-08-23 2013-12-11 华为技术有限公司 Message sending method and device
CN106444568A (en) * 2016-12-22 2017-02-22 北京汽车研究总院有限公司 Data updating method and data updating device
CN107465588A (en) * 2017-07-27 2017-12-12 广州汽车集团股份有限公司 Condition control method, device and the NMS of multiple bus network
CN108243042A (en) * 2016-12-27 2018-07-03 比亚迪股份有限公司 Configuration method, again networking pass, controller, compartment and train are closed in networking again
CN108848204A (en) * 2018-07-10 2018-11-20 新华三信息安全技术有限公司 A kind of NAT business immediate processing method and device
CN113472560A (en) * 2020-03-31 2021-10-01 比亚迪股份有限公司 Method of managing vehicle local area network, vehicle and storage medium
CN113552851A (en) * 2021-05-31 2021-10-26 江铃汽车股份有限公司 Method and system for off-line configuration of platform automobile
CN113612804A (en) * 2021-10-08 2021-11-05 江铃汽车股份有限公司 Vehicle configuration upgrading method and system, storage medium and intelligent gateway
CN113904922A (en) * 2021-09-06 2022-01-07 东风柳州汽车有限公司 Gateway configuration method and device
CN114500358A (en) * 2022-02-14 2022-05-13 未鲲(上海)科技服务有限公司 Gateway message distribution method, device, equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6675271B2 (en) * 2015-09-14 2020-04-01 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Gateway device, in-vehicle network system, and firmware update method
JP6323480B2 (en) * 2016-03-02 2018-05-16 住友電気工業株式会社 Program update system, program update method, and computer program
CN106385420A (en) * 2016-09-29 2017-02-08 中国联合网络通信集团有限公司 ECU software download method and device
CN108153562B (en) * 2017-12-26 2021-03-02 浙江中科正方电子技术有限公司 System and method for remote program update management of ECU of new energy automobile
KR20200075626A (en) * 2018-12-18 2020-06-26 한국자동차연구원 Wireless update system and method capable of ecu update of vehicle
KR102122376B1 (en) * 2019-01-09 2020-06-12 주식회사 지쓰리 Connected gateway for vehicle
CN111917619B (en) * 2020-07-29 2022-07-29 华人运通(江苏)技术有限公司 Communication method, communication device, electronic equipment and readable storage medium
CN115167351B (en) * 2022-06-30 2024-08-13 中国第一汽车股份有限公司 Controller function updating method, system, vehicle and server

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286936A (en) * 2008-05-16 2008-10-15 华为技术有限公司 Method and apparatus for data message processing
CN102624600A (en) * 2011-01-28 2012-08-01 深圳市恒扬科技有限公司 Method, device and terminal of Ethernet packet matching
CN103441931A (en) * 2013-08-23 2013-12-11 华为技术有限公司 Message sending method and device
CN106444568A (en) * 2016-12-22 2017-02-22 北京汽车研究总院有限公司 Data updating method and data updating device
CN108243042A (en) * 2016-12-27 2018-07-03 比亚迪股份有限公司 Configuration method, again networking pass, controller, compartment and train are closed in networking again
CN107465588A (en) * 2017-07-27 2017-12-12 广州汽车集团股份有限公司 Condition control method, device and the NMS of multiple bus network
CN108848204A (en) * 2018-07-10 2018-11-20 新华三信息安全技术有限公司 A kind of NAT business immediate processing method and device
CN113472560A (en) * 2020-03-31 2021-10-01 比亚迪股份有限公司 Method of managing vehicle local area network, vehicle and storage medium
CN113552851A (en) * 2021-05-31 2021-10-26 江铃汽车股份有限公司 Method and system for off-line configuration of platform automobile
CN113904922A (en) * 2021-09-06 2022-01-07 东风柳州汽车有限公司 Gateway configuration method and device
CN113612804A (en) * 2021-10-08 2021-11-05 江铃汽车股份有限公司 Vehicle configuration upgrading method and system, storage medium and intelligent gateway
CN114500358A (en) * 2022-02-14 2022-05-13 未鲲(上海)科技服务有限公司 Gateway message distribution method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024001572A1 (en) * 2022-06-30 2024-01-04 中国第一汽车股份有限公司 Controller function updating method and system, vehicle, and server

Also Published As

Publication number Publication date
WO2024001572A1 (en) 2024-01-04
CN115167351B (en) 2024-08-13

Similar Documents

Publication Publication Date Title
CN110113381A (en) The method and device of theme is subscribed in a kind of block chain
CN111371638A (en) Intelligent equipment testing method and device, server and storage medium
CN112954045B (en) Data transmission method, device, medium and electronic equipment in node
CN110765195A (en) Data analysis method and device, storage medium and electronic equipment
CN115167351B (en) Controller function updating method, system, vehicle and server
CN107959548B (en) Method and system for processing service request
CN116700776A (en) Information management method, device, equipment and storage medium of battery management system
CN115933591B (en) Controller diagnosis method, device, equipment and storage medium
CN115408034A (en) Vehicle-mounted controller upgrading method and device, electronic equipment and storage medium
CN113242169B (en) Multi-slave data updating method, system, equipment and storage medium
CN114546444A (en) Vehicle upgrading method and device, electronic equipment, medium and automatic driving vehicle
CN114880009A (en) Vehicle instrument upgrading system and method, electronic equipment and storage medium
CN115065574A (en) Wake-up method and device of vehicle controller, electronic equipment and automatic driving vehicle
CN116094908B (en) Log file storage method, device, equipment and storage medium
CN113850988B (en) Key value correction method, device, equipment and computer readable medium
CN112948246B (en) AB test control method, device and equipment of data platform and storage medium
CN115600671B (en) Data processing method, device, equipment and storage medium of deep learning framework
CN114697147B (en) Equipment searching method, device, equipment and storage medium
CN115357264A (en) Program updating method, device, equipment and storage medium for robot
CN116804932A (en) Vehicle software identification recognition method and device, electronic equipment and storage medium
CN115481706A (en) Vehicle machine activation method and device and electronic equipment
CN112579116B (en) Control method for remote updating firmware
CN115061454A (en) Vehicle condition signal correction method, device, equipment and storage medium
CN117032174A (en) Control method and device based on vehicle-mounted gateway and computer readable storage medium
CN118300911A (en) Nonstandard equipment data acquisition method and system based on Ethernet communication

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