Skip to content
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

Reset Token - Counter synchronization with counter value 0 is not working #9

Open
JoLo33 opened this issue Aug 24, 2022 · 3 comments
Open

Comments

@JoLo33
Copy link

JoLo33 commented Aug 24, 2022

Hey there,

in the general documentation is described that a reset token is a counter synchronization token with counter 0 and this token should be accepted all time.
When I try to use a reset token on a device with a counter 100 I get an old token feedback. I tried it with the c code implementation and also with the python scripts.

I used the example device key and starting code (123456789)
I generated a counter sync token with counter 100 - 397832788
I generated a counter sync token with counter 0 - 123456788

I used the python code and the device simulator like this:

device_simulator.enter_token('397832788')
device_simulator.print_status()

device_simulator.enter_token('123456788')
device_simulator.print_status()

And the output is:

TOKEN_VALID | Value: 999
UNKNOWN_COMMAND
Device:

Expiration Date: 2022-08-24 15:47:20.823061
Current count: 100
PAYG Enabled: True
Active: True

OLD_TOKEN
Device:

Expiration Date: 2022-08-24 15:47:20.823061
Current count: 100
PAYG Enabled: True
Active: True

Regards
Jonas

@benmod
Copy link
Member

benmod commented Oct 20, 2022

There is an issue in the documentation, it should read a sync token with counter of 1 and not 0, counter of 0 is not supported.

@JoLo33
Copy link
Author

JoLo33 commented Oct 20, 2022

Does it mean that the reset token function in general should be not supported? Or is a counter synchronization token with counter 1 the one which should be accepted all time as described in the documentation?

@benmod
Copy link
Member

benmod commented Oct 20, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants