# this config file was generated with the help of
# xmode2-0.7.0 on 2004-11-12
#
# contributed by Adrien Beau <adrien.put_my_name_here@free.fr>
#
# brand:                       Akai
# model no. of remote control: RC-W212F
# devices being controlled by this remote: Akai VS-G37
#
# This remote is sold with the Akai VS-G37 VCR. On the front are
# keys to control the record and playback abilities of the VCR, on
# the back are keys to program future recordings, and to set up
# VCR channels and clock if need be. Only one of the sides is
# active at a given time, this is selected using the blue switch
# on the side of the remote.
#
# The remote uses a modified NEC encoding, it is unlikely you will
# be able to use it to control other devices. On the program side
# of the remote is an LCD screen, which displays various
# information, usually the current time. Future recordings can be
# set up on the remote (using the ShowView or Program keys) before
# they are beamed to the VCR with the Transmit key. Similarly, the
# time and channels can be set using the Clock_Channel key, and
# then sent to the VCR for clock synchronisation or programmed
# channels alteration.
#
# These three operations are done using a custom extension to the
# NEC encoding; the format of the bits is the same, the bytes are
# still sent by complementary pairs, but many more pairs than
# usual are sent.  For example, 18 bytes are sent to the VCR when
# the time is being set, instead of 4. Of course, these format are
# of no use to LIRC, so I have not attempted to decypher them. (I
# have looked at the data sent for time setting; it is quite
# straightforward.)
#
# Note that the "F" at the end of the remote name probably stands
# for "French", the language in which the various texts on the
# remote are written. Other language versions probably exist, and
# send the very same codes. I did not want to use French for the
# key names in this configuration file, so I tried to use the most
# sensible English equivalents.
#
# The timings and protocol information for the NEC encoding were
# obtained from http://www.ustr.net/infrared/nec.shtml
# This helped me ensure that the information below is accurate and
# can be used as a basis for other NEC-encoded remotes. I had to
# increase the eps to 60% before the remote could be read by my
# SIR dongle. The gap was measured with xmode2, and tuned to get
# better key repeats.

begin remote

  name  Akai_RC-W212F
  bits           32
  flags SPACE_ENC|REVERSE
  eps            60
  aeps          100

  header       8960  4200
  one           560  1680
  zero          560   560
  ptrail        560
  gap          85000
  repeat       8960  2240
  frequency    36000

      begin codes
#         Keys on the front of the remote.
	'POWER'               0x00000000EC137789    # Power
	'EJECT'               0x00000000EF107789    # Eject
	'RESET_COUNTER'       0x00000000F50A7789    # Reset_Counter
	'TV/VCR'              0x00000000E8177789    # TV/VCR
	'PROGRAM_DOWN'        0x00000000F10E7789    # Program_Down
	'PROGRAM_UP'          0x00000000F20D7789    # Program_Up
	'REDUCE_SPEED'        0x00000000E41B7789    # Reduce_Speed
	'STILL_IMAGE'         0x00000000F6097789    # Still_Image
	'INCREASE_SPEED'      0x00000000E51A7789    # Increase_Speed
	'PREVIOUS_TRACK'      0x00000000F7087789    # Previous_Track
	'I-HQ'                0x00000000EB147789    # I-HQ
	'NEXT_TRACK'          0x00000000F8077789    # Next_Track
	'FAST_BACKWARD'       0x00000000FD027789    # Fast_Backward
	'PLAY'                0x00000000F9067789    # Play
	'FAST_FORWARD'        0x00000000FE017789    # Fast_Forward
	'RECORD'              0x00000000E9167789    # Record
	'STOP'                0x00000000FC037789    # Stop
	'PAUSE'               0x00000000F00F7789    # Pause

#         Keys on the back of the remote. The ShowView,
#         Clock_Channel, Program and Transmit keys send no code on
#         their own. See above for explanations.
	'ONE'                 0x00000000BF407789    # One
	'TWO'                 0x00000000BE417789    # Two
	'THREE'               0x00000000BD427789    # Three
	'FOUR'                0x00000000BC437789    # Four
	'FIVE'                0x00000000BB447789    # Five
	'SIX'                 0x00000000BA457789    # Six
	'SEVEN'               0x00000000B9467789    # Seven
	'EIGHT'               0x00000000B8477789    # Eight
	'NINE'                0x00000000B7487789    # Nine
	'ZERO'                0x00000000B6497789    # Zero
	'AV'                  0x00000000B54A7789    # AV
	'DISPLAY'             0x00000000AE517789    # Display
	'AUTO_ALIGN'          0x00000000E7187789    # Auto_Align
	'PROG_FUNCT'          0x00000000E11E7789    # Prog_Funct
	'MENU'                0x00000000B04F7789    # Menu
	'UP'                  0x00000000A35C7789    # Up
	'DOWN'                0x00000000A25D7789    # Down
	'LEFT'                0x00000000A6597789    # Left
	'RIGHT'               0x00000000A7587789    # Right
	'CANCEL'              0x00000000A9567789    # Cancel
	'OK'                  0x00000000AF507789    # OK
	'INTERACTIVE_PROGRAM'  0x00000000A05F7789    # Interactive_Program
	'PROGRAM_LIST'        0x00000000AB547789    # Program_List
	'TIMER'               0x00000000AC537789    # Timer
      end codes

end remote
