This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-CC1310: Configure problem

Part Number: LAUNCHXL-CC1310

Hi. I have PC, raspberry pi3B and 2 LAUNCHXL-cc1310. I install 6lbr on raspberry, Contiki slip-radio and Contiki web-demo on 2 LAUNCHXL-cc1310. Now I want to have access to 6lbr web interface. But I have some problem:

1. Web interface don't reply
2. Slip-radio send error.

Here is my config of 6lbr:

MODE=ROUTER

RAW_ETH=0
BRIDGE=1
DEV_BRIDGE=br0
DEV_TAP=tap0
DEV_ETH=eth0
RAW_ETH_FCS=0

DEV_RADIO=/dev/ttyACM0
BAUDRATE=115200

LOG_LEVEL=3
LOG_6LBR_OUT=/var/log/6lbr.log

Here is my /etc/network/interfaces on raspberry:

iface eth0 inet static
    address 0.0.0.0

auto br0
iface br0 inet manual
    bridge_ports eth0
    bridge_stp off
    up echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping
    post-up ip link set br0 address `ip link show eth0 | grep ether | awk '{print $2}'

Also I execute this commands on PI:

sysctl -w net.ipv6.conf.eth0.accept_ra=1
sysctl -w net.ipv6.conf.eth0.accept_ra_rt_info_max_plen=64

And put in /etc/dhcpcd.conf

denyinterfaces eth0 tap0

On PC add ipv6 addr and route:

sudo ip -6 addr add bbbb::101/64 dev en0
sudo ip -6 route add bbbb::/64 via bbbb::101

here is log of 6lbr. See on ERROR key words.

Mon 29 Jul 16:48:28 BST 2019 : Starting 6LBR
/usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -F /etc/6lbr/factory.dat -o /etc/6lbr/nvm.conf -s /dev/ttyACM0 -R -t tap0 -B 115200 -U /usr/lib/6lbr/6lbr-ifup -D /usr/lib/6lbr/6lbr-ifdown -w /usr/lib/6lbr/www -L 3  -W /var/log/6lbr.timestamp -P 60 -C /var/log/6lbr.ip  -m /usr/lib/6lbr/plugins   
Contiki-contiki-6lbr-1.5.0-2564-gacc770074 started with IPV6, RPL
Rime started with address 1.2.3.4.5.6.7.8
MAC multi-radio RDC br-rdc SEC nullsec NETWORK sicslowpan
2019-07-29 16:48:28.325380: NOTICE: 6LBR: Starting 6LBR version 1.5.x (Contiki-contiki-6lbr-1.5.0-2564-gacc770074)
2019-07-29 16:48:28.325894: INFO: SLIP: Allocated slip device 0 -> 0
2019-07-29 16:48:28.330125: INFO: ETH: 6LBR watchdog started (interval: 60)
2019-07-29 16:48:28.339190: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/dummy.so
2019-07-29 16:48:28.345649: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/lwm2m.so
2019-07-29 16:48:28.348746: INFO: PLUGIN: Initialising lwm2m-client
2019-07-29 16:48:28.348895: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/coap-mqtt-proxy.so
2019-07-29 16:48:28.370131: INFO: PLUGIN: Initialising cmp
2019-07-29 16:48:28.371509: INFO: NVM: NVM Magic : 2009
2019-07-29 16:48:28.371616: INFO: NVM: NVM Version : 6
2019-07-29 16:48:28.371655: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
2019-07-29 16:48:28.371767: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
2019-07-29 16:48:28.371829: NOTICE: 6LBR: Log level: 30 (services: ffffffff)
2019-07-29 16:48:28.371865: INFO: FRAMER: Using 802.15.4 framer
2019-07-29 16:48:28.371899: INFO: MAC: Using 'csma' mac driver
2019-07-29 16:48:28.372688: INFO: SLIP: SLIP started on /dev/ttyACM0
2019-07-29 16:48:28.383659: INFO: SCMD: Started br-cmd process
2019-07-29 16:48:28.383911: INFO: BR-RDC: SLIP RADIO configured as RADIO
2019-07-29 16:48:28.383956: INFO: BR-RDC: Configuring SLIP RADIO 0 (API: 1.0)
2019-07-29 16:48:28.383997: INFO: BR-RDC: Reset SLIP Radio
2019-07-29 16:48:28.384041: INFO: BR-RDC: Fetching MAC address
2019-07-29 16:48:28.388956: ERROR: SLIP: Unknown command
2019-07-29 16:48:28.389228: INFO: BR-RDC: Got MAC 0 : 00:12:4b:00:13:a4:7b:5f
2019-07-29 16:48:29.387003: ERROR: SLIP: Unknown command
2019-07-29 16:48:29.387119: ERROR: BR-RDC: Set channel failed
2019-07-29 16:48:29.586792: INFO: ETH: TAP Ethernet interface init
2019-07-29 16:48:29.612542: INFO: TAP: opened device tap0
2019-07-29 16:48:29.612757: INFO: TAP: Running 6lbr-ifup script '/usr/lib/6lbr/6lbr-ifup'
6lbr-ifup: Attach device tap0 to bridge br0
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 02:0a:0b:0c:0d:0e brd ff:ff:ff:ff:ff:ff
    inet6 fe80::ba27:ebff:fe11:be7d/64 scope link 
       valid_lft forever preferred_lft forever
5: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UNKNOWN group default qlen 1000
    link/ether 02:0a:0b:0c:0d:0e brd ff:ff:ff:ff:ff:ff
2019-07-29 16:48:29.756251: INFO: ETH: Eth MAC address : 00:12:4b:a4:7b:5f
2019-07-29 16:48:29.756381: INFO: MULTICAST: Using 'null' multicast driver
2019-07-29 16:48:29.756622: INFO: 6LBR: Tentative local IPv6 address fe80::212:4b00:13a4:7b5f
2019-07-29 16:48:29.756748: INFO: 6LBR: Tentative global IPv6 address (WSN) fd00::212:4b00:13a4:7b5f
2019-07-29 16:48:29.756865: INFO: 6LBR: Tentative global IPv6 address (ETH) bbbb::100
2019-07-29 16:48:29.756937: INFO: 6LBR: RA Daemon enabled
2019-07-29 16:48:29.756976: INFO: 6LBR: Checking addresses duplication
2019-07-29 16:48:40.765628: INFO: RPL: Configured as DODAG Root fd00::212:4b00:13a4:7b5f
2019-07-29 16:48:40.765984: INFO: 6LBR: Starting IP64
IP64: Starting DHCPv4
2019-07-29 16:48:40.766163: INFO: 6LBR: Starting as RPL-Router
2019-07-29 16:48:40.767281: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
2019-07-29 16:48:40.768160: INFO: HTTP: Starting webserver on port 80
2019-07-29 16:48:40.768973: INFO: NODECFG: Node Config init
2019-07-29 16:48:40.769119: INFO: NODECFG: No node_config.conf file specified
2019-07-29 16:48:40.769495: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
2019-07-29 16:48:40.769770: INFO: UDPS: UDP server started
CoAP push started
CoAP server started
2019-07-29 16:48:40.769977: INFO: DNS: DNS proxy started
2019-07-29 16:48:40.770071: INFO: PLUGIN: Initialising dummy
2019-07-29 16:48:40.770297: INFO: DUMMY: Dummy init
2019-07-29 16:48:40.770422: INFO: PLUGIN: Initialising lwm2m-client
2019-07-29 16:48:40.770663: INFO: LWM2M: LWM2M Client init
2019-07-29 16:48:40.770777: INFO: PLUGIN: Initialising cmp
2019-07-29 16:48:40.770856: INFO: CMP: MQTT-CoAP Bridge Server init
2019-07-29 16:48:40.770981: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
2019-07-29 16:48:40.771064: INFO: 6LBR: CETIC 6LBR Started
RD client started
2019-07-29 16:48:42.787156: INFO: 6LBR: Set IPv4 address : 192.168.0.231


  • I remember there is something wrong in latest 6lbr source codes. I suggest you to run “git checkout ff69ae4214407eeec4c71f87589ac4bc7d3a8a49” in 6lbr folder to get this specific version and rebuild 6lbr to test again.

  • I am a little bit confused in different versions of border router, slip-radio and web-demo. Can you advice me what implementations are the most fresh and stable and if you can give me a link on instruction.

  • For 6lbr, I know “ff69ae4214407eeec4c71f87589ac4bc7d3a8a49” is stable version. For slip radio and cc26xx-web-demo, you can use latest version.

  • slip radio and cc26xx-web-demo can be Contiki and Contiki-ng. Is Contiki-ng better choice? And what is the difference between clear 6lbr and 6lbr/Contiki-ng like here sunmaysky.blogspot.com/.../build-and-run-6lbrcontiki-ng-cc26xx-web.html
  • Contiki is deprecated and I would suggest you to use Contiki-NG.

  • I followed your instruction:

    sunmaysky.blogspot.com/.../build-and-run-6lbrcontiki-ng-cc26xx-web.html

    and after 3.3 I have made 

    git checkout ff69ae4214407eeec4c71f87589ac4bc7d3a8a49

    but in 3.6 I get an error

    ...
    
    /6lbr/conf-mapping.h:85:47: error: token "." is not valid in preprocessor expressions
     #define RPL_CONF_WITH_DAO_ACK       ((nvm_data.rpl_config & CETIC_6LBR_RPL_DAO_ACK) != 0)
                                                   ^
    /home/pi/contiki-ng/os/net/routing/rpl-lite/rpl-conf.h:127:26: note: in expansion of macro 'RPL_CONF_WITH_DAO_ACK'
     #define RPL_WITH_DAO_ACK RPL_CONF_WITH_DAO_ACK
                              ^~~~~~~~~~~~~~~~~~~~~
    /home/pi/contiki-ng/os/net/routing/rpl-lite/rpl-conf.h:143:5: note: in expansion of macro 'RPL_WITH_DAO_ACK'
     #if RPL_WITH_DAO_ACK
         ^~~~~~~~~~~~~~~~
    ./6lbr/conf-mapping.h:85:47: error: token "." is not valid in preprocessor expressions
     #define RPL_CONF_WITH_DAO_ACK       ((nvm_data.rpl_config & CETIC_6LBR_RPL_DAO_ACK) != 0)
                                                   ^
    /home/pi/contiki-ng/os/net/routing/rpl-lite/rpl-conf.h:127:26: note: in expansion of macro 'RPL_CONF_WITH_DAO_ACK'
     #define RPL_WITH_DAO_ACK RPL_CONF_WITH_DAO_ACK
                              ^~~~~~~~~~~~~~~~~~~~~
    /home/pi/contiki-ng/os/net/routing/rpl-lite/rpl-types.h:217:5: note: in expansion of macro 'RPL_WITH_DAO_ACK'
     #if RPL_WITH_DAO_ACK
         ^~~~~~~~~~~~~~~~
    make[2]: *** [/home/pi/contiki-ng/Makefile.include:326: obj_native/contiki-main.o] Error 1
    make[2]: Leaving directory '/home/pi/6lbr/examples/6lbr'
    make[1]: *** [platform/native/Makefile.native:38: bin/cetic_6lbr_smart_bridge] Error 2
    make[1]: Leaving directory '/home/pi/6lbr/examples/6lbr'
    make: *** [platform/native/Makefile.native:76: all] Error 2

    what went wrong?

  • When you use Contiki-NG, there’s no need to use “git checkout ff69ae4214407eeec4c71f87589ac4bc7d3a8a49”. You only need to follow steps in my Blog.