noahtkeller / go-bacnet

Golang implementation of the BACnet protocol
Other
42 stars 16 forks source link

Sample #2

Open bplogan opened 6 years ago

bplogan commented 6 years ago

Hi there, Do you have any samples on how to do a simple read from a local bacnet device? I am having trouble getting started and any help would be appreciated!! Thanks - Brad

noahtkeller commented 6 years ago

Hey,

Honestly I'm not entirely familiar with it, this was a learning project which I haven't had time to work on lately. If you google Steve Kargs he has lots of useful information on the subject, he wrote the C bacnet stack.

https://www.google.com/search?num=100&ei=dNlPWsf4EsH1mAGTwavgAg&q=steve+kargs+bacnet&oq=steve+kargs+bacnet&gs_l=psy-ab.3..0i13k1.364116.366626.0.366714.18.18.0.0.0.0.219.1850.9j5j2.16.0..2..0...1.1.64.psy-ab..2.16.1847...0j0i131k1j0i67k1j0i131i67k1j0i10k1j0i22i30k1.0.i_u0j5gxaK8

Hope that helps.

On Wed, Jan 3, 2018 at 8:39 AM, bplogan notifications@github.com wrote:

Hi there, Do you have any samples on how to do a simple read from a local bacnet device? I am having trouble getting started and any help would be appreciated!! Thanks - Brad

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/noahtkeller/go-bacnet/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ADeNpzwu3xANiX8w9dkJcAjyuVJ53nBpks5tG4MOgaJpZM4RRvbb .

wz2b commented 1 year ago

I can't really figure out how I'm supposed to put this together into an application. Do I just open something up that listens on port 47808/udp and route the contents somewhere? I'm not entirely sure where. I would expect to see a way to create an NPDU from bytes, possibly take in the src/dst IP address ... but I don't see anything like that.