esprfid / esp-rfid

ESP8266 RFID (RC522, PN532, Wiegand, RDM6300) Access Control system featuring WebSocket, JSON, NTP Client, Javascript, SPIFFS
MIT License
1.38k stars 424 forks source link

Updating last stable 1.0. 4 to 1.3.3 or higher #406

Closed pol-henri closed 2 years ago

pol-henri commented 4 years ago

Someone can explain to me how to update esp-rfid to new firmware, actually I run on 1.0.4 and want to update to 1.3.3, so I use the upload button but esp-rfid still on 1.0.4 after reboot, there is another way to update? Thanks in advance

ingeninge commented 4 years ago

At least you should be able to flash it with esptools via serial link. I Don't know if you can backup your data from 1.0.4 and restore it in 1.3.3, but you better make the backups before trying. If it fails you can fall back to 1.0.4 Also consider to make a flash erase if simple overwriting with esptool fails.

nardev commented 4 years ago

@ingeninge can i get your email, or at least send me one at vedran@nardev.org i would like to pass you some message.

peteshoard commented 4 years ago

Problem seems to occur when you don't erase the flash ahead of the fresh push.

Tasmotizer (https://github.com/tasmota/tasmotizer) makes it nice and easy, but 'Flash.bat' in the utils works also

ingeninge commented 4 years ago

In Linux you can do: esptool.py --port /dev/ttyUSB0 erase_flash and flash with the new version.

pol-henri commented 4 years ago

thanks for your help

pol-henri commented 3 years ago

With Tasmotizer and the 1.3.3.bin file i try to update firmware , i use a TDI232 as UART serial connection , but a can't access to Esp , is a special thing to do ? here picture how i connect : https://ibb.co/w6RpNP7 https://ibb.co/jgR1kpF

thanks if you can help me on this

nardev commented 3 years ago

@pol-henri standard programming procedure as for any other ESP8266:

  1. Press and hold FLASH button
  2. Power Up the board or if it was already powered press RESET
  3. Release the FLASH button

The blue led on the ESP-12F module should not be blue at that point. The module should be ready for uploading the sketch.

pol-henri commented 3 years ago

thanks a lot i will try it 👍

pol-henri commented 3 years ago

back to trying, this time i use the right procedure , but again..can't access to the Esp , i use only the VCC , GND RX, and TX from "UART" connector , i try with easyesp too , same result, so on my new "BLUE" version i try the update via UI , and this time it work !?, so lucky i try to the older RFID "GREEN" and this time after trying ..6Times or more via UI.. it work!? perfect ! after all is what i want , now see if it solve the loosing connection MQTT after some day , i tell you

matjack1 commented 2 years ago

hey @pol-henri not sure if it's still interesting, but sometimes this can happen if you have the pins of the ESP connected to something while flashing. Try running the procedure again on the ESP alone, only connected to the PC via USB.

I'm closing this for now, but feel free to reopen if necessary.