Skip to content

USB: SYST:MODE DMM from the Scope is lost when the port is closed right after it #177

Backlog

Description

@vvzvlad

One problem

  • This report describes one problem, or problems that are clearly related.

Device

ZT703S

Firmware version

0.21.19 with #148 (it adds the SCPI upload commands and block arguments, not mode switching)

Area

USB

Performance profile

200/100

Steps to reproduce

  1. The device is in the Scope, connected over USB (Linux, cdc_acm).
  2. Open the serial port, write SYST:MODE DMM\n and close the port at once:
    import serial
    p = serial.Serial(port, timeout=1)
    p.write(b'SYST:MODE DMM\n'); p.flush(); p.close()
  3. Open the port again and ask SYST:MODE?.

Expected behaviour

The device switches to the multimeter and reconnects, as it does when the port stays open.

Actual behaviour

The command is lost: no USB reconnect, SYST:MODE? answers SCOP, SYST:ERR? answers 0,"No error".

  • Port closed right after the write: lost 4 times out of 4, on this build and on a build with my other open PRs.
  • Port closed 1 s after the write: switched 4 times out of 4, USB back within 1 s.
  • The other way, SYST:MODE SCOPe from the multimeter with the port closed at once, switches: 16 out of 16.

Setup

Raspberry Pi 4, Linux 6.18 (Armbian), pyserial, the Pi's own USB 2.0 port (its built-in VIA Labs hub), no external hub.

Activity

  1. bve commented on Nov 26, 2026

    @bve
    Owner

    Thanks for the detailed report. This is a known problem: a SYST:MODE DMM sent from the Scope is lost when the port is closed right after it. I have not found a fix yet. Until then, keep the port open for about a second after the command, as in your test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions