Example: Use LogicMachine as BACnet client

Task

How to read BACnet client data and send this information into KNX bus.

 

Install latest firmware available here

 

Install the Bacnet.ipk package in Sys Config –> System –> Packages

old CPU i.MX28
new CPU i.MX6 POWER

bacnet_client_logicmachine

Note

Before using any bacnet function, you must include the library:

 require('bacnet')

 

Examples of commands

 

Multi-input/output

Create object for operation mode, set data type to 1-byte unsigned integer. Create event script for this object:

require('bacnet')

-- set new operation mode
value = event.getvalue()
bacnet.write(3, 'multi-state output', 10105, value)