Media and Control via Ex Link

Here for general support for E series TVs, request and problem solve area.

Fredde87
Posts: 4
Joined: Wed Jan 16, 2013 10:14 am

Media and Control via Ex Link

Post by Fredde87 »

Hi there,

I was wondering if anyone has the RS232 commands needed for the Media button and the control buttons (play, pause, stop, rewind, fastforward etc)? I have been searching high and low and attempted ever combination I can think of but no luck...

The TV I have is a UN40EH6000 but I suspect it will be the same for any Samsung TV which uses these buttons...


Best Regards

Fredrik


p.s. I'll paste all my other commands I have below which I stole from a Crestron module for people if they are interested as I haven't seen all of of these on public forums. You'll have to calculate the checksum yourself though by taking 0x100 minus all the values in the command (so the checksum for Power On would be 0x100-0x08-0x22 = 0xD6)...

Code: Select all

Power_On	 0x08 0x22 0x00 0x00 0x00 0x02
Power_Off	 0x08 0x22 0x00 0x00 0x00 0x01
Power_Toggle	 0x08 0x22 0x00 0x00 0x00 0x00
Mute_Toggle	 0x08 0x22 0x02 0x00 0x00 0x00
Channel_Up_Send	 0x08 0x22 0x03 0x00 0x01 0x00
Channel_Down_Send	 0x08 0x22 0x03 0x00 0x02 0x00
Volume_Up_Indirect_Send	 0x08 0x22 0x01 0x00 0x01 0x00
Volume_Down_Indirect_Send	 0x08 0x22 0x01 0x00 0x02 0x00
Input_TV	 0x08 0x22 0x0A 0x00 0x00 0x00
Input_AV_1	 0x08 0x22 0x0A 0x00 0x01 0x00
Input_AV_2	 0x08 0x22 0x0A 0x00 0x01 0x01
Input_AV_3	 0x08 0x22 0x0A 0x00 0x01 0x02
Input_S-Video_1	 0x08 0x22 0x0A 0x00 0x02 0x00
Input_S-Video_2	 0x08 0x22 0x0A 0x00 0x02 0x01
Input_S-Video_3	 0x08 0x22 0x0A 0x00 0x02 0x02
Input_Component_1	 0x08 0x22 0x0A 0x00 0x03 0x00
Input_Component_2	 0x08 0x22 0x0A 0x00 0x03 0x01
Input_Component_3	 0x08 0x22 0x0A 0x00 0x03 0x02
Input_PC_1	 0x08 0x22 0x0A 0x00 0x04 0x00
Input_PC_2	 0x08 0x22 0x0A 0x00 0x04 0x01
Input_PC_3	 0x08 0x22 0x0A 0x00 0x04 0x02
Input_HDMI_1	 0x08 0x22 0x0A 0x00 0x05 0x00
Input_HDMI_2	 0x08 0x22 0x0A 0x00 0x05 0x01
Input_HDMI_3	 0x08 0x22 0x0A 0x00 0x05 0x02
Input_HDMI_4	 0x08 0x22 0x0A 0x00 0x05 0x03
Input_DVI_1	 0x08 0x22 0x0A 0x00 0x06 0x00
Input_DVI_2	 0x08 0x22 0x0A 0x00 0x06 0x01
Input_DVI_3	 0x08 0x22 0x0A 0x00 0x06 0x02
Mode_Dynamic(Entertain)	 0x08 0x22 0x0B 0x00 0x00 0x00
Mode_Standard	 0x08 0x22 0x0B 0x00 0x00 0x01
Mode_Movie	 0x08 0x22 0x0B 0x00 0x00 0x02
Mode_Natural	 0x08 0x22 0x0B 0x00 0x00 0x03
Mode_CAL-NIGHT	 0x08 0x22 0x0B 0x00 0x00 0x04
Mode_CAL-DAY	 0x08 0x22 0x0B 0x00 0x00 0x05
Mode_BD_Wise	 0x08 0x22 0x0B 0x00 0x00 0x06
Aspect_16x9	 0x08 0x22 0x0B 0x0A 0x01 0x00
Aspect_Zoom_1	 0x08 0x22 0x0B 0x0A 0x01 0x01
Aspect_Zoom_2	 0x08 0x22 0x0B 0x0A 0x01 0x02
Aspect_Wide_Fit	 0x08 0x22 0x0B 0x0A 0x01 0x03
Aspect_4x3	 0x08 0x22 0x0B 0x0A 0x01 0x04
Aspect_Screen_Fit	 0x08 0x22 0x0B 0x0A 0x01 0x05
Aspect_Smart_View_I	 0x08 0x22 0x0B 0x0A 0x01 0x06
Aspect_Smart_View_II	 0x08 0x22 0x0B 0x0A 0x01 0x07
Motion_Lighting_On	 0x08 0x22 0x0B 0x07 0x11 0x01
Motion_Lighting_Off	 0x08 0x22 0x0B 0x07 0x11 0x00
LED_Motion_Plus_Off	 0x08 0x22 0x0B 0x0A 0x07 0x00
LED_Motion_Plus_On(Normal)	 0x08 0x22 0x0B 0x0A 0x07 0x01
LED_Motion_Plus_Cinema	 0x08 0x22 0x0B 0x0A 0x07 0x02
LED_Motion_Plus_Ticker	 0x08 0x22 0x0B 0x0A 0x07 0x03
Auto_Motion_Plus_Off	 0x08 0x22 0x0B 0x0A 0x06 0x00
Auto_Motion_Plus_Clear	 0x08 0x22 0x0B 0x0A 0x06 0x01
Auto_Motion_Plus_Standard	 0x08 0x22 0x0B 0x0A 0x06 0x02
Auto_Motion_Plus_Smooth	 0x08 0x22 0x0B 0x0A 0x06 0x03
Auto_Motion_Plus_Custom	 0x08 0x22 0x0B 0x0A 0x06 0x04
*3D_Mode_Off	 0x08 0x22 0x0B 0x0C 0x00 0x00
*3D_Mode_2D->3D	 0x08 0x22 0x0B 0x0C 0x00 0x01
*3D_Mode_Side_By_Side	 0x08 0x22 0x0B 0x0C 0x00 0x02
*3D_Mode_Top_Bottom	 0x08 0x22 0x0B 0x0C 0x00 0x03
*3D_Mode_Line_By_Line	 0x08 0x22 0x0B 0x0C 0x00 0x04
*3D_Mode_Vertical_Line	 0x08 0x22 0x0B 0x0C 0x00 0x05
*3D_Mode_Checker_BD	 0x08 0x22 0x0B 0x0C 0x00 0x06
*3D_Mode_Frame_Sequence	 0x08 0x22 0x0B 0x0C 0x00 0x07
*3D_3D->2D_On	 0x08 0x22 0x0B 0x0C 0x01 0x01
*3D_3D->2D_Off	 0x08 0x22 0x0B 0x0C 0x01 0x00
*3D_Auto_View_Off	 0x08 0x22 0x0B 0x0C 0x05 0x00
*3D_Auto_View_Message_Notice	 0x08 0x22 0x0B 0x0C 0x05 0x01
*3D_Auto_View_On	 0x08 0x22 0x0B 0x0C 0x05 0x02
*3D_Picture_Correction	 0x08 0x22 0x0B 0x0C 0x04 0x00
Auto_Volume_Off	 0x08 0x22 0x0C 0x06 0x00 0x00
Auto_Volume_Normal	 0x08 0x22 0x0C 0x06 0x00 0x01
Auto_Volume_Night	 0x08 0x22 0x0C 0x06 0x00 0x02
Menu	 0x08 0x22 0x0D 0x00 0x00 0x1A
Up	 0x08 0x22 0x0D 0x00 0x00 0x60
Down	 0x08 0x22 0x0D 0x00 0x00 0x61
Left	 0x08 0x22 0x0D 0x00 0x00 0x65
Right	 0x08 0x22 0x0D 0x00 0x00 0x62
Enter	 0x08 0x22 0x0D 0x00 0x00 0x68
Exit	 0x08 0x22 0x0D 0x00 0x00 0x2D
Red	 0x08 0x22 0x0D 0x00 0x00 0x6C
Green	 0x08 0x22 0x0D 0x00 0x00 0x14
Yellow	 0x08 0x22 0x0D 0x00 0x00 0x15
Blue	 0x08 0x22 0x0D 0x00 0x00 0x16
Tools	 0x08 0x22 0x0D 0x00 0x00 0x4B
Return	 0x08 0x22 0x0D 0x00 0x00 0x58
Yahoo	 0x08 0x22 0x0D 0x00 0x00 0x53
Info	 0x08 0x22 0x0D 0x00 0x00 0x1F
Internet	 0x08 0x22 0x0D 0x00 0x00 0x93
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Media and Control via Ex Link

Post by juusso »

Hi,
Could you explane a little the structure of UART command? As i understood, this is 6 bytes sequence to be pasted to UART console? and checksum must be the 7th byte? For example:
Power On

Code: Select all

0x08 0x22 0x00 0x00 0x00 0x02 0xD6
Is that correct?
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
Fredde87
Posts: 4
Joined: Wed Jan 16, 2013 10:14 am

Re: Media and Control via Ex Link

Post by Fredde87 »

juuso wrote:Hi,
Could you explane a little the structure of UART command? As i understood, this is 6 bytes sequence to be pasted to UART console? Or checksum must be the 7th byte? For example:
Power On

Code: Select all

0x08 0x22 0x00 0x00 0x00 0x02 0xD6
Is that correct?
Hi yes your example is correct, the checksum is the 7th byte. Samsung TVs uses hex commands so in Crestron for example you would put in the command as "\x08\x22\x00\x00\x00\x02\xD6"
Fredde87
Posts: 4
Joined: Wed Jan 16, 2013 10:14 am

Re: Media and Control via Ex Link

Post by Fredde87 »

Sorry just a thought, does anyone know if its possible to find the Ex Link commands in the firmware somewhere? Could I extract a firmware which has Samsungs 'Medi@ 2.0' support and then maybe find the commands in a hex editor somewhere?
oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: Media and Control via Ex Link

Post by oga83 »

juuso wrote:Could you explane a little the structure of UART command?Is that correct?
Same commands than "FaNet Auto AV control" :) Can be used through USB also.

Byte1 : Header 0x08
Byte2 : 0x22; Number of bytes in command and value below; 0x22 means size=4 (In fact : (size<<3)|0x02; I don't know yet what 0x02 is)
Byte3-4-5 : Command to send on 3 bytes (0x0d 0x00 0x00 means 'send key index'); can be found in some TV user's manuel.
Byte6 : value for above command (key index for example; see here for key index)
Byte7 : CRC = 2's complement of the sum of all bytes on 8 bits

This is a simplified FaNet frame. Genuine FaNet frames have a 0x1f header and a different CRC.
oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: Media and Control via Ex Link

Post by oga83 »

Fredde87 wrote:I was wondering if anyone has the RS232 commands needed for the Media button and the control buttons (play, pause, stop, rewind, fastforward etc)?
Try :

Code: Select all

0x08 0x22 0x0d 0x00 0x00 KeyIndex CRC
KeyIndex can be found here
Fredde87
Posts: 4
Joined: Wed Jan 16, 2013 10:14 am

Re: Media and Control via Ex Link

Post by Fredde87 »

oga83 wrote:
juuso wrote:Could you explane a little the structure of UART command?Is that correct?
Same commands than "FaNet Auto AV control" :) Can be used through USB also.

Byte1 : Header 0x08
Byte2 : 0x22; Number of bytes in command and value below; 0x22 means size=4 (In fact : (size<<3)|0x02; I don't know yet what 0x02 is)
Byte3-4-5 : Command to send on 3 bytes (0x0d 0x00 0x00 means 'send key index'); can be found in some TV user's manuel.
Byte6 : value for above command (key index for example; see here for key index)
Byte7 : CRC = 2's complement of the sum of all bytes on 8 bits

This is a simplified FaNet frame. Genuine FaNet frames have a 0x1f header and a different CRC.
Hi oga83, thanks for that! Unfortunately that does not work for me. The menu button works for example (0x08 0x22 0x0D 0x00 0x00 0x1A 0xAF) but the tool button (0x08 0x22 0x0D 0x00 0x00 0x4B 0x7E) does not. I also created a script to try every single possibility (00-FF) with a 1 second delay in between each command. At no point did the TV press the Media button or the Tools button. I am not 100% sure about the rest (play, pause etc) as they don't do anything unless I am already playing a video and for now I am focused on getting the Media button to work...

Could there be another command used to access it? The reason I ask is because the other commands (not the 0x08 0x22 0x0d) seem to be roughly based on the Menu structure of the TV (all video commands are 0x08 0x22 0x0B and then the audio ones are 0x08 0x22 0x0B and they are then accessed in the same order as they appear on the menu structure). So I am thinking since you can go to Applications under the TV Menu and select Media then maybe there is a separate command to get to this menu?


Best Regards

Fredrik
oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: Media and Control via Ex Link

Post by oga83 »

Fredde87 wrote:Could there be another command used to access it?
Sorry, I don't know. VK_MENU and VK_TOOLS are working for me.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Media and Control via Ex Link

Post by juusso »

LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
E3V3A
Posts: 247
Joined: Wed Oct 31, 2012 2:31 am
Location: /dev/zero

Re: Media and Control via Ex Link

Post by E3V3A »

Very nice info here! Good thinking.

@ Oga & Fredde: I don't see why the key codes should not be at least somewhat model dependent, especially the keycodes relating "features" distinct to models. (I.e. "Smart" button, and media players etc.)

By the way, would this code work, to switch from Air to Cable/Satellite tuner?

Code: Select all

TVTuner: 08 22 0A 00 00 00 CC
HW: UE40ES5700SXXH
FW: T-MST10PDEUC-1029.0 Onboot: 1003

Post Reply

Return to “[E] Support”