Re: LIRC Client
Posted: Sun Dec 11, 2011 7:54 pm
I have lirc 0.9.0 running on a Pogoplug (/w the newest Archlinuxarm installed). It seems to be working great with a MCE ir receiver and blaster.
However, the lirc client plugin for EventGhost didn't like my lirc server at all.
After a little digging it turns out that I was seeing the same problem @cstrutton mentioned below, namely, certain responses were being split into multiple events. In my base the "BEGIN" tag was always being received separately from the rest of the lirc message. That is, I would get "BEGIN", which would issue an malformed response message from the plugin, and then "LIST", "SUCCESS", ..., "END" which would also issue a malformed response message. This is very consistent with my lirc server, it happened every time.
So I made some slight changes to the plugin. Basically if I get just a "BEGIN" tag in a message I stick that begin on the start of the next buffer. A somewhat ugly and (very) simple hack but it works for me. It could be extended if you have a server that splits at other consistent points.
I see one other issue with the plugin that I am not going to fix right now. When I go to send a code it looks like this:
SEND_ONCE sharp 00000000000043aa NAV_UP
The "00000000000043aa" is my IR code and it shouldn't be there. Basically the IR code is appended to the front of all my "Actions". I just remove that from the "Event String" before saving the IR send event. I can receive events fine so this is a minor inconvenience.
Hope this helps someone else.
However, the lirc client plugin for EventGhost didn't like my lirc server at all.
After a little digging it turns out that I was seeing the same problem @cstrutton mentioned below, namely, certain responses were being split into multiple events. In my base the "BEGIN" tag was always being received separately from the rest of the lirc message. That is, I would get "BEGIN", which would issue an malformed response message from the plugin, and then "LIST", "SUCCESS", ..., "END" which would also issue a malformed response message. This is very consistent with my lirc server, it happened every time.
So I made some slight changes to the plugin. Basically if I get just a "BEGIN" tag in a message I stick that begin on the start of the next buffer. A somewhat ugly and (very) simple hack but it works for me. It could be extended if you have a server that splits at other consistent points.
I see one other issue with the plugin that I am not going to fix right now. When I go to send a code it looks like this:
SEND_ONCE sharp 00000000000043aa NAV_UP
The "00000000000043aa" is my IR code and it shouldn't be there. Basically the IR code is appended to the front of all my "Actions". I just remove that from the "Event String" before saving the IR send event. I can receive events fine so this is a minor inconvenience.
Hope this helps someone else.