I tried running the iio-monitor example with my zedboard+fmcomms2, but I'm not having success connecting to the device. I see the curses ui and it prompts me for the server ip/hostname. I changed from localhost to the ip I assigned on the target and press enter, but the application immediately closes. I assume the IIO context is attempting to talk to the iio command server, which appears to be running on the target? When it returns it prints to stdout: "ERROR: Unable to create context: No such file or directory"
On the target via serial port the ip is assigned as:
analog@linaro-ubuntu-desktop:~$ ifconfig
eth2 Link encap:Ethernet HWaddr 00:0a:35:00:01:22
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59 errors:0 dropped:0 overruns:0 frame:0
TX packets:131 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:25613 (25.6 KB) TX bytes:19769 (19.7 KB)
Interrupt:54 Base address:0xb000
I can successfully ping from the host:
azure@azure-OptiPlex-790:~/work/libiio/examples$ ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_req=1 ttl=64 time=0.457 ms
64 bytes from 192.168.1.2: icmp_req=2 ttl=64 time=0.357 ms
64 bytes from 192.168.1.2: icmp_req=3 ttl=64 time=0.377 ms
64 bytes from 192.168.1.2: icmp_req=4 ttl=64 time=0.345 ms
^C
--- 192.168.1.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.345/0.384/0.457/0.043 ms
IIO server is running?
analog@linaro-ubuntu-desktop:~$ ps -aef | grep iio
root 1546 1526 0 00:00 ? 00:00:00 /bin/nc -l -l -p 1234 -e /usr/local/bin/iio_cmdsrv
analog 2627 2563 0 01:20 ttyPS0 00:00:00 grep iio
Any ideas? Thanks