资源简介
bacnet协议栈代码bacnet-stack-0.8.1,比较新的版本。
代码片段和文件信息
/**************************************************************************
*
* 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 2013-09-23 20:27 bacnet-stack-0.8.1\
目录 0 2013-09-23 20:27 bacnet-stack-0.8.1\src\
文件 3458 2012-04-06 23:24 bacnet-stack-0.8.1\src\filename.c
文件 1602 2012-04-06 23:24 bacnet-stack-0.8.1\src\version.c
文件 7039 2012-04-06 23:24 bacnet-stack-0.8.1\src\indtext.c
文件 8588 2012-04-06 23:24 bacnet-stack-0.8.1\src\whohas.c
文件 12398 2013-03-13 22:17 bacnet-stack-0.8.1\src\bip.c
文件 14542 2013-03-13 22:17 bacnet-stack-0.8.1\src\fifo.c
文件 10037 2012-04-30 10:14 bacnet-stack-0.8.1\src\bacint.c
文件 1719 2012-04-06 23:24 bacnet-stack-0.8.1\src\bigend.c
文件 10600 2012-04-06 23:24 bacnet-stack-0.8.1\src\bacdevobjpropref.c
文件 6632 2012-04-30 10:14 bacnet-stack-0.8.1\src\ihave.c
文件 34606 2012-05-13 15:07 bacnet-stack-0.8.1\src\rpm.c
文件 5949 2012-11-01 14:13 bacnet-stack-0.8.1\src\lso.c
文件 6557 2012-04-06 23:24 bacnet-stack-0.8.1\src\sbuf.c
文件 6057 2012-04-06 23:24 bacnet-stack-0.8.1\src\whois.c
文件 17586 2012-04-06 23:24 bacnet-stack-0.8.1\src\getevent.c
文件 4682 2012-04-06 23:24 bacnet-stack-0.8.1\src\datali
文件 8067 2012-04-30 10:14 bacnet-stack-0.8.1\src\bacreal.c
文件 8569 2012-04-06 23:24 bacnet-stack-0.8.1\src\alarm_ack.c
文件 3500 2012-04-06 23:24 bacnet-stack-0.8.1\src\mstptext.c
文件 3036 2013-03-13 22:17 bacnet-stack-0.8.1\src\bacaddr.c
文件 10610 2012-04-06 23:24 bacnet-stack-0.8.1\src\crc.c
文件 6882 2012-04-06 23:24 bacnet-stack-0.8.1\src\iam.c
文件 31519 2013-03-13 22:17 bacnet-stack-0.8.1\src\bacstr.c
文件 36785 2013-03-13 22:17 bacnet-stack-0.8.1\src\address.c
文件 13859 2013-03-13 22:17 bacnet-stack-0.8.1\src\ringbuf.c
文件 90176 2013-03-13 22:23 bacnet-stack-0.8.1\src\bacdcode.c
文件 7436 2012-05-13 15:07 bacnet-stack-0.8.1\src\abort.c
文件 60293 2013-03-13 22:17 bacnet-stack-0.8.1\src\bactext.c
文件 81501 2013-09-09 15:43 bacnet-stack-0.8.1\src\mstp.c
............此处省略919个文件信息
- 上一篇:个人设置里面更改头像图片
- 下一篇:r树算法详细描述
评论
共有 条评论