rshell ubuntu 21.04

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
astrandco
Posts: 3
Joined: Wed Oct 13, 2021 10:25 am

rshell ubuntu 21.04

Post by astrandco » Wed Oct 13, 2021 10:56 am

I updated ubuntu from 18.04 to 21.04. After that rshell stop working on 21.04. On an other labtop still with ubuntu 18.04 rshell are working fine. I have tired 3 diffrent boards whith the same result. So cabels and boards seems ok.

Result:

Code: Select all

erik@HP:~$ rshell -p /dev/ttyUSB0
Using buffer-size of 32
Connecting to /dev/ttyUSB0 (buffer-size 32)...
Trying to connect to REPL  connected
Testing if ubinascii.unhexlify exists ... Y
Retrieving root directories ... /boot.py/
Setting time ... Oct 09, 2021 18:38:39
Evaluating board_name ... pyboard
Retrieving time epoch ... 
Silence...

Or

Code: Select all

erik@HP:~/projekt/ESP8266$ rshell -p /dev/ttyUSB0
Using buffer-size of 32
Connecting to /dev/ttyUSB0 (buffer-size 32)...
Trying to connect to REPL
Silence...

Board: Wemos mini v3.1.0
Micropython v1.13
rshell 0.0.30

It's quite annoying to switch betwean coputers
I have also tested screen tool. Dosen't work on 21.04

What to do?
Update a driver on linux?

Regards Erik

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

Re: rshell ubuntu 21.04

Post by pythoncoder » Wed Oct 13, 2021 4:39 pm

astrandco wrote:
Wed Oct 13, 2021 10:56 am
...
I have also tested screen tool. Dosen't work on 21.04
...
Given that screen is a long established Linux application, you may be better looking in Ubuntu forums. It is very widely used and if Ubuntu has broken it, you can be sure the issue will have been raised. Perhaps there is an issue connected with serial port permissions?
Peter Hinch
Index to my micropython libraries.

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

Re: rshell ubuntu 21.04

Post by dhylands » Wed Oct 13, 2021 5:38 pm

I would check the permissions of the /dev/ttyUSB0 entry (i.e. using ls -l)

Normally this file will be owned by root and have a group of dialout, and the permissions will look like: crwx-rw----

If your user belongs to the group dialout (you can check using the id command) then you shouldn't need to do anything else.

You can add your user to the dialout group by using the command:

Code: Select all

sudo usermod -a -G dialout $USER
and then logging out and logging back in (or rebooting).

The other way of modifying the permissions is to create a udev file, as described here: https://github.com/micropython/micropyt ... ux-via-dfu

Note that those rules are for the pyboard and would need some changes for the ESP32.

astrandco
Posts: 3
Joined: Wed Oct 13, 2021 10:25 am

Re: rshell ubuntu 21.04

Post by astrandco » Wed Jan 11, 2023 11:25 am

I tried a lots of different thing, including your suggestions. None worked. So at last I gave up and used my old and slow lab-top instead for work with rshell. Last days i was doing stuff using Arduino IDE. Problem again but no so sever as with rshell. I got a feeling something fishy with /dev/ttyUSB*. So new tests with rshell on my normal desktop and it Worked! It worked all the time. I used /dev/ttyUSB1 instead of ttyUSB0. Great relief!

astrandco
Posts: 3
Joined: Wed Oct 13, 2021 10:25 am

Re: rshell ubuntu 21.04

Post by astrandco » Thu Jan 12, 2023 12:26 pm

Sorry about bad grammer and sematics
"...different things"
"Problems again..."
"..work with rshell on my normal desktop".

Post Reply