logo       

lircd with hw_udp doesn't work for me: msg#00072

hardware.lirc

Subject: lircd with hw_udp doesn't work for me

Hi,

I'm trying to get lirc (0.8.0pre3) running with the udp driver, but somehow it
doesn't work for me.

I have a little perl program running receiving the data from the remote,
adjusting the time unit (to 1/16384 seconds) and packing it into UDP packets.
(tried single packet for each pulse/pause, or larger packets, doesn't seem to
make a difference)

lircd doesn't react at all.

I added some debug output to hw_udp.c:

if (data)
printf("pulse %d\n",tmp);
else
printf("space %d\n",tmp);

(arround line 120, just before tmp and data ar OR'ed together and returned)

Strange thing is, the output looks almost exactly like the mode2 output for
the same remote, if I connect an simple receiver to the serial port.

the numbers are a bit off here and there, but thats most likely caused by the
low resoultion the udp iface has.

So it looks to me like hw_udp receives the data all right, but the further
processing is broken.

Any idea where I could start digging?

Btw, I'm compiling on x86_64 linux, your logprintf seems to be broken for
64bit, it mostly displays garbage for %d formats, like:
# ./lircd -n -d 12345
lircd: lircd(H=) ready
lircd: accepted new client on H=
lircd: Initializing UDP: (null)
lircd: Listening on port -1814334983/udp


Thanks in advance,
Ernst



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise