|
From: Kristian L. <kri...@ho...> - 2009-01-22 19:54:31
|
Hi Christoph
Sorry, I'm new to this LIRC driver plugin system.
I have setup the "vtable" structure like:
struct hardware hw_tira = {
"/dev/ttyUSB0", /* Default device */
-1, /* fd */
LIRC_CAN_REC_LIRCCODE, /* Features */
0, /* send_mode */
LIRC_MODE_LIRCCODE, /* rec_mode */
CODE_LENGTH, /* code_length */
tira_init, /* init_func */
NULL, /* config_func */
tira_deinit, /* deinit_func */
NULL, /* send_func */
tira_rec, /* rec_func */
tira_decode, /* decode_func */
NULL, /* ioctl_func */
NULL, /* readdata */
"tira"
};
where
#define NUMBER_BYTES 15
#define NO_OF_USED_BYTES 4
#define CODE_LENGTH NO_OF_USED_BYTES*8
for each ir_code I use the lowest 4 bytes for my codes
It seems like the tira_rec method gets called and does its work and fill out the code-variable
What happens when
m = decode_all(remotes);
gets called I do not know ??
The tira_decode method does not get called!
What should have happened?
Best Regards,
Kristian
> Date: Thu, 22 Jan 2009 19:43:00 +0100
> From: li...@ba...
> To: lir...@li...
> Subject: Re: How to generate mapping?
>
> Hi!
>
> Kristian Lippert "kri...@ho..." wrote:
> > First irrecord ask me to press return and then it asks me to press any
> > button I press many different buttons on the remote (I assume it is the
> > remote I must press buttons on) Then nothing happens and my config file
> > stays empty!
>
> This indicates that your driver is not working.
>
> Christoph
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
http://www.microsoft.com/windows/windowslive/photos.aspx |