Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error flushing serial port on Windows #56

Open
Sonic-Amiga opened this issue Oct 18, 2023 · 6 comments
Open

Error flushing serial port on Windows #56

Sonic-Amiga opened this issue Oct 18, 2023 · 6 comments

Comments

@Sonic-Amiga
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

gillham commented Oct 23, 2023

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
Copy link
Owner

gillham commented Oct 23, 2023

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

@gillham gillham reopened this Oct 23, 2023
@Sonic-Amiga
Copy link
Author

Sonic-Amiga commented Oct 23, 2023

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

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

No branches or pull requests

2 participants