Problems with pilot-xfer, Irda palm and USB-to-Irda dongle.

Follow setuid on Twitter

Hi all, I’m having problems with pilot-xfer. I’m using kernel 2.6.15, Fedora Core 4, pilot-link-0.12.0.pre2.0. I’m trying to sync a Palm via infrared with a SigmaTel USB to IrDA dongle. As root I plug in the dongle, do this:
/etc/init.d/irda start
And that returns “OK”. It loads the ircomm, irtty, irnet modules and binds /dev/ircomm0 via irattach. Irda is a script that reads this configuration file:
IRDA=yes
DEVICE=/dev/ircomm0
DONGLE=actisys+
DISCOVERY=yes
IRDA_PORT=irda0
I then run pilot-xfer --port=/dev/ircomm0 --list and immediately get:
Listening to port: /dev/ircomm0

Please press the HotSync button now...
Error listening on /dev/ircomm0
dmesg shows the device recognized, irdadump shows one packet recieved by filter (line appears when irda started, not during pilot-xfer). I’ve had it working before with an identical configuration, then reinstalled FC4 and am getting this error. Any help would be greatly appreciated. Thanks!

Update

Got it working. Problem was USB dongle was irda0 (according to dmesg):

usb 3-1: new full speed USB device using uhci_hcd and address 2
SigmaTel STIr4200 IRDA/USB found at address 2, Vendor: 66f, Product: 4200
drivers/net/irda/stir4200.c: IrDA: Registered SigmaTel device irda0

But irattach called it irda1 for some damn reason (ifconfig):
irda1     Link encap:IrLAP  HWaddr 00:00:00:00
          UP RUNNING NOARP  MTU:2048  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:8
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Running irattach irda0 -s solved the problem. Syncing is still flaky (tends to work fine several times, than fail), but rebooting solves the problem.