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.

cc26xx-web-demo without BBB

Other Parts Discussed in Thread: CC2531, CC2650, CC2630, CC2538, CC2531EMK

Hi,

 I have a CC2650DK and some sensor tags, as well as the Debugger dev pack.

I am looking to run the cc26xx-web-demo but am wondering if this can be set up easily without the BBB.

For the Border Router, can I run 6LBR through Instant contiki (running off the (virtual) linux host), and connect an CC2531  usb dongle(flashed as SLIP radio) to  the PC (enable this device within instant contiki) to create the border router? 

Then use firefox (just from within instant contiki) to access the COAP server on the remote devices (that have been flashed with the web demo)?

Is there anything that will make this more complicated than the example BBB method?  (keep in mind I am completely new to this and generally dependant on step by step instructions)

thanks

Phil

  • Hello Chen,

    I'm unable to open web server. Is it necessary that I should install copper plugin first? then access? [bbbb::100/25]

  • You cannot open web server of 6lbr or web server on CC26xx-web-demo.
  • Can you do "ls /dev" and check if ttyACM0 is listed on it?
  • Hello Chen,

    ttyACM0 is thr.
  • Can you attach 6lbr.log under /var/log?
  • It cannot connect to your slip radio. What HW do you use as slip-radio and how do you build slip radio FW?
  • I'm using cc2531 usb dongle as slip radio with FW cc2531-slip-radio_contikimac.zip
    which u have sent me previously.
    How to proceed?
    do I need to change the FW?
  • Try to download FW cc2531-slip-radio_contikimac to your CC2531EMK and test again.
  • same FW is running in cc2531emk now. do you want me to dump the same FW again?
  • Hey Bro,
    Can you check the end of this page?
    github.com/.../6LBR-Connection
    they mentioned its not possible, according to my understanding we have to make some changes in the conf file i guess.
  • I can run 6lbr with the same settings on my Raspberry Pi without problem. According to your 6lbr.log, the problem is on your slip radio.
  • I dont want to use raspberry Pi or beaglebone. I want to run it on native host. can you try that once?
    Also have a glance to whatever link I attached in the comment.
  • I just test 6lbr on my Instant-Contiki and it runs without problem. If there is no problem on slip radio, you should see the following information on 6lbr.log.

  • hello Chen,

    What next?
    I jus removed and inserted the dongle. its working fine now.
    But I'm not able to open the webpage. 

  • If you remove CC2531 USB dongle from USB port and do "ls /dev", do you see ttyACM0 removed from list?
  • How do you download slip radio FW to CC2531 USB dongle?
  • Connect CC Debugger to dongle. And flash downloader to dump the code!
  • Try to use FW at processors.wiki.ti.com/.../Cc2531-slip-radio_contikimac.zip to download to your CC2531 and test again.
  • It already have the same FW. you want me to do it again?
  • Yes. Please also use a terminal tool such as teraterm to open the virtual COM port that is simulated by CC2531EMK on windows to check what you see output on terminal when you finish downloading FW to CC2531EMK.
  • Hey Chen,
    Can you do me a favour?
    can you send me your log file after running 6lbr in native host, just to compare.

    Thanks in advance.
  • Here it is.

    ********************************************************************************
    Fri Jan 20 05:58:20 CET 2017 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -o /etc/6lbr/nvm.conf -s /dev/ttyACM0 -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-develop-20160421-26-gc09dec4 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-01-20 5:58:20.527801: NOTICE: 6LBR: Starting 6LBR version 1.4.x (Contiki-develop-20160421-26-gc09dec4)
    2017-01-20 5:58:20.527870: INFO: ETH: 6LBR watchdog started (interval: 60)
    2017-01-20 5:58:20.527904: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/lwm2m.so
    2017-01-20 5:58:20.527955: INFO: PLUGIN: Initialising lwm2m-client
    2017-01-20 5:58:20.527958: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/dummy.so
    2017-01-20 5:58:20.528007: INFO: NVM: NVM Magic : 2009
    2017-01-20 5:58:20.528009: INFO: NVM: NVM Version : 5
    2017-01-20 5:58:20.528010: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-01-20 5:58:20.528029: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-01-20 5:58:20.528034: NOTICE: 6LBR: Log level: 30 (services: ffffffff)
    2017-01-20 5:58:20.528036: INFO: MAC: Using 'csma' mac driver
    2017-01-20 5:58:20.528043: INFO: SLIP: SLIP started on /dev/ttyACM0
    2017-01-20 5:58:20.538481: INFO: SCMD: Started br-cmd process
    2017-01-20 5:58:20.538515: INFO: BR-RDC: Reset SLIP Radio
    2017-01-20 5:58:20.538520: INFO: BR-RDC: Fetching MAC address
    2017-01-20 5:58:21.538606: INFO: BR-RDC: Fetching MAC address
    2017-01-20 5:58:22.539560: INFO: BR-RDC: Fetching MAC address
    2017-01-20 5:58:23.540626: INFO: BR-RDC: Fetching MAC address
    2017-01-20 5:58:24.540656: INFO: BR-RDC: Fetching MAC address
    2017-01-20 5:58:25.541693: INFO: BR-RDC: Fetching MAC address
    ********************************************************************************
    Fri Jan 20 05:58:27 CET 2017 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -o /etc/6lbr/nvm.conf -s /dev/ttyACM0 -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-develop-20160421-26-gc09dec4 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-01-20 5:58:27.560018: NOTICE: 6LBR: Starting 6LBR version 1.4.x (Contiki-develop-20160421-26-gc09dec4)
    2017-01-20 5:58:27.560086: INFO: ETH: 6LBR watchdog started (interval: 60)
    2017-01-20 5:58:27.560118: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/lwm2m.so
    2017-01-20 5:58:27.560152: INFO: PLUGIN: Initialising lwm2m-client
    2017-01-20 5:58:27.560155: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/dummy.so
    2017-01-20 5:58:27.560184: INFO: NVM: NVM Magic : 2009
    2017-01-20 5:58:27.560186: INFO: NVM: NVM Version : 5
    2017-01-20 5:58:27.560187: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-01-20 5:58:27.560191: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-01-20 5:58:27.560196: NOTICE: 6LBR: Log level: 30 (services: ffffffff)
    2017-01-20 5:58:27.560198: INFO: MAC: Using 'csma' mac driver
    2017-01-20 5:58:27.561900: INFO: SLIP: SLIP started on /dev/ttyACM0
    2017-01-20 5:58:27.576904: INFO: SCMD: Started br-cmd process
    2017-01-20 5:58:27.576924: INFO: BR-RDC: Reset SLIP Radio
    2017-01-20 5:58:27.576928: INFO: BR-RDC: Fetching MAC address
    2017-01-20 5:58:27.581012: INFO: SLIP: cc2531: Reboot requested
    2017-01-20 5:58:27.582401: INFO: SLIP: cc2531: Reverting to h/w MAC but not rebooting
    2017-01-20 5:58:27.583881: INFO: BR-RDC: Got MAC: 00:12:4b:00:02:f1:d7:1b
    2017-01-20 5:58:28.576992: INFO: ETH: RAW Ethernet interface init
    2017-01-20 5:58:28.780044: INFO: TAP: opened device /dev/eth0
    2017-01-20 5:58:28.780151: INFO: TAP: Running 6lbr-ifup script '/usr/lib/6lbr/6lbr-ifup'
    eth0      Link encap:Ethernet  HWaddr 00:0c:29:33:ed:6f  
              inet addr:10.15.8.218  Bcast:10.15.9.255  Mask:255.255.254.0
              inet6 addr: fe80::20c:29ff:fe33:ed6f/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:169629288 errors:0 dropped:16 overruns:0 frame:0
              TX packets:1170 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:2270951911 (2.2 GB)  TX bytes:164226 (164.2 KB)
              Interrupt:19 Base address:0x2000 
    
    2017-01-20 5:58:28.788390: INFO: TAP: Eth MAC address : 00:0c:29:33:ed:6f
    2017-01-20 5:58:28.788436: INFO: ETH: Eth MAC address : 00:0c:29:33:ed:6f
    2017-01-20 5:58:28.788477: INFO: LLSEC: Using 'nullsec' llsec driver
    2017-01-20 5:58:28.788511: INFO: 6LBR: Security layer initialized
    2017-01-20 5:58:28.788590: INFO: SLIP: cc2531: Setting RF channel 0x1a
    2017-01-20 5:58:28.788625: INFO: 6LBR: Tentative local IPv6 address fe80::212:4b00:2f1:d71b
    2017-01-20 5:58:28.788663: INFO: 6LBR: Tentative global IPv6 address (WSN) aaaa::212:4b00:2f1:d71b
    2017-01-20 5:58:28.788700: INFO: 6LBR: Tentative global IPv6 address (ETH) bbbb::100
    2017-01-20 5:58:28.788731: INFO: 6LBR: RA Daemon enabled
    2017-01-20 5:58:28.788754: INFO: 6LBR: Checking addresses duplication
    2017-01-20 5:58:39.789435: INFO: 6LBR: Configured as DODAG Root aaaa::212:4b00:2f1:d71b
    2017-01-20 5:58:39.789515: INFO: 6LBR: Starting as RPL ROUTER
    2017-01-20 5:58:39.790927: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-01-20 5:58:39.790963: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-01-20 5:58:39.790997: INFO: NODECFG: Node Config init
    2017-01-20 5:58:39.791021: INFO: NODECFG: No node_config.conf file specified
    2017-01-20 5:58:39.791047: INFO: HTTP: Starting webserver on port 80
    2017-01-20 5:58:39.791105: INFO: UDPS: UDP server started
    CoAP push started
    CoAP server started
    2017-01-20 5:58:39.791160: INFO: DNS: DNS proxy started
    2017-01-20 5:58:39.791184: INFO: PLUGIN: Initialising lwm2m-client
    2017-01-20 5:58:39.791211: INFO: LWM2M: LWM2M Client init
    2017-01-20 5:58:39.791235: INFO: PLUGIN: Initialising dummy
    2017-01-20 5:58:39.791261: INFO: DUMMY: Dummy init
    2017-01-20 5:58:39.791284: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-01-20 5:58:39.791342: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-01-20 5:58:39.791373: INFO: 6LBR: CETIC 6LBR Started
    RD client started
    

  • Also can u share the contents of these files?

    /etc/network/interfaces
    /etc/6lbr/6lbr.conf

    do you run [bbbb::100] to open the webserver on firefox?
  • I attach those two files for your reference and yes, I run [bbbb::100] to open the webserver on firefox.

    6lbrconf-interfaces.zip

  • Sir,
    log file is almost same. there is no major differences.
    But its showing unable to connect (firefox)
  • Yes, that's why I suspect there is something wrong on your CC2531 USB dongle. Do you see similar lines to the followings in your 6lbr.log

    2017-01-20 5:58:27.561900: INFO: SLIP: SLIP started on /dev/ttyACM0

    2017-01-20 5:58:27.576904: INFO: SCMD: Started br-cmd process

    2017-01-20 5:58:27.576924: INFO: BR-RDC: Reset SLIP Radio

    2017-01-20 5:58:27.576928: INFO: BR-RDC: Fetching MAC address

    2017-01-20 5:58:27.581012: INFO: SLIP: cc2531: Reboot requested

    2017-01-20 5:58:27.582401: INFO: SLIP: cc2531: Reverting to h/w MAC but not rebooting

    2017-01-20 5:58:27.583881: INFO: BR-RDC: Got MAC: 00:12:4b:00:02:f1:d7:1b

  • 2017-01-20 6:07:11.818033: INFO: SLIP: SLIP started on /dev/ttyACM0
    2017-01-20 6:07:11.830765: INFO: SCMD: Started br-cmd process
    2017-01-20 6:07:11.830788: INFO: BR-RDC: Reset SLIP Radio
    2017-01-20 6:07:11.830800: INFO: BR-RDC: Fetching MAC address
    2017-01-20 6:07:11.865109: INFO: SLIP: cc2531: Reboot requested
    2017-01-20 6:07:11.867082: INFO: SLIP: cc2531: Reverting to h/w MAC but not rebooting
    2017-01-20 6:07:11.868065: INFO: BR-RDC: Got MAC: 00:12:4b:00:08:b8:31:da
  • Can you attach your latest 6lbr.log?
  • thats the latest. system time is 7: 11 am now of vm ware. so you can relate.
  • I'm getting this error after RD client is started. 

  • Do you use "Bridged" in Network Adapter settings of VM Player?

  • I made that to bridge. it was in NAT. but after then still its not working.
  • Do you restart everything after you change it to bridge? Please attach your latest 6lbr.log.
  • Fri Jan 20 10:06:37 CET 2017 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -o /etc/6lbr/nvm.conf -s /dev/ttyACM0 -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-develop-20161222 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-01-20 10:06:37.463157: NOTICE: 6LBR: Starting 6LBR version 1.5.x (Contiki-develop-20161222)
    2017-01-20 10:06:37.463330: INFO: ETH: 6LBR watchdog started (interval: 60)
    2017-01-20 10:06:37.472600: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/lwm2m.so
    2017-01-20 10:06:37.472709: INFO: PLUGIN: Initialising lwm2m-client
    2017-01-20 10:06:37.472718: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/dummy.so
    2017-01-20 10:06:37.472794: INFO: NVM: NVM Magic : 2009
    2017-01-20 10:06:37.472799: INFO: NVM: NVM Version : 5
    2017-01-20 10:06:37.472805: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-01-20 10:06:37.472813: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-01-20 10:06:37.472824: NOTICE: 6LBR: Log level: 30 (services: ffffffff)
    2017-01-20 10:06:37.472828: INFO: MAC: Using 'csma' mac driver
    2017-01-20 10:06:37.472853: INFO: SLIP: SLIP started on /dev/ttyACM0
    2017-01-20 10:06:37.496345: INFO: SCMD: Started br-cmd process
    2017-01-20 10:06:37.496427: INFO: BR-RDC: Reset SLIP Radio
    2017-01-20 10:06:37.496443: INFO: BR-RDC: Fetching MAC address
    2017-01-20 10:06:38.514134: INFO: BR-RDC: Fetching MAC address
    2017-01-20 10:06:38.528992: INFO: BR-RDC: Got MAC: 00:12:4b:00:08:b8:31:da
    2017-01-20 10:06:39.721599: INFO: SLIP: cc2531: Setting RF channel 0x19
    2017-01-20 10:06:39.760874: ERROR: SLIP: Unknown command
    2017-01-20 10:06:39.760914: ERROR: BR-RDC: Set PAN-ID failed
    2017-01-20 10:06:39.760938: INFO: ETH: RAW Ethernet interface init
    2017-01-20 10:06:39.967676: INFO: TAP: opened device /dev/eth0
    2017-01-20 10:06:39.967738: ERROR: TAP: Could not access /usr/lib/6lbr/6lbr-ifup : Permission denied
    2017-01-20 10:06:39.967760: INFO: TAP: Eth MAC address : 00:0c:29:73:6a:37
    2017-01-20 10:06:39.967777: INFO: ETH: Eth MAC address : 00:0c:29:73:6a:37
    2017-01-20 10:06:39.967795: INFO: LLSEC: Using 802.15.4 framer
    2017-01-20 10:06:39.967807: INFO: LLSEC: Using 'nullsec' llsec driver
    2017-01-20 10:06:39.968676: INFO: HTTP: Starting webserver on port 80
    2017-01-20 10:06:39.968841: INFO: NODECFG: Node Config init
    2017-01-20 10:06:39.968881: INFO: NODECFG: No node_config.conf file specified
    2017-01-20 10:06:39.968895: INFO: 6LBR: Tentative local IPv6 address fe80::212:4b00:8b8:31da
    2017-01-20 10:06:39.968953: INFO: 6LBR: Tentative global IPv6 address (WSN) fd00::212:4b00:8b8:31da
    2017-01-20 10:06:39.968989: INFO: 6LBR: Tentative global IPv6 address (ETH) bbbb::100
    2017-01-20 10:06:39.969010: INFO: 6LBR: RA Daemon enabled
    2017-01-20 10:06:39.969022: INFO: 6LBR: Checking addresses duplication
    2017-01-20 10:06:40.401798: ERROR: SLIP: Unknown command
    2017-01-20 10:06:40.401850: INFO: BR-RDC: Reset SLIP Radio
    2017-01-20 10:06:40.415824: ERROR: SLIP: Unknown command
    2017-01-20 10:06:40.415861: ERROR: BR-RDC: Set channel failed
    2017-01-20 10:06:40.418818: INFO: SLIP: cc2531: Setting RF channel 0x19
    2017-01-20 10:06:40.420812: ERROR: SLIP: Unknown command
    2017-01-20 10:06:40.420848: ERROR: BR-RDC: Set PAN-ID failed
    2017-01-20 10:06:40.584904: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (1)
    2017-01-20 10:06:40.604800: ERROR: SLIP: Unknown command
    2017-01-20 10:06:40.604839: INFO: BR-RDC: Reset SLIP Radio
    2017-01-20 10:06:40.619798: INFO: SLIP: cc2531: Reboot requested
    2017-01-20 10:06:40.620809: INFO: SLIP: cc2531: Reverting to h/w MAC but not rebooting
    2017-01-20 10:06:40.622745: INFO: SLIP: cc2531: Setting RF channel 0x19
    2017-01-20 10:06:40.785220: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (2)
    2017-01-20 10:06:40.924811: ERROR: SLIP: Unknown command
    2017-01-20 10:06:40.924848: ERROR: BR-RDC: Set PAN-ID failed
    2017-01-20 10:06:41.260197: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (5)
    2017-01-20 10:06:41.461431: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (6)
    2017-01-20 10:06:41.661525: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (7)
    2017-01-20 10:06:41.861443: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (8)
    2017-01-20 10:06:42.062690: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (9)
    2017-01-20 10:06:42.263959: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (10)
    2017-01-20 10:06:42.465183: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (11)
    2017-01-20 10:06:42.666432: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (12)
    2017-01-20 10:06:50.974260: INFO: 6LBR: Configured as DODAG Root fd00::212:4b00:8b8:31da
    2017-01-20 10:06:50.974373: INFO: 6LBR: Starting as RPL ROUTER
    2017-01-20 10:06:50.974928: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-01-20 10:06:50.974965: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-01-20 10:06:50.974993: INFO: UDPS: UDP server started
    CoAP push started
    CoAP server started
    2017-01-20 10:06:50.975250: INFO: DNS: DNS proxy started
    2017-01-20 10:06:50.975275: INFO: PLUGIN: Initialising lwm2m-client
    2017-01-20 10:06:50.975293: INFO: LWM2M: LWM2M Client init
    2017-01-20 10:06:50.975317: INFO: PLUGIN: Initialising dummy
    2017-01-20 10:06:50.975354: INFO: DUMMY: Dummy init
    2017-01-20 10:06:50.975377: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-01-20 10:06:50.975402: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-01-20 10:06:50.975424: INFO: 6LBR: CETIC 6LBR Started
    RD client started
    2017-01-20 10:06:53.556501: ERROR: SLIP: Unknown command
    2017-01-20 10:06:53.556549: INFO: BR-RDC: Reset SLIP Radio
    2017-01-20 10:06:53.561864: INFO: SLIP: cc2531: Reboot requested
    2017-01-20 10:06:53.562554: INFO: SLIP: cc2531: Reverting to h/w MAC but not rebooting
    2017-01-20 10:06:53.564409: INFO: SLIP: cc2531: Setting RF channel 0x19
    2017-01-20 10:06:53.751266: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (13)
    2017-01-20 10:06:53.894481: ERROR: SLIP: Unknown command
    2017-01-20 10:06:53.894616: ERROR: BR-RDC: Set PAN-ID failed
    2017-01-20 10:07:36.772584: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (1)
    2017-01-20 10:07:36.974900: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (2)
    2017-01-20 10:07:37.071448: ERROR: BR-RDC: br-rdc: ack received for unknown packet (1)
    2017-01-20 10:07:37.177380: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (3)
    2017-01-20 10:07:37.211487: ERROR: BR-RDC: br-rdc: ack received for unknown packet (2)
    2017-01-20 10:07:37.351474: ERROR: BR-RDC: br-rdc: ack received for unknown packet (3)
    2017-01-20 10:07:37.379879: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (4)
    2017-01-20 10:07:37.490440: ERROR: BR-RDC: br-rdc: ack received for unknown packet (4)
    2017-01-20 10:07:37.582375: ERROR: BR-RDC: br-rdc: send failed, slip ack timeout (5)
    2017-01-20 10:07:37.629463: ERROR: BR-RDC: br-rdc: ack received for unknown packet (5)

  • I still suspect there is something wrong with your CC2531EMK. Do you have another CC2531EMK for testing?
  • Nope.I dont have extra.
    Even I feel the same. dongle is not ack back.
  • Do you have any CC2650 development board?
  • ya
    I have smartrf06EB with cc2650EM
  • Try to refer to sunmaysky.blogspot.tw/.../how-to-build-contiki-6lbr-slip-radio-on.html and use SmartRF06-CC2650EM as slip radio.
  • they have mentioned for BBB and R Pi, but for linux host how do I connect? via USB ?
  • Yes, you can connect USB cable between your SmartRF06 and Linux host desktop.
  • But it wont come as ttyACM0.
  • It should come as ttyUSB1. You can refer to the following steps which are described in

    The XDS is based on an FTDI chip and new Linux kernels provide very good support for FTDI chips. If the kernel module does not kick in automatically, perform the following steps:

    • Connect the SmartRF to the BBB. Find the device's VID and PID (0403:a6d1 in the output below):

    lsusb you should then see something like
    ...
    Bus 001 Device 002: ID 0403:a6d1 Future Technology Devices International, Ltd
    ...

    • As root or with `sudo`, run the command below (if necessary, replace the `vendor` and `product` arguments with the values you got from `lsusb`):

    modprobe ftdi_sio vendor=0x403 product=0xa6d1

    • Run the commands below:

    modprobe ftdi_sio and then echo 0403 a6d1 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id

    • on some systems you need to set the right permission on the new_id file, use chmod 777 new_id
    • The board should have enumerated as `/dev/ttyUSB{0,1}`. `ttyUSB1` will be the UART backchannel. Make sure you have write permissions on that file, else use chmod to change it.

  • fetching MAC address. Its stuck there!

    2017-01-24 6:50:38.402125: INFO: SLIP: SLIP started on /dev/ttyUSB0
    2017-01-24 6:50:38.429361: INFO: SCMD: Started br-cmd process
    2017-01-24 6:50:38.429420: INFO: BR-RDC: Reset SLIP Radio
    2017-01-24 6:50:38.429436: INFO: BR-RDC: Fetching MAC address
    2017-01-24 6:50:39.429578: INFO: BR-RDC: Fetching MAC address
    2017-01-24 6:50:40.431810: INFO: BR-RDC: Fetching MAC address
    2017-01-24 6:50:41.432879: INFO: BR-RDC: Fetching MAC address
    2017-01-24 6:50:42.433859: INFO: BR-RDC: Fetching MAC address
    2017-01-24 6:50:43.434596: INFO: BR-RDC: Fetching MAC address
    2017-01-24 6:50:44.434681: INFO: BR-RDC: Fetching MAC address
  • You should use ttyUSB1 instead of ttyUSB0.
  • I'm unable to open webserver. at [bbbb::100]



    Tue Jan 24 07:02:28 CET 2017 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -o /etc/6lbr/nvm.conf -s /dev/ttyUSB1 -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-develop-20161222 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-01-24 7:02:28.212780: NOTICE: 6LBR: Starting 6LBR version 1.5.x (Contiki-develop-20161222)
    2017-01-24 7:02:28.213026: INFO: ETH: 6LBR watchdog started (interval: 60)
    2017-01-24 7:02:28.213120: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/lwm2m.so
    2017-01-24 7:02:28.213245: INFO: PLUGIN: Initialising lwm2m-client
    2017-01-24 7:02:28.213255: INFO: PLUGIN: Loading /usr/lib/6lbr/plugins/dummy.so
    2017-01-24 7:02:28.213340: INFO: NVM: NVM Magic : 2009
    2017-01-24 7:02:28.213345: INFO: NVM: NVM Version : 5
    2017-01-24 7:02:28.213353: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-01-24 7:02:28.213361: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-01-24 7:02:28.213376: NOTICE: 6LBR: Log level: 30 (services: ffffffff)
    2017-01-24 7:02:28.213380: INFO: MAC: Using 'csma' mac driver
    2017-01-24 7:02:28.232451: INFO: SLIP: SLIP started on /dev/ttyUSB1
    2017-01-24 7:02:28.262140: INFO: SCMD: Started br-cmd process
    2017-01-24 7:02:28.262293: INFO: BR-RDC: Reset SLIP Radio
    2017-01-24 7:02:28.262374: INFO: BR-RDC: Fetching MAC address
    2017-01-24 7:02:29.262614: INFO: BR-RDC: Fetching MAC address
    2017-01-24 7:02:30.263070: INFO: BR-RDC: Fetching MAC address
    2017-01-24 7:02:30.265497: INFO: SLIP: Starting Contiki-develop-20161222
    With DriverLib v0.44336
    TI SmartRF06EB + CC26xx EM
    Net: slipnet
    MAC: nullmac
    RDC: nullrdc
    RF: Channel 25
    Slip Radio started...
    2017-01-24 7:02:30.266428: INFO: BR-RDC: Got MAC: 00:12:4b:00:07:bb:1c:84
    2017-01-24 7:02:31.269325: ERROR: SLIP: Unknown command 2143 (3)
    2017-01-24 7:02:31.269418: ERROR: BR-RDC: Set channel failed
    2017-01-24 7:02:31.274293: ERROR: SLIP: Unknown command 2150 (4)
    2017-01-24 7:02:31.274339: ERROR: BR-RDC: Set PAN-ID failed
    2017-01-24 7:02:31.275112: INFO: ETH: RAW Ethernet interface init
    2017-01-24 7:02:31.478845: INFO: TAP: opened device /dev/eth0
    2017-01-24 7:02:31.478917: ERROR: TAP: Could not access /usr/lib/6lbr/6lbr-ifup : Permission denied
    2017-01-24 7:02:31.478945: INFO: TAP: Eth MAC address : 00:0c:29:73:6a:37
    2017-01-24 7:02:31.479129: INFO: ETH: Eth MAC address : 00:0c:29:73:6a:37
    2017-01-24 7:02:31.479162: INFO: LLSEC: Using 802.15.4 framer
    2017-01-24 7:02:31.479182: INFO: LLSEC: Using 'nullsec' llsec driver
    2017-01-24 7:02:31.480148: INFO: HTTP: Starting webserver on port 80
    2017-01-24 7:02:31.480287: INFO: NODECFG: Node Config init
    2017-01-24 7:02:31.480308: INFO: NODECFG: No node_config.conf file specified
    2017-01-24 7:02:31.480326: INFO: 6LBR: Tentative local IPv6 address fe80::212:4b00:7bb:1c84
    2017-01-24 7:02:31.480379: INFO: 6LBR: Tentative global IPv6 address (WSN) fd00::212:4b00:7bb:1c84
    2017-01-24 7:02:31.480428: INFO: 6LBR: Tentative global IPv6 address (ETH) bbbb::100
    2017-01-24 7:02:31.480457: INFO: 6LBR: RA Daemon enabled
    2017-01-24 7:02:31.480472: INFO: 6LBR: Checking addresses duplication
    2017-01-24 7:02:43.485240: INFO: 6LBR: Configured as DODAG Root fd00::212:4b00:7bb:1c84
    2017-01-24 7:02:43.485433: INFO: 6LBR: Starting as RPL ROUTER
    2017-01-24 7:02:43.486137: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-01-24 7:02:43.486201: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-01-24 7:02:43.486283: INFO: UDPS: UDP server started
    CoAP push started
    CoAP server started
    2017-01-24 7:02:43.486384: INFO: DNS: DNS proxy started
    2017-01-24 7:02:43.486418: INFO: PLUGIN: Initialising lwm2m-client
    2017-01-24 7:02:43.486445: INFO: LWM2M: LWM2M Client init
    2017-01-24 7:02:43.486479: INFO: PLUGIN: Initialising dummy
    2017-01-24 7:02:43.486506: INFO: DUMMY: Dummy init
    2017-01-24 7:02:43.486538: INFO: CONFIG: Loading configuration : /etc/6lbr/nvm.conf
    2017-01-24 7:02:43.486559: WARN: CONFIG: Can not open /etc/6lbr/nvm.conf : No such file or directory
    2017-01-24 7:02:43.486578: INFO: 6LBR: CETIC 6LBR Started
    RD client started
  • The log looks correct now. Where do you access to [bbbb::100]? In InstantContiki firefox browser?