CN115495133B - DBC dynamic self-adaptive updating method and device, electronic equipment and storage medium - Google Patents

DBC dynamic self-adaptive updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115495133B
CN115495133B CN202211442256.9A CN202211442256A CN115495133B CN 115495133 B CN115495133 B CN 115495133B CN 202211442256 A CN202211442256 A CN 202211442256A CN 115495133 B CN115495133 B CN 115495133B
Authority
CN
China
Prior art keywords
terminal
dbc
signal
eps
terminal signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211442256.9A
Other languages
Chinese (zh)
Other versions
CN115495133A (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.)
Dafenqi Power Technology Beijing Co ltd
Original Assignee
Dafenqi Power Technology Beijing 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 Dafenqi Power Technology Beijing Co ltd filed Critical Dafenqi Power Technology Beijing Co ltd
Priority to CN202211442256.9A priority Critical patent/CN115495133B/en
Publication of CN115495133A publication Critical patent/CN115495133A/en
Application granted granted Critical
Publication of CN115495133B publication Critical patent/CN115495133B/en
Priority to PCT/CN2023/130074 priority patent/WO2024104217A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a DBC dynamic self-adaptive updating method, a DBC dynamic self-adaptive updating device, electronic equipment and a storage medium. The DBC dynamic self-adaptive updating method comprises the steps of storing DBC files for OTA upgrading of a terminal into a database; acquiring a CAN original message and terminal basic information reported by a current terminal, and matching a DBC file corresponding to the current terminal according to the terminal basic information; analyzing the CAN original message by using the matched DBC file to obtain a specific value of each terminal signal; and storing the specific value of each terminal signal into the database according to the EPS ID. The invention can realize dynamic self-adaptive updating of the DBC file at the cloud, avoid the problem of large updating workload of the DBC file when the batch terminals are recalled, avoid the problem of query errors caused by different names, and better maintain diversified upgrading.

Description

DBC dynamic self-adaptive updating method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of vehicle software upgrading, in particular to a DBC dynamic self-adaptive updating method and device, electronic equipment and a computer readable storage medium.
Background
With the promotion of 'electromotion, networking, intellectualization and sharing' of vehicles and enterprises, in the era of interconnection of everything, the electronic programs of new energy vehicles are higher and higher. The trend of "software defined vehicles" has been a trend, the repair of software failures and The update of personalized customization needs, which have been difficult to give The user The best experience only through The inherent upgrade scheme, which involves OTA technology (Over-The-Air, over-The-Air or Over-The-Air upgrade). In the OTA process, the DBC version is written inevitably, diversified and complicated upgrading is performed, the interaction between one terminal and the cloud is very important, and the DBC dynamic self-adaption scene response is generated in order to meet the polymorphic and complicated upgrading requirements of vehicles.
In models S vehicle models launched by OTA in 2012, the updating range of the OTA is related to the fields of automatic driving, man-machine interaction, power, battery systems and the like, and the OTA can complete functions of key card leak, mileage improvement, highest speed improvement, riding comfort improvement and the like or repair of the leak.
With the development of new energy automobile technology, the functions of the whole automobile are more and more complex, and the safety requirement is higher and higher, so more and more controllers are applied to the whole automobile. In order to realize real-time communication between different controllers, the CAN bus is also widely used. Through the CAN network, the data of different controllers are sent to the CAN bus by taking the ID as a zone, the controllers quickly find the required data from the bus, and the CAN bus has the functions of arbitration and inspection, CAN ensure the accuracy of the data, and is a field bus with high reliability and stability. The type of data communicated over the CAN bus CAN be read and understood with the DBC file. DBC is an ASCII-based translation, a standard file developed in the 90 s of the 20 th century, and is currently being used by the automotive industry all over the world. The DBC file CAN help identify it by describing the data within the CAN frame.
In the traditional OTA upgrading, the upgraded DBC file is uniformly written into a terminal, and a local DBC file (the DBC file refers to a file in a DBC format capable of analyzing vehicle data at a vehicle terminal) is read through a CAN bus acquisition message of the terminal to complete data interaction and data rendering, namely, the vehicle data or signals are analyzed at the vehicle terminal. Therefore, the phenomenon that the DBC updating workload of a batch of vehicles is large when a fault occurs due to the fact that the same version of DBC files are adopted by the batch of vehicles easily occurs, for example, 3000 vehicles are produced by the batch of vehicles, if the fault occurs, the DBC files need to be re-implanted into 3000 vehicle computers under the condition of recalling, and the updating workload is large. If personalized updating is met, the updating cost of the DBC file is greatly increased, and if the DBC file of the terminal is analyzed, the problem of abnormal analysis is difficult to find and repair, for example, if the battery 12V is in a normal state, if program problem read data is 10V, errors occur, and the problem is difficult to find.
Therefore, it is a problem to be solved at present that how to update the DBC file conveniently to meet the requirement of a personalized customization client and complete data interaction between a terminal (vehicle) and a client for complicated vehicle upgrade.
This background description is for the purpose of facilitating understanding of relevant art in the field and is not to be construed as an admission of the prior art.
Disclosure of Invention
In view of this, embodiments of the present invention are intended to provide a DBC dynamic adaptive updating method, apparatus, electronic device and storage medium, which are used to solve the problem that a conventional DBC file cannot be updated conveniently.
In a first aspect, an embodiment of the present invention provides a DBC dynamic adaptive update method, where the method includes:
storing the DBC file subjected to OTA upgrading by the terminal into a database;
acquiring a CAN original message and terminal basic information reported by a current terminal, and matching a DBC file corresponding to the current terminal according to the terminal basic information;
analyzing the CAN original message by using the matched DBC file to obtain a specific value of each terminal signal;
and storing the specific value of each terminal signal into the database according to the EPS ID.
According to a specific implementation manner of the embodiment of the invention, the specific implementation process of storing the DBC file of the OTA upgrade of the terminal into the database comprises the following steps:
storing the DBC file;
reading and analyzing the DBC file to obtain each terminal signal and the parameter attribute thereof;
setting an EPS ID for each terminal signal, and generating a mapping table of the terminal signal and the EPS ID;
and storing each terminal signal, the parameter attribute thereof and the corresponding EPS ID into a database.
According to a specific implementation manner of the embodiment of the present invention, the parameter attribute of each terminal signal includes a signal name, a signal ID, a signal parsing bit, an offset, and a gain.
According to a specific implementation manner of the embodiment of the present invention, the DBC file for the OTA upgrade of the terminal is generated according to a terminal CAN bus protocol provided by a terminal manufacturer.
According to a specific implementation manner of the embodiment of the present invention, a specific implementation process of analyzing the CAN primitive message by using the matched DBC file is as follows:
analyzing the matched DBC file to obtain each terminal signal and parameter attribute and EPS ID thereof;
and analyzing the CAN original message according to the terminal signal and the parameter attribute thereof to obtain the specific value of the terminal signal.
According to a specific implementation manner of the embodiment of the present invention, a specific implementation process for analyzing the CAN original packet according to the terminal signal and the parameter attribute thereof is as follows:
retrieving the CAN original message according to the signal ID of the terminal signal to retrieve a target data frame;
and analyzing and calculating the target data frame according to the signal analysis bit, the offset and the gain of the terminal signal to obtain a specific value of the terminal signal.
According to a specific implementation manner of the embodiment of the present invention, the method further includes acquiring an EPS ID input by the client, and querying and feeding back a specific value of the terminal signal according to the EPS ID.
In an embodiment of the present invention, in a second aspect, an embodiment of the present invention provides a DBC dynamic adaptive updating apparatus, where the apparatus includes:
the storage unit is configured to store the DBC file of OTA upgrading of the terminal and the specific value of each terminal signal obtained by the EPS ID storage and analysis unit;
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is configured to acquire a CAN original message and terminal basic information reported by a current terminal;
the matching unit is configured to match a DBC file corresponding to the current terminal according to the basic terminal information;
and the analysis unit is configured to analyze the CAN original message by using the matched DBC file to obtain a specific value of each terminal signal.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, which when executed by the at least one processor, cause the at least one processor to perform the method for dynamic adaptive update of DBC according to the first aspect described above.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer instructions that, when executed by at least one processor, cause the at least one processor to perform the DBC dynamic adaptive update method of the first aspect.
In a fifth aspect, the disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the DBC dynamic adaptive update method according to the first aspect.
In the DBC dynamic self-adaptive updating method used in the embodiment of the invention, a DBC file used for terminal OTA upgrading is stored by a cloud, when the terminal reports a CAN original message to the cloud, the cloud analyzes the CAN original message by using the matched DBC file, and stores a specific value of a terminal signal into a cloud database according to an EPS ID rule, so that the dynamic self-adaptive updating of the DBC file at the cloud is realized; according to the invention, the storage and analysis of the DBC file are realized at the cloud, so that the problem of large updating workload of the DBC file when the batch terminals are recalled is solved.
In the DBC dynamic self-adaptive updating method used in the embodiment of the invention, the mapping table of the terminal signals and the EPS ID is generated when the DBC file is stored, the specific value of each terminal signal is stored according to the EPS ID in the analysis process, and the correct data can be obtained by directly inquiring the value corresponding to the EPS ID when a client inquires the terminal signal, so that the problem of inquiry error caused by different names is avoided, and diversified upgrading can be maintained better.
Additional optional features and technical effects of embodiments of the invention are set forth in part in the description which follows, and in part will be apparent from the description.
Drawings
Embodiments of the invention will hereinafter be described in detail with reference to the accompanying drawings, wherein the elements shown are not to scale as shown in the figures, and wherein like or similar reference numerals denote like or similar elements, and wherein:
FIG. 1 illustrates an example flow diagram of a DBC dynamic adaptive update method according to an embodiment of the invention;
fig. 2 illustrates an exemplary structural diagram of a DBC dynamic adaptive update apparatus according to an embodiment of the present invention;
fig. 3 shows an exemplary structural diagram of an electronic device capable of implementing a method according to an embodiment of the invention.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described in this disclosure may be embodied in a wide variety of forms and that any specific structure and/or function described in this disclosure is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described in the disclosure may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth in this disclosure. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth in this disclosure.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the drawings only show the components related to the present invention rather than the number, shape and size of the components in practical implementation, and the type, quantity and proportion of the components in practical implementation can be changed freely, and the layout of the components can be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
According to the DBC dynamic self-adaptive updating method provided by the embodiment of the invention, the DBC file is stored and analyzed at the cloud, and the CAN original message is analyzed at the cloud by using the DBC file, so that the DBC file is dynamically self-adaptively updated at the cloud.
In the traditional technology, an upgraded DBC file is written into a terminal, a CAN original message is analyzed by using the DBC file at the terminal, and when the batch terminals adopt DBC files with the same version and have faults and need to be recalled, the DBC updating workload is large. The method, apparatus, electronic device, and storage medium of the present invention will be described in detail below with reference to fig. 1 to 3.
The present embodiment noun explains:
a client: APP, DM (system background);
cloud: the TSP system is a short hand for Telematics Service Provider, belongs to a Service Provider, and plays a role in connecting automobiles, vehicle-mounted equipment manufacturers, network operators and content providers;
a terminal: a vehicle;
signal: a vehicle signal name;
EPS ID: e = ECU, P = Packet ID, S = Signal ID, and ID generated by the cloud according to the DBC file is used for later maintenance of the corresponding relation with the vehicle signals (1 EPS ID corresponds to a plurality of vehicle signals), so that the situation that correct data cannot be inquired due to updating of the content of the DBC file is avoided.
Fig. 1 is a schematic flowchart of a DBC dynamic adaptive updating method according to an embodiment of the present invention.
As shown in fig. 1, at step S101, a DBC file for OTA upgrade of a terminal is stored in a database.
The DBC file for OTA upgrading of the vehicle is stored in the TSP cloud, and the concrete implementation process is as follows:
1.1 And storing the currently uploaded DBC file.
In the embodiment of the invention, the DBC file for OTA upgrading of the vehicle is generated according to a complete vehicle CAN bus protocol provided by a vehicle manufacturer.
1.2 And reading and analyzing the DBC file in the step 1.1 to obtain each vehicle signal and the parameter attribute thereof.
The parameter attributes of the vehicle signal comprise a signal name, a signal ID, a signal analysis bit, an offset and a gain. The signal ID of the vehicle signal is different from the EPS ID, and the signal IDs of different vehicle signals are different, i.e., the signal IDs of the vehicle signals are unique, while different vehicle signals may be directed to the same EPS ID.
The signal resolution bit is a specific value that resolves each vehicle signal by the bit length of the signal. Illustratively, there are 8 signals in a Packet, where the 8 signals respectively represent switches of a turn signal and a wiper, and a0 indication is set to be off and a 1 indication is set to be on, and if specific values of the 8 signals need to be known, 8 characters need to be transmitted, for example: 01010111, if there is a signal resolution bit, for example, a 16-bit value is transmitted, only "57" needs to be transmitted. The length of the transmission character is greatly shortened through the signal analysis bit, and the transmission rate is improved. An offset, e.g. a specific value of a certain vehicle signal is not 01, but a larger or smaller value, e.g. 30, the offset is 30. Gain for achieving a scaling of the vehicle signal, e.g. multiplying or dividing the value of a certain vehicle signal by 100.
1.3 An EPS ID is set for each vehicle signal, and a mapping table of terminal signals and EPS IDs is generated.
Illustratively, assuming that the battery management system (ECU) is A0, the battery (Packet ID) is B1, and the current/voltage/power (Signal ID) is respectively represented by 01/02/03, the EPS ID of the current/voltage/power Signal of the battery in the battery management system is A0B101/02/03.
Different vehicle signals may employ the same EPS ID. When writing the DBC file later, the mapping table of the previous version is referred to, so that data query errors caused by different engineers using different naming specifications are prevented.
1.4 And storing each terminal signal, the parameter attribute thereof and the corresponding EPS ID into a database of the TSP cloud.
In step S102, a CAN original message and terminal basic information reported by a current terminal are obtained, and a DBC file corresponding to the current terminal is obtained according to the terminal basic information in a matching manner.
The vehicle collects the CAN original message and reports the CAN original message and the basic information of the vehicle to the TSP cloud, the operation does not need to pay attention to OTA Version of the vehicle, and the TSP cloud matches the DBC file corresponding to the current vehicle through the adapter according to the basic information of the vehicle. The adapter of the TSP cloud is used for determining which version of DBC file should be matched for a certain vehicle. In this embodiment, the vehicle basic information includes a vehicle ID and a DBC version number to be resolved, and the vehicle ID has uniqueness.
The adapter will inquire out the DBC file of the current vehicle and each terminal signal and its parameter attribute, EPS ID corresponding to the DBC file.
In step S103, the matched DBC file is used to analyze the CAN primitive packet, so as to obtain a specific value of each terminal signal.
More specifically, analyzing the matched DBC file to obtain each vehicle signal and parameter attribute and EPS ID thereof; and analyzing the CAN original message according to the vehicle signal and the parameter attribute thereof to obtain the specific value of the vehicle signal.
In the embodiment of the invention, the specific implementation process of analyzing the CAN original message according to the vehicle signal and the parameter attribute thereof is as follows:
searching the CAN original message according to the signal ID of the vehicle signal to search out a target data frame;
and analyzing and calculating the target data frame according to the signal analysis bit, the offset and the gain of the vehicle signal to obtain a specific value of the vehicle signal.
And when the signal ID of the vehicle signal is the same as the signal ID in the CAN original file, searching out a target data frame, and then analyzing and calculating the target data frame to obtain a specific value which CAN be read intuitively of the vehicle signal.
For example, in the CAN original message, only "57" is transmitted, and the values of 8 sub-signals 01010111 CAN be analytically calculated by using the matched DBC file. Similarly, the matched DBC file can be used for analyzing and calculating accumulated mileage data, battery cell voltage, vehicle speed data, steering lamp state data, windscreen wiper state data, brake state data and the like.
At step S104, the specific value of each terminal signal is stored in the database according to the EPS ID.
For example, if the EPS ID of the current/voltage/power signal of the battery in the battery management system is A0B101/02/03, the parsed battery voltage is stored in a location corresponding to A0B101/02/03, and the parsed battery voltage is not stored in a location corresponding to the voltage signal ID, where the corresponding relationship between the EPS ID and the specific value of the vehicle signal is stored, and the corresponding relationship between the vehicle signal and the specific value of the vehicle signal is not stored, thereby preventing a data query error.
In step S105, the EPS ID input by the client is acquired, and the specific value of the terminal signal is queried and fed back to the client according to the EPS ID.
When the client side inquires the corresponding vehicle signal, the client side directly inquires the concrete value of the corresponding vehicle signal in the TSP cloud database through the mapper and returns the concrete value to be subjected to subsequent business processing. In short, the value corresponding to the EPS ID is directly inquired, so that inquiry errors caused by different names are prevented. Illustratively, both the motorcycle power amount and the vehicle power amount indicate a specific value, but if the EPS ID is not used, confusion between the motorcycle power amount and the vehicle power amount may occur when the power amount is queried, resulting in an error.
In the DBC dynamic self-adaptive updating method used in the embodiment of the invention, a DBC file used for terminal OTA upgrading is stored by a cloud, when the terminal reports a CAN original message to the cloud, the cloud analyzes the CAN original message by using the matched DBC file, and stores a specific value of a terminal signal into a cloud database according to an EPS ID rule, so that the dynamic self-adaptive updating of the DBC file at the cloud is realized; according to the invention, the storage and analysis of the DBC file are realized at the cloud, so that the problem of large updating workload of the DBC file when the batch terminals are recalled is solved.
In the DBC dynamic self-adaptive updating method used in the embodiment of the invention, the mapping table of the terminal signals and the EPS ID is generated when the DBC file is stored, the specific value of each terminal signal is stored according to the EPS ID in the analysis process, and the correct data can be obtained by directly inquiring the value corresponding to the EPS ID when a client inquires the terminal signal, so that the problem of inquiry error caused by different names is avoided, and diversified upgrading can be maintained better.
Fig. 2 shows a block diagram of a DBC dynamic adaptive update apparatus according to an embodiment of the present invention.
As shown in fig. 2, an embodiment of the present invention provides a DBC dynamic adaptive updating apparatus 2000, which includes a storage unit 2100, an obtaining unit 2200, a matching unit 2300, and a parsing unit 2400.
The storage unit 2100 is configured to store a DBC file for OTA upgrade of the terminal, and store a specific value of each terminal signal obtained by the parsing unit 2400 according to the EPS ID.
When storing a DBC file for OTA upgrade of a terminal, the storage unit 2100 first stores the DBC file; then reading and analyzing the DBC file to obtain each terminal signal and parameter attributes thereof; setting an EPS ID for each terminal signal, and generating a mapping table of the terminal signal and the EPS ID; and finally, storing each terminal signal, the parameter attribute thereof and the corresponding EPS ID into a database.
The obtaining unit 2200 is configured to obtain the CAN original message and the terminal basic information reported by the current terminal.
A matching unit 2300 configured to match a DBC file corresponding to the current terminal according to the terminal basic information. The matching unit 2300 is provided with an adapter inside, and the adapter is used for inquiring the DBC file of the current vehicle, each terminal signal corresponding to the DBC file, the parameter attribute of each terminal signal and the EPS ID of each terminal signal.
And the analyzing unit 2400 is configured to analyze the CAN original message by using the matched DBC file to obtain a specific value of each terminal signal.
When analyzing, the analyzing unit 2400 analyzes the matched DBC file to obtain each vehicle signal and its parameter attribute, and EPS ID; and then analyzing the CAN original message according to the vehicle signal and the parameter attribute thereof to obtain the specific value of the vehicle signal.
In the DBC dynamic self-adaptive updating device used in the embodiment of the invention, a DBC file used for OTA (over the air) upgrading of a terminal is stored by a cloud, when the terminal reports a CAN original message to the cloud, the cloud analyzes the CAN original message by using the matched DBC file, and stores a specific value of a terminal signal into a cloud database according to an EPS ID (extended power system) rule, so that the dynamic self-adaptive updating of the DBC file at the cloud is realized; according to the invention, the storage and analysis of the DBC file are realized at the cloud, so that the problem of large updating workload of the DBC file when the batch terminals are recalled is solved.
In the DBC dynamic self-adaptive updating device used in the embodiment of the invention, the mapping table of the terminal signals and the EPS ID is generated when the DBC file is stored, the specific value of each terminal signal is stored according to the EPS ID in the analysis process, and the correct data can be obtained by directly inquiring the value corresponding to the EPS ID when a client inquires the terminal signal, so that the problem of inquiry error caused by different names is avoided, and diversified upgrading can be better maintained.
In some embodiments, the DBC dynamic adaptive updating apparatus may combine method features of the DBC dynamic adaptive updating method of any embodiment, and vice versa, and is not described herein again.
In an embodiment of the present invention, there is provided an electronic apparatus including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, cause the at least one processor to perform any of the DBC dynamic adaptive update methods of embodiments of the present invention.
Fig. 3 shows a schematic diagram of an electronic device 3000 in which a method or implementing an embodiment of the invention may be implemented, which in some embodiments may include more or fewer electronic devices than shown. In some embodiments, it may be implemented using a single or multiple electronic devices. In some embodiments, the implementation may be with cloud or distributed electronic devices.
As shown in fig. 3, the electronic device 3000 includes a processor 3001 that can perform various appropriate operations and processes according to programs and/or data stored in a Read Only Memory (ROM) 3002 or programs and/or data loaded from a storage portion 1008 into a Random Access Memory (RAM) 3003. The processor 3001 may be a multicore processor or may include multiple processors. In some embodiments, processor 3001 may include a general-purpose main processor as well as one or more special purpose co-processors, such as a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a neural Network Processor (NPU), a Digital Signal Processor (DSP), and so forth. In the RAM 3003, various programs and data necessary for the operation of the electronic device 3000 are also stored. The processor 3001, the ROM 3002, and the RAM 3003 are connected to each other by a bus 3004. An input/output (I/O) interface 3005 is also connected to bus 3004.
The processor and the memory are used together to execute the program stored in the memory, and the program can realize the method, the steps or the functions described in the embodiments when the program is executed by the computer.
The following components are connected to the I/O interface 3005: an input portion 3006 including a keyboard, a mouse, a touch screen, and the like; an output section 3007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 3008 including a hard disk and the like; and a communication section 3009 including a network interface card such as a LAN card, a modem, or the like. The communication section 3009 performs communication processing via a network such as the internet. A driver 3010 is also connected to the I/O interface 3005 as necessary. A removable medium 3011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 3010 as necessary, so that a computer program read out therefrom is mounted in the storage section 3008 as necessary. Only some of the components are schematically illustrated in fig. 3, and it is not meant that computer system 3000 includes only the components illustrated in fig. 3.
The systems, devices, modules or units illustrated in the above embodiments can be implemented by a computer or its associated components. The computer may be, for example, a mobile terminal, a smart phone, a personal computer, a laptop computer, a vehicle-mounted human interaction device, a personal digital assistant, a media player, a navigation device, a game console, a tablet, a wearable device, a smart television, an internet of things system, a smart home, an industrial computer, a server, or a combination thereof.
Although not shown, in the embodiment of the present invention, a storage medium storing a computer program configured to be executed when the computer program is executed performs the file difference-based compiling method of any of the embodiments of the present invention.
Storage media in embodiments of the invention include permanent and non-permanent, removable and non-removable articles of manufacture in which information storage may be accomplished by any method or technology. Examples of 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 disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The methods, programs, systems, apparatuses, etc., in embodiments of the present invention may be performed or implemented in a single or multiple networked computers, or may be practiced in distributed computing environments. In the described embodiments, tasks may be performed by remote processing devices that are linked through a communications network in these distributed computing environments.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Thus, it will be apparent to one skilled in the art that the implementation of the functional modules/units or controllers and the associated method steps set forth in the above embodiments may be implemented in software, hardware, or a combination of software and hardware.
Unless specifically stated otherwise, the actions or steps of a method, program or process described in accordance with an embodiment of the present invention need not be performed in a particular order and still achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
While various embodiments of the invention have been described herein, the description of the various embodiments is not intended to be exhaustive or to limit the invention to the precise forms disclosed, and features and components that are the same or similar to one another may be omitted for clarity and conciseness. As used herein, "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" are intended to apply to at least one embodiment or example, but not to all embodiments, in accordance with the present invention. The above terms are not necessarily meant to refer to the same embodiment or example. Various embodiments or examples and features of various embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Exemplary systems and methods of the present invention have been particularly shown and described with reference to the foregoing embodiments, which are merely illustrative of the best modes for carrying out the systems and methods. It will be appreciated by those skilled in the art that various changes in the embodiments of the systems and methods described herein may be made in practicing the systems and/or methods without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A DBC dynamic adaptive updating method is characterized by comprising the following steps:
storing the DBC file subjected to OTA upgrading by the terminal into a cloud database;
the method comprises the steps that a cloud database obtains CAN original messages and terminal basic information reported by a current terminal, and a DBC file corresponding to the current terminal is matched according to the terminal basic information;
analyzing the CAN original message by using the matched DBC file at the cloud end to obtain a specific value of each terminal signal;
storing the specific value of each terminal signal into the cloud database according to the EPS ID;
the specific implementation process of storing the DBC file of the OTA upgrade of the terminal into the cloud database comprises the following steps:
storing the DBC file;
reading and analyzing the DBC file to obtain each terminal signal and the parameter attribute thereof;
setting an EPS ID for each terminal signal, and generating a mapping table of the terminal signal and the EPS ID;
storing each terminal signal and parameter attribute thereof and corresponding EPS ID into a database;
the specific implementation process of analyzing the CAN original message by using the matched DBC file is as follows:
analyzing the matched DBC file to obtain each terminal signal and parameter attribute and EPS ID thereof;
analyzing the CAN original message according to the terminal signal and the parameter attribute thereof to obtain a specific value of the terminal signal, wherein the specific implementation process comprises the following steps:
retrieving the CAN original message according to the signal ID of the terminal signal to retrieve a target data frame;
and analyzing and calculating the target data frame according to the signal analysis bit, the offset and the gain of the terminal signal to obtain a specific value of the terminal signal.
2. The DBC dynamic adaptive update method of claim 1, wherein the parameter attribute of each of the termination signals includes a signal name, a signal ID, a signal resolution bit, an offset, and a gain.
3. The DBC dynamic adaptive updating method according to any one of claims 1-2, wherein the DBC file for OTA upgrade of the terminal is generated according to a terminal CAN bus protocol provided by a terminal manufacturer.
4. The DBC dynamic adaptive update method according to claim 1, further comprising obtaining an EPS ID input by a client, and querying and feeding back a specific value of a terminal signal according to the EPS ID.
5. An apparatus for dynamic adaptive update of DBC, the apparatus comprising:
the storage unit is configured to store the DBC file of OTA upgrading of the terminal and the specific value of each terminal signal obtained by the EPS ID storage and analysis unit;
specifically, a DBC file for OTA upgrading of the terminal is stored in a cloud database, and the implementation process comprises the following steps:
storing the DBC file;
reading and analyzing the DBC file to obtain each terminal signal and the parameter attribute thereof;
setting an EPS ID for each terminal signal, and generating a mapping table of the terminal signal and the EPS ID;
storing each terminal signal, the parameter attribute thereof and the corresponding EPS ID into a database;
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is configured to acquire a CAN original message and terminal basic information reported by a current terminal;
the matching unit is configured to match a DBC file corresponding to the current terminal according to the basic terminal information;
the analysis unit is configured to analyze the CAN original message by using the matched DBC file to obtain a specific value of each terminal signal;
the specific implementation process of analyzing the CAN original message by using the matched DBC file is as follows:
analyzing the matched DBC file to obtain each terminal signal and parameter attribute and EPS ID thereof;
analyzing the CAN original message according to the terminal signal and the parameter attribute thereof to obtain a specific value of the terminal signal, wherein the specific implementation process comprises the following steps:
retrieving the CAN original message according to the signal ID of the terminal signal to retrieve a target data frame;
analyzing and calculating the target data frame according to the signal analysis bit, the offset and the gain of the terminal signal to obtain a specific value of the terminal signal;
the storage unit, the acquisition unit, the matching unit and the analysis unit are located at the cloud.
6. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, cause the at least one processor to perform the DBC dynamic adaptive update method according to any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium storing computer instructions which, when executed by at least one processor, cause the at least one processor to perform the DBC dynamic adaptive update method of any one of claims 1 to 4.
CN202211442256.9A 2022-11-17 2022-11-17 DBC dynamic self-adaptive updating method and device, electronic equipment and storage medium Active CN115495133B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211442256.9A CN115495133B (en) 2022-11-17 2022-11-17 DBC dynamic self-adaptive updating method and device, electronic equipment and storage medium
PCT/CN2023/130074 WO2024104217A1 (en) 2022-11-17 2023-11-07 Dbc dynamic adaptive updating method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211442256.9A CN115495133B (en) 2022-11-17 2022-11-17 DBC dynamic self-adaptive updating method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115495133A CN115495133A (en) 2022-12-20
CN115495133B true CN115495133B (en) 2023-03-21

Family

ID=85116077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211442256.9A Active CN115495133B (en) 2022-11-17 2022-11-17 DBC dynamic self-adaptive updating method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN115495133B (en)
WO (1) WO2024104217A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495133B (en) * 2022-11-17 2023-03-21 达芬骑动力科技(北京)有限公司 DBC dynamic self-adaptive updating method and device, electronic equipment and storage medium
CN116095072A (en) * 2023-02-01 2023-05-09 成都赛力斯科技有限公司 Communication matrix management method and device, electronic equipment and storage medium
CN116560697B (en) * 2023-07-06 2023-09-15 上海鉴智其迹科技有限公司 DBC database synchronization method, device, electronic equipment and readable storage medium
CN116847004B (en) * 2023-08-30 2023-11-17 江铃汽车股份有限公司 Analysis method, system and computer equipment for automobile CAN signals

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3441876A1 (en) * 2016-04-27 2019-02-13 Huawei Technologies Co., Ltd. Patch upgrade-based file processing method and device, terminal, and storage medium
CN112714134A (en) * 2021-01-19 2021-04-27 广州导远电子科技有限公司 Analysis method, adaptation method, device, equipment and medium of CAN message

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005733A1 (en) * 2006-06-29 2008-01-03 Balaji Ramachandran Method and apparatus for updating firmware and software
CN107465695A (en) * 2017-09-21 2017-12-12 扬州航盛科技有限公司 A kind of method and system based on dynamic data base updating CAN analytic parameters
CN110196715A (en) * 2019-06-25 2019-09-03 上海仪电汽车电子系统有限公司 A kind of code generating system and method
CN110489143B (en) * 2019-07-18 2023-10-13 南京依维柯汽车有限公司 FOTA firmware remote upgrading system and method on new energy automobile
CN112751810B (en) * 2019-10-31 2023-03-24 杭州海康汽车技术有限公司 CAN message analysis method, device and terminal
CN112799321B (en) * 2020-12-14 2022-02-01 东风汽车集团有限公司 DBC file rapid creating method following CAN bus communication protocol
CN113438211A (en) * 2021-06-07 2021-09-24 杭州鸿泉物联网技术股份有限公司 DBC format analysis and message analysis method, device, electronic equipment and medium
CN114390119A (en) * 2021-12-28 2022-04-22 杭州鸿泉物联网技术股份有限公司 Self-adaptive multi-vehicle-type CAN data automatic analysis method and system
CN115495133B (en) * 2022-11-17 2023-03-21 达芬骑动力科技(北京)有限公司 DBC dynamic self-adaptive updating method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3441876A1 (en) * 2016-04-27 2019-02-13 Huawei Technologies Co., Ltd. Patch upgrade-based file processing method and device, terminal, and storage medium
CN112714134A (en) * 2021-01-19 2021-04-27 广州导远电子科技有限公司 Analysis method, adaptation method, device, equipment and medium of CAN message

Also Published As

Publication number Publication date
WO2024104217A1 (en) 2024-05-23
CN115495133A (en) 2022-12-20

Similar Documents

Publication Publication Date Title
CN115495133B (en) DBC dynamic self-adaptive updating method and device, electronic equipment and storage medium
CN109299348B (en) Data query method and device, electronic equipment and storage medium
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN111782216A (en) Page generation method, server and storage medium
CN111125496A (en) Price query method, device and system
CN113076729B (en) Method and system for importing report, readable storage medium and electronic equipment
CN112084208A (en) Data visualization method and system, storage medium and electronic device
CN111611022A (en) Data processing method, device, equipment and system for applet application
CN112395253A (en) Index file generation method, terminal device, electronic device and medium
CN113886336A (en) Flow detection method, device, equipment and medium
CN112083709A (en) Vehicle diagnosis method, system, terminal device and storage medium
CN114691105A (en) Data processing method and device based on SOMEIP protocol under SOA architecture of whole vehicle
CN114090672A (en) Business data import and export method, system, computer equipment and medium
Nakamura et al. Proposal of web framework for ubiquitous sensor network and its trial application using NO2 sensor mounted on bicycle
CN111641690B (en) Session message processing method and device and electronic equipment
CN115167351A (en) Controller function updating method and system, vehicle and server
CN114422436A (en) Gateway, gateway control method, gateway control device, electronic equipment and storage medium
CN105205688A (en) Automobile information recommendation system
CN112333040A (en) Flow separation method and device, storage medium and computer equipment
CN115208960B (en) Protocol switching method and related equipment
CN111125147B (en) Extra-large set analysis method and device based on extended pre-calculation model and SQL function
CN111125264B (en) Extra-large set analysis method and device based on extended OLAP model
WO2021197327A1 (en) Signal processing method and related device
CN117909604A (en) Page rendering method and device and electronic equipment
CN113761408A (en) Page rendering method, electronic device and storage medium

Legal Events

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