Hi Jin,
Sorry, I have no experience with any RTOS. I am building my app the old fashioned way (super loop).
I hope the other listeners can help...
BR,
On 09/24/2013 10:08 PM, Jin Won Seo wrote:
Hi Daniel,
I tested the listener modules with different setting as you mentioned, and nothing worked.
Finally I found the problem in different configuration file which is sys_arch.c. Of course I changed the configuration in lwipopts.h, but some of them in lwipopts.h seem like not affecting that much.
My problem was netconn was not properly allocated. I am not sure still how nicely debug programs based on lwip+safeRTOS, but they seem like not giving me that much options, so I tried to print out a certain message on LCD for debugging.
What I did in sys_arch.c is change SYS_SEM_MAX, SYS_MBOX_MAX. There are simple 5 tasks running together with listener task in my test project, and I guess each task uses their own SEM and MBOX as they get into active.
I just changes the MAX # in sys_arch.c to above # of tasks running on safeRTOS.
In addition, I changed DEFAULT_UDP_RECVMBOX_SIZE as well since I used DHCP option in lwipopts.h to get IP from server in my test project.
However, based on my analysis, even though LWIP_TCP is set, it seems like not affecting because a couple of definitions are redefined in opt.h in case of commenting out definitions in lwipopts.h.
Moreover, netconn_alloc() in api_msg.c(lwip1.3.2) seems like not allowing to use two different protocols like using UDP and TCP together. Only one type of protocol among other that filtered by switch~case for the first time is returned by netconn_alloc() since
detecting UDP is prior to TCP in codes.
My project may need both protocols(UDP+TCP), and I wonder how both are used in different scenario??.
I am not sure yet, but it won't allow to use mixed protocols based on the behavior of the function.
I appreciate your help,
Jin
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
|