AzureRTOS, how to transmit TCP large data buffers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-10 1:24 AM
Hi,
I did the function below to transmit TCP data: But I only can transmit up to 4K bytes using this function. If len is bigger than 4K bytes, nx_tcp_socket_send fails.
void TCP_Send(void *buf, uint32_t len)
{
UINT ret;
NX_PACKET *send_packet;
nx_packet_allocate(&AppPool,&send_packet,NX_TCP_PACKET,NX_WAIT_FOREVER);
nx_packet_data_append(send_packet,buf,len,&AppPool,NX_WAIT_FOREVER);
ret = nx_tcp_socket_send(&TCPSocket, send_packet, NX_WAIT_FOREVER);
if(ret) nx_packet_release(send_packet);
}
- Labels:
-
AzureRTOS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-10 2:45 AM
Hello @Community member​ ,
Your problem has been reported internally. I will keep you updated.
Thank you for your understanding.
BeST Regards,
Walid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-16 7:37 AM
Hello @Community member​
We have increased the buffer size to more 4096, but we don't see any problems.
Could you please share your example to reproduce your issue?
Thanks in advance.
Walid
