I'd love to help but please provide an example with:
- The input you give to a command,
- The expected output,
- The give output,
- The clear data (PIN key and PIN).