lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Ethernet/UART bridge


From: Andrew Foster
Subject: Re: [lwip-users] Ethernet/UART bridge
Date: Wed, 18 Apr 2012 08:52:09 -0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0) Gecko/20120129 Thunderbird/10.0

Hi Andy,

You could try using "tcpip_callback". This would give you an asynchronous hook back into your data_send function.

On 04/18/2012 07:47 AM, address@hidden wrote:
Hi All,

I'm creating a simple program that enables a serial device to be communicated 
with over ethernet. The comms is two way. It is running on an NXP LPC1768 and 
I'm using LWIP 1.3.2 Raw API.

The microcontroller acts as a server, listening for TCP connections. Once a 
connection is established, on receipt of data, the TCP payload is buffered, and 
then sent out over the serial port.

My problem is how to transfer data from the serial port to the tcp connection. 
The only solution I can think of so far is to use tcp_poll to check if any 
buffered serial data is present and then to use tcp_write followed by 
tcp_output to send it back to the client.

Is this a valid use to tcp_poll?

As all my handling of lwip is executed from a single thread, can I call 
tcp_write from my own function that is called at a faster rate than tcp_poll 
supports?

Many thanks for your help

Andy






_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users



reply via email to

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