04-26-2012 09:58 AM
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?
Solved! Go to Solution.
04-26-2012 10:28 AM
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.
04-27-2012 03:21 AM
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.
04-27-2012 06:55 AM
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
08-15-2012 12:45 AM
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?