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  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: Problem using ADPICam driver
From: Jörn Dreyer via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk tech-talk <tech-talk at aps.anl.gov>
Date: Fri, 28 Apr 2023 05:03:52 +0200
Hi Mark,

the other Software is a code that I wrote based on the ADPiCam driver for a 
system called Karabo developen at EuXFEL. I tested it on the same Linux 
system.

Regards,

Jörn

Am Donnerstag, 27. April 2023, 16:07:47 CEST schrieb Mark Rivers via Tech-
talk:
> Hi Jörn,
> 
> I have not used ADPICam before, so I am not sure what the problem is. I am
> using lots of PI cameras on Windows with ADLightField.
> > With another software that I have the camera works perfectly delivering
> > images.
> What is the other software that is working?  Is it running on the same Linux
> machine?
> 
> Mark
> 
> ________________________________
> From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Jörn Dreyer via
> Tech-talk <tech-talk at aps.anl.gov> Sent: Thursday, April 27, 2023 7:00 AM
> To: tech-talk tech-talk <tech-talk at aps.anl.gov>
> Subject: Problem using ADPICam driver
> 
> Hello,
> 
> I have a problem using a PrincetonInstruments PIXIS camera with ADPICam. My
> IOC hangs in the Line PICamConfig("PICAM", 20, 0x5000000, 2, 0x5000000).
> 
> The out put of strrace shows:
> 
> openat(AT_FDCWD, "/dev/bus/usb/001/004", O_RDWR|O_CLOEXEC) = 23
> ioctl(23, USBDEVFS_GET_CAPABILITIES, 0x5621d1320e8c) = 0
> ioctl(23, USBDEVFS_CLAIMINTERFACE, 0x7ffd05254f24) = 0
> timerfd_settime(13, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0},
> it_value={tv_sec=8721277, tv_nsec=456792680}}, NULL) = 0
> ioctl(23, USBDEVFS_SUBMITURB, 0x5621d130e4e0) = 0
> ioctl(23, USBDEVFS_SUBMITURB, 0x5621d13287e0) = 0
> read(12, "\1\0\0\0\0\0\0\0", 8)         = 8
> poll([{fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=23,
> events=POLLOUT}], 3, 60000) = 1 ([{fd=23, revents=POLLOUT}])
> ioctl(23, USBDEVFS_REAPURBNDELAY, 0x7ffd05254bb0) = 0
> ioctl(23, USBDEVFS_REAPURBNDELAY, 0x7ffd05254bb0) = -1 EAGAIN (Resource
> temporarily unavailable)
> 
> That tells me, that it finds the camera but has somehow problems to
> communicate with it. Looking with the debugger where it hags, reveals that
> this happens already in the call to Picam_InitializeLibrary().
> I have setup an udev rules file with the following content:
> 
> ATTRS{idVendor}=="0bd7", ATTRS{idProduct}=="a026", MODE="0666",
> GROUP="plugdev"
> 
> When I plugin the camera it gets detected by the system::
> [8720825.614808] usb 1-10: config 1 interface 0 altsetting 0 bulk endpoint
> 0x81 has invalid maxpacket 64
> [8720825.614811] usb 1-10: config 1 interface 0 altsetting 0 bulk endpoint
> 0x1 has invalid maxpacket 64
> [8720825.614978] usb 1-10: config 1 interface 0 altsetting 0 bulk endpoint
> 0x81 has invalid maxpacket 64
> [8720825.614980] usb 1-10: config 1 interface 0 altsetting 0 bulk endpoint
> 0x1 has invalid maxpacket 64
> [8720825.615137] usb 1-10: New USB device found, idVendor=0bd7,
> idProduct=a026, bcdDevice= 0.00
> [8720825.615139] usb 1-10: New USB device strings: Mfr=1, Product=2,
> SerialNumber=0
> [8720825.615140] usb 1-10: Product: PIXIS V3.6
> [8720825.615141] usb 1-10: Manufacturer: Princeton Instruments
> 
> 
> I tried with different USB ports, optical extender etc. With another
> software that I have the camera works perfectly delivering images. But
> EPICS somehow has a problem with the device. I am using areaDetector
> R3-12-1.
> 
> Any ideas whet could be causing this? It looks like some accessrights are
> not set properly, but I have no clue where.
> 
> Regards
> 
> Jörn
> 
> --
> Dr. Jörn Dreyer
> HIBEF DAQ + Controls
> Institut für Strahlenpysik
> Helmholtz - Zentrum Dresden - Rossendorf




Replies:
Re: Problem using ADPICam driver Mark Rivers via Tech-talk
References:
Problem using ADPICam driver Jörn Dreyer via Tech-talk
Re: Problem using ADPICam driver Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: EPICS 3.15.9 build system weird behaviour upon missing g++ Andrew Johnson via Tech-talk
Next: Job Opportunities: Controls Software Developers and DevOps Engineer, STFC ISIS Facility, Oxfordshire, UK Ivan Finch - STFC UKRI 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  <20232024 
Navigate by Thread:
Prev: Re: Problem using ADPICam driver Mark Rivers via Tech-talk
Next: Re: Problem using ADPICam driver Mark Rivers 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  <20232024 
ANJ, 28 Apr 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·