Thursday, September 29, 2005

RD-X6 : Toshiba announced the new HDD and DVD recorder that supports DLNA. I would buy RD-X5 at a low price to develop the UPnP/AV media server after the new product, RD-X6, is released, but I lost the necessary. I will find another development target X-<

Cocoon CSV-EX9 : I have noticed that my latest CyberLink couldn't find the UPnP/AV media server as the following.
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=60
LOCATION: http://192.168.100.12:51001/MediaServerGen.xml
NT: upnp:rootdevice
NTS: ssdp:alive
SERVER: MontaVista Linux/2.1 UPnP/1.0 SONY NSC SDK (UPnP Core)/1.3.4
USN: uuid:ee041d0a-39aa-11d8-8000-080046d17d94::upnp:rootdevice
X-AV-Server-Info: av = 2.0 ; cn = "Sony Corporation" ; mn = "CSV-EX9/11" ; mv = "1.0.0" ;
X-AV-Physical-Unit-Info: pa = "CoCoon Channel Server CSV-EX9/11" ; pl = Q29Db29uIENoYW5uZWwgU2VydmVyIENTVi1FWDkvMTE= ;


CyberGarage warning : java.io.IOException: Server returned HTTP response code: 415 for URL: http://192.168.100.12:51001/MediaServerGen.xml

at org.cybergarage.xml.Parser.parse(Parser.java:48)
... 4 more
org.cybergarage.xml.ParserException: java.io.IOException: Server returned HTTP response code: 415 for URL: http://192.168.100.12:51001/MediaServerGen.xml
at org.cybergarage.xml.Parser.parse(Parser.java:58)
at org.cybergarage.upnp.ControlPoint.addDevice(ControlPoint.java:227)
at org.cybergarage.upnp.ControlPoint.notifyReceived(ControlPoint.java:469)
at org.cybergarage.upnp.ssdp.SSDPNotifySocket.run(SSDPNotifySocket.java:112)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Server returned HTTP response code: 415 for URL: http://192.168.100.12:51001/MediaServerGen.xml
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)CyberGarage warning : NOTIFY * HTTP/1.1
It seems that HttpURLConnection can't open the input stream to get the device description. However I changed the function using my HTTP client library normally as the following, I could get the device description. I have to check the problem in more detail.
public Node Parser::parse(URL locationURL) throws ParserException
{
try {
HttpURLConnection urlCon = (HttpURLConnection)locationURL.openConnection();
urlCon.setRequestMethod("GET");
InputStream urlIn = urlCon.getInputStream();

Node rootElem = parse(urlIn);

urlIn.close();
urlCon.disconnect();

return rootElem;

} catch (Exception e) {
//throw new ParserException(e);
}

String host = locationURL.getHost();
int port = locationURL.getPort();
String uri = locationURL.getPath();
HTTPRequest httpReq = new HTTPRequest();
httpReq.setMethod(HTTP.GET);
httpReq.setURI(uri);
HTTPResponse httpRes = httpReq.post(host, port);
if (httpRes.isSuccessful() == false)
throw new ParserException(locationURL.toString());
String content = new String(httpRes.getContent());
StringBufferInputStream strBuf = new StringBufferInputStream(content);
return parse(strBuf);
}

Comments:
Thanks for letting me know about other good stuff!
 
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?