I use the network binding for the first time on Windows10
In the PaperUI I configured “Listen to DHCP reqeusts” to OFF and deleted arpping in arp ping tool path, because this tool does not exist on Windows. I just want to use the java ping.
But in log I got:
2018-01-13 14:48:43.385 [WARN ] [lipse.smarthome.io.net.exec.ExecUtil] - Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "arping" (in directory "."): CreateProcess error=2, Das System kann die angegebene Datei nicht finden)
2018-01-13 14:48:43.416 [INFO ] [ternal.dhcp.DHCPPacketListenerServer] - DHCP request packet listener online
It looks like listen to dhcp is on? and OH is searign for arpping?
All is working but I want to get rid of this error messages. Any idea?
I also do not know if you can turn that off. I don’t think it will hurt anything. It just keeps an eye on DHCP packets on the subnet. It allows it to basically eavesdrop on other devices doing DHCP handshakes which allows OH to know sooner when a monitored device comes online.
I assume it means in your service folder. For apt installs that would be /etc/openhab2/service/network.cfg. I’m not certain for windows… based on the docs looks like maybe here?: C:\openHAB2\userdata\etc
I don’t have a network.cfg file and it works fine for me but I suspect you only need the file if you are going to make the system pings change like you want. I would create a file named network.cfg in that location and put “allowSystemPings=true” in there.
Others may way in on this as I don’t have first hand experience with running in windows OR using system ping.
I experience exactly the same. My OpenHAB 2.2.0 is running on a Windows OS box too.
Basicly I don’t mind, if the binding uses arping or not (at least I think), my intension is to use the binding for iPhone presence detection. However the documentation is mentioning ARP pings in connection with iPhone and iPad devices, and I wonder, if it would make the function more reliable using arping!? Therefore I have downloaded arping for Windows, and placed the exe file in my C:/OpenHAB2 folder. I’m not sure that’s how the documentation describes it to be:
Make sure the tool is available in $PATH (%PATH% respectively on Windows) or in the same path as the openHAB executable.
I guess not, because doing that still generates the "…Cannot run program “arping” (in directory “.”)…) warning.
From the PaperUI it’s possible to configure the ARP ping tool path, but doing so doesn’t change anything, still generates the warn.
Likewise I have tried to configure the ARP ping tool path by creating a org.openHAB.binding.network.cfg file, and place it in C:\openHAB2\userdata\etc. Same result, still generates the warn.
Have had a look on the Fritzbox TR064 binding. I’m in doubt if this could solve the problem for me too, since my home network is based on ZyXEL router and D-Link access points. Are you using Fritzbox products for your home network?