lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Minimal RAW TCP Client (Jamie)


From: Lee
Subject: [lwip-users] Minimal RAW TCP Client (Jamie)
Date: Mon, 18 Nov 2019 07:48:31 -0500

Jamie,

Another thing to do us use a terminal program such as RealTerm or Tera Term set up as either a TCP server or client and practice connecting to them
I have only used Tera Term in a client mode.
For Real term you have to do something that was not obvious to me at first. Select the "Port" tab. Then in the Port dialog type "server:telnet" and this will make a telnet serve on your computers port 23. You can set other ports I believe with something like this "127.0.0.1:9876" for port 9876.

I found it helpful to use Wireshark with a filter for your sending and receiving IP addresses. Here is a filter I used (ip.src == 10.1.10.182 && ip.dst==10.1.10.235 ) || (ip.src == 10.1.10.235 && ip.dst==10.1.10.182) My Windows host computer is 10.1.10.235 and our embedded LAN product is 10.1.10.182.

Our embedded LAN is a Texas Instrument TM4C1294 and the TCP server is one of the reference projects and uses LWIP. It is a project called "enet_s2e" in the TivaWare_C_Series-2.1.1.71. That example is no longer in the most recent TivaWare so you have to find the older series.

Hope this helps and if so say what helped.

Lee Erickson
-----Original Message----- From: address@hidden
Sent: Sunday, November 17, 2019 12:00 PM
To: address@hidden
Subject: lwip-users Digest, Vol 195, Issue 17

Send lwip-users mailing list submissions to
address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.nongnu.org/mailman/listinfo/lwip-users
or, via email, send a message with subject or body 'help' to
address@hidden

You can reach the person managing the list at
address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lwip-users digest..."


Today's Topics:

  1. Re: Minimal RAW TCP Client (Jamie)


----------------------------------------------------------------------

Message: 1
Date: Sun, 17 Nov 2019 05:45:23 -0700 (MST)
From: Jamie <address@hidden>
To: address@hidden
Subject: Re: [lwip-users] Minimal RAW TCP Client
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

Hi Lee,

Thanks for your response (I've copied and pasted it below to ensure it's
part of this thread moving forward).

I was able to follow along with your code, thank you for sharing it.

At this stage it would be particularly helpful if anyone had any specific
lwIP code or advice as to how I should proceed. I will play with some
polling-based connection attempt approaches (using Lee's input as a
reference), but any additional guidance in the meantime would be greatly
appreciated!


Hello I hope I am replying to this correctly or some one will tell me how.

Regarding the TCP client development,
I wrote both a server and client in Processing where I could rapidly
develop
them. I did it to help our development and test of an embedded product and
the PC and Android applications that connect to and control our product
through TCP socket.   My two Processing creations allowed us to test each
independently.

For client See my github at:
https://github.com/ForrestErickson/Processing-ClientWithReconnect
This is the server:
https://github.com/ForrestErickson/Processing-ServerComeAndGoes

You will have to read the code to see the keyboard commands to change
server
status, but only if you want to.
I hope this is of use and feel free to explain any confusion you have.

If Processing does not intimidate you (it's super easy) I advise you start
by running on one Windows PC both the server and client and play with
them.
Run them in any order and close in any order.

(Forrest) Lee Erickson
P.S. If I have one supper power it would be called novel spelling.





--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html



------------------------------

Subject: Digest Footer

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

------------------------------

End of lwip-users Digest, Vol 195, Issue 17
*******************************************



reply via email to

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