ENCODING AND DECODING CONTROLLER AREA NETWORK FRAMES WITH THE USE OF THE CAN DATABASE

2023;
: pp.61-66
1
Lviv Polytechnic National University, Ukraine
2
Lviv Polytechnic National University, Ukraine
3
Lviv Polytechnic National University
4
Lviv Polytechnic National University, Ukraine

The article examines the features of building a Controller Area Network (CAN) in the automotive industry. The
main steps for encoding and decoding physical values in CAN and CAN FD (CAN with flexible data rate) frames are provided.
The syntax of messages and signals in CAN DBC has been analyzed. An example of a DBC file that can be used to encode and
decode the speed and engine speed of a truck is reviewed. Based on the Linux operating system and the python programming
language, an experimental scheme of a virtual controller area network was created, which encodes data on one node and decodes
data on the other using CAN DBC.

[1] L. Görne, H. Reuss, A. Krätschmer, R. Sauerwald. ”Smart data preprocessing method for remote vehicle diagnostics to increase data compression efficiency”. Automotive
and Engine Technology, no. 7, 2022, pp. 307–316. DOI: https://doi.org/10.1007/s41104-022-00113-9
[2] M. Di Natale, H. Zeng, P. Giusto, A. Ghosal, Understanding and Using the Controller Area Network Communication Protocol. – New York: Springer, 2012. [Online]. Available: https://books.google.com.py/books?id=rO-EfaSZbMAC&printsec=copyright#v=o...
[3] A. Ziebinski, R. Cupek, M. Drewniak. “Ethernet-based test stand for a CAN network“.AIP Conf. Proc. 2017, 1906, 120005; DOI: https://doi.org/10.1063/1.5012397
[4] A Mutter. “CAN XL error detection capabilities”. CAN Newsletter no. 2, 2020, pp. 4–12. https://copperhilltech.com/content/CiA%20CAN%20Newsletter%20-%20
CAN%20XL%20error%20detection%20capabilities.pdf
[5] Magnus Hell. The physical layer in the CAN XL world, iCC 2021 (international CAN conference). DOI:10.13140/RG.2.2.23239.01448

[6] Basics of the CAN Protocol, 2022. [Online]. Available:https://www.keyence.com/ss/products/daq/lab/candata/protocol.jsp
[7] International standard ISO 11898-1. Road vehicles –Controller area network (CAN). Part 1: Data link layer and physical signaling, 2022. [Online]. Available:
https://www.sis.se/api/document/preview/919965/

[8] International standard ISO 11898-2. Road vehicles –Controller area network (CAN). Part 2: High-speed medium
access unit, 2022. [Online]. Available:https://www.sis.se/api/document/preview/921358/
[9] H. Zeltwanger, "CAN FD Network Design Hints and Recommendations," SAE Int. J. Passeng. Cars – Electron. Electr. Syst. 9(1):89-92, 2016, DOI: https://doi.org/10.4271/2016-01-0060.
[10] Introduction to the Local Interconnect Network (LIN) Bus, 2022. [Online]. Available: https://www.ni.com/enus/innovations/white-papers/09/ introduction-to-thelocal-interconnect-network--lin--bus.html
[11] Automotive Ethernet: The Future of In-Vehicle Networking, 2022. [Online]. Available: https://blogs.keysight. com/blogs/tech/sim-des.entry.html/2021/06/10/ automotive_ethernet-E6FB.html
[12] DBC Introduction, Open Vehicles, 2020. [Online].Available: https://docs.openvehicles.com
[13] W Vass, A Comprehensible Guide to J1939. Copperhill Technologies Corporation, 2008.
[14] Understanding CAN DBC, Influx Technology, 2021. [Online]. Available: https://www.influxtechnology.com/post/understanding-can-dbc
[15] An Introduction to J1939 and DBC files, Bryan Hennessy, 2019. [Online]. Available: https://www.kvaser.com/developer-blog/an-introduction-j1939-anddbc-files/
[16] Python-can library documentation, 2022. [Online].Available: https://python-can.readthedocs.io/en/master/

[17] Wireshark network protocol analyzer, 2022. [Online].Available: https://www.wireshark.org/