Post Go back to editing

Get in RX the same values of TX

Hi people,

There is a way to send a data in the TX and receive the same in the RX?  I mean if I put a cable between TX A and RX A and send a value in I and another in Q, there is a way to get them back on the RX A I/Q?  I am developing a IEEE 802.15.4 transceiver, and for testing, at least in the begging would be nice to be able to do that, send something and get the same the other side.

I tried to change the ad9361-iiostream.c to send always the same data, RX and TX in the same frequency, and on the RX compare the received I/Q to see if was the same... but I didn't manage to do it.  Well it makes sense not being able to, the process is too fast, so the time you say send this and you start reading it is possible that you will not read the same thing you just sent, even more because, as far as I understood the buffers in the middle would make this  synchronization a nightmare, even with different threads for the send and receive.

Nevertheless, I would know if I can do it, somehow to be able to test my transceiver.

   Best regards...

          Daniel

Parents
  • OK sorry,

    What I meant to say was that when I read the rxbuf (iio_buffer_refill(rxbuf);) the only thing that is inside, the full content of the rxbuf, is a repetition of the same I and Q over and over.  What I understood was that the full I/Q  sent stream would be stored until it get read. Well, apparently it is not the case! I will try to decrease the frequency and increase the send and receive buffers... but if the values are not stored somehow, to be replayed it will be  more or less the same as putting the loop back cable no?

      Best regards...

               Daniel

Reply
  • OK sorry,

    What I meant to say was that when I read the rxbuf (iio_buffer_refill(rxbuf);) the only thing that is inside, the full content of the rxbuf, is a repetition of the same I and Q over and over.  What I understood was that the full I/Q  sent stream would be stored until it get read. Well, apparently it is not the case! I will try to decrease the frequency and increase the send and receive buffers... but if the values are not stored somehow, to be replayed it will be  more or less the same as putting the loop back cable no?

      Best regards...

               Daniel

Children
No Data