Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5696

MicroPython • Re: Dynamic USB Devices

$
0
0

Code:

Welcome to minicom 2.7.1OPTIONS: I18nCompiled on Aug 13 2017, 15:25:34.Port /dev/ttyACM1, 16:50:32Press CTRL-A Z for help o+-----------------------------+                         |                             |                         |  Cannot open /dev/ttyACM1!  |>>> print("Hello")       |                             |Hello                    +-----------------------------+>>>
I pressed Ctrl-D and it seems to have hung, and I can no longer access my Pico. And won't be able to without shutting 'minicom' down.

The USB tear-down and re-enumeration has caused my PIco which was on '/dev/ttyACM1' to become '/dev/ttyACM0' because I unplugged the USB device which had initially created that '/dev/ttyACM0'.

It's a classic case of pulling the rug out from under your own feet. Windows appears to fare better because it allocates the same fixed COM port number to the device every time it's re-enumerated.

Statistics: Posted by hippy — Tue Mar 19, 2024 5:04 pm



Viewing all articles
Browse latest Browse all 5696

Trending Articles