Skip to content

Conversation

dooraim
Copy link

@dooraim dooraim commented Aug 25, 2025

This patch introduces a new power driver, TenmaSerial, providing control support for Tenma power devices. Integration includes:

  • Implementation of TenmaSerial in powerdriver.py
  • Exporter and remote client support for the new driver
  • Configuration documentation in configuration.rst
  • New unit tests added in test_tenmaserial.py
  • Minor updates to pyproject.toml and man pages

This initial draft enables basic functionality and lays the groundwork for full Tenma device intration

Description

This pull request aims to provide initial support for the Tenma power supply, which is controlled via USB. To accomplish this, we created the TenmaSerialDriver in labgrid/driver/powerdriver.py, as well as other necessary components. Our goal is to create an interface between the Tenma Serial Python package and Labgrid. We used the Tenma 72-2540 device and created the tests/test_tenmaserial.py test to check the functionality.

Checklist

  • Documentation for the feature
  • Tests for the feature
  • The arguments and description in doc/configuration.rst have been updated
  • PR has been tested
  • Man pages have been regenerated

This patch introduces a new power driver, TenmaSerial, providing
control support for Tenma power devices. Integration includes:

- Implementation of TenmaSerial in powerdriver.py
- Exporter and remote client support for the new driver
- Configuration documentation in configuration.rst
- New unit tests added in test_tenmaserial.py
- Minor updates to pyproject.toml and man pages

This initial draft enables basic functionality and lays the
groundwork for full Tenma device intration

Signed-off-by: Nico Orlando <[email protected]>
@dooraim dooraim force-pushed the feature/tenmaserial-driver branch from 4a51961 to 094fbc1 Compare August 27, 2025 06:28
Copy link

codecov bot commented Aug 27, 2025

Codecov Report

❌ Patch coverage is 56.79012% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.6%. Comparing base (ae2f2a5) to head (094fbc1).
⚠️ Report is 2 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
labgrid/driver/powerdriver.py 52.9% 24 Missing ⚠️
labgrid/resource/udev.py 54.5% 5 Missing ⚠️
labgrid/remote/client.py 0.0% 3 Missing ⚠️
labgrid/remote/exporter.py 75.0% 2 Missing ⚠️
labgrid/resource/suggest.py 0.0% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1717   +/-   ##
======================================
  Coverage    55.6%   55.6%           
======================================
  Files         172     172           
  Lines       13495   13575   +80     
======================================
+ Hits         7514    7560   +46     
- Misses       5981    6015   +34     
Flag Coverage Δ
3.10 55.6% <56.7%> (+<0.1%) ⬆️
3.11 55.6% <56.7%> (+<0.1%) ⬆️
3.12 55.6% <56.7%> (+<0.1%) ⬆️
3.13 55.6% <56.7%> (+<0.1%) ⬆️
3.9 55.7% <56.7%> (+<0.1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant