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: How to make a coap request from RN to BR

Part Number: LP-CC1352P7
Other Parts Discussed in Thread: CC1352P7

Hi TI,

I am working on the 'ns_coap_node_src_LP_CC1352P7_1' example. I can send data from RN to BR using a GET request and put it into the responses payload and this works properly.

Now i want to send information from RN to BR without any request, to notify about an alarm for example.

I read here < https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1067591/lp-cc1352p7-how-to-send-packets-from-wi-sun-router-node-to-border-router >that this is possible by using the coap_service_request_send() function from coap_service_api.c but I couldn't use it in the right way. 

1) Respect to the following function

uint16_t coap_service_request_send(int8_t service_id, uint8_t options, const uint8_t destination_addr[static 16], uint16_t destination_port, sn_coap_msg_type_e msg_type, sn_coap_msg_code_e msg_code, const char *uri, sn_coap_content_format_e cont_type, const uint8_t *payload_ptr, uint16_t payload_len, coap_service_response_recv *request_response_cb)

  • How can i obtain destination_addr param?
  • Is the request_response_cb mandatory?

2) How can i run the BR on server mode to receive the request from RN?

3) Is spinel-cli or wfantund prepared to support this behavior?

Best regards,

Franco