Results 1 to 2 of 2

Thread: Need help - how to get access to already created serial port/modem over bluetooth?

  1. #1
    Join Date
    Jan 2010
    Beans
    34

    Need help - how to get access to already created serial port/modem over bluetooth?

    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 busy
    Code:
    $ echo "AT" > /dev/rfcomm0
    bash: /dev/rfcomm0: Device or resource busy
    The same feedback when trying to use minicom - "minicom: cannot open /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?
    Last edited by Artif; June 7th, 2012 at 11:32 AM.

  2. #2
    Join Date
    Jan 2010
    Beans
    34

    Re: Need help - how to get access to already created serial port/modem over bluetooth

    Any ideas?
    Last edited by Artif; July 9th, 2012 at 12:20 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •