GPRS over bluetooth
I have a USB bluetooth dongle (COMOne).
Mostly on debian unstable this has "just worked" :)
I've been following these two guides (which are not debian specific.
http://www.teaparty.net/technotes/blue-gprs.html
http://members.dodo.com.au/~botting/phone/
Now - I have:
/etc/ppp/peers/gprs
/dev/rfcomm0 57600
connect '/usr/sbin/chat -v -f /etc/ppp/peers/chat-gprs'
noauth
defaultroute
debug
and
/etc/ppp/peers/chat-gprs
TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 12
OK ATE1
OK 'AT+cgdcont=1,"IP","internet"'
OK ATD*99***6#
CONNECT
NB - my CID is 6 - this differs from the webpages above.
This code appears to be for people who should have a blank username
and password. My GPRS provider (telenor mobil) wants me to send my
mobile number as username and password.
At present - when I run "pppd call gprs" I get:
Feb 12 14:08:25 chris pppd[4984]: pppd 2.4.1 started by root, uid 0
Feb 12 14:08:28 chris hcid[4831]: link_key_request (sba=00:30:C2:08:0A:A1, dba=00:0A:D9:94:BF:68)
Feb 12 14:08:29 chris chat[4986]: timeout set to 5 seconds
Feb 12 14:08:29 chris chat[4986]: abort on (\nBUSY\r)
Feb 12 14:08:29 chris chat[4986]: abort on (\nERROR\r)
Feb 12 14:08:29 chris chat[4986]: abort on (\nNO ANSWER\r)
Feb 12 14:08:29 chris chat[4986]: abort on (\nNO CARRIER\r)
Feb 12 14:08:29 chris chat[4986]: abort on (\nNO DIALTONE\r)
Feb 12 14:08:29 chris chat[4986]: abort on (\nRINGING\r\n\r\nRINGING\r)
Feb 12 14:08:29 chris chat[4986]: send (^MAT^M)
Feb 12 14:08:29 chris chat[4986]: timeout set to 12 seconds
Feb 12 14:08:29 chris chat[4986]: expect (OK)
Feb 12 14:08:30 chris chat[4986]: ^MAT^M^M
Feb 12 14:08:30 chris chat[4986]: OK
Feb 12 14:08:30 chris chat[4986]: -- got it
Feb 12 14:08:30 chris chat[4986]: send (ATE1^M)
Feb 12 14:08:30 chris chat[4986]: expect (OK)
Feb 12 14:08:30 chris chat[4986]: ^M
Feb 12 14:08:30 chris chat[4986]: ATE1^M^M
Feb 12 14:08:30 chris chat[4986]: OK
Feb 12 14:08:30 chris chat[4986]: -- got it
Feb 12 14:08:30 chris chat[4986]: send (AT+cgdcont=1,"IP","internet"^M)
Feb 12 14:08:30 chris chat[4986]: expect (OK)
Feb 12 14:08:30 chris chat[4986]: ^M
Feb 12 14:08:30 chris chat[4986]: AT+cgdcont=1,"IP","internet"^M^M
Feb 12 14:08:30 chris chat[4986]: OK
Feb 12 14:08:30 chris chat[4986]: -- got it
Feb 12 14:08:30 chris chat[4986]: send (ATD*99***6#^M)
Feb 12 14:08:31 chris chat[4986]: expect (CONNECT)
Feb 12 14:08:31 chris chat[4986]: ^M
Feb 12 14:08:32 chris chat[4986]: ATD*99***6#^M^M
Feb 12 14:08:32 chris chat[4986]: CONNECT
Feb 12 14:08:32 chris chat[4986]: -- got it
Feb 12 14:08:32 chris pppd[4984]: Serial connection established.
Feb 12 14:08:32 chris pppd[4984]: using channel 2
Feb 12 14:08:32 chris pppd[4984]: Using interface ppp0
Feb 12 14:08:32 chris pppd[4984]: Connect: ppp0 <--> /dev/rfcomm0
Feb 12 14:08:33 chris pppd[4984]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x5242d250> <pcomp> <ac
comp>]
Feb 12 14:08:33 chris pppd[4984]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp> <auth pap>]
Feb 12 14:08:33 chris pppd[4984]: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <pcomp> <accomp> <auth pap>]
Feb 12 14:08:33 chris pppd[4984]: rcvd [LCP ConfRej id=0x1 <magic 0x5242d250>]
Feb 12 14:08:33 chris pppd[4984]: sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
Feb 12 14:08:33 chris pppd[4984]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
Feb 12 14:08:33 chris pppd[4984]: sent [LCP EchoReq id=0x0 magic=0x0]
Feb 12 14:08:33 chris pppd[4984]: sent [PAP AuthReq id=0x1 user="chris" password=<hidden>]
Feb 12 14:08:33 chris pppd[4984]: rcvd [LCP CodeRej id=0x3 09 00 00 08 00 00 00 00]
Feb 12 14:08:33 chris pppd[4984]: LCP: Rcvd Code-Reject for code 9, id 0
Feb 12 14:08:33 chris pppd[4984]: rcvd [PAP AuthAck id=0x1 ""]
Feb 12 14:08:33 chris pppd[4984]: sent [IPCP ConfReq id=0x1 <addr 192.168.3.140> <compress VJ 0f 01>]
Feb 12 14:08:33 chris pppd[4984]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Feb 12 14:08:33 chris pppd[4984]: rcvd [LCP ProtRej id=0x4 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15
03 2f]
Feb 12 14:08:33 chris pppd[4995]: The remote system is required to authenticate itself
Feb 12 14:08:33 chris pppd[4995]: but I couldn't find any suitable secret (password) for it to use to do
so.
Feb 12 14:08:33 chris pppd[4995]: (None of the available passwords would let it use an IP address.)
Note the line:
Feb 12 14:08:33 chris pppd[4984]: sent [PAP AuthReq id=0x1 user="chris" password=<hidden>]
(The phone - a T610 - and the PC show a successful bt connection BTW)
Now - I'm not sure if this is the debian style way to configure this
(although it appears to nearly work) - and I have no idea how to go
about getting the correct user/password sent - has anyone here got a
similar but working config?
Regards
--
Chris Searle
Reply to: