资源简介
工作需要学习BACnet协议,希望对大家学习BACnet协议有用!

代码片段和文件信息
/*####COPYRIGHTBEGIN####
-------------------------------------------
Copyright (C) 2007 Andreas Kahl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License or (at your option) any later version.
This program is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not write to:
The Free Software Foundation Inc.
59 Temple Place - Suite 330
Boston MA 02111-1307 USA.
As a special exception if other files instantiate templates or
use macros or inline functions from this file or you compile
this file and link it with other works to produce a work based
on this file this file does not by itself cause the resulting
work to be covered by the GNU General Public License. However
the source code for this file must still be made available in
accordance with section (3) of the GNU General Public License.
This exception does not invalidate any other reasons why a work
based on this file might be covered by the GNU General Public
License.
-------------------------------------------
####COPYRIGHTEND####*/
using System;
using System.Collections.Generic;
using System.Text;
using BACnetApplicationlayer;
namespace AppTest
{
class Program
{
static void Main(string[] args)
{
Program app = new Program();
app.DoCompleteTest1();
}
private void DoCompleteTest1()
{
byte[] buffer = new byte[20];
UInt16 pos = new UInt16();
pos = 0;
IAmRequest request = new IAmRequest();
request.DeviceIdentifier = 200;
request.MaxAPDULengthAccepted.Value = 1024;
request.VendorID.Value = 15;
request.Encode(bufferref pos);
BacnetPDU pdu=BacnetPDU.Decode(buffer 0);
}
private void DoCompleteTest()
{
IAmRequest request = new IAmRequest();
request.DeviceIdentifier = 200;
request.MaxAPDULengthAccepted.Value = 1024;
request.VendorID.Value = 15;
ApplicationService appService = new ApplicationService( new Networklayer(new linklayer() ) );
appService.SendBACnetPDU(request);
}
private void DoTests()
{
byte[] buffer = new byte[20];
UInt16 pos = new UInt16();
pos = 0;
//DoTestVendor(buffer ref pos);
DoIAM(buffer ref pos);
ShowBuffer(buffer pos);
}
private void DoIAM(byte[] buffer ref UInt16 pos)
{
pos = 0;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-04-28 11:41 BACnet\
目录 0 2013-04-28 11:41 BACnet\branches\
目录 0 2013-04-28 11:41 BACnet\tags\
目录 0 2013-04-28 11:41 BACnet\trunk\
目录 0 2013-04-28 11:41 BACnet\trunk\AppTest\
文件 2202 2008-01-15 06:37 BACnet\trunk\AppTest\AppTest.csproj
文件 3714 2010-03-12 10:57 BACnet\trunk\AppTest\Program.cs
目录 0 2013-04-28 11:41 BACnet\trunk\AppTest\Properties\
文件 1267 2010-03-12 10:57 BACnet\trunk\AppTest\Properties\AssemblyInfo.cs
目录 0 2013-04-28 11:41 BACnet\trunk\BACnetApplicationla
文件 2543 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
文件 2335 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
文件 2355 2008-01-15 06:37 BACnet\trunk\BACnetApplicationla
文件 2656 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
文件 2112 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
文件 1590 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
文件 5697 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
文件 2070 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
文件 2076 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
文件 2163 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
文件 2079 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
目录 0 2013-04-28 11:41 BACnet\trunk\BACnetApplicationla
文件 1418 2010-03-12 10:57 BACnet\trunk\BACnetApplicationla
目录 0 2013-04-28 11:41 BACnet\trunk\bacsharp\
文件 1908 2008-01-15 06:37 BACnet\trunk\bacsharp.sln
文件 33280 2008-01-15 06:37 BACnet\trunk\bacsharp.suo
文件 123 2010-03-12 10:57 BACnet\trunk\bacsharp\AI.cs
文件 53648 2010-03-12 10:57 BACnet\trunk\bacsharp\BACnetEnums.cs
文件 2611 2008-01-15 06:37 BACnet\trunk\bacsharp\bacsharp.csproj
文件 238 2008-01-15 06:37 BACnet\trunk\bacsharp\bacsharp.csproj.user
文件 1634 2010-03-12 10:57 BACnet\trunk\bacsharp\Datali
............此处省略7个文件信息
相关资源
- Modbus协议官方文档中、英文全
- 并购重组资料(协议模板)
- 由浅入深,蓝牙4.0/BLE协议栈开发攻略
- 基于蓝牙4.0的设备通信方案设计与实
- ASUS BIOS 加NVME协议文件: Nvme.ffs NV
- 安卓QQ6.71协议源码易语言,qq协议源码
- WPF USB 网络 串口 通信软件
- 使用选择性重传协议实现UDP可靠通信
- modbus通讯协议详解
- B/S 网上订餐系统
- 教室管理系统.rar
- h225协议 RAS信令
- 小鸡快跑游戏.
-
分别适用于.NET fr
amework 2.0和4.0的E - 汽车租赁系统............................
- 安卓协议QQ源码包附模块源码
- 德卡D8读写器关于读写感应卡的一些代
- halcon 测量助手
- 用C 实现的对网络上的ARP数据包进行
- 图片存储到数据库保存二进制文件并
- ns2下leach协议源码
- RDM协议数据幁结构
- ccna、ccnp习题六地址解析协议 (ARP)
- 计算机网络课程设计—ARQ协议模拟实
- 用Socket写的简易FTP服务器和客户端
- ATA(ATAPI)接口指令协议硬盘基础知识
- 企业销售管理信息系统(全套)
- ISO7816 协议标准
- USB助手(调试USB通信协议的工具) 源
- VxWorks TCPIP协议栈
评论
共有 条评论