This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

KNX physical address check
#11
Another approach is to map a specific read-only group address and send read requests from LM to check if the device is alive. This will work even over IP networks.

Code:
addr = '1/1/1'
-- send read request and wait for reply
grp.read(addr)
os.sleep(2)

-- get time difference between now and last telegram
obj = grp.find(addr)
delta = os.time() - obj.updatetime

if delta < 10 then
  alert('Check OK')
else
  alert('Check FAIL')
end
Reply


Messages In This Thread
KNX physical address check - by Peter - 13.10.2015, 11:33
RE: KNX physical address check - by admin - 13.10.2015, 11:53
RE: KNX physical address check - by Peter - 13.10.2015, 12:10
RE: KNX physical address check - by Peter - 15.10.2015, 06:07
RE: KNX physical address check - by gtsamis - 21.01.2016, 23:30
RE: KNX physical address check - by Ruslan - 28.02.2016, 12:45
RE: KNX physical address check - by rocfusion - 28.02.2016, 20:47
RE: KNX physical address check - by Ruslan - 29.02.2016, 05:44
RE: KNX physical address check - by rocfusion - 29.02.2016, 05:54
RE: KNX physical address check - by admin - 02.03.2016, 08:46

Forum Jump: