- #Mac not detecting usb serial mac os#
- #Mac not detecting usb serial driver#
- #Mac not detecting usb serial code#
- #Mac not detecting usb serial Pc#
We will explore different strategies that will help when some of theįirst of all, some definitions: UnderstandingĪll files accessible in a Unix system are arranged in one big tree, I wonder if I should start a new thread, as this has strayed from the original topic.This is a small guide to detect a newly attached device to an USB port
(The two lines starting ‘’ also came up for the Coder program that worked.) RuntimeError: Error starting ioHub server: ioHub startup timed out. Raise RuntimeError(“Error starting ioHub server: %s”%(self.iohub_status)) Logged in on the main display of your Mac.Ĭlosing remaining open files:/Users/***/Desktop/chess PsychoPy/pstbox.hdf5…doneįile “/Users/***/Desktop/chess PsychoPy/chess2_lastrun.py”, line 105, inįile “/private/var/folders/p5/xl0d80j54qnc61x83h5j997c0000gn/T/AppTranslocation/B30443F7-B9CB-4706-AADF-BE9D7EAE8967/d/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/client/ init.py”, line 1504, in launchHubServerįile “/private/var/folders/p5/xl0d80j54qnc61x83h5j997c0000gn/T/AppTranslocation/B30443F7-B9CB-4706-AADF-BE9D7EAE8967/d/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/client/ init.py”, line 287, in init Please run with a Framework build of python, and only when you are 13:41:50.847 python ApplePersistenceIgnoreState: Existing state will not be touched. 13:41:38.608 python ApplePersistenceIgnoreState: Existing state will not be touched. Pyo version 0.8.0 (uses single precision) The whole error message reads: Running: /Users/***/Desktop/chess PsychoPy/chess2_lastrun.py
The problem seems to be caused by a combination of Mac + Builder + iohub.
#Mac not detecting usb serial Pc#
To be clear: my Builder program runs fine on a PC and a Builder program that doesn’t used iohub runs on the Mac.
#Mac not detecting usb serial code#
I have copied the code from the pstbox demo, up to this point and a little bit beyond (to where some lamps are switched on to test that they work), and pasted it into a clean Coder program and a clean Builder program (in ‘Begin Experiment’): the Coder program works and the Builder program does not. The problem appears to be with Builder, and not with my code. Unfortunately, the program that I wrote in Builder still does not work, and gives the same error message as before (‘Error starting ioHub server’, raised when the program reaches the line ‘io = launchHubServer(**iohubkwargs)’.
The iohub pstbox demo program for Coder ( ) now runs on the Mac when I change the line ‘SERIAL_PORT = ‘COM4’ to ‘SERIAL_PORT = ‘\dev\tty.usbserial’.
#Mac not detecting usb serial driver#
I hadn’t tried installing a driver on the Mac, as this hadn’t been necessary on a PC, but installing the driver that you recommended worked! The device now comes up when I type ‘ls \dev\tty*’ in the Terminal, and is listed as tty.usbserial.
#Mac not detecting usb serial mac os#
I also tried plugging and unplugging a USB flash drive to see whether this would make a difference to the list of /dev/tty entries, and it failed to do so, despite the fact that the Mac was able to view the contents of the flash drive when it was plugged in.ĭoes this make any sense to you? By the way, the Mac OS is v10.13.3, not v10.16 as I said previously. I know that the adapter is being detected and recognised by the Mac, because it shows up in About this Mac > System Report > USB with the correct product details and a location ID that is specific to the USB port used (e.g. I opened the terminal window and typed ‘ls /dev/ ’ and this brought up a lot of /dev/tty entries, but the list of entries did not change when I plugged and unplugged the USB-to-serial adapter, re-typing ‘ls /dev/’ each time. Unfortunately, I’ve been unable to identify the name of the port. I’ve only just had a chance to follow your advice, because of the Easter holiday period.