일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Windows11
- win32com
- python
- 파이썬
- 깃
- Android
- 문자열
- Outlook
- Windows10
- python3
- 안드로이드
- Excel
- pythongui
- 비주얼베이직
- 파이썬3
- 윈도우10
- 파이썬GUI
- 아웃룩
- 파워포인트
- windows
- VBA
- matlab
- office
- html
- git
- pandas
- 오피스
- 윈도우11
- 엑셀
- pyqt5
Appia의 IT세상
[Python]How to make CAN DBC module self-created, How to parse CAN DBC file. 본문
[Python]How to make CAN DBC module self-created, How to parse CAN DBC file.
Appia 2020. 11. 24. 00:26[Python]How to make CAN DBC module self-created, How to parse CAN DBC file.
This post will discuss how to control the DBC used by CAN communication, which occupies the largest area of the vehicle network, with Python.
In my case, I am Korean and have posted related posts in Korean. However, I'm going to give some scripts and related materials to the people we're working on recently, and I'm going to try to deal with them in English, thinking that people in other countries might need help.
First of all, I would like to discuss three areas:
1. CAN DBC Class
- In this class, the messages and signals used in the DBC are classed and made into internal variables for the related properties.
2. CAN DBC Loader from Excel
- In this part, we are going to write the CAN communication information in Excel for the CAN DBC Class.
3. CAN DBC Loader from DBC
- This part will be read from the DBC file and will be filled out for the parts called CAN DBC Class.
4. CAN DBC Write
- In this part we will discuss how to extract data from CAN DBC Loader from Excel in the form of a DBC file.
We are going to modify the basic properties so that they can be updated additionally.
Of course, although the CAN related module is already being provided by the module called Cantools, I think it's all the more meaningful to make it this way.
Cantools is also a very good module, but I think it's very valuable that the program beginners make their own. Therefore, we would like to minimize the assistance of external modules to implement the following features:
However, we will use the next module to control Excel.
win32com (Pywin32)
Let's upload related information one by one from the next post. If you have any questions or questions, please leave them in the comments and guest book.