Busy day yesterday. Missing REPL on EV3 #2310
Replies: 3 comments 2 replies
-
|
This was intentional. The stdio is no longer connected to the serial debug port. The change was made in pybricks/pybricks-micropython@e6ead10. |
Beta Was this translation helpful? Give feedback.
-
|
I'm doing my current testing using this script (which runs on your PC) import sys
import termios
import threading
import tty
import usb.core
dev = usb.core.find(idVendor=0x0694, idProduct=0x0005)
dev.set_configuration()
dev.write(1, b"\x01\x01")
def rxthread():
while True:
rx = dev.read(0x81, 512, -1)
if len(rx) >= 2:
if rx[0] == 2 and rx[1] == 1:
rx = bytes(rx[2:])
sys.stdout.buffer.write(rx)
sys.stdout.buffer.flush()
def txthread():
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
tty.setraw(sys.stdin.fileno())
while True:
tx = sys.stdin.buffer.read(1)
dev.write(1, b"\x02\x06" + tx)
finally:
termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
rxt = threading.Thread(target=rxthread)
rxt.start()
txt = threading.Thread(target=txthread)
txt.start()This should probably be added into pybricksdev somehow... |
Beta Was this translation helpful? Give feedback.
-
|
Yesterday did a pip install of github/pybricks/pybricksdev master repo, that did not work with yesterdays ev3 firmware. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So many changes committed yesterday, that I do not know to which PR to add this.
Read them all, but only understand 0.5% of it.
Flashed
ev3-firmware-build-4114-gitdfec425b.zipand connected USB <-> port-S1 as usual.I see the EV3 boot:
But no longer an active REPL.
The program runs, but nothing on the serial port.
A small hint might help 😄
Beta Was this translation helpful? Give feedback.
All reactions