Gentoo/Bluetooth Modem

Page last edited 3,789 days ago
From Alon Bar-Lev's Site
Jump to navigation Jump to search

Bluetooth Modem

Bluetooth modems are very common, especially common when cellular phone is bluetooth enabled.

Configuration

First setup core bluetooth.

Linux Kernel Configuration:
  [*] Networking support  --->
    <M>   Bluetooth subsystem support  --->
      <M>   RFCOMM protocol support
      [*]     RFCOMM TTY support

Add:

File: /etc/conf.d/modules
modules="${modules} bluethooth"

Device Attach

Attach you modem as any regular device see Gentoo/Bluetooth.

Setup rfcomm

Assuming device address is 00:24:7C:2F:92:7C, add entry:

File: /etc/bluetooth/rfcomm.conf
rfcomm0 {
        bind yes;
        device 00:24:7C:2F:92:7C;
        channel 4;
        comment "My phone";
}

The tricky is to find the channel number, if you don't have documentation of device, simply start of 0 and increment while testing.

Restart bluetooth:

/etc/init.d/bluetooth restart

Test

Test using net-misc/taylor-uucp

emerge net-misc/taylor-uucp

Simply enter "AT" and expect for "OK", to exit use "~." sequence.

cu -l /dev/rfcomm0
# cu -l /dev/rfcomm0 
Connected.
AT
OK
!.

Network

Now you can configure ppp to be used with modem.

Maintainer

Alon Bar-Lev

Authors

Originally written by: Alon Bar-Lev - 2011-11-17


Authors are people who have worked on this document and have made significant changes to its content. If you have edited this article and wish to add yourself to the authors list please read "Who are Authors".