esprfid / esp-rfid

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

How hard would be the ESP32 porting? #463

Open sinclairfr opened 2 years ago

sinclairfr commented 2 years ago

Hi guys,

I just broke my foot and I have a lot of time on my hand. I am a bit of a jack of all trades, I can code and have some electronics basics.

My guess is, since ESP8266 and ESP32 share a lot of features, the porting should not be so had, should it?

Of course, there will be pin remapping to do but apart from that, I have to confess nothing comes to mind.

Can any of you guys give me advice and/or clues in order to port this great project to ESP32?

Thanks!

AGordiGuerrero commented 2 years ago

I would also love to do it. But I do not know how to begin. Apart from "Start new project..." :-)

We can try it together if you want.

matjack1 commented 2 years ago

Hello @sinclairfr, I hope you are well by now :)

I think the porting to ESP32 is a long standing issue, which I've briefly looked into. I've recently upgraded ArduinoJson to the v6, which I think works better with ESP32, and I'm working to better handle WiFi connections, which I think is the main issue now to support ESP32.

So I think it could come out relatively easily once the WiFi changes are done. Meanwhile, something that would be useful is understanding what is not working on the ESP32 so that we can understand if we need to maintain both platforms, or if we can switch to libraries that can manage both platform for us. Maybe we find out that there are more areas to upgrade and the porting will be more difficult, but I don't know yet :)

I'm available in Gitter: https://gitter.im/esp-rfid/Lobby if you want to have a chat.

pvtex commented 2 months ago

I have made a port to ESP32 but only for Wiegand readers. it is running an the web UI is working. WIll connect a reader today and test it.

you can find it here: https://github.com/pvtex/esp32-rfid

pvtex commented 2 months ago

jut uploaded the first release for the esp32-rfid version 1.1.0 this is only for wiegand

https://github.com/pvtex/esp32-rfid/releases/tag/1.1.0

matjack1 commented 1 month ago

Thank you @pvtex for letting us know about that! I'm surely going to have a look and see if we can plan an ESP32 porting for the next version. Maybe this summer I will find some time to close V2 for real and then I can consider having a look at that, thank you!