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.

CC1310: 6lbr problem

Part Number: CC1310

Hi.

I'm studying about 6lowpan with beaglebone black.

I followed the steps in 

But I can't access to 6lbr web page in step 7. Why?

I confirmed slip-radio was well-running in cc1310 em.

Why?

  • Can you attach your 6lbr.log under /var/log?
  • Hi, yikai.
    ********************************************************************************
    Tue Apr 18 21:12:09 UTC 2017 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -o /etc/6lbr/nvm.conf -s /dev/ttyUSB0 -r -t eth0 -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
    ********************************************************************************
    Tue Apr 18 21:12:10 UTC 2017 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -o /etc/6lbr/nvm.conf -s /dev/ttyUSB0 -r -t eth0 -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
    ********************************************************************************
    Tue Apr 18 21:12:11 UTC 2017 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -o /etc/6lbr/nvm.conf -s /dev/ttyUSB0 -r -t eth0 -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
    ********************************************************************************
    Tue Apr 18 21:12:12 UTC 2017 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -o /etc/6lbr/nvm.conf -s /dev/ttyUSB0 -r -t eth0 -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
  • It seems that your 6lbr doesn't start correctly. Which OS do you run on your BBB?
  • Debian Linux
    gcc version 4.6.3
    Linux version 3.8.13-bone47
  • When I tested 6lbr, I use bone-debian-7.8-lxde-4gb-armhf-2015-03-01-4gb image. I suggest you to use it to test again.

  • Hi, YiKai.

    I changed debian image as your suggestion.

    But I can't still get the 6lbr server page.

    I followed the steps in .

    But in 'sub-1GHz RF interface' section, when I entered the command 'netstat -rn', I couldn't get the 'Internet6...' section.

    My putty only shows like this.

    root@beaglebone:/etc/6lbr# netstat -rn
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
    192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    192.168.7.0 0.0.0.0 255.255.255.252 U 0 0 0 usb0

    root@beaglebone:/etc/6lbr# ifconfig
    eth0 Link encap:Ethernet HWaddr d0:39:72:44:e9:83
    inet addr:192.168.1.14 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::d239:72ff:fe44:e983/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:2433 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1445 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:388085 (378.9 KiB) TX bytes:201090 (196.3 KiB)
    Interrupt:40

    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:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    usb0 Link encap:Ethernet HWaddr aa:7f:d8:25:01:18
    inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
    inet6 addr: fe80::a87f:d8ff:fe25:118/64 Scope:Link
    UP BROADCAST MULTICAST 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)

    Best regards

  • Can you attach your latest 6lbr.log again?

  • It only prints this.
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
    Waiting for /dev/ttyUSB0
  • It means your slip radio is not responding. Can you take a picture to show me how you connect your CC1310 slip radio to BBB?
  • Here is my scene.

  • Try to download attached slip radio binary to your CC1310 and test again.

    slip-radio-cc1310LP-contikimac.zip

  • Thanks, yikai.

    I will try again with your attached file from first.

    And, this image shows how slip-radio.bin that I have compiled runs.

  • If it still doesn't work, you should check your HW connection.
  • Your log shows nvm.conf doesn't exist.

    2017-04-24 2:11:28.508160: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory

  • How to setup nvm.conf?
    nvm.dat has been already created, but there is no nvm.conf.
  • The settings are completely same.
    I have created 6lbr.conf file and modified it.
  • Can you attach your latest 6lbr.log again?
  • Sorry Yikai, I have sent wrong 6lbr.log.

    The recent log is follow.

    2017-04-24 3:48:53.085858: INFO: BR-RDC: Fetching MAC address
    2017-04-24 3:48:54.085745: INFO: BR-RDC: Fetching MAC address
    2017-04-24 3:48:55.085826: INFO: BR-RDC: Fetching MAC address
    2017-04-24 3:48:56.085568: INFO: BR-RDC: Fetching MAC address
    2017-04-24 3:48:57.085812: INFO: BR-RDC: Fetching MAC address
    2017-04-24 3:48:58.085692: INFO: BR-RDC: Fetching MAC address
    2017-04-24 3:48:59.085803: INFO: BR-RDC: Fetching MAC address
    2017-04-24 3:49:00.085703: INFO: BR-RDC: Fetching MAC address
    2017-04-24 3:49:01.085912: INFO: BR-RDC: Fetching MAC address
    2017-04-24 3:49:02.085569: INFO: BR-RDC: Fetching MAC address
  • It seems that your slip radio still doesn't work. Do you download my attach slip radio binary to your CC1310DK? Can you attach full 6lbr.log?
  • Thanks for your attention, Yikai.

    My full log is

    6lbr.log

  • It's looks that your slip radio doesn't respond. Do you download my attach slip radio binary to your CC1310DK?
  • Try to use this attached slip-radio-cc13xxdk.bin to test again. It works on my CC1310DK.

    slip-radio-cc13xxdk.zip

  • Hi, Yikai.
    This is my last log.
    ********************************************************************************
    Mon Apr 24 05:21:50 UTC 2017 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -o /etc/6lbr/nvm.conf -s /dev/ttyUSB0 -r -t eth0 -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-base-develop-20170120-2305-g98a3eac 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
    2017-04-24 5:21:50.440018: NOTICE: 6LBR: Starting 6LBR version 1.5.x (Contiki-contiki-base-develop-20170120-2305-g98a3eac)
    2017-04-24 5:21:50.440834: INFO: ETH: 6LBR watchdog started (interval: 60)
    2017-04-24 5:21:50.443460: INFO: NVM: NVM Magic : 2009
    2017-04-24 5:21:50.443500: INFO: NVM: NVM Version : 5
    2017-04-24 5:21:50.443510: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-04-24 5:21:50.443590: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-04-24 5:21:50.443687: NOTICE: 6LBR: Log level: 30 (services: ffffffff)
    2017-04-24 5:21:50.443703: INFO: MAC: Using 'csma' mac driver
    2017-04-24 5:21:50.456155: INFO: SLIP: SLIP started on /dev/ttyUSB0
    2017-04-24 5:21:50.468263: INFO: SCMD: Started br-cmd process
    2017-04-24 5:21:50.468446: INFO: BR-RDC: Reset SLIP Radio
    2017-04-24 5:21:50.468509: INFO: BR-RDC: Fetching MAC address
    2017-04-24 5:21:50.471525: ERROR: BR-RDC: br-rdc: failed to parse 2
    2017-04-24 5:21:50.472368: ERROR: SLIP: Unknown command
    2017-04-24 5:21:50.474493: ERROR: SLIP: Unknown command
    2017-04-24 5:21:50.474711: INFO: BR-RDC: Got MAC: 00:12:4b:00:08:68:0d:6c
    2017-04-24 5:21:51.471397: ERROR: SLIP: Unknown command
    2017-04-24 5:21:51.473252: ERROR: BR-RDC: Set channel failed
    2017-04-24 5:21:51.478375: ERROR: SLIP: Unknown command
    2017-04-24 5:21:51.479878: ERROR: BR-RDC: Set PAN-ID failed
    2017-04-24 5:21:51.481315: INFO: ETH: RAW Ethernet interface init
    2017-04-24 5:21:51.492467: INFO: TAP: opened device /dev/eth0
    2017-04-24 5:21:51.493915: INFO: TAP: Running 6lbr-ifup script '/usr/lib/6lbr/6lbr-ifup'
    eth0 Link encap:Ethernet HWaddr d0:39:72:44:e9:83
    inet addr:192.168.1.14 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::d239:72ff:fe44:e983/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:474 errors:0 dropped:0 overruns:0 frame:0
    TX packets:342 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:65031 (63.5 KiB) TX bytes:51322 (50.1 KiB)
    Interrupt:40

    2017-04-24 5:21:51.636433: INFO: TAP: Eth MAC address : d0:39:72:44:e9:83
    2017-04-24 5:21:51.638751: INFO: ETH: Eth MAC address : d0:39:72:44:e9:83
    2017-04-24 5:21:51.640908: INFO: LLSEC: Using 802.15.4 framer
    2017-04-24 5:21:51.642432: INFO: LLSEC: Using 'nullsec' llsec driver
    2017-04-24 5:21:51.643811: INFO: 6LBR: Tentative local IPv6 address fe80::212:4b00:868:d6c
    2017-04-24 5:21:51.645655: INFO: 6LBR: Tentative global IPv6 address (WSN) fd00::212:4b00:868:d6c
    2017-04-24 5:21:51.646028: INFO: 6LBR: Tentative global IPv6 address (ETH) bbbb::100
    2017-04-24 5:21:51.646240: INFO: 6LBR: RA Daemon enabled
    2017-04-24 5:21:51.646355: INFO: 6LBR: Checking addresses duplication
    2017-04-24 5:22:02.653881: INFO: 6LBR: Configured as DODAG Root fd00::212:4b00:868:d6c
    2017-04-24 5:22:02.659978: INFO: 6LBR: Starting as RPL ROUTER
    2017-04-24 5:22:02.670129: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-04-24 5:22:02.680561: INFO: HTTP: Starting webserver on port 80
    2017-04-24 5:22:02.685369: INFO: NODECFG: Node Config init
    2017-04-24 5:22:02.689193: INFO: NODECFG: No node_config.conf file specified
    2017-04-24 5:22:02.689727: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-04-24 5:22:02.698176: INFO: UDPS: UDP server started
    CoAP push started
    CoAP server started
    2017-04-24 5:22:02.704279: INFO: DNS: DNS proxy started
    2017-04-24 5:22:02.704688: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-04-24 5:22:02.704963: INFO: 6LBR: CETIC 6LBR Started
    RD client started
    2017-04-24 5:23:42.177860: INFO: SLIP: Starting Contiki-3.x-3245-gfbffcc2
    With DriverLib v0.47020
    TI SmartRF06EB + CC13xx EM
    IEEE 802.15.4: No, Sub-GHz: Yes, BLE: No, Prop: No
    Net: slipnet
    MAC: nullmac
    RDC: ContikiMAC, Channel Check Interval: 16 ticks
    RF: Channel 25
    Node ID: 3436
    Slip Radio started...


    And, something seems to be right, cc1310em with cc26xx-web-demo binary seemed to communicate with your slip-radio device.
    But in log file, there is no anything more.

    And I can't access to 6lbr web page.

  • According to your 6lbr.log, 6lbr starts correctly now. You can try to use Firefox to access to [bbbb::100]
  • If I enter [bbbb:100] in firefox, then google search window is shown.
  • It should be double colon between bbbb and 100. You should use [bbbb::100] instead of [bbbb:100].
  • Oh, come on. I can access to first page.
    But if i press 'sensors' tab ( any other ), then browser shows "Unable to connect ...", and after some time, if press refresh button, same thing happens.

    And, it operates properly only when 6lbr service is restarted.

  • I suggest you to check 6lbr.log first.
  • Hi, Yikai.

    6lbr page permit only first access, and another access refused.

    And, there is no more log for that.

  • Do you mean when you click on Sensors link, you can not see the page like the followings?

  • Sorry, Yikai.
    Page access is permitted only once, and any more accesses are refused.

    That is, if I enter [bbbb::100]/sensors.html instead of [bbbb::100], then browser show that page.

    But if I do something on the page, browser show Unable to connect.

  • No I idea why you have this trouble. Try to restart everything and test again.
  • Ok.
    I'm so sorry to have hit you so hard.
  • No problem.
  • Very stupid error.

    I can access to 6lbr page only once. 

    Next time the access is refused. I am going to have total blood pressure.

    Why?

  • I suspect there is something wrong with latest 6lbr source code and suggest you to try to use Contiki-develop-20161222 version to test again.

  • You are really a good person.
    Thanks, yikai. I'll try once more.
  • You are welcome and good luck.
  • I am facing same issue, tried troubleshooting network connection. The error shown is :
    The device or resource ([BBBB:0000:0000:0000:0000:0000:0000:0100]) is not set up to accept connections on port "HTTP".
  • I don't understand your question well. Can you elaborate?
  • I can access 6lbr page first time and further access are refused. Ping [bbbb::100] works, so I tried to troubleshoot using windows internet connections troubleshooter which gave error that board is not configured to accept connections on port 80. Any idea how to resolve this?

    Thanks
  • There's something wrong with latest 6lbr. You can go to /6lbr folder and run "git checkout ff69ae4214407eeec4c71f87589ac4bc7d3a8a49". You will get 6lbr version on 2016 Dec. 22th and you can rebuild 6lbr to test again.
  • That worked like a charm....Thanks YK!
  • You are welcome and it's good to know it works.