Giter Site home page Giter Site logo

esprfid / esp-rfid Goto Github PK

View Code? Open in Web Editor NEW
1.3K 114.0 416.0 51.84 MB

ESP8266 RFID (RC522, PN532, Wiegand, RDM6300) Access Control system featuring WebSocket, JSON, NTP Client, Javascript, SPIFFS

License: MIT License

HTML 22.39% JavaScript 28.57% Batchfile 0.47% Python 0.40% C++ 48.17%
esp8266 mfrc522 rc522 rfid-rc522 rfid-doorlock-application rfid-reader websocket esp8266-rfid wiegand rfid-hardware

esp-rfid's People

Contributors

akarakn avatar arduino12 avatar djcysmic avatar donatmarko avatar ibobik avatar matjack1 avatar nardev avatar olika120 avatar omersiar avatar pako2 avatar thunderace avatar zeraien avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp-rfid's Issues

always loading web data from esp8266 ON MOBILE BROWSER

I set it in AP mode, and works well on PC web browser Chrome, eg: load user list, load log, load settings. But the web page always LOADING on my mobiel(iPhone 6S), either safari or chrome, it looks like something goes wrong on websocket, but I didn't diagnose it yet by any tools. Is it an already-known issue?

Adding buzzer

Hello,
ESP-RFID will be better if we add a buzzer attached to an GPIO and send short sound signals, on reading, giving access/deny access , powerup, ЕТC. I can offer my help for that. I got some (above) basic arduino programing experience, but i'm good at algorithm creation.

Support for MQTT?

Since now my setup is working flawlessly now, I do have the first feature request :-)
Could you imagine making MQTT message sending optionally available?
Here's my idea:
I would like to send the UID of a scanned RFID tag via MQTT to my broker which is a home-automation system. There I'd like to do some more actions, like turning on lights, starting to play music, etc.

This is is how I could imagine an implementation:

  • enhance the "setting page" with an additional form. The following fields are needed:
    • MQTT host containing an IP address.
    • MQTT topic which is a string like "my/special/topic"
    • MQTT user optionally
    • MQTT password optionally in case one is using a public MQTT server on the internet
  • As soon as the MQTT host variable is filled, the MQTT sending should be activated.
  • As soon as an RFID token is successfully scanned, the MQTT message should be sent to the configured broker using the configured topic
  • The most commonly used MQTT library is: arduino-mqtt and from the examples it seems to be quite easy to implement

This would really boost functionality.
Let me kwow what you think.
Thanks much

Last commit broke the user page...

Unfortunately, last commits broke the user page. It just stops at a message:

"You can add new users by either scanning a RFID Tag or by clicking on "New User" button."

And there is no add button to be shown etc..

please check, i have Wiegand version waiting for that. It's tested, works fine.. but this is confusing :(

Sync data with a remote MySQL database

Hi.
Please include syncronization with a remote MySQL.
This way the log file, which is JSON, might also stored to a MySQL database for security purposes and/or backup.
This way the system can be used as an attendance logger.
Thanks

No UID Scan

Hello, i have flashed a nodemcu but on the user page i can't see any scanned UID cards.

Issue on OSX Sierra

I have a problem with websocket on OSX Sierra!
" the message sent directly in websock.onopen doesent work , if you try by console it work"

Ivan

Question?

Did you test the log size and efficiency with a lot of users/cards in the file? How did it behave?

p.s. I plan to make wiegand version and slightly different code structure, is there a way to contact you other than this messages?

'class ESP8266WiFiClass' has no member named 'scanNetworksAsync'

Hi there

when i try to compile the code i get the below error. i have esp2866 2.3.0.rc3 installed and i still get this error.

Arduino: 1.8.2 (Windows 10), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, 115200, 4M (3M SPIFFS)"

Build options changed, rebuilding all
C:\Users\Jem\Documents\Arduino\esp-rfid-master\esp-rfid\esp-rfid.ino: In function 'void onWsEvent(AsyncWebSocket*, AsyncWebSocketClient*, AwsEventType, void*, uint8_t*, size_t)':

esp-rfid:272: error: 'class ESP8266WiFiClass' has no member named 'scanNetworksAsync'

     WiFi.scanNetworksAsync(printScanResult);

          ^

exit status 1
'class ESP8266WiFiClass' has no member named 'scanNetworksAsync'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

all in one HTML/JS/CSS files

done

in the "all_in_one_html" branch.
Need some work/test for backup and restore.

  • test settings backup and restore
  • investigate some esp8266 crashes
  • fix user acces type bug on new user (always displayed as disabled')
  • fix user 'valid until' format on user edit
  • fix scan detection (web part)
  • fix add user replace the first line in table (sometimes)
  • expand the log table width to the parent

Flash compiledbin error

Hey i try to flash the compiledbin (stable and embedded-html) with windows flash.bat

After connect to 192.168.4.1 it open a site with "Not found"

What am i doing wrong

what would be the ideal way to communicate with a notify/mgmt server

Assuming communicating with a remote server is an option, in case its considered I have the following proof of concept that I run to see the time it takes between communication and test different scenarios.

This is purely to initiate discussion and not meant to be a polished integration;
Question/points it raises;

  • if httpclient is the right approach, or websocket based, async is the way to go for posting to remote server.

  • SSL seems possible by declaring the ca certificate at the top (untrusted but works), which can also be added (trusted) via settings in the future.

  • would it be possible to enforce 2 person entry; i.e. a UID needs to be scanned with another (paired) UID to grant access. Perhaps within 10 second time window. UID x is stored with pair field as the other UID y - thats how perhaps we can handle it simply, if pair exists wait for pair to be scanned.

  • it makes more sense to pass JSON to server, rather than querystring it seems. Im learning as I go along so any input are welcome.

#include <ESP8266HTTPClient.h>

String notifyserver="192.168.1.2";
String handler="/mgmt/index.php?";
String deviceid="MainDoor";
String hquery= "http://"+ notifyserver + handler + "device="+ deviceid + "&uid=";
// should pass the deviceid, uid, timestamp in JSON ideally, not in querystring.

void pingMgmtServer()
{

  HTTPClient http;
 Serial.print("[HTTP] begin...\n");
 http.begin(hquery);
 //if we want to do it with HTTPS, need ca certificate defined above
 //  http.begin("https://notifyserver/handler/?", ca); //HTTPS 
        
        Serial.print("[HTTP] GET...\n");
        // start connection and send HTTP header
        int httpCode = http.GET();
        
String payload="";

        // httpCode will be negative on error
        if(httpCode > 0) {
            // HTTP header has been send and Server response header has been handled
            Serial.printf("[HTTP] GET... code: %d\n", httpCode);

            // file found at server
            if(httpCode == HTTP_CODE_OK) {
                 payload = http.getString();
                Serial.println(payload);
              
            }
            
             
                
        } else {
            Serial.printf("[HTTP] GET... failed, error: %s\n", http.errorToString(httpCode).c_str());
        }

        http.end();

 switch (payload) {
    case "logged":    // logged in server/db
      Serial.println("logged record.");
      break;
    case "removed":    // indicates uid access right is removed
      Serial.println("the uid has been removed, do we do something?");
      break;
    case "added":    // n/a
      Serial.println("add not implemented");
      break;
    case "twokey":    // this uid needs another uid to be scanned before/after; i.e. 2person presense entry
      // perhaps the paired (second) uid can be send by server to client within the payload.
      Serial.println("this card needs the 2nd pair to be tapped to allow entry");
      break;
  }

       

}

Can not retreive logs anymore

Since a couple of days I can not retreive the logs anymore. The page simply says "please wait while fetching data". But nothing happens.

It seems, that there is no possibility to do a hard reset. I reflashed the firmware remotely with the upload feature or did power cycles. But no way...

The problem is, that I have put the whole stuff into a housing and mounted it to the garage door. To do a factory reset or a similar feature would be a great help...

Thanks
Mustafa

Please wait while fetching data...

I've got this joining my wifi and initialising the MFRC522 — so far so good.

I'm stalled now on the web UI with it saying "Please wait while fetching data..." — which it never does.

I've tried re-uploading the SPIFFS a few times. No joy.

Thoughts?

(Ace project by the way! Hoping to use it on our new Makerspace and Men's Shed)

NodeMCU has encountered a problem

Thank you for your project When I give the NodeMCU brush into the firmware, log on 192.168.4.1, in the interface after the operation click the save button is not used, the serial monitor will keep the code in the loop
a little advice: you can add a device to the 1602 iic screen, GPIO16 and GPIO2 are free

  • [ INFO ] ESP RFID v0.2
    [ INFO ] Config file found
    {
    "command": "configfile",
    "bssid": 0,
    "ssid": "HZDY",
    "wmode": "1",
    "pswd": "19970727",
    "sspin": "15",
    "rfidgain": "32",
    "rpin": "4",
    "rtime": "",
    "ntpserver": "",
    "ntpinterval": "",
    "timezone": "-12",
    "hostnm": "",
    "adminpwd": "admin"
    }

Soft WDT reset

ctx: cont
sp: 3fff11f0 end: 3fff1500 offset: 01b0

stack>>>
3fff13a0: 00241001 00000001 3fff04e0 40106449
3fff13b0: 00000002 3fff00e4 3fff01a4 4020e0b7
3fff13c0: 402012fa 00000001 00000032 402012ef
3fff13d0: 00000020 00000010 3fff00e4 4020e229
3fff13e0: 00000001 0000000f 3fff00e4 4020e31d
3fff13f0: 00000020 00000000 3fff00e4 4020e33b
3fff1400: 00000000 0000000f 3fff3840 40207497
3fff1410: 00000001 3fff0414 3fff3840 4020a337
3fff1420: 3ffe9fb8 00000000 000003e8 40218d11
3fff1430: 3fff36bc 3fff36fc 3ffe8dd8 00000000
3fff1440: 3fff3834 00000200 4021907d 3fff145c
3fff1450: 00100000 3fff1448 00000119 3fff0414
3fff1460: 00000220 3fff3714 3fff0414 40216cfd
3fff1470: 3ffe8b6c 00000000 3fff0414 3fff04d4
3fff1480: 3fff1524 3fff2898 3fff2894 40218d5b
3fff1490: 3fffdad0 00000000 3fff0414 3fff04d4
3fff14a0: 3fff1524 00000000 3fff0414 4020a5ac
3fff14b0: feefeffe feefeffe feefeffe feefeffe
3fff14c0: feefeffe feefeffe feefeffe feefeffe
3fff14d0: feefeffe feefeffe feefeffe feefeffe
3fff14e0: 3fffdad0 00000000 3fff04cd 40218164
3fff14f0: feefeffe feefeffe 3fff04e0 4010070c
<<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
vf6d232f1
~ld

nodemcu pin

thanks for sharing this! its the first sketch i tried on nodemcu esp8266 and very intrigued with whats possible!

im using the nodemcu (amica) from https://www.banggood.com/NodeMcu-Lua-WIFI-Internet-Things-Development-Board-Based-ESP8266-CP2102-Wireless-Module-p-1097112.html?rmmds=search

i noticed the pin connection comments at top of source code, sda D2 & RST D1 , and later in the code different pins selected referring to ''wemos d1 mini''
// Configure RC522 Device Pins on
#define SS_PIN D8 //Pin on WeMos D1 Mini
#define RST_PIN D3 //Pin on WeMos D1 Mini

Are you testing this on WeMos D1 Mini, and if yes which version would that be?

Support for multiple readers, enter and exit

While reading through the mfrc lib issue discussions as well as trying out various mfrc522 examples I noticed many utilizing the SS pin to support multiple mfrc522 readers connected to the same mcu.

In a typical setting, say for a door, an entry and exit readers would be the most common.

So my question is would you consider adding support for (at least) 2 mfrc522 readers where they can be initialized by SS pin individually

mfrc522.PCD_Init(enter);
mfrc522.PCD_Init(exit);

but work in the existing logic, with perhaps sending the id (enter/exit) of the read to JSON (sendDataWs)

With such one could send the json to a remote .php to make a simple access control of entry and exits with timestamps and deviceid. Understand the current logic sends to the websocket for its IP, but the modular approach enables such neat integration - from my limited understanding.

Would like to hear your thoughts on this.

Future plans/thoughts....

As i pushed Wiegand support, i realized the code structure so.. i realize we could improve it for everyone's good.

Honestly, i would love to make many changes. What do you think about following:

  1. Automate combine & compress css, js and html pages? (i already have a method that i use, i can easily add this)

  2. Restructure the web page, more use of jquery, this approach is quite messy and bit later on, it will be hard to follow changes. The whole process of saving the settings and populating the form in settings page i can do in 10-20 lines of code with jquery, in a smart way.

  3. Extract functions for RFID readers and make auto build for each different reader, so that the code will be light and only what is required in one certain version.
    (This would be very easy if we move code to PlatformIO, just set platform.ini as we need it)

  4. Move to PlatformIO?

  5. I propose to have official hardware, and as i already mentioned, i have a version, which i can easily adjust so that it can accept all kinds of readers, have relay, door status input button for buzzer and input for some extra sensors like PIR sensor for silent alarm etc. (what do you think?)

Can't get this working correctly... Hopefully you can help!

Hi,

I'm a noob and trying to get this working. Can you confirm if the following board should work? https://www.amazon.co.uk/dp/B01N5D3MV8/ref=pe_3187911_185740111_TE_item

I am able to flash the board and log into the initial web interface but I see this in the serial monitor after the initial config and reboot:

[ INFO ] Trying to setup RFID Hardware
[ INFO ] RFID SS_PIN: 15 and Gain Factor: 32
[ INFO ] MFRC522 Version: 0x0 (unknown)
[ WARN ] Communication failure, check if MFRC522 properly connected
[ INFO ] ESP-RFID is running in AP Mode
[ INFO ] Configuring access point... Failed!
[ INFO ] AP IP address: 192.168.4.1
[ INFO ] AP SSID: test
[ INFO ] ESP-RFID is running in Fallback AP Mode
[ INFO ] Configuring access point... Ready
[ INFO ] AP IP address: 192.168.4.1
[ INFO ] AP SSID: ESP-RFID-1cc374

I only get this far if I pull the 3.3v lead during the boot sequence otherwise i get the known issue boot loop.

I have used this RC522 on another (more simple) project using an uno and it works fine (can scan cards and work a relay), so i'm not sure what the issue can be as it's even failing to setup the AP mode.

Also if I use client mode I am able to connect it to my network but for some reason NTP isn't working (even though I can see the correct DNS server is picked up by DHCP) and I have the same issue with the RC522 card reader.

Using Visual Studio Code with PlatformIO

I tried to run the latest arduino release on a previously working arduino install, which worked couple months ago, but kept getting esp board errors.

Taking that as an excuse, I have tried to download PlatformIO with Visual Studio Code and sharing my experience to get the latest branch to work on these combo;

Please note I have not used PlatformIO before and only seen the discussion on moving to this platform.
Therefore this might help others with similar upgrade path to get esp rfid running on platform io under windows 10 x64.

For Windows 10 x64;
Once you download the latest esprfid dev and create new project in VS Code PlatformIO, under platform.ini change the upload_port to COMx where x is your com port. It was assuming Linux in esprfid dev version - as of this message.
Also when tried to upload the compiled code it was giving error on downloading tool_mkspiffs

So I downloaded this manually via https://bintray.com/package/files/platformio/dl-packages/tool-mkspiffs
for windows, version 2, and manually moved under directory c:\users[username].platformio\packages\tool-mkspiffs

After which uploading the firmware was success. But the default build doesn't upload the spiff,
so I ran the command pio run --target uploadfs
which uploaded the spiff as expected.

This is much better than fiddling with arduino ide library and board manager. The difference is day and night.

One point though, when I tried to use the Serial monitor in platformIO VScode, like in Arduino IDE, default 9600 baud, setting the com port correctly i was getting gibberish and couldnt find how to change the baud rate or get the serial output to work. Likely missing something here.
If anyone knows how to get it to work please kindly share here.

Quick observations on the dev branch as of this message;
On mobile chrome on iOS, the rfid settings page changes were not being shown after save reboot.
I had to switch to desktop chrome to get this working.

In desktop chrome, i observed the console is giving errors for retrieving woff2 and ttf fallback fonts ;
`
(Slow network is detected. Fallback font will be used while loading: http://192.168.1.135/fonts/glyphicons-halflings-regular.woff2
required.js:21 GET http://192.168.1.135/fonts/glyphicons-halflings-regular.woff2 net::ERR_ABORTED
getViewportWidth @ required.js:21
getWidth @ required.js:21
calculate @ required.js:21
get @ required.js:21
(anonymous) @ required.js:21
(anonymous) @ required.js:2
i @ required.js:2
add @ required.js:2
(anonymous) @ required.js:2
each @ required.js:2
(anonymous) @ required.js:2
Deferred @ required.js:2
then @ required.js:2
init @ required.js:21
(anonymous) @ required.js:21
Deferred @ required.js:2
_execute @ required.js:21
execute @ required.js:21
(anonymous) @ required.js:21
(anonymous) @ required.js:2
i @ required.js:2
add @ required.js:2
(anonymous) @ required.js:2
each @ required.js:2
(anonymous) @ required.js:2
Deferred @ required.js:2
then @ required.js:2
_init @ required.js:21
(anonymous) @ required.js:21
(anonymous) @ required.js:2
i @ required.js:2
add @ required.js:2
(anonymous) @ required.js:2
each @ required.js:2
(anonymous) @ required.js:2
Deferred @ required.js:2
then @ required.js:2
_construct @ required.js:21
(anonymous) @ required.js:23
(anonymous) @ required.js:21
construct @ required.js:21
k @ required.js:21
b.init @ required.js:21
(anonymous) @ users.js:42
i @ required.js:2
add @ required.js:2
n.fn.ready @ required.js:2
n.fn.init @ required.js:2
n @ required.js:2
initTable @ users.js:38
socketMessageListener @ users.js:275
users.htm:1 Slow network is detected. Fallback font will be used while loading: http://192.168.1.135/fonts/glyphicons-halflings-regular.woff
/fonts/glyphicons-halflings-regular.woff:1 GET http://192.168.1.135/fonts/glyphicons-halflings-regular.woff net::ERR_ABORTED
users.htm:1 Slow network is detected. Fallback font will be used while loading: http://192.168.1.135/fonts/glyphicons-halflings-regular.ttf
/fonts/glyphicons-halflings-regular.ttf:1 GET http://192.168.1.135/fonts/glyphicons-halflings-regular.ttf net::ERR_ABORTED)

`

SPIFFS.begin(); Twice

This is my first time working with SPIFFS and my first time submitting an issue so please forgive me if I misunderstand something but you seam to run " SPIFFS.begin();" twice in your code.

I really enjoy this project, keep up the good work!

In case of interrupt, log can be damaged.

I have one client which was not able to retrieve log. When i downloaded the latestlof json file, i noticed that the log file was actually interrupted so the format was damaged.

If possible, please others test this case.. once the card is swiped and reader is interrupted, does anything wrong happen.

I hope i'm wrong.

ESP-IO

Hi Omer!
I want to thank you for this project. I'm a newcomer to ESP8266 and I was looking for how I should start. Your project was perfectly suited to my needs and I used almost everything.
You can see the result here: ESP-IO

Note:
I have solved (at least for my needs) two security holes:

  1. Entering the editor is password protected. I do not suppose that it is necessary to open the editor if the device works in "Fallback to AP Mode".
  2. (Direct) access via the websocket is also password protected. This is more or less a "scam". If a JavaScript is triggered (and this happens only if the user enters the admin password), it first opens EventSource. The server will reply to this opening by sending a password. Websocket communications can then be started by asking for a password (from the server side). So if I want to open directly websocket (for example, using Eventghost) then I need to know the password. Otherwise, the server will disconnect me.
    However, I'm aware that this is just a minimal protection and it can not be used where real system attacks can be.

Thanks again for your project!

Pako

Not an issue but an implementation

Not an issue but I've been working on my own RFID system and i thought lets merge these projects. So heres some code to implement a timing system

The timing system makes it available so someone can select times for each day to allow someone to enter.
capture

I'm still working on converting my logging system to this project. Feel free to ask questions

Code is in attached zip file

RFID_ESP.zip

Edit:
Also it might be handy to use Gitt to improve communication around your projects

v0.4 Goals

  • Timed Entry
  • Valid Until
  • Add support for active low relays
  • Improve User Data restoring
  • Load page AJAX

Latestspiffs for wiegand reader of last arduino release

Hello, I have a problem with the spiff files for the last arduino version.
The option for the wiegand reader is missing in the settings.
image

I am trying to use that wiegand reader. It has an ST microcontroller on it.
Does it work?

Thanks for the development.

BTW, when will the new bootstrap web interface be ready?

Julian.

Alternative reader?

2 questions is there a way to get esp to load settings if MFRC522 is not connected. (Haven’t arrived yet)
2nd any way of using ibuttons (onewire devices) instead of MFRC522

Can't build it...

I tried to build it, installed all required libs but i got this error.

src/main.cpp:317:14: error: 'class ESP8266WiFiClass' has no member named 'scanNetworksAsync'
WiFi.scanNetworksAsync(printScanResult, true);

Any idea what could be an issue?

p.s. Also after commenting that line:

lib/ESPAsyncWebServer/src/AsyncWebSocket.cpp:40:18: fatal error: Hash.h: No such file or directory
#include <Hash.h>

Any idea???

Doesn`t detect NFC of my Smartphones

Hi,

thank you for this cool project. Fits exactly to my needs. It's working successfully with my NFC Badge, Keyring and Stickers. But unfortunately it doesn`t work anymore with my Smartphones (Samsung S6 and Huawei P10 Lite). Whenever creating the user in the Settings (by holding the smartphone to the reader), it always generates a different ID with 7 digits. Each try seems to generate a unique ID.

When testing with the first compiled binary both smartphones worked. But after the last version (or before) it doesn`t work anymore.

Sending periodical when RFID is read

Is it possible to continue sending MQTT-Messages while a RDIF tag is placed on the reader? Or send a message when it is placed on the reader and another (different) message when it's removed? Function should be similar to a hotel card plugged in slot near the door.
The usage will be a smart home "switch" to send a MQTT message, when e.g. a NFC tag of a phone is placed on the reader to signal night mode.

data dir missing

scripts should prepare data dir for pio to know from where to upload the data to spiffs

read bus card

sorry yo open ticket for my question , however I've tried to read my bus card with typical DumpInfo.ino example , but I can only read the card UID and result is as per following , any advice to decode or read such card is really appreciated
``
Find new Card
Card UID: 2E 62 DF CE
PICC type: MIFARE 1KB
Sector Block 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 AccessBits
15 63 PCD_Authenticate() failed: Error in communication.
14 59 PCD_Authenticate() failed: Timeout in communication.
13 55 PCD_Authenticate() failed: Timeout in communication.
12 51 PCD_Authenticate() failed: Timeout in communication.
11 47 PCD_Authenticate() failed: Timeout in communication.
10 43 PCD_Authenticate() failed: Timeout in communication.
9 39 PCD_Authenticate() failed: Timeout in communication.
8 35 PCD_Authenticate() failed: Timeout in communication.
7 31 PCD_Authenticate() failed: Timeout in communication.
6 27 PCD_Authenticate() failed: Timeout in communication.
5 23 PCD_Authenticate() failed: Timeout in communication.
4 19 PCD_Authenticate() failed: Timeout in communication.
3 15 PCD_Authenticate() failed: Timeout in communication.
2 11 PCD_Authenticate() failed: Timeout in communication.
1 7 PCD_Authenticate() failed: Timeout in communication.
0 3 PCD_Authenticate() failed: Timeout in communication.

``

error "Filesystem full" when uploading SPIFFS.bin

Hey,
I'm using a Wemos D1 mini trying to install your great tool. I'm not sure if I'm doing something wrong or the storage on the wemos is simply too small.
I flashed the sketch and can properly connect to the wifi. But when flashing the SPIFFS via esp8266fs.jar I do receive the following error message:

[SPIFFS] data   : C:\Users\sebastian\Documents\Arduino\SPIFFS_upload\data
[SPIFFS] size   : 3052
[SPIFFS] page   : 256
[SPIFFS] block  : 8192
/latestspiffs.bin

SPIFFS_write error(-10001): File system is full.

error adding file!

SPIFFS Create Failed!

Do i have to clear the FS before attempting to re-flash SPIFFS? Or is the flash too small?
Thanks for your help

Embedded web files

Under the embedded-html branch you have the new esp-rfid version without FS (except for data storage of course).

With the big help from the ESP8266_WiFi_v2.x project. Thanks to them.

TODO :

  • Authentification
  • One htm file and one js file -> Cancelled, see the all_in_one_html branch
  • handle fonts (done but the firmware is very big now : perhaps decrease the SPIFFS size is needed)
  • Gzip required.* files -> FAILED
  • add fallback in case there are no java and internet access

@omersiar don't merge. and, after merge, don't delete this branch

v0.2

  • Get SSID, connect to BSSID
  • pseudo code for give access until specific date.
    `if (epoch <= validuntil) { grantaccess() }
  • fix status command in AP mode
  • add "available/used space on SPIFFS" to status

My mfrc522 does not seem to read the card

Hello, I am a novice learning esp8266, I follow the steps to connect the hardware, in the user interface in accordance with the format of the picture inside the card input UID, set the web page test button can be triggered, but the MFRC522 reader part did not respond
[ INFO ] ESP RFID v0.3alpha [ INFO ] Config file found { "command": "configfile", "bssid": "74:7D:24:36:C3:C2", "ssid": "junhao", "wmode": "0", "pswd": "10086520", "sspin": "15", "rfidgain": "96", "rtype": "0", "rpin": "4", "rtime": "300", "ntpserver": "pool.ntp.org", "ntpinterval": "30", "timezone": "8", "hostnm": "admin", "adminpwd": "admin" } [ INFO ] Trying to setup RFID Hardware [ INFO ] RFID SS_PIN: 15 and Gain Factor: 96 [ INFO ] MFRC522 Version: 0x92 = v2.0 [ INFO ] Trying to connect WiFi: junhao.... [ INFO ] Client IP address: 192.168.123.150

buzzer, button, localization

Hello! First of all thank you for the great project! I tried to use it as a door lock and I have a couple of questions: Is it possible to add a buzzer to make a sound when access allowed or denied and a button to unlock the door from inside for example and from settings page maybe? Is it possible to realize it for donation? :) From my side I can do localization in Polish and Russian language.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.