-1

我了解到 volttron 支持 Raspberry Pi。在我的项目中,我将在树莓派中实现代理并使用 Pican2 (Canbus) 从 DSP 获取信息。那么是否可以在volttron的代理中写CANBUS?还是有其他方法?

请给我一些指导!!!

此致

4

1 回答 1

0

It is certainly possible to write an Agent that can communicate with the PiCAN2 as it does provide a Python interface via SocketCAN.

What you probably want to do is create an MasterDriver interface that uses the PiCAN2 Python interface. Ideally this interface would be configured in a similar manner as the other interfaces.

A high level explanation of interfaces is found here: http://volttron.readthedocs.io/en/develop/devguides/agent_development/Develop-Driver-Agent.html

More detailed documentation on interface creation is found here: http://volttron.readthedocs.io/en/develop/apidocs/services/MasterDriverAgent/master_driver.interfaces.html#creating-a-new-interface

于 2016-12-08T20:47:24.450 回答