Cannot open serial device /dev/ttyUSB0

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Kevin Redon ml at mail.tsaitgaist.info
Tue Jun 4 18:29:13 UTC 2013


Excerpts from George Andguladze's message of 2013-06-04 10:40:35 -0700:
> Cannot open serial device /dev/ttyUSB0
> 
> I am getting this error message when I try to connect to my C155 phone and upload hello_world.compalram.bin using this command:
> 
> ./osmocon -p /dev/ttyUSB0 -m c155 ../../target/firmware/board/compal_e99/hello_world.compalram.bin
> 
> Even though device ttyUSB0 exists in my /dev/ directory, and I have set modprobe cp210x, and chmod 777 /dev/ttyUSB0.

instead of setting 777 permissions on this device, you can simply add yourself to the dialout group (it's the more proper way)
here the debian command (don't forget to log out and in again for this to take effect)
sudo adduser $USER dialout

> crw-rw---- 1 root dialout   4, 71 2013-06-04 20:40 /dev/ttyS7
> crw-rw---- 1 root dialout   4, 72 2013-06-04 20:40 /dev/ttyS8
> crw-rw---- 1 root dialout   4, 73 2013-06-04 20:40 /dev/ttyS9
> crwxrwxrwx 1 root dialout 188,  0 2013-06-04 21:07 /dev/ttyUSB0
> 
> 
> What is it that I am doing wrong?

does it work with root rights (using sudo)?

kevin                        




More information about the baseband-devel mailing list