-
Notifications
You must be signed in to change notification settings - Fork 1
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
Hang when attempting to message a PR670 under Linux #1
Comments
Yes, I can verify that the calls work fine for both devices (but I've never used them from ubuntu). My memory of USB devices on ubuntu was that you have this nasty business of having to arrange permissions so you can write to the device. Did you go through that? |
If you are successfully detecting the device as a serial device then drivers shouldn't be necessary |
Ok, it looks like this was indeed a permissions problem on Ubuntu. Running the It may be worth checking out what Mario is doing in that script and porting something similar to PsychoPy, or at least probing if the user has sufficient permissions. If I were to look into porting this over:
|
A simple, hacky solution would be to make people set up their hardware with PTB under Octave first. Then we completely rely on Mario, and also get changes he adopts. I'm not sure if that's super cheeky, though. e.g. after installing psychopy on linux, a message says: Please install ptb3-octave from the neurodebian distro, then
|
I'm not a fan of requiring users to install octave and PTB just for the sake of setting up USB permissions. |
I'm running the current psychopy dev version (v 1.90.0) under Ubuntu Linux 16.04.
I'm trying to run a calibration using a PR670 spectroradiometer. Running anything in monitor center causes the app to hang (greys out; requires force quit). This also happens under the current Standalone App (v 1.85.3).
I've managed to trace the hang to line 391 of /hardware/pr.py (here). Basically, on my system, I connect to the device via serial port just fine, but the first time a message is sent (self.sendMessage) the whole thing hangs. In this case it's specifically on the "P" of "PHOTO" in "Sending command 'PHOTO' to /dev/ttyACM0". Unfortunately this hangs PyCharm's debugger, so I haven't been able to get more specific information about what's going wrong.
/dev/ttyACM0
does indeed correspond to the PR670 (via/dev/serial/by-path/
).Does anyone have any suggestions?
The text was updated successfully, but these errors were encountered: