LwIP + FreeRTOS sending large data

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LwIP + FreeRTOS sending large data

2,451件の閲覧回数
otavioborges
Contributor III


Hello all,

I'm currently working with LwIP and FreeRTOS to create a small HTTP server. I'm using an SD card to storage wwwroot data, and fatfs library to deal with reading/writting the SD card.

I've been able to read and send small data like HTML files and so, but when I try to send a larger file, like an image, I can read the data but netconn_write get stucked. As far as I know larger frames (over 1024 bytes) should be segmentated.

I've tried breaking the frames mannually without success. Seems that lwIP keeps receiving the file data and storaging in TCP buffer, and unless I close the connection (netconn_close) the data is no send. I tracked the packets with wireshark and either only the first frame is send or none at all and the code gets stucked on netconn_write.

 

Any ideas?

 

Thanks in advance.

PS.: I've attached the part of the code responsable for frame handling. netconnListener is called after I start listening on the desired port (80).

Original Attachment has been moved to: packetSend.c.zip

ラベル(1)
0 件の賞賛
返信
1 返信

1,539件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Octavio,

NXP does not develop lwIP, therefore it is difficult for us to provide specific support about this stack. However you may search on different forums or information centers for specific lwIP isssues.

Probably some other developers in this community have seen the same issue and can comment on this. For instance you may check and comment in the link below which is a similar question to yours.

lwip-users - netconn, large packets causing trouble

Any time you have problems running our examples provided in KSDK or need some guidance to make simple modifications to them please let us know and we will be happy to help. In such cases you need to indicate the Kinetis MCU that you are using and the example you are working with.

Best regards,

Carlos

0 件の賞賛
返信