IrDA How-To

From OESF

Revision as of 05:31, 28 November 2004 by Offroadgeek (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

IrDA on a cellphone How-To

Step 1 and 2 only need to be done once Step 3 once per reboot step 4 and 5 every time you dial in


DEVICES KNOWN TO WORK The following devices have been tested and work: Siemens S35i (Joris Verschoor) Nokia 3360 (Martin Dorschler) Nokia 6210 (Piotr Jachimczyk) Nokia 7110 (Max Judin) Nokia 8210 (Simon Anderson) Nokia 8290 (Thomas Brady) Nokia 5210 (Victor Donselaar) Ericsson R320s (Xander Harkness)


Contents

STEP 1: Create dialup entry

Create a PPP entry using the Network preferences application. Make sure you set the baudrate not too high for your phone. Most phones want 19200 bps. Use the slider to set the speed. Verify a file was created in /etc/ppp/peers, and verify an entry in /etc/ppp/chap-secrets is created.


STEP 2: Fix dialup entry

Append to the file in /etc/ppp/peers the line: /dev/ircomm You can use echo, or use an editor. ie: echo /dev/ircomm >> /etc/ppp/peers/dialup_file_name


STEP 3: Run irattach

Run: irattach /dev/ttyS2 -s 1 Verify it ran with: busybox dmesg (should read IrDA: Registered device irda1) ifconfig (irda1 should be in the list)


STEP 4: 'Connect' phone

Place your phone around the PDA, and verify by running: cat /proc/net/irda/discovery You should get something like:

IrLMP: Discovery log:

nickname: SIEMENS S35, hint: 0x9024, saddr: 0xd5c0af4c, daddr: 0x09091312

If it's not 'detected' (nickname line is not there) make sure you've enabled IrDA on you phone.


STEP 5: Dial in

Run: pppd call ie: pppd call DialupPPP1006478274

If everything is good, pppd will run in the background. You can check using: busybox ps x | grep pppd Verify your connection by running ifconfig again. You should see a ppp0 adapter in the list. Once you see an IP address, you're connected. Try to do a ping test first..


IF PPPD HANGS ON ATZ If pppd hangs on ATZ, you probably didn't set the baudrate properly. Most phone should be set for 19200bps. You can change this by editting the /etc/ppp/peers/file file, or by using the slider on the network preferences. Note however, that the network preferences overwrite the file, and step 2 must be repeated.


OTHER INFO You might want to check out http://www.linuxdoc.org/HOWTO/Infrared-HOWTO/infrared-howto-s-cellular-phone-connection.html for using other cellphones.

Personal tools