[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuradio-discuss
Subject:    Re: ofdm adalm-pluto
From:       Kyeong Su Shin <ksshin () postech ! ac ! kr>
Date:       2021-12-18 6:13:11
Message-ID: SL2P216MB1246C75963C0681F9D21DD5293799 () SL2P216MB1246 ! KORP216 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]

[Attachment #2 (text/plain)]

Hello Özkan,

Yes, it should be possible.

I haven't tried this by myself, so I don't know if it works, but maybe you can use a \
File Source with /dev/tty* as an input file. Alternatively, you can write a simple \
Python source block (see: https://wiki.gnuradio.org/index.php/Embedded_Python_Block , \
https://pyserial.readthedocs.io/en/latest/shortintro.html  ) . Simply set \
"in_sig=[np.complex64]" to "in_sig=[]" and it will behave as a source block.

Please note that this may introduce the rate mismatch issues, as the sampling rate of \
the serial port and the SDR won't (usually) agree. Maybe you can get away with your \
current codes, because you are already using packetized data, but you may want to \
look into this issue further if anything breaks.

Regards,
Kyeong Su Shin
________________________________
보낸 사람: Özkan Sezer <ozkansezer@gmail.com> 대  Discuss-gnuradio \
<discuss-gnuradio-bounces+ksshin=postech.ac.kr@gnu.org> 보낸  짜: 2021년 12월 \
18일  요일 오  4:26 받는 사람: discuss-gnuradio@gnu.org \
<discuss-gnuradio@gnu.org>  목: Fwd: ofdm adalm-pluto

Thanks for your help Kyeong,
file transfer completed successfully, the periodic error still occurs but is not \
critical. I want to transmit live data (serial port data) instead of files. Is it \
possible with python block or another block?

---------- Forwarded message ---------
Gönderen: Kyeong Su Shin <ksshin@postech.ac.kr<mailto:ksshin@postech.ac.kr>>
Date: 16 Ara 2021 Per, 20:17
Subject: Re: ofdm adalm-pluto
To: Özkan Sezer <ozkansezer@gmail.com<mailto:ozkansezer@gmail.com>>, \
discuss-gnuradio@gnu.org<mailto:discuss-gnuradio@gnu.org> \
<discuss-gnuradio@gnu.org<mailto:discuss-gnuradio@gnu.org>>


Hello Özkan,

I haven't looked into the flowgraphs carefully yet, but you MUST not use a throttle \
block SDR source/sink is in the same path. GNU Radio gave you a warning about this:

> > > Warning: This flow graph contains a throttle block and another rate limiting \
> > > block, e.g. a hardware source or sink. This is usually undesired. Consider \
> > > removing the throttle block.

Throttle block is used to intentionally slow down the execution of the flowgraph, for \
simulation purposes. It causes data drops if used with real hardware.

Regards,
Kyeong Su Shin


________________________________
보낸 사람: Özkan Sezer <ozkansezer@gmail.com<mailto:ozkansezer@gmail.com>> 대 \
Discuss-gnuradio <discuss-gnuradio-bounces+ksshin=postech.ac.kr@gnu.org<mailto:postech.ac.kr@gnu.org>>
 보낸  짜: 2021년 12월 17일 금요일 오  2:00
받는 사람: discuss-gnuradio@gnu.org<mailto:discuss-gnuradio@gnu.org> \
<discuss-gnuradio@gnu.org<mailto:discuss-gnuradio@gnu.org>>  목: Fwd: ofdm \
adalm-pluto

yes, I want to send a file with transmitter adalm-pluto to receiver adalm-pluto. \
there is no problem with a direct connection (without adalm-pluto SDRs). And I take \
periodic faults with adalm-pluto SDRs like these

Block paths:
/usr/share/gnuradio/grc/blocks

Loading: "/home/sezer/Masaüstü/tx_ofdm.grc"
> > > Done

Generating: '/home/sezer/Masaüstü/tx_ofdm.py'
> > > Warning: This flow graph contains a throttle block and another rate limiting \
> > > block, e.g. a hardware source or sink. This is usually undesired. Consider \
> > > removing the throttle block.

Executing: /usr/bin/python3 -u /home/sezer/Masaüstü/tx_ofdm.py

ERROR: Unable to find host: İsim ya da servis bilinmiyor
ERROR: Unable to find host: İsim ya da servis bilinmiyor
Traceback (most recent call last):
  File "/home/sezer/Masaüstü/tx_ofdm.py", line 395, in <module>
    main()
  File "/home/sezer/Masaüstü/tx_ofdm.py", line 371, in main
    tb = top_block_cls(uri=options.uri)
  File "/home/sezer/Masaüstü/tx_ofdm.py", line 191, in __init__
    self.iio_pluto_source_0 = iio.pluto_source(uri, 2400000000, 2084000, 20000000, \
32768, True, True, True, 'manual', 64, '', True)  File \
"/usr/lib/python3/dist-packages/iio/iio_pluto_source_swig.py", line 92, in make  \
                return _iio_pluto_source_swig.pluto_source_make(*args, **kwargs)
RuntimeError: Unable to create context

> > > Done (return code 1)

Generating: '/home/sezer/Masaüstü/tx_ofdm.py'
> > > Warning: This flow graph contains a throttle block and another rate-limiting \
> > > block, e.g. a hardware source or sink. This is usually undesired. Consider \
> > > removing the throttle block.

Executing: /usr/bin/python3 -u /home/sezer/Masaüstü/tx_ofdm.py

WARNING: Unknown parameter '0' in <context>
WARNING: Unknown parameter '23' in <context>
WARNING: Unknown parameter 'v0.23' in <context>
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 0
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 48
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 96
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 144
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 192
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 240
gr::log :INFO: header_payload_demux0 - Parser returned #f
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 288

I think the periodic item is 48 and plus,
Are the same faults with other SDRs?




---------- Forwarded message ---------
Gönderen: Marcin Puchlik \
                <m.puchlik@is-wireless.com<mailto:m.puchlik@is-wireless.com>>
Date: 16 Ara 2021 Per, 17:15
Subject: Re: ofdm adalm-pluto
To: Özkan Sezer <ozkansezer@gmail.com<mailto:ozkansezer@gmail.com>>
Cc: GNURadio Discussion List \
<discuss-gnuradio@gnu.org<mailto:discuss-gnuradio@gnu.org>>


Hi,
Is this a periodic problem with the same packets?
Marcin


czw., 16 gru 2021 o 14:54 Özkan Sezer \
<ozkansezer@gmail.com<mailto:ozkansezer@gmail.com>> napisał(a): Hi Marcus,
Thanks for your answer, yes it's unexpected because the transmitter and receiver are \
so close. OFDM block same as gr-digital; is the extra spec for Adalm-pluto SDR?


--
Özkan SEZER


--
Özkan SEZER


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> Hello <span><span><span>Özkan</span></span></span>,<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> Yes, it should be possible. <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> I haven't tried this by myself, so I don't know if it works, \
but maybe you can use a File Source with /dev/tty* as an input file. Alternatively, \
you can write a simple Python source block (see: <a \
href="https://wiki.gnuradio.org/index.php/Embedded_Python_Block" \
id="LPNoLPOWALinkPreview"> \
https://wiki.gnuradio.org/index.php/Embedded_Python_Block</a> , <a \
href="https://pyserial.readthedocs.io/en/latest/shortintro.html" \
id="LPNoLPOWALinkPreview_1"> \
https://pyserial.readthedocs.io/en/latest/shortintro.html</a>&nbsp; ) . Simply set \
&quot;in_sig=[np.complex64]&quot; to &quot;in_sig=[]&quot; and it will behave as a \
source block.<br> </div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview_1 _EReadonly_1"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> Please note that this may introduce the rate mismatch issues, \
as the sampling rate of the serial port and the SDR won't (usually) agree. Maybe you \
can get away with your current codes, because you are already using packetized data, \
but you may want to look  into this issue further if anything breaks.<br>
</div>
<br>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> Kyeong Su Shin<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" \
style="font-size:11pt" color="#000000"><b>보낸 사람:</b> Özkan Sezer \
&lt;ozkansezer@gmail.com&gt; 대  Discuss-gnuradio \
&lt;discuss-gnuradio-bounces+ksshin=postech.ac.kr@gnu.org&gt;<br> <b>보낸  \
짜:</b> 2021년 12월 18일  요일 오  4:26<br> <b>받는 사람:</b> \
discuss-gnuradio@gnu.org &lt;discuss-gnuradio@gnu.org&gt;<br> <b> 목:</b> Fwd: \
ofdm adalm-pluto</font> <div>&nbsp;</div>
</div>
<div>
<div dir="ltr">Thanks for your help&nbsp;<span style="color:rgb(32,33,36); \
font-size:0.875rem; letter-spacing:0.2px; \
font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif; \
white-space:nowrap">Kyeong,</span> <div>file transfer completed successfully, the \
periodic error still occurs&nbsp;but is not critical. I want to transmit live data \
(serial port data) instead of files. Is it possible with python block or another \
block?<font color="#202124" face="Roboto, RobotoDraft, Helvetica, Arial, \
sans-serif"><span style="font-size:14px; letter-spacing:0.2px; \
white-space:nowrap"><br> </span></font><br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">---------- Forwarded message ---------<br>
Gönderen: <strong class="x_gmail_sendername" dir="auto">Kyeong Su Shin</strong> \
<span dir="auto"> &lt;<a \
                href="mailto:ksshin@postech.ac.kr">ksshin@postech.ac.kr</a>&gt;</span><br>
                
Date: 16 Ara 2021 Per, 20:17<br>
Subject: Re: ofdm adalm-pluto<br>
To: Özkan Sezer &lt;<a \
href="mailto:ozkansezer@gmail.com">ozkansezer@gmail.com</a>&gt;, <a \
href="mailto:discuss-gnuradio@gnu.org">discuss-gnuradio@gnu.org</a> &lt;<a \
href="mailto:discuss-gnuradio@gnu.org">discuss-gnuradio@gnu.org</a>&gt;<br> </div>
<br>
<br>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> Hello <span><span><span>Özkan</span></span></span>,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> I haven't looked into the flowgraphs carefully yet, but you MUST \
not use a throttle block SDR source/sink is in the same path. GNU Radio gave you a \
warning about this:<br> </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> &gt;&gt;&gt; Warning: This flow graph contains a throttle block \
and another rate limiting block, e.g. a hardware source or sink. This is usually \
undesired. Consider removing the throttle block.<br> </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> Throttle block is used to intentionally slow down the execution of \
the flowgraph, for simulation purposes. It causes data drops if used with real \
hardware.<br> </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> Kyeong Su Shin</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> <br>
</div>
<div id="x_m_8131659218439431763appendonsend"></div>
<hr style="display:inline-block; width:98%">
<div id="x_m_8131659218439431763divRplyFwdMsg" dir="ltr"><font face="Calibri, \
sans-serif" color="#000000" style="font-size:11pt"><b>보낸 사람:</b> Özkan Sezer \
&lt;<a href="mailto:ozkansezer@gmail.com" \
target="_blank">ozkansezer@gmail.com</a>&gt; 대  Discuss-gnuradio \
&lt;discuss-gnuradio-bounces+ksshin=<a href="mailto:postech.ac.kr@gnu.org" \
target="_blank">postech.ac.kr@gnu.org</a>&gt;<br> <b>보낸  짜:</b> 2021년 12월 \
17일 금요일 오  2:00<br> <b>받는 사람:</b> <a \
href="mailto:discuss-gnuradio@gnu.org" target="_blank">discuss-gnuradio@gnu.org</a> \
&lt;<a href="mailto:discuss-gnuradio@gnu.org" \
target="_blank">discuss-gnuradio@gnu.org</a>&gt;<br> <b> 목:</b> Fwd: ofdm \
adalm-pluto</font> <div>&nbsp;</div>
</div>
<div>
<div dir="ltr">yes, I want to send a file with transmitter adalm-pluto to receiver \
adalm-pluto. there is no problem with a direct connection (without adalm-pluto SDRs). \
And I take periodic faults with adalm-pluto SDRs like these <div><br>
</div>
<div>Block paths:<br>
/usr/share/gnuradio/grc/blocks<br>
<br>
Loading: &quot;/home/sezer/Masaüstü/tx_ofdm.grc&quot;<br>
&gt;&gt;&gt; Done<br>
<br>
Generating: '/home/sezer/Masaüstü/tx_ofdm.py'<br>
&gt;&gt;&gt; Warning: This flow graph contains a throttle block and another rate \
limiting block, e.g. a hardware source or sink. This is usually undesired. Consider \
removing the throttle block.<br> <br>
Executing: /usr/bin/python3 -u /home/sezer/Masaüstü/tx_ofdm.py<br>
<br>
ERROR: Unable to find host: İsim ya da servis bilinmiyor<br>
ERROR: Unable to find host: İsim ya da servis bilinmiyor<br>
Traceback (most recent call last):<br>
&nbsp; File &quot;/home/sezer/Masaüstü/tx_ofdm.py&quot;, line 395, in \
&lt;module&gt;<br> &nbsp; &nbsp; main()<br>
&nbsp; File &quot;/home/sezer/Masaüstü/tx_ofdm.py&quot;, line 371, in main<br>
&nbsp; &nbsp; tb = top_block_cls(uri=options.uri)<br>
&nbsp; File &quot;/home/sezer/Masaüstü/tx_ofdm.py&quot;, line 191, in __init__<br>
&nbsp; &nbsp; self.iio_pluto_source_0 = iio.pluto_source(uri, 2400000000, 2084000, \
20000000, 32768, True, True, True, 'manual', 64, '', True)<br> &nbsp; File \
&quot;/usr/lib/python3/dist-packages/iio/iio_pluto_source_swig.py&quot;, line 92, in \
make<br> &nbsp; &nbsp; return _iio_pluto_source_swig.pluto_source_make(*args, \
                **kwargs)<br>
RuntimeError: Unable to create context<br>
<br>
&gt;&gt;&gt; Done (return code 1)<br>
<br>
Generating: '/home/sezer/Masaüstü/tx_ofdm.py'<br>
&gt;&gt;&gt; Warning: This flow graph contains a throttle block and another \
rate-limiting block, e.g. a hardware source or sink. This is usually undesired. \
Consider removing the throttle block.<br> <br>
Executing: /usr/bin/python3 -u /home/sezer/Masaüstü/tx_ofdm.py<br>
<br>
WARNING: Unknown parameter '0' in &lt;context&gt;<br>
WARNING: Unknown parameter '23' in &lt;context&gt;<br>
WARNING: Unknown parameter 'v0.23' in &lt;context&gt;<br>
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 0<br>
gr::log :INFO: header_payload_demux0 - Parser returned #f<br>
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 48<br>
gr::log :INFO: header_payload_demux0 - Parser returned #f<br>
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 96<br>
gr::log :INFO: header_payload_demux0 - Parser returned #f<br>
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 144<br>
gr::log :INFO: header_payload_demux0 - Parser returned #f<br>
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 192<br>
gr::log :INFO: header_payload_demux0 - Parser returned #f<br>
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 240<br>
gr::log :INFO: header_payload_demux0 - Parser returned #f<br>
gr::log :INFO: packet_headerparser_b0 - Detected an invalid packet at item 288<br>
<br>
I think the periodic item is 48 and plus,</div>
<div>Are the same faults with other SDRs?</div>
<div><br>
</div>
<div><br>
<div><br>
<br>
<div>
<div dir="ltr">---------- Forwarded message ---------<br>
Gönderen: <strong dir="auto">Marcin Puchlik</strong> <span dir="auto">&lt;<a \
href="mailto:m.puchlik@is-wireless.com" \
                target="_blank">m.puchlik@is-wireless.com</a>&gt;</span><br>
Date: 16 Ara 2021 Per, 17:15<br>
Subject: Re: ofdm adalm-pluto<br>
To: Özkan Sezer &lt;<a href="mailto:ozkansezer@gmail.com" \
                target="_blank">ozkansezer@gmail.com</a>&gt;<br>
Cc: GNURadio Discussion List &lt;<a href="mailto:discuss-gnuradio@gnu.org" \
target="_blank">discuss-gnuradio@gnu.org</a>&gt;<br> </div>
<br>
<br>
<div dir="ltr">Hi,
<div>Is this a periodic problem with the same packets?</div>
<div>Marcin</div>
<div><br>
</div>
</div>
<br>
<div>
<div dir="ltr">czw., 16 gru 2021 o 14:54&nbsp;Özkan Sezer &lt;<a \
href="mailto:ozkansezer@gmail.com" target="_blank">ozkansezer@gmail.com</a>&gt; \
napisał(a):<br> </div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); \
padding-left:1ex"> <div dir="ltr">
<div></div>
<span style="color:rgb(80,0,80)">Hi Marcus,</span><br style="color:rgb(80,0,80)">
<span style="color:rgb(80,0,80)">Thanks for your answer, yes it's unexpected because \
the transmitter and receiver are so</span><br style="color:rgb(80,0,80)"> <span \
style="color:rgb(80,0,80)">close. OFDM block same as gr-digital; is the extra spec \
for Adalm-pluto SDR?</span><br> </div>
</blockquote>
</div>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Özkan SEZER</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="x_gmail_signature">Özkan SEZER</div>
</div>
</div>
</div>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic