Hello,
I have a problem connecting my project with the iio oscilloscope.
I followed the link to build the sample project.
https://wiki.analog.com/resources/tools-software/no-os-software/iio
Then I open the iio oscilloscope and it doesn't have the serial context option.
What is the problem with this?
Thank you,
Nicole.
Hi Nicole,
Can you tri to install the latest libiio version:
https://github.com/analogdevicesinc/libiio/releases/tag/v0.23
It should be built with Serial support. (Your current version may not have serial enabled)
If this still doesn't make the serial context visible,
can you try to build the latest version of iio-osciloscope?:
https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope#installation
Regards,
Mihail
Hi Mihail,
I have the libiio last version.
And use this link for install the iio oscilloscope:
https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope#installation
Thanks,
Nicole.
Hello,
This works for me.
With your help I can see the serial port with the iio oscilloscope,
but I could not find my device.
Oh, I know this problem... It's not related to AnalogDevices, it's related to a dependency of libiio called libserialport and got through the Ubuntu maintainers testing.
Linux maintainers have removed a submodule called termiox as it was being unused for long time, of whatever...
With the latest Linux kernel (which you have likely updated to recently!), libserialport only works if compiled from latest master, that includes this commit/workaround:
https://github.com/sigrokproject/libserialport/commit/6f9b03e597ea7200eb616a4e410add3dd1690cb1
So please build libserialport from master by hand and install it, I'm pretty sure it will fix your "Inappropriate ioctl for device" error message.
Could you guide me on how to do this?
I downloaded libserialport from the link you gave me and I built and installed it according to this link
https://sigrok.org/wiki/Libserialport
But I have no changes with the problem.
Thanks,
Nicole.
You need to make sure you install it at the correct location in your system.
First thing you need to do is:
ldd $(which iio_info)
This will print the list of libraries iio_info (part of libiio) uses and their path:
libserialport.so.0 => /usr/lib/libserialport.so.0 (0x00007fe690ae1000)
Note how on my system libserialport is installed under /usr/lib. I think by default, libserialport is installed at /lib. So what you need to do in this case to build libserialport is pass a prefix to the ./configure script, something like (adjust please for your system):
$ ./autogen.sh $ ./configure --prefix=/usr $ make $ sudo make install
Look at file timestamps and make sure 'sudo make install' overwrites the correct file in your system (/usr/lib/libserialport.so.0 in my case)
This is the path in my case:
libserialport.so.0 => /lib/x86_64-linux-gnu/libserialport.so.0 (0x00007f204ed06000)
Is this the prefix?
./configure --prefix = / lib / x86_64-linux-gnu
Thank you for this help. This is very important!!
Nicole,
This is Ubuntu related configuration - Ubuntu lib paths are weird. You have 3 options here:
1. Find a way to pass the correct prefix so as /lib/x86_64-linux-gnu/libserialport.so.0 is overwritten when you sudo make install.
2. If 1) fails, manually symlink files so that /lib/x86_64-linux-gnu/libserialport.so.0 points to wherever `sudo make install` installed your file.
3. Reboot into an older kernel where this wasn't an issue.
Thank you very much,
I was able to solve this problem. And I have this connection:
But when I press "connect" I get this in terminal:
nicole@nicole-None:~/iio-oscilloscope/build$ sudo ./osc
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Found plugin: FMComms1
Found plugin: CN0540
Could not find expected iio devices
Found plugin: AD7303
Found plugin: AD9371
Found plugin: Partial Reconfiguration
Found plugin: LIDAR
Found plugin: Spectrum Analyzer
Found plugin: SCPI
Found plugin: FMComms5
Found plugin: AD6676
Found plugin: AD936X
Found plugin: AD5628-1
Found plugin: AD9371 Advanced
Found plugin: CN0511
Found plugin: CN0508
Found plugin: AD936X Advanced
Found plugin: CN0357
Found plugin: DMM
Found plugin: ADRV9009
Found plugin: FMCOMMS11
Found plugin: FMComms6
Found plugin: Motor Control
Found plugin: ad9739a
Found plugin: DAQ1/2/3
Found plugin: FMCADC3
Found plugin: Debug
Found plugin: DAC Data Manager
Loaded plugin: Spectrum Analyzer
Updating widgets...
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Failed to toggle DDS: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Updating FIR filter...
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Loaded plugin: AD936X
Loaded plugin: DMM
Loaded plugin: Debug
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
Error: Unable to create buffer: Connection timed out
ERROR: sp_blocking_read_next has timedout
ERROR: READ LINE: -110
After a few minutes the interface of the iio-oscilloscope opens,
but I can't see any signal on the interface.
I can't make to changes in the interface.
Thanks for your help!!
Nicole.
Hi NicoleDuarte,
Glad to hear you managed to build/install libserialport.
I see you're running a windows host with Ubuntu 20.x guest in vmware.
The error you're getting now is likely related to:
- either Windows can't keep up with serial baud rate 921600 (you can test this by installing an iio-oscilloscope on your windows, and trying out from there)
- or there is an issue with serial port passing to the virtual machine.
I'm afraid I can't help with this one more than this.
Thank you very much for your help, it was very important !!
Nicole
Glad to help Nicole, but please mark one (or more) of the replies above as answer.
This helps future readers find the solution faster.
Glad to help Nicole, but please mark one (or more) of the replies above as answer.
This helps future readers find the solution faster.