-->
Page 1 of 2

ESP8266 data transfer from sensor to .txt file on PC.

PostPosted: Tue Sep 13, 2016 3:26 am
by vaauM
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.

Re: ESP8266 data transfer from sensor to .txt file on PC.

PostPosted: Fri Sep 16, 2016 8:42 am
by mrburnette
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

Re: ESP8266 data transfer from sensor to .txt file on PC.

PostPosted: Tue Sep 20, 2016 7:45 am
by ian
You might take a look at Excel. It has a really nice feature for importing web data.
If you run webservers on your esp8266s you can capture the data quite easily.

Ian

Re: ESP8266 data transfer from sensor to .txt file on PC.

PostPosted: Tue Sep 20, 2016 12:40 pm
by danbicks
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