Logic Machine Forum
LogicalMachine as BACNet Server and as BACNet Client - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: LogicalMachine as BACNet Server and as BACNet Client (/showthread.php?tid=2612)



LogicalMachine as BACNet Server and as BACNet Client - ikhy - 27.04.2020

Hi! We have a problem and I ask you help
We have one LM as BACNetServer (port 47808). Can we use this LM as BACNet Client also? I do in script: bacnet.port =0xBAC1  but  function bacnet.readvalue return nil


RE: LogicalMachine as BACNet Server and as BACNet Client - admin - 27.04.2020

If you use a different port then all other devices must use the same port as well. This is a limitation of BACnet that's not possible to change.


RE: LogicalMachine as BACNet Server and as BACNet Client - ikhy - 27.04.2020

(27.04.2020, 07:49)admin Wrote: If you use a different port then all other devices must use the same port as well. This is a limitation of BACnet that's not possible to change.
We need use two LM. So?


RE: LogicalMachine as BACNet Server and as BACNet Client - admin - 27.04.2020

If you want to use client and server on default port 47808 then the only solution is 2 LMs. What system do you use to connect to LM BACnet server? Maybe you can run server on a different port and use default port for client.


RE: LogicalMachine as BACNet Server and as BACNet Client - Erwin van der Zwart - 27.04.2020

Hi,

Why not create all the bindings in the client that already connects to the server, from that client you can interface to the second server and exchange data between the 2 servers that is setup in your client. This way the controller does not need to be server and client at the same time. Depending on the 3th party server you might even setup p2p between the two servers by using consumer or producer objects (If available in your server), this is how a BACnet network  should be build. 

BR,

Erwin


RE: LogicalMachine as BACNet Server and as BACNet Client - ikhy - 27.04.2020

thank you!