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

Post Reply
User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times
Contact:

Telnet ENC28J60

Post 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?

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

Re: Telnet ENC28J60

Post 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

User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times
Contact:

Re: Telnet ENC28J60

Post 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
Attachments
ENC28J60_Example.fcfx
(25.14 KiB) Downloaded 229 times

User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times
Contact:

Re: Telnet ENC28J60

Post 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

Post Reply