-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iocAmptek #36
Comments
You run the IOC as follows:
If you EPICS_HOST_ARCH is not linux-x86_64 then replace that with the correct path. |
@MarkRivers interface broadcast address 10.50.10.255:0 2023/06/30 23:38:37.591 mcaTest:Amptek1:InputPolarity devAsynInt32::processCallbackOutput process write error |
The problem is that it is sending a broadcast message to the correct subnet, 10.50.10.255, but it does not appear to be receiving a response from the module.
Here are some questions:
|
@MarkRivers |
@MarkRivers I connected to an amptek device, but the port shows 3040, I show the port in the vendor software is 10001, I don't know if this is correct, here is the result of my st.cmd run, I don't know if it is right, what else I need to do. ############################################################################ interface broadcast address 10.50.11.255:0 2023/07/02 16:54:36.009 mcaTest:Amptek1:InputPolarity devAsynInt32::processCallbackOutput process write error |
What did you change so that it found the Amptek device? Previously it was not finding any Amptek devices. I think the driver uses port 3040 for broadcast messages to find the modules on the network, and then uses port 10001 for normal UDP communication. The driver sends UDP messages to port 10001 in this line: It sends broadcast messages to port 3040 here: mca/mcaApp/AmptekSrc/DppSocket.cpp Line 140 in 0c3e8b7
Here there is a commented out line for port 3040, and instead it gets the port dynamically: mca/mcaApp/AmptekSrc/DppSocket.cpp Line 207 in 0c3e8b7
It uses port 3040 to read the response from NetFinder messages here: mca/mcaApp/AmptekSrc/DppSocket.cpp Line 231 in 0c3e8b7
Please try power-cycling the module. Make sure you are not running the vendor software at the same time you are running the EPICS IOC. You must wait at least 20 seconds after closing the IOC before opening it again. |
@MarkRivers 2023/07/02 16:54:36.009 mcaTest:Amptek1:InputPolarity devAsynInt32::processCallbackOutput process write error save_restore:readReqFile: unable to open file mca_settings.req. Exiting. |
Another possibility is a firewall. Are you running the vendor software on Linux or Windows? If it is on Linux, is it running on the same machine as the IOC? I would suggest disabling the Linux firewall and seeing if the IOC can then connect to the device. |
@MarkRivers |
What was the problem? |
@MarkRivers Yours sincerely, |
Dear,
How this IOC module should work?
I run the /mca/iocBoot/iocAmptek/st.cmd file nothing happend
[guest@localhost iocAmptek]$ ./st.cmd
[guest@localhost iocAmptek]$
I have compiled successfully, and successfully communicated with the X-123SDD hardware device, but I don't know how to run ioc.
Your sincerely
Kangwen
The text was updated successfully, but these errors were encountered: