You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the original bacnet-stack library, datalink.c provides an abstraction for each interface. See here. based on what interfaces you set up, the bacnet stack library will handle encoding and decoding requests/responses to and from packets.
To get bacnet-stack to work on the esp32, I used the source code in the apps folder, because esp-idf's networking api looks very similar to window's networking API, and the apps are all written to work on windows.
For MSTP, the implementation just reads from and writes to buffers (here), so you will just need to:
Initialize your uart driver on startup example here
Write an implementation of dlmstp_rs485_driverhere that will provide send and read functions that control the uart driver
Then use the bacnet-stack library the same way it is used for ip. For example start a task to listen for data, something like:
Thanks for this great repo.
Where to begin porting code to make MSTP work ?
no uart or RS485 stuff in orginal repo
https://github.com/bacnet-stack/bacnet-stack/tree/master/ports/esp32
The text was updated successfully, but these errors were encountered: