IrDA How-To

From OESF

(Difference between revisions)
Jump to: navigation, search
Current revision (05:34, 28 November 2004) (edit) (undo)
 

Line 4:

Line 4:

Step 3 once per reboot
Step 3 once per reboot
step 4 and 5 every time you dial in
step 4 and 5 every time you dial in
- 
DEVICES KNOWN TO WORK
DEVICES KNOWN TO WORK

Line 16:

Line 15:

Nokia 5210 (Victor Donselaar)
Nokia 5210 (Victor Donselaar)
Ericsson R320s (Xander Harkness)
Ericsson R320s (Xander Harkness)
- 
==STEP 1: Create dialup entry==
==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.
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.
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==
==STEP 2: Fix dialup entry==

Line 28:

Line 25:

ie:
ie:
echo /dev/ircomm >> /etc/ppp/peers/dialup_file_name
echo /dev/ircomm >> /etc/ppp/peers/dialup_file_name
- 
==STEP 3: Run irattach==
==STEP 3: Run irattach==

Line 35:

Line 31:

busybox dmesg (should read IrDA: Registered device irda1)
busybox dmesg (should read IrDA: Registered device irda1)
ifconfig (irda1 should be in the list)
ifconfig (irda1 should be in the list)
- 
==STEP 4: 'Connect' phone==
==STEP 4: 'Connect' phone==

Line 47:

Line 42:

If it's not 'detected' (nickname line is not there) make sure you've enabled IrDA on you phone.
If it's not 'detected' (nickname line is not there) make sure you've enabled IrDA on you phone.
- 
==STEP 5: Dial in==
==STEP 5: Dial in==

Line 58:

Line 52:

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.
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..
Try to do a ping test first..
- 
IF PPPD HANGS ON ATZ
IF PPPD HANGS ON ATZ

Line 64:

Line 57:

You can change this by editting the /etc/ppp/peers/file file, or by using the slider on the network preferences.
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.
Note however, that the network preferences overwrite the file, and step 2 must be repeated.
- 
OTHER INFO
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.
You might want to check out http://www.linuxdoc.org/HOWTO/Infrared-HOWTO/infrared-howto-s-cellular-phone-connection.html for using other cellphones.

Current revision

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