esprfid / esp-rfid

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

Reboot after each successful access #312

Closed peteshoard closed 1 year ago

peteshoard commented 5 years ago

Device reboots following a successful authentication and lock activation

frenchie71 commented 5 years ago

@peteshoard , are you sure that the power supply of your board is stable ? I have seen many strange things happen due to voltage variations. If you are running this on a board connected to a USB interface this will definitely not be sufficient

frenchie71 commented 5 years ago

also, which branch are you testing against ? Are you using the dev branch or stable, e.g. a downloaded release ?

peteshoard commented 5 years ago

Testing against the pre-loaded release 1.0.3.

Currently powering the board off of a 12v LED transformer, think it runs 1a.

I haven't tried measuring the voltage during unlock with the lock connected, only before installation, everything seemed normal.

Will continue to test and report back, but seems pretty consistent.

nardev commented 5 years ago

@peteshoard what hardware do you use?

peteshoard commented 5 years ago

I'm using your OEM board, and a12v LED 0.5a power transformer. I have 2 setups and this issue is only happening on one so I'm going to check polarity.

On Thu, 12 Sep 2019, 18:03 nardev, notifications@github.com wrote:

@peteshoard https://github.com/peteshoard what hardware do you use?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/esprfid/esp-rfid/issues/312?email_source=notifications&email_token=ANBF4AKX2N3PRCXUKMLIQMDQJJY73A5CNFSM4IUKY7S2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6SSIFA#issuecomment-530916372, or mute the thread https://github.com/notifications/unsubscribe-auth/ANBF4AIIQJCMDFXDQC6VH43QJJY73ANCNFSM4IUKY7SQ .

arretx commented 5 years ago

Pete, did you come up with anything on this? I too am having the same issue and while I haven't tested any voltages yet, I suspect it may be the transformer? I'm using a Model: 12V-15W Waterproof LED power supply (AC100-265V in / DC12V 1.25A out) and then I believe there's a step-down embedded on the official ESP-RFID relay board. It reboots almost every time we access it which causes the momentary delay to last much longer than it should. Also on v1.3.1.

nardev commented 5 years ago

Guys, if that is the case, it could be board issue.

Please feel free to contact me directly. I'll do my best to fix that.

arretx commented 5 years ago

Update. I tested the power to the board. It comes in at 11.85V. When the relay is activated and the lock is magnetized, it drops to 11.75. The 12V feed is powering the relay board and the magnet, as well as a secondary motion control Wemos to trigger the lock via MQTT. The reboot issue existed prior to adding the Wemos D1 board to the same power feed.

nardev commented 5 years ago

Anyway, please email me. Lets have a chat to debug it. Maybe i would need to send replacement

peteshoard commented 5 years ago

I will test mine tomorrow and let you know the results, it's in a waterproof box outside and it's dark at the moment. The input shares a line with a light but that is upstream of the transformer, I suspect I will have similar results but will check and report back ASAP.

Pete

On Tue, 24 Sep 2019, 20:43 Jon Griffith, notifications@github.com wrote:

Update. I tested the power to the board. It comes in at 11.85V. When the relay is activated and the lock is magnetized, it drops to 11.75. The 12V feed is powering the relay board and the magnet, as well as a secondary motion control Wemos to trigger the lock via MQTT. The reboot issue existed prior to adding the Wemos D1 board to the same power feed.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/esprfid/esp-rfid/issues/312?email_source=notifications&email_token=ANBF4AJYM6AGMQPSORYU3ELQLJUU7A5CNFSM4IUKY7S2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7PSKSA#issuecomment-534717768, or mute the thread https://github.com/notifications/unsubscribe-auth/ANBF4APOV5PKHIDKXKCQC23QLJUU7ANCNFSM4IUKY7SQ .

peteshoard commented 5 years ago

Now Tested: I see minor differences in the voltage/amperage parameters the board that is functioning correctly/as expected has an input voltage of around 12.40v which drops to just below 12v momentarily as the lock is activated the amperage does not change significantly enough for my meter to measure 0.5a. The board that is recycling has an input voltage of 11.34v which drops to 11.05v momentarily on lock activation, amperage also does not change 0.5a.

I measured these voltages both at the input terminals on the board, the power terminals on the reader and the relay terminals/ground, apart from minimal differences in the constant voltages between the points tested (likely due to board consumption) I don't see anything significant enough to cause the board to recycle on unlocking, polarity is correct.

I'm, not 100% sure what the screw terminal adjustment is on my boards - does this control output voltage for the relay?

Pete

peteshoard commented 5 years ago

Any update on this one?

matjack1 commented 1 year ago

hey @peteshoard I'm sorry about your problem, but this issue is very old and apparently was hardware related.

I'm going to close this now, but if you are still interested or have problems, feel free to reopen.