librfid_main and anticollision
Martin Garben
martin at garben.net
Mon Oct 29 18:17:41 UTC 2007
Hi,
I used mifare_main and librfid_main for my standalone version of the reader.
But I have big trouble with two cards.
Layer2_open fails if I have two cards at the reader at the same time.
I use exactly the same coding for the standalone version as I did for
the host version, but at layer2_open the reader hangs up.
(after reader_open) First I do a
rfid_layer2_init(struct rfid_reader_handle *rh, unsigned int id)
successfully and then a
rfid_layer2_open(struct rfid_layer2_handle *ph)
This works perfectly hosted and standalone for one card.
Did anyone get this running before for two mifare-classic cards?
I dont know whats wrong, because the hosted version is running fine and
I dont have any problems - probably with the anticollision!?
This also leads to my second question: Is the watchdog sleeping? Even if
the reader hangs up and only a replug gets it running again, I have
activated the watchdog in main.c:
wdt_init();
(and ever loop in main a wdt_restart();)
Why is the watchdog not restarting the reader when layer2_open fails and
the reader is "hanging"?
Best regards, Martin
More information about the openpcd-devel
mailing list