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.

HomeLYnk BACnetIP Client
#2
There's no package manager on Homelynk, so please contact support for further help.

For any LogicMachine device: here's a BACnet client package that you can install through System Config -> System -> Packages:
https://dl.openrb.com/lm-15.09/pkg/genoh...27_mxs.ipk

It will add BACnet tab to the web interface which will allow scanning network for BACnet devices and reading object values from them.

Info on using bacnet library from scripts:

Before using any bacnet function, you must include the library:
Code:
require('bacnet')

Read current value of binary or analog object:
Code:
bacnet.readvalue(device_id, object_type, object_id)

Read binary object number 2305 from device 127001:
Code:
value = bacnet.readvalue(127001, 'binary value', 2305)

Read analog object number 2306 from device 127001:
Code:
value = bacnet.readvalue(127001, 'analog value', 2306)

Write new value to binary or analog object priority array:
Code:
bacnet.write = function(device_id, object_type, object_id, value, priority)
 Value can be nil, boolean, number or a numeric string
 Priority parameter is optional, lowest priority is used by default

Set binary object number 2305 on device 127001 value to true:
Code:
bacnet.write(127001, 'binary value', 2305, true)

Set analog object number 2306 on device 127001 value to 22.5:
Code:
bacnet.write(127001, 'analog value', 2306, 22.5)

Set binary object number 2305 on device 127001 value to true at priority 12:
Code:
bacnet.write(127001, 'binary value', 2305, true, 12)

Set analog object number 2306 on device 127001 value to 22.5 at priority 10:
Code:
bacnet.write(127001, 'analog value', 2306, 22.5, 10)

Clear binary object number 2305 on device 127001 value at priority 12:
Code:
bacnet.write(127001, 'binary value', 2305, nil, 12)
Reply


Messages In This Thread
HomeLYnk BACnetIP Client - by Pawel - 16.12.2015, 19:37
RE: HomeLYnk BACnetIP Client - by admin - 18.12.2015, 07:44
RE: HomeLYnk BACnetIP Client - by admin - 18.12.2015, 08:57
RE: HomeLYnk BACnetIP Client - by admin - 18.12.2015, 09:24
RE: HomeLYnk BACnetIP Client - by Bapits - 24.02.2016, 16:11
RE: HomeLYnk BACnetIP Client - by admin - 25.02.2016, 07:01
RE: HomeLYnk BACnetIP Client - by Bapits - 25.02.2016, 11:24
RE: HomeLYnk BACnetIP Client - by admin - 25.02.2016, 11:26

Forum Jump: