lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Problem sending huge bytes of data


From: Stephen Cleary
Subject: Re: [lwip-users] Problem sending huge bytes of data
Date: Thu, 10 Nov 2011 20:35:49 +0000

Another common problem is a lack of message framing.

Ensure that your application is correctly receiving 300 bytes. I.e., check the 
return value of lwip_recv.

http://lwip.wikia.com/wiki/Receiving_data_with_LWIP

        -Steve

________________________________________
From: address@hidden address@hidden on behalf of Kieran Mansley address@hidden
Sent: Thursday, November 10, 2011 11:28 AM
To: Mailing list for lwIP users
Cc: Hemant
Subject: Re: [lwip-users] Problem sending huge bytes of data

On Sat, 2011-11-05 at 11:26 +0530, Sanchayan wrote:
>
> In my application i am trying to send around 300 plus bytes to my
> controller board using the lwip stack, over TCP IP. I receive 200
> bytes correctly, but the rest are garbage.

My best guess is that your packet buffers are configured to be around
256 bytes long each, and so the first one contains headers and ~200
bytes of data.  This gets sent properly, but your driver doesn't handle
pbuf chains properly (iterating over pbuf->next to find all the data).
This means everything after the first pbuf is garbage.

Check that out and see if it makes sense.

Kieran


_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]