Re: [Bacnet-developers] BACnet Stack and C#
Brought to you by:
skarg
|
From: Václav L. <vac...@gm...> - 2013-10-31 10:04:09
|
I am afraid I can't publish all the source code that can be built, but if you need help with certain issue please feel free to ask. My wrapper had all of the entities modelled in C# and translated via C++ DLL w/bacnet stack into BACnet APDUs. Both ethernet and BIP connectivity was supported, intrinsic alarming and algorithmic event reporting was implemented. Although the result is stable and robust, I would not recommend it for any future development since time needed to implement new features is extremely high comparing to doing the same in C++. Vasek 2013/10/30 Ivan Vernot <iv...@op...> > Hi Vasek,**** > > Your experiences sound interesting... Are you able to share the resulting > code? **** > > Regards,**** > > Ivan**** > > *From:* Václav Lukáš [mailto:vac...@gm...] > *Sent:* Thursday, 31 October 2013 8:45 AM > *To:* Discussion for developers of the BACnet stack > *Subject:* Re: [Bacnet-developers] BACnet Stack and C#**** > > ** ** > > I have done something similar back in 2007 when we had to deliver Windows > service that serves as gateway to some other devices. After tuning some > issues (callbacks between managed/unmanaged code, marshalling, etc) it has > become very stable and useful application. But I would not recommend doing > any serious development of C# application on top of recent bacnet stack > because:**** > > ** ** > > - bacnet stack architecture is way too different from what you would > expect/need**** > > - marshalling and creating C++ wrapper will take you as much time as > creating managed serializers/deserializers**** > > - you won't probably use most of bacnet stack source code since only > usable stuff is actually encoding/decoding procedures**** > > ** ** > > Vasek**** > > ** ** > > 2013/10/26 Julien B. <ant...@us...>**** > > > > Can anyone point me in the right direction to get started using the > > stack with C#? Any help is greatly appreciated. > It greatly depend on what degree of control over the bacnet-stack you > expect to have in c#, it you just need to invoke some property-reading > and writing, you might easily interface your C# classes with a custom > C++/CLI classes library of yours, linked with the unmodified core > bacnet-stack. > > That's what I did for our customers a few years ago now they are still > pretty happy. > > The only tricky part is to turn the native "array" / "lists" of objects > into the pretty managed C# objects.. and vice-versa.. > > > Have a look at the BACnet Browser at SourceForge > > http://sourceforge.net/projects/bacnetbrowser > .. we had a look at this project in 2010 but sadly it was not very > stable (and just not working with the controllers we had to ). Maybe it > is now better -- or maybe the code inside is interesting. > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > _______________________________________________ > BACnet-developers mailing list > BAC...@li... > https://lists.sourceforge.net/lists/listinfo/bacnet-developers**** > > ** ** > > > ------------------------------------------------------------------------------ > Android is increasing in popularity, but the open development platform that > developers love is also attractive to malware creators. Download this white > paper to learn more about secure code signing practices that can help keep > Android apps secure. > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > _______________________________________________ > BACnet-developers mailing list > BAC...@li... > https://lists.sourceforge.net/lists/listinfo/bacnet-developers > > |