my guideline (PDF) - Agentgroup

my guideline (PDF) - Agentgroup my guideline (PDF) - Agentgroup

agentgroup.unimo.it
from agentgroup.unimo.it More from this publisher
26.12.2014 Views

How to set up a IRDA-GPRS Connection on a Compaq IPAQ with Familiar Linux. Here is how to connect your IPAQ with a GPRS mobile phone via an IRDA link and then how to let the phone act as a GPRS modem for the IPAQ. Actually, we have succeeded in the connection only with Nokia phones (6100 and 7210) and with Sharp GX20 on the Italian Vodafone network. First of all you need to set up the IRDA link on the IPAQ. In theory you just need the following commands: modprobe ircomm-tty modprobe irtty /* then you could verify everything is working properly by typing */ cat /proc/sys/net/irda/discovery cat /proc/net/irda/discovery /* the first command should return 1 to indicate that the IPAQ realized to have an IRDA port installed. The second command should return a String of the mobile phone currently facing the IPAQ – remember to enable IRDA on the mobile phone */ Actually, we weren’t lucky with this and our IPAQ did not think to have an IRDA installed. To overcome this problem, we downloaded from http://ipkgfind.handhelds.org the ipkg opieirdaapplet and installed it. Please note that this package has some dependencies so it is better to install it from the network, where dependencies are automatically resolved. This create an icon in the OPIE toolbar to enable IRDA and enable IRDA discovery. Once this opie-iraapplet is installed everything work swiftly. Now your IPAQ and the phone are connected. Note that it can happen after a reboot that you need to execute the above two modprobe. Moreover, it could be the case of shutting-down and then up again the IR-link on the phone. To create an GPRS connection we created the directory (it must have this name!) /etc/ppp/peers and we copied in there the configuration files you can download from our site. They are just a script and a chat file for AT connection on the Italian Vodafone-Omnitel. All these scripts must be executable so we did cd /etc/ppp/peers chmod 755 * Then it can happen that there is the file in /etc/ppp/options that interfere with the script configurations. Just comment it out. These are other (not-tested) information to connect to other Italian provider

How to set up a IRDA-GPRS Connection on<br />

a Compaq IPAQ with Familiar Linux.<br />

Here is how to connect your IPAQ with a GPRS mobile phone via an IRDA link and then how to<br />

let the phone act as a GPRS modem for the IPAQ. Actually, we have succeeded in the connection<br />

only with Nokia phones (6100 and 7210) and with Sharp GX20 on the Italian Vodafone network.<br />

First of all you need to set up the IRDA link on the IPAQ.<br />

In theory you just need the following commands:<br />

modprobe ircomm-tty<br />

modprobe irtty<br />

/* then you could verify everything is working properly by typing */<br />

cat /proc/sys/net/irda/discovery<br />

cat /proc/net/irda/discovery<br />

/* the first command should return 1 to indicate that the IPAQ realized to have an IRDA port installed. The second<br />

command should return a String of the mobile phone currently facing the IPAQ – remember to enable IRDA on the<br />

mobile phone */<br />

Actually, we weren’t lucky with this and our IPAQ did not think to have an IRDA installed.<br />

To overcome this problem, we downloaded from http://ipkgfind.handhelds.org the ipkg opieirdaapplet<br />

and installed it.<br />

Please note that this package has some dependencies so it is better to install it from the network,<br />

where dependencies are automatically resolved.<br />

This create an icon in the OPIE toolbar to enable IRDA and enable IRDA discovery. Once this<br />

opie-iraapplet is installed everything work swiftly.<br />

Now your IPAQ and the phone are connected. Note that it can happen after a reboot that you need<br />

to execute the above two modprobe. Moreover, it could be the case of shutting-down and then up<br />

again the IR-link on the phone.<br />

To create an GPRS connection we created the directory (it must have this name!)<br />

/etc/ppp/peers<br />

and we copied in there the configuration files you can download from our site. They are just a script<br />

and a chat file for AT connection on the Italian Vodafone-Omnitel.<br />

All these scripts must be executable so we did<br />

cd /etc/ppp/peers<br />

chmod 755 *<br />

Then it can happen that there is the file in /etc/ppp/options that interfere with the script<br />

configurations. Just comment it out.<br />

These are other (not-tested) information to connect to other Italian provider


TIM<br />

APN uni.tim.it<br />

Nome connessione a scelta (ad es: TIM)<br />

Nome utente n° telefono (senza lo 0 del prefisso)<br />

Password password registraz. Uni.TIM<br />

Indirizzo IP Dinamico<br />

DNS primario 195.120.29.30<br />

DNS secondario (vuoto)<br />

OMNITEL VODAFONE<br />

APN web.omnitel.it<br />

Nome connessione a scelta (ad es: OMNI)<br />

Nome utente (vuoto)<br />

Password (vuoto)<br />

Indirizzo IP Dinamico<br />

DNS primario 10.127.1.41<br />

DNS secondario (vuoto)<br />

WIND<br />

APN internet.wind<br />

Nome connessione a scelta (ad es: WIND)<br />

Nome utente (vuoto)<br />

Password (vuoto)<br />

Indirizzo IP Dinamico<br />

DNS primario 212.245.255.2<br />

DNS secondario 212.141.84.12<br />

Moreover, the row in the Vodafone chat-file<br />

ATD*99#<br />

Should be changed to<br />

ATD*99***X#<br />

Where X is 1, if you are using Siemens or Motorola phones<br />

Or is equal to the CID () if you are using Sony Ericsson phones.<br />

This has not been tested.<br />

Finally, but I do not know if it is really useful we created the file in /etc/ppp/pap-secrets<br />

With<br />

echo ‘ “” * “” * ’ > pap-secrets<br />

Then to run everything just type:<br />

pppd call gprsNokia or<br />

pppd call gprsSharp<br />

This is what should appear (gprsSharp)


Then you should check with ifconfig that the gprs connection is up an running (ppp0)


Then that the routing table has the default gateway pointing to the ppp0 interface.<br />

If not just type:<br />

route del default<br />

route add default gw 10.208.181.72 /* IP address associated with ppp0 */<br />

At this point you should be able to ping the web (ping www.google.com)…

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!