CANopen/CAN总线,我需要什么,包括协议(OD?),以在PC终端和CAN设备模块之间进行通信
我有一个带 ECAN 的 dsPIC33,希望建立一个协议(使用 SDO如果可能的话)以这样的方式在终端软件和 dsPIC33 之间进行通信,我可以在 dsPIC33 和支持 IC 内执行诊断。
我不知道需要什么,那么什么是低成本的方法呢?我可以使用 CAN 转 USB 设备,但我不确定这是否可行。 CANUSB 内部的哪种协议封装基于 ASCII 的消息?
我可以使用什么硬件?它也可以用来监控CAN总线吗?我不想投资昂贵的设置,如 Vector 或类似的重量级解决方案。
I have a dsPIC33 with ECAN and wish to establish a protocol (using SDO if possible) in such way that it communicate between terminal software and dsPIC33 where I can perform diagnostics within dsPIC33 and supporting ICs.
I do not know what is required, so what is a low cost way of doing this? I could use a CAN-to-USB device, but I am unsure if this will work. What kind of protocol inside CANUSB wraps around the ASCII-based message?
What hardware can I use? Can it be used to monitor the CAN bus as well? I do not wish to invest in an expensive setup as in Vector or similar heavy-weight solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您购买 CAN 接口硬件时,它通常不包括与特定上层 CAN 协议(如 CANopen)配合使用的软件。它们通常附带一组 DLL 文件,允许您编写自定义 PC 应用程序以与您的硬件交互。
如果您不想购买任何第三方软件,那么您必须:
您可能需要查找该协议的开源实现是 CanFestival。
When you purchase CAN interface hardware, it does not typically include software to work with specific upper-level CAN protocols (like CANopen). They do usually come with a set of DLL files that allow you to write custom PC applications to interface with your hardware.
If you do not want to purchase any third-party software, then you must:
You may want to look for open-source implementations of the protocol. One such implementation is CanFestival. However, I have never used this library.
您可以从 DATALINK ENGINEERING 下载CANopen 开源项目,因为这似乎正是您所需要的。
You can download an open source project for CANopen from DATALINK ENGINEERING as this seems to be just what you need.