Please note that a vendor bug affects the latest HMO3xxx firmware
(V6.005) so that the SCPI command SCPI_CMD_GET_DIG_POD_THRESHOLD
("POD<p>:THR?") wrongly returns "USER" instead of "USER1" !

This makes impossible to validate the response, so we just get the
string (i.e. we use sr_scpi_get_string() instead of
scope_state_get_array_option()), otherwise the device fails to open...

On Sun, 11/11/2018 at 22.47 +0100, Guido Trentalancia wrote:
> Update the Hameg/Rohde&Schwarz HMO driver (hameg-hmo) so that it
> is possible to configure the logic threshold for digital signals.
> 
> The user can get or set the logic threshold configuration using
> the channel group POD0 (and/or POD1 where available), for example:
> 
> sigrok-cli --driver hameg-hmo --get logic_threshold -g POD0
> sigrok-cli --driver hameg-hmo --config logic_threshold=TTL --set -g
> POD0
> 
> Signed-off-by: Guido Trentalancia <gu...@trentalancia.com>
> ---
>  include/libsigrok/libsigrok.h     |    5 ++-
>  src/hardware/hameg-hmo/api.c      |   52
> ++++++++++++++++++++++++++++++++++++--
>  src/hardware/hameg-hmo/protocol.c |   50
> ++++++++++++++++++++++++++++++++----
>  src/hardware/hameg-hmo/protocol.h |   14 +++++++++-
>  src/hwdriver.c                    |    2 +
>  src/scpi.h                        |    2 +
>  6 files changed, 116 insertions(+), 9 deletions(-)

[...]


_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to