Damn Small Linux - Not!
The forum for DSL-N
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to enable irda

 
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> DSL-N Tips and Tricks
View previous topic :: View next topic  
Author Message
Juanito



Joined: 11 Sep 2006
Posts: 88
Location: Dubai, U.A.E.

PostPosted: Sat Oct 21, 2006 9:46 am    Post subject: How to enable irda Reply with quote

This might be trivial to some, but I never managed to get infrared working on DSL and it took a lot of searching with Google to find the parameters to pass to get things working with DSL-N.

This works for an SMC Fast Infrared (FIR) port on a Dell Latitude D400 - using the Device Manager in W2k, I found the following:

ISA IRQ=3, DMA=3, I/O port adresses 0x0280, 0x02F0

So, after "apt-get install irda-utils", you need to do the following:
[code:1]root@dslbox:~# setserial /dev/ttyS1 uart none
root@dslbox:~# modprobe smsc-ircc2 ircc_irq=3 ircc_dma=3 ircc_sir=0x2f8 ircc_fir=0x280
root@dslbox:~# irattach irda0 -s[/code:1]
To check that the modules loaded and device irda0 was configured on IRQ3:
[code:1]root@dslbox:~# lsmod
Module Size Used by
...
smsc_ircc2 17948 0
irda 118200 1 smsc_ircc2
crc_ccitt 5888 1 irda
root@dslbox:~# cat /proc/interrupts
CPU0
...
3: 451611 XT-PIC irda0
...[/code:1]
Then you can test if the port "sees" other devices by using "irdadump" from irda-utils:
[code:1]root@dslbox:~# irdadump
17:16:25.865506 xid:cmd a1e01eea > ffffffff S=6 s=4 (14)
17:16:25.955455 xid:cmd a1e01eea > ffffffff S=6 s=5 (14)
17:16:26.045442 xid:cmd a1e01eea > ffffffff S=6 s=* dslbox hint=0400 [ Computer ] (22)
...
[brought SonyEricsson P900 mobile phone within range of FIR port]
...
17:16:29.027553 xid:rsp a1e01eea < 2498301e S=6 s=1 P900 hint=9325 [ PnP PDA/Palmtop Modem Telephony IrCOMM IrOBEX ] (21)
17:16:29.044986 xid:cmd a1e01eea > ffffffff S=6 s=* dslbox hint=0400 [ Computer ] (22)
17:16:30.739679 xid:cmd ffffffff < 2498301e S=1 s=0 (14)
17:16:30.739689 xid:rsp a1e01eea > 2498301e S=1 s=0 dslbox hint=0400 [ Computer ] (22)
17:16:30.856458 xid:cmd ffffffff < 2498301e S=1 s=* P900 hint=9325 [ PnP PDA/Palmtop Modem Telephony IrCOMM IrOBEX ] (21)
17:16:30.904344 snrm:cmd ca=fe pf=1 a1e01eea < 2498301e new-ca=8e
...[/code:1]
Of course now it works, I have to figure out what to do with it... Laughing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> DSL-N Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group