epics-modules / dxp

EPICS support for digital x-ray spectroscopy electronics from X-ray Instrumentation Associates (XIA)
2 stars 3 forks source link

Some errors when using dxp-R6-1 module on ketek SDD detector #10

Open 1458861693 opened 11 months ago

1458861693 commented 11 months ago

There is some errors when using dxp-R6-1 module on ketek SDD detector,the following is the information of my environment. operating system : CentOS7 architecture : X86_64 iocBoot Directory : /home/xanes/softIOC/support/dxp-R6-1/iocBoot/iocMicroDXP When i start IOC,there are many errors as log.txt in attached files,i really want some help,Thanks. The attached files contain log.txt,st.cmd and START_IOC,log.txt is printed information by IOCShell. log.txt st.cmd.txt START_IOC.txt

1458861693 commented 8 months ago

@MarkRivers I don't modify handelSrc/Makefile. I downloaded zip file by browser. I will git clone dxp module from GitHub several days later, because the network of my computer doesn't work now. Thanks again.

MarkRivers commented 8 months ago

@1458861693 downloading zip file is OK as long as you don't modify anything. I am pretty sure your problem is that you passed the CFLAGS argument to make, You should not do that because it replaced all of the other flags we need to use.

1458861693 commented 8 months ago

@MarkRivers , I have tried using make simply to build dxp on CentOS7, but it errors. And the output information note me to use C99. But Just now I build dxp master branch on Ubuntu20.04, it's no problem. I will test again on CentOS7 tomorrow.

mirkoHZB commented 2 months ago

Hi folks, I came across this issue as I had the exact same problem with a KETEK AXAS-M1 on a Debian 11 running as a VirtualBox guest under a Windows host. Maybe this is a similar configuration on your site(s). Compiling the EPICS dxp module (and KETEK installation with udev-rules) worked just fine. But running the microdxp IOC resulted in the error messages as shown above. In addition every time I started the IOC a kernel message showed up:

dmesg 
usb 1-2: usbfs: process 2743 (dxpApp) did not claim interface 0 before use

The same kernel message and dxp_usb-error messages also appeared when starting a so-called xia_server for SPEC (certif) instrument control software, although this app runs fine and connects well to the KETEK on a "real" Debian on our instrument. Searching through the web brought me to your issue, but also to some VirtualBox forum post https://forums.virtualbox.org/viewtopic.php?t=68766. As a result, I changed the USB controller settings in VirtualBox from USB2 to USB3. Ét voilà: the xia_server and the EPICS dxp IOC work well. It seems that some guest OS do not implement well enough the USB 2.0 (EHCI). A change to USB 3.0 (xHCI) could therefore be an opportunity - it has helped me.