Recording datas into internal memory
Moderators: grovkillen, Stuntteam, TD-er
Recording datas into internal memory
Hello, I have a project with a Wemos D1 Mini and EspEasy : I want to use this like a data logger for noise measurement.
Do you know how it's possible to record datas in Wemos memory, into a text file for example ?
And how can I read this file after recording ?
Many thanks for your help !
Do you know how it's possible to record datas in Wemos memory, into a text file for example ?
And how can I read this file after recording ?
Many thanks for your help !
Re: Recording datas into internal memory
You can use the Cache controller, that is included in the Custom builds available from the regular Github downloads page.
Description is a bit compact, but it is complete, and should get you going.
What type of sensor do you intend to use to collect the noise measurements?
Description is a bit compact, but it is complete, and should get you going.
What type of sensor do you intend to use to collect the noise measurements?
/Ton (PayPal.me)
Re: Recording datas into internal memory
Hello, and thanks for your quick reply !
I will take a look about that...
My sensor is a GY-MAX4466, like this :
https://www.adafruit.com/product/1063
I will take a look about that...
My sensor is a GY-MAX4466, like this :
https://www.adafruit.com/product/1063
Re: Recording datas into internal memory
AFAICS, that device needs to be connected to an analog input, as there is no specific plugin available in ESPEasy, but analog should work OK for your use.
/Ton (PayPal.me)
Re: Recording datas into internal memory
Yes, I will see how I can read value from analog input (connected to my device) and record it into RTC memory with Cache controller
Re: Recording datas into internal memory
It will first record it into RTC to make sure there is a large enough chunk of data to write to flash.
The reason it is put in RTC first is to make sure no data gets lost in cache of a crash or warm reboot.
There is a .htm file in the source tree (dump6.htm I think it is named) which you need to upload to the filesystem too.
When opening this file (loaded from the ESPs filesystem in a new tab for example), it will fetch the .bin files and decode them in JavaScript and then generate a .CSV file from it to analyze in just any spreadsheet program.
The reason it is put in RTC first is to make sure no data gets lost in cache of a crash or warm reboot.
There is a .htm file in the source tree (dump6.htm I think it is named) which you need to upload to the filesystem too.
When opening this file (loaded from the ESPs filesystem in a new tab for example), it will fetch the .bin files and decode them in JavaScript and then generate a .CSV file from it to analyze in just any spreadsheet program.
Re: Recording datas into internal memory
Thanks for your help !TD-er wrote: ↑05 Aug 2022, 09:28 It will first record it into RTC to make sure there is a large enough chunk of data to write to flash.
The reason it is put in RTC first is to make sure no data gets lost in cache of a crash or warm reboot.
There is a .htm file in the source tree (dump6.htm I think it is named) which you need to upload to the filesystem too.
When opening this file (loaded from the ESPs filesystem in a new tab for example), it will fetch the .bin files and decode them in JavaScript and then generate a .CSV file from it to analyze in just any spreadsheet program.
It seem be exactly what I want...
Re: Recording datas into internal memory
Hello guys,
I've just downloaded the latest build :
https://github.com/letscontrolit/ESPEas ... a-20220809
and unzipped it...
We are ok, that I should use this binary file, for my Wemos D1 Mini (ESP8266) ?
I've just downloaded the latest build :
https://github.com/letscontrolit/ESPEas ... a-20220809
and unzipped it...
We are ok, that I should use this binary file, for my Wemos D1 Mini (ESP8266) ?
Re: Recording datas into internal memory
You should install the same name of the .bin file you used before, except of course with the new date
So for a Wemos D1 mini that should be the correct one.
So for a Wemos D1 mini that should be the correct one.
/Ton (PayPal.me)
Re: Recording datas into internal memory
Thanks for you quick reply !
I'm not sure to remember witch I'm using actually, I think it's "ESP_Easy_mega_20210802_normal_ESP8266_4M1M.bin"...
But you told me, that Cache Controler is only on the custom build, so I believe I have to use the binary with "xxx_custom_xxx" on the name ???
I'm not sure to remember witch I'm using actually, I think it's "ESP_Easy_mega_20210802_normal_ESP8266_4M1M.bin"...
But you told me, that Cache Controler is only on the custom build, so I believe I have to use the binary with "xxx_custom_xxx" on the name ???
Re: Recording datas into internal memory
That's correct.
You can see the currently installed .bin file in the Info page (available from 'Main/More info' or 'Tools/Info') in the Firmware section.
'Custom' is currently the only ESP8266 build that has the Cache controller included.
Edit:
And as long as you keep the Flash/Filesystem config (4M1M) the same, you can install any build for the same processor (ESP8266, ESP32 or ESP32s2) and keep your current configuration. Though some builds might have a few more/different plugins or less features available.
When doing the upgrade via 'Tools/Update Firmware', usually from the computer, you can also select the .bin.gz file; the OTA feature knows how to handle this compressed file, and as it is smaller, it's a little quicker to upload
You can see the currently installed .bin file in the Info page (available from 'Main/More info' or 'Tools/Info') in the Firmware section.
'Custom' is currently the only ESP8266 build that has the Cache controller included.
Edit:
And as long as you keep the Flash/Filesystem config (4M1M) the same, you can install any build for the same processor (ESP8266, ESP32 or ESP32s2) and keep your current configuration. Though some builds might have a few more/different plugins or less features available.
When doing the upgrade via 'Tools/Update Firmware', usually from the computer, you can also select the .bin.gz file; the OTA feature knows how to handle this compressed file, and as it is smaller, it's a little quicker to upload
/Ton (PayPal.me)
Re: Recording datas into internal memory
Ok, many thanks for your help !
I will let you know if everything is working properly when I receive my sensor.
I will let you know if everything is working properly when I receive my sensor.
Re: Recording datas into internal memory
You can already start testing by using something like the system info plugin.
This generates samples like free memory, system load, etc. (whatever you select)
Then you can send the data from a task running the sysinfo plugin to send it to the "Cache Controller" and you can see how the data is being saved, how to process it, etc.
This generates samples like free memory, system load, etc. (whatever you select)
Then you can send the data from a task running the sysinfo plugin to send it to the "Cache Controller" and you can see how the data is being saved, how to process it, etc.
Re: Recording datas into internal memory
Hello,
Previously, my Wemos was configured with my home's wifi...
I have flashed it with custom firmware (I've flashed it with blank_4MB firmware before), and I'm trying to connect here at job, but I don"t see wifi SSID "espeasy_0", like original config...
How can I reset the Wemos to see ad-hoc access point ?
Thanks in advance !
Previously, my Wemos was configured with my home's wifi...
I have flashed it with custom firmware (I've flashed it with blank_4MB firmware before), and I'm trying to connect here at job, but I don"t see wifi SSID "espeasy_0", like original config...
How can I reset the Wemos to see ad-hoc access point ?
Thanks in advance !
Re: Recording datas into internal memory
The default AP should be ESP_Easy (unless you have made your own Custom build), but please keep in mind that after 5 minutes of inactivity, the AP is stopped. A reset/power cycle of the device should get it active again.
/Ton (PayPal.me)
Re: Recording datas into internal memory
Yes thanks, I manage to see ESP_easy wifi, but I can't connect my phone...
I'm trying with "espconfig" password, but no way !
I think I will try this evening at home with an another tablet...
I'm trying with "espconfig" password, but no way !
I think I will try this evening at home with an another tablet...
Re: Recording datas into internal memory
I think you switched the words in that password...
/Ton (PayPal.me)
Re: Recording datas into internal memory
you mean that the password is "configesp" ???
Re: Recording datas into internal memory
Yep, as it has been for ages
Re: Recording datas into internal memory
Where did you read this?
Re: Recording datas into internal memory
I don't remember exactly where, I read a lot of page about the wifi connection !
Re: Recording datas into internal memory
If it is anywhere on pages we manage, I will for sure remove this info.
Re: Recording datas into internal memory
Hello, some (bad) news : I can't connect to my Wemos by WiFi AP mode here at job, I thinks it's because we have a lot of differents Wifi SSID / channels, so Wemos Wifi seem to be inconstant...
Can you tell me how I can force AP Mode ?
Do you think I can send "WifiAPMode" serial command with Arduino IDE ?
Can you tell me how I can force AP Mode ?
Do you think I can send "WifiAPMode" serial command with Arduino IDE ?
Re: Recording datas into internal memory
Yes, that's one of the possibilities.
You can also watch what is logged during boot (hint: reboot command), to see what is going on while trying to connect to WiFi, and you can also force a specific SSID using the "WiFiSSID,{SSID}" and "WiFiKey,{ssid-key}" commands, and then the "Connect" command to start the connection.
You need to enter those commands blind (or enable input echo in your terminal), and can't correct typos!
After that succeeds, you should be able to see the IP address assigned to the ESP unit, so you can use the web UI.
/Ton (PayPal.me)
Re: Recording datas into internal memory
Thanks for your quick reply !
The pb is, I don't have authorization to use WiFi Network at job, I can only connect to Wemos in AP mode with my tablet or my phone...
So It's because I want to force AP mode only, to be sure Wemos won't be disturb by other WiFi networks....
I will try this tomorrow...
The pb is, I don't have authorization to use WiFi Network at job, I can only connect to Wemos in AP mode with my tablet or my phone...
So It's because I want to force AP mode only, to be sure Wemos won't be disturb by other WiFi networks....
I will try this tomorrow...
Re: Recording datas into internal memory
One quick work-around is that you can setup your phone as a mobile hotspot.
Just set the credentials you programmed into ESPEasy as the settings for your hotspot and then ESPEasy will probably connect to your phone as that's then the strongest signal.
Then you need to figure out what IP-address the ESP received from your phone.
For this I use the "LAN scan" option in an app called Network Analyzer I have on my phone. (a truly must have app, I have the pro version and use it very often)
This way you can acces your ESPEasy node from a browser on your phone.
If you are running a build which has "mDNS" included, then you can also access it via the ESPEasy name with ".local" appended to the name.
This name is shown at the root page on the ESPEasy device.
Just set the credentials you programmed into ESPEasy as the settings for your hotspot and then ESPEasy will probably connect to your phone as that's then the strongest signal.
Then you need to figure out what IP-address the ESP received from your phone.
For this I use the "LAN scan" option in an app called Network Analyzer I have on my phone. (a truly must have app, I have the pro version and use it very often)
This way you can acces your ESPEasy node from a browser on your phone.
If you are running a build which has "mDNS" included, then you can also access it via the ESPEasy name with ".local" appended to the name.
This name is shown at the root page on the ESPEasy device.
Re: Recording datas into internal memory
Hello, I have a pb to send command to Wemos with Arduino IDE...
I'm correctly receiving message from Wemos, but command I send seem not to be received by Wemos (example below with "DateTime" command) :
[Edit] Ok, that's working fine, I didnt' see that I have to put Crtl+Enter to send command !!! Sorry for the mistake...
I'm correctly receiving message from Wemos, but command I send seem not to be received by Wemos (example below with "DateTime" command) :
[Edit] Ok, that's working fine, I didnt' see that I have to put Crtl+Enter to send command !!! Sorry for the mistake...
Re: Recording datas into internal memory
Regarding the list of commands on this page :
https://espeasy.readthedocs.io/en/lates ... mmand.html
I don't see a GPIO command to read analog input on A0 pin, isn't possible ???
https://espeasy.readthedocs.io/en/lates ... mmand.html
I don't see a GPIO command to read analog input on A0 pin, isn't possible ???
Re: Recording datas into internal memory
That's just one of the peculiarities of Arduino IDE...
We advise the use of VSCode with PlatformIO when working with/on ESPEasy (development), but you could even use the monitor command of the ESPEasy flasher, as long as your serial ports are recognized by that.
There is no direct command for that (AFAIK), but you can use the 'Analog input' plugin for that.
/Ton (PayPal.me)
Who is online
Users browsing this forum: No registered users and 0 guests