[Top][All Lists]

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

Re: [lwip-users] Help on porting LWIP

From: Yoav Nissim
Subject: Re: [lwip-users] Help on porting LWIP
Date: Thu, 11 Nov 2010 10:16:44 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4

Hi Andre,

I just had a chance to go over this thread, and have some info you might
find useful.

We use lwIP on windows currently, so porting was not very difficult. As
was mentioned here earlier, I recommend going over the contrib code - it
will show you exactly what the porting layer requirements are, and
possibly give you some hints relevant to your platform as well.

As for the networking side - If I am correct in the following
assumptions, I would go with UDP:

1. loosing 1 KB of sensor data for every 1 GB of data transferred is not
a problem

2. you need to pass 200 KB to the PC per second (100 arrays * 2 KB per
array)  [this is easily within the nominal data rate of a 10 Mbps link
not to mention a 100 Mbps link]

3. you need to keep overhead and memory consumption down to a minimum.

If you cannot afford to loose data, TCP is your best option.

Once you get lwIP up and running, you need to decide which lwIP
interface you are going to use to write your networking client
application (I believe there are 3 options - sockets, netconn, and raw).

Given the amounts of sockets code available on the net, it should be the
easiest option for you.

You might be able to save on image size and efficiency by using the
netconn or raw interfaces, but I have no direct experience with those so
cannot give you the pros and cons (beside the additional learning curve).



On 10/11/2010 21:25, André wrote:

> Sorry about that....
> My objective is to acquire datas from a sensor and process it... storage it 
> in an array and, when the array gets full, send this array to my PC as faster 
> as I can...
> I.e. I get 2kB in my array (maximuns length). Done that, I start (or resume) 
> my connection with my PC and send this array...
> The PC gets this information and use it for something.
> The problme is that I don't know what feature is the most recommended to do 
> this work... If I open a socket and stay in communication or start a new 
> communication each time I need to send this array...
> My estimates is to send my array 100 times per second...
> I'd like to know what is the most indicated protocol to make it... My area is 
> the controllers, not protocols, so that is why I get so many doubts and don't 
> know almost nothing about protocols...
> Anyway, TY
> regards
> André
> --- Em qua, 10/11/10, Piotr Piwko <address@hidden> escreveu:
>> De: Piotr Piwko <address@hidden>
>> Assunto: Re: [lwip-users] Help on porting LWIP
>> Para: "Mailing list for lwIP users" <address@hidden>
>> Data: Quarta-feira, 10 de Novembro de 2010, 15:52
>> 2010/11/10 André <address@hidden>:
>>> Just another newbie question.
>>> I need to chose what features I will use on lwip...
>> So, anyone could advise me what protocol is the most
>> recommended to pass 32 bits datas to my PC... and if there
>> is no problem if I disable the other ones... I'm using
>> IPv4... and, by now, i'v used this settings...
>> It's really hard to help you with so less information about
>> your
>> target system and its desired functionality. Please,
>> provide more
>> details. What do you exactly try to achieve? What kind of
>> features do
>> you need?
>> I believe that someone will give you some advices, but you
>> must tell
>> more about your project.
>> Regards,
>> -- 
>> Piotr Piwko
>> http://www.embedded-engineering.pl/
>> _______________________________________________
>> lwip-users mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/lwip-users
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users

Yoav Nissim
Software Engineer, Software Tools Division
Jungo Software Technologies
Email: address@hidden
Web: http://www.jungo.com
Phone: +972-74-7212138
Fax: +972-74-7212122
Mobile: +972-54-2271315

reply via email to

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