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.

LP-CC1352P7: LP-CC1352P7-1

Part Number: LP-CC1352P7


I have to send the periodic data from ns_coap_node to Border Router. What all functions do I need?

  • Hi Sajal, 

    CoAP protocol uses the client server model. The ns_coap_node project hosts a CoAP server with the LED resource. 

    This allows the spinel-cli + border router to send Get/put requests to the LED resource. This is the default behavior of the coap node example.

    The easiest way to periodically get data to the border router would be to poll for this data from the border router.

    But if you need to initiate communication from the CoAP node to the border router. Then we need to mimic the server in the spinel-cli. And then use coap_service_request_send() to this simulated coap server. 

    We are working on this Simple Link Academy which is due to come out soon. 

    Regards,

    Sid

  • Hi Sid, 
    Actually in general IOT application we need to send data from router node to border router so how can I achieve it?

  • Can I make change in spinel-cli file so that border router will send get/put request periodically without giving it the command. and if so how can i achieve it?

  • Part Number: LP-CC1352P7

    How can I poll the data from border router periodically? I looked in the spinel-cli.py there shell.cmdloop() is being called. I don't want to make changes in cmd.py file, so how can I achieve it now?

  • The spinel-cli is an example implementation of a host application interacting with the wi-sun network coprocessors.

    It is a command line interface, thus expects command input from the user. 

    To get rid of this, you would have to define your own class where command line is not used but the methods used in the spinel-cli can be directly be called. 

    We are working on a collateral which would enable automated ping testing which will be release soon.

    Regards,

    Sid