On Tue, 26 Sep 2017, Mark Webb-Johnson wrote:
Steve,
Should be the same. An unplug is an unplug, and we are definitely using genuine CP2102 chips.
Can you do a test:
ls -l /dev/tty.*
auge.local3> ls -l /dev/tty.* [edited] crw-rw-rw- 1 root wheel 18, 140 Sep 28 12:27 /dev/tty.SLAB_USBtoUART
make monitor (So you have an async console connection open to the board)
auge992> make monitor MONITOR --- WARNING: Serial ports accessed as /dev/tty.* will hang gdb if launched. --- Using /dev/cu.SLAB_USBtoUART instead... --- idf_monitor on /dev/cu.SLAB_USBtoUART 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- auge.local4> ls -l /dev/cu.* [edited] crw-rw-rw- 1 root wheel 18, 141 Sep 28 12:27 /dev/cu.SLAB_USBtoUART
Unplug the USB Watch the make monitor python error messages
Exception in thread Thread-2: Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/Users/casner/src/github/esp-idf/tools/idf_monitor.py", line 116, in _run_outer self.run() File "/Users/casner/src/github/esp-idf/tools/idf_monitor.py", line 192, in run data = self.serial.read(self.serial.in_waiting or 1) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/serial/serialposix.py", line 505, in read raise SerialException('read failed: %s' % (e,)) SerialException: read failed: [Errno 6] Device not configured
ls -l /dev/tty.* (And see if the tty.SLAB* file is still there - if it is, you have the problem)
Not there.
Plug back in the USB ls -l /dev/tty.*
auge.local7> ls -l /dev/tty.* crw-rw-rw- 1 root wheel 18, 142 Sep 28 12:32 /dev/tty.SLAB_USBtoUART
make monitor (And see if you can connect again)
auge.local8> ls -l /dev/cu.* crw-rw-rw- 1 root wheel 18, 143 Sep 28 12:32 /dev/cu.SLAB_USBtoUART
Maybe there is a difference between external HUBs and on-board USB ports?
What version of cp2102 driver are you running?
I think this is it (found in the release notes file): CP210x Macintosh OSX VCP Driver 4.x.14 - November 3, 2016 Is there a more direct way to look up driver versions? -- Steve