rshell not working on Mac OS

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
smbaxteer.2005
Posts: 5
Joined: Fri Sep 20, 2019 4:16 am

rshell not working on Mac OS

Post by smbaxteer.2005 » Fri Sep 20, 2019 10:22 pm

I'm trying to use rshell command to access my ESP8266 with the following command: $ rshell --port /dev/cu.SLAB_USBtoUART

When I do I get the following error:

Using buffer-size of 32
Connecting to /dev/cu.SLAB_USBtoUART (198.105.244.117) ...
No response from 198.105.244.117
Welcome to rshell. Use Control-D (or the exit command) to exit rshell.

No MicroPython boards connected - use the connect command to add one

- I've installed the Legacy MAC VCP driver from SiLabs and can see the ESP8266 listed under USB when I run system report.
- I can erase the flash successfully with the following command: $ esptool.py erase_flash
- I can write to the flash with the following command: $ esptool.py write_flash 0 esp8266-20190125-v1.10.bin
- I've verified that my serial board is /dev/cu.SLAB_USBtoUART
- I can use the screen command to access the ESP8266 and can control the LED's; however, I would like to use the rshell command and utilize it's options.

Any help to correct this error is much appreciated.

- Matt

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: rshell not working on Mac OS

Post by Roberthh » Sat Sep 21, 2019 6:11 am

Can you connect to the device using screen? rshell runs quite a few commands to test the device properties and does not tell a lot about details. Using screen (or picocom) it is easier to tell what is going wrong

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

Re: rshell not working on Mac OS

Post by pythoncoder » Sat Sep 21, 2019 7:07 am

The OP says he can connect with screen. I think we need another Mac user to help here.
Peter Hinch
Index to my micropython libraries.

rpr
Posts: 99
Joined: Sat Oct 27, 2018 5:17 pm

Re: rshell not working on Mac OS

Post by rpr » Sat Sep 21, 2019 7:18 am

Can you see what is in your boot.py and main.py?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: rshell not working on Mac OS

Post by dhylands » Sat Sep 21, 2019 11:46 am

I think rshell is getting confused. When it starts up it tries to resolve the "port" by calling gethostbyname and when that falls it tries to connect via serial.

It looks like gethostbyname is succeeding. This is why it's printing the ip address:

Code: Select all

Connecting to /dev/cu.SLAB_USBtoUART (198.105.244.117) ...
No response from 198.105.244.117
Try starting rshell without using --port and after you get the "No MicroPython boards connected" error try entering this command:

Code: Select all

connect serial /dev/cu.SLAB_USBtoUART

User avatar
devnull
Posts: 473
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

Re: rshell not working on Mac OS

Post by devnull » Sat Sep 21, 2019 12:20 pm

Try: /dev/tty.SLAB_USBtoUART

smbaxteer.2005
Posts: 5
Joined: Fri Sep 20, 2019 4:16 am

Re: rshell not working on Mac OS

Post by smbaxteer.2005 » Sun Sep 22, 2019 7:44 am

I figured out the issue randomly today. I was flying to Hawaii and brought my ESP on the flight to continue troubleshooting. Once I turned my wifi off on my Mac for the flight everything started working. As long as I turn wifi off I can access rshell and repl without issue. Once I turn wifi back on it stops working when connected via USB.

Hope this helps anyone else that is experiencing similar issues!

Thanks for the quick responses and support,

Matt

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: rshell not working on Mac OS

Post by Roberthh » Sun Sep 22, 2019 8:53 am

So the solution to that issue is: take your fevice on a flight to Hawaii ;)

smbaxteer.2005
Posts: 5
Joined: Fri Sep 20, 2019 4:16 am

Re: rshell not working on Mac OS

Post by smbaxteer.2005 » Mon Sep 23, 2019 3:12 am

Yes - absolutely! I was a little nervous to take the micro controllers and a box of electronics components through security but I didn't experience any issues at all.

Post Reply