CN115314339A - CAN channel calibration amount duplicate checking method, duplicate checking device, processor and vehicle - Google Patents

CAN channel calibration amount duplicate checking method, duplicate checking device, processor and vehicle Download PDF

Info

Publication number
CN115314339A
CN115314339A CN202210932780.8A CN202210932780A CN115314339A CN 115314339 A CN115314339 A CN 115314339A CN 202210932780 A CN202210932780 A CN 202210932780A CN 115314339 A CN115314339 A CN 115314339A
Authority
CN
China
Prior art keywords
message
target
information
channel
array
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
CN202210932780.8A
Other languages
Chinese (zh)
Other versions
CN115314339B (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.)
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Original Assignee
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weichai Power Co Ltd, Weifang Weichai Power Technology Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN202210932780.8A priority Critical patent/CN115314339B/en
Publication of CN115314339A publication Critical patent/CN115314339A/en
Application granted granted Critical
Publication of CN115314339B publication Critical patent/CN115314339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • 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]

Abstract

The application provides a weight checking method, a weight checking device, a processor and a vehicle for a CAN channel calibration quantity, wherein the weight checking method comprises the following steps: updating a plurality of message information into a first initial preset array to obtain a first preset array, wherein the message information comprises the message name of a target CAN message and the CAN channel calibration quantity; according to the CAN channel calibration amount in each message, determining the position information of each message with the same CAN channel calibration amount in a first preset array to obtain target position information; and updating the target position information and the target message name into a second initial preset array to obtain a second preset array, wherein the target message name is the message name in the message information corresponding to the target position information, so that the problem of low efficiency of manually checking the calibration quantity of the CAN channel in the prior art is solved.

Description

CAN channel calibration amount duplicate checking method, duplicate checking device, processor and vehicle
Technical Field
The application relates to the field of engine control, in particular to a method and a device for checking the weight of a CAN channel calibration quantity, a computer readable storage medium, a processor and a vehicle.
Background
At present, the development of the CAN message CAN realize flexible calibration of a message CAN channel and a message ID. For example: firstly, a CAN channel of a message is calibrated, namely the CAN channel with the message name Com _ RxTSC1AESelport _ C is calibrated to be Can0Rx00. And then calibrating the message ID with the message name TSC1AE based on the CAN channel, namely calibrating Com _ Can0Rx00ID _ C to 0x0C00000B. The flexible calibration method CAN effectively and reasonably distribute and use the CAN channels. However, this flexible calibration format requires that the calibrated CAN channel be unique. Under the condition that the number of the CAN messages needing to be configured is large, whether the CAN channels of the calibration messages are calibrated repeatedly is confirmed by manual check one by one, so that the calibration efficiency of the CAN messages is reduced, and the problem that manual check is not accurate enough is difficult to avoid.
The above information disclosed in this background section is only for enhancement of understanding of the background of the technology described herein and, therefore, certain information may be included in the background that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
Disclosure of Invention
The application mainly aims to provide a method and a device for checking the weight of a CAN channel standard quantity, a computer readable storage medium, a processor and a vehicle, so as to solve the problem that the efficiency of manually checking the weight of the CAN channel standard quantity is low in the prior art.
According to an aspect of the embodiments of the present invention, there is provided a method for checking a duplicate of a CAN channel calibration amount, the method being applied to an electronic control unit, the method including: updating a plurality of message information into a first initial predetermined array to obtain a first predetermined array, wherein the message information comprises message names and CAN channel calibration quantities of target CAN messages, one message information corresponds to one target CAN message, and each target CAN message is sent by the electronic control unit or each target CAN message is received by the electronic control unit; according to the CAN channel calibration amount in each message, determining the position information of each message with the same CAN channel calibration amount in the first preset array to obtain target position information; and updating the target position information and the target message name to a second initial preset array to obtain a second preset array, wherein the target message name is the message name in the message information corresponding to the target position information.
Optionally, determining, according to the CAN channel calibration amount in each message, location information of each message in the first predetermined array, where the CAN channel calibration amount is the same, to obtain target location information, where the method includes: comparing the CAN channel calibration quantity of each message information in the first preset array; and under the condition that at least two message information with the same CAN channel calibration quantity exist, determining the position information of at least two message information in the first preset array to obtain the target position information.
Optionally, each piece of message information in the first predetermined array has a first predetermined flag, and according to the CAN channel calibration amount in each piece of message information, determining position information of each piece of message information in the first predetermined array where the CAN channel calibration amount is the same, to obtain target position information, where the method includes: comparing, namely comparing a target CAN channel standard quantity with other target CAN channel standard quantities one by one to obtain the target position information, wherein the target CAN channel standard quantity is the CAN channel standard quantity of the message information without a second preset mark; updating, namely updating the first preset mark of each message information corresponding to the target position information into the second preset mark according to the target position information; and repeating the comparing step and the updating step until all the message information in the first preset array is compared.
Optionally, updating the multiple pieces of message information to the first initial predetermined array to obtain a first predetermined array, including: replacing each first preset value in the first initial preset array one by adopting each message information to obtain a first preset array; updating the target position information and the target message name to a second initial predetermined array to obtain a second predetermined array, including: and replacing each second preset value in the second initial preset array one by adopting the target position information and the target message name to obtain the second preset array.
Optionally, the data type of the second predetermined array is an enumeration type.
Optionally, after the target location information and the target packet name are updated to a second initial predetermined array to obtain a second predetermined array, the duplicate checking method further includes: storing each target position information and each target message name in the second preset array to a target text document; and sending the target text document to an upper computer.
According to another aspect of the embodiments of the present invention, there is also provided a duplication checking apparatus for a CAN channel calibration amount, the duplication checking apparatus being applied to an electronic control unit, the duplication checking apparatus including: the first updating unit is used for updating a plurality of message information into a first initial preset array to obtain a first preset array, wherein the message information comprises message names and CAN channel standard quantities of target CAN messages, one message information corresponds to one target CAN message, and each target CAN message is sent by the electronic control unit or each target CAN message is received by the electronic control unit; the determining unit is used for determining the position information of each message information with the same CAN channel standard quantity in the first preset array according to the CAN channel standard quantity in each message information to obtain target position information; and the second updating unit is used for updating the target position information and the target message name into a second initial preset array to obtain a second preset array, wherein the target message name is the message name in the message information corresponding to the target position information.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program executes any one of the methods for checking the amount of duplication of a CAN channel.
According to still another aspect of the embodiments of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes any one of the methods for checking duplicate of the CAN channel calibration quantity when running.
According to an aspect of the embodiment of the present invention, there is further provided a vehicle including a duplication checking device for a CAN channel calibration amount, where the duplication checking device is configured to execute any one of the duplication checking methods for the CAN channel calibration amount.
In the embodiment of the invention, in the duplicate checking method, firstly, a first initial predetermined array is updated by adopting a plurality of message information to obtain the first predetermined array; then, according to the CAN channel calibration quantity of each message in the first preset array, determining the position information of each message with the same CAN channel calibration quantity to obtain target position information; and finally, updating a second initial preset array by adopting the target position information and the target message name to obtain a second preset array. Compared with the prior art, the method and the device have the advantages that the CAN channel standard quantity is checked manually, the position information of each message in the first preset array with the same CAN channel standard quantity is determined according to the CAN channel standard quantity of each message in the first preset array to obtain the target position information, then the target position information and the corresponding target message name are adopted to update the second initial preset array to obtain the second preset array, so that the automatic weight checking of the CAN channel standard quantities of a plurality of messages is realized, the high efficiency of the weight checking of the CAN channel standard quantity is ensured, the problem of low accuracy of the manual weight checking CAN be avoided due to the fact that the manual weight checking of the CAN channel standard quantity is not needed, and the problem of low efficiency of the manual weight checking of the CAN channel standard quantity in the prior art is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 shows a flow chart of a method for duplication checking of CAN channel calibration quantities according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a CAN channel calibration amount duplication checking device according to an embodiment of the present application;
FIG. 3 shows a schematic diagram of a first predetermined array according to an embodiment of the present application;
fig. 4 shows a flowchart of a method for duplicate checking of CAN channel calibration quantities according to another embodiment of the present application.
Wherein the figures include the following reference numerals:
10. a first update unit; 20. a determination unit; 30. a second updating unit; 100. a message name; 101. calibrating the quantity of the CAN channel; 102. a first predetermined array.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application 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 should be understood that the data so used may be interchanged under appropriate circumstances in order to facilitate the description of the embodiments of the application 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.
As mentioned in the background of the invention, in order to solve the above problem, in the prior art, the efficiency of manually checking the calibration quantity of the CAN channel is low, and in an exemplary embodiment of the present application, a method, a device, a computer-readable storage medium, a processor and a vehicle for checking the calibration quantity of the CAN channel are provided.
According to the embodiment of the application, a duplication checking method for CAN channel calibration quantity is provided.
Fig. 1 is a flowchart of a method for checking a CAN channel calibration amount according to an embodiment of the present application. As shown in fig. 1, the duplicate checking method includes the following steps:
step S101, updating a plurality of message information into a first initial predetermined array to obtain a first predetermined array, wherein the message information comprises message names and CAN channel calibration quantities of target CAN messages, one message information corresponds to one target CAN message, and each target CAN message is sent by the electronic control unit or each target CAN message is received by the electronic control unit;
step S102, according to the CAN channel calibration quantity in each message, determining the position information of each message with the same CAN channel calibration quantity in the first preset array to obtain target position information;
step S103, updating the target location information and the target message name to a second initial predetermined array to obtain a second predetermined array, where the target message name is the message name in the message information corresponding to the target location information.
In the duplicate checking method, firstly, a first initial predetermined array is updated by adopting a plurality of message information to obtain a first predetermined array; then, according to the CAN channel calibration quantity of each message information in the first preset array, determining the position information of each message information with the same CAN channel calibration quantity to obtain target position information; and finally, updating the second initial preset array by adopting the target position information and the target message name to obtain a second preset array. Compared with the prior art, the method and the device have the advantages that the CAN channel standard quantity is manually checked, according to the CAN channel standard quantity of each message in the first preset array, the position information of each message in the first preset array with the same CAN channel standard quantity is determined to obtain the target position information, the target position information and the corresponding target message name are adopted to update the second initial preset array to obtain the second preset array, so that the automatic duplicate checking of the CAN channel standard quantities of a plurality of message information is realized, the higher efficiency of the manual duplicate checking of the CAN channel standard quantity is ensured, the problem of lower accuracy of the manual duplicate checking is solved as the manual duplicate checking of the CAN channel standard quantity is not needed, and the problem of lower efficiency of the manual duplicate checking of the CAN channel standard quantity in the prior art is solved.
In a specific embodiment of the present application, the message names may be AmbCon, AT1IMG, TI1, CCVS, and the like. The CAN channel calibration amounts described above may be CAN1RX00, CAN2RX00, CAN3RX00, and the like.
Specifically, the location information is the location information stored in the first predetermined array of the corresponding message information, and may also be referred to as subscripts in the first predetermined array.
Specifically, the target location information corresponds to the target packet name one to one.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.
In order to more accurately determine the position information of the message information with the same CAN channel calibration amount in the first predetermined array, in an embodiment of the present application, determining the position information of each of the message information with the same CAN channel calibration amount in the first predetermined array according to the CAN channel calibration amount in each of the message information, so as to obtain target position information, including: comparing the CAN channel calibration quantity of each message information in the first preset array; and under the condition that the message information with the same standard quantity of at least two CAN channels exists, determining the position information of the at least two message information in the first preset array to obtain the target position information.
In a specific embodiment of the present application, the CAN channel scaling amounts of each message information in the first predetermined array are compared, and in order to compare the CAN channel scaling amounts of any two message information, when the CAN channel scaling amounts of two message information are the same, the position information of the two message information in the first predetermined array is determined, so as to obtain the target position information. For example, for each message information in the first predetermined array, the CAN channel calibration amount of the first message information is compared with the CAN channel calibration amounts of all the message information located behind the first message information one by one, and the target position information of the two message information is determined under the condition that the CAN channel calibration amounts of the two message information are the same. After the comparison is completed in the current round, comparing the CAN channel calibration quantity of the second message information with the CAN channel calibration quantities of the message information behind the second message information one by one. And the rest is repeated until the comparison between the penultimate message information and the last message information in the first preset array is completed.
In order to determine target location information corresponding to each message information with the same CAN channel calibration amount more efficiently, in another embodiment of the present application, each of the message information in the first predetermined array has a first predetermined mark, and according to the CAN channel calibration amount in each of the message information, location information of each of the message information with the same CAN channel calibration amount in the first predetermined array is determined to obtain the target location information, including: comparing, namely comparing a target CAN channel standard quantity with other target CAN channel standard quantities one by one to obtain the target position information, wherein the target CAN channel standard quantity is the CAN channel standard quantity of the message information without a second preset mark; an updating step of updating the first predetermined flag of each of the message information corresponding to the target location information to the second predetermined flag according to the target location information; and repeating the comparing step and the updating step until the message information in the first preset array is completely compared.
Specifically, before comparing the CAN channel calibration amounts of the message messages in the first predetermined array, a first predetermined Flag is set for each message in the first predetermined array, for example, the first predetermined Flag = =0. And subsequently, updating the first predetermined Flag of the message information corresponding to the target position information to obtain a second predetermined Flag, for example, updating the first predetermined Flag of the message information with the same CAN channel calibration amount to the second predetermined Flag, that is, to Flag = =1, when there is the message information with the same CAN channel calibration amount.
Of course, in an actual application process, before comparing the CAN channel calibration amounts of the message information in the first predetermined array, the first predetermined flag may not be set for the message information in the first predetermined array. Under the condition that the message information with the same CAN channel standard quantity exists, a preset mark CAN be added to the corresponding message information, so that the message information with the same CAN channel standard quantity CAN be distinguished from other message information. In the application, only the message information corresponding to the target position information needs to be marked, and the actual method is not limited, so that the comparison of the CAN channel standard quantity in the message information is not needed in the subsequent comparison process, and the message information with the preset mark does not need to be compared, thereby further improving the efficiency of duplicate checking.
In a specific embodiment of the present application, comparing one target CAN channel calibration amount with other target CAN channel calibration amounts one by one to obtain the target location information includes: and under the condition that the target CAN channel calibration amount is the same as the other target CAN channel calibration amounts, determining the message information corresponding to the target CAN channel calibration amount and the other target CAN channel calibration amounts as target position information according to the position information in the first preset array.
In another specific embodiment of the present application, determining, according to the CAN channel scaling amount in each of the message information, position information of each of the message information having the same CAN channel scaling amount in the first predetermined array to obtain target position information, includes: a first comparison step of comparing the CAN channel calibration amount of the ith message information with the CAN channel calibration amounts of the respective message information located after the ith message information one by one to obtain the target position information; a marking step, adding a preset mark for each message information corresponding to the target position information according to the target position information; a determining step of determining whether the (i + 1) th message information adjacent to the (i) th message information has the predetermined flag; a second comparison step of comparing the CAN channel calibration amount of the i +1 th message information with the CAN channel calibration amount of each message information which is located after the i +1 th message information and does not have the predetermined mark one by one to obtain the target position information, in a case where the i +1 th message information does not have the predetermined mark; sequentially executing the marking step, the determining step and the second comparing step at least once until all the message information in the first preset array is compared, wherein the value of i is from 1 to N-1, N is the total number of the message information in the first preset array, and i is increased by 1 during each execution; and under the condition that the (i + 1) th message information has the preset mark, sequentially executing the determining step and the second comparing step at least once until all the message information in the first preset array is compared.
In order that those skilled in the art will clearly understand the above embodiments of the present application, the following description will be given with reference to a specific embodiment. For example, there are five message messages in the first predetermined array, and the CAN channel calibration amounts of the five message messages are sequentially represented as (a, B, a, C, a), where A, B, C is not an actual representation of the CAN channel calibration amounts of the message messages. Firstly, comparing the CAN channel standard quantity of the first message information (A) with the CAN channel standard quantities of the four message information (B, A, C, A) behind the first message information one by one, so that the situation that the CAN channel standard quantities of the first message information, the third message information and the fifth message information are the same in a first preset array CAN be known, preset marks are added to the first message information, the third message information and the fifth message information, and the obtained target position information is the position information of the first message information, the third message information and the fifth message information in the first preset array. And then, determining whether the second message information (B) has a preset mark, comparing the CAN channel standard quantity of the second message information with the CAN channel standard quantity of the message information which is behind the second message information and does not have the preset mark one by one because the second message information does not have the preset mark, namely comparing the CAN channel standard quantity of the second message information (B) with the CAN channel standard quantity of the fourth message information (C), and determining the target position information by comparing the CAN channel standard quantity of the second message information with the CAN channel standard quantity of the fourth message information because the CAN channel standard quantity of the second message information is different from the CAN channel standard quantity of the fourth message information. When determining whether the third message has the predetermined mark, sequentially determining whether the fourth message has the predetermined mark because the third message has the predetermined mark, but the CAN channel calibration amount of the fourth message is not compared with the CAN channel calibration amount of the fifth message because the fifth message has the predetermined mark. The finally obtained target position information is the position information of the first message information, the third message information and the fifth message information in the first preset array.
Specifically, the CAN channel calibration amount of the i-th message is compared with the CAN channel calibration amounts of the message messages located after the i-th message one by one, for example, the CAN channel calibration amount of the first message is compared with the CAN channel calibration amount of the second message, and the CAN channel calibration amount of the first message is compared with the CAN channel calibration amount of the third message. If the CAN channel scaling amount of the first message information is the same as the CAN channel scaling amount of the second message information, determining the position information of the first message information and the second message information as the target position, and if the CAN channel scaling amount of the first message information is also the same as the CAN channel scaling amount of the third message information, determining the position information of the first message information and the third message information as the target position information, which further causes the position information of a plurality of first message information to be stored in the second predetermined array, so as to avoid repeated target position information in the subsequent second predetermined array. Determining the position information of the ith message information which is the same as the first message information and the ith message information for the first time under the condition that the CAN channel calibration amount of the ith message information is the same as the CAN channel calibration amount of one message information for the first time, and obtaining the target position information; and under the condition that the CAN channel calibration amount of the ith message information is not the same as the CAN channel calibration amount of one message information for the first time, determining the position information of the message information which is the same as the ith message information to obtain the target position information.
In another embodiment of the present application, updating the plurality of message information into the first initial predetermined array to obtain the first predetermined array includes: replacing each first preset value in the first initial preset array one by adopting each message information to obtain the first preset array; updating the target position information and the target message name to a second initial predetermined array to obtain a second predetermined array, including: and replacing each second preset value in the second initial preset array one by adopting the target position information and the target message name to obtain the second preset array, so that the first preset array and the second preset array can be obtained relatively simply.
In a specific embodiment of the application, the data type of the second predetermined array is an enumeration type.
In an embodiment of the application, after the target location information and the target packet name are updated to a second initial predetermined array to obtain a second predetermined array, the duplicate checking method further includes: storing each target position information and each target message name in the second preset array to a target text document; and sending the target text document to an upper computer. Therefore, subsequent calibration personnel can observe the repeatedly calibrated message names and the corresponding position information on the display screen of the upper computer conveniently, and the calibration personnel can modify the message names and the corresponding position information timely.
In a specific embodiment of the present application, as shown in table one, the target text document is obtained by storing the position information and the message information of each target information in the second predetermined array. Because the data type of the second predetermined array is an enumeration type, the target message names corresponding to the target position information CAN be observed in the target text document, and the target text document is subsequently sent to the upper computer, so that calibration personnel CAN further know in time that the CAN channel calibration amount corresponding to the target message names is repeatedly calibrated.
Watch 1
Target location information Target message name Target location information Target message name
0 AmbCon 8 EGRPosCmd
1 AT1IMG 9 EGSPM
2 TI1 10 ERC1
3 CCVS 11 EFL_P1
4 EEC1 12 ENGTEMP
5 EEC2 13 FD
6 DPFC1 14 HRLFC
7 EEC3
The embodiment of the present application further provides a duplicate checking device for the calibrated quantity of the CAN channel, and it should be noted that the duplicate checking device for the calibrated quantity of the CAN channel in the embodiment of the present application CAN be used for executing the duplicate checking method for the calibrated quantity of the CAN channel provided in the embodiment of the present application. The device for checking duplicate of the CAN channel calibration quantity provided by the embodiment of the application is introduced below.
Fig. 2 is a schematic structural diagram of a duplication checking apparatus for calibrating a CAN channel according to an embodiment of the present application. The above-mentioned check device is applied to the electronic control unit, as shown in fig. 2, the check device includes:
a first updating unit 10, configured to update a plurality of message information into a first initial predetermined array to obtain a first predetermined array, where the message information includes a message name and a CAN channel standard quantity of a target CAN message, one message information corresponds to one target CAN message, and each target CAN message is sent by the electronic control unit or each target CAN message is received by the electronic control unit;
a determining unit 20, configured to determine, according to the CAN channel scaling amount in each of the message information, position information of each of the message information with the same CAN channel scaling amount in the first predetermined array, so as to obtain target position information;
a second updating unit 30, configured to update the target location information and the target packet name to a second initial predetermined array to obtain a second predetermined array, where the target packet name is the packet name in the packet information corresponding to the target location information.
In the above duplicate checking device, the first updating unit is configured to update the plurality of message information to the first initial predetermined array to obtain the first predetermined array; the determining unit is used for determining the position information of each message information with the same CAN channel standard quantity in the first preset array according to the CAN channel standard quantity in each message information to obtain target position information; the second updating unit is used for updating the target position information and the target message name into a second initial preset array to obtain a second preset array. Compared with the prior art, the method and the device have the advantages that the CAN channel standard quantity is manually checked, according to the CAN channel standard quantity of each message in the first preset array, the position information of each message in the first preset array with the same CAN channel standard quantity is determined to obtain the target position information, the target position information and the corresponding target message name are adopted to update the second initial preset array to obtain the second preset array, so that the automatic duplicate checking of the CAN channel standard quantities of a plurality of message information is realized, the higher efficiency of the manual duplicate checking of the CAN channel standard quantity is ensured, the problem of lower accuracy of the manual duplicate checking is solved as the manual duplicate checking of the CAN channel standard quantity is not needed, and the problem of lower efficiency of the manual duplicate checking of the CAN channel standard quantity in the prior art is solved.
In a specific embodiment of the present application, the message names may be AmbCon, AT1IMG, TI1, CCVS, and the like. The above-mentioned CAN channel calibration amount may be CAN1RX00, CAN2RX00, CAN3RX00, and the like.
Specifically, the location information is the location information stored in the first predetermined array of the corresponding message information, and may also be referred to as subscripts in the first predetermined array.
Specifically, the target location information corresponds to the target packet name one to one.
In order to more accurately determine the position information of the message information with the same CAN channel calibration amount in the first predetermined array, in an embodiment of the present application, the determining unit includes a first comparing module and a first determining module, where the first comparing module is configured to compare the CAN channel calibration amounts of the message information in the first predetermined array; the first determining module is configured to determine, when the message information with the same calibration amount exists in at least two of the CAN channels, location information of the at least two message information in the first predetermined array, so as to obtain the target location information.
In a specific embodiment of the present application, the CAN channel scaling amounts of each message information in the first predetermined array are compared, and in order to compare the CAN channel scaling amounts of any two message information, when the CAN channel scaling amounts of two message information are the same, the position information of the two message information in the first predetermined array is determined, so as to obtain the target position information. For example, for each message information in the first predetermined array, the CAN channel calibration amount of the first message information is compared with the CAN channel calibration amounts of all the message information located behind the first message information one by one, and the target position information of the two message information is determined under the condition that the CAN channel calibration amounts of the two message information are the same. After the comparison is completed in the current round, comparing the CAN channel calibration quantity of the second message information with the CAN channel calibration quantities of the message information behind the second message information one by one. And the rest is repeated until the comparison between the penultimate message information and the last message information in the first preset array is completed.
In order to determine the target location information corresponding to each message information with the same CAN channel calibration amount more efficiently, in another embodiment of the present application, the determining unit includes a second comparing module, an updating module, and a repeating module, where the second comparing module is configured to compare a target CAN channel calibration amount with other target CAN channel calibration amounts one by one to obtain the target location information, and the target CAN channel calibration amount is the CAN channel calibration amount of the message information without a second predetermined mark; the updating module is configured to update the first predetermined flag of each of the message information corresponding to the target location information to the second predetermined flag according to the target location information; the repeating module is configured to repeat the comparing step and the updating step until all the message information in the first predetermined array is compared.
Specifically, before comparing the CAN channel calibration amounts of the message information in the first predetermined array, a first predetermined Flag is set for the message information in the first predetermined array, for example, the first predetermined calibration is Flag = =0. And subsequently, updating the first predetermined Flag of the message information corresponding to the target position information to obtain a second predetermined Flag, for example, updating the first predetermined Flag of the message information with the same CAN channel calibration amount to the second predetermined Flag, that is, to Flag = =1, when there is message information with the same CAN channel calibration amount.
Of course, in an actual application process, before comparing the CAN channel calibration amounts of the message information in the first predetermined array, the first predetermined flag may not be set for the message information in the first predetermined array. Under the condition that the message information with the same CAN channel standard quantity exists, a preset mark CAN be added to the corresponding message information, so that the message information with the same CAN channel standard quantity is distinguished from other message information. In the application, only the message information corresponding to the target position information needs to be marked, and the actual method is not limited, so that the comparison of the CAN channel standard quantity in the message information is not needed in the subsequent comparison process, and the message information with the preset mark does not need to be compared, thereby further improving the efficiency of duplicate checking.
In a specific embodiment of the application, the second comparing module is further configured to determine, as the target location information, the location information in the first predetermined array of the message information corresponding to the target CAN channel calibration amount and the other target CAN channel calibration amount when the target CAN channel calibration amount is the same as the other target CAN channel calibration amount.
In another specific embodiment of the present application, the determining unit further includes a third comparing module, a marking module, a second determining module, a fourth comparing module, a first executing module and a second executing module, where the third comparing module is used in the first comparing step, and compares the CAN channel standard quantity of the ith message information with the CAN channel standard quantities of the respective message information after the ith message information one by one to obtain the target location information; the marking module is used for marking, and adding a preset mark to each message information corresponding to the target position information according to the target position information; the second determining module is configured to determine whether an i +1 th message information adjacent to the ith message information has the predetermined flag; the fourth comparing module is configured to perform a second comparing step, and in a case where the (i + 1) th message information does not have the predetermined tag, compare the CAN channel calibration amount of the (i + 1) th message information with the CAN channel calibration amounts of the respective message information that are located after the (i + 1) th message information and that do not have the predetermined tag one by one to obtain the target location information; the first executing module is configured to execute the marking step, the determining step, and the second comparing step at least once in sequence until all the message information in the first predetermined array are compared, where a value of i starts from 1 and reaches N-1, N is a total number of the message information in the first predetermined array, and i is increased by 1 in each execution; the second executing module is configured to, when the (i + 1) th packet information has the predetermined flag, sequentially execute the determining step and the second comparing step at least once until all the packet information in the first predetermined array is compared.
In order that those skilled in the art will clearly understand the above embodiments of the present application, the following description will be given with reference to a specific embodiment. For example, there are five message messages in the first predetermined array, and the CAN channel calibration amounts of the five message messages are sequentially represented as (a, B, a, C, a), where A, B, C are all used to represent the CAN channel calibration amounts of the message messages, but are not the actual representation of the CAN channel calibration amounts of the message messages. Firstly, comparing the CAN channel standard quantity of the first message information (A) with the CAN channel standard quantities of the four message information (B, A, C, A) behind the first message information one by one, so that the situation that the CAN channel standard quantities of the first message information, the third message information and the fifth message information are the same in a first preset array CAN be known, preset marks are added to the first message information, the third message information and the fifth message information, and the obtained target position information is the position information of the first message information, the third message information and the fifth message information in the first preset array. And then, determining whether the second message information (B) has a preset mark, comparing the CAN channel standard quantity of the second message information with the CAN channel standard quantity of the message information which is positioned behind the second message information and does not have the preset mark one by one because the second message information does not have the preset mark, namely comparing the CAN channel standard quantity of the second message information (B) with the CAN channel standard quantity of the fourth message information (C), and determining the target position information in the round because the CAN channel standard quantity of the second message information is different from the CAN channel standard quantity of the fourth message information. When determining whether the third message has the predetermined mark, sequentially determining whether the fourth message has the predetermined mark because the third message has the predetermined mark, but not comparing the CAN channel calibration amount of the fourth message with the CAN channel calibration amount of the fifth message because the fifth message has the predetermined mark. The finally obtained target position information is the position information of the first message information, the third message information and the fifth message information in the first preset array.
Specifically, the CAN channel calibration amount of the i-th message is compared with the CAN channel calibration amounts of the message messages located after the i-th message one by one, for example, the CAN channel calibration amount of the first message is compared with the CAN channel calibration amount of the second message, and the CAN channel calibration amount of the first message is compared with the CAN channel calibration amount of the third message. If the CAN channel calibration amount of the first message information is the same as the CAN channel calibration amount of the second message information, determining the position information of the first message information and the second message information as a target position, and if the CAN channel calibration amount of the first message information is also the same as the CAN channel calibration amount of the third message information, determining the position information of the first message information and the third message information as target position information, which further causes the position information of a plurality of first message information to be stored in a second predetermined array, so as to avoid repeated target position information in a subsequent second predetermined array. The second determining submodule is configured to determine, when the CAN channel calibration amount of an ith packet message is not the same as the CAN channel calibration amount of one packet message for the first time, location information of the packet message that is the same as the ith packet message, to obtain the target location information.
In another embodiment of the present application, the first updating unit includes a first replacing module, configured to replace, one by one, each predetermined value in the first initial predetermined array with each piece of the message information to obtain the first predetermined array; the second updating unit comprises a second replacing module, which is used for replacing each second preset value in the second initial preset array one by adopting the target position information and the target message name to obtain the second preset array, so that the first preset array and the second preset array can be obtained more simply.
In a specific embodiment of the application, the data type of the second predetermined array is an enumeration type.
In an embodiment of the application, the duplication checking apparatus further includes a second storage unit and a sending unit, where the second storage unit is configured to, after updating the target location information and the target packet name to a second initial predetermined array to obtain a second predetermined array, store each of the target location information and each of the target packet name in the second predetermined array to a target text document; the sending unit is used for sending the target text document to an upper computer. Therefore, the subsequent calibrating personnel can observe the repeatedly calibrated message names and the corresponding position information on the display screen of the upper computer conveniently, and the calibrating personnel can further modify the message names and the corresponding position information conveniently in time.
In a specific embodiment of the present application, the target text document may further be displayed on an INCA monitoring interface in the upper computer.
In a specific embodiment of the present application, as shown in table one, the target text document is obtained by storing the position information and the message information of each target information in the second predetermined array. Because the data type of the second predetermined array is an enumeration type, the target message names corresponding to the target position information CAN be observed in the target text document, and the target text document is subsequently sent to the upper computer, so that calibration personnel CAN further know in time that the CAN channel calibration amount corresponding to the target message names is repeatedly calibrated.
The device for checking the CAN channel calibration quantity comprises a processor and a memory, wherein the first updating unit, the determining unit, the second updating unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel CAN be set to be one or more than one, and the problem of low efficiency of manually checking the standard quantity of the CAN channel in the prior art is solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the invention provides a computer-readable storage medium, wherein a program is stored on the computer-readable storage medium, and the program is used for realizing the method for checking the CAN channel calibration quantity when being executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes the duplication checking method of the CAN channel calibration quantity when running.
In an embodiment of the present application, a vehicle is further provided, where the vehicle includes a duplicate checking device for a CAN channel calibration amount, and the duplicate checking device is configured to execute any one of the duplicate checking methods for the CAN channel calibration amount.
The vehicle comprises a weight checking device for the CAN channel calibration quantity, and the weight checking device is used for executing any one weight checking method for the CAN channel calibration quantity. In the duplicate checking method, firstly, a first initial predetermined array is updated by adopting a plurality of message information to obtain a first predetermined array; then, according to the CAN channel calibration quantity of each message information in the first preset array, determining the position information of each message information with the same CAN channel calibration quantity to obtain target position information; and finally, updating the second initial preset array by adopting the target position information and the target message name to obtain a second preset array. Compared with the prior art, the method and the device have the advantages that the CAN channel standard quantity is manually checked, according to the CAN channel standard quantity of each message in the first preset array, the position information of each message in the first preset array with the same CAN channel standard quantity is determined to obtain the target position information, the target position information and the corresponding target message name are adopted to update the second initial preset array to obtain the second preset array, so that the automatic duplicate checking of the CAN channel standard quantities of a plurality of message information is realized, the higher efficiency of the manual duplicate checking of the CAN channel standard quantity is ensured, the problem of lower accuracy of the manual duplicate checking is solved as the manual duplicate checking of the CAN channel standard quantity is not needed, and the problem of lower efficiency of the manual duplicate checking of the CAN channel standard quantity in the prior art is solved.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein when the processor executes the program, at least the following steps are realized:
step S101, updating a plurality of message information into a first initial predetermined array to obtain a first predetermined array, wherein the message information comprises message names and CAN channel calibration quantities of target CAN messages, one message information corresponds to one target CAN message, and each target CAN message is sent by the electronic control unit or each target CAN message is received by the electronic control unit;
step S102, according to the CAN channel calibration amount in each message, determining the position information of each message with the same CAN channel calibration amount in the first preset array to obtain target position information;
step S103, updating the target location information and the target message name to a second initial predetermined array to obtain a second predetermined array, where the target message name is the message name in the message information corresponding to the target location information.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device:
step S101, updating a plurality of message information into a first initial predetermined array to obtain a first predetermined array, wherein the message information comprises message names and CAN channel calibration quantities of target CAN messages, one message information corresponds to one target CAN message, and each target CAN message is sent by the electronic control unit or each target CAN message is received by the electronic control unit;
step S102, according to the CAN channel calibration quantity in each message, determining the position information of each message with the same CAN channel calibration quantity in the first preset array to obtain target position information;
step S103, updating the target location information and the target message name to a second initial predetermined array to obtain a second predetermined array, where the target message name is the message name in the message information corresponding to the target location information.
In order to make the technical solutions of the present application more clearly understood by those skilled in the art, the technical solutions and technical effects of the present application will be described below with reference to specific embodiments.
Examples
As shown in fig. 3 and 4, each message information consists of a message name 100 and a CAN channel calibration amount 101, and the first initial predetermined array is updated through each message information to obtain a first predetermined array 102 (i.e., a Port array). After the first predetermined array 102 is obtained, a first predetermined Flag is set for each message information in the first predetermined array 102, for example, the first predetermined Flag of each message information is set to Flag = =0. Then, determining the position information of each message information with the same CAN channel calibration quantity in the first preset array to obtain target position information; and updating the target position information and the target message name to a second initial preset array to obtain a second preset array.
The specific process of determining the position information of each message information with the same CAN channel calibration quantity in the first predetermined array to obtain the target position information is as follows:
as shown in fig. 4, the CAN channel calibration amount of the first message information is compared with the CAN channel calibration amounts of the message information located after the first message information one by one. Before comparing one by one, firstly, judging whether the first preset Flag [ m ] of the first message information is 0 or not. In the case where Flag [ m ] = =0 for the first message information, the CAN channel index amount of the first message information (i.e., m =0 for the first message information) is compared with the CAN channel index amount of the second message information (i.e., n = m +1=1 for the second message information) to determine whether Port [ m ] = = Port [ n ] & & Flag [ n ] = =0 is satisfied, where Port [ m ] is used for the CAN channel index amount of the mth message information, port [ n ] is used for the CAN channel index amount of the nth message information, and Flag [ n ] is used for the first predetermined Flag of the nth message information. If the above condition is not satisfied, n is sequentially incremented by 1 (i.e., n + +, as shown in fig. 4), that is, the first message information is compared with the third message information again. When the above condition is satisfied, the location information index [ m ] of Port [ m ] and the location information index [ n ] of Port [ n ] are recorded, that is, the location information of the first packet information and the second packet information in the first predetermined array is recorded, so as to obtain the target location information. Because the CAN channel calibration amount of the first message information is the same as that of the second message information, both Flag [ m ] and Flag [ n ] are set to 1, that is, the predetermined Flag of the first message information and the first predetermined Flag of the second message information are updated to obtain the second predetermined Flag. And then, judging whether N is larger than N again, wherein N is the total amount of the message information in the first preset array. And under the condition that N is less than or equal to N, the CAN channel calibration quantity of the first message information is not compared with the CAN channel calibration quantity behind the first message information one by one, so that the current N is gradually increased by 1 and is compared again. If N is larger than N, the CAN channel calibration quantity of the first message information is compared with the CAN channel calibration quantity behind the first message information one by one. Thereafter, m is gradually increased by 1 (i.e., m + +, shown in FIG. 4), and it is determined whether m is smaller than N. In the case where m is smaller than N, since the predetermined Flag of the message information has been updated before, it needs to be determined again whether the predetermined Flag of the second message information satisfies Flag [ m ] = =0. If the comparison result is satisfied, the CAN channel scaling quantity of the second packet information is compared with the CAN channel scaling quantity of the respective packet information that follows the second packet information and that does not have the predefined Flag = =0, i.e., it is determined again whether Port [ m ] = = Port [ n ] & & Flag [ n ] = =0 is satisfied, until the packet information in the first predefined array is compared completely, and the second predefined array is output.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be an indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
From the above description, it can be seen that the above-mentioned embodiments of the present application achieve the following technical effects:
1) In the duplicate checking method, firstly, a first initial preset array is updated by adopting a plurality of message information to obtain a first preset array; then, according to the CAN channel calibration amount of each message information in the first preset array, determining the position information of each message information with the same CAN channel calibration amount to obtain target position information; and finally, updating the second initial preset array by adopting the target position information and the target message name to obtain a second preset array. Compared with the prior art, the method and the device have the advantages that the CAN channel standard quantity is manually checked, according to the CAN channel standard quantity of each message in the first preset array, the position information of each message in the first preset array with the same CAN channel standard quantity is determined to obtain the target position information, the target position information and the corresponding target message name are adopted to update the second initial preset array to obtain the second preset array, so that the automatic duplicate checking of the CAN channel standard quantities of a plurality of message information is realized, the higher efficiency of the manual duplicate checking of the CAN channel standard quantity is ensured, the problem of lower accuracy of the manual duplicate checking is solved as the manual duplicate checking of the CAN channel standard quantity is not needed, and the problem of lower efficiency of the manual duplicate checking of the CAN channel standard quantity in the prior art is solved.
2) In the duplicate checking device, the first updating unit is used for updating the plurality of message information into the first initial predetermined array to obtain the first predetermined array; the determining unit is used for determining the position information of each message information with the same CAN channel standard quantity in the first preset array according to the CAN channel standard quantity in each message information to obtain target position information; the second updating unit is used for updating the target position information and the target message name into a second initial preset array to obtain a second preset array. Compared with the prior art, the method and the device have the advantages that the CAN channel standard quantity is manually checked, according to the CAN channel standard quantity of each message in the first preset array, the position information of each message in the first preset array with the same CAN channel standard quantity is determined to obtain the target position information, the target position information and the corresponding target message name are adopted to update the second initial preset array to obtain the second preset array, so that the automatic duplicate checking of the CAN channel standard quantities of a plurality of message information is realized, the higher efficiency of the manual duplicate checking of the CAN channel standard quantity is ensured, the problem of lower accuracy of the manual duplicate checking is solved as the manual duplicate checking of the CAN channel standard quantity is not needed, and the problem of lower efficiency of the manual duplicate checking of the CAN channel standard quantity in the prior art is solved.
3) The vehicle comprises a CAN channel calibration amount weight checking device, and the weight checking device is used for executing any one of the weight checking methods for the CAN channel calibration amount. In the duplicate checking method, firstly, a first initial predetermined array is updated by adopting a plurality of message information to obtain a first predetermined array; then, according to the CAN channel calibration quantity of each message information in the first preset array, determining the position information of each message information with the same CAN channel calibration quantity to obtain target position information; and finally, updating the second initial preset array by adopting the target position information and the target message name to obtain a second preset array. Compared with the prior art, the method and the device have the advantages that the CAN channel standard quantity is manually checked, according to the CAN channel standard quantity of each message in the first preset array, the position information of each message in the first preset array with the same CAN channel standard quantity is determined to obtain the target position information, the target position information and the corresponding target message name are adopted to update the second initial preset array to obtain the second preset array, so that the automatic duplicate checking of the CAN channel standard quantities of a plurality of message information is realized, the higher efficiency of the manual duplicate checking of the CAN channel standard quantity is ensured, the problem of lower accuracy of the manual duplicate checking is solved as the manual duplicate checking of the CAN channel standard quantity is not needed, and the problem of lower efficiency of the manual duplicate checking of the CAN channel standard quantity in the prior art is solved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for checking the duplication quantity of a CAN channel is characterized in that the method is applied to an electronic control unit and comprises the following steps:
updating a plurality of message information into a first initial predetermined array to obtain a first predetermined array, wherein the message information comprises message names and CAN channel calibration quantities of target CAN messages, one message information corresponds to one target CAN message, and each target CAN message is sent by the electronic control unit or each target CAN message is received by the electronic control unit;
according to the CAN channel calibration amount in each message, determining the position information of each message with the same CAN channel calibration amount in the first preset array to obtain target position information;
and updating the target position information and the target message name to a second initial preset array to obtain a second preset array, wherein the target message name is the message name in the message information corresponding to the target position information.
2. The method according to claim 1, wherein determining, according to the CAN channel calibration amount in each message, position information of each message in the first predetermined array, where the CAN channel calibration amount is the same, to obtain target position information, includes:
comparing the CAN channel calibration quantity of each message information in the first preset array;
and under the condition that at least two pieces of message information with the same CAN channel calibration quantity exist, determining the position information of the at least two pieces of message information in the first preset array to obtain the target position information.
3. The method according to claim 1, wherein each of the message messages in the first predetermined array has a first predetermined flag, and according to the CAN channel calibration amount in each of the message messages, the method determines the location information of each of the message messages with the same CAN channel calibration amount in the first predetermined array to obtain the target location information, and includes:
comparing, namely comparing a target CAN channel standard quantity with other target CAN channel standard quantities one by one to obtain the target position information, wherein the target CAN channel standard quantity is the CAN channel standard quantity of the message information without a second preset mark;
updating, namely updating the first preset mark of each message information corresponding to the target position information into the second preset mark according to the target position information;
and repeating the comparing step and the updating step until all the message information in the first preset array is compared.
4. The duplicate checking method according to claim 1,
updating the plurality of message information into a first initial predetermined array to obtain a first predetermined array, including:
replacing each first preset value in the first initial preset array one by adopting each message information to obtain a first preset array;
updating the target position information and the target message name to a second initial predetermined array to obtain a second predetermined array, including:
and replacing each second preset value in the second initial preset array one by adopting the target position information and the target message name to obtain the second preset array.
5. The method according to any one of claims 1 to 4, wherein the data type of the second predetermined array is an enumeration type.
6. The method according to claim 1, wherein after the target location information and the target packet name are updated to a second initial predetermined array to obtain a second predetermined array, the method further comprises:
storing each target position information and each target message name in the second preset array to a target text document;
and sending the target text document to an upper computer.
7. The CAN channel calibration quantity duplicate checking device is applied to an electronic control unit, and comprises:
the first updating unit is used for updating a plurality of message information into a first initial predetermined array to obtain a first predetermined array, wherein the message information comprises message names and CAN channel standard quantities of target CAN messages, one message information corresponds to one target CAN message, and each target CAN message is sent by the electronic control unit or received by the electronic control unit;
the determining unit is used for determining the position information of each message information with the same CAN channel standard quantity in the first preset array according to the CAN channel standard quantity in each message information to obtain target position information;
and the second updating unit is used for updating the target position information and the target message name into a second initial preset array to obtain a second preset array, wherein the target message name is the message name in the message information corresponding to the target position information.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program performs the method for duplication checking of CAN channel calibration amounts according to any one of claims 1 to 6.
9. A processor, wherein the processor is configured to run a program, and wherein the program is configured to execute the method for checking the CAN channel calibration amount according to any one of claims 1 to 6 when the program is run.
10. A vehicle, characterized by comprising: the CAN channel calibration amount duplicate checking device is used for executing the CAN channel calibration amount duplicate checking method in any one of claims 1 to 6.
CN202210932780.8A 2022-08-04 2022-08-04 Weight checking method and device for CAN channel standard quantity, processor and vehicle Active CN115314339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210932780.8A CN115314339B (en) 2022-08-04 2022-08-04 Weight checking method and device for CAN channel standard quantity, processor and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210932780.8A CN115314339B (en) 2022-08-04 2022-08-04 Weight checking method and device for CAN channel standard quantity, processor and vehicle

Publications (2)

Publication Number Publication Date
CN115314339A true CN115314339A (en) 2022-11-08
CN115314339B CN115314339B (en) 2023-06-23

Family

ID=83859732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210932780.8A Active CN115314339B (en) 2022-08-04 2022-08-04 Weight checking method and device for CAN channel standard quantity, processor and vehicle

Country Status (1)

Country Link
CN (1) CN115314339B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116303405A (en) * 2023-05-12 2023-06-23 深圳竹云科技股份有限公司 Data duplicate checking method and device and computer equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754565A (en) * 2013-12-27 2015-07-01 中兴通讯股份有限公司 Wireless parameter sending and receiving method and device
CN104836705A (en) * 2015-05-13 2015-08-12 国家电网公司 Method for performing calibration time delay error testing on time delay calibration switch of intelligent substation
CN106844611A (en) * 2017-01-17 2017-06-13 南京越博动力系统股份有限公司 A kind of system and method for the new-energy automobile dynamic property automatic Calibration based on CCP agreements and sensor
CN106896803A (en) * 2017-04-24 2017-06-27 成都雅骏新能源汽车科技股份有限公司 A kind of CCP calibration systems of the processor of compatible 16BIT
CN110120904A (en) * 2019-04-17 2019-08-13 东风朝阳朝柴动力有限公司 Entire car controller local area network message demarcates monitoring device
CN110266571A (en) * 2019-06-17 2019-09-20 珠海格力电器股份有限公司 Improve the method, apparatus and computer equipment of CAN bus data transmission credibility
CN111291443A (en) * 2018-12-07 2020-06-16 广州汽车集团股份有限公司 Automatic generation method, device, equipment and storage medium for I/O module model of vehicle control unit software
CN111880508A (en) * 2020-06-24 2020-11-03 东风电驱动系统有限公司 Automatic calibration and test method and device for T-box parameters
CN112557593A (en) * 2020-11-25 2021-03-26 沪东重机有限公司 Sensor calibration system and method based on CAN communication protocol
US20210185722A1 (en) * 2020-02-13 2021-06-17 Intel Corporation Physical uplink shared channel (pusch) transmission scheduling for new radio (nr)
US20210227442A1 (en) * 2020-04-01 2021-07-22 Intel Corporation Location-based event trigger and conditional handover
CN113515307A (en) * 2021-05-18 2021-10-19 江苏奥易克斯汽车电子科技股份有限公司 Calibratable can information processing system and method based on hybrid electric vehicle

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754565A (en) * 2013-12-27 2015-07-01 中兴通讯股份有限公司 Wireless parameter sending and receiving method and device
CN104836705A (en) * 2015-05-13 2015-08-12 国家电网公司 Method for performing calibration time delay error testing on time delay calibration switch of intelligent substation
CN106844611A (en) * 2017-01-17 2017-06-13 南京越博动力系统股份有限公司 A kind of system and method for the new-energy automobile dynamic property automatic Calibration based on CCP agreements and sensor
CN106896803A (en) * 2017-04-24 2017-06-27 成都雅骏新能源汽车科技股份有限公司 A kind of CCP calibration systems of the processor of compatible 16BIT
CN111291443A (en) * 2018-12-07 2020-06-16 广州汽车集团股份有限公司 Automatic generation method, device, equipment and storage medium for I/O module model of vehicle control unit software
CN110120904A (en) * 2019-04-17 2019-08-13 东风朝阳朝柴动力有限公司 Entire car controller local area network message demarcates monitoring device
CN110266571A (en) * 2019-06-17 2019-09-20 珠海格力电器股份有限公司 Improve the method, apparatus and computer equipment of CAN bus data transmission credibility
US20210185722A1 (en) * 2020-02-13 2021-06-17 Intel Corporation Physical uplink shared channel (pusch) transmission scheduling for new radio (nr)
US20210227442A1 (en) * 2020-04-01 2021-07-22 Intel Corporation Location-based event trigger and conditional handover
CN111880508A (en) * 2020-06-24 2020-11-03 东风电驱动系统有限公司 Automatic calibration and test method and device for T-box parameters
CN112557593A (en) * 2020-11-25 2021-03-26 沪东重机有限公司 Sensor calibration system and method based on CAN communication protocol
CN113515307A (en) * 2021-05-18 2021-10-19 江苏奥易克斯汽车电子科技股份有限公司 Calibratable can information processing system and method based on hybrid electric vehicle

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SHAOHUI CHEN: ""A new calibration approach for charging facilities for electic vehicles via machine learning"", 《2020 IEEE ITERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND COMPUTER APPLLCATIONS (ICAICA) 》 *
朱璠: ""基于CAN通讯的车用发动机标定软件研究和参数优化"", 《中国优秀硕士论文全文数据库》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116303405A (en) * 2023-05-12 2023-06-23 深圳竹云科技股份有限公司 Data duplicate checking method and device and computer equipment
CN116303405B (en) * 2023-05-12 2023-11-10 深圳竹云科技股份有限公司 Data duplicate checking method and device and computer equipment

Also Published As

Publication number Publication date
CN115314339B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN111221726A (en) Test data generation method and device, storage medium and intelligent equipment
CN108574601A (en) A kind of gray scale dissemination method and system
CN108537289A (en) Training method, device and the storage medium of data identification model
CN109523373B (en) Remote body-checking method, device and computer readable storage medium
CN110648180B (en) Method and device for adjusting delivery channel and electronic equipment
CN108681504A (en) Automated testing method, test server and computer readable storage medium
CN115314339A (en) CAN channel calibration amount duplicate checking method, duplicate checking device, processor and vehicle
CN110764999A (en) Automatic testing method and device, computer device and storage medium
US11301237B2 (en) Upgrading method and apparatus
CN108038655A (en) Recommendation method, application server and the computer-readable recording medium of department's demand
CN109587351B (en) Call testing method, device, equipment and storage medium
CN108280024B (en) Flow distribution strategy testing method and device and electronic equipment
CN117009208A (en) Dependency information processing method, device, equipment and storage medium
CN111079390B (en) Method and device for determining selection state of check box list
CN110618881B (en) Method and system for simulating message queue
CN108833298B (en) Packet transmission method, device and storage medium
CN110955920A (en) Data processing method, device and storage medium
CN112527276A (en) Data updating method and device in visual programming tool and terminal equipment
CN117194260A (en) Test message generation method, electronic equipment and storage medium
CN116872251A (en) Hardware testing method, device, electronic equipment and computer readable storage medium
CN116737707A (en) Data processing method, device, electronic equipment and computer readable storage medium
CN113448849A (en) Page element testing method, device, equipment and storage medium
CN116257443A (en) Parameter setting method, device, equipment and storage medium
CN113962068A (en) Verification strategy determination method and device, electronic equipment and storage medium
CN116680280A (en) Data verification method and related device

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