stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
419 stars 345 forks source link

Newer telestore code taking a long time to enumerate SD card with existing DATA directory with 900+ saved files #181

Open sn3ak opened 1 year ago

sn3ak commented 1 year ago

I was using a binary built from the freematics builder from around March of 2022. I was forced to change providers and needed to rebuild for a new apn. I had nothing but problems trying to get a new binary rebuilt, so I switched to the Telelogger ESP-IDF Project Package. 12232022 version.

I've successfully built a working binary, however it sits at SD:61025 MB total, 132 MB used for four plus minutes before moving onto: File: /DATA/947.CSV

Whereas the original binary processed it pretty much instantly. To confirm it is something with the new binary, I flashed the binary from March 2022 on the device and once again it started recording new data instantly.

If I flash the new binary, and eject the SD Card, or rename the DATA folder to DATA1, the logger starts reporting/recording almost instantly.