# contributed by      Jordan Hazen  <jnh@aug.com>
#
# brand:                         Echostar / DishNetwork (ExpressVu)
# model no. of remote control:   "blue-button" remote set for codeset #9
# supported devices:   Most models of Echostar IRDs: 2700, 4700, 5000 etc.
#                      Receiver must be set to a matching remote codeset,
#                      per instructions in the manual.  There are 16 choices
#                      available, to avoid interference between nearby
#                      units.  I've recorded codes #9 (here) and #6.
#
# Pulse timing is more critical than usual for these receivers.  You may
# have to play with the one/zero widths to get it working on a particular
# computer.  A kernel compiled with HZ set to 1000 or 1024 (rather than
# 100) is also helpful.

begin remote

  name  d9
  bits           16
  flags SPACE_ENC
  eps            30
  aeps          100

# socket370 Via C3 / via686b motherboard
  header        370  6020
  one           472  2770
  zero          472  1665
  ptrail        480
  gap           6200

# old socket7 k6 MB:
#  header        350  6000
#  one           465  2768
#  zero          465  1636
#  ptrail        467
#  gap           6092

# first attempt, from yet another motherboard:
#  one           324  2800
#  zero          324  1700
#  ptrail        324
#  gap          6000

  min_repeat      4
  toggle_bit      0

  frequency     56000

      begin codes
	'GUIDE'               0x000000000000AFBF    # guide
	'SELECT'              0x000000000000BFBF    # select
	'UP'                  0x00000000000097BF    # up
	'DOWN'                0x00000000000087BF    # down
	'LEFT'                0x0000000000008FBF    # left
	'RIGHT'               0x0000000000009FBF    # right
	'INFO'                0x000000000000FFBF    # info
	'VIEW'                0x000000000000A7BF    # view
	'CANCEL'              0x000000000000B7BF    # cancel
	'RECALL'              0x00000000000093BF    # recall
	'MENU'                0x000000000000D3BF    # menu
	'1'                   0x000000000000EFBF    # 1
	'2'                   0x000000000000EBBF    # 2
	'3'                   0x000000000000E7BF    # 3
	'4'                   0x000000000000DFBF    # 4
	'5'                   0x000000000000DBBF    # 5
	'6'                   0x000000000000D7BF    # 6
	'7'                   0x000000000000CFBF    # 7
	'8'                   0x000000000000CBBF    # 8
	'9'                   0x000000000000C7BF    # 9
	'0'                   0x000000000000BBBF    # 0
	'POWER'               0x000000000000F7BF    # power
	'SCROLLUP'            0x000000000000C3AF    # scrollup
	'SCROLLDOWN'          0x000000000000E3AF    # scrolldown
	'RECORD'              0x00000000000083BF    # record
      end codes

end remote

# contributed by      Jordan Hazen  <jnh@aug.com>
#
# brand:                         Echostar / DishNetwork (ExpressVu)
# model no. of remote control:   "blue-button" remote set for codeset #6
# supported devices:   Most models of Echostar IRDs: 2700, 4700, 5000 etc.
#                      Receiver must be set to a matching remote codeset,
#                      per instructions in the manual.  There are 16 choices
#                      available, to avoid interference between nearby
#                      units.  I've recorded codes #6 (here) and #9.
#
# Pulse timing is more critical than usual for these receivers.  You may
# have to play with the one/zero widths to get it working on a particular
# computer.  A kernel compiled with HZ set to 1000 or 1024 (rather than
# 100) is also helpful.

begin remote

  name  d6
  bits           16
  flags SPACE_ENC
  eps            30
  aeps          100

  header        370  6020
  one           472  2770
  zero          472  1665
  ptrail        480
  gap           6200

# OLD K6 MB:
#  header        370  6020
#  one           472  2770
#  zero          472  1655
#  ptrail        480
#  gap           6110

#  one           324  2800
#  zero          324  1700
#  ptrail        324
#  gap          6000

  min_repeat      4
  toggle_bit      0

  frequency     56000

      begin codes
	'SELECT'              0x000000000000BD7F    # select
	'0'                   0x000000000000B97F    # 0
	'1'                   0x000000000000ED7F    # 1
	'2'                   0x000000000000E97F    # 2
	'3'                   0x000000000000E57F    # 3
	'4'                   0x000000000000DD7F    # 4
	'5'                   0x000000000000D97F    # 5
	'6'                   0x000000000000D57F    # 6
	'7'                   0x000000000000CD7F    # 7
	'8'                   0x000000000000C97F    # 8
	'9'                   0x000000000000C57F    # 9
	'*'                   0x000000000000697F    # *
	'0'                   0x000000000000B97F    # 0
	'#'                   0x000000000000657F    # #
	'RECALL'              0x000000000000917F    # recall
	'INFO'                0x000000000000FD7F    # info
	'VIEW'                0x000000000000A57F    # view
	'CANCEL'              0x000000000000B57F    # cancel
	'UP'                  0x000000000000957F    # up
	'DOWN'                0x000000000000857F    # down
	'LEFT'                0x0000000000008D7F    # left
	'RIGHT'               0x0000000000009D7F    # right
	'GUIDE'               0x000000000000AD7F    # guide
	'MENU'                0x000000000000D17F    # menu
	'SCROLLUP'            0x000000000000C16F    # scrollup
	'SCROLLDOWN'          0x000000000000E16F    # scrolldown
	'POWER'               0x000000000000F57F    # power
	'TVVIDEO'             0x000000000000A17F    # tvvideo
	'SYSINFO'             0x0000000000006D7F    # sysinfo
	'RECORD'              0x000000000000817F    # record
      end codes

end remote
