Closed cypridox closed 7 months ago
The error message reports no permission to read the serial port /dev/serial0
.
Could you please check about it?
Thanks for your reply. The serial port appeared to be there on /dev/ttyS0. I added the read rights. It required a reboot but now it works without sudo. Issue can be closed.
I am glad to hear that it works properly after granting the necessary permissions. Have fun!
Thanks for this usefull package and the clear documentation! The installation went well on a RPI 3B and I got sensor readings. I want to use the sensor in Python programs and so I want to get rid of the root permission. Unfortunately this doesn't work for me. I used
sudo chmod g+r /dev/ttyAMA0
usingls -la /dev/ttyAMA0
this gave mecrw-rw---- 1 root tty 204, 64 Nov 8 20:00 /dev/ttyAMA0
but when I triedpython3 -m mh_z19 --serial_console_untouched
I got an error:And then the 'r' on the fifth position is gone and I have to use chmod again. How to solve this?