paulvha / ThingMagic

Encoding and Decoding of many different types of EPC according to the EPC tag data standard 1.9 for RFID tags, written in C
GNU General Public License v3.0
24 stars 7 forks source link

RESPONSE_IS_KEEPALIVE #8

Closed attreewr closed 2 years ago

attreewr commented 2 years ago

Hi, on your example 1, Constant_Read, as compared to using the original library from Sparkfun, the code does not output the keep alive 'Scanning'. _if (responseType == RESPONSE_ISKEEPALIVE) { Serial.println(F("Scanning")); } I have used the Keep alive as a point to look at when to get the TagReadtime off set from. Thanks for the great addtions to the original library.

paulvha commented 2 years ago

Thanks for your comment

I have checked the relevant part of the Example1 code but I do not see a difference. What do you experience ? Does the original exampe1 code work and show scanning and "my" example1 code does not ? Let me know I will try to find time to test later this week, but would be good to know the problem. regards Paul

attreewr commented 2 years ago

HI, Yes exactly. Original shows scanning, yours doesn’t.

if (responseType == RESPONSE_IS_KEEPALIVE) { // Serial.println(F("Scanning")); CurrMillis = now(); // ** Assign a time to the KEEPALIVE … } Then when tag is read, getTagTimestamp add that value to the above to the exact REAL time was read.

I maybe using incorrectly but wanted to know when the Keepalive was triggered.

I need to assign an actual Time when the tag was read, the getTagTimestamp returns the time from the last KEEPALIVE, so if I don’t know when KEPALIVE happened, I can add that time to the getTagTimestamp

Thanks

From: paulvha @.> Sent: Monday, 17 January 2022 11:11 AM To: paulvha/ThingMagic @.> Cc: Warwick Attree (WR) @.>; Author @.> Subject: Re: [paulvha/ThingMagic] RESPONSE_IS_KEEPALIVE (Issue #8)

Thanks for your comment

I have checked the relevant part of the Example1 code but I do not see a difference. What do you experience ? Does the original exampe1 code work and show scanning and "my" example1 code does not ? Let me know I will try to find time to test later this week, but would be good to know the problem. regards Paul

— Reply to this email directly, view it on GitHubhttps://github.com/paulvha/ThingMagic/issues/8#issuecomment-1014293785, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABB5M2P44JXYADU3V5KU2VDUWPMKPANCNFSM5MDFIWCA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.**@.>>

paulvha commented 2 years ago

found the bug in the library and it is fixed in the new version just uploaded Thanks for pointing it out. regards, Paul

attreewr commented 2 years ago

Thanks VERY much.

From: paulvha @.> Sent: Monday, 17 January 2022 4:57 PM To: paulvha/ThingMagic @.> Cc: Warwick Attree (WR) @.>; Author @.> Subject: Re: [paulvha/ThingMagic] RESPONSE_IS_KEEPALIVE (Issue #8)

found the bug in the library and it is fixed in the new version just uploaded Thanks for pointing it out. regards, Paul

— Reply to this email directly, view it on GitHubhttps://github.com/paulvha/ThingMagic/issues/8#issuecomment-1014628831, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABB5M2MRGHUSWJON2RYG6VLUWQU4RANCNFSM5MDFIWCA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.**@.>>