Skip to content

Auto detect TKey Castor#20

Merged
agren merged 5 commits intomainfrom
detect-tkey-castor
Jul 17, 2025
Merged

Auto detect TKey Castor#20
agren merged 5 commits intomainfrom
detect-tkey-castor

Conversation

@agren
Copy link
Member

@agren agren commented Jul 3, 2025

Description

As part of #19 this PR make DetectSerialPort() and GetSerialPorts() return USB devices that match the TKEY-USB-V2 VID/PID used in TKey Castor as well as the MTA-USB-V1 used in Bellatrix and earlier.

A list of UDI PIDs is added for client apps to use together with the output of GetUDI() to detect which TKey variant it is talking to.

Type of change

  • Feature (non breaking change which adds functionality)

Submission checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my changes
  • I have tested and verified my changes on target
  • My changes are well written and CI is passing
  • I have squashed my work to relevant commits and rebased on main for linear history
  • I have added a "Co-authored-by: x" if several people contributed, either pair programming or by squashing commits from different authors.
  • I have updated the documentation where relevant (readme, dev.tillitis.se etc.)
  • QEMU is updated to reflect changes

DetectSerialPort and GetSerialPorts will now return USB devices that
match the MTA-USB-V1 or TKEY-USB-V2 VID/PID
@agren agren requested review from jthornblad and mchack-work July 3, 2025 12:15
@agren agren marked this pull request as ready for review July 11, 2025 13:35
Useful for an app that need to know what type of product it is talking
to
@agren agren merged commit e03898a into main Jul 17, 2025
3 checks passed
@agren agren deleted the detect-tkey-castor branch July 17, 2025 09:15
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

Successfully merging this pull request may close these issues.

2 participants