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 with BBB Questions

Other Parts Discussed in Thread: CC2650STK

I am following the procedure listed at processors.wiki.ti.com/.../Cc26xx_sw_examples .  Using a BBB the 6LBR service has been started, the channel that is used by 6LBR has been updated to 25, the USB CC2532 dongle has been programmed and connected, and two SensorTags (CC2650STK) which have been programmed with CC26xx-web-demo.bin have been added.  The 6LBR web page at bbbb::100 can be accessed and shows the IPv6 addresses for the SensorTags which can be ping6ed in a putty window.  I have several questions.

1,  Why does ifconfig not show information that corresponds to the example?

2.  Why does netstat -rn  not show information that corresponds to the example?

3.  Installation of Wrapsix (enable NAT64) and start seem to work OK.  Where are the IPv4 addresses located?  After  exiting putty I am unable to log in; does wrapsix need to be stopped before exiting putty?  How to stop wrapsix?



Here is the output from ifconfig and netstat -rn

debian@beaglebone:~$ ifconfig
eth0 Link encap:Ethernet HWaddr d0:39:72:2d:e8:35
inet addr:192.168.1.80 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2602:306:378d:ded0:d239:72ff:fe2d:e835/64 Scope:Global
inet6 addr: fe80::d239:72ff:fe2d:e835/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:128462 errors:0 dropped:0 overruns:0 frame:0
TX packets:22345 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:92392310 (88.1 MiB) TX bytes:1742745 (1.6 MiB)
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 f2:c0:46:cb:fa:87
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::f0c0:46ff:fecb:fa87/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12378 errors:0 dropped:0 overruns:0 frame:0
TX packets:7606 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1659078 (1.5 MiB) TX bytes:1439506 (1.3 MiB)

debian@beaglebone:~$ netstat -rn
Kernel IP routing table
Destination   Gateway              Genmask                  Flags     MSS Window   irtt      Iface
0.0.0.0            192.168.1.254   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

  • You should issue ifconfig on Linux PC not BBB. If your PC runs Windows System, you should issue ipconfig instead of ifconfig.
  • I putty into the BBB which is running Linux and issue a ifconfig which produces information but does not match the expected. I run ipconfig in a Windows command window.
  • Does your windows PC and BBB connect to the same router?
  • The PC has a wireless connection to the router while the BBB is connected using an ethernet cable.

  • It's OK to use wireless connection between your PC and Router. Do you enable IPv6 on your router?
  • There is also a USB cable that connects the PC to the BBB for putty access. The router is an AT&T U-verse 2wire router model 3600 HGV. The following status information was copied from the router status.

    LAN Status
    IPv6 Status
    LAN Status Enabled
    Link Local Address fe80::2a16:2eff:fef0:911
    Delegated Address/Subnet 2602:306:378d:ded0::1/64

    Broadband status
    IPv6 Internet Connection:
    Default Gateway: 2602:300:c533:1510::1
    6rd BR: 12.83.49.81
    6rd Prefix: 2602:300::/28
    6rd Delegated Prefix: 2602:306:378d:ded0::/60
    6rd MTU 1472
  • I am confused by you. What's your current problem?
  • I am following the procedure listed at processors.wiki.ti.com/.../Cc26xx_sw_examples . When ifconfig is run on BBB the information for eth0 (shown in earlier post) does not correspond to that shown for en0 in the cc26xx-web-demo example as shown below. My question is why is there a difference?

    $ ifconfig
    [...]
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>
    ether 3c:07:54:74:48:85
    inet6 fe80::3e07:54ff:fe74:4885%en0 prefixlen 64 scopeid 0x4
    inet 192.168.1.110 netmask 0xffffff00 broadcast 192.168.1.255
    inet6 bbbb::3e07:54ff:fe74:4885 prefixlen 64 autoconf
    inet6 bbbb::d518:4dc:99bd:c48e prefixlen 64 autoconf temporary
    nd6 options=1<PERFORMNUD>
    media: autoselect (10baseT/UTP <half-duplex>)
    status: active
    netstat -rn: Make sure the PC has a route to aaaa::/64 via bbbb::100
    $ netstat -rn
    Routing tables
    [...]
    Internet6:
    Destination Gateway Flags Netif Expire
    ::1 ::1 UHL lo0
    aaaa::/64 bbbb::100 UGSc en0
    bbbb::/64 link#4 UC en0
    bbbb::3e07:54ff:fe74:4885 3c:7:54:74:48:85 UHL lo0
    bbbb::d518:4dc:99bd:c48e 3c:7:54:74:48:85 UHL lo0
    [...]
  • I still don't understand. Your output of ifconfig looks fine. What else do you expect?
  • I expect what is shown in the example. What I get with ifconfig is shown below and is different from the example. A difference also occurs with netstat -rn as shown below. This is confusing to me.

    debian@beaglebone:~$ ifconfig
    eth0 Link encap:Ethernet HWaddr d0:39:72:2d:e8:35
    inet addr:192.168.1.80 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: 2602:306:378d:ded0:d239:72ff:fe2d:e835/64 Scope:Global
    inet6 addr: fe80::d239:72ff:fe2d:e835/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:128462 errors:0 dropped:0 overruns:0 frame:0
    TX packets:22345 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:92392310 (88.1 MiB) TX bytes:1742745 (1.6 MiB)
    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 f2:c0:46:cb:fa:87
    inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
    inet6 addr: fe80::f0c0:46ff:fecb:fa87/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:12378 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7606 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1659078 (1.5 MiB) TX bytes:1439506 (1.3MiB)

    debian@beaglebone:~$ netstat -rn
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    0.0.0.0 192.168.1.254 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
  • Hi Karl. I had a lot of the same confusion.

    With the cc26xx_sw_example tutorial, think of the BBB's role as a black box, with 6lowpan on one side, and ipv6/ethernet on the other.
    This configuration requires an extra machine, be it windows, linux, another BBB or raspberry pi.

    The BBB running 6lbr in Router mode with RAW_ETH enabled, will not show you any evidence of anything IPV6 via netstat or ifconfig.

    Using another machine on the LAN with IPv6 enabled, you should see a bbbb::* address.
    Once you have that address, you can see 6LBR console via a web browser at http://[bbbb::100] , and start poking at sensors thru there.
    I do not like this configuration , as it requires an extra machine. I will resume looking for improvements here next week.

    I have posted a similar topic here : e2e.ti.com/.../440623

    The documentation for 6LBR is not yet complete, but if you join the 6lbr mailing list, they are prompt to answer questions.

    Regarding wrapsix, the author hangs out on irc - the freenode network, in channel #wrapsix.
    It took a few days to get an answer due to time zone differences.

    I hope this helps .
  • Hi mike,
    Thanks for the nice explainations.
  • OK. Then it is correct what I am seeing on the BBB Linux when ifconfig is run. When ipconfig is run on the laptop/PC which is connected to the BBB using a USB cable I see the following. I can ping -6 bbbb::100 and access the 6LBR console at http://[bbbb::100]. The CC26xx-web-demo section should be updated with this information. Thanks for your answers.

    run ipconfig on the PC
    ---------------------------------
    Wireless LAN adapter Wi-Fi:
    Connection-specific DNS Suffix ....... : attlocal.net
    IPv6 Address.......................................... : 2602:306:378d:ded0:3975:de52:e80f:1345
    IPv6 Address.......................................... : bbbb::3975:de52:e80f:1345
    .........
  • It's good to know you get it.