xlyric / PV-discharge-Dimmer-AC-Dimmer-KIT-Robotdyn

New model of Wifi Dimmer for distant charge of PV routing, based on multi SSR (Zc, Random) or Robotdyn, and ESP8266 Wi-Fi D1 Mini
Other
19 stars 14 forks source link

Not work littlefs in ESP32 #13

Closed first-leon closed 11 months ago

first-leon commented 11 months ago

Hello. I flash ESP32 firmware. Download and flash https://ota.apper-solaire.org/firmware/littlefs-dimmer.bin. Screenshot_20230722_213544

Reboot device, after i go http://IP and see: Screenshot_20230722_213655

I flash last version fimware (commit c52445833cbea1cb377228e219172822a69911e0)

And i check it on esp8266 (standAlone). And it is work on esp8266

PS. I add ESP32-ETH (WT32-ETH01) profile. But i want check, how it work before create pull request (https://www.aliexpress.com/item/1005004432624600.html).

https://github.com/first-leon/PV-discharge-Dimmer-AC-Dimmer-KIT-Robotdyn/commit/0269ece6605c7691c5d14caa4e251fd9fafdcb9a

xlyric commented 11 months ago

Hi Vladimir,

with the ESP32, you must use this firmware for filesystem : https://ota.apper-solaire.org/firmware/spiffs-dimmer.bin

it's not the same filesystem between ESP32 and ESP8266 .

other things, I have lot of issues with ESP32, and everybody use ESP8266 ( it's work perfect and cheaper )

first-leon commented 11 months ago

Hello Cyril. It doesn't work for me anyway. For the test, i use ESP32_Devkitc_v4 (https://ae04.alicdn.com/kf/S8b5d4d064263470b979971c8b09dacaaC.jpg) board and use the repository version c52445833cbea1cb377228e219172822a69911e0 (last commit in master). I tried to upload a file https://ota.apper-solaire.org/firmware/spiffs-dimmer.bin but it doesn't work. I also tried using the build target "Upload Filesystem Image" over USB and it doesn't work either :( Where i go to http://IP/, in serial log:

IP address: 10.9.7.84
10.9.7.1
start server
start 18b20
Dallas not connected
06:41:08
0
[ 12758][E][vfs_api.cpp:24] open(): File system is not mounted

"ESP8266 ( it's work perfect and cheaper )" - I agree with you. But I want to have a board that works not over wi-fi, but over ethernet. This board is also great: WT32-ETH01 (although more expensive).

xlyric commented 11 months ago

Ok, I know why it's not working, ( I think ) it's use the same { "path": "firmware/partitions.bin", "offset": 32768 }, { "path": "firmware/boot_app0.bin", "offset": 57344 },

between dimmer and router and I made a partition modification on router. I'm on holidays, you need to use VS code and compile all. I will make the modification when I'm back

edit: I try and I think I have more work , with new ESP32 and VS : [ 1063][E][vfs_api.cpp:24] open(): File system is not mounted Failed to read configuration file, using default configuration Saving configuration...

I will make the correction soon ( when i'm back )

xlyric commented 11 months ago

spiffs.zip I think I have found, try this 1 line is missing in plateformIO.ini board_build.filesystem = spiffs

xlyric commented 11 months ago

I can try, it's look good, -> https://ota.apper-solaire.org/ota.php -> ESP32 + Dimmer Robotdyn

first-leon commented 11 months ago

Great! I will check it tomorrow or the day after tomorrow on the ESP32_Devkitc_v4 board. Then I will check on the WT32-ETH01 board.

xlyric commented 11 months ago

ok, I will wait your feed back :D

first-leon commented 11 months ago

I checked ESP32_Devkitc_v . It works! I will check WT32-ETH01.

first-leon commented 11 months ago

Everything is working now. I'm closing the question.

xlyric commented 11 months ago

Ok cool, i will check your commit when i m back

Le jeu. 3 août 2023 à 04:24, Vladimir Malyutin @.***> a écrit :

Everything is working now. I'm closing the question.

— Reply to this email directly, view it on GitHub https://github.com/xlyric/PV-discharge-Dimmer-AC-Dimmer-KIT-Robotdyn/issues/13#issuecomment-1663202633, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABP6WB63HVVZIKXFALVGZW3XTMDWTANCNFSM6AAAAAA2T4BAT4 . You are receiving this because you commented.Message ID: <xlyric/PV-discharge-Dimmer-AC-Dimmer-KIT-Robotdyn/issues/13/1663202633@ github.com>