It seems access to serial port services (on external devices) available over bluetooth connections is blocked for ordinary user accounts (ver.12.04 Precise, files /dev/rfcomm*). How to for ordinary user enable access to the ports?
As ordinary user, with the help of blueman I can successfully connect over bluetooth to service "serial port" of my mobile phone. As result I have file /dev/rfcomm0, and I have read-write permission (via dialout group).
Next I'm trying to use this dev.file as a GPRS modem serial port. I'm using wvdial:
Code:$ wvdial --config=phone.conf --> WvDial: Internet dialer version 1.61 --> Cannot open /dev/rfcomm0: Device or resource busy --> Cannot open /dev/rfcomm0: Device or resource busy --> Cannot open /dev/rfcomm0: Device or resource busyThe same feedback when trying to use minicom - "minicom: cannot open /dev/rfcomm0: Device or resource busy".Code:$ echo "AT" > /dev/rfcomm0 bash: /dev/rfcomm0: Device or resource busy
When I run "sudo wvdial --config=phone.conf" everything is OK - connection established successfully. Bluetooth connection is still established by ordinary user, without sudo access. Also, nothing is blocked for ordinary user when I'm using same configurations and devices are connected via USB - the same mobile phone, or external USB COM port.
Strace logs one may see for
"wvdial" (see line 174 and 177) at http://pastebin.com/PJvXTVby
"sudo wvdial" (see line 174) at http://pastebin.com/wa8p3hGW
What is the mechanics? How to tune it?
Bookmarks