id10t
Member
- Joined
- Oct 20, 2006
- Messages
- 108
Hi,
When I pair my Blackberry via the GUI I don't get an option to use it as a network connection.
Here's how I got it to work:
Nearly everything is run as root (sudo su)
~ # opkg list-installed| grep blue
blueprobe - 0.18-r6.5
bluez4 - 4.62-r6.0.5
gnome-bluetooth - 2.28.6-r0+gitr2d23ec20fa8f8299e93beea849bc8670aa2c7c69.5
gst-plugin-bluez - 4.62-r6.0.5
libasound-module-bluez - 4.62-r6.0.5
task-base-bluetooth - 1.0-r89.5
1. Toggle bluetooth on via gui *where is the cli version?*
2. Set the phone to listen
~ # hcitool scan
Scanning ...
40:5F:BE:13:70:ME BB9105 <--- me
00:27:13:75:08:59 LAP1450
3. make sure phone is not paired
~ # sdptool search DUN
Inquiring ...
Failed to connect to SDP server on 40:5F:BE:B0:90:E0: Host is down
Searching for DUN on 00:27:13:75:08:59 ...
Searching for DUN on 40:5F:BE:13:70:ME ... <---- mine
Service Name: Dialup Networking
Service RecHandle: 0x10000
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Go to your phone and initiate pairing - select listen
Start the search for a phone on Panda
Pair it
~ # hcitool info 40:5F:BE:13:70:ME
Requesting information ...
BD Address: 40:5F:BE:13:70:ME
Device Name: BB9105
LMP Version: 2.1 (0x4) LMP Subversion: 0x1d1f
Manufacturer: Texas Instruments Inc. (13)
Features: 0xbf 0xfe 0x2d 0xfe 0x98 0x19 0x79 0x83
-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <sniff mode> <RSSI>
<channel quality> <SCO link> <HV2 packets> <HV3 packets>
<u-law log> <A-law log> <CVSD> <power control>
<transparent SCO> <EDR ACL 2 Mbps> <EDR ACL 3 Mbps>
<enhanced iscan> <interlaced iscan> <interlaced pscan>
<inquiry with RSSI> <extended SCO> <AFH cap. slave>
<AFH class. slave> -slot EDR ACL> <5-slot EDR ACL>
<AFH cap. master> <AFH class. master> <extended inquiry>
<simple pairing> <encapsulated PDU> <err. data report>
<non-flush flag> <LSTO> <inquiry TX power> <extended features>
----
Vodafone GPRS settings are:
Phone number *99#
APN Internet
User name web
Password web
On the pandora
~ # cat > /etc/ppp/peers/vf
/dev/rfcomm0
460800
defaultroute
noipdefault
usepeerdns
noauth
debug
user "web"
password "web"
connect "/usr/sbin/chat -v -f /etc/ppp/peers/vf.chat"
~ # cat > /etc/ppp/peers/vf.chat
# Set TIMEOUT to be 15 seconds
TIMEOUT 15
# Abort on ERROR
ABORT 'ERROR\r'
# Abort on NO CARRIER
ABORT 'NO CARRIER\r'
# Send the initial AT command
SAY 'Reset the modem ...'
'' 'ATZ\r'
# Initialize the modem
SAY 'Initialize the modem ...'
'OK\r' 'AT\r'
# Set GPRS APN
SAY 'Set the APN ...'
'OK\r' 'AT+CGDCONT=1,"IP","Internet"\r'
# Start dailing
SAY 'Start dialing *99# ...'
'OK\r' 'ATD*99#\r'
# Wait for the CONNECT command
'CONNECT\r' ''
SAY 'Successfully connected!'
as root (sudo su)
~ # rfcomm
~ # rfcomm bind /dev/rfcomm0 40:5F:BE:13:70:ME 1
~ # rfcomm
rfcomm0: 40:5F:BE:13:70:ME channel 1 clean
~ # pon vf
/usr/sbin/pppd: pppd is unable to open the /dev/ppp device.
You need to create the /dev/ppp device node by
executing the following command as root:
mknod /dev/ppp c 108 0
~ # mknod /dev/ppp c 108 0
~ # pon vf
~ # rfcomm
rfcomm0: 40:5F:BE:13:70:ME channel 1 connected [tty-attached]
~ # ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1432 (1.3 KiB) TX bytes:1432 (1.3 KiB)
ppp0 Link encapoint-to-Point Protocol
inet addr:10.46.76.180 P-t-P:169.254.1.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:174 (174.0 B) TX bytes:243 (243.0 B)
~ # ping 209.85.143.99
PING 209.85.143.99 (209.85.143.99) 56(84) bytes of data.
64 bytes from 209.85.143.99: icmp_seq=1 ttl=53 time=637 ms
64 bytes from 209.85.143.99: icmp_seq=2 ttl=53 time=585 ms
^C
--- 209.85.143.99 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6051ms
rtt min/avg/max/mdev = 492.248/543.143/637.757/49.290 ms
~ # ping www.google.com
PING www.l.google.com (74.125.230.113) 56(84) bytes of data.
64 bytes from 74.125.230.113: icmp_seq=1 ttl=55 time=459 ms
^C
--- www.l.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4053ms
rtt min/avg/max/mdev = 459.595/480.938/531.250/26.707 ms
~ # netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 169.254.1.1 0.0.0.0 UG 0 0 0 ppp0
~ # cat /etc/resolv.conf
nameserver 10.206.65.70
nameserver 10.206.65.68
dmesg:
[ 1821.582855] PPP generic driver version 2.4.2
[ 1831.987792] PPP MPPE Compression module registered
[ 1832.110137] PPP BSD Compression module registered
[ 1832.236145] PPP Deflate Compression module registered
~ # poff vf
---------------
So, at the minute this is very slow for me, but it is online.
It could be my GPRS connection.
The above settings were for Vodafone in the UK.
I hope this helps someone else.
ID
When I pair my Blackberry via the GUI I don't get an option to use it as a network connection.
Here's how I got it to work:
Nearly everything is run as root (sudo su)
~ # opkg list-installed| grep blue
blueprobe - 0.18-r6.5
bluez4 - 4.62-r6.0.5
gnome-bluetooth - 2.28.6-r0+gitr2d23ec20fa8f8299e93beea849bc8670aa2c7c69.5
gst-plugin-bluez - 4.62-r6.0.5
libasound-module-bluez - 4.62-r6.0.5
task-base-bluetooth - 1.0-r89.5
1. Toggle bluetooth on via gui *where is the cli version?*
2. Set the phone to listen
~ # hcitool scan
Scanning ...
40:5F:BE:13:70:ME BB9105 <--- me
00:27:13:75:08:59 LAP1450
3. make sure phone is not paired
~ # sdptool search DUN
Inquiring ...
Failed to connect to SDP server on 40:5F:BE:B0:90:E0: Host is down
Searching for DUN on 00:27:13:75:08:59 ...
Searching for DUN on 40:5F:BE:13:70:ME ... <---- mine
Service Name: Dialup Networking
Service RecHandle: 0x10000
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Go to your phone and initiate pairing - select listen
Start the search for a phone on Panda
Pair it
~ # hcitool info 40:5F:BE:13:70:ME
Requesting information ...
BD Address: 40:5F:BE:13:70:ME
Device Name: BB9105
LMP Version: 2.1 (0x4) LMP Subversion: 0x1d1f
Manufacturer: Texas Instruments Inc. (13)
Features: 0xbf 0xfe 0x2d 0xfe 0x98 0x19 0x79 0x83
-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <sniff mode> <RSSI>
<channel quality> <SCO link> <HV2 packets> <HV3 packets>
<u-law log> <A-law log> <CVSD> <power control>
<transparent SCO> <EDR ACL 2 Mbps> <EDR ACL 3 Mbps>
<enhanced iscan> <interlaced iscan> <interlaced pscan>
<inquiry with RSSI> <extended SCO> <AFH cap. slave>
<AFH class. slave> -slot EDR ACL> <5-slot EDR ACL>
<AFH cap. master> <AFH class. master> <extended inquiry>
<simple pairing> <encapsulated PDU> <err. data report>
<non-flush flag> <LSTO> <inquiry TX power> <extended features>
----
Vodafone GPRS settings are:
Phone number *99#
APN Internet
User name web
Password web
On the pandora
~ # cat > /etc/ppp/peers/vf
/dev/rfcomm0
460800
defaultroute
noipdefault
usepeerdns
noauth
debug
user "web"
password "web"
connect "/usr/sbin/chat -v -f /etc/ppp/peers/vf.chat"
~ # cat > /etc/ppp/peers/vf.chat
# Set TIMEOUT to be 15 seconds
TIMEOUT 15
# Abort on ERROR
ABORT 'ERROR\r'
# Abort on NO CARRIER
ABORT 'NO CARRIER\r'
# Send the initial AT command
SAY 'Reset the modem ...'
'' 'ATZ\r'
# Initialize the modem
SAY 'Initialize the modem ...'
'OK\r' 'AT\r'
# Set GPRS APN
SAY 'Set the APN ...'
'OK\r' 'AT+CGDCONT=1,"IP","Internet"\r'
# Start dailing
SAY 'Start dialing *99# ...'
'OK\r' 'ATD*99#\r'
# Wait for the CONNECT command
'CONNECT\r' ''
SAY 'Successfully connected!'
as root (sudo su)
~ # rfcomm
~ # rfcomm bind /dev/rfcomm0 40:5F:BE:13:70:ME 1
~ # rfcomm
rfcomm0: 40:5F:BE:13:70:ME channel 1 clean
~ # pon vf
/usr/sbin/pppd: pppd is unable to open the /dev/ppp device.
You need to create the /dev/ppp device node by
executing the following command as root:
mknod /dev/ppp c 108 0
~ # mknod /dev/ppp c 108 0
~ # pon vf
~ # rfcomm
rfcomm0: 40:5F:BE:13:70:ME channel 1 connected [tty-attached]
~ # ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1432 (1.3 KiB) TX bytes:1432 (1.3 KiB)
ppp0 Link encapoint-to-Point Protocol
inet addr:10.46.76.180 P-t-P:169.254.1.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:174 (174.0 B) TX bytes:243 (243.0 B)
~ # ping 209.85.143.99
PING 209.85.143.99 (209.85.143.99) 56(84) bytes of data.
64 bytes from 209.85.143.99: icmp_seq=1 ttl=53 time=637 ms
64 bytes from 209.85.143.99: icmp_seq=2 ttl=53 time=585 ms
^C
--- 209.85.143.99 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6051ms
rtt min/avg/max/mdev = 492.248/543.143/637.757/49.290 ms
~ # ping www.google.com
PING www.l.google.com (74.125.230.113) 56(84) bytes of data.
64 bytes from 74.125.230.113: icmp_seq=1 ttl=55 time=459 ms
^C
--- www.l.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4053ms
rtt min/avg/max/mdev = 459.595/480.938/531.250/26.707 ms
~ # netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 169.254.1.1 0.0.0.0 UG 0 0 0 ppp0
~ # cat /etc/resolv.conf
nameserver 10.206.65.70
nameserver 10.206.65.68
dmesg:
[ 1821.582855] PPP generic driver version 2.4.2
[ 1831.987792] PPP MPPE Compression module registered
[ 1832.110137] PPP BSD Compression module registered
[ 1832.236145] PPP Deflate Compression module registered
~ # poff vf
---------------
So, at the minute this is very slow for me, but it is online.
It could be my GPRS connection.
The above settings were for Vodafone in the UK.
I hope this helps someone else.
ID
Last edited by a moderator: