Search found 43 matches

by seonr
Sun Jan 27, 2019 7:41 am
Forum: Programs, Libraries and Tools
Topic: rshell - Remote Shell
Replies: 89
Views: 110127

Re: rshell - Remote Shell

Just to clarify rshell is a tool for managing the filesystem on the device and accessing its REPL. In normal use you write code on a PC and use rshell to copy the script to the device. Using rshell 's REPL you run and test your code. It is a powerful utility and it's well worth studying the docs to...
by seonr
Sat Jan 26, 2019 1:55 am
Forum: Announcements and News
Topic: MicroPython version 1.10 released
Replies: 15
Views: 108532

Re: MicroPython version 1.10 released

Just for clarity, the external SPI RAM support on the ESP port in 1.10 ONLY works on WROVER and will go into a crash/reboot cycle on a WROOM32 or PICO-D4 board if you flash it. Support for WROOM32 and PICO-D4 will come in MP when it moves to the latest IDF. So if you are wanting to play with the SPI...
by seonr
Fri Jan 25, 2019 11:34 pm
Forum: Announcements and News
Topic: MicroPython version 1.10 released
Replies: 15
Views: 108532

Re: MicroPython version 1.10 released

w00p! Awesome news... thanks to everyone that contributed to making this happen.

Seon
unexpectedmaker.com
by seonr
Fri Jan 25, 2019 10:39 pm
Forum: Programs, Libraries and Tools
Topic: rshell - Remote Shell
Replies: 89
Views: 110127

Re: rshell - Remote Shell

Ok, I am now using a combo of rshell and pyboard as I still need to copy over a bunch of files to the TinyPICO after the firmware is flashed, and couldn't see a way of doing a file copy with pyboard directly. Using pyboard and directly inserting code via REPL reduced my overall flash time by 5 secon...
by seonr
Fri Jan 25, 2019 7:37 pm
Forum: Programs, Libraries and Tools
Topic: rshell - Remote Shell
Replies: 89
Views: 110127

Re: rshell - Remote Shell

I think @Roberthh is right: pyboard.py is your way forward. rshell is a command line utility and is not really intended to be imported into Python code. You might like to look at run-tests which is the Python script for running the MicroPython test suite. This enables tests to be run on the Pyboard...
by seonr
Fri Jan 25, 2019 10:55 am
Forum: Programs, Libraries and Tools
Topic: rshell - Remote Shell
Replies: 89
Views: 110127

Re: rshell - Remote Shell

Ok, I got it connecting in min.main() by pre-setting the default port in the env from rshell import main from rshell import pyboard import os os.environ['RSHELL_PORT'] = "/dev/ttyUSB0" main.main() print ( "Num devices: " + str(main.num_devices())) But it still stops at the rshell command prompt afte...
by seonr
Fri Jan 25, 2019 8:13 am
Forum: Programs, Libraries and Tools
Topic: rshell - Remote Shell
Replies: 89
Views: 110127

Re: rshell - Remote Shell

Internally, rshell (and ampy) uses pyboard.py (https://github.com/micropython/micropython/blob/master/tools/pyboard.py) for it's magic. So you might look at that and how rshell (or ampy) use that. Thanks Roberthh :-) So I've managed to get it to run some MP code via RELP using this from rshell impo...
by seonr
Fri Jan 25, 2019 6:19 am
Forum: Programs, Libraries and Tools
Topic: rshell - Remote Shell
Replies: 89
Views: 110127

Re: rshell - Remote Shell

I got a bit further... from rshell import main main.main() conn = main.connect_serial("/dev/ttyUSB0") print ( "Num devices: " + str(main.num_devices())) But this is putting me into rshell in terminal... and doesn't do any connection until I hit CTRL+D to exit, then it shows it connecting and prints ...
by seonr
Fri Jan 25, 2019 4:16 am
Forum: Programs, Libraries and Tools
Topic: rshell - Remote Shell
Replies: 89
Views: 110127

Re: rshell - Remote Shell

Excuse my Python and MicroPython ignorance... super new to all of this... but I have a question about using rshell inside some python code to talk to and issue commands to my ESP32 board. I have this all working atm using subprocess and using commands like... cmd = "rshell -p /dev/ttyUSB0 -f rshell_...
by seonr
Wed Oct 24, 2018 8:20 pm
Forum: Other Boards
Topic: [ESP32] New dev board
Replies: 48
Views: 26279

Re: [ESP32] New dev board

OutoftheBOTS_ wrote:
Wed Oct 24, 2018 8:50 am
Nice :)

I watched parts of your video as it was a bit long to watch all of it but I did enjoy the bits that I watched.

It is interesting watching the improvements in each rev
Thanks... yeah my streams are not short... it's amazing how quickly the time flies.

Seon
unexpectedmaker.com