This BACnet stack is service driven. It handles the services (BACnet requests like WhoIs, I-Am, ReadProperty, etc) to/from the network layer to functions that handle the application layer. There are a bunch of functions that facilitate encoding and decoding to/from the network message data to/from something meaningful in the program.
这个 BACnet 堆栈是服务驱动的。 它处理来自/来自网络层的服务(BACnet 请求,如 WhoIs、I-Am、ReadProperty 等)到处理应用程序层的功能。 有许多函数可以促进对网络消息数据进行编码和解码,或者从程序中有意义的东西进行编码和解码。
A BACnet device is supposed to support, at a minimum, ReadProperty service (server) and a single Device Object. This even applies to a BACnet client on a PC that is used for reading other BACnet devices.
BACnet 设备至少应该支持 ReadProperty 服务(服务器)和单个设备对象。 这甚至适用于用于读取其他 BACnet 设备的 PC 上的 BACnet 客户端。
There are a number of core files that you will need. Services such as ReadProperty, I-Am, and Reject are consided core files. After determining which services you want in your device, add files to your project or makefile from the following BACnet services (messages) provided by this BACnet stack:
您将需要许多核心文件。 ReadProperty、I-Am 和 Reject 等服务被视为核心文件。 在确定您想要在您的设备中使用哪些服务后,从该 BACnet 堆栈提供的以下 BACnet 服务(消息)中将文件添加到您的项目或生成文件中:
* abort.c - BACnet Abort service encode/decode
* bacerror.c - BACnet Error service encode/decode
* reject.c - BACnet Reject service encode/decode
* arf.c - AtomicReadFile service encode/decode
* awf.c - AtomicWriteFile service encode/decode
* rp.c - BACnet ReadProperty service encode/decode
* rpm.c - ReadPropertyMultiple service encode/decode
* iam.c - I-Am service encode/decode
* whois.c - WhoIs service encode/decode
* wp.c - WriteProperty service encode/decode
* wpm.c - WritePropertyMultiple service encode/decode
* dcc.c - DeviceCommunicationControl service encode/decode
* ihave.c - I-Have service encode/decode
* rd.c - ReinitializedDevice service encode/decode
* timesync.c - TimeSynchronization service encode/decode
* whohas.c - WhoHas service encode/decode
* event.c - EventNotification service encode/decode
* get_alarm_sum.c - GetAlarmSummary service encode/decode
* getevent.c - GetEventInformation service encode/decode
* lso.c - LifeSafetyOperation service encode/decode
* p