Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data format of Recieved data? #76

Open
farhan296 opened this issue Jan 21, 2020 · 2 comments
Open

Data format of Recieved data? #76

farhan296 opened this issue Jan 21, 2020 · 2 comments

Comments

@farhan296
Copy link

Can anyone help me out in understanding the placement of IQ data in the receive buffer?
Following is my configuration:
xtrx_wire_format_t tx_wire_fmt = XTRX_WF_16;
xtrx_host_format_t tx_host_fmt = XTRX_IQ_FLOAT32;
xtrx_direction_t dir = XTRX_TRX;

xtrx_wire_format_t rx_wire_fmt = XTRX_WF_16;
xtrx_host_format_t rx_host_fmt = XTRX_IQ_FLOAT32;//XTRX_IQ_FLOAT32;

params.dir = dir;
params.nflags = 0;
params.rx.wfmt = rx_wire_fmt;
params.rx.hfmt = rx_host_fmt;
params.rx.chs = XTRX_CH_A;
params.rx.flags = XTRX_RSP_SISO_MODE;
params.rx.paketsize = 8192;
params.rx_stream_start = 8192;

params.tx.wfmt = tx_wire_fmt;
params.tx.hfmt = tx_host_fmt;
params.tx.chs = XTRX_CH_A;
params.tx.flags = XTRX_RSP_SISO_MODE|XTRX_RSP_TEST_SIGNAL_A;

xtrx_recv_ex_info_t ri;
ri.samples = 28192;
ri.buffer_count = 1;
ri.buffers = (void
const*) buffs;
ri.timeout = 1000;
ri.flags = 0;

float buffMemIQRd[65536];

I have a float type buffer. How will the IQ data be placed based on the above configuration in SISO Mode? Is there any documentation available? I see there is a serious lack of helping materials and API documentation.
buffMemIQRd[0] =? (AI,AQ)
buffMemIQRd[1] =? (AI,AQ)
buffMemIQRd[2] =? (AI,AQ)
buffMemIQRd[3] =? (AI,AQ)

@farhan296
Copy link
Author

@sergforce Can you please clarify, how the data is placed in the receive buffer in both SISO and MIMO modes? Also I would like to know in case of Tx how to place I/Q data in the buffer i.e the position of data AI,AQ or AQ,AI etc for both MIMO and SISO. I would appreciate your help in this regard.

@arun1969
Copy link

arun1969 commented Oct 8, 2020

In case of Tx IQ Data AI,AQ format.
I have tried sending iq data generated by python scrip.
https://github.com/jgibbard/iqtool
using test_xtrx got success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants