rshell not working on Mac OS
-
- Posts: 5
- Joined: Fri Sep 20, 2019 4:16 am
rshell not working on Mac OS
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
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
Re: rshell not working on Mac OS
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
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: rshell not working on Mac OS
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.
Index to my micropython libraries.
Re: rshell not working on Mac OS
Can you see what is in your boot.py and main.py?
Re: rshell not working on Mac OS
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:
Try starting rshell without using --port and after you get the "No MicroPython boards connected" error try entering this command:
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
Code: Select all
connect serial /dev/cu.SLAB_USBtoUART
Re: rshell not working on Mac OS
Try: /dev/tty.SLAB_USBtoUART
-
- Posts: 5
- Joined: Fri Sep 20, 2019 4:16 am
Re: rshell not working on Mac OS
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
Hope this helps anyone else that is experiencing similar issues!
Thanks for the quick responses and support,
Matt
Re: rshell not working on Mac OS
So the solution to that issue is: take your fevice on a flight to Hawaii
-
- Posts: 5
- Joined: Fri Sep 20, 2019 4:16 am
Re: rshell not working on Mac OS
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.