Page 5 of 12

Re: help needed on making use of the call monitor service

Posted: Tue May 04, 2010 12:33 am
by doodlecz
So, here it goes..
I was able to send "Incoming SMS" to the TV. Using following format (not the same tags..) for other message types should be easy and most probably working.

Code: Select all

POST /PMR/control/MessageBoxService HTTP/1.0
Content-Type: text/xml; charset=\"utf-8\"
HOST: 192.168.2.102
Content-Length: %d (fill by your test app)
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\">
<MessageType>text/xml</MessageType>
<MessageID>can be anything</MessageID>
<Message>
<Category>SMS</Category>
<DisplayType>Maximum</DisplayType>
<ReceiveTime>
<Date>2010-05-04</Date>
<Time>01:02:03</Time>
</ReceiveTime>
<Receiver>
<Number>12345678</Number>
<Name>Receiver</Name>
</Receiver>
<Sender>
<Number>11111</Number>
<Name>Sender</Name>
</Sender>
<Body>Hello World!!!</Body>
</Message>
</u:AddMessage>
</s:Body>
</s:Envelope>
Probably the biggest problem was to find out that &lg; and > for encoding XML format of the Message content has to be used..
Now, I'm going to sleep. Finally.

Re: help needed on making use of the call monitor service

Posted: Tue May 04, 2010 1:23 am
by erdem_ua
Just clapping. Perfect.

Re: help needed on making use of the call monitor service

Posted: Tue May 04, 2010 8:47 am
by nbd
Hello, I can't get it to work.

netcat my.tv.ip 52235 (pressing enter here)
(copypaste the xml, and changed the HOST to my computer's IP or TV's IP, both failed)
(wait, nothing happens)

EDIT: With UPnP tools' Device Sniffer (using the HTTP Requestor with CUSTOM HTTP and filling out the exact same xml as described above) I get reply:
HTTP/1.1 401 Unauthorized
Connection: close
Content-Length: 0
Server: DMRND/0.5

Re: help needed on making use of the call monitor service

Posted: Tue May 04, 2010 9:18 am
by doodlecz
When TV waits, most probable reason is bad content-length - TV is still waiting for the rest of data.. (?)
I suppose just copypaste from the forum is not the safest method..
You can try attached trivial app I used for testing.. feel free to do anything with it if you like.