letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.23k stars 2.2k forks source link

[P008] on ESP32-C3 not receive correct data #5011

Open Meduzjam opened 3 months ago

Meduzjam commented 3 months ago

hi folks!

direct (no downshift) gpio 0 = w0 gpio 1 = w1 GND united

hikvision DS-K1101MK reader in mode 34 wiegand , uses mifare ultralight rfid, always receive 52 bit data (stable same but not correct key code)

image

Used platform (please complete the following information):

Platform Specifics (when applicable, please complete the following information):

Additional context

tonhuisman commented 3 months ago

a) This would have better gone into the Forum

b) Can you show the configuration of your ESPEasy Device/task?

Meduzjam commented 3 months ago

a) ok b) image

tonhuisman commented 3 months ago

Have you installed a level converter between the output of the reader and the inputs of the ESP? As ESP32 chips (all models) don't allow input signals over 3.3V, that will damage the input ports (not visible from the outside).

TD-er commented 3 months ago

There have been some issues in the past with this plugin, where bit/byte order was swapped compared to reading the same card using commercially available readers. Can you try the 'compatibility' mode and/or convert the read tag to HEX and see if there is some obvious bit/byte swapping in the read tag ID?

Meduzjam commented 3 months ago

tested with 2 differents levelshifter - get same result. in rpi4 this schema work fine. image

TD-er commented 3 months ago

Hmm that image contains transparency, which makes it impossible to understand when the browser is set to 'dark mode' Here without transparency image

TD-er commented 3 months ago

I don't have such a reader, so I can't test to see if it really differs on ESP32-C3 compared to others.

TD-er commented 3 months ago

Shouldn't the "HU" also be connected to 5V?

Meduzjam commented 3 months ago

Hmm that image contains transparency, which makes it impossible to understand when the browser is set to 'dark mode' Here without transparency image

thanks for the note, fixed it

Meduzjam commented 3 months ago

Shouldn't the "HU" also be connected to 5V?

I checked by supplying 5V to the HU and not supplying it - one hell of a deal

TD-er commented 3 months ago

Shouldn't the "HU" also be connected to 5V?

I checked by supplying 5V to the HU and not supplying it - one hell of a deal

Not sure what you try to say here.... Is it making a difference or was it a lot of effort and no change? (which I find odd as the level converter doesn't "convert" when the desired output 'high' level isn't set)

Meduzjam commented 3 months ago

tested with esphome (same wiring) - work fine!