Past Presentations/12162006-bluetooth
From Sfvlug
< Past Presentations(Difference between revisions)
(→/etc/bluetooth/hcid.conf) |
|||
| (4 intermediate revisions not shown) | |||
| Line 1: | Line 1: | ||
| - | |||
=Using bluetooth under linux (12/16/2006)= | =Using bluetooth under linux (12/16/2006)= | ||
| Line 10: | Line 9: | ||
* http://www.thewybles.com/~charles/sfvlug/presentations/bluetooth-12-16-2006/bluetooth-user.ppt (Slides in PowerPoint format) | * http://www.thewybles.com/~charles/sfvlug/presentations/bluetooth-12-16-2006/bluetooth-user.ppt (Slides in PowerPoint format) | ||
| - | ==Scripts/Config files== | + | ==Tethered modem Scripts/Config files== |
This will get you a connection to the phone. Still working on ppp issues | This will get you a connection to the phone. Still working on ppp issues | ||
| Line 17: | Line 16: | ||
| - | + | rfcomm0 { | |
| - | + | bind yes; | |
| - | rfcomm0 { | + | device 00:0F:86:F6:35:0C; |
| - | + | channel 1; | |
| - | bind yes; | + | comment "EDGE Internet connection"; |
| - | + | } | |
| - | device 00:0F:86:F6:35:0C; | + | |
| - | + | ||
| - | channel 1; | + | |
| - | + | ||
| - | comment "EDGE Internet connection"; | + | |
| - | + | ||
| - | } | + | |
===/etc/bluetooth/hcid.conf=== | ===/etc/bluetooth/hcid.conf=== | ||
| + | options | ||
| + | { | ||
| + | autoinit yes; | ||
| + | security auto; | ||
| + | pairing multi; | ||
| + | pin_helper /usr/local/bin/bluez_pin_simple; | ||
| + | } | ||
| + | device | ||
| + | { | ||
| + | name "%h-%d"; | ||
| + | class 0x100; | ||
| + | iscan enable; pscan enable; | ||
| + | lm accept,master; | ||
| + | lp hold,sniff,park; | ||
| + | } | ||
| - | + | ===# File: /etc/ppp/peers/edge=== | |
| - | + | connect "/usr/sbin/chat -v -f /etc/chatscripts/edge" | |
| + | /dev/rfcomm0 # Motorola Phone Cable | ||
| + | 115200 # speed | ||
| + | nodetach # don't fork | ||
| + | debug # show debugging info | ||
| + | defaultroute # set the default route | ||
| + | replacedefaultroute # yes, override the default route | ||
| + | usepeerdns # get the dns servers from the tunnel | ||
| + | crtscts # do flow control | ||
| + | noauth # no authentication required | ||
| + | deflate 0 # don't compress | ||
| + | asyncmap 0 | ||
| + | mtu 1500 | ||
| + | mru 1500 | ||
| + | noipdefault | ||
| + | idle 600 | ||
| + | } | ||
| - | + | ===/etc/chatscripts/edge=== | |
| + | ABORT ERROR | ||
| + | '' AT&F | ||
| + | OK AT+CGDCONT=1,"IP","internet2.voicestream.com" | ||
| + | OK ATDT*99# | ||
| + | CONNECT '' | ||
| - | + | ===An alternative way=== | |
| - | + | Thanks to pixelfairy for this: | |
| - | + | http://pixelfairy.org/quickies/gprs-tmobile.txt | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
Current revision as of 21:28, 30 January 2007
Contents |
Using bluetooth under linux (12/16/2006)
Slides
- http://www.thewybles.com/~charles/sfvlug/presentations/bluetooth-12-16-2006/bluetooth-user.odp (Slides in OpenOffice format)
- http://www.thewybles.com/~charles/sfvlug/presentations/bluetooth-12-16-2006/bluetooth-user.pdf (Slides in PDF format)
- http://www.thewybles.com/~charles/sfvlug/presentations/bluetooth-12-16-2006/bluetooth-user.swf (Slides in Flash format)
- http://www.thewybles.com/~charles/sfvlug/presentations/bluetooth-12-16-2006/bluetooth-user.ppt (Slides in PowerPoint format)
Tethered modem Scripts/Config files
This will get you a connection to the phone. Still working on ppp issues
/etc/bluetooth/rfcomm.conf: (You will need to change the device setting and possibly channel)
rfcomm0 {
bind yes;
device 00:0F:86:F6:35:0C;
channel 1;
comment "EDGE Internet connection";
}
/etc/bluetooth/hcid.conf
options
{
autoinit yes;
security auto;
pairing multi;
pin_helper /usr/local/bin/bluez_pin_simple;
}
device
{
name "%h-%d";
class 0x100;
iscan enable; pscan enable;
lm accept,master;
lp hold,sniff,park;
}
# File: /etc/ppp/peers/edge
connect "/usr/sbin/chat -v -f /etc/chatscripts/edge" /dev/rfcomm0 # Motorola Phone Cable 115200 # speed nodetach # don't fork debug # show debugging info defaultroute # set the default route replacedefaultroute # yes, override the default route usepeerdns # get the dns servers from the tunnel crtscts # do flow control noauth # no authentication required deflate 0 # don't compress asyncmap 0 mtu 1500 mru 1500 noipdefault idle 600 }
/etc/chatscripts/edge
ABORT ERROR AT&F OK AT+CGDCONT=1,"IP","internet2.voicestream.com" OK ATDT*99# CONNECT
An alternative way
Thanks to pixelfairy for this: http://pixelfairy.org/quickies/gprs-tmobile.txt
