Re: Samsung Wireless Remote Control/iPhone Protocol Decoded
Posted: Fri Apr 19, 2013 12:23 am
Okay, found it. It's KEY_CONTENTS
Samsung TV Firmware on the GO
https://forum.samygo.tv/
If my memory serves me right, there is no "keycode" you must request the list of installed ap and than create some kind of soap request...jvottele wrote:Does anyone know the KEY CODE for opening an app in the Smart Hub? Like YouTube or any other downloaded and installed app?
TIA
Jan
Code: Select all
/**
* Based on:
* http://forum.samygo.tv/viewtopic.php?f=12&t=1792
*
* You need the arduino base64 library:
* https://github.com/adamvr/arduino-base64
*/
#include <SPI.h>
#include <Ethernet.h>
#include <Base64.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x00 };
IPAddress server(192,168,1,101);
EthernetClient client;
const String aparelhoStr[] = {"KEY_1","KEY_2","KEY_3","KEY_4","KEY_5","KEY_6","KEY_7","KEY_8","KEY_9","KEY_0"};
void setup() {
Serial.begin(9600);
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
while (true) {}
}
Serial.println("Ready");
}
void loop() {
if (Serial.available() > 0) {
char leitura = Serial.read();
if (leitura == '8')
{
char inbuf[100];
aparelhoStr[8].toCharArray(inbuf, 100);
sendCmd(inbuf);
}
}
}
void sendCmd(char* cmd) {
if (client.connect(server, 55000)) {
uint8_t part1[] = {0,1,0,102,56,0,100,0,12,0,77,84,73,51,76,106,65,117,77,67,52,120,24,0,77,71,85,116,77,71,77,116,77,106,107,116,77,50,85,116,89,106,69,116,78,71,89,61,12,0,81,88,74,107,100,87,49,118,100,71,85,61,0,1,0,102,2,0,200,0,0,1,0,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
char text[100];
base64_encode(text,cmd,strlen(cmd)-1);
part1[74+0] = 5+strlen(text);
part1[74+5] = strlen(text);
for (int i = 0; i<strlen(text); i++) {
part1[74+7+i] = text[i];
}
client.write(part1,74+7+strlen(text));
client.stop();
}
}