Indeed. As you have found, most 'over serial' interaction, via 'mpremote', 'ampy', 'rshell', etc, is done by sending a program which delivers the result you want. You can leverage that for your own means -So, apparently, RawREPL doesn't exist on Pico and file manipulations are as dumb as a pile of bricks.
Code:
pi@Pi3B:~/pico/micropython/ports/picopython $ mptool identifyDevice : Pico W board with 2 MB Flash - Serial number E66141040323702FRunning : picopythonVersion : 1.22.0-60 (0009) 2024-01-23 09:03:16 (GNU 7.3.1 MinSizeRel)Created : Jan 23 2024 using Pico SDK 1.5.1USB Info : Not availablePioAsm is : Stock 'rp2' PIO AssemblerDisk Size : 868,352 bytes, 848 KB, 0.8 MBDisk Used : 16,384 bytes, 16 KB 1.9%Disk Free : 851,968 bytes, 832 KB, 0.8 MB 98.1%Disk Addr : 0x1012C000 to 0x101FFFFFSafe Area : 0x1012B000 to 0x1012BFFF (4KB)Code Size : 1,228,800 bytes, 1,200 KB, 1.2 MBCode Used : 942,052 bytes, 919 KB, 0.9 MB 76.7%Code Free : 286,748 bytes, 280 KB, 0.3 MB 23.3%Mem Size : 160,320 bytes, 156 KB, 0.2 MBMem Used : 56,160 bytes, 54 KB, 0.1 MB 35.0%Mem Free : 104,160 bytes, 101 KB, 0.1 MB 65.0%Max 8-bit : One 320 x 240 (HVGA) or 5 of 160 x 120 (QVGA)Max 4-bit : Two 320 x 240 (HVGA) or 10 of 160 x 120 (QVGA)pi@Pi3B:~/pico/micropython/ports/picopython $
Statistics: Posted by hippy — Wed Jan 24, 2024 12:11 pm