I have encountered a problem running the CFAR_RADAR_Waterfall_ChirpSync.py program, and I have been unable to locate the source of the problem. Here is what I see on the Terminal screen when running the program in RealVNC Viewer:
analog@phaser:~/pyadi-iio/examples/Jon_Kraft_Github_Files/PhaserRadarLabs-main/PhaserRadarLabs-main $ python CFAR_RADAR_Waterfall_ChirpSync.py
0.0.19
requested freq dev time = 500
actual freq dev time = 500
fft_size = 4096
Total Time for all Chirps: 1.5 ms
buffer_size: 8192
buffer_time: 4.096002048001024 ms
CONFIG:
Sample rate: 1.999999MHz
Num samples: 2^13
Bandwidth: 500.0MHz
Ramp time: 0.5ms
Output frequency: 10000.0MHz
IF: 100.0kHz
Traceback (most recent call last):
File "/home/analog/pyadi-iio/examples/Jon_Kraft_Github_Files/PhaserRadarLabs-main/PhaserRadarLabs-main/CFAR_RADAR_Waterfall_ChirpSync.py", line 566, in update
data = my_sdr.rx()
File "/usr/local/lib/python3.9/dist-packages/adi/rx_tx.py", line 275, in rx
data = self.__rx_complex()
File "/usr/local/lib/python3.9/dist-packages/adi/rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
File "/usr/local/lib/python3.9/dist-packages/adi/compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "/usr/local/lib/python3.9/dist-packages/iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "/usr/local/lib/python3.9/dist-packages/iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
TimeoutError: [Errno 110] Connection timed out
Program finished and Pluto Tx Buffer Cleared
Can anyone tell me what is preventing this program from running, and how to fix the problem so the code will run?
Thanks in advance for your assistance with deciphering this Python problem.
Yes, that error is because you don't have the 3" gray ribbon cable connected from Pluto to Phaser. See this post:
The gray cable is attached, but TimeoutError: [Errno 110] Connection timed out are being introduced, so something seems to not be working correctly for CFAR_RADAR_Waterfall_ChirpSync.py. What can be causing this problem?
The gray cable is attached, but TimeoutError: [Errno 110] Connection timed out are being introduced, so something seems to not be working correctly for CFAR_RADAR_Waterfall_ChirpSync.py. What can be causing this problem?
I’m assuming you followed the instructions in the script and have updated Pluto to rev 0.39 or later?
Yes, I updated Pluto firmware from v0.38 to v0.39, and went back through the setup procedure following the update.
Here is the information for the ADALM-Pluto:
| ___ \ | | | / ___| _ \ ___ \
| |_/ / |_ _| |_ ___ \ `--.| | | | |_/ /
| __/| | | | | __/ _ \ `--. \ | | | /
| | | | |_| | || (_) /\__/ / |/ /| |\ \
\_| |_|\__,_|\__\___/\____/|___/ \_| \_|
v0.39
wiki.analog.com/.../pluto
# iio_attr -a -C fw_version
Multiple contexts found. Please select one using --uri:
0: 192.168.2.1 (Analog Devices PlutoSDR Rev.C (Z7010-AD9361)), serial=10 4473e6a60f000c0c0019004a3d1725d1 [ip:pluto.local]
1: fe80::205:f7ff:feda:4ea7%usb0 (Analog Devices PlutoSDR Rev.C (Z7010-A D9361)), serial=104473e6a60f000c0c0019004a3d1725d1 [ip:pluto.local]
2: (cf-ad9361-dds-core-lpc,xadc,cf-ad9361-lpc,one-bit-adc-dac,ad9361-phy ,adi-iio-fakedev on Analog Devices PlutoSDR Rev.C (Z7010/AD9363)) [local:]
# fw_printenv
adi_loadvals=fdt addr ${fit_load_address} && fdt get value fdt_choosen /configurations/${fit_config}/ fdt && fdt get addr fdtaddr /images/${fdt_choosen} data && fdt addr ${fdtaddr}; fdt get value model / model; if test "${model}" > "Analog Devices Pluto"; then run adi_loadvals_pluto; fi;
adi_loadvals_pluto=if test -n "${ad936x_ext_refclk}" && test ! -n "${ad936x_skip_ext_refclk}"; then fdt set /clocks/clock@0 clock-frequency ${ad936x_ext_refclk}; fi; if test -n "${ad936x_ext_refclk_override}"; then fdt set /clocks/clock@0 clock-frequency ${ad936x_ext_refclk_override}; fi; if test -n "${refclk_source}" && test ! "${refclk_source}" = "internal" && test ! "${refclk_source}" = "external"; then setenv refclk_source internal; saveenv; fi; if test "${refclk_source}" = "internal" && test "${model}" = "Analog Devices PlutoSDR Rev.C (Z7010/AD9363)" ; then fdt rm /amba/gpio@e000a000/clock_extern_en || fdt rm /axi/gpio@e000a000/clock_extern_en; fi; if test "${refclk_source}" = "external" && test "${model}" = "Analog Devices PlutoSDR Rev.C (Z7010/AD9363)" ; then fdt rm /amba/gpio@e000a000/clock_internal_en || fdt rm /axi/gpio@e000a000/clock_internal_en; fi; if test "${attr_val}" = "ad9361" && test ! "${model}" = "Analog Devices PlutoSDR Rev.C (Z7010/AD9363)" ; then setenv attr_val ad9363a; saveenv; fi; if test -n "${attr_val}" && test ! "${attr_val}" = "ad9361" && test ! "${attr_val}" = "ad9363a" && test ! "${attr_val}" = "ad9364"; then setenv attr_val ad9363a; saveenv; fi; if test -n "${mode}" && test ! "${mode}" = "1r1t" && test ! "${mode}" = "2r2t"; then setenv mode 1r1t; saveenv; fi; if test -n "${attr_name}" && test -n "${attr_val}"; then fdt set /amba/spi@e0006000/ad9361-phy@0 ${attr_name} ${attr_val} || fdt set /axi/spi@e0006000/ad9361-phy@0 ${attr_name} ${attr_val}; fi; if test "${mode}" = "1r1t" && test "${model}" = "Analog Devices PlutoSDR Rev.C (Z7010/AD9363)"; then fdt rm /amba/spi@e0006000/ad9361-phy@0 adi,2rx-2tx-mode-enable || fdt rm /axi/spi@e0006000/ad9361-phy@0 adi,2rx-2tx-mode-enable; fdt set /fpga-axi/cf-ad9361-dds-core-lpc@79024000 compatible adi,axi-ad9364-dds-6.00.a; fi; if test -n "${cs_gpio}" && test "${model}" = "Analog Devices PlutoSDR Rev.C (Z7010/AD9363)"; then fdt set /amba/axi_quad_spi@7C430000/ cs-gpios "<0x06 ${cs_gpio} 0>" || fdt set /axi/axi_quad_spi@7C430000/ cs-gpios "<0x06 ${cs_gpio} 0>"; fi; if test -n "${attr_val}" && test "${attr_val}" = "ad9364"; then fdt set /fpga-axi/cf-ad9361-dds-core-lpc@79024000 compatible adi,axi-ad9364-dds-6.00.a; if test ! "${mode}" = "1r1t"; then fdt rm /amba/spi@e0006000/ad9361-phy@0 adi,2rx-2tx-mode-enable || fdt rm /axi/spi@e0006000/ad9361-phy@0 adi,2rx-2tx-mode-enable; setenv mode 1r1t; saveenv; fi; fi;
baudrate=115200
bitstream_image=system.bit.bin
bitstream_size=0x400000
bootcmd=run $modeboot
bootdelay=0
bootenv=uEnv.txt
boot_image=BOOT.bin
boot_size=0xF00000
clear_reset_cause=mw f8000008 df0d && mw f8000258 00400000 && mw f8000004 767b
devicetree_image=devicetree.dtb
devicetree_load_address=0x2000000
devicetree_size=0x20000
dfu_ram=echo Entering DFU RAM mode ... && run dfu_ram_info && dfu 0 ram 0
dfu_ram_info=set dfu_alt_info dummy.dfu ram 0 0\\;firmware.dfu ram ${fit_load_address} 0x1E00000
dfu_sf=gpio set 15;set stdout serial@e0001000;echo Entering DFU SF mode ... && run dfu_sf_info && dfu 0 sf 0:0:40000000:0 && if test -n ${dfu_alt_num} && test ${dfu_alt_num} = 1; then set fit_size ${filesize} && set dfu_alt_num && env save; fi;gpio clear 15;
dfu_sf_info=set dfu_alt_info boot.dfu raw 0x0 0x100000\\;firmware.dfu raw 0x200000 0x1E00000\\;uboot-extra-env.dfu raw 0xFF000 0x1000\\;uboot-env.dfu raw 0x100000 0x20000\\;spare.dfu raw 0x120000 0xE0000
ethaddr=00:0a:35:00:01:22
extraenv_load_address=0x207E000
fdt_high=0x20000000
fit_config=config@0
fit_load_address=0x2080000
fit_size=0x900000
importbootenv=echo Importing environment from SD ...; env import -t ${loadbootenv_addr} $filesize
initrd_high=0x20000000
ipaddr=192.168.2.1
ipaddr_host=192.168.2.10
jtagboot=env default -a;sf probe && sf protect unlock 0 100000 && run dfu_sf;
kernel_image=uImage
loadbit_addr=0x100000
loadbootenv_addr=0x2000000
loadbootenv=load mmc 0 ${loadbootenv_addr} ${bootenv}
maxcpus=1
netmask=255.255.255.0
preboot=
preboot=if test $modeboot = sdboot && env run sd_uEnvtxt_existence_test; then if env run loadbootenv; then env run importbootenv; fi; fi;
qspiboot_extraenv=sf read ${extraenv_load_address} 0xFF000 0x1000 && env import -c ${extraenv_load_address} 0x1000 || true
qspiboot=set stdout nulldev;adi_hwref;test -n $PlutoRevA || gpio input 14 && set stdout serial@e0001000 && sf probe && sf protect lock 0 100000 && run dfu_sf; set stdout serial@e0001000;itest *f8000258 == 480003 && run clear_reset_cause && run dfu_sf; itest *f8000258 == 480007 && run clear_reset_cause && run ramboot_verbose; itest *f8000258 == 480006 && run clear_reset_cause && run qspiboot_verbose; itest *f8000258 == 480002 && run clear_reset_cause && exit; echo Booting silently && set stdout nulldev; run read_sf && run adi_loadvals; envversion;setenv bootargs console=ttyPS0,115200 maxcpus=${maxcpus} rootfstype=ramfs root=/dev/ram0 rw quiet loglevel=4 clk_ignore_unused uboot="${uboot-version}" && bootm ${fit_load_address}#${fit_config} || set stdout serial@e0001000;echo BOOT failed entering DFU mode ... && sf protect lock 0 100000 && run dfu_sf
qspiboot_verbose=adi_hwref;echo Copying Linux from QSPI flash to RAM... && run read_sf && if run adi_loadvals; then echo Loaded AD936x refclk frequency and model into devicetree; fi; envversion;setenv bootargs console=ttyPS0,115200 maxcpus=${maxcpus} rootfstype=ramfs root=/dev/ram0 rw earlyprintk clk_ignore_unused uboot="${uboot-version}" && bootm ${fit_load_address}#${fit_config} || echo BOOT failed entering DFU mode ... && run dfu_sf
ramboot_verbose=adi_hwref;echo Copying Linux from DFU to RAM... && run dfu_ram;if run adi_loadvals; then echo Loaded AD936x refclk frequency and model into devicetree; fi; envversion;setenv bootargs console=ttyPS0,115200 maxcpus=${maxcpus} rootfstype=ramfs root=/dev/ram0 rw earlyprintk clk_ignore_unused uboot="${uboot-version}" && bootm ${fit_load_address}#${fit_config}
ramdisk_image=uramdisk.image.gz
ramdisk_load_address=0x4000000
ramdisk_size=0x400000
read_sf=sf probe 0:0 50000000 0 && run qspiboot_extraenv &&sf read ${fit_load_address} 0x200000 ${fit_size} && iminfo ${fit_load_address} || sf read ${fit_load_address} 0x200000 0x1E00000;
refclk_source=internal
sd_uEnvtxt_existence_test=test -e mmc 0 /uEnv.txt
thor_ram=run dfu_ram_info && thordown 0 ram 0
uenvboot=if run loadbootenv; then echo Loaded environment from ${bootenv}; run importbootenv; fi; if test -n $uenvcmd; then echo Running uenvcmd ...; run uenvcmd; fi
usbboot=if usb start; then run uenvboot; echo Copying Linux from USB to RAM... && load usb 0 ${fit_load_address} ${kernel_image} && load usb 0 ${devicetree_load_address} ${devicetree_image} && load usb 0 ${ramdisk_load_address} ${ramdisk_image} && bootm ${fit_load_address} ${ramdisk_load_address} ${devicetree_load_address}; fi
attr_name=compatible
attr_val=ad9361
compatible=ad9361
mode=2r2t
Do you see anything that is configured incorrectly?
Here are the error messages I am receiving today when running CFAR_RADAR_Waterfall_ChirpSync.py:
D:\Phaser Python Programs>python CFAR_RADAR_Waterfall_ChirpSync.py
0.0.18
requested freq dev time = 500
actual freq dev time = 500
fft_size = 4096
Total Time for all Chirps: 1.5 ms
buffer_size: 8192
buffer_time: 4.096002048001024 ms
CONFIG:
Sample rate: 1.999999MHz
Num samples: 2^13
Bandwidth: 500.0MHz
Ramp time: 0.5ms
Output frequency: 10000.0MHz
IF: 100.0kHz
Traceback (most recent call last):
File "D:\Phaser Python Programs\CFAR_RADAR_Waterfall_ChirpSync.py", line 566, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\CFAR_RADAR_Waterfall_ChirpSync.py", line 566, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\CFAR_RADAR_Waterfall_ChirpSync.py", line 566, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\CFAR_RADAR_Waterfall_ChirpSync.py", line 566, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\CFAR_RADAR_Waterfall_ChirpSync.py", line 566, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\CFAR_RADAR_Waterfall_ChirpSync.py", line 566, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Program finished and Pluto Tx Buffer Cleared
Here is the Terminal script for the ERRORs encountered when running FMCW_RADAR_Waterfall_ChirpSync.py:
D:\Phaser Python Programs>python FMCW_RADAR_Waterfall_ChirpSync.py
0.0.18
requested freq dev time = 500
actual freq dev time = 500
fft_size = 8192
Total Time for all Chirps: 1.5 ms
buffer_size: 8192
buffer_time: 1.6383999999999999 ms
CONFIG:
Sample rate: 5.0MHz
Num samples: 2^13
Bandwidth: 500.0MHz
Ramp time: 0.5ms
Output frequency: 10000.0MHz
IF: 100.0kHz
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Traceback (most recent call last):
File "D:\Phaser Python Programs\FMCW_RADAR_Waterfall_ChirpSync.py", line 504, in update
data = my_sdr.rx()
^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 275, in rx
data = self.__rx_complex()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\rx_tx.py", line 240, in __rx_complex
x = self._rx_buffered_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\adi\compat.py", line 149, in _rx_buffered_data
self._rxbuf.refill()
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 1003, in refill
_buffer_refill(self._buffer)
File "C:\Users\scott\AppData\Local\Programs\Python\Python312\Lib\site-packages\iio.py", line 62, in _check_negative
raise OSError(-result, _strerror(-result))
OSError: [Errno 110] host unreachable
Program finished and Pluto Tx Buffer Cleared
Program finished and Pluto Tx Buffer Cleared
Program finished and Pluto Tx Buffer Cleared
Yes, I think you've hooked something up wrong, most likely something with the ribbon cable. So you may need to do a little debug. Send some photos of your setup and I'll see if there's anything I see wrong. But I would start by verifying that you have closely, and exactly, followed all of the setup procedures on the Phaser quick start page. Watch the video closely, and make sure you have everything the same.
https://wiki.analog.com/resources/eval/user-guides/circuits-from-the-lab/cn0566/quickstart
Watch that video, in its entirety. And carefully follow each of the steps. Don’t skip any steps. Run the example code that the wiki guide lists, and make sure all of that works.
Next, find which programs work and which do not. Do some of the example scripts work? And then what is the difference between the ones that work and those that do not. It will help you to identify the issue and then perhaps you will see what you've not connected or didn't install, etc.
Radar always requires careful attention to setup. And it make time some time, and good debug methodology, to diagnose what you're missing. I also recommend doing some getting started classes in Python. These will help you with library installs and debugging within Python. There's several good ones available for free on youtube.
Here are the photos you requested:
Let me know if anything is connected incorrectly, but everything was configured per the online instructions and videos.
I have worked through the Setup Video several times, and did not find any mistakes.
Here is some additional information on my setup:
The antenna is performing identically to the information provided in the videos. Any ideas for debugging over the weekend would be appreciated.
I think you've connected the flat cable the wrong way around; try plugging it in with the red cable facing the antenna array, and that should fix your problem.
OK, I rotated the ribbon cable 180 degrees, but that concerns me since the cable is now pressed against the Pluto PCB. I suspect this will but through the insulation over time, and cause a failure. There are not any markings on the PCB to indicate where the RED line on the ribbon cable should be located.
I connected the OUT 1 SMA Port to a spectrum analyzer earlier today, and the Phaser does not appear to be generating a signal in the 10 GHz to 10.5 GHz bandwidth. I can clearly see the HB100 spectrum at 10.415 GHz, but the Phaser is not producing a signal. What can I do to debug this situation, or should the Phaser be returned to AD to debug this problem?