Skip to content
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

Errors when attempting connect to board running aiorepl #30

Open
Josverl opened this issue Sep 9, 2024 · 3 comments · May be fixed by #47
Open

Errors when attempting connect to board running aiorepl #30

Josverl opened this issue Sep 9, 2024 · 3 comments · May be fixed by #47

Comments

@Josverl
Copy link

Josverl commented Sep 9, 2024

Describe the bug

Setup

To Reproduce
Steps to reproduce the behavior:

  1. Click on 'connect USB`
  2. Connect USB alternates between green/yellow icons
  3. after a minute or so , sometimes I get connection with the repl , other times I only get connection errors
  4. at that time multiple machine.reset() have been issued

Expected behavior

  • to connect to the repl as provided by aiorepl and the prompt --> be recognized as one of the standard prompts similar to >>>

Actual Screenshots / Logs

Terminal transcript

-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
--> Bleep , state: 0

-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
--> Bleep , state: 0

-->
-->
-->
--> import machine; machine.reset()

-->
-->
-->
--> Bleep , state: 0

-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
--> Bleep , state: 0

-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
MicroPython v1.23.0-1.g82f2d8332 on 2024-09-07; RP2040-Zero with RP2040
Type "help()" for more information.

MPY: soft reboot
Setting color to (76, 76, 76)
Setting color to (0, 0, 0)
Starting tasks...
Bleep , state: 0
Starting asyncio REPL...
-->
MicroPython v1.23.0-1.g82f2d8332 on 2024-09-07; RP2040-Zero with RP2040
Type "help()" for more information.

MPY: soft reboot
Setting color to (76, 76, 76)
Setting color to (0, 0, 0)
Starting tasks...
Bleep , state: 0
Starting asyncio REPL...
-->
MicroPython v1.23.0-1.g82f2d8332 on 2024-09-07; RP2040-Zero with RP2040
Type "help()" for more information.

MPY: soft reboot
Setting color to (76, 76, 76)
Setting color to (0, 0, 0)
Starting tasks...
Bleep , state: 0
Starting asyncio REPL...
-->
MicroPython v1.23.0-1.g82f2d8332 on 2024-09-07; RP2040-Zero with RP2040
Type "help()" for more information.

MPY: soft reboot
Setting color to (76, 76, 76)
Setting color to (0, 0, 0)
Starting tasks...
Bleep , state: 0
Starting asyncio REPL...
-->
MicroPython v1.23.0-1.g82f2d8332 on 2024-09-07; RP2040-Zero with RP2040
Type "help()" for more information.

MPY: soft reboot
Setting color to (76, 76, 76)
Setting color to (0, 0, 0)
Starting tasks...
Bleep , state: 0
Starting asyncio REPL...
-->
MicroPython v1.23.0-1.g82f2d8332 on 2024-09-07; RP2040-Zero with RP2040
Type "help()" for more information.

MPY: soft reboot
Setting color to (76, 76, 76)
Setting color to (0, 0, 0)
Starting tasks...
Bleep , state: 0
Starting asyncio REPL...
-->
MicroPython v1.23.0-1.g82f2d8332 on 2024-09-07; RP2040-Zero with RP2040
Type "help()" for more information.

MPY: soft reboot
Setting color to (76, 76, 76)
Setting color to (0, 0, 0)
Starting tasks...
Bleep , state: 0
Starting asyncio REPL...
-->
MicroPython v1.23.0-1.g82f2d8332 on 2024-09-07; RP2040-Zero with RP2040
Type "help()" for more information.

MPY: soft reboot
Setting color to (76, 76, 76)
Setting color to (0, 0, 0)
Starting tasks...
Bleep , state: 0
Starting asyncio REPL...
-->
MicroPython v1.23.0-1.g82f2d8332 on 2024-09-07; RP2040-Zero with RP2040
Type "help()" for more information.

MPY: soft reboot
Setting color to (76, 76, 76)
Setting color to (0, 0, 0)
Starting tasks...
Bleep , state: 0
Starting asyncio REPL...
-->
MicroPython v1.23.0-1.g82f2d8332 on 2024-09-07; RP2040-Zero with RP2040
Type "help()" for more information.

Additional context
I assume that viper-ise waits for detection of a system prompt , and that the expected value is limited to >>> and possibly ... .

  1. aiorepl uses a default prompt of -->

  2. In addition the micropython repl allows the prompts to be changed , so it would make sense to allow for prompts other than just >>> in advanced configuration

@vshymanskyy
Copy link
Owner

vshymanskyy commented Sep 10, 2024

Aiorepl is not supported.
I dont think its supported by mpremote either

@Josverl
Copy link
Author

Josverl commented Sep 11, 2024

With mpremote it just works, (Jimmo worked on both aiorepl and mpremote)
Both the repl and copy work while keeping an async app running.

@vshymanskyy
Copy link
Owner

Interesting, thanks for bringing it up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants