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.

LAUNCHXL-CC1350: CC26xx-web-demo Net-UART Process

Expert 1600 points
Part Number: LAUNCHXL-CC1350
Other Parts Discussed in Thread: CC1350

Hello, 

I have 2 Launchpads CC1350, one is a slip radio connected to a RaspberryPi using USB (ttyACM0), and the other is connected to a PC (with Teraterm), and has the cc26xx-web-demo image with the Net-UART flashed to it.

I can send data from the raspberry pi to the cc26xx-web-demo using Net-UART by typing:

nc -6u fd00::212:4b00:1375:b481 7777  

in the raspbery pi terminal, and I can receive it on teraterm at the other node.

The Question is how to send a message from the node to the raspberry Pi? 

I tried configuring the RaspberryPi to listen to remote port by:

nc -6vulkw 1 7777

but I receive nothing when I write a message in teraterm.

  • Please take a look at the following post and see if that is of any help.

    e2e.ti.com/.../592561

    BR

    Siri

  • I'm sure my code is correct (because I just flashed a contiki-ng example without editing)

    I also configured Teraterm similar to the post you recommended, but I cannot receive at the Rasberrypi.

    Is:

    nc -6vulkw 1 7777

    correct? 

  • To which address are you sending to on the node? And, have you verified any message is sent over the air with a sniffer?

  • Also, please post printout of "ifconfig".

  • Hello, 

    I don't know how to configure an address to send to in teraterm? My 6lbr page shows border router at: Local address : fe80::212:4b00:1375:c101

    I didn't use a sniffer, but I as I previously stated, I verified sending messages from the RaspberryPi to the node:

    ifconfig is here:

    My question is:
    Do you know what should I type exactly in the Teraterm terminal to send a "Hello World" message to the rasberryPi? How should I configure the RaspberyPi?

     

    Thanks

  • Which IP address are you sending to in your Node's application?

  • As I mentioned in the previous reply, "I don't know how to configure an address to send to in teraterm (Where the node is connected)"

    I'd appreciate, you attach a screen shot on how to configure an address to send to in Teraterm, and specify what should I write in the RaspberryPi terminal.

  • Hi,

    The default destination IP address appears to be determined by set_dest_addr() in net-uart.c.

    Also, from the cc26x0-web-demo\README.md:

    The example will initially send packets to a hard-coded IPv6 address. This can
    be changed very easily by entering a different IPv6 address to the console.
    Thus, when the serial input string is an IPv6 address, it will not be sent as
    any other string would, but instead it will configure the example to send to a
    different remote address. This new IPv6 address is not persistent across
    device reboots.

    Regards,
    Toby

  • SUMMARY OF NET_UART PROCESS
    To Send data from RaspberryPi to node
    1- Open UART terminal on PC connected to the Node
    2- In RaspberryPi terminal, start NetCat (nc) communication with the node:
    # nc [options] [Node's ipv6 address, as in sensors list table in 6lbr web page] [REMOTE_PORT]
    # Type message then press ENTER
    Hello world from Collector RaspberryPi!

    To Send data from node to RaspberryPi
    1- get br0 IPv6 address and set it as Remote IPv6 in http://[<ip6 address>]/netu.html (use ifconfig )
    2- In RaspberryPi terminal, start NetCat (nc) listening to REMOTE_PORT:
    nc -6ulkw 1 7777

    3- Open UART terminal on PC connected to the Node
    3.1 - from Edit menu, choose "Past <CR>", type RaspberryPi ipv6 address and press OK to get: Updated remote address bbbb::bf25:ffc1:2d5f:dd70
    bbbb::bf25:ffc1:2d5f:dd70
    3.2 - from Edit menu, choose "Past <CR>" again, type message then press OK
    Hello world from CC26xx-web-demo Node!