Antwort schreiben 
 
Themabewertung:
  • 0 Bewertungen - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
IP control of Viera TV
14.02.2014, 21:17
Beitrag #1
IP control of Viera TV
I'm trying to Control my TV trough IP, I got it to work trough Chroome REST:

The URL I send it following: http://192.168.155.103:55000/nrc/control_0/

and then I send a Post request


HEADERS:
Code:
Accept: text/xml
Cache-Control: no-cache
Pragma: no-cache
SOAPACTION: "urn:panasonic-com:service:p00NetworkControl:1#X_SendKey"
Content-Length: 324
Content-Type: text/xml;charset="utf-8"

PAYLOAD:(RAW)
Code:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:X_SendKey xmlns:u="urn:panasonic-com:service:p00NetworkControl:1">
<X_KeyEvent>NRC_MUTE-ONOFF</X_KeyEvent>
</u:X_SendKey>
</s:Body>
</s:Envelope>

Then I get it to workSmile

But how to make a CS of this in Nomos?

Everything can be done, there is just different ways to achieve it!!!
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
15.02.2014, 11:42
Beitrag #2
RE: IP control of Viera TV
This looks like dlna.Wink

the simplest way would be to let nomos write the upnp config for this device and then modify the config to match your needs.

Sascha Streng
Entwicklung
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
15.02.2014, 15:45
Beitrag #3
RE: IP control of Viera TV
Yes, you're rightSmile

When I created the upnp config with NOMOS I got this:

Code:
// VIERA DT50 Series - Panasonic VIErA (Version ) manufactured by Panasonic
// device type: urn:panasonic-com:device:p00RemoteController:1
[CONFIG];
ACTIVE;YES;
UDN;uuid:4D454930-0200-1000-8001-8CC121150F43

[SERVICE=urn:panasonic-com:service:p00NetworkControl:1];
// available state variables:
// X_KeyEvent, X_String, X_InputMode (auto-update), X_KeyboardType (auto-update), X_PortNumber, X_ScreenState (auto-update)
// X_InfoType, X_AppInfo (auto-update), X_AppType, X_LaunchKeyword, X_SessionId, X_ConnectKeyword, X_ConnectAddr
// X_Message, X_QueryKeyword
X_SENDKEY;X_SendKey;X_KeyEvent=[[X_KeyEvent]];
X_SENDSTRING;X_SendString;X_String=[[X_String]];
X_GETINPUTMODE;X_GetInputMode;X_InputMode=\*;
X_GETKEYBOARDTYPE;X_GetKeyboardType;X_KeyboardType=\*;
X_GETVECTORINFO;X_GetVectorInfo;X_PortNumber=\*;
X_GETGAMEPADINFO;X_GetGamepadInfo;X_PortNumber=\*;
X_GETAPPINFO;X_GetAppInfo;X_InfoType=[[X_InfoType]];X_AppInfo=\*;
X_LAUNCHAPP;X_LaunchApp;X_AppType=[[X_AppType]];X_LaunchKeyword=[[X_LaunchKeyword]];X_SessionId=\*;
X_CONNECTAPP;X_ConnectApp;X_AppType=[[X_AppType]];X_SessionId=[[X_SessionId]];X_ConnectKeyword=[[X_ConnectKeyword]];X_ConnectAddr=[[X_ConnectAddr]];X_Message=\*;
X_QUERYAPP;X_QueryApp;X_AppType=[[X_AppType]];X_SessionId=[[X_SessionId]];X_QueryKeyword=[[X_QueryKeyword]];X_Message=\*;

Could you give me an example how to make the MUTE command with this file?

Everything can be done, there is just different ways to achieve it!!!
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
15.02.2014, 16:44
Beitrag #4
RE: IP control of Viera TV
I have tried this:

<DT50-2><X_SENDKEY=NRC_MUTE-ONOFF></DT50-2>

But that doesn't work..

Code:
15:43:56.451 - network: udp message from 192.168.155.102:1037, size 43 bytes
15:43:56.455 - parser: parsing sequence: <DT50-2><X_SENDKEY=NRC_MUTE-ONOFF></DT50-2>
15:43:56.458 - parser: command: DT50-2 - X_SENDKEY=NRC_MUTE-ONOFF
15:43:56.496 - parser: reply sequence: <DT50-2>X_SENDKEY=|OK</DT50-2>
15:43:56.505 - network: message parsed
-------------------

Everything can be done, there is just different ways to achieve it!!!
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
15.02.2014, 16:53 (Dieser Beitrag wurde zuletzt bearbeitet: 15.02.2014 16:54 von jamel@2ctrl.)
Beitrag #5
RE: IP control of Viera TV
After I activated <SYS><UPNPDEBUG=YES></SYS> I got this in the Log:

Code:
15:52:23.388 - network: udp message from 192.168.155.102:1037, size 43 bytes
15:52:23.391 - parser: parsing sequence: <DT50-2><X_SENDKEY=NRC_MUTE-ONOFF></DT50-2>
15:52:23.394 - parser: command: DT50-2 - X_SENDKEY=NRC_MUTE-ONOFF
15:52:23.396 - upnp: trying to fetch value for statevar 'X_KeyEvent'
15:52:23.412 - upnp: ERROR: statevar 'X_KeyEvent' still unknown
15:52:23.415 - upnp: action 'X_SendKey' :
15:52:23.417 - upnp: arg: X_KeyEvent = [[X_KeyEvent]]
15:52:23.435 - upnp: action 'X_SendKey' complete
15:52:23.437 - parser: reply sequence: <DT50-2>X_SENDKEY=|OK</DT50-2>
15:52:23.446 - network: message parsed
-------------------

Everything can be done, there is just different ways to achieve it!!!
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
15.02.2014, 17:45
Beitrag #6
RE: IP control of Viera TV
Please modify your .csv as follows:
from
Code:
X_SENDKEY;X_SendKey;X_KeyEvent=[[X_KeyEvent]];
to
Code:
X_SENDKEY;X_SendKey;X_KeyEvent=\#;
and then try
Code:
<DT50-2><X_SENDKEY=NRC_MUTE-ONOFF></DT50-2>
again.

Sascha Streng
Entwicklung
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
16.02.2014, 13:44 (Dieser Beitrag wurde zuletzt bearbeitet: 16.02.2014 13:44 von jamel@2ctrl.)
Beitrag #7
RE: IP control of Viera TV
(15.02.2014 17:45)no sleep schrieb:  Please modify your .csv as follows:
from
Code:
X_SENDKEY;X_SendKey;X_KeyEvent=[[X_KeyEvent]];
to
Code:
X_SENDKEY;X_SendKey;X_KeyEvent=\#;
and then try
Code:
<DT50-2><X_SENDKEY=NRC_MUTE-ONOFF></DT50-2>
again.

Thank You Sascha.

Works perfectSmile

If this is for help to someone, here is all the commands I tried and works for me:

"NRC_CH_DOWN-ONOFF", // channel down
"NRC_CH_UP-ONOFF", // channel up
"NRC_VOLUP-ONOFF", // volume up
"NRC_VOLDOWN-ONOFF", // volume down
"NRC_MUTE-ONOFF", // mute
"NRC_TV-ONOFF", // TV
"NRC_CHG_INPUT-ONOFF", // AV,
"NRC_RED-ONOFF", // red
"NRC_GREEN-ONOFF", // green
"NRC_YELLOW-ONOFF", // yellow
"NRC_BLUE-ONOFF", // blue
"NRC_VTOOLS-ONOFF", // VIERA tools
"NRC_CANCEL-ONOFF", // Cancel / Exit
"NRC_SUBMENU-ONOFF", // Option
"NRC_RETURN-ONOFF", // Return
"NRC_ENTER-ONOFF", // Control Center click / enter
"NRC_RIGHT-ONOFF", // Control RIGHT
"NRC_LEFT-ONOFF", // Control LEFT
"NRC_UP-ONOFF", // Control UP
"NRC_DOWN-ONOFF", // Control DOWN
"NRC_3D-ONOFF", // 3D button
"NRC_SD_CARD-ONOFF", // SD-card
"NRC_DISP_MODE-ONOFF", // Display mode / Aspect ratio
"NRC_MENU-ONOFF", // Menu
"NRC_INTERNET-ONOFF", // VIERA connect
"NRC_VIERA_LINK-ONOFF", // VIERA link
"NRC_EPG-ONOFF", // Guide / EPG
"NRC_TEXT-ONOFF", // Text / TTV
"NRC_STTL-ONOFF", // STTL / Subtitles
"NRC_INFO-ONOFF", // info
"NRC_INDEX-ONOFF", // TTV index
"NRC_HOLD-ONOFF", // TTV hold / image freeze
"NRC_R_TUNE-ONOFF", // Last view
"NRC_POWER-ONOFF", // Power off

"NRC_REW-ONOFF", // rewind
"NRC_PLAY-ONOFF", // play
"NRC_FF-ONOFF", // fast forward
"NRC_SKIP_PREV-ONOFF", // skip previous
"NRC_PAUSE-ONOFF", // pause
"NRC_SKIP_NEXT-ONOFF", // skip next
"NRC_STOP-ONOFF", // stop
"NRC_REC-ONOFF", // record

// numeric buttons
"NRC_D1-ONOFF",
"NRC_D2-ONOFF",
"NRC_D3-ONOFF",
"NRC_D4-ONOFF",
"NRC_D5-ONOFF",
"NRC_D6-ONOFF",
"NRC_D7-ONOFF",
"NRC_D8-ONOFF",
"NRC_D9-ONOFF",
"NRC_D0-ONOFF",

"NRC_P_NR-ONOFF", // P-NR (Noise reduction)
"NRC_OFFTIMER-ONOFF", // off timer
"NRC_R_TUNE-ONOFF", // Seems to do the same as INFO


// Below, I don't know what they do..
"NRC_CHG_NETWORK-ONOFF",
"NRC_CC-ONOFF",
"NRC_SAP-ONOFF",
"NRC_RECLIST-ONOFF",
"NRC_DRIVE-ONOFF",
"NRC_DATA-ONOFF",
"NRC_BD-ONOFF",
"NRC_FAVORITE-ONOFF",
"NRC_DIGA_CTL-ONOFF",
"NRC_VOD-ONOFF",
"NRC_ECO-ONOFF",
"NRC_GAME-ONOFF",
"NRC_EZ_SYNC-ONOFF",
"NRC_PICTAI-ONOFF",
"NRC_MPX-ONOFF",
"NRC_SPLIT-ONOFF",
"NRC_SWAP-ONOFF",
"NRC_R_SCREEN-ONOFF",
"NRC_30S_SKIP-ONOFF",
"NRC_PROG-ONOFF",
"NRC_TV_MUTE_ON-ONOFF",
"NRC_TV_MUTE_OFF-ONOFF",
"NRC_DMS_CH_UP-ONOFF",
"NRC_DMS_CH_DOWN-ONOFF"

Everything can be done, there is just different ways to achieve it!!!
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
16.02.2014, 16:01
Beitrag #8
RE: IP control of Viera TV
You're welcome! Wink
you can also modify the .csv to make the commands more "human-readable":
Code:
MUTE_TOGGLE;X_SendKey;X_KeyEvent=NRC_MUTE-ONOFF;
VOL_UP;X_SendKey;X_KeyEvent=NRC_VOLUP-ONOFF;
...
and then you can use MUTE_TOGGLE and VOL_UP as dedicated commands without arguments.
You're free to change the first column of any command and you can add as many commands as you like.

Sascha Streng
Entwicklung
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
16.02.2014, 23:19
Beitrag #9
RE: IP control of Viera TV
THX Sascha!

I already made a Command ServerSmile

Code:
[CONFIG];
ACTIVE;YES
DEGBUG;YES
SERVERIP;[SYSTEMIP]
SERVERPORT;1037
SERVERPROTOCOL;UDP
SERVERMODE;ASCII
SERVERTIMEOUT_IN_MS;none
MATCHING;FULL



[COMMANDS]
SETVOLUME;<DT50><SETVOLUME=\#></DT50>;
GETVOLUME;<DT50><GETVOLUME></DT50>;
BUTTON_VOLUME_UP;<DT50-2><X_SENDKEY=NRC_VOLUP-ONOFF><DT50-2>;
BUTTON_VOLUME_DOWN;<DT50-2><X_SENDKEY=NRC_VOLDOWN-ONOFF><DT50-2>;
BUTTON_MUTE;<DT50-2><X_SENDKEY=NRC_MUTE-ONOFF><DT50-2>;
POWER_OFF;<DT50-2><X_SENDKEY=NRC_POWER-ONOFF></DT50-2>;
BUTTON_ROOT_MENU;<DT50-2><X_SENDKEY=NRC_MENU-ONOFF></DT50>;
BUTTON_EXIT;<DT50-2><X_SENDKEY=NRC_CANCEL-ONOFF></DT50-2>;
BUTTON_CANCEL;<DT50-2><X_SENDKEY=NRC_CANCEL-ONOFF></DT50-2>;
BUTTON_UP;<DT50-2><X_SENDKEY=NRC_UP-ONOFF><DT50-2>;
BUTTON_RIGHT;<DT50-2><X_SENDKEY=NRC_RIGHT-ONOFF><DT50-2>;
BUTTON_DOWN;<DT50-2><X_SENDKEY=NRC_DOWN-ONOFF><DT50-2>;
BUTTON_LEFT;<DT50-2><X_SENDKEY=NRC_LEFT-ONOFF><DT50-2>;
BUTTON_SELECT;<DT50-2><X_SENDKEY=NRC_ENTER-ONOFF><DT50-2>;
BUTTON_ENTER;<DT50-2><X_SENDKEY=NRC_ENTER-ONOFF><DT50-2>;
BUTTON_INFO;<DT50-2><X_SENDKEY=NRC_INFO-ONOFF><DT50-2>;
BUTTON_GUIDE;<DT50-2><X_SENDKEY=NRC_EPG-ONOFF><DT50-2>;
BUTTON_CHANNEL_UP;<DT50-2><X_SENDKEY=NRC_CH_UP-ONOFF><DT50-2>;
BUTTON_CHANNEL_DOWN;<DT50-2><X_SENDKEY=NRC_CH_DOWN-ONOFF><DT50-2>;
BUTTON_NUMBER1;<DT50-2><X_SENDKEY=NRC_D1-ONOFF><DT50-2>;
BUTTON_NUMBER2;<DT50-2><X_SENDKEY=NRC_D2-ONOFF><DT50-2>;
BUTTON_NUMBER3;<DT50-2><X_SENDKEY=NRC_D3-ONOFF><DT50-2>;
BUTTON_NUMBER4;<DT50-2><X_SENDKEY=NRC_D4-ONOFF><DT50-2>;
BUTTON_NUMBER5;<DT50-2><X_SENDKEY=NRC_D5-ONOFF><DT50-2>;
BUTTON_NUMBER6;<DT50-2><X_SENDKEY=NRC_D6-ONOFF><DT50-2>;
BUTTON_NUMBER7;<DT50-2><X_SENDKEY=NRC_D7-ONOFF><DT50-2>;
BUTTON_NUMBER8;<DT50-2><X_SENDKEY=NRC_D8-ONOFF><DT50-2>;
BUTTON_NUMBER9;<DT50-2><X_SENDKEY=NRC_D9-ONOFF><DT50-2>;
BUTTON_NUMBER0;<DT50-2><X_SENDKEY=NRC_D0-ONOFF><DT50-2>;
BUTTON_INPUT_SELECT;<DT50-2><X_SENDKEY=NRC_CHG_INPUT-ONOFF><DT50-2>;
BUTTON_MUTE;<DT50-2><X_SENDKEY=NRC_MUTE-ONOFF><DT50-2>;
BUTTON_PLAY;<DT50-2><X_SENDKEY=NRC_PLAY-ONOFF><DT50-2>;
BUTTON_STOP;<DT50-2><X_SENDKEY=NRC_STOP-ONOFF><DT50-2>;
BUTTON_PAUSE;<DT50-2><X_SENDKEY=NRC_PAUSE-ONOFF><DT50-2>;
BUTTON_RECORD;<DT50-2><X_SENDKEY=NRC_REC-ONOFF><DT50-2>;
BUTTON_REWIND;<DT50-2><X_SENDKEY=NRC_REW-ONOFF><DT50-2>;
BUTTON_FAST_FORWARD;<DT50-2><X_SENDKEY=NRC_FF-ONOFF><DT50-2>;
BUTTON_FORWARD;<DT50-2><X_SENDKEY=NRC_SKIP_NEXT-ONOFF><DT50-2>;
BUTTON_BACKWARD;<DT50-2><X_SENDKEY=NRC_SKIP_PREV-ONOFF><DT50-2>;
BUTTON_INTERNET;<DT50-2><X_SENDKEY=NRC_INTERNET-ONOFF><DT50-2>;
BUTTON_F1_BLUE;<DT50-2><X_SENDKEY=NRC_BLUE-ONOFF><DT50-2>;
BUTTON_F2_RED;<DT50-2><X_SENDKEY=NRC_RED-ONOFF><DT50-2>;
BUTTON_F3_GREEN;<DT50-2><X_SENDKEY=NRC_GREEN-ONOFF><DT50-2>;
BUTTON_F4_YELLOW;<DT50-2><X_SENDKEY=NRC_YELLOW-ONOFF><DT50-2>;

[MAPPINGS];
\%GETTVOL=\*|;GETVOLUME;
\*;RAW;;;

With this I'm able to GET the commands into scripting client Tongue
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
17.02.2014, 13:03
Beitrag #10
RE: IP control of Viera TV
Directly after I set the Volume of the TV I get this reply:

Code:
11:59:09.922 - upnp: class DT50: statevar update: Volume = 0

How do I use this as a FEEDBACK in NOMOS?

Can I create MAPPINGS in the UPNP .csv file?
Or how do I reach this statevar called Volume?

Everything can be done, there is just different ways to achieve it!!!
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
Antwort schreiben 


Möglicherweise verwandte Themen...
Thema: Verfasser Antworten: Ansichten: Letzter Beitrag
  New TV Led whit IP control svilchez 7 4.790 13.12.2014 10:27
Letzter Beitrag: meudenbach
  Squeezebox Control svilchez 2 2.218 08.12.2014 21:13
Letzter Beitrag: svilchez
  Control upnp Revox S120 svilchez 7 5.329 12.08.2014 15:07
Letzter Beitrag: svilchez
  How to get Voice control Working with custom Gui? jamel@2ctrl 2 2.594 02.05.2014 09:39
Letzter Beitrag: jamel@2ctrl
  I need buy Smart TV for control svilchez 1 2.046 24.04.2014 17:25
Letzter Beitrag: meudenbach
Tongue I need control TV Sony for UPNP svilchez 4 6.492 13.09.2013 12:26
Letzter Beitrag: svilchez
  Control system wanted Peto Vergil 2 4.608 06.07.2012 01:40
Letzter Beitrag: Peto Vergil
  Multiroom Control svilchez 3 10.261 14.04.2011 09:38
Letzter Beitrag: meudenbach
  Control audio in Airport and ATV2 svilchez 5 7.882 17.02.2011 22:33
Letzter Beitrag: ArchieSmith

Gehe zu:


Kontakt | nomos system Forum | Nach oben | Zum Inhalt | Archiv-Modus | RSS-Synchronisation | Impressum