-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read and write on another BACnet devices #2
Comments
If you want to do that from your computer, you can use a bacnet network browser, but if you want to do it from the esp32, you will have to use the |
Yes, I was talking about reading or writing from the ESP32. |
I dont have an example. I would suggest looking at I think the way to go about it would be first to construct a I havent done it before, and am not super familiar with bacnet, so I'm not sure if this is the correct way. One problem you might run into is that you have no clue what part isn't working if you are not able to write a property. You might try logging what your esp32 recieves as a bacnet server when you use a bacnet client (on your computer for example) to write a value, then replay the message as a client. |
Thanks for asking the question @innamidome. I am also hoping to perform reading/writing functionality from a ESP32 board to other BACnet devices over BACnet/IP. I was under the impression that this project is capable of performing those functions. @lukedukeus Could you please explain the current functionality of this project and if there are any other projects you know of that can perform reading/writing functionality from a ESP32 board to other BACnet devices over BACnet/IP |
This repo is an bacnet server using this library, Implemented in ESP-IDF. Under the ports directory, the bacnet-stack library has an example for esp32 that does the same thing, but written using platformio. Right now it is designed to join the esp32 to a network, then act as a bacnet server - or a device that sits on the network, that you could read / write values to. The library this uses (bacnet-stack) is capable of handling read and write requests, as well as sending them. This example project just shows handling requests, not sending them out. If I get some time this week, I will put together an example of sending read / write requests |
@lukedukeus thank you very much for your help! |
I tried using the (bacnet-stack) library but couldn't get it to run on my ESP32 board. Would you be able to help guide me on how to get that functionality using your repo? Or is this what you're planning to work on this week, if you get some time? |
I wasn't able to get it working either, thats why I created this repo, which is mostly the same code, just on top of ESP-IDF. I also had to look a the windows port, as the network apis are similar between esp32 / windows |
Ok. I am a beginner with C and BACnet but please let me know if theres anything I can do to help with developing the read/write requests for this sample code. |
@CMD10M @innamidome see the updated code / readme. I have it setup so the esp32 is a server, but also a client that can write properties. You will have to play around with the kconfig settings to get it working, and the example is pretty sloppy, so you may have to start / restart the esp32s a few times to get it working. Most of this sample was created from here. |
@lukedukeus Sounds good ! I'll try this next week ;). Thanks for your reactivity. |
@lukedukeus Thank you very much! Is there a 'server only version' where we don't have to define the downstream devices or other BACnet devices on the network. Rather, they can discover us but we can still do read/write in a more passive way? Instead of a client that is more active and does active requests to other BACnet devices? |
Sure, you can comment out the server task. Sending an i-am should get you what devices are on the network. I don't have any examples, but take a look at the bacnet-stack library examples. You could also look at yabe, to see how it discovers devices. |
Ok thank you! Also, is it possible to use platformIO with this repo? |
Im sure you could get it to work with some adjustment, right now it is using ESP-IDF |
Thank you so much for all your help! Ill work on it over the next few days and see where I end up! |
It looks like ESP-IDF build system is not installed. Do ctrl+shift+P, then configure ESP-IDF extension. Try following the instructions here: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/ |
Take a look at client_task.c, and changing the device id to write to a different device on the same network. Yabe is very helpful for discovering what devices are on your network. |
Sure, send me an email at [email protected], and we can schedule something. |
Ok! Thank you! I’ll send an email out tomorrow. |
Hi,
Thanks a lot for your job.
I'd like to read and write to another BACnet device. Do you have any idea if it could be possible? and if so, how?
thank you.
Inna
The text was updated successfully, but these errors were encountered: