On Fri, 20 Oct 2000 [EMAIL PROTECTED] wrote: > Message: 2 > Date: Thu, 19 Oct 2000 23:23:37 +0100 (BST) > From: Matt Newsome <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [Linux-IrDA]IrDA *almost* working - please help > Reply-To: [EMAIL PROTECTED] > > Guys, > > By doing: > > irattach /dev/ttyS0 > irmanager -d 1 > > I can get to the point where setting my palm pilot or Jornada to beam > and placing it in front of my laptop's IR port, I can get info in It would help if you could tell us what kind of laptop you have. > /proc/net/irda/discovery where it logs the type of device and the > registered name (e.g. "Matt's-Jornada") correctly. (I can provide > copious detail re. all this if necessary, but I thought I'd keep this > initial message brief). I've also managed to put the Pilot into > IrCOMM HotSync mode and get the use of IrCOMM register in > proc/net/irda/discovery, too. Finally, the device seems to ping ok > (though I'm amazed at the packet loss over IrDA...). > > What I can't do, though is anything beyond that. I can't get > pilot-xfer to sync with the Palm (complains that the serial port is > in use, minicom et al are the same), I can't successfully compile any Which port are you telling minicom to use? If it's /dev/ttyS0, that's your problem right there. You need to use the pseudo device /dev/ircomm0. That way minicom will register itself properly as an IrCOMM service for the Palm to connect to. By setting your PILOTPORT to /dev/ircomm0 you should be able to HotSync as well. I've been doiing it like this for over a year now. > obex apps which will allow me to test out IrOBEX with the Palm (and > *believe* me, I've tried some ways to compile obex-apps, etc.) There was a library referencing bug in the C-OBEX package's Makefile that I found a few months back when I was playing with OBEX but I don't remember exactly what it was offhand. I remember posting my solution to the OBEX list though, have a look in the archives. > > If there's something obvious that I'm doing wrong, I'd be very > grateful to hear any advice. Otherwise, please let me know that more > info is required and I'll post it. > > Inevitably what I'd like to do is write two apps (one linux, one > Pilot), which will pass an array of bytes over the IrDA link from one > to the other and then back again. I'm particularly interested in > keeping the IrDA protocol overheads in as I'm doing mobile comms > research (I read somewhere that you can essentially take out the > protocol stack and just use IrDA as a serial link over the physical > layer, or something). > > If anyone has any sample linux source showing how to send data over > IrCOMM, I'd be extremely grateful for that too. I have some, but it's really alpha as of about 36 hours ago and occasionally panics my machine I'm not sure if you want it or not :) Essentially, you need to make an IAS Query for IrCOMM using either IrLMP or TinyTP and have a service registered on the other side (like a terminal program) ready to respond. When it's not crashing(doh!) I've got my Palm talking IrCOMM to a Perl program using the Device::Serial module and is sitting on /dev/ircomm0 on my laptop. The one thing that helped me alot (besides printing out the Palm Reference docs) was to tear apart Till Harbaum's IR-Ping program, which is essentially an IRDA stack-crawler. You can get it at: http://www.ibr.cs.tu-bs.de/~harbaum/pilot/ My current project includes large bloody shreds of this. (It's a way to do sysadmin from your Palm basically. Go check out www.ungeek.com/geordi) > > Finally, I'm really not sure I'm using the right kernel stuff. At the > moment I'm using the default RedHat 6.0 kernel (v2.2.5). I keep > seeing people refer to patch-irda5, etc. but all the links to this go > to Dag's now defunct IrDA homepage. The only IrDA kernel patch I can > find now is for kernel 2.4, which I don't want to run yet. > I've been using 2.2.16 for a while now w/out any problems. Things got reasonably stable and usable for me around the time of 2.2.12 or so. I've had other things I needed to do with my machine since then, and there have been one or two bug fixes along the way since then. Maybe somebody else can comment on which of the 2.3 or 2.4 series works? 'dillo _______________________________________________ Linux-IrDA mailing list - [EMAIL PROTECTED] http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda
