Re: [Bacnet-developers] BACnet Stack and C#
Brought to you by:
skarg
|
From: Ivan V. <iv...@op...> - 2013-10-30 22:46:47
|
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... <mailto: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 <http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > &iu=/4140/ostg.clktrk _______________________________________________ BACnet-developers mailing list BAC...@li... <mailto:BAC...@li...> https://lists.sourceforge.net/lists/listinfo/bacnet-developers |