-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Problem RDM6300 RFID Token not deleted in Release mega-20200829 #3247
Comments
As far as I can remember, there has been a change in the RFid readers plugins to make sure the plugin would not trigger lots of events when the card was held over the reader. |
Maybe this ist the issue: Because this was changed: @@ -56,6 +56,17 @@ boolean Plugin_040(byte function, struct EventStruct *event, String& string)
break;
}
+ case PLUGIN_TIMER_IN:
+ {
+ if (Plugin_040_init) {
+ // Reset card id on timeout
+ UserVar[event->BaseVarIndex] = 0;
+ UserVar[event->BaseVarIndex + 1] = 0;
+ success = true;
+ }
+ break;
+ }
+
@@ -133,6 +160,7 @@ boolean Plugin_040(byte function, struct EventStruct *event, String& string)
log += key;
addLog(LOG_LEVEL_INFO, log);
sendData(event);
+ setPluginTaskTimer(500, event->TaskIndex, event->Par1);
}
}
success = true; Found it on the "old" issue |
OK, so it was forgotten on the P040 code, and only done on the other RFid plugins? |
@TD-er maybe it is already done in my other PR, will check it today |
Hmm, just looked through the code and it looks like |
It looks like I have made some error in the scheduler where I accidentally changed |
Would be nice if you could try this PR: #3249 |
sorry for the misunderstanding. |
Ähm How should i try? |
You could try this test build: |
Still same issue. ID not resetet to 0 after read. Build Time: Sep 7 2020 21:30:57 -->> from ESPEasy_ESP82xx_mega-20200829-27-PR_3249.zip 77161: WD : Uptime 1 ConnectFailures 0 FreeMem 19472 WiFiStatus WL_CONNECTED |
@uzi18 Can you maybe have a look at this one? |
[Scheduler] Fix PLUGIN_TIMER_IN not being called (#3247)
you catched this 👍 |
Well apparently the one that did test the test build claim it isn't solved (and I thought I removed the remark my PR would fix this issue)... |
BTW, quick test.... i used mega-20200829 made your changes from Merge pull request #3249 from TD-er/bugfix/plugin_timer_in to src/src/Helpers/Scheduler.cpp compiled new and it looks like its working again. Setting to 0 seems to be very fast, faster then before, but looks good. Will test tomorrow again and will give you feedback. Peter |
OK, glad it does seem to work. |
took a look again :-) and it still works....... Fix in src/Helpers/Scheduler.cpp works. only weird thing i had during compile with arduino.. i had to made changes to \src\Globals\NetworkState.h Thanks for your help and work..... |
That's already fixed a couple of days ago in the main Many ppl switched to VSCode or Atom with Platformio for development. Personally I think the Arduino IDE is quite outdated/clunky and library management is a bit 'messy', to give it a nice name. |
I know, but on this PC i had arduino installed and i know that this one works... :-D I normally use Atom (specially for HM devices) |
Glad to know the issue in the scheduler was causing this, as it may also have caused other -yet not reported- issues. |
Enviroment
ESP Wroom02 (Latest Release 20200829, went back to "stable" mega-20200721
RDM6300
As already in RDM6300 - Reading Interval of rfid token #2982, unfortunately in release mega-20200829 the value is not reset to "0" after reading an RFID card, as e.g. release mega-20200721 still does. So if the card is read several times in a row, the value always remains the same.
As I noticed, the error occurs now since release mega-20200812.
Releasw mega-20200721:
663860: WD : Uptime 11 ConnectFailures 0 FreeMem 17536 WiFiStatus WL_CONNECTED
669162: Command: Publish --> ID of Card send to Broker
669166: ACT : GPIO,12,1
669167: Command: GPIO
669168: SW : GPIO 12 Set to 1
669170: ACT : TaskValueSet,12,2,1
669172: Command: TaskValueSet
669176: ACT : Publish,ESP_RFID/RFID_OK/status,1
669178: Command: Publish
669195: ACT : TaskValueSet,10,1,1+1
669197: Command: TaskValueSet
669209: ACT : Publish,ESP_RFID/RFID_Zaehler/ok,2
669211: Command: Publish
669215: ACT : timerSet,2,2
669216: Command: timerSet
669646: RFID : Removed Tag
669739: EVENT: RFID#Tag=0 --> ID set to "0"
669819: ACT : TaskValueSet,12,4,0
669820: Command: TaskValueSet
669825: ACT : Publish,ESP_RFID/RFID/lesen,0
669826: Command: Publish
671547: SW : GPIO 12 Set to 0
671549: ACT : TaskValueSet,12,2,0
671550: Command: TaskValueSet
671555: ACT : Publish,ESP_RFID/RFID_OK/status,0
671556: Command: Publish
671560: ACT : GPIO,13,0
671561: Command: GPIO
671562: SW : GPIO 13 Set to 0
671564: ACT : TaskValueSet,12,3,0
671565: Command: TaskValueSet
671570: ACT : Publish,ESP_RFID/Fehler/status,0
671571: Command: Publish
671575: ACT : TaskValueSet,10,3,0
671576: Command: TaskValueSet
Newest Release mega-20200829:
Reading "new" Card. After that Reading same Card again:
226883: WD : Uptime 4 ConnectFailures 0 FreeMem 19112 WiFiStatus WL_CONNECTED
230185: ACT : GPIO,13,0
230187: SW : GPIO 13 Set to 0
230189: ACT : TaskValueSet,12,3,0
230192: ACT : GPIO,14,1
230194: SW : GPIO 14 Set to 1
230195: ACT : TaskValueSet,12,1,1
230200: ACT : Publish,ESP_RFID/RLS/status,1
230204: ACT : GPIO,12,1
230206: SW : GPIO 12 Set to 1
230207: ACT : TaskValueSet,12,2,1
230212: ACT : Publish,ESP_RFID/RFID_OK/status,1
230229: ACT : TaskValueSet,10,1,2+1
230243: ACT : Publish,ESP_RFID/RFID_Zaehler/ok,3
230249: ACT : timerSet,2,2
230628: EVENT: Clock#Time=Mon,11:51
232365: EVENT: rlsaus
232433: ACT : GPIO,14,0
232435: SW : GPIO 14 Set to 0
232437: ACT : TaskValueSet,12,1,0
232442: ACT : Publish,ESP_RFID/RLS/status,0
232446: ACT : GPIO,12,0
232448: SW : GPIO 12 Set to 0
232449: ACT : TaskValueSet,12,2,0
232454: ACT : Publish,ESP_RFID/RFID_OK/status,0
232459: ACT : GPIO,13,0
232460: SW : GPIO 13 Set to 0
232462: ACT : TaskValueSet,12,3,0
232467: ACT : Publish,ESP_RFID/Fehler/status,0
232471: ACT : TaskValueSet,10,3,0
236031: RFID : Old Tag: 1542526
236096: RFID : Old Tag: 1542526
236162: RFID : Old Tag: 1542526
236227: RFID : Old Tag: 1542526
236292: RFID : Old Tag: 1542526
236357: RFID : Old Tag: 1542526
236422: RFID : Old Tag: 1542526
236487: RFID : Old Tag: 1542526
But since now the ID is no longer set to 0 after reading, it is not recognized that the card is read again.
What I also noticed is that after mega-20200721 the GID Build is no longer in the overview but only an empty field.
The text was updated successfully, but these errors were encountered: