2015-12-17 12:29:42 +00:00
|
|
|
CONTIKI_PROJECT=rpl-border-router
|
|
|
|
|
|
|
|
TARGET ?= jn516x
|
|
|
|
JN516x_WITH_DONGLE = 1
|
|
|
|
|
2017-05-16 14:04:19 +00:00
|
|
|
CONTIKI=../../../../../..
|
2015-12-17 12:29:42 +00:00
|
|
|
|
|
|
|
PROJECT_SOURCEFILES += slip-bridge.c slip.c
|
|
|
|
|
|
|
|
PROJECTDIRS += .. ../../tools
|
2017-09-01 13:29:00 +00:00
|
|
|
PROJECT_SOURCEFILES += rpl-tools.c
|
2015-12-17 12:29:42 +00:00
|
|
|
|
|
|
|
CFLAGS += -DWITH_COAP
|
2017-09-08 15:48:29 +00:00
|
|
|
MAKE_MAC = MAKE_MAC_TSCH
|
2017-09-01 14:37:51 +00:00
|
|
|
MODULES += os/net/app-layer/coap
|
2017-09-08 15:48:29 +00:00
|
|
|
MODULES += os/services/orchestra os/lib/json
|
2015-12-17 12:29:42 +00:00
|
|
|
|
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
include $(CONTIKI)/Makefile.include
|
|
|
|
|
|
|
|
ifeq ($(PREFIX),)
|
|
|
|
PREFIX = aaaa::1/64
|
|
|
|
endif
|
|
|
|
|
|
|
|
#no flow control
|
|
|
|
connect-router: $(CONTIKI)/tools/tunslip6
|
|
|
|
sudo $(CONTIKI)/tools/tunslip6 -v1 -B 1000000 $(PREFIX)
|
|
|
|
|
|
|
|
#using XON/XOFF flow control
|
|
|
|
connect-router-sw: $(CONTIKI)/tools/tunslip6
|
|
|
|
sudo $(CONTIKI)/tools/tunslip6 -v1 -X -B 1000000 $(PREFIX)
|
|
|
|
|
2017-09-01 13:29:00 +00:00
|
|
|
#using hw flow control
|
2015-12-17 12:29:42 +00:00
|
|
|
connect-router-hw: $(CONTIKI)/tools/tunslip6
|
|
|
|
sudo $(CONTIKI)/tools/tunslip6 -v1 -H -B 1000000 $(PREFIX)
|
|
|
|
|
2017-09-01 13:29:00 +00:00
|
|
|
#using no flow control
|
2015-12-17 12:29:42 +00:00
|
|
|
connect-router-no: $(CONTIKI)/tools/tunslip6
|
|
|
|
sudo $(CONTIKI)/tools/tunslip6 -v1 -B 1000000 $(PREFIX)
|
|
|
|
|
|
|
|
connect-router-cooja: $(CONTIKI)/tools/tunslip6
|
|
|
|
sudo $(CONTIKI)/tools/tunslip6 -a 127.0.0.1 $(PREFIX)
|