Merged revision(s) 3044 from branches/releases/bacnet-stack-0-8-0:
Added BACnet/IPv6 datalink layer and example BACnet/IPv4 to BACnet/IPv6 router. BVLC6 layer is working on Linux port without BBMD features yet. Win32 is implemented, untested. Tested during BACnet North American Plugfest 2016. ........
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
#Makefile to build BACnet Application for the GCC port
|
||||
|
||||
# tools - only if you need them.
|
||||
# Most platforms have this already defined
|
||||
# CC = gcc
|
||||
|
||||
# Executable file name
|
||||
TARGET = bacroute
|
||||
|
||||
TARGET_BIN = ${TARGET}$(TARGET_EXT)
|
||||
|
||||
CFLAGS += -DPRINT_ENABLED=1
|
||||
|
||||
BACNET_SOURCE_DIR = ../../src
|
||||
BACNET_HANDLER_DIR = ../handler
|
||||
BACNET_OBJECT_DIR = ../object
|
||||
|
||||
SRC = main.c \
|
||||
$(BACNET_OBJECT_DIR)/device-client.c
|
||||
|
||||
PORT_BIP6_SRC = \
|
||||
$(BACNET_PORT_DIR)/bip6.c \
|
||||
$(BACNET_SOURCE_DIR)/bvlc6.c \
|
||||
$(BACNET_HANDLER_DIR)/h_bbmd6.c \
|
||||
$(BACNET_SOURCE_DIR)/vmac.c
|
||||
|
||||
SRCS = ${SRC} ${PORT_BIP6_SRC}
|
||||
|
||||
OBJS = ${SRCS:.c=.o}
|
||||
|
||||
all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN}
|
||||
|
||||
${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET}
|
||||
${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@
|
||||
size $@
|
||||
cp $@ ../../bin
|
||||
|
||||
lib: ${BACNET_LIB_TARGET}
|
||||
|
||||
${BACNET_LIB_TARGET}:
|
||||
( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) )
|
||||
|
||||
.c.o:
|
||||
${CC} -c ${CFLAGS} $*.c -o $@
|
||||
|
||||
depend:
|
||||
rm -f .depend
|
||||
${CC} -MM ${CFLAGS} *.c >> .depend
|
||||
|
||||
clean:
|
||||
rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map
|
||||
|
||||
include: .depend
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,22 @@
|
||||
BACnet Simple Router Demo
|
||||
=========================
|
||||
|
||||
The Simple Router demo connects one BACnet/IP and one BACnet/IPv6 network.
|
||||
It also includes a BBMD so that Foreign Device Registration can be used
|
||||
to tunnel local command line demos to BACnet/IP and BACnet IPv6 networks.
|
||||
|
||||
Configuration
|
||||
=============
|
||||
|
||||
It uses environment variables to configure
|
||||
the BACnet/IP port and BACnet/IPv6 address on Linux:
|
||||
|
||||
export BACNET_IFACE=eth0
|
||||
export BACNET_BIP6_IFACE=eth0
|
||||
|
||||
Also uses these configurations, but defaults to these values if not set:
|
||||
export BACNET_IP_PORT=47808
|
||||
export BACNET_BIP6_PORT=47808
|
||||
export BACNET_BIP6_BROADCAST=FF05
|
||||
export BACNET_IP_NET=1
|
||||
export BACNET_IP6_NET=2
|
||||
Reference in New Issue
Block a user