|
Contents
- 1 Get MAC
- 2 Get Channel
- 3 Create /dev/rfcomm0
- 4 /etc/ppp/peers/gprs
- 5 /etc/ppp/peers/gprs.chat
- 6 Connect
|
Get MAC
shell> hcitool scan
Scanning ...
01:12:3A:55:88:99 myphone
Get Channel
shell> sdptool search DUN
Inquiring ...
Searching for DUN on 01:12:3A:55:88:99 ...
Service Name: Dial-up Networking
Service RecHandle: 0x10002
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1 <--- CHANNEL used by "rfcomm bind"
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Create /dev/rfcomm0
shell> sudo rfcomm bind /dev/rfcomm0 01:12:3A:55:88:99 1
/etc/ppp/peers/gprs
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/ppp/peers/gprs.chat"
debug
/dev/rfcomm0
115200
defaultroute
noipdefault
user ""
remotename gprs
ipparam gprs
usepeerdns
/etc/ppp/peers/gprs.chat
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
\'\' AT
OK AT+CGDCONT=1,"IP","gprs.swisscom.ch"
# ispnumber
OK ATD*99***1#
# ispconnect
CONNECT
Connect
shell> sudo pppd call gprs