Quantcast

Howto raw codes

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Howto raw codes

rray_1
Using Fedora 10, linux-2.6.27.10, lirc-0.8.4a, and serial transmitter
I have an old Memorex VCR. I used irrecord to record raw codes.


# Please make this file available to others
# by sending it to <[hidden email]>
#
# this config file was automatically generated
# using lirc-0.8.4a(default) on Sat Dec 20 15:39:41 2008
#
# contributed by
#
# brand:                       memorex
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

   name   memorex
   flags RAW_CODES
   eps            30
   aeps          100

   ptrail          0
   repeat     0     0
   gap          40991

       begin raw_codes

           name power
              8998    4999       0    1000       0    1000
                 0     999    1000       1    1000       1
              1000       1    1000       1     999    2000
                 0    2000       0    1999    1000       1
              1000    1000    1000    1999       0    2000
              1000     999    1000       1    1000    2000
                 0    1999       0    1000    1000       1
              1000     999    1000       1    1000       1
              1000    1000       0     999       0    1000
                 0    2000    1000     999    1000       1
              1000    2000       0    1999    1000    1000
              1000



I found that Orion VCR had the same RC and someone had already created a
lircd.conf that works perfect for my Memorex.

# this config file was automatically generated
# using lirc-0.6.2 on Thu Sep 14 22:46:50 2000
#
# contributed by Holger Nelson <[hidden email]>
#
# brand:             Orion
# model:             RC-BM
# supported devices: VCR (VH-2898 HIFI)
#

begin remote

   name  orion
   bits           16
   flags SPACE_ENC|CONST_LENGTH
   eps            30
   aeps          100

   header       9038  4404
   one           617  1618
   zero          617   504
   ptrail        619
   pre_data_bits   16
   pre_data       0x1DE
   gap          107432
   toggle_bit      0


       begin codes
           POWER                    0x000000000000C837


And the question is, how does one get from raw codes to hex codes?

Thanks
Richard Ray

------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Howto raw codes

Matt Nelson-4
I had to create my own raw codes from a mode2 dump, which works great now, but I too would like to convert my ugly raw codes to HEX if possible.  Anyone?

On Tue, Dec 23, 2008 at 11:22 AM, <[hidden email]> wrote:
Using Fedora 10, linux-2.6.27.10, lirc-0.8.4a, and serial transmitter
I have an old Memorex VCR. I used irrecord to record raw codes.


# Please make this file available to others
# by sending it to <[hidden email]>
#
# this config file was automatically generated
# using lirc-0.8.4a(default) on Sat Dec 20 15:39:41 2008
#
# contributed by
#
# brand:                       memorex
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name   memorex
  flags RAW_CODES
  eps            30
  aeps          100

  ptrail          0
  repeat     0     0
  gap          40991

      begin raw_codes

          name power
             8998    4999       0    1000       0    1000
                0     999    1000       1    1000       1
             1000       1    1000       1     999    2000
                0    2000       0    1999    1000       1
             1000    1000    1000    1999       0    2000
             1000     999    1000       1    1000    2000
                0    1999       0    1000    1000       1
             1000     999    1000       1    1000       1
             1000    1000       0     999       0    1000
                0    2000    1000     999    1000       1
             1000    2000       0    1999    1000    1000
             1000



I found that Orion VCR had the same RC and someone had already created a
lircd.conf that works perfect for my Memorex.

# this config file was automatically generated
# using lirc-0.6.2 on Thu Sep 14 22:46:50 2000
#
# contributed by Holger Nelson <[hidden email]>
#
# brand:             Orion
# model:             RC-BM
# supported devices: VCR (VH-2898 HIFI)
#

begin remote

  name  orion
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       9038  4404
  one           617  1618
  zero          617   504
  ptrail        619
  pre_data_bits   16
  pre_data       0x1DE
  gap          107432
  toggle_bit      0


      begin codes
          POWER                    0x000000000000C837


And the question is, how does one get from raw codes to hex codes?

Thanks
Richard Ray

------------------------------------------------------------------------------


------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Howto raw codes

Christoph Bartelmus
Hi!

Matt Nelson "[hidden email]" wrote:
> I had to create my own raw codes from a mode2 dump, which works great now,
> but I too would like to convert my ugly raw codes to HEX if possible.
> Anyone?

The latest version of irrecord can do it. Try the -a option.
No, it won't handle your Pioneer codes automatically. This has to be done  
manually.

Christoph

------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Howto raw codes

Christoph Bartelmus
In reply to this post by rray_1
Hi!

"[hidden email]" wrote:
[...]
> Using Fedora 10, linux-2.6.27.10, lirc-0.8.4a, and serial transmitter
> I have an old Memorex VCR. I used irrecord to record raw codes.
[...]
>            name power
>               8998    4999       0    1000       0    1000
>                  0     999    1000       1    1000       1
>               1000       1    1000       1     999    2000
>                  0    2000       0    1999    1000       1
>               1000    1000    1000    1999       0    2000

These values are obviously bad. It's not the first time I see this. The  
cause is still unclear. As you see, the values are all very close to  
multiples of 1000. So the resolution of the time measurement on your  
machine is around 1 ms. It should be at least 100 microseconds to be  
useful. Maybe you could try rebuilding your kernel with e.g power saving  
options turned off so we find out what is causing this effect.

[...]
> And the question is, how does one get from raw codes to hex codes?

If the measurements were good, irrecord would not have created a raw codes  
file in the first place.

Christoph

------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Howto raw codes

Matt Nelson-4
In reply to this post by Christoph Bartelmus
Worked GREAT!  Thanks Christoph.  I was able to run "irrecord -a /etc/lircd.conf" and it gave me my hex codes:

      begin codes
          INPUT2_1                 0x55AA5AA5
          INPUT2_2                 0xF50ADE21
          HDMI5_1                  0x55AA5AA5
          HDMI5_2                  0xF50A7E81
          HDMI6_1                  0x55AA5AA5
          HDMI6_2                  0xF50AFE01
      end codes

thanks again for your ongoing help with this.

On Tue, Dec 23, 2008 at 12:43 PM, Christoph Bartelmus <[hidden email]> wrote:
Hi!

Matt Nelson "[hidden email]" wrote:
> I had to create my own raw codes from a mode2 dump, which works great now,
> but I too would like to convert my ugly raw codes to HEX if possible.
> Anyone?

The latest version of irrecord can do it. Try the -a option.
No, it won't handle your Pioneer codes automatically. This has to be done
manually.

Christoph

------------------------------------------------------------------------------


------------------------------------------------------------------------------
Loading...