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

iio_readdev corrupts the data when using auto detection #583

Closed
dernasherbrezon opened this issue Aug 16, 2020 · 1 comment · Fixed by #660
Closed

iio_readdev corrupts the data when using auto detection #583

dernasherbrezon opened this issue Aug 16, 2020 · 1 comment · Fixed by #660
Assignees
Labels
Milestone

Comments

@dernasherbrezon
Copy link

Run iio_readdev in the auto detection mode (i.e. "-a"):

#: ./iio_readdev -a -s 2 cf-ad9361-lpc
Using auto-detected IIO context at URI "usb:20.10.5"
??????%

All data produced to stdout. Thus the message "Using auto-detected IIO context at URI "usb:20.10.5"" corrupts the output.

@rgetz rgetz self-assigned this Aug 18, 2020
@rgetz
Copy link
Contributor

rgetz commented Aug 18, 2020

Yeah - if you pipe this to something else - it will garble things.

For now - point to the specific url, "-u usb:20.10.5" rather than "-a"

Thanks for the bug report - I will fix, and add a test case.

@rgetz rgetz added the bug label Aug 18, 2020
@rgetz rgetz added this to the v0.22 Release milestone Sep 28, 2020
pcercuei added a commit that referenced this issue Apr 1, 2021
When using iio_readdev, stdout is reserved for the data output; so
information messages about the context creation must be sent to stderr
so that the data stream is not polluted.

Fixes #583.

Signed-off-by: Paul Cercueil <[email protected]>
pcercuei added a commit that referenced this issue Apr 9, 2021
When using iio_readdev, stdout is reserved for the data output; so
information messages about the context creation must be sent to stderr
so that the data stream is not polluted.

Fixes #583.

Signed-off-by: Paul Cercueil <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants