Driver HTTP + HEADERS - IRCC/XML SONY TV BRAVIA
Bonjour à tous,
Je souhaite réaliser une télécommande pour ma TV sony X65... (android TV)
J'ai activé les accès coté TV. Je parviens a l'allumer ou l'éteindre, changer de sources.
Cependant, quand je souhaite obtenir les fleches ou autres boutonneries, il faut passer par l'IRCC et donc le XML.
J'ai créé un driver HTTP propre pour tout ce qui est IRCC/XML, j'ai désactivé l'autre pour ne pas créer de conflits pendant mes essais.
Sur le driver, j'ai configuré comme suit :
Driver
Enabled TRUE
Demo FALSE
General
Host URL http://192.168.1.33
Timeout : 5000
Parsing
Encoding UTF8
Parser type Text
Authen
N/A
N/A
N/A
Puis j'ai créé une commande (en l'occurence pour le bouton HOME) :
General
Command : /sony/IRCC
Headers :
x-Auth-PSK: 1234
SOAPACTION: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"
J'ai essayé aussi :
SOAPACTION: urn:schemas-sony-com:service:IRCC:1#X_SendIRCC
SOAPACTION urn:schemas-sony-com:service:IRCC:1#X_SendIRCC
Method type : POST
Send cyclically : False
POST
Content type : application/soap+xml; charset=utf-8

Malgrès différents essais, cela ne fonctionne pas.
Sur le retour status code, j'obtiens InternalServerError et le driver se deconnecte, je suis obligé de le relancer....Je suspecte une erreur de syntaxe au niveau de bOS (ou un problème de fonctionnalité....).
En effet, j'ai testé sous mini POSTMAN de lancer la configuration suivante :
URL : http://192.168.1.33/sony/IRCC
Editable Headers :
x-Auth-PSK 1234
SOAPACTION: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"
Le même code du POST DATA
Et cela fonctionne....
Pourriez vous m'aider a comprendre mon erreur ou m'expliquer pourquoi cela ne fonctionne pas ??
D'avance merci à vous
Cordialement
Simon
IN ENGLISH :
Hello everyone,
I would like to create a remote control for my Sony X65 TV (Android TV).
I have enabled the necessary access settings on the TV. I am able to turn it on/off and switch input sources.
However, to access the directional arrows and other buttons, I need to use the IRCC protocol, which involves XML.
I have created a dedicated HTTP driver for IRCC/XML operations, and I have disabled the other driver to avoid any conflicts during testing.
I have configured the driver as follows:
Driver
Enabled: TRUE
Demo: FALSE
General
Host URL: http://192.168.1.33
Timeout: 5000
Parsing
Encoding: UTF8
Parser type: Text
Authentication
N/A
N/A
N/A
I then created a command (specifically for the "HOME" button):
General
Command: /sony/IRCC
Headers:
x-Auth-PSK: 1234
SOAPACTION: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"
I also tried:
SOAPACTION: urn:schemas-sony-com:service:IRCC:1#X_SendIRCC
SOAPACTION urn:schemas-sony-com:service:IRCC:1#X_SendIRCC
Method type: POST
Send cyclically: False
POST
Content type: application/soap+xml; charset=utf-8
Post DATA:
Despite several attempts, it is not working.
The status code returned is "InternalServerError," and the driver disconnects, requiring me to restart it. I suspect a syntax error within bOS (or perhaps a functional issue...). I tested the following configuration using Postman:
URL: http://192.168.1.33/sony/IRCC
Editable Headers:
x-Auth-PSK 1234
SOAPACTION: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"
The same POST DATA code
And it works...
Could you help me identify my mistake or explain why it isn't working [in my original setup]??
Thanks in advance.
Best regards,
Simon