It works great. Thanks very much.dhylands wrote: ↑Sat Jan 30, 2021 1:01 amI have a version of rshell that works for me (at least better than the released version). It can be found on the pico branch of https://github.com/dhylands/rshell
If you checkout the git repository you can use the ./r.py script to run rshell from your local github tree. The changes I made are here:
https://github.com/dhylands/rshell/comm ... 5243f50589
and there is also a change here to auto recognize the Pico for connecting:
https://github.com/dhylands/rshell/comm ... b22b25d4d3
and I've filed an issue in micropython repo:
https://github.com/micropython/micropython/issues/6816
rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
-
- Posts: 7
- Joined: Fri Feb 14, 2020 12:10 am
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Thank you Dave for your advice. I downloaded rshell from the pico branch from your Github site. I found where the rshell package lives on my Windows 10 PC and I replaced the original rshell folder with your new updated rshell. I repeated the exercise of trying to copy a reasonable sized micropython file (5KB) from my Windows 10 PC to the Raspberry Pi Pico dev board and it worked!!!dhylands wrote: ↑Sat Jan 30, 2021 1:01 amI have a version of rshell that works for me (at least better than the released version). It can be found on the pico branch of https://github.com/dhylands/rshell
If you checkout the git repository you can use the ./r.py script to run rshell from your local github tree. The changes I made are here:
https://github.com/dhylands/rshell/comm ... 5243f50589
and there is also a change here to auto recognize the Pico for connecting:
https://github.com/dhylands/rshell/comm ... b22b25d4d3
and I've filed an issue in micropython repo:
https://github.com/micropython/micropython/issues/6816
Thank you for all your help.
Regards Frank
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
+1dhylands wrote: ↑Sat Jan 30, 2021 1:01 amI have a version of rshell that works for me (at least better than the released version). It can be found on the pico branch of https://github.com/dhylands/rshell
rshell works with the pico
Thank you very much
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
+1
I was able to use rshell on Windows with the Pico using the same trick than @fmentiplay to make that change permanent.
I am looking forward to seeing someone figure out if it is a problem with flow control thus allowing rshell to work with the Pico without the current tweak.
I also tried to use mpr on Windows but without success. Maybe @Roberthh knows if mpr works on Windows as he contributed to its code with some improvements related to Windows?
I was able to use rshell on Windows with the Pico using the same trick than @fmentiplay to make that change permanent.
I am looking forward to seeing someone figure out if it is a problem with flow control thus allowing rshell to work with the Pico without the current tweak.
I also tried to use mpr on Windows but without success. Maybe @Roberthh knows if mpr works on Windows as he contributed to its code with some improvements related to Windows?
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
As far as I recall I did not do anything special. It just worked. I can try again later today day. I use Windows only rarely, just for comparison. Most of the time I'm on Linux.
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Ohh thanks that would be nice.
Most of the time I use wsl but as recently I switched to wsl 2, I just figured out that it doesn't support serial coms yet.
I might switch back to wsl 1 if I cannot make mpr work on Windows.
Most of the time I use wsl but as recently I switched to wsl 2, I just figured out that it doesn't support serial coms yet.
I might switch back to wsl 1 if I cannot make mpr work on Windows.
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
I just tested it with Window 10 and it just works. I can open repl, I can copy files in and out. Example
python mpr.py connect COM6 repl # open repl. You may have to push Ctrl-B to get it
python mpr.py connect COM6 ls # list files
python mpr.py connect COM6 cp sample.py :sample.py # copy file to the device
python mpr.py connect COM6 cp :sample.py sample.py # copy file from the device
python mpr.py connect COM6 mount . # mount the local directory of the PC under /remote on the board and enter repl.
Here the device is attached to COM6. The device name is case sensitive, and you have to specify the right one. There are shortcuts in mpr.py for device names. So you can make your life easier.
Once in repl, you can push Ctrl-D to make a warm start without affecting the connection.
On my windows 10 I have set the terminal window to support VT100 commands. See: https://stackoverflow.com/questions/516 ... t100-codes
python mpr.py connect COM6 repl # open repl. You may have to push Ctrl-B to get it
python mpr.py connect COM6 ls # list files
python mpr.py connect COM6 cp sample.py :sample.py # copy file to the device
python mpr.py connect COM6 cp :sample.py sample.py # copy file from the device
python mpr.py connect COM6 mount . # mount the local directory of the PC under /remote on the board and enter repl.
Here the device is attached to COM6. The device name is case sensitive, and you have to specify the right one. There are shortcuts in mpr.py for device names. So you can make your life easier.
Once in repl, you can push Ctrl-D to make a warm start without affecting the connection.
On my windows 10 I have set the terminal window to support VT100 commands. See: https://stackoverflow.com/questions/516 ... t100-codes
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
Thanks @Roberthh for all those explanations: it is the perfect little tutorial I was looking for!!
It works great indeed! Especially after setting the terminal window to support VT100 commands thanks to your link.
A problem I have with my french keyboard though is the impossibility to type `Ctrl-]` as `]` is obtained by pressing `Ctrl+Alt+)`, but this is not related to mpr.
It works great indeed! Especially after setting the terminal window to support VT100 commands thanks to your link.
A problem I have with my french keyboard though is the impossibility to type `Ctrl-]` as `]` is obtained by pressing `Ctrl+Alt+)`, but this is not related to mpr.
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
hey everyone, Dave pointed me this way after discussing a related issue. using the 'pico' branch worked wonders for me but i also found the -a/--ascii option to be crucial. cheers!
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
I faced the same challenge and tried all possible Ctrl-Key combination on my German Keyboard, which uncovered teh combination 'Ctrl +' as sending Ctrl-]. If the location of the key matters, it may be Ctrl-$ on a french keyboard.A problem I have with my french keyboard though is the impossibility to type `Ctrl-]` as `]` is obtained by pressing `Ctrl+Alt+)`