Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. CAN bus and .Net

CAN bus and .Net

Scheduled Pinned Locked Moved The Lounge
csharphelp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Ger Hayden
    wrote on last edited by
    #1

    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

    1 J D 3 Replies Last reply
    0
    • G Ger Hayden

      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

      1 Offline
      1 Offline
      11917640 Member
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • G Ger Hayden

        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

        J Offline
        J Offline
        Joan M
        wrote on last edited by
        #3

        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

        https://www.robotecnik.com freelance robots, PLC and CNC programmer.

        G 1 Reply Last reply
        0
        • J Joan M

          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

          G Offline
          G Offline
          Ger Hayden
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • G Ger Hayden

            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

            D Offline
            D Offline
            den2k88
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups