Skip to content

Comments

Support for TENMA 72-2540 v5.8#2

Open
comkieffer wants to merge 3 commits intoattie:masterfrom
comkieffer:master
Open

Support for TENMA 72-2540 v5.8#2
comkieffer wants to merge 3 commits intoattie:masterfrom
comkieffer:master

Conversation

@comkieffer
Copy link

Closes #1

Adds support for devices with more complex responses to get_identity.

  • Make the logic for is_tested use regular expressions to parse the response to get_identity
  • Add get_serial_number to return the serial number (if it could be captured)
  • Add --identify flag to cli to return the serial number

This has been tested on the power supply I have. It should work on others, but I cannot test them.

Thibaud Chupin added 3 commits December 4, 2024 12:14
Newer TENMA devices add the serial number to the identity string. This
makes the previous string checks insufficient. Instead, we use a regex
to match the fixed parts of the string.
Given that some devices return their serial number as part of their
response to `get_identity`, we can now return the serial number for some
these devices.
This flag reports the identity of the connected power supply and the
serial number (if available).
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.

Support for TENMA 72-2540 v5.8

1 participant