-
Notifications
You must be signed in to change notification settings - Fork 27
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
Issues connecting on a MAC toggling from Pico Connect to Pico Disconnected #199
Comments
Please try with cu. instead of tty. |
same: |
Wrote a simple program that prints "sleeping 1" every second. Used listen2pico.py to test python3 listen2pico.py /dev/cu.usbmodem12301 |
@markt22 Thanks for testing. So it seems like that for some reason on your system the micropython pyboard tool is unable to enter raw repl mode. It could help if you have a serial console program like minicom and connect to your board and press Ctrl+A and send me the output. |
MPY: soft reboot raw REPL; CTRL-B to exit |
if you first press ctrl-c (maybe twice) and then ctrl-a? |
ctrl-c ctrl-a, gets the 'raw REPL' response I downloaded pyboard from micropython tools, it only sends ctrl-a (assuming --no-soft-reset) which doesn't interrupt the running program, also because my program is printing out the serial port read_until never times out. |
ok, thanks for doing all of the testing. So maybe the lib doesn't stop the executing program correctly. |
is your wrapper using pyboard to provide the commincations layer? |
right. |
Now Added a virtual serial tap between the micropython board and wrapper codeThis chunk of data is out of the buffer it is just multiple instances of 'sleeping 1' This is the enter raw sequence from wrapper program Response from micropython board Which Translates to
From wrapper ctrl-d Response '> 2024/02/07 17:29:33.000717211 length=20 from=2349 to=2368 Back to running boot.py ###Looking at pyboard.py code
|
maybe its's somehow connected to this issue - #197 ? |
@markt22 Has this problem been solved for you after version 4.0? |
Output logs:
2024-02-06 12:54:04.792 [info] [Stubs] Installed stubs are already up to date!
2024-02-06 12:54:04.794 [info] [Activator] Connection to wrapper successfully established
2024-02-06 12:54:10.857 [error] [Activator] Pyboard exited with code 1
2024-02-06 12:55:48.722 [info] [Stubs] Installed stubs are already up to date!
2024-02-06 12:55:48.724 [info] [Activator] Connection to wrapper successfully established
2024-02-06 12:56:01.109 [error] [Activator] Pyboard exited with code 1
2024-02-06 13:13:48.287 [info] [Activator] Connection to wrapper successfully established
2024-02-06 13:14:00.665 [error] [Activator] Pyboard exited with code 1
Following earlier issues debugging
$ ./wrapper_macOS_arm64.bin -d /dev/tty.usbmodem112301
b'connected\r\n'
!!PyboardError!!
could not enter raw repl
Tried listen2pico.py, seems to be working
python3 listen2pico.py /dev/tty.usbmodem112301
Connecting to pyboard; press Ctrl-C to exit...
^C
Exiting, joining threads...
Done.
Which version of MicroPico are you using?
I've tried multiple versions latest is:
MicroPython v1.22.1 on 2024-01-05; Raspberry Pi Pico W with RP2040
Type "help()" for more information.
Support info
Copy this from the
Help -> Info/About -> Copy
(Code -> About Visual Studio Code -> Copy
on macOS) option in Visual Studio Code:The text was updated successfully, but these errors were encountered: