>
Hi Jörn,
>
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.
Is it really based on ADPiCam, or just the vendor PiCAM SDK?
Mark
From: Jörn Dreyer <j.dreyer at hzdr.de>
Sent: Thursday, April 27, 2023 10:03 PM
To: tech-talk tech-talk <tech-talk at aps.anl.gov>
Cc: Mark Rivers <rivers at cars.uchicago.edu>
Subject: Re: Problem using ADPICam driver
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
|