Chat freely about anything...

User avatar
By eriksl
#91624
pconst167 wrote:What I am looking for is a way for me to know from my CPU end, who the packets came from and all information about the packets. I want to be able to receive the packets and parse them myself. I want to write a TCP/IP Stack and parse the packets myself. Or something similar.

Is this possible with ESP8266 ?

It is also possible to write your own IP stack, if you want to, but it's easier to use LWIP and/or make adjustments there, instead of starting from scratch.
User avatar
By JurajA
#91633
pconst167 wrote:
JurajA wrote:https://arduino.stackexchange.com/questions/66898/how-to-acheive-fast-and-reliable-communication-between-nodemcus/66899#66899


Nope....... :/

I can already do this.

When I receive data on the ESP, all I receive is the actual data string. How is my CPU going to know who sent me that data? What IP did it come from? The ESP may know that deep down, but my CPU doesn't.

I need to receive that information. And I need to be able to tell the ESP to open and close connections such as telnet.

I need to be able to type a command such as "telnet x.x.x.x port" and have the ESP connect and open the socket.

The question is: can the ESP8266 do this without me having to write some kind of command interpreter for it?


client.remoteIP()
client.remotePort()
https://arduino-esp8266.readthedocs.io/ ... eadme.html
User avatar
By pconst167
#91658
JurajA wrote:
pconst167 wrote:
JurajA wrote:https://arduino.stackexchange.com/questions/66898/how-to-acheive-fast-and-reliable-communication-between-nodemcus/66899#66899


Nope....... :/

I can already do this.

When I receive data on the ESP, all I receive is the actual data string. How is my CPU going to know who sent me that data? What IP did it come from? The ESP may know that deep down, but my CPU doesn't.

I need to receive that information. And I need to be able to tell the ESP to open and close connections such as telnet.

I need to be able to type a command such as "telnet x.x.x.x port" and have the ESP connect and open the socket.

The question is: can the ESP8266 do this without me having to write some kind of command interpreter for it?


client.remoteIP()
client.remotePort()
https://arduino-esp8266.readthedocs.io/ ... eadme.html




I would need to write a parser for this. That's not really what I need.

To be honest I don't know what I need.
I want to be able to type "ping google.com" on my shell and have my cpu ping google for instance.

I want be able to type "telnet address port" and have my computer run a telnet session.
Things like that.

I want a full tcp/ip stack running on my CPU.

But I don't know... does the esp do this?

Or do I need something else?

Hopefully i explained better now... I am confused about what I need to have in order to run a full tcp/ip stack inside my project
User avatar
By eriksl
#91659 I already explained that is completely possible. The ESP8266 has enough cpu power and RAM to run an IP stack. I don't think it's smart to do your own though, as there is already LWIP available (and used by all developing environments for the ESP8266).

I think the first step you need to take is to familiarise yourself with either the NONOS-SDK (if you want to do low-level bare metal programming) or the RTOS-SDK (which is easier to learn) and write your own program/image using those.