Skip to content

command line tool: ValueError when trying to download from a remote device during an ongoing measurement

Got a ValueError when trying to download from a remote device during an ongoing measurement.

Setup

Two active devices e.g. 5 and 6. Device 6 is accessible via /dev/ttyUSB3. There is an ongoing measurement session in which both devices are involved. In this situation, the device 5 cannot be accessed remotely. The request should hence result in an error message. Instead, a ValueError is thrown.

Reproduce

Try to download measurement data remotely from device 5 via device 6.

rss2i -p /dev/ttyUSB3 download -f ... -d 5

Actual Result

[6]
rss2i: Device 6 --over-the-air--> device 5
rss2i: Disconnecting devices...ok
Traceback (most recent call last):
  File "/home/gerrit/bin/rss2i", line 2414, in <module>
    main()
  File "/home/gerrit/bin/rss2i", line 2397, in main
    args.func(args)
  File "/home/gerrit/bin/rss2i", line 687, in download
    _handle_results([result])
  File "/home/gerrit/bin/rss2i", line 692, in _handle_results
    success, devID, errorArgs = result
ValueError: not enough values to unpack (expected 3, got 2)

Expected Result

[6]
rss2i: Device 6 --over-the-air--> device 5
rss2i: ...@...: ERR_CONTROL_MODE_REQUIRED: device 5 requires entering control mode to be accessed
rss2i: Disconnecting devices...ok