Switching between Send and Receive mode for RS485 BACnet MSTP
-
Hi, I am using BACnet4J to set up a BACnet MSTP device (My company has purchased a commercial license for the library).
For my device, it is required to switch the RS485 chipset between receiving and sending mode. It can be done via a pin that we can set to HIGH or LOW.
Could I please request for your advice for the best place to do this in BACnet4J library. I tried to do this in the sendFrame method in MstpNode class. But I had to insert a delay before switching the device back to listening mode in order to allow time for the full packet to be sent out. This is not ideal as different requests have different sizes and therefore require more time to be sent.
Appreciate your help
Thanks
Tuan