CAN bus and .Net
-
Could any of you recommend a good library and examples to interface CAN with .Net - so far Google is kicking up Kvaser and Pcan, but I suspect there is better out there. Ideally I would like to be able to troubleshoot boards
Ger
-
Could any of you recommend a good library and examples to interface CAN with .Net - so far Google is kicking up Kvaser and Pcan, but I suspect there is better out there. Ideally I would like to be able to troubleshoot boards
Ger
First you need to find device which may be connected to CAN bus. Search for "USB to CAN bus converter". Such devices may have different programming interfaces - in C/C++, maybe .NET, device driver may implement some communication protocol using virtual serial port. For example, if serial port is available, you can talk with another devices using .NET SerialPort class.
-
Could any of you recommend a good library and examples to interface CAN with .Net - so far Google is kicking up Kvaser and Pcan, but I suspect there is better out there. Ideally I would like to be able to troubleshoot boards
Ger
Never done it, google show a few results, but not used them, one of those: https://www.datalink.se/[^] Usually I get this from my PLC and given I usually use Beckhoff devices, I can interface any communication, variable... from the ADS protocol (which is natively available from the PC as a DLL, OCX, ...), that, of course gives me access also to CANOpen if that is on the machine. I am super curious about this now... could you give more details? or share the final decision when you have it?
www.robotecnik.com[^] - robots, CNC and PLC programming
-
Never done it, google show a few results, but not used them, one of those: https://www.datalink.se/[^] Usually I get this from my PLC and given I usually use Beckhoff devices, I can interface any communication, variable... from the ADS protocol (which is natively available from the PC as a DLL, OCX, ...), that, of course gives me access also to CANOpen if that is on the machine. I am super curious about this now... could you give more details? or share the final decision when you have it?
www.robotecnik.com[^] - robots, CNC and PLC programming
Hi Joan, Its for my Model Railway. I'm also waiting to hear from my colleagues in MERG on this. I already have the CANUSB board and a couple of modules that are not doing their thing. I want to be able to at least monitor them and maybe even dictate to them as I learn more.
Ger
-
Could any of you recommend a good library and examples to interface CAN with .Net - so far Google is kicking up Kvaser and Pcan, but I suspect there is better out there. Ideally I would like to be able to troubleshoot boards
Ger
Ger Hayden wrote:
Kvaser
Ger Hayden wrote:
there is better out there
Yes, but it costs several thousand dollars and you don't want to end in the V***or business model, trust me. Pcap is the cheaper one and the one I would go for home projects, Kvaser has the advantage of being actually used by a sizeable (as far as I know 10%, which in a otherwise monopolistic environment is a lot) amount of OEMs including Ferrari. There should also be some free native library, with a few pinvoke you should be able to use them easily. For troubleshooting I would go to suites designed for that, and Kvaser has one (again, you don't want CAN***zer unless you want to spend thousand of dollars and be tied for life to Vek***).
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X