hi
by each key pressed  air condition remote sends a burst of data , the state (on/off , mode ,fan speed,temp,vent mode,etc )

Tv controls sends the same "Key"  +- a toggle bit
with "xmode2" you can test it

you can try to capture a raw code of a state (on, heat,max speed,25,swing,etc)


Luis



El 29/04/13 17:39, Omer Enbar escribió:
Hey,

I've been trying for some while now to get lirc working with my air condition unit (remote control RC-4(HL)) without success.
The remote does not repeat the codes, so every key press only sends one burst of information.
(Another TV remote I have works perfectly with irrecord)

Here is what I tried:
irrecord (with and without --force), does not find gap, and does not register most of my clicks.
I assume this is because the key does not repeat.

mode2 works with this output:
mode2: uirt2_raw: checksum error
mode2: uirt2_raw: UIRT version 0905 ok
  1526500

     3250     3800     1950      800     1050     1750
     2000      800     1050      800     1000      900
      950      900     1000      800     1050      850
     1050     1800     1950      900     1050     1800
     1950      900      950      900     1000      850
     1000      900     1000      800     1050      850
     1000      900     1000      850     1050      850
     1050      800     1050      850     1050      800
     1050      850     1000      900     1000      800
     1000      900      950     1850     1900      900
     2900     3800     2000      850     1000     1850
     1950      800     1050      800     1050      800
     1050      800     1000      900     1050      800
     1050     1750     2000      800     1050     1800
     2000      800     1050      850     1000      900
     1050      800     1050      800     1000      900
     1000      800     1050      850     1050      800
     1050      800     1100      800     1050      800
     1000      900     1050      800     1000      900
      950      900     1000     1750     2000      850
     2950     3850     1950      850     1050     1750
     1950      900     1050      850     1000      900
      950      900     1000      850     1000      900
      950     1850     1950      850     1050     1800
     1950      900     1050      800     1050      850
     1050      800     1050      850     1050      800
     1050      800     1050      800     1050      800
     1050      800     1050      800     1050      850
     1050      850     1050      850     1000      900
      950      900     1000     1800     1950      900
     3950

trying to use this output in the config file:

begin remote
  name   test
  flags RAW_CODES
  eps            30
  aeps          100

  ptrail          0
  repeat     0     0
     begin raw_codes

          name power
             [...] CODES as shown above [...]
      end raw_codes
end remote

This does not work properly.
irw identifies the key "power", but I cannot send the key with irsend.
Here is the output:

lircd: registering local client
lircd: accepted new client on /var/run/lirc/lircd
lircd: writing command 23
lircd:  23 dd 
lircd: wrote 2
lircd: cmd res 3:
lircd:  09 05 01 
lircd: 
lircd: uirt2_raw: checksum error
lircd: uirt2: detection of uirt2 failed
lircd: uirt2: trying to detect newer uirt firmware
lircd: writing command 23
lircd:  23 dd 
lircd: wrote 2
lircd: cmd res 8:
lircd:  09 05 01 01 1a 03 04 cf 
lircd: 
lircd: uirt2_raw: UIRT version 0905 ok
lircd: writing command 21
lircd:  21 df 
lircd: wrote 2
lircd: cmd res 1:
lircd:  21 
lircd: 
lircd: tty_setdtr: 1->0
lircd: received command: "send_start ct power"
lircd: clearing transmit buffer
lircd: transmit buffer ready
lircd: Trying REMSTRUC1 transmission
lircd: uirt2_raw: UIRT version 0905
lircd: hw_uirt2_raw.c:477
lircd: table[0] = 38

lircd: hw_uirt2_raw.c:496 - signal 2000, tunit 52, bit: 0
lircd: table[0] = 16

[...]

lircd: hw_uirt2_raw.c:496 - signal 1950, tunit 52, bit: 0
lircd: expect 17, table[0] = 16

lircd: hw_uirt2_raw.c:496 - signal 900, tunit 52, bit: 0
lircd: Couldn't find 57

lircd: hw_uirt2_raw.c:496 - signal 3000, tunit 52, bit: -1
lircd: hw_uirt2_raw.c:508
lircd: uirt2_send: remote not supported
lircd: error processing command: send_start ct power
lircd: transmission failed
lircd: removed client
lircd: tty_setdtr: 0->1


I added some debugging info (shown in lines with __FILE__:__LINE__)

Can anyone help with this? If code needs to be changed I can do it with a little guidance.

Regards,
Omer.




------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr