|
From: David M. <da...@ju...> - 2007-04-11 08:45:27
|
David Miller wrote on 4/6/07 7:57 AM: > Not being afraid of writing a little code, I figured I would attempt to > write an OS X driver for the eHome device and hook lirc up to it. So > far, I have successfully created a user-space daemon which connects to > the eHome and grabs the data. Being that it's userspace, I figured the > easiest way to get the data into lirc would be the UDP driver. I swiped > the readdata routine out of the linux lirc_mceusb2 driver, and attempted > to use that and modify the data to match what it looked like the UDP > driver was expecting (also found > http://sourceforge.net/mailarchive/message.php?msg_id=F35F489E75C11C4C88D1E18BC4EA39911413BD%40UKLON0424.uk.deloitte.com > ) and send it all to localhost on the udp port. But I can't seem to get > it to work. Putting some extra debug lines in hw_udp.c, it's obvious > that the data is making it to lirc, it's just not processing it for some > reason. Is there any sample code out there anywhere from a working > program that sends UDP to lirc? I've been Googling for hours and coming > up blank. I forgot to fix the subject line and was off in a different direction from using a socket by the time I was writing this email, but I've changed course again... Gave up on trying to get the UDP stuff to work (Have yet to see any evidence it does as I can't find any code for clients for it anywhere). I did wind up porting the mceusb2 driver to Mac though, in userspace (similar to the audio driver). Unfortunately I'm out of town for a couple weeks now, and finished up the code work on it on the plane on my way out, and the hardware to test it with is all at home, so it'll be a week or two before I can test it. If someone else out here has an eHome USB receiver and wants to try this out or debug it, feel free. As mentioned, I haven't tested this in the least yet, and no promises that it doesn't crash or worse, and it'll probably be about a week and a half before I can test it. (I will eventually though). -- Dave |