LOL, and I guess I should have delved deeper sooner ...
https://github.com/micropython/micropyt ... ole.py#L39So; what when it doesn't exist, as it seemingly doesn't ?
Added : It seems 'pyb_serial' has type 'serial.rfc2217.Serial' which doesn't have any '.fd'
Still adventuring ...
And "Yay!". Wrapping line 41 with 'try: ... except: pass' and -So, leaving that issue for MicroPython to fix properly, the task now is to find what the handshaking send-replies are. Seems that means digging into PySerial itself, or maybe remembering how to use WireShark.
I suspect the answer to your Discussion question will be - Dunno. We simply instantiate a PySerial RFC2217 object and it does all the rest. The source for that is here -
https://raw.githubusercontent.com/pyser ... rfc2217.py
I already had that, is what I used to work out what the Telnet commands were earlier. Couldn't spot where any delivery of acknowledgements was happening. Time to look closer.
https://github.com/micropython/micropyt ... ole.py#L39
Code:
def waitchar(self, pyb_serial): # TODO pyb_serial might not have fd select.select([self.infd, pyb_serial.fd], [], [])
Added : It seems 'pyb_serial' has type 'serial.rfc2217.Serial' which doesn't have any '.fd'
Still adventuring ...
And "Yay!". Wrapping line 41 with 'try: ... except: pass' and -
Code:
pi@Pi3B:~/pico_w/micropython/tools/mpremote $ mpremote connect rfc2217://192.168.0.130:2217Connected to MicroPython at rfc2217://192.168.0.130:2217Use Ctrl-] or Ctrl-x to exit this shell>>>MPY: soft rebootPicoPython 1.22.0-324 (0039) 2024-04-15; for Raspberry Pi Pico & Pico WType "help()" for more information.>>>
I suspect the answer to your Discussion question will be - Dunno. We simply instantiate a PySerial RFC2217 object and it does all the rest. The source for that is here -
https://raw.githubusercontent.com/pyser ... rfc2217.py
I already had that, is what I used to work out what the Telnet commands were earlier. Couldn't spot where any delivery of acknowledgements was happening. Time to look closer.
Statistics: Posted by hippy — Mon Apr 15, 2024 5:33 pm