From: Armin D. <di...@no...> - 2003-09-19 20:19:19
|
Hi, i'm trying to get an ir-keyboard working with lirc using a simple serial receiver. I can not use irrecord because of shift, ctrl and alt-combinations. irrecord will always record in raw-mode. The ouput from xmode2 is here: (4Kb) http://home.arcor.de/armin.diehl/xmode2.png For me it looks simple, the first pule, space, pulse seems to be a prefix, than data bits follows. There is always a small space between pules, a space of about 1 ms seems to be 0, a pulse of about 1 ms seems to be 1. Is this SPACE_ENC ? I want to create a config file and add all possible codes. After that i want to analyse the data from the keyboard. Can someone give me some help on how to create the config file. irrecord will record the following: flags CONST_LENGTH|RAW_CODES eps 30 aeps 100 ptrail 0 repeat 0 0 gap 57680 I assume that i need at least bits (could be 32), header, one and zero but i dont understand the values i have to provide for one and zero. In addition i have to specify the prefix, is this done with header <phead> <shead> ? Assuming phead and shead are uSec, it should be header 2000 1500 (Values have to be verified by mode2, only estimated from xmode2 output) But after that, i get a second pulse that is longer than the normal ones so i assume this is also part of the header. one <pone> <sone> could be one 800 250 but what about zero: zero <pzero> <szero> The pulse and space lengths representing a zero. i dont have a pulse before a space. I really would like to understand the values i have to provide. Thanks for helping me out |