[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] STR912 lwIP + Freertos demo
From: |
Noam weissman |
Subject: |
Re: [lwip-users] STR912 lwIP + Freertos demo |
Date: |
Thu, 4 Apr 2013 20:22:57 +0300 |
Hi,
I just loaded the FreeRTOS demo in LwIP mode and I do not like the way they did
it.
In general when you go to main you have:
#ifdef STACK_LWIP
/* Create the lwIP task. This uses the lwIP RTOS abstraction
layer.*/
vlwIPInit();
sys_set_state( ( signed char * ) "httpd",
lwipBASIC_SERVER_STACK_SIZE );
sys_thread_new( vBasicWEBServer, ( void * ) NULL,
basicwebWEBSERVER_PRIORITY );
sys_set_default_state();
#endif
vlwIPInit calls all LwIP init functions wile vBasicWEBServer task sets IP, MAC
etc and then dies.
If you do bnot need the HTTP server comment the httpd_init call in
vBasicWEBServer task and add your
Own code there.
If you want to work in RAW mode you need to update lwipopts.h file and add
#define LWIP_RAW 1
Hope that gives you a head start.
If you have problems write to me and I will try to assist.
Have a nice weekend,
Noam.
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of ajinkya
Sent: ה 04 אפריל 2013 13:23
To: address@hidden
Subject: Re: [lwip-users] STR912 lwIP + Freertos demo
Thanks Noam ,
I have updated my version to current freeRTOS version.
And as you asked I am able to ping my STR912 comstick dongle.
but the demo code -> FreeRTOS\Demo\ARM9_STR91X_IAR uses *uip stack* only.
since i changed the ip address,mask,gateway in uip_Task.c and it is replying
the ping.
Here is the part of void main() which is for uip and lwip.
---------------------------------------------------------------------------------------------
/* Start either the uIP TCP/IP stack or the lwIP TCP/IP stack. */
#ifdef STACK_UIP
/* Finally, create the WEB server task. */
xTaskCreate( vuIP_Task, "uIP", configMINIMAL_STACK_SIZE * 3,
NULL, mainCHECK_TASK_PRIORITY - 1, NULL );
#endif
#ifdef STACK_LWIP
/* Create the lwIP task. This uses the lwIP RTOS abstraction
layer.*/
vlwIPInit();
sys_set_state( ( signed char * ) "httpd",
lwipBASIC_SERVER_STACK_SIZE );
sys_thread_new( vBasicWEBServer, ( void * ) NULL,
basicwebWEBSERVER_PRIORITY );
sys_set_default_state();
#endif
---------------------------------------------------------------------------------------------------
So now the question remains. How to make lwip stack up?
I don't need a web server or something like that.
What i intend to do is:
1. Connect to Network: Module (str912) should be in network 2. Send a UDP
packet: One remote server will send a udp packet destined to this module. (this
part we are doing with "hping3" as of now and have tried with different strings
between 2 PC's) 3. *Receive and process udp packet:* It should read the packet
and on receiving particular string it should send a IR signal (generating IR
and sending has been tested and is working but without any networking -uip/lwip
involved)
4. Wait for next packet for processing.
Thnaks again for your reply,
Hope you can help on this .
--
View this message in context:
http://lwip.100.n7.nabble.com/STR912-lwIP-Freertos-demo-tp21277p21286.html
Sent from the lwip-users mailing list archive at Nabble.com.
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
************************************************************************************
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
************************************************************************************
- [lwip-users] STR912 lwIP + Freertos demo, ajinkya, 2013/04/03
- Re: [lwip-users] STR912 lwIP + Freertos demo, Noam weissman, 2013/04/04
- Re: [lwip-users] STR912 lwIP + Freertos demo, ajinkya, 2013/04/04
- Re: [lwip-users] STR912 lwIP + Freertos demo,
Noam weissman <=
- Re: [lwip-users] STR912 lwIP + Freertos demo, Noam weissman, 2013/04/07
- Re: [lwip-users] STR912 lwIP + Freertos demo, ajinkya, 2013/04/08
- Re: [lwip-users] STR912 lwIP + Freertos demo, Noam weissman, 2013/04/09
- Re: [lwip-users] STR912 lwIP + Freertos demo, ajinkya, 2013/04/10
- Re: [lwip-users] STR912 lwIP + Freertos demo, Noam weissman, 2013/04/10
- Re: [lwip-users] STR912 lwIP + Freertos demo, ajinkya, 2013/04/16
- Re: [lwip-users] STR912 lwIP + Freertos demo, Noam weissman, 2013/04/16
- Re: [lwip-users] STR912 lwIP + Freertos demo, ajinkya, 2013/04/18
- Re: [lwip-users] STR912 lwIP + Freertos demo, Noam weissman, 2013/04/18
- Re: [lwip-users] STR912 lwIP + Freertos demo, ajinkya, 2013/04/22