dhylands / rshell

Remote Shell for MicroPython
MIT License
955 stars 137 forks source link

rsync is always seeing all the files as newer #133

Closed tionebrr closed 4 years ago

tionebrr commented 4 years ago

image I am missing something here. Does the ESP32 need to have an RTC for this to work?

tionebrr commented 4 years ago

Alright this is not happening all the time. I'm keeping this open and will post more info if I discover a pattern.

AltoRetrato commented 4 years ago

@tionebrr , what file system are you using? FAT or LittleFS?

tionebrr commented 4 years ago

@AltoRetrato , FAT.

scy commented 4 years ago

Edit: After reading the code, I’ve understood that „retrieving time epoch“ doesn’t retrieve the current time, but the epoch (i.e. the base time), so Jan 01 2000 is fine. Sorry for the noise.

My original comment follows:

I’m having a similar problem on my ESP32. However, when starting rshell, I’ve noticed that it does something like this:

Setting time ... Sep 05, 2020 00:46:22
Evaluating board_name ... pyboard
Retrieving time epoch ... Jan 01, 2000

So apparently the time is not set correctly, which of course will lead to all files on the board being from Jan 01 2000.

@tionebrr, does the same thing happen to you?

scy commented 4 years ago

Okay, my problem went away after upgrading to the new MicroPython 1.13 release. Before, I was using an 1.12-based nightly build from August in order to get uasyncio support. Looks like it had a somewhat incorrect filesystem implementation.

Since you didn’t tell us the version of MicroPython you were using, maybe you’re seeing the same effect.

tionebrr commented 4 years ago

Okay. I'm not using micropython these time so I think I'll close the issue. Thanks for the feedbacks @scy .