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.

Configure the BBB with 6lbr

Other Parts Discussed in Thread: CC1350, CC2650, CC1310, LAUNCHXL-CC1310

Hello,

I followed the information from here: http://processors.wiki.ti.com/index.php/Cc26xx_sw_examples

I cannot ping 6lowpan nodes. also i cannot connect to webserver [bbbb:100]

debian@beaglebone:~$ sudo ping6 aaaa::101
PING aaaa::101(aaaa::101) 56 data bytes
From bbbb::101 icmp_seq=1 Destination unreachable: Address unreachable
From bbbb::101 icmp_seq=2 Destination unreachable: Address unreachable

Ping the beaglebone from same network pc:

C:\Users\user>ping -6 bbbb::101

Pinging bbbb::101 with 32 bytes of data:
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.

I get lot of "PF: No input function set" warns in log.

  • Do you have a node with IP [bbbb::101]?
  • yes is ok if i ping bbbb::101 from beaglebone, but cannot from outsite

    debian@beaglebone:~$ sudo ping6 bbbb::101
    PING bbbb::101(bbbb::101) 56 data bytes
    64 bytes from bbbb::101: icmp_seq=1 ttl=64 time=0.596 ms
    64 bytes from bbbb::101: icmp_seq=2 ttl=64 time=0.211 ms
    64 bytes from bbbb::101: icmp_seq=3 ttl=64 time=0.209 ms
    64 bytes from bbbb::101: icmp_seq=4 ttl=64 time=0.209 ms

    bbbb::101 is beaglebone linux server

  • I don't think bbbb::101 can be ping from outside. You should use actual IPv6 address for ping.
  • On any PC connected to the same eth segment as the BBB
    ping6 aaaa::<address of mesh node>

    It sais in wiki, also i cannot connect to bealgebone 6lbr webserver

    I found a video on youtube: https://www.youtube.com/watch?v=dYB-NKwt408 

    Here the ifconfig looks different, and the webserver works. But i dont know what configuration of network/interfaces and 6lbr.conf did he used.

  • What HW do you connect to BBB as slip radio?
  • cp2102 USB-to-Serial dongle to UART pins on SmartRF06EB and plugged cp2102 USB dongle to Beaglebone Black

  • Do you use CC2650 or CC1350 on SmartRF06EB?

  • Your tutorial is ok, ive done it. But configuration of network interfaces and 6lbr.conf is not included. It did not say how about the 6lbr....
  • Configuration of network interface and 6lbr.conf are in http://sunmaysky.blogspot.tw/2015/08/setup-6lbr-to-run-6lowpan-with-cc2531.html.

  • Ive done like you said there and when i try to access the webserver [bbbb::100]


    This webpage is not available

    ERR_ADDRESS_UNREACHABLE
  • Do you connect all these BBB and your PC to an IPv6 enable router?
  • No, how to do this? Ive done this but same problem

    sudo ip -6 addr add bbbb::101/64 dev eth0
    sudo route -A inet6 add aaaa::/64 gw bbbb::100
  • You have to find an router with IPv6 capability and connect all of your test device to it.
  • Are these:

    sudo ip -6 addr add bbbb::101/64 dev eth0

    route -A inet6 add aaaa::/64 gw bbbb::100

    and

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

    Needed anymore? As i cannot find them in your tutorial.

  • I followed the instructions from there for ipv4 network and i obtained this:

    debian@beaglebone:~$ ifconfig
    eth0 Link encap:Ethernet HWaddr 54:4a:16:f7:bb:be
    inet addr:192.168.0.176 Bcast:192.168.7.255 Mask:255.255.248.0
    inet6 addr: fe80::564a:16ff:fef7:bbbe/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
    RX packets:5936 errors:0 dropped:23 overruns:0 frame:0
    TX packets:247 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:512840 (500.8 KiB) TX bytes:53135 (51.8 KiB)
    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:234 errors:0 dropped:0 overruns:0 frame:0
    TX packets:234 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:20000 (19.5 KiB) TX bytes:20000 (19.5 KiB)

    tap0 Link encap:Ethernet HWaddr 02:0a:0b:0c:0d:0e
    inet addr:169.254.178.186 Bcast:169.254.255.255 Mask:255.255.0.0
    inet6 addr: 2001:db8:2:0:a:bff:fe0c:d0e/64 Scope:Global
    inet6 addr: fe80::a:bff:fe0c:d0e/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:500
    RX bytes:0 (0.0 B) TX bytes:13614 (13.2 KiB)

    usb0 Link encap:Ethernet HWaddr 54:4a:16:f7:bb:b1
    inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
    inet6 addr: fe80::564a:16ff:fef7:bbb1/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:393 errors:0 dropped:0 overruns:0 frame:0
    TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:33985 (33.1 KiB) TX bytes:2630 (2.5 KiB)

    How should i proceed from here? I want to connect via http to the 6lbr web interface.

  • Do you connect your BBB to an IPv6 enable router?
  • No, it is a ipv4 router. BBB has ipv4 on eth0 from ipv4 router and tap0 is a interface with ipv6 dhcp generated in beaglebone with RADVD as it sais in the tutorial.

  • You have to connect BBB and your PC to a IPv6 enable router and you can use [bbbb::100] to access 6lbr web page from browser on PC.
  • But the second method, using ipv4 network? Cannot be done?
  • Second method? Since you are testing on 6LowPAN, you have to use an IPv6 enable router.
  • debian@beaglebone:~$ ifconfig
    eth0 Link encap:Ethernet HWaddr 54:4a:16:f7:bb:be
    inet addr:169.254.152.91 Bcast:169.254.255.255 Mask:255.255.0.0
    inet6 addr: fe80::564a:16ff:fef7:bbbe/64 Scope:Link
    inet6 addr: 2002:c0a8:cd:1::101/128 Scope:Global
    UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
    RX packets:589 errors:0 dropped:0 overruns:0 frame:0
    TX packets:548 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:117202 (114.4 KiB) TX bytes:71776 (70.0 KiB)
    Interrupt:177

    I installed a ipv6 router and I tried to access from my pc the beaglebone address 2002:c0a8:cd:1::101 ( i can ping it )  but it says 

    This webpage is not available

    ERR_CONNECTION_REFUSED
    In beaglebone there is no port 80 opened for 6lbr web interface... 

    debian@beaglebone:~$ sudo netstat -tulpn
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 369/connmand
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 438/sshd
    tcp6 0 0 ::1:53 :::* LISTEN 369/connmand
    tcp6 0 0 :::22 :::* LISTEN 438/sshd
    tcp6 0 0 :::3000 :::* LISTEN 1/init
    udp 0 0 127.0.0.1:53 0.0.0.0:* 369/connmand
    udp 0 0 0.0.0.0:67 0.0.0.0:* 522/dnsmasq
    udp6 0 0 ::1:53 :::* 369/connmand

    but 6lbr application is running.

  • You should use [bbbb::100] to access to web page of 6lbr.
  • I cannot access the 6lbr web page:

    6lbr.log is:

    Fri Feb 12 11:34:43 EET 2016 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -s /dev/ttyUSB0 -t eth0 -r -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-6lbr-1.3.3 started with IPV6, RPL
    Rime started with address 1.2.3.4.5.6.7.8
    MAC CSMA RDC br-rdc NETWORK sicslowpan
    Log level : 30
    Log services : ffffffff
    2016-01-12 11:34:43.830832: INFO: ETH: 6LBR watchdog started (interval: 60)
    2016-01-12 11:34:43.840562: INFO: 6LBR: Starting 6LBR version 1.3.3 (Contiki-6lbr-1.3.3)
    2016-01-12 11:34:43.840583: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat'
    2016-01-12 11:34:43.840660: INFO: NVM: NVM Magic : 2009
    2016-01-12 11:34:43.840673: INFO: NVM: NVM Version : 1
    2016-01-12 11:34:43.840684: INFO: SCMD: Started br-cmd process
    2016-01-12 11:34:43.840694: INFO: NODECFG: No node_config.conf file specified
    2016-01-12 11:34:43.840705: INFO: ETH: RAW/TAP init
    2016-01-12 11:34:43.842494: INFO: SLIP: SLIP started on /dev/ttyUSB0
    2016-01-12 11:34:43.902061: INFO: TAP: opened device /dev/eth0
    2016-01-12 11:34:43.902258: INFO: TAP: Running 6lbr-ifup script '/usr/lib/6lbr/6lbr-ifup'
    eth0 Link encap:Ethernet HWaddr 54:4a:16:f7:bb:be
    inet6 addr: fe80::564a:16ff:fef7:bbbe/64 Scope:Link
    inet6 addr: 2002:c0a8:cd:1::100/128 Scope:Global
    UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
    RX packets:9567 errors:0 dropped:47 overruns:0 frame:0
    TX packets:452 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:2121833 (2.0 MiB) TX bytes:53640 (52.3 KiB)
    Interrupt:177

    2016-01-12 11:34:44.104261: INFO: TAP: Eth MAC address : 54:4a:16:f7:bb:be
    2016-01-12 11:34:44.104477: INFO: BR-RDC: Reset SLIP Radio
    2016-01-12 11:34:44.104578: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:45.104118: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:46.104142: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:47.104130: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:48.104191: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:49.104173: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:50.104119: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:51.104118: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:52.104177: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:53.104112: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:54.104127: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:55.104122: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:56.104104: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:57.104125: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:58.104175: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:34:59.104113: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:00.104138: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:01.104152: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:01.144443: ERROR: SLIP: *** dropping large 2048 byte packet
    2016-01-12 11:35:02.104108: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:03.104127: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:04.104686: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:05.104100: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:06.104125: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:07.104162: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:08.104115: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:09.104125: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:10.104154: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:11.104110: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:12.104159: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:13.104184: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:14.104104: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:14.281921: WARN: PF: No input function set
    2016-01-12 11:35:15.104132: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:16.104159: INFO: BR-RDC: Fetching MAC address
    2016-01-12 11:35:17.104117: INFO: BR-RDC: Fetching MAC address

    and so on....

    I think is a problem with 6lbr or with slip device

    my 6lbr.conf is:

    MODE=ROUTER
    #MODE=SMART-BRIDGE
    #MODE=RPL-RELAY
    #MODE=FULL-TRANSPARENT-BRIDGE
    #MODE=NDP-ROUTER
    #MODE=6LR
    #MODE=RPL-ROOT

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

    DEV_RADIO=/dev/ttyUSB0 #2.4GHz USB Dongle will enumerate like ACM0
    #DEV_RADIO=/dev/ttyUSB1 #SmartRF06EB+CC13xxEM will enumerate like USB1
    BAUDRATE=115200

    LOG_LEVEL=3

    info about usb slip device:

    # dmesg

    [ 1121.616541] usb 1-1: new full-speed USB device number 3 using musb-hdrc
    [ 1121.759077] usb 1-1: New USB device found, idVendor=10c4, idProduct=ea60
    [ 1121.759138] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 1121.759177] usb 1-1: Product: CP2102 USB to UART Bridge Controller
    [ 1121.759213] usb 1-1: Manufacturer: Silicon Labs
    [ 1121.759248] usb 1-1: SerialNumber: 0001
    [ 1121.778630] cp210x 1-1:1.0: cp210x converter detected
    [ 1121.780325] usb 1-1: cp210x converter now attached to ttyUSB0

    cp210x.RX << cc1310.TX
    cp210x.TX >> cc1310.RX
    cp210x.CTS << cc1310.RTS
    cp210x.RTS >> cc1310.CTS

  • Please see github.com/.../wiki

    It includes a description on how to configure the 6lbr parts of the system.
  • Hello magnerep,

       Were you able to find why it kept fetching the MAC address? I am using the same hardware. Thank you in advance.

  • It usually is caused by something wrong on your slip radio. What HW do you use as Slip radio?
  • For the slip radio I am using the CC1310 launchpad with a CP2102 UART/USB dongle to interface with the BBB. I separately tested this slip radio to see that it was talking and I got the following:

    So I think that means that the slip radio is talking. But when I look at the .log file after running the 6lbr service I see the following and cannot access the [bbbb::100]

    Is the problem with the slip radio? I have followed the directions for the CC13xx launchpad flashing so I'm not sure where it's going wrong. 

  • If you use LAUNCHXL-CC1310 as slip radio, you can connect it to your host by usb micro socket on launchPad directly and no need for CP2102.
  • Your're right. I'll look into that first. Thank you.
  • You are welcome.