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  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: USB streaming device to linux/epics
From: "Pedersen, UK (Ulrik)" <[email protected]>
To: "epics" <[email protected]>
Date: Fri, 9 Jan 2009 09:25:43 -0000
Hi,

Instead of writing a new kernel driver I would probably use a generic
one for USB... There is a user space API for USB devices under Linux
that seems appropriate: libusb http://libusb.wiki.sourceforge.net/

It's been around for a while so there are plenty of examples around the
web (I think someone has even written python bindings for it!) Several
distributions ship it by default. 

If you just want to get your particular device up and running with EPICS
quickly you can write some device support, using libusb.

It would however be interesting to see if it's possible to use libusb to
write generic USB device support for asyn... That's probably not very
straight forward as USB is not quite as simple as RS232 or sockets...

Cheers,
Ulrik

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dirk Zimoch
Sent: 09 January 2009 08:37
To: Emmanuel Mayssat
Cc: epics
Subject: Re: USB streaming device to linux/epics

Hi Emmanuel,

I have only used USB/RS232 and USB/RS485 adapters. The P&P magic built
into the Linux kernel maps them automatically to /dev/ttyUSB* where they
can be used with asynDriver just like local serial devices.

For a custom USB device that is not automatically supported by Linux, I
would suggest to write a Linux kernel driver instead of an EPICS driver.
Have a look at http://www.linux-usb.org/

Dirk


Emmanuel Mayssat wrote:
> Hello again,
> 
> I am contemplating writing a low level linux driver to read a stream 
> of data coming for custom made device and on a USB2 port.
> This data will be fed to linux and then to epics.
> 
> Is anyone of you using epics with USB devices?
> Any pointers? Does asyn interface with usb ports readily?
> 
> Regards,
> --
> Emmanuel
> 
> 
> 
> 
> 
> 
> 

--
Dr. Dirk Zimoch
Paul Scherrer Institut, WBGB/006
5232 Villigen PSI, Switzerland
Phone +41 56 310 5182
<DIV><FONT size="1" color="gray">This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
</FONT></DIV> 
-- 
Scanned by iCritical.


References:
USB streaming device to linux/epics Emmanuel Mayssat
Re: USB streaming device to linux/epics Dirk Zimoch

Navigate by Date:
Prev: Re: USB streaming device to linux/epics Dirk Zimoch
Next: EPICS XOP for IGOR Pro Wang Xiaoqiang
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: USB streaming device to linux/epics Dirk Zimoch
Next: Re: USB streaming device to linux/epics J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·