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: vincent cui
Subject: Re: [lwip-users] Problem sending huge bytes of data
Date: Fri, 11 Nov 2011 02:35:31 +0000

I always use it as 1024....

Vincent Cui
Sr. Firmware Engineer
Mobile: +8613255150315
Tel: +86 21 34612525x6104
Fax: +86 21 34619770
E-Mail: address@hidden
Shanghai EnLogic Electric Technology Co., Ltd.
Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 
200233
 


-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Sanchayan
Sent: 2011年11月11日 10:37
To: Mailing list for lwIP users
Subject: Re: [lwip-users] Problem sending huge bytes of data

Thanks Kieran and Stephen for helping out. I changed the value of 
PBUF_POOL_BUFSIZE from 256 to 512. The problem was resolved.

Thanks & Best Regards,
Sanchayan Maity.


----- Original Message ----- 
From: "Stephen Cleary" <address@hidden>
To: "Mailing list for lwIP users" <address@hidden>
Sent: Friday, November 11, 2011 02:05
Subject: Re: [lwip-users] Problem sending huge bytes of data


> 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
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users 



Disclaimer: This message (including any attachments) contains confidential 
information and is intended solely for the use of the individual or entity to 
whom they are addressed. If you are not the intended recipient you are notified 
that disclosing, copying, distributing or taking any action based on the 
contents of this information is strictly prohibited. If you have received this 
email in error please notify address@hidden Please note that any views or 
opinions presented in this email are solely those of the author and do not 
necessarily represent those of Godrej & Boyce Mfg. Co. Ltd. group of companies. 
The recipient should check this email and any attachments for the presence of 
viruses. Godrej & Boyce Mfg. Co. Ltd. group of companies accepts no liability 
for any damage caused by any virus transmitted by this email.  


_______________________________________________
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]