how to authentificate over DLNA?

Ideas and dreaming will go this forum
Post Reply

goaskin
Posts: 69
Joined: Sat Nov 28, 2009 9:33 pm

how to authentificate over DLNA?

Post by goaskin »

Not much discussed within the SamyGO-project, there are various experiments to send messages to the DLNA Message Box Service on the Samsung TVs but nobody had success yet. The XML syntax is clear because there are other DLNA-DMC capable devices but for some reasons, the TV denies the http-requests as unauthorized (http error 401).

Has somebody an idea how to authorize any computer so that the TV accepts messages and displays them?

On a german forum, someone sent some sample code:

Code: Select all

POST /PMR/event/MessageBoxService HTTP/1.1
Host: 192.168.178.20:52235
SoapAction: "urn:samsung.com:service:MessageBoxService:1#AddMessage"
Content-Type: text/xml; charset="utf-8"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
 <soap:Body>
 <u:AddMessage xmlns:u="urn:samsung.com:service:MessageBoxService:1">
 <MessageID>12345</MessageID>
 <MessageType>text/xml; charset="utf-8"</MessageType>
 <Message>hello world</Message>
 </u:AddMessage>
 </soap:Body>
</soap:Envelope>
I tried to add an authorization parameter to the HTTP-reader containing "uuid: UDN_NUMBER" as value but with no success. Maybe it does not matter if there is an authorization line or not. As far as I understand the EXEdsp, the routines do not ask for an authorization parameter. Maybe, the authentification works somehow different.

The syntax seems to be usable because if it is formated differently, the server returns "invalid request - 402".
goaskin
Posts: 69
Joined: Sat Nov 28, 2009 9:33 pm

Re: how to authentificate over DLNA?

Post by goaskin »

I am discussing in this forum too. But nobody has an idea how to solve this but we still continue on trying to make use of the DLNA PMR service (call monitor). There are at last three parameters required: MessageID (urn:uuid:#CUSTOM-NUMBER#), MessageType (MIME-TYPE->UTF8?) and Message (unknown content).

It seems like if there are either sub-tags in Message or the message string needs to have a special format. It isn't just a text. In the Message-parameter informations like the service-type (call, SMS, calendar schedule), the time and the recipient are transmitted beside the message itself. But nobody knows how to encapsule all this information. The exeDSP gives small hints but does not allow to find out this easily.

My last try was:

Code: Select all

POST /PMR/control/MessageBoxService HTTP/1.0
Content-Type: text/xml; charset="utf-8"
HOST: 192.168.178.20
Content-Length: 469
SOAPACTION: "uuid:samsung.com:service:MessageBoxService:1#AddMessage"
Connection: close

<?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:AddMessage xmlns:u="urn:samsung.com:service:MessageBoxService:1">
         <MessageID>urn:uuid:12345678-1234-1234-1234-12345678abcd</MessageID>
         <Message>category:PmrIncomingCallMessage:sender:4627325:receiver:62347</Message>
      </u:AddMessage>
   </s:Body>
</s:Envelope>
The result is error 412 - precondition failed
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: how to authentificate over DLNA?

Post by geo650 »

Maybe somebody with DLNA-enabled mobile phone can monitor incoming data packets while SMS message is sent to the TV?

If not, does anybody know the (exeDSP's) function (and it's usage) to display any text message on the screen? Than we could write an application that will display a message sent to the TV via LAN (something like net send command in M$ Windows).
goaskin
Posts: 69
Joined: Sat Nov 28, 2009 9:33 pm

Re: how to authentificate over DLNA?

Post by goaskin »

TV has a running PMR service on port 52235 but nobody knows yet how a SOAP request must be formatted to be accepted.

If there is no way to find out how it works (Samsung mobiles do not seem to support this feature), a GAME PLUGIN that injects the exeDSP (like the PVR) may be another alternative to solve this but the source code of the PVR isn't understandable for me.

By the way, routers like Fritz Boxes by AVM do send SOAP messages over the networks to inform computers with running client software about phone calls. But in their own proprietary way.

Tomorrow I will examine the exeDSP another time. For the PMR, there are a few classes - not very much code.
doodlecz
Official SamyGO Developer
Posts: 98
Joined: Wed Mar 17, 2010 9:12 am

Re: how to authentificate over DLNA?

Post by doodlecz »

Finally some challenge not requiring (or resulting in) rebooting my TV each 5 minutes :D
I'll try to look into this tommorow too..

Post Reply

Return to “[B] Brainstorm”