Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By vaauM
#55005 Hello everyone!

I'm pretty new to ESP8266 and wireless communications.
My idea is to make 4 movement detection sensors (for each corner in the room) which are connected to a server wirelessly.
Movement detection sensors are not my main objective. Basicly, I need to get the data from sensors to a wifi module and then the data needs to be transmitted to a .txt file on my PC for further visualisation and ect.
My view is to maka a TCP client as esp8266. and a TCP server on my pc. I am wondering how it can be managed with the ESP. I didn't find any reliable resourses, so I'm asking for help. Should I look for some kind of telnet2serial or uart2tcp... I dont have any idea. Maybe there are some examples about transfering data wirelessly without any AT commands. Really need your help. Maybe you know a more reasonable way to transfer data from sensors to PC .txt file for further data analysis.

Kind regards.
User avatar
By mrburnette
#55227
My view is to maka a TCP client as esp8266. and a TCP server on my pc. I am wondering how it can be managed with the ESP


If you want to run a Windoes/Linux web server then you can pull the whole thing off there with scripting although I am not an expert in this area. Start here...

But, it seems to me you could just use an ESP8266 as the server and use serial-USB adapter (or use the NodeMCU) and just feed the data to the PC where you can do with the serial what you want to do... heck, you write and compile a BASIC program to accept the data from a virtual com port, you can use an Excel plug-in, you can use Processing (my choice), you can even redirect the serial input to a file from the OS level.

Example

Example

Example Linux


Ray
User avatar
By danbicks
#55430 Another method is to write data to a spiffs file in the format of excel as Ian suggests. This can then be accessed through a web interface directly on the ESP or uploaded to a FTP server.

Should be quite easy to implement, have a play with spiffs...

Dans