Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Regular Visitor
janscholz
Posts: 39
Registered: ‎08-30-2011
0
Accepted Solution

get a start in lwip

Hy!

I want to get a start with lwip. I´ve seen that there is the XAPP1026 where is discussed about it.

To the Raw and Socked mode:

I think that you need an Xilkernel for the socket. The socket is slower but easier to understand, but I want to use the Raw-mode, because I have no xilkernel in my design. Or did I understand something wrong?

I use the EDK13.4 and want to have a look for the described applications in the XAPP1026. Where can I get those .c-Files to make it work with 13.4?

My targed is to send data from the Board to Matlab. But until now I couldn´t get so much experience with lwip.

What can you recommend to do first to understand how all the stuff works?

 

Regards Jan

 

Regular Visitor
janscholz
Posts: 39
Registered: ‎08-30-2011
0

Re: get a start in lwip

ok, the first solution is to download the applications by following the link int xapp1026, but when I import these files there are many warnings and I cant access my board. I changed the macadress and tried to ping the adress. 

Anything what could help me? Or answers to the other questions?

I´m thankful for everything.

 

Regards

Regular Visitor
janscholz
Posts: 39
Registered: ‎08-30-2011
0

Re: get a start in lwip

I can´t find out how I can access the datapayload.

In the echoserver it looks for me, if the while-loop polls if there is data to access, am I right?

how can I manipulate the data, sent via telnet. For example: I send a 2, and the echoserver adds 2 or something like that.

 

I´m happy about every post.

Jan

Super Contributor
arvindnr
Posts: 199
Registered: ‎02-10-2012
0

Re: get a start in lwip

Regarding all your questions :

If your design does not support a multi threaded system then you cannot use the xilkernel. You can go with the RAW API , its not hard to understand if you give it a bit of time to understand the code. I suggest you download the XAPP1026 and go through the pdf in detail before getting into the application itself. You will get a fair understanding of the general working!

 

The XAPP1026 is not designed for 13.4 as it was originally written for 13.1 so it wont work directly. You have to made a lot of changes in the general settings. An easier alternative would be to go for the LWIP example template given in the 13.4 . It is an echo server based on the RAW API. You will not find any problems in compiling the template and making it work.

 

To acccess the data in the payload you can use the function strncat(destination pointer,p->payload,p->len); . Once you have the data in the detination pointer you can manuplate it how you want.

To fully undersand the working of the lwip there is no other way than hardwork! You have to spend some time and go into the basics of how lwip works! online resources such as the lwip wiki page is really helpful .

 

Hope this helps

Regards

Arvind

Regular Visitor
janscholz
Posts: 39
Registered: ‎08-30-2011
0

Re: get a start in lwip

Thank you for your fast reply. I´ll look what I can do. And if there are big problems, I´ll post again ;-)

 

Visitor
legoman
Posts: 10
Registered: ‎06-14-2012
0

Re: get a start in lwip


arvindnr wrote:

 An easier alternative would be to go for the LWIP example template given in the 13.4 . It is an echo server based on the RAW API. You will not find any problems in compiling the template and making it work.

 


Where I can find this LWIP example for 13.4?