MS/TP functionality for linux with erlang nif's #667
Replies: 2 comments · 2 replies
-
Only apps/router example uses dlmstp_linux.h\c within the library. The other example apps use dlmstp.c for MS/TP datalink. The MS/TP baud rate for the example applications typically use environment variables - see dlenv.c module:
Is there something that should be changed to better support your implementation? |
Beta Was this translation helpful? Give feedback.
-
There are a couple of ways to use BACnet MSTP in the library: Note: the apps built for BACnet/IP can route through either BACnet/IP to MS/TP router... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Howdy,
I'm currently trying to implement MS/TP for linux, the issue I'm running into is the use of src/bacnet/datalink/dlmstp.h & ports/linux/dlmstp_linux.h. Both have a related C file in the ports/linux directory. If dlmstp.c is uncommented in the target source in the CMakeList.txt or dlmstp.h is added to dlmstp_linux.c, there is a multiple definition clash. My question is, is dlmstp_linux.h\c required? My Erlang NIF for setting the baud rate uses dlmstp_linux automatically when no changes have been made, however this function requires an additional parameter:
void dlmstp_set_baud_rate(void *poPort, uint32_t baud)
This is less desirable than just using the the dlmstp.h\c:
void dlmstp_set_baud_rate(uint32_t baud)
if dlmstp_linux.h\c are removed from the target_source in CMakelist.txt and the dlmstp.h\c is used instead will for example the baud rate be set?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions