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.

Getting 6lbr to work with networking over USB

Other Parts Discussed in Thread: CC2531

I'm trying to run the cc26xx-web-demo from the TI contiki wiki and have followed all of the steps but I cannot connect to [bbbb::100]. I think my problem is that I am using networking over USB on the BBB. Are there any settings I need to adjust to use networking over usb? I have tried the standard 6lbr.conf file and also tried changing DEV_ETH=eth0 to DEV_ETH=usb0. 

Any idea on how to get this example to work with Networking over USB.

  • If you use eth0 on BBB, does it work?
  • No it doesn't. That was my initial setting and it didn't work but after checking ifconfig on the BBB it shows all traffic being routed through usb0. It's probably easiest to go through Ethernet but due to the network I'm on I don't know if that will be possible.
  • what does the log file say? (/var/log/6lbr.log)

    what is your OS?

    do you use wrapsix?

  • Here is my ifconfig showing that I'm communicating through usb0

    root@beaglebone:~# ifconfig eth0 Link encap:Ethernet HWaddr 90:59:af:5b:41:ca UP BROADCAST MULTICAST DYNAMIC MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:177 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:4896 errors:0 dropped:0 overruns:0 frame:0 TX packets:4896 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:378144 (369.2 KiB) TX bytes:378144 (369.2 KiB) usb0 Link encap:Ethernet HWaddr 90:59:af:5b:41:c0 inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252 inet6 addr: fe80::9259:afff:fe5b:41c0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2494 errors:0 dropped:0 overruns:0 frame:0 TX packets:868 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:279892 (273.3 KiB) TX bytes:183816 (179.5 KiB)

    Here's my log. I highlighted the warning and error. I don't remember reading anything about nvm.conf file so I don't know if that is important but not sure what the warning means.

    I'm also on windows 10 and my BBB is running the latest Debian and I am running wrapsix on it


    Tue Apr 5 15:43:05 UTC 2016 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -o /etc/6lbr/nvm.conf -s /dev/ttyACM0 -r -t usb1 -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-develop-20160323 started with IPV6, RPL
    Rime started with address 1.2.3.4.5.6.7.8
    MAC mac_wrapper RDC br-rdc SEC llsec-wrapper NETWORK sicslowpan
    2016-04-05 15:43:05.864270: INFO: 6LBR: Starting 6LBR version 1.4.x (Contiki-develop-20160323)
    Log level : 30
    Log services : ffffffff
    2016-04-05 15:43:05.866135: INFO: ETH: 6LBR watchdog started (interval: 60)
    2016-04-05 15:43:05.866930: INFO: NVM: NVM Magic : 2009
    2016-04-05 15:43:05.866972: INFO: NVM: NVM Version : 5
    2016-04-05 15:43:05.867544: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2016-04-05 15:43:05.867650: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2016-04-05 15:43:05.867754: INFO: MAC: Using 'csma' mac driver
    2016-04-05 15:43:05.881401: INFO: SLIP: SLIP started on /dev/ttyACM0
    2016-04-05 15:43:05.894297: INFO: SCMD: Started br-cmd process
    2016-04-05 15:43:05.894508: INFO: BR-RDC: Reset SLIP Radio
    2016-04-05 15:43:05.894593: INFO: BR-RDC: Fetching MAC address
    2016-04-05 15:43:05.897494: INFO: SLIP: cc2531: Reboot requested
    2016-04-05 15:43:05.898832: INFO: SLIP: cc2531: Reverting to h/w MAC but not rebooting
    2016-04-05 15:43:05.900326: INFO: BR-RDC: Got MAC: 00:12:4b:00:07:68:cf:2b
    2016-04-05 15:43:06.894380: INFO: ETH: RAW Ethernet interface init
    2016-04-05 15:43:06.919614: FATAL: TAP: ioctl() : No such device
    ********************************************************************************

  • It's weird that you don't have nvm.conf. Do you do the following two step when build 6lbr.

    1. make all_native plugins tools
    2. sudo make install
  • When I initially built 6lbr I first did "make all_native plugins tools" but something happened so I did "make all plugins tools" is that my issue. It looks like they haven't released version 1.4.0 and that's what "make all plugins tools" was needed for
  • hi I have the same problem now, and when I run "make all_native plugins tools" I receive the error below.
    user@instant-contiki:/etc/6lbr$ make all_native plugins tools
    make: *** No rule to make target `all_native'. Stop.

    So I have done the same as above and I dont have the nvm.conf file.

    what do you suggest?
  • I reinstalled everything and made it with make TARGET=native all plugins tools and it worked. But my next question is I want to have my edge router push to my own http server. Do I need wrapsix to perform this function and do I need to go through an MQTT client?

  • You would still need to use WrapSix. I don't think you have to go through MQTT client if you would like to report to a http server.
  • Do you know of any good resources that help explain reporting to an http server. I'm looking at the Ubidots example in the IoT in 5 days book but the code (located here: github.com/.../ubidots-demo.c) seems very specific to that service and not a general http example.
  • Sorry, I don't know any resource about this topic.
  • easy way is to use nodejs to write a webserver with coap library https://github.com/mcollina/node-coap