Serial Terminal Dissconnect on Pyboard reset.

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
LoRaTracker
Posts: 30
Joined: Sat Feb 25, 2017 8:24 am

Serial Terminal Dissconnect on Pyboard reset.

Post by LoRaTracker » Mon Dec 18, 2017 9:44 am

Is there a serial terminal that will not dissconnect the virtual USB serial port used by a Pyboard, when the board is reset ?

TeraTerm and Putty drop the connection to repl when you reset the Pyboard and need to be restarted.

I know you can redirect the repl to an external CP2102 type USB serial adapter with this in main.py;

Code: Select all

import pyb
uart = pyb.UART(2, 115200)
pyb.repl_uart(uart)
But is there a serial terminal application that avoides the need for this ?

Using Windows 7 and Windows 8.

SpotlightKid
Posts: 463
Joined: Wed Apr 08, 2015 5:19 am

Re: Serial Terminal Dissconnect on Pyboard reset.

Post by SpotlightKid » Mon Dec 18, 2017 12:09 pm

Try rshell (https://github.com/dhylands/rshell). I've never tested it under Windows though.

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: Serial Terminal Dissconnect on Pyboard reset.

Post by shaoziyang » Mon Dec 18, 2017 3:34 pm

When pyboard reset, USB port will disconnect from the computer, so virtual serial will be disconnect too.

LoRaTracker
Posts: 30
Joined: Sat Feb 25, 2017 8:24 am

Re: Serial Terminal Dissconnect on Pyboard reset.

Post by LoRaTracker » Mon Dec 18, 2017 4:10 pm

Rshell does not seem to work with Windows.

And yes the virtual serial will disconnect.

With Teraterm, you do not have to close the application, you can just select the serial port again (after a Pyboard reset) so it must be possible for an application to have a re-connect function, just wondering if anyone has done an applicaion to do it.

LoRaTracker
Posts: 30
Joined: Sat Feb 25, 2017 8:24 am

Re: Serial Terminal Dissconnect on Pyboard reset.

Post by LoRaTracker » Mon Dec 18, 2017 4:34 pm

Just found this, you can set up a custom user key to run a re-connect in Teraterm, described here;

http://www.thebackshed.com/forum/upload ... _reset.pdf

You can reset the Pyboard and press CTRL-F1 to reconnect to the repl.

Post Reply