Skip to content

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

@JoLo33

Description

@JoLo33

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions