Closed Shridharfly closed 7 years ago
Probably you should increase also the size of the buffer content here:
sprintf(buf, "Hello %d from the client", seq_id);
Thanks for the reply @BigMikes ! Instead of this I tried
uip_udp_packet_sendto(client_conn, buf, MAX_PAYLOAD_LEN, &server_ipaddr, UIP_HTONS(UDP_SERVER_PORT));
But no success.
You don't need to define NETSTACK_CONF_WITH_IPV6
; the makefiles define it.
You might need to increase the size of the uIP buffer, so that it can hold your bigger payload. Define a big-enough UIP_CONF_BUFFER_SIZE
in the "project-conf.h" file (it needs to hold at least the payload and a header).
It looks as though you don't need much to trigger fragmentation. Try payloads that are multiples of 128.
I was increasing size of payload but I partially fed data into buffer. As soon as I fed a lot of data in complete buf, the issue was solved.
I am using latest build of contiki.
I have just added the following lines here.
I have done no other changes to any of the files.
I want to force fragmentation. Irrespective of whether SICSLOWPAN_CONF_FRAG is enabled, the control reaches this line.
I have experimented with various values for MAX_PAYLOAD_LEN but I could not force fragmentation.
I noticed that large packets are not delivered, but are not fragmented.
What is the minimum MAX_PAYLOAD_LEN at which fragmentation should happen? How do I make fragmentation happen?