Author Topic: UI6/UI7 compatibility  (Read 3258 times)

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
UI6/UI7 compatibility
« on: August 22, 2014, 08:13:37 am »
I just committed a new change that should certainly help with UI6/UI7.
You can find it in my "working in progress" version of the plugin: http://code.mios.com/trac/mios_dlna-cntroller/browser/trunk#

I have done no tests neither with UI6 nor with UI7, but I can at least confirm that the plugin continues working well with UI5.

Let me know if these changes solve issues with plugin UI when using UI6 or UI7.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: UI6/UI7 compatibility
« Reply #1 on: August 28, 2014, 03:53:45 pm »
I have now committed several changes that should improove again UI6/UI7 compatibility and IE11 compatibility.

Please tell me what are the remaining problems.

Offline jamezel13

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: UI6/UI7 compatibility
« Reply #2 on: September 01, 2014, 05:56:32 pm »
I'm new to Vera. How do we test if they work?
I would like to trigger audio with scenes, but the DNLA plugin can't find my servers.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: UI6/UI7 compatibility
« Reply #3 on: September 02, 2014, 04:20:38 am »
I'm new to Vera. How do we test if they work?
I would like to trigger audio with scenes, but the DNLA plugin can't find my servers.

You shoould be sure to have enabled UPnP AV in your network router.
Have you another UPnP controller in your network that see your UPnP servers ?

If UPnP discovery inside the VeraLite is not working, a workaround was discovered, this workaround works at least for his author and me: http://forum.micasaverde.com/index.php/topic,16905.msg132502.html#msg132502
Strangely, this workaround is now no more required for my VeraLite and the only changes I made during this time are firmware updates of my network router...

I don't think the problem is relative to UI7 as I think I see it working in @HaPe's Vera running UI7. I will check again.

Offline rd

  • Sr. Newbie
  • *
  • Posts: 42
  • Karma: +0/-0
Re: UI6/UI7 compatibility
« Reply #4 on: September 04, 2014, 04:47:52 pm »
I am not used to creating devices based on the Lua files, rather than "packaged" apps.  I have uploaded the ten files from Trunk @ 60. I don't know which files should correspond to which category in the creation.

Device type      
Internal ID    
Description    
Upnp Device Filename      
Upnp Implementation Filename

Could you let me know which files should match which?  I'm happy to test once it is set up both with PC, and an XMBC interface. 

Offline rd

  • Sr. Newbie
  • *
  • Posts: 42
  • Karma: +0/-0
Re: UI6/UI7 compatibility
« Reply #5 on: September 05, 2014, 11:45:11 am »
So I put D_DLNAMediaController1.xml as Upnp Device Filename and I_DLNAMediaController1.xml as Upnp Implementation Filename and that seemed to create it, but I could not discover my XBMC device.  I am going to try the linked thread two comments up and see if that works.  I am using a Veralite and so it sounds unneccesary, but it currently is not working yet.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: UI6/UI7 compatibility
« Reply #6 on: September 05, 2014, 11:52:16 am »
I can just confirm that discovery is working in @HaPe's Vera running UI7 and he is able to detect XBMC.

Of course, you have to enable UPnP control in XBMC settings. They are disabled by default.
« Last Edit: September 05, 2014, 12:03:11 pm by lolodomo »

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: UI6/UI7 compatibility
« Reply #7 on: September 13, 2014, 06:17:27 am »
I just committed new changes; compatibility with UI7 should be ok.
The only minor thing that should not be ok is the icon for the device: the DLNA icon will not be displayed.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: UI6/UI7 compatibility
« Reply #8 on: September 15, 2014, 04:58:32 pm »
Version 1.1 compatible with UI7 is now released.

Offline rd

  • Sr. Newbie
  • *
  • Posts: 42
  • Karma: +0/-0
Re: UI6/UI7 compatibility
« Reply #9 on: September 15, 2014, 10:52:15 pm »
Is anyone able to use this on UI6?  I have 1.1 installed but it is not able to discover my XMBC machine either using the Discover button, or directly adding the URL on the settings page.  I double checked and it is set to be discoverable in XBMC, and I am able to find it using BubbleUPnP on my Android.  I tried editing the fields on the Advanced menu as well, but it does not seem to work.  I tried changing the IP field to the ip address of XBMC, and then tried that in combination with the RouterIP field empty and with the ip address of my router as well.  None of that seemed to work. Has anyone else been able to use discover in UI6 and or have suggestions for what I can try?  Thank you.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: UI6/UI7 compatibility
« Reply #10 on: September 16, 2014, 01:27:35 am »
Can you enable debug logs and try again. What do you see in logs ?
Don.'t  set RouterIp/RouterPort.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: UI6/UI7 compatibility
« Reply #11 on: September 16, 2014, 01:54:37 am »
Did your URL ended with a / ? I don't remember if it is required for XBMC. I will give you my working XBMC URL this evening.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: UI6/UI7 compatibility
« Reply #12 on: September 16, 2014, 03:23:00 am »
@rd: please check your installation. You should have only 9 files with name containing DLNA in your directory /etc/cmh-ludl, all with a suffix .lzo and a not null size. I would advice to delete your device, reload, create another one, reload and finally free your WEB browser cache.


@everybody: can someone else confirm that the plugin is not working with UI6. That would be strange but in this case I will suppress all references to UI6 in my communications.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: UI6/UI7 compatibility
« Reply #13 on: September 16, 2014, 03:25:14 pm »
For information, for XBMC 13.1, I can confirm that the URL to be used looks like: http://192.168.0.100:1396/
The ending / is important, it does not work if you enter http://192.168.0.100:1396
Of course, you have to use your IP address and probably the port number is not always the same.

Offline rd

  • Sr. Newbie
  • *
  • Posts: 42
  • Karma: +0/-0
Re: UI6/UI7 compatibility
« Reply #14 on: September 17, 2014, 12:20:28 am »
I deleted the app, and saw that the files were still there so I ssh'ed in and removed them.  Then reinstalled using 1.1 in the official app repository.  It still did not find or recognize it using the discover button.  Adding the 'http://' and the final '/'  allowed me to enter it in the New Url filed and then appear in the description URL, but it perpetually thinks that it is offline, when it is not.  Below is the log that I generated after all of that trying to use the discover method again.  It is Device 66. 

Code: [Select]
06      09/16/14 20:49:41.152   Device_Variable::m_szValue_set device: 54 service: urn:upnp-org:serviceId:XBMCState1 variable: PingStatus was: up now: up #hooks                                                    : 0 upnp: 0 v:0x103da58/NONE duplicate:1 __LEAK__ this:53248 start:3538944 to 0x                                                    17bd000 <0x2db05680>
04      09/16/14 20:49:47.234   <Job ID="19" Name="pollnode #6 1 cmds" Device="57" Created="2014-09-16 20:49:47" Started="2014-09-16 20:49:47" Completed="2014-0                                                    9-16 20:49:47" Duration="0.133055000" Runtime="0.131717000" Status="Successful"                                                     LastNote="" Node="6" NodeType="ZWaveDimmableLight" NodeDescription="Media Room L                                                    ights"/> <0x2b905680>
50      09/16/14 20:49:49.101   luup_log:66: DLNA: debug: checkDeviceState 1:66<0x2e105680>
50      09/16/14 20:49:53.100   luup_log:66: DLNA: debug: checkDeviceState 2:66<0x2e105680>
01      09/16/14 20:49:53.158   LuaInterface::CallFunction_Timer-5 function checkDeviceState failed [string "module("L_DLNAUPnPUtility", package.seeall)..."]:66                                                    6: attempt to index field 'UDN' (a nil value) <0x2e105680>
01      09/16/14 20:49:58.107   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x2f105680>
01      09/16/14 20:49:59.007   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x2f105680>
01      09/16/14 20:49:59.044   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x2f105680>
04      09/16/14 20:50:17.254   <Job ID="20" Name="pollnode #7 1 cmds" Device="58" Created="2014-09-16 20:50:17" Started="2014-09-16 20:50:17" Completed="2014-0                                                    9-16 20:50:17" Duration="0.152961000" Runtime="0.151490000" Status="Successful"                                                     LastNote="" Node="7" NodeType="ZWaveDimmableLight" NodeDescription="Bathroom Lig                                                    ht"/> __LEAK__ this:-53248 start:3485696 to 0x17b0000 <0x2b905680>
04      09/16/14 20:50:47.234   <Job ID="21" Name="pollnode #8 1 cmds" Device="59" Created="2014-09-16 20:50:47" Started="2014-09-16 20:50:47" Completed="2014-0                                                    9-16 20:50:47" Duration="0.133066000" Runtime="0.131505000" Status="Successful"                                                     LastNote="" Node="8" NodeType="ZWaveNonDimmableLight" NodeDescription="Kitchen L                                                    ights"/> <0x2b905680>
01      09/16/14 20:50:52.700   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x2f105680>
01      09/16/14 20:50:53.969   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x2f105680>
01      09/16/14 20:50:54.061   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x2f105680>
04      09/16/14 20:51:17.234   <Job ID="22" Name="pollnode #9 1 cmds" Device="60" Created="2014-09-16 20:51:17" Started="2014-09-16 20:51:17" Completed="2014-09-16 20:51:17" Duration="0.133057000" Runtime="0.131660000" Status="Successful" LastNote="" Node="9" NodeType="ZWaveDimmableLight" NodeDescription="Living Room Lights"/> <0x2b905680>
02      09/16/14 20:51:33.100   LOG_CHECK_MEMORY_LEAK pMem start 0x176e000 now 0x17bd000 last 0x17b0000 leaked 323584 __LEAK__ this:53248 start:3538944 to 0x17bd000 <0x2b905680>
01      09/16/14 20:51:43.432   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist __LEAK__ this:61440 start:3600384 to 0x17cc000 <0x2f105680>
01      09/16/14 20:51:44.520   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist __LEAK__ this:81920 start:3682304 to 0x17e0000 <0x2f105680>
01      09/16/14 20:51:44.549   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x2f105680>
04      09/16/14 20:51:47.244   <Job ID="23" Name="pollnode #11 1 cmds" Device="65" Created="2014-09-16 20:51:47" Started="2014-09-16 20:51:47" Completed="2014-09-16 20:51:47" Duration="0.142861000" Runtime="0.141329000" Status="Successful" LastNote="" Node="11" NodeType="ZWaveNonDimmableLight" NodeDescription="Feeder Switch"/> __LEAK__ this:118784 start:3801088 to 0x17fd000 <0x2b905680>
02      09/16/14 20:52:03.100   LOG_CHECK_MEMORY_LEAK pMem start 0x176e000 now 0x17a9000 last 0x17bd000 leaked 241664 __LEAK__ this:-344064 start:3457024 to 0x17a9000 <0x2b905680>
04      09/16/14 20:52:17.524   <Job ID="24" Name="pollnode #2 1 cmds" Device="8" Created="2014-09-16 20:52:17" Started="2014-09-16 20:52:17" Completed="2014-09-16 20:52:17" Duration="0.423240000" Runtime="0.421930000" Status="Successful" LastNote="" Node="2" NodeType="ZWaveNonDimmableLight" NodeDescription="Bedside lamp"/> <0x2b905680>
02      09/16/14 20:52:33.100   LOG_CHECK_MEMORY_LEAK pMem start 0x176e000 now 0x17b0000 last 0x17a9000 leaked 270336 __LEAK__ this:28672 start:3485696 to 0x17b0000 <0x2b905680>
01      09/16/14 20:52:39.515   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist __LEAK__ this:53248 start:3538944 to 0x17bd000 <0x2f105680>
01      09/16/14 20:52:40.475   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x2f105680>
01      09/16/14 20:52:40.488   luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x2f105680>
06      09/16/14 20:52:41.131   Device_Variable::m_szValue_set device: 54 service: urn:upnp-org:serviceId:XBMCState1 variable: PingStatus was: up now: up #hooks: 0 upnp: 0 v:0x103da58/NONE duplicate:1 <0x2db05680>
04      09/16/14 20:52:47.244   <Job ID="25" Name="pollnode #3 1 cmds" Device="9" Created="2014-09-16 20:52:47" Started="2014-09-16 20:52:47" Completed="2014-09-16 20:52:47" Duration="0.142962000" Runtime="0.141618000" Status="Successful" LastNote="" Node="3" NodeType="ZWaveNonDimmableLight" NodeDescription="Hall Lamp"/> __LEAK__ this:114688 start:3653632 to 0x17d9000 <0x2b905680>
06      09/16/14 20:52:59.864   Device_Variable::m_szValue_set device: 59 service: urn:micasaverde-com:serviceId:ZWaveDevice1 variable: NodeInfo was: 25,27,70,72,73,77,86, now: 25,27,70,72,73,77,86, #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 __LEAK__ this:-32768 start:3620864 to 0x17d1000 <0x2b905680>
06      09/16/14 20:53:00.013   Device_Variable::m_szValue_set device: 59 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 0 now: 1 #hooks: 2 upnp: 0 v:0xea0148/NONE duplicate:0 <0x2b905680>
04      09/16/14 20:53:00.015   <Job ID="26" Name="pollnode_hau #8 1 cmds" Device="59" Created="2014-09-16 20:52:59" Started="2014-09-16 20:52:59" Completed="2014-09-16 20:53:00" Duration="0.151122000" Runtime="0.149060000" Status="Successful" LastNote="" Node="8" NodeType="ZWaveNonDimmableLight" NodeDescription="Kitchen Lights"/> <0x2b905680>
02      09/16/14 20:53:03.101   LOG_CHECK_MEMORY_LEAK pMem start 0x176e000 now 0x17e0000 last 0x17b0000 leaked 466944 __LEAK__ this:61440 start:3682304 to 0x17e0000 <0x2b905680>
01      09/16/14 20:53:06.105   luup_log:24: MOCHAD: poll() called __LEAK__ this:307200 start:3989504 to 0x182b000 <0x2cf05680>
06      09/16/14 20:53:19.373   Device_Variable::m_szValue_set device: 10 service: urn:upnp-org:serviceId:TemperatureSensor1 variable: CurrentTemperature was: 77 now: 77 #hooks: 0 upnp: 0 v:0xed33c8/NONE duplicate:1 __LEAK__ this:245760 start:4235264 to 0x1867000 <0x2b905680>
08      09/16/14 20:53:25.552   JobHandler_LuaUPnP::HandleActionRequest device: 66 service: urn:dlna-org:serviceId:DLNAMediaController1 action: StartDMRDiscovery __LEAK__ this:61440 start:4296704 to 0x1876000 <0x2f105680>
08      09/16/14 20:53:25.552   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=66 <0x2f105680>
08      09/16/14 20:53:25.552   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:dlna-org:serviceId:DLNAMediaController1 <0x2f105680>
08      09/16/14 20:53:25.553   JobHandler_LuaUPnP::HandleActionRequest argument action=StartDMRDiscovery <0x2f105680>
06      09/16/14 20:53:25.556   Device_Variable::m_szValue_set device: 66 service: urn:dlna-org:serviceId:DLNAMediaController1 variable: DMRDiscoveryResult was: <devices></devices> now: scanning #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2b1d1000>
06      09/16/14 20:53:25.793   Device_Variable::m_szValue_set device: 10 service: urn:upnp-org:serviceId:HVAC_FanOperatingMode1 variable: Mode was: Auto now: Auto #hooks: 0 upnp: 0 v:0xe9fda0/NONE duplicate:1 <0x2b905680>
06      09/16/14 20:53:27.933   Device_Variable::m_szValue_set device: 10 service: urn:micasaverde-com:serviceId:ZWaveDevice1 variable: TemperatureScale was: 0,1,1 now: 0,1,1 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b905680>
06      09/16/14 20:53:27.934   Device_Variable::m_szValue_set device: 10 service: urn:upnp-org:serviceId:TemperatureSetpoint1 variable: CurrentSetpoint was: 68 now: 68 #hooks: 0 upnp: 0 v:0xed7128/NONE duplicate:1 <0x2b905680>
06      09/16/14 20:53:27.934   Device_Variable::m_szValue_set device: 10 service: urn:upnp-org:serviceId:TemperatureSetpoint1_Heat variable: CurrentSetpoint was: 68 now: 68 #hooks: 0 upnp: 0 v:0xedaea0/NONE duplicate:1 <0x2b905680>
06      09/16/14 20:53:27.934   Device_Variable::m_szValue_set device: 10 service: urn:upnp-org:serviceId:TemperatureSetpoint1 variable: AllSetpoints was: 68,82,0 now: 68,82,0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b905680>
06      09/16/14 20:53:30.073   Device_Variable::m_szValue_set device: 10 service: urn:micasaverde-com:serviceId:ZWaveDevice1 variable: TemperatureScale was: 0,1,1 now: 0,1,1 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b905680>
06      09/16/14 20:53:30.074   Device_Variable::m_szValue_set device: 10 service: urn:upnp-org:serviceId:TemperatureSetpoint1 variable: AllSetpoints was: 68,82,0 now: 68,82,0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b905680>
04      09/16/14 20:53:30.075   <Job ID="27" Name="pollnode #4 7 cmds" Device="10" Created="2014-09-16 20:53:17" Started="2014-09-16 20:53:17" Completed="2014-09-16 20:53:30" Duration="12.973860000" Runtime="12.972750000" Status="Successful" LastNote="" Node="4" NodeType="ZWaveThermostat" NodeDescription="Thermostat"/> <0x2b905680>
06      09/16/14 20:53:30.560   Device_Variable::m_szValue_set device: 66 service: urn:dlna-org:serviceId:DLNAMediaController1 variable: DMRDiscoveryResult was: scanning now: <devices></devices> #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2b1d1000>

My next thing, is possibly doing the subnet mask thing that you described in another thread. Thanks for your support.