Receiving CAN messages in the Qt application

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Receiving CAN messages in the Qt application

2,729 次查看
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

标记 (2)
0 项奖励
回复
1 回复

1,351 次查看
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 项奖励
回复