Receiving CAN messages in the Qt application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Receiving CAN messages in the Qt application

2,117 Views
Philippe
Contributor I

Hi,

Does anybody know how to receive CAN messages in the Qt Creator application ?

Let me explain: in the demo program, when you want to increase the AC level you press a button that will trigger a property "fanIncrease" (or similar name). When this happens you call a C++ function in the C++ header file that will enable the QT Creator program to write a linux command on the linux console. This will send a message on the CAN bus (cansend can0 .....)

Now my question is how do you do the reverse operation ? When you want to receive CAN messages from the bus and send them as an input to the QT Creat app, how do you do ?

Thank you

Philippe

Tags (2)
0 Kudos
1 Reply

739 Views
MikeJin
Contributor I

See the Windows Qt IDE example, they use Qt as front end and C++ as partial backend. I would imagine that canset, cansend, canreceive are library function through Freescale C/C++ library. A Qt front end with C++ backend might utilize CAN communication on sebre board.

Mike

PSU EcoCAR2

0 Kudos