Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
58c2c503
Commit
58c2c503
authored
Aug 11, 2023
by
Jos Verlinde
Committed by
Damien George
Sep 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/mpremote: Add support for rfc2217, serial over TCP.
Signed-off-by:
Jos Verlinde
<
jos_verlinde@hotmail.com
>
parent
88ecc78e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
docs/reference/mpremote.rst
docs/reference/mpremote.rst
+3
-1
tools/mpremote/mpremote/transport_serial.py
tools/mpremote/mpremote/transport_serial.py
+3
-1
No files found.
docs/reference/mpremote.rst
View file @
58c2c503
...
...
@@ -100,6 +100,8 @@ The full list of supported commands are:
command output)
- ``port:<path>``: connect to the device with the given path (the first column
from the ``connect list`` command output
- ``rfc2217://<host>:<port>``: connect to the device using serial over TCP
(e.g. a networked serial port based on RFC2217)
- any valid device name/path, to connect to that device
**Note:** Instead of using the ``connect`` command, there are several
...
...
@@ -109,7 +111,7 @@ The full list of supported commands are:
**Note:** The ``auto`` option will only detect USB serial ports, i.e. a serial
port that has an associated USB VID/PID (i.e. CDC/ACM or FTDI-style
devices). Other types of serial ports
devices). Other types of serial ports
will not be auto-detected.
.. _mpremote_command_disconnect:
...
...
tools/mpremote/mpremote/transport_serial.py
View file @
58c2c503
...
...
@@ -76,7 +76,9 @@ class SerialTransport(Transport):
delayed
=
False
for
attempt
in
range
(
wait
+
1
):
try
:
if
os
.
name
==
"nt"
:
if
device
.
startswith
(
"rfc2217://"
):
self
.
serial
=
serial
.
serial_for_url
(
device
,
**
serial_kwargs
)
elif
os
.
name
==
"nt"
:
self
.
serial
=
serial
.
Serial
(
**
serial_kwargs
)
self
.
serial
.
port
=
device
portinfo
=
list
(
serial
.
tools
.
list_ports
.
grep
(
device
))
# type: ignore
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment