Skip to content

center-3xx: request new data on response timeout - #302

Open
jakob-tsd wants to merge 1 commit into
sigrokproject:masterfrom
jakob-tsd:voltcraft-k204-fixes-no-ai-slop
Open

jakob-tsd wants to merge 1 commit into
sigrokproject:masterfrom
jakob-tsd:voltcraft-k204-fixes-no-ai-slop

Conversation

@jakob-tsd

Copy link
Copy Markdown

As stated before in #300 , the patch center-3xx: request new data on response timeout was written by a human (me), not AI.

So here's a new PR with just this commit.

If still not interesting I'll give up and stop bothering you.

Previously, acquisition would stall forever once a single reply
from the device was lost (RS232 momentarily disconnected,
device auto-power-off).

Now it recovers by itself as it should (tested on Linux with sigrok-cli:

./sigrok-cli -d voltcraft-k204:conn=/dev/serial/by-id/usb-ftdi_test_ftE0SRPM-if00-port0 --continuous --channels T1
make  all-am
T1: 25.2 °C
T1: 25.2 °C
T1: 25.2 °C
T1: 25.2 °C
T1: 25.2 °C
T1: 25.2 °C

*** disconnect rs232 ***

sr: center-3xx: timeout waiting for data
sr: center-3xx: timeout waiting for data
sr: center-3xx: timeout waiting for data
sr: center-3xx: timeout waiting for data
sr: center-3xx: timeout waiting for data

*** reconnect rs232 ***

T1: 25.2 °C
T1: 25.2 °C
T1: 25.2 °C
T1: 25.2 °C
T1: 25.2 °C
T1: 25.2 °C
T1: 25.2 °C
T1: 25.2 °C

*** disconnect usb-rs232 adapter

sr: center-3xx: serial port error 0x19
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