gillham / logic_analyzer

Implementation of a SUMP compatible logic analyzer for the Arduino
Other
463 stars 99 forks source link

Error flushing serial port on Windows #56

Open Sonic-Amiga opened 1 year ago

Sonic-Amiga commented 1 year ago

Capture doesn't seem to work. After i click "run" the button changes to "Stop" for a moment, then quickly changes to "run" again. sigrok log shows:

serial-libsp: Error flushing port (995): �������� �����/������ ���� �������� ��-�� ���������� ������ ������ ��� �� ������� ����������.. pv: Acquisition took 0.04 s

(error description is provided by the OS in russian, it's ok that it cannot be read)

The board is a local Nano clone, using CP210x .

Sonic-Amiga commented 1 year ago

Update: that was from last stable version from the download page. I downloaded nightly, and "Error flushing" is gone, but still doesn't work. It throws error 995 while reading data. I. e. capture starts, works for a moment, then stops with this error.

Sonic-Amiga commented 1 year ago

Log from nightly build:

sr: serial: Read 1/1 bytes. sr: openbench-logic-sniffer: Received byte 0x00. sr: openbench-logic-sniffer: Received sample 0x00. sr: openbench-logic-sniffer: Expanded sample: 0x00000000 sr: serial: Read 1/1 bytes. sr: openbench-logic-sniffer: Received byte 0x00. sr: openbench-logic-sniffer: Received sample 0x00. sr: openbench-logic-sniffer: Expanded sample: 0x00000000 sr: serial: Read 1/1 bytes. sr: openbench-logic-sniffer: Received byte 0x00. sr: openbench-logic-sniffer: Received sample 0x00. sr: openbench-logic-sniffer: Expanded sample: 0x00000000 sr: serial: Read 1/1 bytes. sr: openbench-logic-sniffer: Received byte 0x00. sr: openbench-logic-sniffer: Received sample 0x00. sr: openbench-logic-sniffer: Expanded sample: 0x00000000 sr: serial: Read 1/1 bytes. sr: openbench-logic-sniffer: Received byte 0x00. sr: openbench-logic-sniffer: Received sample 0x00. sr: openbench-logic-sniffer: Expanded sample: 0x00000000 serial-libsp: Read error (995): �������� �����/������ ���� �������� ��-�� ���������� ������ ������ ��� �� ������� ����������.. sr: session: fd_source_finalize: key 00000000080217F0 sr: session: Stopped.

Could be a bug in serial port handling; or some driver quirk

Sonic-Amiga commented 1 year ago

After some more checking, it's not your bug, it belongs to sigrok's Windows serial library. It's exactly https://www.sigrok.org/bugzilla/show_bug.cgi?id=1830

gillham commented 1 year ago

Thanks for the update. Would you be able to provide a link to a Arduino Nano clone with the CP2102 (or whatever you have) that is similar to what you are using? I need to acquire a couple more test units, with CP2102 and CH340 (or similar).

gillham commented 1 year ago

I'm going to re-open this also to help track the libsigrok issue with this board or my testing of the board.

Sonic-Amiga commented 1 year ago

If you're looking at buying this particular board; sorry, it's made locally here (at least officially), on other side of the New Iron Curtain. Here's a schematic FYI; but really nothing special. https://static.chipdip.ru/lib/724/DOC002724132.pdf

I guess you can put it together with ease out of any CP2102 eval board