Skip to content

Unable to transmit IQ samples with iio_writedev: "Unable to get sample size, returned 0" #465

@mr-aq-stack

Description

@mr-aq-stack

I'm trying to transmit a binary IQ file (sinwave.bin) using iio_writedev using ADRV9361-Z7035 setup with OpenWiFi. However, I'm consistently getting the error:
This is my tx_sinwave script:

#!/bin/sh
############################## Init ###############################
SAMP_FILE=sinwave.bin
LO_FREQ=2425000000
SAMP_RATE=61440000
TX_GAIN=10
RF_BW=56000000

iio_attr -o -c ad9361-phy voltage0 hardwaregain -${TX_GAIN}
iio_attr -o -c ad9361-phy altvoltage1 frequency ${LO_FREQ}
iio_attr -o -c ad9361-phy voltage0 sampling_frequency ${SAMP_RATE}
iio_attr -o -c ad9361-phy voltage0 rf_bandwidth ${RF_BW}

############################## Transmit ##############################
#while true
#do
echo "Transmitting data..."
cat ${SAMP_FILE} | iio_writedev -b 65536 -c cf-ad9361-dds-core-lpc &
echo "Data transmission complete."
#done

When I transmit it the attributed are written successfully but it gives error of sample size
root@analog:/home/analog# ./tx_sinwave
-10.000000 dB
2424999998
61440000
56000000
Transmitting data...
Data transmission complete.
root@analog:/home/analog# Unable to get sample size, returned 0

Error:
Unable to get sample size, returned 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions