Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi there,
I am trying to see what is the maximum payload size that I can send from a router node to the border router node.
I am also trying to understand if there is any message fragmentation and re-assembly options too and if so how if works in practice.
As of now, I have manipulated the ns_coap_node example to send custom messages using the button press callback:
static void btn_interrupt_handler(uint8_t index) { // if (index == CONFIG_GPIO_BTN1) { // if (bcast_send == true) { // bcast_send = false; // } else { // bcast_send = true; // } // } else if (index == CONFIG_GPIO_BTN2) { // if (unicast_send == true) { // unicast_send = false; // } else { // unicast_send = true; // } // } tr_debug("calling: service_request_send"); coap_service_request_send(service_id, 0, root_unicast_addr, COAP_PORT, COAP_MSG_TYPE_NON_CONFIRMABLE, COAP_MSG_CODE_REQUEST_GET, COAP_DATA_MESSAGE_URI, COAP_CT_TEXT_PLAIN, &data_to_send, sizeof(data_to_send), 0); }
However, the max payload that I cans send is less than 1490 bytes, actually I was able to send a payload of 1450 bytes, so the actual max size should be something in between the two.
I have realized there is a sysconfig option in the link layer for the max payload size which is set to "2047" bytes by default (which seems to be the max possible)
I am wondering why I cannot send payloads as large as 1500 bytes and that is there a way to increase this limit?
Also, is there any message fragmentation and assembly option?
Thanks.