I have a scaled file with IQ data. I would like to transmit the data in that file. How can I do this with the help of the IIO command server?
Syntax:bufwrite <IIODeviceName> <NUMBytes>
Return Value:Return ERROR Code (ERRNO), where negative values indicate errors.
bufwrite cf-ad9122-core-lpc 64
Hope this helps.
I saw that command on the wiki. However where and how do I specify the actual data that I want to transmit. The above command only specifies the number of bytes that I want to transmit.
The data is transmitted in-band right after the command. E.g. using shell commands you could do this by running
(echo "bufwrite cf-ad9122-core-lpc $FILESIZE"; cat $FILE) | netcat ...
Retrieving data ...