help needed on making use of the call monitor service

General Forum for talking area for B series TVs.
Post Reply

doodlecz
Official SamyGO Developer
Posts: 98
Joined: Wed Mar 17, 2010 9:12 am

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

Post 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.
User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

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

Post by erdem_ua »

Just clapping. Perfect.
nbd
Posts: 161
Joined: Wed Jan 13, 2010 12:02 pm

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

Post 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
Last edited by nbd on Tue May 04, 2010 9:20 am, edited 1 time in total.
doodlecz
Official SamyGO Developer
Posts: 98
Joined: Wed Mar 17, 2010 9:12 am

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

Post 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.
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “[B] General”