1.3.4.1 Serial USB
Serial USB REPL (UART)
To use the REPL, a Pycom device must be connected to the host computer with a USB
connection either to an Expansion Board or to serial converter (a diagram of how to do this
can be found the the getting started page for your module).
In order to connect to the REPL over USB serial, there are multiple methods. Detailed below
are the explanations of how to do it in MacOS, Linux and Windows.
All platforms
By far the easiest way to access the USB UART REPL is via the our Pymakr plug-in for
Atom and Visual Studio Code. This adds a pane to the bottom of the editors that allows you
to directly access the REPL and any output from the device. Detailed instructions on how to
setup Pymakr can be found here.
macOS and Linux
To open a serial USB connection from macOS, any serial tool may be used; in this example,
the terminal tool
screen
Open a terminal instance and run the following commands:
$ screen /dev/tty.usbmodem* 115200
Upon exiting
screen
(i.e. an obscure combination for
be remapped for the
create
~/.screenrc
add bind
to the
q
This will allow screen to exited by pressing
On Linux,
picocom
address might also be listed as
Additionally, the elevated permissions to access the device (e.g. group uucp/dialout or
use
) may be required.
sudo
will be used.
, press
CTRL-A CTRL-\
like
\
ALT-SHIFT-7
command:
quit
command
exit
or
may be used instead of
minicom
/dev/ttyUSB01
. If the keyboard does not support the
is required), the key combination can
.
CTRL-A Q
screen
or a higher increment for
-key
\
. The usb serial
.
ttyUSB
79
Need help?
Do you have a question about the WiPy 3.0 and is the answer not in the manual?
Questions and answers