-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels