Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: How to make an irda - mobile phone GPRS connection, Part 4 of irda on DSL< Next Oldest | Next Newest >
Juanito Offline

Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Feb. 26 2007,10:14 QUOTE

This is part 4 of the DSL irda how-to. In order to proceed from here, you will need to have irda up and running on your DSL machine as described in part 1 - see post "How to start irda & check it works"

In order to connect to the modem in your mobile phone over an irda connection, you need to first make sure that the irda mode on the phone is set to "modem" and not "pc-connect" or similar. Apparently, although the irda link can be used for dial-up and file transfers, it needs to be told which to expect.

I have been unable to use microcom or wvdial to make a GPRS connection but managed to figure out how to do this using chatscripts.

First create and save the following two files:

# cat /opt/ppp/peers/gprs_irda
# This optionfile was generated by pppconfig 2.1.
# /opt/peers/gprs_irda
connect "/usr/sbin/chat -v -f /opt/ppp/chatscripts/gprs_irda_chat"

# cat /opt/ppp/chatscripts/gprs_irda_chat
# This chatfile was generated by pppconfig 2.1.
# Please do not delete any of the comments.  Pppconfig needs them.
# ispauth chat
# abortstring
# modeminit
'' ATZ

#We add gprs specific stuff.
OK 'AT+CGDCONT=1,"IP","mnet"' [edit to suit your provider]

# ispnumber
OK-AT-OK "ATD*99***1#"
# ispconnect
# prelogin

# ispname
# isppassword
# postlogin
# end of pppconfig stuff

The connection can then be initiated by calling the gprs_irda file and terminated by poff:

# pppd call gprs_irda
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ircomm0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd85a37fc> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfRej id=0x1 <magic 0xd85a37fc>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x0]
sent [IPCP ConfReq id=0x1 <addr> <compress VJ 0f 01> <ms-dns1> <ms-dns3>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [LCP CodeRej id=0x3 09 00 00 08 00 00 00 00]
LCP: Rcvd Code-Reject for code 9, id 0
rcvd [LCP ProtRej id=0x4 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
rcvd [IPCP ConfReq id=0x1 <addr>]
sent [IPCP ConfAck id=0x1 <addr>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr> <ms-dns1> <ms-dns3>]
rcvd [IPCP ConfNak id=0x2 <addr> <ms-dns1> <ms-dns3>]
sent [IPCP ConfReq id=0x3 <addr> <ms-dns1> <ms-dns3>]
rcvd [IPCP ConfAck id=0x3 <addr> <ms-dns1> <ms-dns3>]
Cannot determine ethernet address for proxy ARP
local  IP address
remote IP address
primary   DNS address
secondary DNS address

# ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=50 time=949.8 ms
64 bytes from icmp_seq=1 ttl=50 time=1040.1 ms
--- ping statistics ---
3 packets transmitted, 2 packets received, 33% packet loss
round-trip min/avg/max = 949.8/994.9/1040.1 ms
# poff

It took about 4 minutes to perform an "apt-get update" to the latest oldstable archive which seems pretty good to me.

Please feel free to suggest improvements to the chat scripts.
Back to top
Profile PM 
0 replies since Feb. 26 2007,10:14 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Quick Reply: How to make an irda - mobile phone GPRS connection

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code