EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
<== Date ==> <== Thread ==>

Subject: Re: Simple CAN bus over ethernet interface
From: "Dmitry Yu. Bolkhovityanov via Tech-talk" <tech-talk at aps.anl.gov>
To: "Evans, Richard K. (GRC-H000)" <richard.k.evans at nasa.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 26 Sep 2024 12:06:46 +0700 (+07)
On Tue, 24 Sep 2024, Evans, Richard K. (GRC-H000) via Tech-talk wrote:

Hello,

We have a new project requirement to read status via CAN bus into EPICS. Anyone have any advice on what CAN bus I/O hardware for a PC to buy?

It depends on how you want to interface CAN from PC: PCI, PCIe, USB, ...

For PCI-express, CP602E from MOXA works well.

For PCI, either MOXA CP602U or AdLink PCI7841; however, we had several AdLinks died (probably because of statics or spikes), while no MOXAs suffered.

The main question is software:

1. Which OS?

I'm not an expert in Windows, but colleagues had successfully used both MOXAs and AdLinks with respective drivers from card manufacturers.

For Linux, SocketCAN is the way to go. AdLink, as many other PLX-based interfaces, is supported by Linux kernel since early 2010s; not sure about MOXA (stock kernel includes some strange PCI IDs for CP602*), but attached plx_pci driver works fine (the author, Pavel Cheblakov, had little time to push it into the kernel repository, thus we used to just compile our copy).

2. How do you plan to access CAN from EPICS? And that mainly depends on which communication protocol your CAN hardware employs: CANopen, DeviceNet, something proprietary/custom?


With best regards,
Dmitry

Attachment: plx_pci_moxa.tar.gz
Description: application/gzip


References:
Simple CAN bus over ethernet interface Evans, Richard K. (GRC-H000) via Tech-talk

Navigate by Date:
Prev: Re: Writing XML directly to area detector's NDAttributesFile PV Matthew Newville via Tech-talk
Next: p4p and numpy 2.0 Torsten Bögershausen via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
Navigate by Thread:
Prev: Re: Simple CAN bus over ethernet interface Florian Feldbauer via Tech-talk
Next: Re: Simple CAN bus over ethernet interface Götz Pfeiffer via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
ANJ, 27 Sep 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·