BAwenshichuangan-Sim
Happy! 

所属分类:单片机开发
开发工具:Visual C++
文件大小:87KB
下载次数:6
上传日期:2011-07-24 14:19:45
上 传 者specimenss
说明:  一个温湿度传感器dht21数字传感器代码,采用40bit单总线输出,前16bit湿度,后16bit温度,八bit效验位-happy。
(A temperature and humidity sensor dht21 digital sensor code, the use of 40bit single-bus output, 16bit humidity before and after the temperature 16bit, eight bit checksum bit-happy.)

文件列表:
BAwenshichuangan Sim\apdu.c (20847, 2006-05-31)
BAwenshichuangan Sim\apdu.h (2158, 2005-08-08)
BAwenshichuangan Sim\bacdcode.c (41040, 2006-05-31)
BAwenshichuangan Sim\bacdcode.h (7249, 2006-02-23)
BAwenshichuangan Sim\bacenum.h (33640, 2006-03-29)
BAwenshichuangan Sim\GPL_license.txt (18240, 2005-08-08)
BAwenshichuangan Sim\makefile (818, 2005-08-08)
BAwenshichuangan Sim\make_apdu.c (18026, 2006-02-23)
BAwenshichuangan Sim\make_apdu.h (3787, 2006-02-23)
BAwenshichuangan Sim\mstp.c (76121, 2006-02-09)
BAwenshichuangan Sim\mstp.h (12181, 2006-02-23)
BAwenshichuangan Sim\mstp_crc.c (4582, 2005-08-08)
BAwenshichuangan Sim\mstp_crc.h (1796, 2005-08-08)
BAwenshichuangan Sim\npdu.c (6981, 2005-08-08)
BAwenshichuangan Sim\npdu.h (4097, 2005-08-08)
BAwenshichuangan Sim\object.c (24362, 2006-05-31)
BAwenshichuangan Sim\object.h (4516, 2006-02-23)
BAwenshichuangan Sim\platform\conf.h (641, 2005-08-08)
BAwenshichuangan Sim\platform\main.c (41224, 2006-05-31)
BAwenshichuangan Sim\platform\platform.h (5955, 2006-02-09)
BAwenshichuangan Sim\platform\rs485.c (9835, 2006-02-09)
BAwenshichuangan Sim\platform\rs485.h (1827, 2006-02-09)
BAwenshichuangan Sim\platform\set_n_get.c (2706, 2006-05-05)
BAwenshichuangan Sim\platform\uart_dump.c (4493, 2006-09-18)
BAwenshichuangan Sim\platform\uart_server.c (8388, 2006-02-09)
BAwenshichuangan Sim\services.c (27472, 2006-05-31)
BAwenshichuangan Sim\services.h (2034, 2005-08-08)
BAwenshichuangan Sim\set_n_get.h (402, 2006-05-05)
BAwenshichuangan Sim\platform (0, 2011-07-24)
BAwenshichuangan Sim (0, 2011-07-24)

BACnetSim has a little strange name because in realy early development the BACnet MSTP physical layer was simuleated with a server application on a Linux PC. This stack is meant to be easy to port to many embedded platforms but for the moment it runs on Linux and uses the serialport and a rs232-rs485 converter to connect to a MSTP network. The stack is tested on an AMD Sempron 2500+ running a 2.6.10 Linux kernel. DISCLAIMER!! THIS IS NOT INTENDED TO BE AN END USER PRODUCT!! It is only intended to a developers tool and example code. Most parameters are hard coded in the source. DISCLAIMER!! Trying the code: Simply unpack the files into any directory and run make. This will give you three executables: bacnet, server and dump. server: Is the early physical layer simulator. parameters: NONE. dump: Is a tool to read the data comming from the serialport. parameters: [tty [baudrate]] ([]==optional) example: To dump the data on the serial line to stdout execute: ./dump /dev/ttyS0 9600 bacnet: Is the actual bacnet application. parameters: MAC [tty] ([]==optional) example: To start a bacnet client on a MSTP network execute: ./bacnet 10 The stack contains auto baudrate detection and does not need a baudrate parameter. To specify a tty other than ttyS0 execute: ./bacnet 10 /dev/ttyXXX Runtime commands: ( = Object instance number) 'p' Togle message printouts ON/OFF. 'b' Try next baudrate. 's' broadcast a 'WHO_IS'. "i" broadcast a 'WHO_HAS ANALOG_INPUT '. "v" broadcast a 'WHO_HAS ANALOG_VALUE '. "ra " Read the PRESENT_VALUE parameter of the ANALOG_VALUE with object id in the device with MAC id . "rA " Same as the above just repeat the read as fast as possible untill another command is typed on stdin. "Ra " Same as "ra ..." except now we accept segmented responces. "rb " Read the PRESENT_VALUE parameter of the BINARY_VALUE with object id in the device with MAC id . "Rb " identical to Ra except for the object type. "wa " Write to the PRESENT_VALUE of the ANALOG_VALUE object with id in the device with MAC id . "wb " Write to the PRESENT_VALUE of the BINARY_VALUE object with id in the device with MAC id . "Wa/b ... " identical to 'wa' and 'wb' except that the command continues the sending until a new command is given.

近期下载者

相关文件


收藏者