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.

CC2650: Use CC2650 as 6LoWPAN border router?

Part Number: CC2650

Hi

I have a custom PCB with CC2650- MODA, and I have modified the Contiki files to get the correct UART pins for the custom board.

Basic examples works fine. But the RPL-BORDER_ROUTER application does not work!!

When you use LaunchPad and you plug to the Raspberry, you can see the /dev/ttyACM0 appearing and I can use the tunslip6 to perform the Border Router.

I do not have USB plug in my custom PCB, because I am using only RX, TX, VCC and GND pins to connect to the raspberry.

So, when I connect I do not see any /dev/tty.something. 

I only have /dev/ttyAMA0 and /dev/ttyS0 that I was configured in the raspberry at the boot time.

But, when I execute the tunslip ... it does not work.

Is there any way to test the CC2650 UART pins?

Is there any way to map the UART pins to some /dev/ttyACM0 to be recognized by the tunslip6 app?

Regards

  • When you build slip radio for CC2650MODA, do you assign correct UART pins you use to connect to Raspberry Pi UART pins?
  • Hi Chen

    As I said, I have a custom PCB so I change the board.h to utilize the correct UART pins of the CC2560MODA.

    In the slip radio files, there is no code to assign the UART pins. I believe it uses the UART pins previously configured for the platform

    I put a REST example code in the board and it works fine.

    The problem is to use the UART pins or how to configure to be used as a border router.

    sudo ./tunslip6 -s /dev/ttyS0 aaaa::1/64

    ********SLIP started on ``/dev/ttyS0''
    opened tun device ``/dev/tun0''
    ifconfig tun0 inet `hostname` mtu 1500 up
    ifconfig tun0 add aaaa::1/64
    ifconfig tun0 add fe80::0:0:0:1/64
    ifconfig tun0

    tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    inet addr:127.0.1.1 P-t-P:127.0.1.1 Mask:255.255.255.255
    inet6 addr: fe80::e150:525e:fb6d:d3a8/64 Scope:Link
    inet6 addr: aaaa::1/64 Scope:Global
    inet6 addr: fe80::1/64 Scope:Link
    UP POINTOPOINT RUNNING NOARP 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:500
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    I can not see the Border Router Ip address.

  • If you are connected to the serial pins on the RPI directly then using /dev/ttyS0 is correct. You are not supposed to see any /dev/ttyACM0, as this device is configured by the XDS debugger on the LaunchPad.

    Could you try a more minimal example and verify at least that UART works by observing some logging is printed on /dev/ttyS0?
  • John,

    Any updates on this?
  • Thank you.


    I have found a problem when creating the new board.h file and the makefile configuration to be used in Contiki border router. 

    It is working now.

    Thanks