I am developing an application that will be a digital instrument cluster. I will be using socket-can and can-utils to get the live data. I am wondering if anyone has any backend c++ code completed that implements socket-can for this purpose. I will use QT Design studio for the front end and I can edit the backend code to fit my needs?
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello!
Developing a digital instrument cluster using SocketCAN and can-utils is indeed a solid approach for handling live data in automotive applications. While I don’t have specific C++ backend code to share, I can suggest some strategies to help you find and develop the code you need:
-
Explore Open Source Projects: Platforms like GitHub are excellent resources for finding projects that utilize SocketCAN. By searching for similar projects, you might discover code snippets or even complete implementations that you can adapt to your needs.
-
SocketCAN Documentation: Familiarize yourself with the SocketCAN documentation to understand how to set up and use SocketCAN effectively. This will guide you in configuring CAN interfaces and handling CAN messages in your application.
-
can-utils: This suite of utilities can serve as a practical reference for implementing CAN communication. Tools like
candump
andcansend
demonstrate how to interact with CAN networks and can be a good starting point for your backend development.
For the frontend, using Qt Design Studio is an excellent choice, as it allows you to create a visually appealing and responsive interface. You can integrate your backend C++ code with the Qt framework to ensure smooth communication between the frontend and backend components.
While you may not find a ready-made solution, these resources and strategies should help you build a functional and efficient digital instrument cluster. Engaging with developer communities can also provide further insights and potential code-sharing opportunities.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
Imx6 apalis & ixora career board & Qt SocketCan reading can frames.
Unfortunately, we don’t have any such code available. However, we would be glad to assist you with more specific questions. Please create a new ticket for each particular question.