Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

irda with nc8000

Luca_48
Occasional Visitor

irda with nc8000

someone uses irda with nc8000 laptop?

I have tried several times without success!
I don't know the chip that nc8000 haves for infrared so have tried all avaiable kernel modules ... but no way. ..

can someone help me?

kernel 2.6 on gentoo
5 REPLIES
Kristof Imre Szabo
Occasional Visitor

Re: irda with nc8000

hi,

we have the same problem :) I found some relevant stuff on this page:
http://people.debian.org/~pxt/nc6000/

It doesn't work for me but at least something happens.


Oct 1 20:03:12 localhost toshsat1800-irdasetup: toshsat1800-irdasetup 0.2 2002/04/07 15:42 Daniele Peri
Oct 1 20:03:12 localhost toshsat1800-irdasetup: LPC47N227 chip (ver 0x5a, rev 0x0) found. Configuring:
Oct 1 20:03:12 localhost toshsat1800-irdasetup: set sirbase=0x3e8, firbase=0x130, dma=3, irq=7
Oct 1 20:03:12 localhost toshsat1800-irdasetup: set UART 2 IR mode to IrDA, auto powerdown on and powered up
Oct 1 20:03:12 localhost toshsat1800-irdasetup: LPC47N227 chip (ver 0x5a, rev 0x0) configuration successfully ended
Oct 1 20:03:12 localhost toshsat1800-irdasetup: PCI device 0x10b9:0x5a not found

if i say modprobe irda, modprobe smc-ircc it works well, but irattach says this:

Oct 1 20:04:36 localhost irattach: tcgetattr: Input/output error
Oct 1 20:04:36 localhost irattach: Stopping device /dev/ttyS2
Oct 1 20:04:36 localhost irattach: ioctl(SIOCGIFFLAGS): No such device
Oct 1 20:04:36 localhost irattach: ioctl: set_inidisc: Bad file descriptor
Oct 1 20:04:36 localhost irattach: tcsetattr: Input/output error
Oct 1 20:04:36 localhost irda: irattach startup succeeded
Oct 1 20:04:36 localhost irattach: exiting ...

What about you?
Jan Sladky
Trusted Contributor

Re: irda with nc8000

hi Luca,
there was same question few days ago, try following:
I have different hw & sw ( acer travelmate 662 LCi and SuSE 9.1.) by maybe it's gonna be usefull for you.

sundance:~ # cat /etc/modules.conf
alias /dev/ircomm0 smc-ircc

my simple script for irda start:
#!/bin/bash
#arrangements for irda communication

setserial /dev/ttyS1 uart none port 0 irq 0
modprobe irda
modprobe nsc-ircc
irattach irda0 -s

and lsmod after this:

sundance:~ # lsmod | grep ir
nsc_ircc 15676 0
ircomm_tty 24072 0
ircomm 14212 1 ircomm_tty
irda 120124 3 nsc_ircc,ircomm_tty,ircomm


try these steps and post the result

br Jan
GSM, Intelligent Networks, UNIX
Luca_48
Occasional Visitor

Re: irda with nc8000

I use kernel version 2.6.8
for the following modules
nsc-ircc
w83977af_ir
smsc-ircc2
I get the same error : no such device.

for act200l-sir, dmesg say:

found SMC SuperIO Chip (devid=0x5a rev=00 base=0x004e): LPC47N227
smsc_superio_flat(): fir: 0x7d0, sir: 0x3e8, dma: 03, irq: 3, mode: 0x0e
smsc_ircc_present: can't get sir_base of 0x3e8

for other modules like stir4200 and actisys-sir with modprobe nothing happens.

lsmod
Module Size Used by
actisys_sir 2944 0
stir4200 14468 0
crc32 4608 1 stir4200
act200l_sir 3328 0
sir_dev 17324 2 actisys_sir,act200l_sir
irda 131388 4 actisys_sir,stir4200,act200l_sir,sir_dev
crc_ccitt 2432 1 irda

when I run irattach irda0 -s nothing happens.

thanks for the help!
Luca_48
Occasional Visitor

Re: irda with nc8000

I must correct my last message:

found SMC SuperIO Chip (devid=0x5a rev=00 base=0x004e): LPC47N227
smsc_superio_flat(): fir: 0x7d0, sir: 0x3e8, dma: 03, irq: 3, mode: 0x0e
smsc_ircc_present: can't get sir_base of 0x3e8

is written from kernel after calling modprobe smsc-ircc2, and not act200l_sir.
it seems that a device is found with smsc-ircc2, but the parameters are wrong ?!

thanks again,

Luca
Kristof Imre Szabo
Occasional Visitor

Re: irda with nc8000

Ahoy!

Success! :)))

1. Download tosh1800-smcinit and install from http://irda.sourceforge.net/smcinit/ (you will need pciutils-devel for this)
2. Install setserial if it is not installed
3. Edit your /etc/sysconfig/irda

IRDA=yes
DEVICE=irda0
#DEVICE=/dev/ttyS2
#DONGLE=actisys+
DISCOVERY=yes

4. add these lines to your modules.conf
install smsc-ircc2 /usr/local/sbin/tosh1800-smcinit -s 0x3e8 -f 0x130 -m 3 -i 7 -x 0x5a -c 0x4e; /sbin/modprobe --ignore-install smsc-ircc2
pre-install smc-ircc2 /bin/setserial "/dev/ttyS2" "uart" "none"
options smc-ircc2 ircc_fir=0x130 ircc_sir=0x3e8 ircc_irq=7 ircc_dma=3
alias irda0 smsc-ircc2
5. start irda

It seems to be working for me on a Mandrake 10.1 with 2.6.8.1-10mdk kernel.