Telnet ENC28J60

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

User avatar
Alan_37
Posts: 152
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 53 times
Been thanked: 53 times
Contact:

Telnet ENC28J60

Postby Alan_37 » Tue Mar 12, 2019 1:54 pm

Hi

I am just getting started with this Module I would like to make a telnet connection it is possible using Arduino IDE
but would like to make it with flowcode, I have experimented with the HTTP server example it almost works
but the only problem is that the module closes the connection right after sending the data.

tcp.png
tcp.png (24.02 KiB) Viewed 782 times


is there a way to keep the connection alive?

User avatar
Benj
Matrix Staff
Posts: 14151
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4079 times
Contact:

Re: Telnet ENC28J60

Postby Benj » Tue Mar 12, 2019 2:31 pm

Hi Alan,

Can you post your project file. You may simply be able to use the keep-alive tag in the header?

https://developer.mozilla.org/en-US/doc ... Keep-Alive
These users thanked the author Benj for the post:
Alan_37 (Tue Mar 12, 2019 2:46 pm)
Rating: 5.56%
 

User avatar
Alan_37
Posts: 152
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 53 times
Been thanked: 53 times
Contact:

Re: Telnet ENC28J60

Postby Alan_37 » Tue Mar 12, 2019 3:02 pm

hi Benj, thanks for your quick reply.

As I said I am just getting started what I want to accomplish is sending commands to my MCU via HTTP and telnet
but before I start to build my flowchart I want to make sure that I can make the connection using the HTTP and telnet protocol
so for now, I am experimenting the HTTP + Ping example file from the wiki.

Just tried replacing the header but no luck the connection keeps closing down.

keepalive.png
keepalive.png (25.2 KiB) Viewed 773 times


Below is how a telnet connection looks like

telnet.png
telnet.png (20.2 KiB) Viewed 773 times
Attachments
ENC28J60_Example.fcfx
(25.14 KiB) Downloaded 28 times

User avatar
Alan_37
Posts: 152
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 53 times
Been thanked: 53 times
Contact:

Re: Telnet ENC28J60

Postby Alan_37 » Sat Mar 16, 2019 4:00 pm

hi

For all those who need a network to serial bridge for your microcontroller
here is the Answer "esp-link" this free software for esp8266 makes it possible
to establish Telnet to serial connection, send commands to the microcontroller
via it's HTTP web interface, flash connected AVR, ATmega & ARM processors
also, you can send a command to the microcontroller with a GET request from anywhere
just use the example below.

http://192.168.1.50/console/send?text=sting_to_send%3F

This is exactly what I was looking for hope someone finds it useful as I did.

link.png
link.png (91.55 KiB) Viewed 730 times


https://github.com/jeelabs/esp-link/releases
These users thanked the author Alan_37 for the post (total 2):
Benj (Mon Mar 18, 2019 12:20 pm) • chipfryer27 (Tue Apr 30, 2019 9:16 pm)
Rating: 11.11%