On 14/05/14 01:44, Jiechao Li wrote:
Hi, 

Thanks for your reply. I am sure it is a IR remote. And I think the problem is that the IR codes is too long. I tried to force the remote mode for my this remote, but I don't know the right format for config file.

The config file is described in the WinLIRC documentation (I can't find anything in the LIRC documents!):

http://winlirc.sourceforge.net/technicaldetails.html

San Bergmans provides a nice introduction to Infra Red remote control in:

http://www.sbprojects.com/knowledge/ir/index.php

I've added some comments to the mode2 output to help understand what is output:

Here is the output of mode2:

space 7213612    # severn and a bit seconds (the time since you last pressed a button)
pulse 9039    # header pulse
space 4462    # header space
pulse 648    # bit 0 pulse
space 532    # bit 0 space (zero)
pulse 660    # bit 1 pulse
space 525    # bit 1 space (zero (short space))
pulse 657    # bit 2 pulse
space 1643    # bit 2 space (one (long space))
pulse 666    # bit pulse 3
space 1662    # bit space 3 (one)
pulse 664
space 526    # bit 4 (zero)
pulse 654
space 534    # bit 5 (zero)
pulse 656
space 534    # bit 6 (zero)
pulse 631
space 568    # bit 7 (zero)
pulse 619
space 1671    # bit 8 (one)
pulse 657
space 533    # bit 9 (zero)
pulse 657
space 1643    # bit 10 (one)
pulse 659
space 1636    # bit 11 (one)
pulse 657
space 537    # bit 12 (zero)
pulse 656
space 536    # bit 13 (zero)
pulse 654
space 533    # bit 14 (zero)
pulse 662
space 528    # bit 15 (zero)
pulse 656
space 534    # bit 16 (zero)
pulse 657
space 533    # bit 17 (zero)
pulse 657
space 532    # bit 18 (zero)
pulse 657
space 532    # bit 19 (zero)
pulse 662
space 527    # bit 20 (zero)
pulse 656
space 1645    # bit 21 (one)
pulse 657
space 533    # bit 22 (zero)
pulse 654
space 535    # bit 23 (zero)
pulse 653
space 537    # bit 24 (zero)
pulse 653
space 1674    # bit 25 (one)
pulse 630
space 560    # bit 26 (zero)
pulse 630
space 560    # bit 27 (zero)
pulse 629
space 1670    # bit 28 (one)
pulse 654
space 535    # bit 29 (zero)
pulse 656
space 1643    # bit 30 (one)
pulse 661
space 530    # bit 31 (zero)
pulse 654
space 534    # bit 32 (zero)
pulse 654
space 1646    # bit 33 (one)
pulse 657
space 533    # bit 34 (zero)
pulse 660    # tail pulse

If you keep the button pressed the space before the next header pulse is the value needed for the gap parameter in the config file.
Thirty five (0..34) is an unusual number of bits is this length consistent?
Try setting the bits and pre_data_bits parameters in the config file to suit this, pre_data_bits are any constant value bits at the beginning, bits are those that change for different buttons.

Does anyone know how to put in the config file?
My TV remote's raw config file looks like this:

begin remote

  name  temp_force.conf
  flags RAW_CODES
  eps            30
  aeps          100

  gap          50548

      begin raw_codes

You should use standard names, see irrecord --list-namespace
          name key_1
Raw code data is just the the pulse and space times in a table c.f. mode2 output above.
Columns are: pulse, space, pulse, space, pulse, space
             3816    1626     552     200     538     226
              513    1199     487     291     454    1253
              448     315     435    1271     424     426
              412    1304     393    1322     391    1322
              387     369     392    1314     389     372
              390    1318     390     467     391    1326
              387    1325     389     358     393     368
              388    1320     389     372     393    1311
              392     450     393     361     395     357
              392     370     395    1327     388    1312
              390     369     394    1315     395     445
              395     358     393     368     388    1328
              390    1323     383     363     390     373
              394    1312     391     458     390    1317
              392     369     396    1311     395     360
              391     360     393     368     386    1321
              392     370     387


So what is the aps, aeps, gap of my AC remote? Do I just put every number after the 'name key_1'? Could anyone help me? Thanks

Jiechao

I recomend the standard values for aps & aeps, see above for the gap. irrecord can only automaticly recognise some protocols but can record the buttons given the correct values in a generic config file.

Hope this helps.

Martin