Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fw preset workarounds #18

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Fw preset workarounds #18

merged 3 commits into from
Dec 19, 2024

Conversation

jjcarrier
Copy link
Owner

@jjcarrier jjcarrier commented Dec 19, 2024

This resolves #17 , a potentially dangerous issue with either the AlientTek's DP100 DLL or their device FW v1.4.

However, this means there will be a limitation on using the CLI's --preset option while the device is in preset 0.

The following will not behave as a user may expect

vicon --preset 8
vicon --read-out

This will result in:

Set Preset: 8
[ OUT_PARAMS ]
  State          : OFF
  Preset         : 0
  Setpoint
    Voltage (mV) : 8000
    Current (mA) : 1000
    OVP (mV)     : 9000
    OCP (mA)     : 800

The observed behavior is:

  • Preset 8's voltage/current setpoints are loaded into the active output setpoint
  • The active preset remains in preset 0
  • The output state remains OFF

If it is desired for the preset value to actually change during the command the user must use the --on command.
However, a further stipulation here is that the --on command must be issued after setting --preset to a value between (inclusive) 1-9.

For example:

vicon --preset 8 --on
vicon --read-out

Once the device has left preset 0. The device behavior will follow a more logical behavior.

This PR also mitigates the issue with OCP false triggers, "sufficiently" closing #5.

Even if output is already off, if a fault is present call the API to
attempt to clear the fault.
DP100 v1.4 turns the output on when transitioning from preset 0 to another preset.
This is likely a bug since other preset transitions will turn the output off, which is a much
safer behavior for such a device to exhibit.

To emulate this behavior a workaround has been implemented where, the preset will not
be applied until the user requests that the output be turned on. This behavior should only
apply when in teh power-ON preset 0 state.
This change attempts to mitigate OCP faults when switching presets,
while keeping the loss of responsiveness to a minimum.
@jjcarrier jjcarrier added the bug Something isn't working label Dec 19, 2024
@jjcarrier jjcarrier merged commit 6538c27 into main Dec 19, 2024
1 check passed
@jjcarrier jjcarrier deleted the fw-preset-workarounds branch December 19, 2024 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CRITICAL: Issue regarding exiting "Preset 0"
1 participant