Re: [lwip-users] A new users request for help with sending TCP Packets on Demand

2017-06-27 Thread Noam Weissman
Hi, First of all great that you have been able to leap to 2.xx  Keeping the connection open or not depends on your own needs. So there is no simple reply to that. As for buffering, it depends on your system design. Do you have an OS or are you running without an OS, do you have sufficient

Re: [lwip-users] A new users request for help with sending TCP Packets on Demand

2017-06-27 Thread mitchj
Thank you, I have read that page, and actually lept ahead to 2.0.0, it was an easier upgrade than I expected. Further, I was able to get a basic example working sending a string through a client. For now I have only a couple of questions to help me in my design. I need to expand this so that I

Re: [lwip-users] A new users request for help with sending TCP Packets on Demand

2017-06-20 Thread Noam Weissman
Hi, I would suggest upgrading to lwip 1.41 and take a look at this: http://download.savannah.nongnu.org/releases/lwip/ http://lwip.wikia.com/wiki/Raw/TCP Raw/TCP | lwIP Wiki | Fandom powered by Wikia lwip.wikia.com Initialization Edit. lwip_init() must be

Re: [lwip-users] A new users request for help with sending TCP Packets on Demand

2017-06-20 Thread mitchj
Precisely, a TCP client is exactly what I need. I'm looking at both the lwip src and contrib for LWIP 1.4.0 and did not find one instance of tcp_connect. The only ones I see that is related to raw tcp at all is a server and does tcp_accept(echo_pcb, echo_accept); ... and similar in the http

Re: [lwip-users] A new users request for help with sending TCP Packets on Demand

2017-06-20 Thread Simon Goldschmidt
mitchj wrote: > However, I'm honestly struggling to find an example that initiates the > connection from > the embedded device. You mean a tcp client? Where did you look? There are at least 3 in src/apps: lwiperf, mqtt and smtp. Just grep for tcp_connect... Simon

Re: [lwip-users] A new users request for help with sending TCP Packets on Demand

2017-06-19 Thread mitchj
Thank you Sergio, I realize that TCP is a one to one connection. However, I'm honestly struggling to find an example that initiates the connection from the embedded device. The echo sample project for example establishes a passive connection that binds to an incoming connection (as I understand

Re: [lwip-users] A new users request for help with sending TCP Packets on Demand

2017-06-16 Thread Sergio R. Caprile
You need to read about two things. Perhaps three. One is TCP, and connection oriented protocols. Before sending you need to establish a connection, you can't send to iwishsomeoneisthere like UDP, which is a connection-less protocol. TCP is just like a phone call before voice mail was invented.

[lwip-users] A new users request for help with sending TCP Packets on Demand

2017-06-12 Thread Mitch Jones
Hi there lwip users, I've had success sending UDP packets on demand, but am not finding success doing the same with a TCP Connection. For now I'm just implementing a base case inside a function that I call after lwip_init to try to get it working. What I'm wanting in the end is to have a