UI7

Received a couple of pull requests with adoption of gui.

The UI7 version of the MySensors plugin can be found here:

Ha, I was just about to post on another thread that mentioned the Can’t Detect Device bug. Here’s to hoping more devs adopt some of your open practices of using git and merging pull requests.

Will

Good on ya hek!

Can I correctly assume that users are seeing no issues with running their arduino boards and their Vera on UI7? Is it worth the upgrade?

UI-wise it look ok now.

These has been reposts of connection problems if you’re running serial gateway. But I haven’t confirmed this myself yet (just received a test-UI7-unit).

Ethernet should be ok.

Should we still pull this alternate tree or has it been merged into the main distro? Thanks.

Yes, you should still use the UI7 branch.

If someone knows how to merge them please let me know.

Hi,
In the past I had a 1.4 serial gateway running with my VeraLite UI5.
Because of all kind of problems I had to factory-reset the Vera and MCV-support had to help to get Z-Wave up-and-running again. But, I’m on UI7 now and MySensors doesn’t work yet. I used the UI7-branch and configured the serial port. After a few reloads and ‘some’ time the gateway seemed to work and I could even add one of my sensors. But after adding a second USB/Serial-device (smartmeter) the MySensors-Gateway was gone from the page. Huh? Not working ok, but gone??
After a power-cycle it became visible again but didn’t function. Then a refresh of the browser and the device disappeared again. I hate that browser caching >:(
I reinstalled the 10 files again and the device became visible again and disappeared again (grrr) after a refresh.
The only thing I can see in the log is:

02 09/02/15 21:59:09.239 Device_Service::MatchupUpnpServices no upnp service for urn:upnp-arduino-cc:serviceId:arduino1 <0x2b0c5000> 09 09/02/15 21:59:13.611 JobHandler_LuaUPnP::Run device 53 Arduino Node 3 room 0 type urn:schemas-arduino-cc:device:arduinonode:1 cat 0:-1 id 3;255 parent 31/0xa3afa8 upnp: 0 plugin:0 pnp:0 mac: ip: <0x2b0c5000> 09 09/02/15 21:59:13.618 JobHandler_LuaUPnP::Run device 31 MySensors Gateway room 1 type urn:schemas-arduino-cc:device:arduino:1 cat 0:-1 id parent 0/0xa1dbb8 upnp: 0 plugin:0 pnp:0 mac: ip: <0x2b0c5000>

All suggestions are welcome at this point.

I have to say that I’ve always struggled with the serial port on Veras. On the other hand, the ethernet gateway on UI7 has, so far, performed flawlessly for me. I wonder if there is a compelling reason for you to stick with the serial link? (apart, I suppose, from not having an ethernet board on your Arduino?)

Although I see plenty of log entries of the sort:

Device_Service::MatchupUpnpServices no upnp service for...

I don’t currently see one for the Arduino plugin. I’m NOT using the UI7 branch - I’ve only just started to look into the differences, but my assumption is this is mostly cosmetic and should be merged asap. Perhaps try the UI5 branch unless someone else knows better? The above error message is usually just a function of the way the plugin is written and doesn’t actually impair its operation (unless you really wanted to use UPnP, which you don’t)

Other relevant log entries I see include:

09	09/02/15 17:39:08.264	JobHandler_LuaUPnP::Run device 73 Arduino Gateway room 0 type urn:schemas-arduino-cc:device:arduino:1 cat 0:-1 id  parent 0/0xc75160 upnp: 0 plugin:0 pnp:0 mac: ip: <0x775f4320>
09	09/02/15 17:39:08.264	JobHandler_LuaUPnP::Run device 75 Arduino Light 0 (1) room 0 type urn:schemas-micasaverde-com:device:LightSensor:1 cat 18:0 id 1;0 parent 73/0xc78430 upnp: 0 plugin:0 pnp:0 mac: ip: <0x775f4320>
09	09/02/15 17:39:08.265	JobHandler_LuaUPnP::Run device 74 Arduino Node 1 room 0 type urn:schemas-arduino-cc:device:arduinonode:1 cat 0:-1 id 1;255 parent 73/0xc76a90 upnp: 0 plugin:0 pnp:0 mac: ip: <0x775f4320>

which seems similar to yours.

Sorry, probably not much help in solving your problem, but just wanted to give some reference information. I will resstart Luup tomorrow and re-check the log from the start.


Edit: just to be clear, I am running UI7 on Vera, but the main branch version of the plugin.

Thanks akbooer,

I removed the UI7 files and copied the UI5 in place. No result yet.
After several reloads I created a new device and now I had two in the GUI instead of none :o
I removed both devices and creates a new one again. In between lots of reloads and browser refreshing… pfff
During startup I now saw that I had to setup the serial port! Did it and data started to flow:

08 09/03/15 19:08:59.186 JobHandler_LuaUPnP::HandleActionRequest device: 86 service: urn:upnp-arduino-cc:serviceId:arduino1 action: StartInclusion <0x2f070680> 08 09/03/15 19:08:59.187 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-arduino-cc:serviceId:arduino1 <0x2f070680> 50 09/03/15 19:08:59.190 luup_log:86: Arduino: Sending: 0;0;3;0;5;1 <0x2b91f000> 50 09/03/15 19:08:59.207 luup_log:86: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionMode, 1, 86 <0x2ec70680> 06 09/03/15 19:08:59.208 Device_Variable::m_szValue_set device: 86 service: urn:upnp-arduino-cc:serviceId:arduino1 variable: InclusionMode was: EMPTY now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xceb958/NONE duplicate:0 <0x2ec70680> 50 09/03/15 19:08:59.209 luup_log:86: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionFoundCountHR, 0 devices found, 86 <0x2ec70680> 06 09/03/15 19:08:59.210 Device_Variable::m_szValue_set device: 86 service: urn:upnp-arduino-cc:serviceId:arduino1 variable: InclusionFoundCountHR was: EMPTY now: 0 devices found #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2ec70680> 50 09/03/15 19:09:10.137 luup_log:86: Arduino: Log: read: 3-3-0 s=255,c=0,t=17,pt=0,l=5:1.4.1 <0x2ec70680> 50 09/03/15 19:09:10.138 luup_log:86: Arduino: Presentation: 3;255;0;0;17;1.4.1 <0x2ec70680> 50 09/03/15 19:09:10.139 luup_log:86: Arduino: Found new device 3;255 <0x2ec70680> 50 09/03/15 19:09:10.140 luup_log:86: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionFoundCountHR, 1 devices found, 86 <0x2ec70680> 06 09/03/15 19:09:10.141 Device_Variable::m_szValue_set device: 86 service: urn:upnp-arduino-cc:serviceId:arduino1 variable: InclusionFoundCountHR was: 0 devices found now: 1 devices found #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2ec70680> 50 09/03/15 19:09:10.143 luup_log:86: Arduino: Log: read: 3-3-0 s=255,c=3,t=6,pt=1,l=1:0 <0x2ec70680> 02 09/03/15 19:09:10.157 luup_log:86: Arduino: Incoming internal command '3;255;3;0;6;0' discarded for child: nil <0x2ec70680> 50 09/03/15 19:09:12.157 luup_log:86: Arduino: Log: read: 3-3-0 s=255,c=3,t=11,pt=0,l=9:MobileLCD <0x2ec70680> 02 09/03/15 19:09:12.167 luup_log:86: Arduino: Incoming internal command '3;255;3;0;11;MobileLCD' discarded for child: nil <0x2ec70680> 50 09/03/15 19:09:12.169 luup_log:86: Arduino: Log: read: 3-3-0 s=255,c=3,t=12,pt=0,l=4:1.2a <0x2ec70680> 02 09/03/15 19:09:12.170 luup_log:86: Arduino: Incoming internal command '3;255;3;0;12;1.2a' discarded for child: nil <0x2ec70680> 50 09/03/15 19:09:12.177 luup_log:86: Arduino: Log: read: 3-3-0 s=2,c=0,t=7,pt=0,l=5:1.4.1 <0x2ec70680> 50 09/03/15 19:09:12.178 luup_log:86: Arduino: Presentation: 3;2;0;0;7;1.4.1 <0x2ec70680> 50 09/03/15 19:09:12.179 luup_log:86: Arduino: Found new device 3;2 <0x2ec70680> 50 09/03/15 19:09:12.180 luup_log:86: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionFoundCountHR, 2 devices found, 86 <0x2ec70680> 06 09/03/15 19:09:12.180 Device_Variable::m_szValue_set device: 86 service: urn:upnp-arduino-cc:serviceId:arduino1 variable: InclusionFoundCountHR was: 1 devices found now: 2 devices found #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2ec70680> 50 09/03/15 19:09:12.183 luup_log:86: Arduino: Log: read: 3-3-0 s=3,c=0,t=6,pt=0,l=5:1.4.1 <0x2ec70680> 50 09/03/15 19:09:12.184 luup_log:86: Arduino: Presentation: 3;3;0;0;6;1.4.1 <0x2ec70680> 50 09/03/15 19:09:12.185 luup_log:86: Arduino: Found new device 3;3 <0x2ec70680> 50 09/03/15 19:09:12.185 luup_log:86: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionFoundCountHR, 3 devices found, 86 <0x2ec70680> 06 09/03/15 19:09:12.187 Device_Variable::m_szValue_set device: 86 service: urn:upnp-arduino-cc:serviceId:arduino1 variable: InclusionFoundCountHR was: 2 devices found now: 3 devices found #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2ec70680> 50 09/03/15 19:09:12.189 luup_log:86: Arduino: Log: read: 3-3-0 s=4,c=0,t=8,pt=0,l=5:1.4.1 <0x2ec70680> 50 09/03/15 19:09:12.191 luup_log:86: Arduino: Presentation: 3;4;0;0;8;1.4.1 <0x2ec70680> 50 09/03/15 19:09:12.191 luup_log:86: Arduino: Found new device 3;4 <0x2ec70680> 50 09/03/15 19:09:12.192 luup_log:86: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionFoundCountHR, 4 devices found, 86 <0x2ec70680> 06 09/03/15 19:09:12.193 Device_Variable::m_szValue_set device: 86 service: urn:upnp-arduino-cc:serviceId:arduino1 variable: InclusionFoundCountHR was: 3 devices found now: 4 devices found #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2ec70680> 50 09/03/15 19:09:12.206 luup_log:86: Arduino: Log: read: 3-3-0 s=255,c=3,t=1,pt=0,l=0: <0x2ec70680> 50 09/03/15 19:09:12.208 luup_log:86: Arduino: Sending: 3;255;3;0;1;1441307352 <0x2ec70680> 50 09/03/15 19:09:12.228 luup_log:86: Arduino: Log: send: 0-0-3-3 s=255,c=3,t=1,pt=0,l=10,st=ok:1441307352 <0x2ec70680> 50 09/03/15 19:09:18.250 luup_log:86: Arduino: Log: read: 3-3-0 s=3,c=1,t=0,pt=7,l=5:22.4 <0x2ec70680> 50 09/03/15 19:09:18.252 luup_log:86: Arduino: Set variable: 3;3;1;0;0;22.4 <0x2ec70680> 50 09/03/15 19:09:18.257 luup_log:86: Arduino: Log: read: 3-3-0 s=2,c=1,t=1,pt=7,l=5:52.8 <0x2ec70680> 50 09/03/15 19:09:18.259 luup_log:86: Arduino: Set variable: 3;2;1;0;1;52.8 <0x2ec70680> 50 09/03/15 19:09:18.317 luup_log:86: Arduino: Log: read: 3-3-0 s=4,c=1,t=4,pt=7,l=5:1037.0 <0x2ec70680> 50 09/03/15 19:09:18.318 luup_log:86: Arduino: Set variable: 3;4;1;0;4;1037.0 <0x2ec70680> 50 09/03/15 19:09:43.367 luup_log:86: Arduino: Log: read: 2-2-0 s=3,c=1,t=1,pt=7,l=5:50.4 <0x2ec70680> 50 09/03/15 19:09:43.369 luup_log:86: Arduino: Set variable: 2;3;1;0;1;50.4 <0x2ec70680> 50 09/03/15 19:09:59.167 luup_log:86: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionMode, 0, 86 <0x2ec70680> 06 09/03/15 19:09:59.167 Device_Variable::m_szValue_set device: 86 service: urn:upnp-arduino-cc:serviceId:arduino1 variable: InclusionMode was: 1 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xceb958/NONE duplicate:0 <0x2ec70680> 50 09/03/15 19:09:59.168 luup_log:86: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,InclusionFoundCountHR, , 86 <0x2ec70680> 06 09/03/15 19:09:59.169 Device_Variable::m_szValue_set device: 86 service: urn:upnp-arduino-cc:serviceId:arduino1 variable: InclusionFoundCountHR was: 4 devices found now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2ec70680> 50 09/03/15 19:09:59.170 luup_log:86: Arduino: Inclusion mode ended. <0x2ec70680> 02 09/03/15 19:09:59.172 luup_log:86: Arduino: Found new sensor(s). Need to restart. Please wait. <0x2ec70680> 19239 root 1684 S grep -i arduino 19239 root 1684 S grep -i arduino 19239 root 1684 S grep -i arduino 02 09/03/15 19:10:04.550 Device_Service::MatchupUpnpServices no upnp service for urn:upnp-arduino-cc:serviceId:arduino1 <0x2b043000> 09 09/03/15 19:10:06.489 JobHandler_LuaUPnP::Run device 89 Arduino Node 3 room 0 type urn:schemas-arduino-cc:device:arduinonode:1 cat 0:-1 id 3;255 parent 86/0xf04db0 upnp: 0 plugin:0 pnp:0 mac: ip: <0x2b043000> 09 09/03/15 19:10:06.496 JobHandler_LuaUPnP::Run device 86 MySensors Plugin room 1 type urn:schemas-arduino-cc:device:arduino:1 cat 0:-1 id parent 0/0xf01890 upnp: 0 plugin:0 pnp:0 mac: ip: <0x2b043000>

And that was it: all devices disappeared again from the UI and no more logging either :frowning:

I’ve had basically the same problem. I made a little progress today. I’m past the “Can’t Detect Device” issue. I can’t get the serial GW to enter inclusion mode via the Vera UI, but then again, I can’t get it to do it with an Ethernet GW either. So, it’s not working yet, but I did get past the Can’t Detect Device problem.

Since the UI7 files don’t work for me at all (Create Device doesn’t appear to do anything when I use the UI7 files). I deleted all the Arduino files from /etc/cmh_ludl folder, then I uploaded a fresh copy of the UI5 files. Then, before I created a device, I replace just one file, the L_Arduino.lua file, with the UI7 version.

Now when I create a GW device, it creates successfully, and I don’t get “Can’t Detect Device”. The plug-in doesn’t actually work. I can’t start inclusion mode from the plugin, but as I said, I can’t do it on an Ethernet GW either. From the Ethernet gateway, I can, however push the physical button on the GW and it shows that I did so in the Vera UI. I didn’t (yet) hook up a physical button to the Serial GW to initiate inclusion mode, but I’ll try to do that tomorrow and test to see if I at least have parity.

At a minimum, I’m glad to be past the Can’t Detect Device.

Does anyone else have a serial GW fully working on a Vera Edge, with UI7, using the UI7 branch?

hmmm… see previous reply above… even though I got rid of “Can’t Detect Device”, the Lib Version does not get populated, which I think is the first thing that gets called. Not a good sign for a working gateway :frowning: