-
Notifications
You must be signed in to change notification settings - Fork 319
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
context description with serial backend #926
Comments
This should already be fixed for the next Libiio version in the dev branch. |
oh really ? I will give it a try |
Ok, I tried to build the |
It's not an error, it's a warning :) |
Oh yeah, my bad... So it's ok now, I can build/install the dev branch. However I get Invalid argument (22) when trying to use the new libiio:
Is there anything that changed in xml parsing ? Does the Here's my xml for reference:
|
The XML looks fine - if you save it to a file test.xml, then run Serial backend works mostly fine here, I do not get this "invalid argument" error. |
I am using TinyIIOD in no-OS. The one implemented here which is a modified version of the original TinyIIOD: I tried what you suggested on |
So we've found out the issue was that no-OS replies with -EINVAL (-22) to the TIMEOUT IIO command. |
Closing this as it's already implemented by @pcercuei on |
@pcercuei I've just tested 0.25-rc1 for this feature and I still don't see it in there, I haven't checked the git log of libiio, do you plan on including this in 0.25? I have this in the xml:
And iio_info shows this at Backend description string:
I was expecting |
Instead of overriding the context description that comes from the XML, pass the serial port name and description as context attributes, and keep the context description as-is. Fixes #926. Signed-off-by: Paul Cercueil <[email protected]>
Instead of overriding the context description that comes from the XML, pass the serial port name and description as context attributes, and keep the context description as-is. Fixes #926. Signed-off-by: Paul Cercueil <[email protected]>
Instead of overriding the context description that comes from the XML, pass the serial port name and description as context attributes, and keep the context description as-is. Fixes #926. Signed-off-by: Paul Cercueil <[email protected]>
Instead of overriding the context description that comes from the XML, pass the serial port name and description as context attributes, and keep the context description as-is. Fixes #926. Signed-off-by: Paul Cercueil <[email protected]> (cherry picked from commit b31f4c9)
When using the serial backend, I get the following context name and description from libiio:
When using the usb backend, I get the folloing context name and description from libiio:
At point 2, the description is as expected.
At point 1 however, the description contains serial port info instead of the xml description attribute.
I've traced this to this function:
libiio/serial.c
Line 113 in e9c8011
I think it would be better to have consistent behavior across backends and populate context description in libiio with the content from xml and not from libserialport. (Perhaps populate with info from libserialport if the description attribute is missing from xml, but this is optional).
The text was updated successfully, but these errors were encountered: