Measuring RSSI values using GRC

Hello GR list,

I am intending to read RSSI values on a RX (USRP N210),
I have found in the post of Marcus D. Leech in
https://www.ruby-forum.com/topic/1857766

10*LOG10(DECIMATE(SINGLE_POLE_IIR_FILTER(COMPLEX_TO_MAG**2(SIGNAL))))

Using GRC, I tried to implement that method of calculation as shown in
the
attached figure,

1/ Is the flowgraph correct, or is there any missing block (decimation)
?
2/ Then how can I read in human readable format (ASCII) the RSSI values
from
the test_RSSI.txt file sink ?
3/ Is there a way to command the duration of execution of the flowgraph
within GRC () ?
4/ How can I format the test_RSSI.txt file sink to obtain single RSSI
values
per line ?

Any explanations are welcome,
Regards,
Naceur


View this message in context:
http://gnuradio.4.n7.nabble.com/Measuring-RSSI-values-using-GRC-tp44749.html
Sent from the GnuRadio mailing list archive at Nabble.com.

attached figure,

1/ Is the flowgraph correct, or is there any missing block (decimation) ?
There are blocks in GRC to do all of that.

2/ Then how can I read in human readable format (ASCII) the RSSI values from
the test_RSSI.txt file sink ?
3/ Is there a way to co
Use a “head” block – you can tell it how many samples to process

mmand the duration of execution of the flowgraph
within GRC () ?
4/ How can I format the test_RSSI.txt file sink to obtain single RSSI values
per line ?
The file-sink blocks write out data values in raw-binary format, not
ASCII text.

You could use a “probe” and poll the probe at 1Hz and have it call a
Python function of your own to to the ASCII conversions.


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

Thank you Marcus for the reply,

Marcus L.-2 wrote

There are blocks in GRC to do all of that.

Sorry I forget to attach the GRC flowgraph

http://gnuradio.4.n7.nabble.com/file/n44752/flowgraph_to_read_RSSI.png
am I missing any block ?

Actually I tried using the binascii python module, but what I got is as
follows:

with the binascii.b2a_qp(data) function:

=AD=BC=C1L=8B=BC=C1w=94=BC=C1=DFP=BC=C1*;=BC=C1,=1A=BC=C1.x=BC=C1=1Ae=BC=C1=
=16`=BC=C1r=81=BC=C1=E6=9D=BC=C1)[email protected]=BC=C1=AEa=BC=C1=BCj=
=BC=C1=00}=BC=C1=86=15=BD=C1=C6=EC=BC=C1=CA=D1=BC=C1nM=BC=C1=AF=D5=BB=C1nB

and with the binascii.b2a_uu(data) function:

L TPP -, #3# TPP -, #3#%YZTPM&8FL*=7H/"K;)[email protected]^3<(

Am I misusing functions, how can I get number values as output

Marcus L.-2 wrote

The file-sink blocks write out data values in raw-binary format, not
ASCII text.

You could use a “probe” and poll the probe at 1Hz and have it call a
Python function of your own to to the ASCII conversions.

How can I configure the frequency of polling to 1Hz (Is “probe” here
refer
to “Prob Signal” block in GRC ?)

Regards


View this message in context:
http://gnuradio.4.n7.nabble.com/Re-Measuring-RSSI-values-using-GRC-tp44751p44752.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Could any one help me please get a hint or explanation to get a chain of
RSSI
values in a text file,
I have already tried a bunch of python functions.


View this message in context:
http://gnuradio.4.n7.nabble.com/Re-Measuring-RSSI-values-using-GRC-tp44751p44825.html
Sent from the GnuRadio mailing list archive at Nabble.com.

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