Article directory
- Open DBC file
- Define regular expressions to search for messages, signals, and signal groups
- Parse messages, parse signal groups, parse signals
- Output results
- Convert decimal to hexadecimal using hex()
- Find the data in the first column of excel1 in the second column of excel2, and write the corresponding third column data into the second column of excel1
- Import library
- pyqt production tool, import dbc, excel to generate another excel
- Package the program using pyinstaller
This article is a note on using python production tools and will be continuously updated...
Open DBC file
# 打开DBC文件
with open(r'C:\pythonProject\1_input\DBC\DBC_NAME.dbc',