Page 1 of 1

Telnet ENC28J60

Posted: Tue Mar 12, 2019 1:54 pm
by Alan_37
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
(24.02 KiB) Downloaded 1501 times
is there a way to keep the connection alive?

Re: Telnet ENC28J60

Posted: Tue Mar 12, 2019 2:31 pm
by Benj
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

Re: Telnet ENC28J60

Posted: Tue Mar 12, 2019 3:02 pm
by Alan_37
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
(25.2 KiB) Downloaded 1492 times
Below is how a telnet connection looks like
telnet.png
(20.2 KiB) Downloaded 1492 times

Re: Telnet ENC28J60

Posted: Sat Mar 16, 2019 4:00 pm
by Alan_37
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
(91.55 KiB) Downloaded 1449 times
https://github.com/jeelabs/esp-link/releases