-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RDM6300 fake readings #9522
Comments
You cant use Gpio1 and Gpio3 since the USB-Serial converter of the NodeMCU is already connected to. |
So I'm getting a bunch of serial data that the driver reads? And sometimes matches a valid 'card'? |
Just saying there are two devices sending data on the same GPIOs. Not a good idea. |
Btw, why are you not using the Tasmota RDM6300 driver? |
That is what I am using, like documented here, https://tasmota.github.io/docs/RDM6300/ |
I will do this and report back tomorrow. |
Now I see there is a RDM6300RX option when configuring the Template! |
Ahh, the docu is outdated. You could update :-) It is Open Source too. A PR is welcome! |
I've proposed the changes in the doc. |
Unfortunately I've changed the pin for the RDM6300 TX to GPIO5 and also used the 'native' driver.
|
@Jason2866 @ascillato2 Could someone please reopen this issue? |
I ordered some rdm6300 128khz today and will have a look what I find. In the meantime to rule out power supply issues you might want to try one device with only the rdm6300 connected and see what happens. In the end responses with all 0 can easily be removed from the list. |
Ok, I'll let only the reader connected and report back. |
It is not a good idea for bug hunting to connect other stuff. |
Ok, so I've let the config the same and connected just the RDM (The WS2812 and Buzzer are not connected).
|
Yes, only the RDM configured and connected. Every other Gpio to none and stuff disconnected |
Ok, so I've set the template to
|
Regarding the readings, the zeroes seem to be the most frequent errors, but just now 018C6000 popped up. |
Just a thought but I would think you use the received reading against a known database and act upon this. That way false responses are no issue as the chances are small they are one of your database records. I still have to receive my devices but considering the low low price I'm not expecting top quality of these devices. Another point is the possible data voltage conversion needed between the device 5V and the esp8266 3V3 power. |
@arendst indeed I read the cards against a database. Unfortunately I only send the cards and device ids to some other guy's ERP and let's just say he's not happy I'm the one implementing the readers solutions so he's giving me a hard time about any issue, especially fake readings. On the devices themselves, your expectations will be met :) They are indeed low quality and by the time I started the project could not find any better that were working on 125KHz. This week I've found some Seeed Studio readers that should be the same in terms of serial output but another beast in terms of hardware. I ordered a few of them so I'm also expecting them to see if the fake readings disappear. As for the 5V to 3.3 that might be something. Unfortunately I have no expertise when it gets to this low level stuff. |
Has it to be 125khz? The PN532 Rfid reader works very well and is supported from Tasmota. The Tags are cheap too. Edit: My RDM6300 didnt work without a 3.3 / 5V level shifter. In general i was not happy with. Bad recognize of Tags (no false). The PN532 is working nice.... |
Unfortunately they already have 2 125Khz readers(commercial ones) at the gates and already have the cards. |
@dbvcode since the RDM driver does a checksum test and rejects false telegrams it not possible that noise is responsible for your faulty readings. the reader itself must generate these errors. mine is working without any error. |
Thx Gemu. I now have the reader but had to order additional rfid tags (125kHz)... :-( |
Hi @gemu2015 I've supplied 5V to the RDM yes.
I did NOT use a resistor for the data line. By 1 to 5k you mean 1k to 5k or 1 Ohm?
So you're saying the readers are have are faulty.
Is it the Chinese one? (Not SeeedStudio RDM630) |
the readers a probably not faulty in principle but may get faulty if you do not apply the current limit resistor. it must be in the range of 1k to 5k yes i have a Chinese reader. (not seedStudio) |
Just put a 2.7K resistor there. I'll see what happens next. |
the RDM outputs 5V while the ESP works with 3.3V. when you apply 5 Volts to a 3.3V device the input protection diodes become active and current will flow into VCC of the ESP. |
Thanks for the explanation. |
Regarding the fake readings, even with the 2.7K resistor they still show up so I guess the readers are faulty. Must have had been a bad batch. Btw @gemu2015 what GPIO pin are you using for your RDM? |
you may use serial receive pin or any other suitable pin (depending on module) with your devices the hardware USB to serial converter already uses the serial pins. i would choose a software serial input e.g. GPIO 4 |
Thanks for the feedback and help everybody! |
I have to agree these readers are crap. I have the same issue as you have where valid ghost id are being reported:
So let's safely decide to use RDM630 instead. At least I now have the crappy RDM6300 too ;-) |
@arendst I am so glad I'm not the only one! :)) |
@arendst the issue seems to be somewhere else. |
As you cannot easily switch to differnet card types allowing the use of a PN532 based reader I'm out of ideas too. I bought a seeedstudio grove reader and it has the same fault; it kept on reporting 00000000 so the latest driver filters out all zeros as fake. As these all zeros are being read as valid data (it has a valid header and a valid tail) I'm afraid it's the reader that's at fault. |
Yes, the 00000000 is the most frequent fake number. Others pop up as well. |
I had fake reading with an wiegand reader. |
I've put the reader on the serial interface on the pc and I'm watching what it does... |
@arendst I've tried these tests:
What I'm trying right now: If any of the tests make sense to you I'd be very happy if you tried them yourself as something is fishy! Will post updates, |
So, with esp-rfid and the cheap RDM6300 reader the fake readings also pop up. |
Please close this issue since the problem is not Tasmota related. |
@arendst the SeeedStudio reader you have(if it's this one) also has a jumper to change from serial to Wiegand protocol. |
PROBLEM DESCRIPTION
I have created 8 devices based on the AZ Delivery Amica NodeMCU.
All have an RDM6300 card reader, a buzzer and a WS2812 LED. They are supposed to be card readers as their main function.
I am using the Tasmota RDM6300 driver as documented here, https://tasmota.github.io/docs/RDM6300/
They work as expected, but I also get fake card numbers in the readings.
Examples are:
000000078F88, 00F00000F000, F000060007F1, B59A99E5A9FA, 4FFB388FFFFC, DA9386B5EA90, DAEF6FEE2B9F
These readings are not actual cards, but 'fake' numbers. Strange part is they are VALID from the validation perspective and if I do an XOR taking the HEX numbers two by two(I play with this tool) i get something like:
000000078F88: 00 ^ 00 ^ 00 ^ 07 ^ 8F = 88
This makes the 'card' valid, but it's not real and the reader has never seen this card!
What could be the issues:
REQUESTED INFORMATION
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:(Please use
weblog 4
for more debug information)TO REPRODUCE
Can't exactly say. It happens randomly on all devices.
EXPECTED BEHAVIOUR
For the 'fake' readings not to appear at all.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
All the 8 devices output this fake readings and all 8 are almost identical(some have an inverted buzzer) but the RDM6300 side is the same.
These fake readings appear randomly and on some of the devices more often than the others.
The system has 181 registered cards and to give you an idea, since the start of the month 819 fake cards/readings have popped up.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: