I want to thank mdavej for the codes quoted below.
I haven't tried all of them, but the only two that matter to me - discrete ON and OFF - work with my Vizio p502ui-b1.
I am using lirc on a Raspberry Pi. For anyone who happens to stumble across this thread, here is how the codes below can be converted into lirc codes:
The lirc config file lists the codes like so:
begin codes
INPUT 0xF40B
KEY_INFO 0x38C7
AV 0x8A75
COMP 0x5AA5
HDMI 0x639C
KEY_UP 0xA25D
KEY_TV 0x6B94
....
end codes
This is after the header information, which is device specific.
The codes are two bytes (in hex), and the 2nd byte is the 1's complement (inversion) of the first (i.e. - 38h = 00111000b the 1's complement is 11000111b or c7h).
The codes that mdavej found need to have their bit-order reversed to work. So, mdavej's code for "INPUT" is 047 (decimal) (Ignore the EFC code - it's not required).
047d = 00101111b
reverse the bit order = 11110100b
convert to hex = F4 (this gives the first byte)
take 1's complement = 0B (this gives second byte)
final lirc code is 0xF40B
I hope this information is useful to someone.
On September 20, 2014 at 17:15, mdavej said...
In case anyone is interested, here are all the EFCs and OBCs (in decimal) for every command from a Vizio XVR1TV QWERTY remote, compatible with most Vizio Smart TVs, using NEC1, Device 4 just like other Vizio codes. I've also included a few other discretes already posted earlier. These work with UEI setup codes TV/0178 or 11758:
EFC OBC Command
00090 047 Input
00053 008 power
00079 234 amazon
00083 235 netflix
00080 237 m-go
00152 053 rewind
00154 055 pause
00155 051 play
00150 054 fast fwd
00025 057 CC
00149 048 stop
00148 052 record
00251 027 Info
00041 073 exit
00171 067 menu
00039 074 Back
00244 028 guide
00168 069 up arrow
00166 070 down arrow
00170 071 left arrow
00037 072 right arrow
00164 068 OK
00103 082 yellow
00107 083 blue
00100 084 red
00104 085 green
00088 045 Vizio
00183 002 vol up
00187 003 vol down
00057 009 mute
00181 000 channel up
00185 001 channel down
00247 026 last
00117 016 0
00121 017 1
00119 018 2
00123 019 3
00116 020 4
00120 021 5
00118 022 6
00122 023 7
00245 024 8
00249 025 9
00138 119 Wide
00018 255 Dash
00054 014 sleep
00087 042 On
00216 037 Off
00141 240 media
00042 079 Setup
00193 129 HDMI 1
00191 130 HDMI 2
00195 131 HDMI 3
00188 132 HDMI 4
00225 161 AV 1
00110 214 TV Input
00180 004 q
00184 005 w
00182 006 e
00052 012 r
00056 013 t
00058 015 y
00089 041 u
00106 087 i
00229 088 o
00233 089 p
00235 091 a
00228 092 s
00232 093 d
00230 094 f
00234 095 g
00069 104 h
00073 105 j
00071 106 k
00075 107 l
00047 202 Backspace
00051 203 Tab
00068 108 z
00072 109 x
00070 110 c
00133 112 v
00136 117 b
00134 118 n
00005 120 m
00238 222 /
00014 254 Enter
00097 169 @
00241 217 colon
00044 204 Space
00226 167 ,
00093 168 .
00239 218 .com
00206 230 Y (yellow)
00077 232 B (red)
00081 233 A (green)
00210 231 X (blue)
00207 226 up
00208 229 down
00211 227 left
00204 228 right
00009 121 Q
00007 122 W
00011 123 E
00004 124 R
00008 125 T
00006 126 Y
00010 127 U
00065 137 I
00063 138 O
00067 139 P
00060 140 A
00064 141 S
00062 142 D
00066 143 F
00131 147 G
00124 148 H
00128 149 J
00126 150 K
00130 151 L
00001 153 Z
00255 154 X
00003 155 C
00252 156 V
00000 157 B
00254 158 N
00002 159 M
00096 173 %
00099 171 #
00092 172 $
00224 165 =
00172 196 +
00108 212 -
00237 216 [
00173 192 ]
00179 195 backslash
00113 209 *
00098 175 &
00095 170 !
00112 213 <
00114 215 >
00049 201 _
00177 193 (
00175 194 )
00111 210 ~
00222 166 ;
00178 199 '
00045 200 "
00115 211 ?
00048 205 DEL
00143 242 num 1
00147 243 num 2
00140 244 num 3
00144 245 num 4
00142 246 num 5
00146 247 num 6
00013 248 num 7
00017 249 num 8
00015 250 num 9
00145 241 num 0