资源简介
移植在stm32上的bacnet源代码,便于开发者学习,代码完整。
代码片段和文件信息
/**************************************************************************
*
* Copyright (C) 2006 Steve Karg
*
* Permission is hereby granted free of charge to any person obtaining
* a copy of this software and associated documentation files (the
* “Software“) to deal in the Software without restriction including
* without limitation the rights to use copy modify merge publish
* distribute sublicense and/or sell copies of the Software and to
* permit persons to whom the Software is furnished to do so subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND
* EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM DAMAGES OR OTHER LIABILITY WHETHER IN AN ACTION OF CONTRACT
* TORT OR OTHERWISE ARISING FROM OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*********************************************************************/
/* command line tool demo for BACnet stack */
#include
#include
#include
#include
#include /* for time */
#include
#include “bactext.h“
#include “iam.h“
#include “arf.h“
#include “tsm.h“
#include “address.h“
#include “config.h“
#include “bacdef.h“
#include “npdu.h“
#include “apdu.h“
#include “device.h“
#include “net.h“
#include “datalink.h“
#include “whois.h“
#include “dcc.h“
/* some demo stuff needed */
#include “filename.h“
#include “handlers.h“
#include “client.h“
#include “txbuf.h“
#include “dlenv.h“
/* buffer used for receive */
static uint8_t Rx_Buf[MAX_MPDU] = { 0 };
/* global variables used in this file */
static uint32_t Target_Device_object_Instance = BACNET_MAX_INSTANCE;
static BACNET_ADDRESS Target_Address;
static uint16_t Communication_Timeout_Minutes = 0;
static BACNET_COMMUNICATION_ENABLE_DISABLE Communication_State =
COMMUNICATION_ENABLE;
static char *Communication_Password = NULL;
static bool Error_Detected = false;
static void MyErrorHandler(
BACNET_ADDRESS * src
uint8_t invoke_id
BACNET_ERROR_CLASS error_class
BACNET_ERROR_CODE error_code)
{
/* FIXME: verify src and invoke id */
(void) src;
(void) invoke_id;
printf(“BACnet Error: %s: %s\r\n“ bactext_error_class_name(error_class)
bactext_error_code_name(error_code));
Error_Detected = true;
}
void MyAbortHandler(
BACNET_ADDRESS * src
uint8_t invoke_id
uint8_t abort_reason
bool server)
{
/* FIXME: verify src and invoke id */
(void) src;
(void) invoke_id;
(void) server;
printf(“BACne
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-19 05:38 bacnet-stack-0.8.5\
文件 507 2013-03-22 01:02 bacnet-stack-0.8.5\export.sh
目录 0 2017-11-19 05:38 bacnet-stack-0.8.5\lib\
文件 5880 2013-10-09 21:52 bacnet-stack-0.8.5\lib\makefile.b32
文件 775 2010-02-14 05:53 bacnet-stack-0.8.5\lib\main.cpp
文件 13140 2012-04-16 14:59 bacnet-stack-0.8.5\lib\bacnet.cbp
文件 8313 2012-04-06 23:24 bacnet-stack-0.8.5\lib\bacnetdll.cbp
文件 466 2012-04-06 23:24 bacnet-stack-0.8.5\lib\main.h
文件 5344 2017-01-02 23:08 bacnet-stack-0.8.5\lib\Makefile
文件 5149 2012-04-06 23:24 bacnet-stack-0.8.5\readme.txt
目录 0 2017-11-19 05:38 bacnet-stack-0.8.5\test\
文件 1616 2012-04-06 23:24 bacnet-stack-0.8.5\test\rd.cbp
文件 614 2012-04-06 23:24 bacnet-stack-0.8.5\test\whois.mak
文件 510 2012-04-06 23:24 bacnet-stack-0.8.5\test\indtext.mak
文件 825 2016-03-10 18:03 bacnet-stack-0.8.5\test\rpm.mak
文件 32336 2007-10-26 19:58 bacnet-stack-0.8.5\test\bacdcode.ide
文件 773 2016-03-10 18:03 bacnet-stack-0.8.5\test\cov.mak
文件 616 2012-04-06 23:24 bacnet-stack-0.8.5\test\rp.mak
文件 1476 2012-04-06 23:24 bacnet-stack-0.8.5\test\address.cbp
文件 29721 2007-10-26 19:58 bacnet-stack-0.8.5\test\crc.ide
文件 525 2012-04-06 23:24 bacnet-stack-0.8.5\test\sbuf.mak
文件 528 2012-04-06 23:24 bacnet-stack-0.8.5\test\filename.mak
文件 622 2012-04-06 23:24 bacnet-stack-0.8.5\test\rd.mak
文件 1667 2012-04-06 23:24 bacnet-stack-0.8.5\test\ctest.h
文件 3290 2012-04-06 23:24 bacnet-stack-0.8.5\test\timesync.cbp
文件 568 2012-04-06 23:24 bacnet-stack-0.8.5\test\ob
文件 614 2012-04-06 23:24 bacnet-stack-0.8.5\test\whohas.mak
文件 594 2012-04-06 23:24 bacnet-stack-0.8.5\test\abort.mak
文件 3952 2012-04-06 23:24 bacnet-stack-0.8.5\test\ctest.c
文件 798 2016-09-28 18:42 bacnet-stack-0.8.5\test\bbmd6.mak
文件 630 2012-04-06 23:24 bacnet-stack-0.8.5\test\awf.mak
............此处省略1061个文件信息
相关资源
- BACnet协议中文版
- Bacnet协议
- 免费的BACnet测试工具
- VTS bacnet
- bacnet协议栈代码
- bacnet开发相关资料
- bacnet-stack-0.5.8.zip
- 西门子BACNET ATEC VAV控制器整定说明
- Bacnet协议完整版原版
- BACnet 楼宇控制 测试源码
- 智能楼宇BACnet原理与应用
- VTS_Bacnet_调试工具
- ASHRAE 135-2016 BACnet协议
- bacnetsimulator_5.0.20_1.exe
- BACnet 测试软件
- BACNET测试软件
- BACnet协议源码
- bacnet-stack-0.8.0
- BAcNet楼宇自控 BacNet楼宇自控
- BAcNet标准及系统集成
- Bacnet简介
评论
共有 条评论