Benchmark tx and rx help

Hello…
I’m trying to make dbpsk modulation using benchmark tx/rx(two usrp1s(RFX
1800) and two computers).I set costas alpha to 0.05 and gain mu to 0.001
as advised here.When i run the codes i got ok=True for all packages and
pktno increases one by one every packet is received properly.But i
couldn’t understand where can i see the bits that are received(1 or
0).Is
the code writing received packages to a file? there is an option in
benchmark_tx like --from-file but i couldn’t decide how can i create a
file that can be seen by code(what will be the extension of the file?)

Best regards…Merve

İngilizce seviyenizi ücretsiz test edebilirsiniz. Tıklayınız

Hi Merve,
benchmark_rx.py only extracts the first two bytes of the received data
payload[0:2], which contains the packet number (pktno) and ignores the
rest. You need to insert some code into the function ‘rx_callback’ [line
61-70] in order to show or use the rest of data, payload[2:].
Kyle


Hello…
I’m trying to make dbpsk modulation using benchmark tx/rx(two usrp1s(RFX
1800) and two computers).I set costas alpha to 0.05 and gain mu to 0.001
as advised here.When i run the codes i got ok=True for all packages and
pktno increases one by one every packet is received properly.But i
couldn’t understand where can i see the bits that are received(1 or
0).Is the code writing received packages to a file? there is an option
in benchmark_tx like --from-file but i couldn’t decide how can i create
a file that can be seen by code(what will be the extension of the file?)

Best regards…Merve

Please check line 113 of benchmark_tx.py
data = (pkt_size - 2) * chr(pktno & 0xff)
Therefore, only the LSB 8 bit of pktno is transmitted in the payload.
And please note 257=0x0101, 514=0x0202. So they are payload contents for
packet 1 and 2, respectively.
You’ve just missed packet 0. Not quite sure the reason.
I guess it might be likely that synchronization at receiver has not been
accomplished such that packet 0 is not received correctly.

To transmit your own data, you can use --from-file option. The file has
to be in binary format. It does not matter what file extension you use.
The transmitter just transmits the file contents byte by byte.
Regards
Kyle

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs