Jackson, Bruce wrote:
Hi there

I have a question regarding the underlying driver in the UPnP bundle.

In the class BuildDevice.java, we find the method below:

private static void buildDevice(String id,Device parent, ServiceReference sr) {        
Node dev = new Node(Device.ELEM_NAME);        DeviceData dd = new DeviceData();        
dd.setDescriptionURI(id+"/gen-desc.xml");        dev.setUserData(dd);           
     Device devUPnP = new Device(dev);                devUPnP.setFriendlyName((String) 
sr.getProperty(UPnPDevice.FRIENDLY_NAME));        devUPnP.setManufacture((String) 
sr.getProperty(UPnPDevice.MANUFACTURER));        devUPnP.setManufactureURL((String) 
sr.getProperty(UPnPDevice.MANUFACTURER_URL));        devUPnP.setModelDescription((String) 
sr.getProperty(UPnPDevice.MODEL_DESCRIPTION));        devUPnP.setModelName((String) 
sr.getProperty(UPnPDevice.MODEL_NAME));        devUPnP.setModelNumber((String) 
sr.getProperty(UPnPDevice.MODEL_NUMBER));        devUPnP.setModelURL((String) 
sr.getProperty(UPnPDevice.MODEL_URL));        devUPnP.setSerialNumber((String) 
sr.getProperty(UPnPDevice.SERIAL_NUMBER));        devUPnP.setUDN((Stri
ng) sr.getProperty(UPnPDevice.UDN));        devUPnP.setUPC((String) 
sr.getProperty(UPnPDevice.UPC));        
devUPnP.setLocation(id+"/gen-desc.xml");                
addServices(id,devUPnP,sr);        addDevices(id,devUPnP,sr);        
parent.addDevice(devUPnP); //        twa: essential!!!!!!!        
devUPnP.setPresentationURL((String) sr.getProperty(UPnPDevice.PRESENTATION_URL));         
   }

Now, the UPnP upper level code ultimately calls this passing in an empty string 
("") as the id parameter in the call to this method. Why does this happen?
Shouldn't this be passing the id of the device?

No it seems to be correct, because it used only to build a unique URI for each device SCPD URL. Are you expierincing any trouble with the
basedriver?

Can rise a JIRA issue is it you have a problem with the base driver?


Thanks

Bruce


Reply via email to