Method, device and vehicle for processing duplicate message channel configuration
By automatically processing the message channel configuration after the ECU upgrade program, the problem of duplication and error of message channel configuration is solved, the correct configuration of message channel is achieved, the workload of manual troubleshooting is reduced, and the configuration efficiency is improved.
Patent Information
- Application Number
- CN202411792169.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-04
AI Technical Summary
In the ECU upgrade program, the configuration of the message channel may be duplicated or errors, resulting in some messages being unable to be received and sent normally. The existing technology requires manual inspection, which is a large workload and is prone to missed and errors.
After the ECU upgrades the program, obtain the message names of all types of messages and mark the corresponding message channels in turn according to the message channel configuration results. If multiple message channels are found to mark the same message name or one message channel mark multiple message names, reconfigure the message channel to ensure that each message name corresponds to a message channel and each message channel corresponds to a message name.
Through the automated repetitive processing method of message channel configuration, the problem of duplication of message channel configuration is solved, the workload of manual troubleshooting is reduced, the configuration efficiency is improved, and the packet reception and transmission failures caused by configuration errors are avoided.
Smart Images

Figure CN119766648A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ECU upgrade, and in particular to a method, device, computer program product and vehicle for processing repeated message channel configuration. Background Art
[0002] When the vehicle ECU upgrades the program, some functional data will be re-synthesized. During the data synthesis process, there may be problems with duplicate message channel configuration or channel configuration on the wrong communication CAN, resulting in some messages not being received and sent normally during use. Since the number of messages used by the ECU controller is large, after the software is re-synthesized, it is cumbersome to manually check whether there is a calibration duplication problem and it is easy to have omissions and errors. The problem of messages not being received and sent normally will directly flow to the market, resulting in the need to re-flash data for maintenance in the later stage, wasting a lot of manpower and material resources. Summary of the invention
[0003] The main purpose of the present application is to provide a method, device, computer program product and vehicle for processing duplicate message channel configurations, so as to at least solve the problem of large workload in manually troubleshooting duplicate message channel configurations in the prior art.
[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for processing repeated message channel configuration is provided, including: after the ECU upgrade program, obtaining the message names of all types of messages of the ECU; marking the corresponding message channels in sequence with each message name according to the message channel configuration result, and the message channel configuration result is the correspondence between the message name and the message channel; in the case that multiple message channels are marked with the same message name or one message channel is marked with multiple message names, reconfiguring the message channel so that one message name corresponds to one message channel and one message channel corresponds to one message name.
[0005] Optionally, each message name is used to mark the corresponding message channel in sequence according to the message channel configuration result, including: numbering each message name to obtain a number for each message name; and marking the message channels corresponding to the message names in the message channel configuration result in sequence according to the order of the numbers using the message names corresponding to the numbers.
[0006] Optionally, before reconfiguring the message channel so that one message channel corresponds to one message channel and one message channel corresponds to one message channel, the method further includes: recording the number of times each message name is marked to obtain multiple marking times, and the marking times correspond one-to-one to the message names; when any one of the marking times is greater than or equal to 2, determining the message names with the same marking of multiple message channels.
[0007] Optionally, before reconfiguring the message channel so that one message channel corresponds to one message channel and one message channel corresponds to one message channel, the method further includes: obtaining the number of the message names marked by each message channel to obtain multiple numbers of message names, and the number of message names corresponds one-to-one to the message channels; when any number of the message names is greater than or equal to 2, determining that one message channel is marked with multiple message names.
[0008] Optionally, in the case where the number of any one of the message names is greater than or equal to 2, after determining that a message channel marks multiple message names, the method further includes: determining the message channel corresponding to the number of message names greater than or equal to 2 as a duplicate channel; issuing an alarm message and displaying the duplicate channel.
[0009] Optionally, in the case where multiple message channels are marked with the same message name or one message channel is marked with multiple message names, the message channel configuration is re-performed so that one message channel corresponds to one message channel and one message channel corresponds to one message channel, including: in the case where multiple message channels are marked with the same message name, among the multiple message channels with the same message name, the message name of one message channel is retained and the message names of the other message channels are deleted; in the case where one message channel is marked with multiple message names, only one message name is retained in the message channel and the other message names are marked as unconfigured channels; and the message contents of the message names of the unconfigured channels are forwarded in sequence to the message channels that are not marked with the message names.
[0010] Optionally, the message contents of the message names of the unconfigured channels are forwarded in sequence to the message channels without marking the message names, including: obtaining the number of the message names marked by each of the message channels to obtain multiple numbers of message names, and the number of message names corresponds one-to-one to the message channels; determining the message channels corresponding to the number of message names greater than or equal to 2 as duplicate channels; sorting the channel addresses of the multiple duplicate channels to obtain a first channel address sequence; sorting the channel addresses of the multiple message channels marked as unconfigured channels to obtain a second channel address sequence; forwarding the message contents on the channel addresses of the first channel address sequence to the corresponding channel addresses of the second channel address sequence, and the channel addresses of the first channel address sequence correspond one-to-one to the channel addresses of the second channel address sequence.
[0011] According to another aspect of the present application, a device for processing repeated message channel configuration is provided, comprising: an acquisition unit, used to acquire the message names of all types of messages of the ECU after the ECU upgrades the program; a marking unit, used to mark the corresponding message channels in sequence with each message name according to the message channel configuration result, the message channel configuration result being the correspondence between the message name and the message channel; a configuration unit, used to reconfigure the message channel when multiple message channels are marked with the same message name or one message channel is marked with multiple message names, so that one message name corresponds to one message channel and one message channel corresponds to one message name.
[0012] According to another aspect of the present application, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, any one of the methods described above is implemented.
[0013] According to another aspect of the present application, a vehicle is provided, comprising: an ECU, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.
[0014] By applying the technical solution of the present application, in the method for processing repeated message channel configuration, after the ECU upgrade program, the corresponding message channels are marked in sequence with each message name according to the message channel configuration result. If the message name corresponds to the message channel one-to-one, there is no configuration duplication. If multiple message channels are marked with the same message name or one message channel is marked with multiple message names, it indicates that the configuration is repeated. The message channel configuration is re-performed to ensure that one of the above message names corresponds to one of the above message channels and one of the above message channels corresponds to one of the above message names. This can solve the problem of repeated message channel configuration and solve the problem of large workload of manually checking the problem of repeated message channel configuration in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A hardware structure block diagram of a mobile terminal for executing a method for processing repeated message channel configuration provided in an embodiment of the present application is shown;
[0016] Figure 2 A schematic flow chart of a method for processing repeated message channel configuration provided in accordance with an embodiment of the present application is shown;
[0017] Figure 3 A schematic diagram of a confirmation process of the message names having the same message channel labels provided by a plurality of embodiments of the present application is shown;
[0018] Figure 4 A schematic diagram of a confirmation process of marking a plurality of message names in the message channel according to an embodiment of the present application is shown;
[0019] Figure 5 A flow chart of another method for processing repeated message channel configurations provided in accordance with an embodiment of the present application is shown;
[0020] Figure 6 A structural block diagram of a device for processing repeated message channel configurations provided according to an embodiment of the present application is shown.
[0021] The above drawings include the following reference numerals:
[0022] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0023] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0027] ECU: Engine electronic control unit;
[0028] DCM: Functional calibration data.
[0029] As introduced in the background technology, the workload of manually troubleshooting the problem of duplicate message channel configuration in the prior art is large. To solve this technical problem, the embodiments of the present application provide a method, device, computer program product and vehicle for processing duplicate message channel configuration.
[0030] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0031] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a method for processing repeated message channel configuration according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0032] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for processing repeated configuration of the message channel in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0033] In this embodiment, a method for processing repeated configuration of a message channel running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] Figure 2 1 is a flowchart of a method for processing repeated message channel configuration according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0035] Step S201, after the ECU upgrades the program, obtain the message names of all types of messages of the ECU;
[0036] Step S202, according to the message channel configuration result, the corresponding message channels are marked in sequence with each of the message names, wherein the message channel configuration result is the correspondence between the message names and the message channels;
[0037] Step S203, when multiple message channels are marked with the same message name or one message channel is marked with multiple message names, reconfigure the message channel so that one message name corresponds to one message channel and one message channel corresponds to one message name.
[0038] In the above-mentioned method for processing repeated message channel configuration, after the ECU upgrade program, the corresponding message channels are marked in sequence with each message name according to the message channel configuration result. If the message name corresponds to the message channel one-to-one, there is no configuration duplication. If multiple message channels are marked with the same message name or one message channel is marked with multiple message names, it indicates that the configuration is repeated. The message channel configuration is re-performed to ensure that one of the above-mentioned message names corresponds to one of the above-mentioned message channels and one of the above-mentioned message channels corresponds to one of the above-mentioned message names. This can solve the problem of repeated message channel configuration and solve the problem of large workload of manually checking the problem of repeated message channel configuration in the prior art.
[0039] In order to avoid repeated marking, in an optional implementation manner, the above step S202 includes:
[0040] Step S2021, numbering each of the above message names to obtain a number for each of the above message names;
[0041] Step S2022: in the order of the numbers, the message channels corresponding to the message names in the message channel configuration result are marked in sequence using the message names corresponding to the numbers.
[0042] In the above implementation, all message names are defined as different keywords 1, keyword 2, ... keyword N, and the message channels corresponding to the message names in the message channel configuration results are marked in sequence according to the order of keywords 1-N.
[0043] In order to check whether a message is configured with multiple message channels, in an optional implementation, before reconfiguring the message channels so that one of the message channels corresponds to one of the message channels and one of the message channels corresponds to one of the message channels, the method further includes:
[0044] Step S301, recording the number of times each of the message names is marked to obtain a plurality of marking times, wherein the marking times correspond to the message names one by one;
[0045] Step S302: when any of the marking times is greater than or equal to 2, determine the message names of the plurality of message channel marks that have the same mark.
[0046] In the above implementation, when a message is configured with multiple message channels, the message name will be marked multiple times according to the corresponding relationship in the message channel configuration result, and the number of times each message name is marked is recorded to obtain multiple marking times. Any of the above marking times is greater than or equal to 2, indicating that a message is configured with multiple message channels, thereby resulting in the presence of multiple message names with the same message channel mark.
[0047] In order to check for duplication of message channel configuration, in an optional implementation, as Figure 3 As shown, before reconfiguring the message channel so that one of the message channels corresponds to one of the message channels and one of the message channels corresponds to one of the message channels, the method further includes:
[0048] Step S401, obtaining the number of the message names marked by each of the message channels, and obtaining a plurality of message name numbers, wherein the message name numbers correspond one-to-one to the message channels;
[0049] Step S402: when the number of any of the message names is greater than or equal to 2, determine one of the message channels to mark multiple message names.
[0050] In the above implementation, the number of the above-mentioned message names marked by each of the above-mentioned message channels is obtained, and the number of multiple message names is obtained, so that it can be determined that a message channel is configured with several types of messages. If any number of the above-mentioned message names is greater than or equal to 2, it indicates that the message channel is configured with multiple messages and belongs to a repeated channel, so that one message channel is marked with multiple message names.
[0051] In order to avoid message communication failure, in an optional implementation, as Figure 4 As shown, in the case where the number of any of the message names is greater than or equal to 2, after determining that one of the message channels marks a plurality of the message names, the method further includes:
[0052] Step S501, determining the message channels corresponding to the number of message names greater than or equal to 2 as duplicate channels;
[0053] Step S502, issuing an alarm message and displaying the above-mentioned repeated channels.
[0054] In the above implementation, since duplicate configuration of the message channel may cause the message to fail to be received and sent normally, the duplicate channel is detected and an alarm is displayed to facilitate timely maintenance and avoid communication failures.
[0055] In order to ensure normal message sending and receiving, in an optional implementation manner, the above step S203 includes:
[0056] Step S2031, in the case where the same message name is marked on a plurality of the message channels, the message name of one of the plurality of the message channels with the same message name is retained, and the message names of the other message channels are deleted;
[0057] Step S2032, when a plurality of message names are marked on one message channel, the message channel only retains one message name and marks the other message names as unconfigured channels;
[0058] Step S2033: forward the message contents of the message names of the unconfigured channels in sequence to the message channels that are not marked with the message names.
[0059] In the above implementation manner, when multiple message channels are marked with the same message name, the message name of one message channel is retained, so that the message name only marks one message channel, and the channel addresses of other message channels are marked as unused, and messages corresponding to other message names can also be configured; when one message channel is marked with multiple message names, the message channel only retains one message name, and the other message names are marked as unconfigured channels, and the message channel needs to be reconfigured, and the message contents of the message names of the unconfigured channels are forwarded in sequence to the message channels that are not marked with the message names, so as to avoid channel duplication and ensure normal message sending and receiving.
[0060] In order to ensure that one message channel is configured with one message, in an optional implementation, the above step S2033 includes:
[0061] Step S20331, obtaining the number of the message names marked by each of the message channels, and obtaining a plurality of message name numbers, wherein the message name numbers correspond one-to-one to the message channels;
[0062] Step S20332, determining the message channels corresponding to the number of message names greater than or equal to 2 as duplicate channels;
[0063] Step S20333, sorting the channel addresses of the plurality of repeated channels to obtain a first channel address sequence;
[0064] Step S20334, sorting the channel addresses of the message channels marked as unconfigured channels to obtain a second channel address sequence;
[0065] Step S20335: forward the message content on the channel address of the first channel address sequence to the corresponding channel address of the second channel address sequence, and the channel address of the first channel address sequence corresponds to the channel address of the second channel address sequence one by one.
[0066] In the above implementation, repeated channels are screened out, the channel addresses of the multiple repeated channels are sorted to obtain a first channel address sequence, and the channel addresses of the multiple message channels marked as unconfigured channels are sorted to obtain a second channel address sequence, and the message contents on the channel addresses of the first channel address sequence are forwarded to the channel addresses of the second channel address sequence one by one. For example, the K channel addresses of all repeated channels are sorted as D1, D2...DK and the L channel addresses of the unconfigured channels are sorted as d1, d2, d3...dL, and the message contents on the repeated channel addresses are forwarded to the channel addresses of the unconfigured channels D1->d1, D2->d2... in sequence for message sending and receiving.
[0067] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the method for processing repeated message channel configuration of the present application will be described in detail below in conjunction with specific embodiments.
[0068] This embodiment relates to a specific method for processing repeated message channel configurations, such as Figure 5 As shown, the following steps are included:
[0069] There are generally two communication CANs on the current vehicle CAN network, the first communication CAN and the second communication CAN. First, determine whether the message in the software is correctly configured on the first communication CAN or the second communication CAN. If so, check the message configuration on each communication CAN to see if there is a duplicate channel configuration; if there is an error in the message configuration of the first communication CAN and the second communication CAN, filter out the incorrectly configured messages and channels, correctly assign the messages to the first or second communication CAN, and process them together with the messages of the duplicately configured channels checked on the corresponding first communication CAN or second communication CAN.
[0070] The message channel checking method for the first CAN communication and the second CAN communication is as follows: define all message names as different keywords 1, keyword 2, ... keyword N, establish a database, take all channel address information into the database, and check the correspondence between all keywords and the information in the database according to a certain mapping relationship. Define two counters T and t, counter T is a counter for multiple keywords corresponding to one database information, and counter t is a counter for one keyword corresponding to multiple database information. Traverse all keywords and database information. If a keyword corresponds to n database information, counter t=n, n>=2, it means that a message is configured with multiple channels. At this time, the database information mapped to the first keyword is retained, and the remaining database information is marked as unused; if m keywords correspond to one database information, counter T=m, m>=2, it means that the channel configuration is repeated. At this time, the keyword mapped to the first database information is retained, and the remaining keyword information is marked as unconfigured channels, waiting for subsequent reconfiguration of channels. After traversing all keywords and database information, the values of counters T and t are output and an alarm is displayed. If after checking the mapping of all keywords and the database, channels are repeated, the repeated channels are screened out, and the K channel addresses of all repeated channels are recorded and sorted as D1, D2...DK, and the L channel addresses of unconfigured channels are sorted as d1, d2, d3...dL, and the message content on the repeated channel address is forwarded to the channel address of the unconfigured channel D1->d1, D2->d2... in sequence for message sending and receiving.
[0071] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0072] The embodiment of the present application also provides a kind of processing device of message channel configuration duplication, it should be noted that the processing device of message channel configuration duplication of the embodiment of the present application can be used to execute the processing method for message channel configuration duplication provided by the embodiment of the present application. The device is used to implement the above-mentioned embodiment and preferred implementation mode, and the description has been made no more. As used below, the term "module" can implement the combination of software and / or hardware of the predetermined function. Although the device described in the following embodiments is preferably implemented with software, the implementation of hardware, or the combination of software and hardware is also possible and conceived.
[0073] The following introduces a device for processing repeated message channel configurations provided in an embodiment of the present application.
[0074] Figure 6is a structural block diagram of a device for processing repeated message channel configuration according to an embodiment of the present application. Figure 6 As shown, the device comprises:
[0075] The acquisition unit 10 is used to acquire the message names of all types of messages of the ECU after the ECU upgrades the program;
[0076] A marking unit 20, used for sequentially marking corresponding message channels with each of the message names according to the message channel configuration result, wherein the message channel configuration result is a correspondence between the message names and the message channels;
[0077] The configuration unit 30 is used to reconfigure the message channel when multiple message channels are marked with the same message name or one message channel is marked with multiple message names, so that one message name corresponds to one message channel and one message channel corresponds to one message name.
[0078] In the above-mentioned processing device for repeated message channel configuration, after the ECU upgrade program, the corresponding message channels are marked in sequence with each message name according to the message channel configuration result. If the message name corresponds to the message channel one-to-one, there is no configuration duplication. If multiple message channels are marked with the same message name or one message channel is marked with multiple message names, it indicates that the configuration is repeated. The message channel configuration is re-performed to ensure that one of the above-mentioned message names corresponds to one of the above-mentioned message channels and one of the above-mentioned message channels corresponds to one of the above-mentioned message names. This can solve the problem of repeated message channel configuration and solve the problem of large workload of manually checking the problem of repeated message channel configuration in the prior art.
[0079] In order to avoid repeated marking, in an optional implementation manner, the marking unit includes:
[0080] A numbering module, used for numbering each of the above message names to obtain a number for each of the above message names;
[0081] The marking module is used to mark the message channels corresponding to the message names in the message channel configuration result in sequence according to the order of the numbers and using the message names corresponding to the numbers.
[0082] In the above implementation, all message names are defined as different keywords 1, keyword 2, ... keyword N, and the message channels corresponding to the message names in the message channel configuration results are marked in sequence according to the order of keywords 1-N.
[0083] In order to check whether a message is configured with multiple message channels, in an optional implementation manner, the above-mentioned device further includes:
[0084] A first recording unit is used to record the number of times each of the message names is marked before reconfiguring the message channels so that one of the message channels corresponds to one of the message channels and one of the message channels corresponds to one of the message channels, to obtain a plurality of marking times, wherein the marking times correspond to the message names one by one;
[0085] The first determining unit is used to determine the message names having the same message channel mark when any of the marking times is greater than or equal to 2.
[0086] In the above implementation, when a message is configured with multiple message channels, the message name will be marked multiple times according to the corresponding relationship in the message channel configuration result, and the number of times each message name is marked is recorded to obtain multiple marking times. Any of the above marking times is greater than or equal to 2, indicating that a message is configured with multiple message channels, thereby resulting in the presence of multiple message names with the same message channel mark.
[0087] In order to check for duplication of message channel configuration, in an optional implementation, as Figure 3 As shown, the above device also includes:
[0088] A second recording unit is used to obtain the number of the message names marked by each of the message channels before reconfiguring the message channels so that one of the message channels corresponds to one of the message channels and one of the message channels corresponds to one of the message channels, so as to obtain a plurality of message name numbers, wherein the message name numbers correspond to the message channels one by one;
[0089] The second determining unit is used to determine that one of the message channels marks multiple message names when the number of any of the message names is greater than or equal to 2.
[0090] In the above implementation, the number of the above-mentioned message names marked by each of the above-mentioned message channels is obtained, and the number of multiple message names is obtained, so that it can be determined that a message channel is configured with several types of messages. If any number of the above-mentioned message names is greater than or equal to 2, it indicates that the message channel is configured with multiple messages and belongs to a repeated channel, so that one message channel is marked with multiple message names.
[0091] In order to avoid message communication failure, in an optional implementation, as Figure 4 As shown, the above device also includes:
[0092] A third determining unit is used for, when the number of any of the message names is greater than or equal to 2, determining that one of the message channels marks multiple message names, and determining the message channels corresponding to the number of the message names greater than or equal to 2 as duplicate channels;
[0093] The alarm unit is used to issue an alarm message and display the above-mentioned repeated channels.
[0094] In the above implementation, since duplicate configuration of the message channel may cause the message to fail to be received and sent normally, the duplicate channel is detected and an alarm is displayed to facilitate timely maintenance and avoid communication failures.
[0095] In order to ensure normal message sending and receiving, in an optional implementation manner, the above configuration unit includes:
[0096] A first processing module is used for retaining the message name of one message channel among the multiple message channels with the same message name, and deleting the message names of the other message channels;
[0097] A second processing module is used for, when a plurality of message names are marked on one message channel, retaining only one message name on the message channel and marking the other message names as unconfigured channels;
[0098] The forwarding module is used to sequentially forward the message contents of the message names of the unconfigured channels to the message channels that are not marked with the message names.
[0099] In the above implementation manner, when multiple message channels are marked with the same message name, the message name of one message channel is retained, so that the message name only marks one message channel, and the channel addresses of other message channels are marked as unused, and messages corresponding to other message names can also be configured; when one message channel is marked with multiple message names, the message channel only retains one message name, and the other message names are marked as unconfigured channels, and the message channel needs to be reconfigured, and the message contents of the message names of the unconfigured channels are forwarded in sequence to the message channels that are not marked with the message names, so as to avoid channel duplication and ensure normal message sending and receiving.
[0100] In order to ensure that one message channel is configured with one message, in an optional implementation, the forwarding module includes:
[0101] An acquisition submodule, used for acquiring the number of the message names marked by each of the message channels, and obtaining a plurality of message name numbers, wherein the message name numbers correspond one to one with the message channels;
[0102] A determination submodule, used to determine the message channels corresponding to the number of message names greater than or equal to 2 as duplicate channels;
[0103] A first sorting submodule, used for sorting the channel addresses of the plurality of repeated channels to obtain a first channel address sequence;
[0104] A second sorting submodule is used to sort the channel addresses of the message channels marked with multiple unconfigured channels to obtain a second channel address sequence;
[0105] The forwarding submodule is used to forward the message content on the channel address of the above-mentioned first channel address sequence to the corresponding channel address of the above-mentioned second channel address sequence, and the channel address of the above-mentioned first channel address sequence corresponds to the channel address of the above-mentioned second channel address sequence one by one.
[0106] In the above implementation, repeated channels are screened out, the channel addresses of the multiple repeated channels are sorted to obtain a first channel address sequence, and the channel addresses of the multiple message channels marked as unconfigured channels are sorted to obtain a second channel address sequence, and the message contents on the channel addresses of the first channel address sequence are forwarded to the channel addresses of the second channel address sequence one by one. For example, the K channel addresses of all repeated channels are sorted as D1, D2...DK and the L channel addresses of the unconfigured channels are sorted as d1, d2, d3...dL, and the message contents on the repeated channel addresses are forwarded to the channel addresses of the unconfigured channels D1->d1, D2->d2... in sequence for message sending and receiving.
[0107] The above-mentioned message channel configuration duplication processing device includes a processor and a memory, and the above-mentioned acquisition unit, marking unit and configuration unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in the form of any combination.
[0108] The processor includes a kernel, and the kernel retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of large workload of manually troubleshooting duplicate message channel configuration problems in the prior art can be solved by adjusting kernel parameters.
[0109] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0110] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the method for processing repeated message channel configuration.
[0111] Specifically, the method for handling duplicate message channel configuration includes:
[0112] Step S201, after the ECU upgrades the program, obtain the message names of all types of messages of the ECU;
[0113] Step S202, according to the message channel configuration result, the corresponding message channels are marked in sequence with each of the message names, wherein the message channel configuration result is the correspondence between the message names and the message channels;
[0114] Step S203, when multiple message channels are marked with the same message name or one message channel is marked with multiple message names, reconfigure the message channel so that one message name corresponds to one message channel and one message channel corresponds to one message name.
[0115] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the program executes the method for processing repeated message channel configuration when running.
[0116] Specifically, the method for handling duplicate message channel configuration includes:
[0117] Step S201, after the ECU upgrades the program, obtain the message names of all types of messages of the ECU;
[0118] Step S202, according to the message channel configuration result, the corresponding message channels are marked in sequence with each of the message names, wherein the message channel configuration result is the correspondence between the message names and the message channels;
[0119] Step S203, when multiple message channels are marked with the same message name or one message channel is marked with multiple message names, reconfigure the message channel so that one message name corresponds to one message channel and one message channel corresponds to one message name.
[0120] An embodiment of the present invention provides a vehicle, the vehicle comprising an ECU, a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, at least the following steps are implemented:
[0121] Step S201, after the ECU upgrades the program, obtain the message names of all types of messages of the ECU;
[0122] Step S202, according to the message channel configuration result, the corresponding message channels are marked in sequence with each of the message names, wherein the message channel configuration result is the correspondence between the message names and the message channels;
[0123] Step S203, when multiple message channels are marked with the same message name or one message channel is marked with multiple message names, reconfigure the message channel so that one message name corresponds to one message channel and one message channel corresponds to one message name.
[0124] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0125] Step S201, after the ECU upgrades the program, obtain the message names of all types of messages of the ECU;
[0126] Step S202, according to the message channel configuration result, the corresponding message channels are marked in sequence with each of the message names, wherein the message channel configuration result is the correspondence between the message names and the message channels;
[0127] Step S203, when multiple message channels are marked with the same message name or one message channel is marked with multiple message names, reconfigure the message channel so that one message name corresponds to one message channel and one message channel corresponds to one message name.
[0128] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0129] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0130] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0131] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0133] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0134] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0135] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0136] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0137] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0138] 1) In the method for processing repeated message channel configuration of the present application, after the ECU upgrade program, the corresponding message channels are marked in sequence with each message name according to the message channel configuration result. If the message name corresponds to the message channel one-to-one, there is no configuration duplication. If multiple message channels are marked with the same message name or one message channel is marked with multiple message names, it indicates that the configuration is repeated. The message channel configuration is re-performed to ensure that one of the above message names corresponds to one of the above message channels and one of the above message channels corresponds to one of the above message names. This can solve the problem of repeated message channel configuration and solve the problem of large workload of manually troubleshooting the problem of repeated message channel configuration in the prior art.
[0139] 2) In the message channel configuration duplication processing device of the present application, after the ECU upgrade program, the corresponding message channels are marked in sequence with each message name according to the message channel configuration result. If the message name corresponds to the message channel one-to-one, there is no configuration duplication. If multiple message channels are marked with the same message name or one message channel is marked with multiple message names, it indicates that the configuration is repeated. The message channel configuration is re-performed to ensure that one of the above message names corresponds to one of the above message channels and one of the above message channels corresponds to one of the above message names. This can solve the problem of duplicate message channel configuration and solve the problem of large workload of manually checking the problem of duplicate message channel configuration in the prior art.
[0140] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for processing duplicate message channel configuration, characterized in that: include: After the ECU upgrade program, obtain the message names of all types of messages of the ECU; According to the message channel configuration result, the corresponding message channels are marked in sequence with each message name, and the message channel configuration result is the correspondence between the message name and the message channel; In the case where multiple message channels are marked with the same message name or one message channel is marked with multiple message names, the message channel is reconfigured so that one message name corresponds to one message channel and one message channel corresponds to one message name.
2. The method according to claim 1, characterized in that According to the message channel configuration result, the corresponding message channels are marked in sequence using the message names, including: Numbering each of the message names to obtain a number for each of the message names; In the order of the numbers, the message channels corresponding to the message names in the message channel configuration result are marked in sequence using the message names corresponding to the numbers.
3. The method according to claim 1, characterized in that Before reconfiguring the message channel so that one message channel corresponds to one message channel and one message channel corresponds to one message channel, the method further includes: Record the number of times each message name is marked to obtain multiple marking times, where the marking times correspond to the message names one by one; In the case where any one of the marking times is greater than or equal to 2, the message names having the same message channel markings are determined.
4. The method according to claim 1, characterized in that: Before reconfiguring the message channel so that one message channel corresponds to one message channel and one message channel corresponds to one message channel, the method further includes: Obtaining the number of the message names marked by each of the message channels to obtain multiple numbers of message names, where the numbers of message names correspond one to one to the message channels; In the case where the number of any one of the message names is greater than or equal to 2, a message channel is determined to mark multiple message names.
5. The method according to claim 4, characterized in that In the case where the number of any one of the message names is greater than or equal to 2, after determining that one of the message channels marks a plurality of the message names, the method further includes: Determine the message channels corresponding to the number of message names greater than or equal to 2 as duplicate channels; An alarm message is issued and the duplicate channel is displayed.
6. The method according to claim 1, characterized in that In the case where a plurality of the message channels are marked with the same message name or a plurality of the message names are marked with one message channel, reconfiguring the message channel so that one message channel corresponds to one message channel and one message channel corresponds to one message channel includes: In the case where multiple message channels are marked with the same message name, among the multiple message channels with the same message name, the message name of one message channel is retained, and the message names of the other message channels are deleted; In the case where a plurality of message names are marked on one message channel, the message channel only retains one message name and marks the other message names as unconfigured channels; The message contents of the message name of the unconfigured channel are forwarded sequentially to the message channel without marking the message name.
7. The method according to claim 6, characterized in that Forwarding the message content of the message name of the unconfigured channel in sequence to the message channel without marking the message name, including: Obtaining the number of the message names marked by each of the message channels to obtain multiple numbers of message names, where the numbers of message names correspond one to one to the message channels; Determine the message channels corresponding to the number of message names greater than or equal to 2 as duplicate channels; Sorting the channel addresses of the plurality of repeated channels to obtain a first channel address sequence; Sorting the channel addresses of the message channels of the plurality of marked unconfigured channels to obtain a second channel address sequence; The message content on the channel address of the first channel address sequence is forwarded to the corresponding channel address of the second channel address sequence, and the channel addresses of the first channel address sequence correspond to the channel addresses of the second channel address sequence one by one.
8. A device for processing duplicate message channel configuration, characterized in that: include: An acquisition unit, used for acquiring message names of all types of messages of the ECU after the ECU upgrades the program; A marking unit, used to mark the corresponding message channels in sequence with each message name according to the message channel configuration result, wherein the message channel configuration result is the correspondence between the message name and the message channel; A configuration unit is used to reconfigure the message channel when multiple message channels are marked with the same message name or one message channel is marked with multiple message names, so that one message name corresponds to one message channel and one message channel corresponds to one message name.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. A vehicle, characterized in that: include: ECU, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing any one of claims 1 to 7.