lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip on freertos


From: Toan Pham
Subject: Re: [lwip-users] lwip on freertos
Date: Tue, 9 Jun 2009 09:10:17 -0400

Have you tried disabling other tasks and setting the priority of the
webservice task to around 3?




On Tue, Jun 9, 2009 at 8:20 AM, Jesper
Vestergaard<address@hidden> wrote:
> I have been digging a little deeper and with wireshark i can see that my
> browser sends a SYN but never receives a SYN ACK.
>
> The function flow looks like this:
>
> tcpip_thread()  -> ip_input() -> tcp_input -> tcp_listen_input -> tcp_output
> (tcp_output returns ERR_OK)
>
> The low_level_output in ethernetif is never called so the SYN ACK is never
> sent. A little later my laptop requests an ARP from the board and the board
> successfully returns an ARP.
>
> Can anyone help me figuring out why the SYN ACK is never send?
>
>
> Jesper Vestergaard wrote:
>>
>> Hi,
>>
>> I'm trying to implement a simple webserver with lwip version 1.3.0 on a
>> avr32 ap7000 board running freertos. The EMAC driver is working properly.
>>
>> When I load up my browser and type in the ip adress of the board, the
>> tcpip_thread() properly receives the packet and calls the ip_input()
>> function.
>>
>> Unfortunately the mailbox fetch in netconn_accept() never returns and  the
>> webserver request is never gonna be processed.
>>
>> I'm having a hard time figuring out the link between the ip_input()
>> function and the missing delivery of the mailbox in netconn_accept(). Can
>> anyone help me with this problem?
>>
>>
>> Here's how i use lwip:
>>
>> tcpip_init( NULL, NULL );
>> pxHTTPListener = netconn_new( NETCONN_TCP );
>> netconn_bind(pxHTTPListener, IP_ADDR_ANY, 80 );
>> netconn_listen( pxHTTPListener );
>>
>> for( ;; )
>> {
>>   pxNewConnection = netconn_accept(pxHTTPListener);
>>   vProcessConnection( pxNewConnection );
>> }
>>
>>
>> _______________________________________________
>> 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
>




reply via email to

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