rshell - connecting my lopy board?

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
soerena
Posts: 1
Joined: Sat Mar 25, 2017 4:08 pm

rshell - connecting my lopy board?

Post by soerena » Sat Mar 25, 2017 4:20 pm

Hello to you all!

After a huge amount of fuzzle with pycom's lopy to get it set up, I have come to the conclusion to not use their IDE "Pymakr" and rather try out rshell. I was though pretty quickly stopped by not having any clue how to connect my board via rshell.
the connect command's help method only says:

connect TYPE TYPE_PARAMS
connect serial port [baud]
connect telnet ip-address-or-name

I don't know what most of the parameters here mean. TYPE, and TYPE_PARAMS eg. I know what baudrate is, and IP-address-or-name obviously. Is there something I missed? An example or documentation that I couldn't find?

All the best
Søren

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: rshell - connecting my lopy board?

Post by pythoncoder » Sun Mar 26, 2017 11:17 am

You haven't told us how you're connected and what OS you're using. If you're connected via USB you need to know the device name. On Linux you can issue

Code: Select all

ls /dev/tty*
You'll probably find an entry like ttyACM0 or ttyUSB0 (I haven't got a PyCom board to test). Then all you need is

Code: Select all

rshell -p /dev/ttyUSB0 --buffer-size=30
In my view rshell is the best way to access MicroPython targets.
Peter Hinch
Index to my micropython libraries.

User avatar
TravisT
Posts: 72
Joined: Sun Feb 23, 2014 2:31 pm
Location: Portland, OR
Contact:

Re: rshell - connecting my lopy board?

Post by TravisT » Tue Mar 28, 2017 6:09 pm

rshell works great with lopy and wipy. It its my main tool for those devices. I use FTP sometimes to manage a bunch of files but rshell recently added recursive copy, which I have not tested yet.

You might have to run this under sudo user if permissions gives you issues.
_______________
Travis Travelstead

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: rshell - connecting my lopy board?

Post by pythoncoder » Wed Mar 29, 2017 11:27 am

TravisT wrote:...You might have to run this under sudo user if permissions gives you issues.
This is often solved by adding yourself to the dialout group.

Code: Select all

usermod -a -G dialout your_username
Peter Hinch
Index to my micropython libraries.

Post Reply