Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-07-25 Thread Sumit Kumar
Hi Johannes,
Thanks, it works now, but the input will be without quotes, i.e., False not
`False`.
Regards
Sumit

On Thu, Jul 25, 2019 at 10:22 AM Johannes Demel 
wrote:

> Hi Sumit,
>
> this is not an installation error. Your configuration is wrong. The
> argument `enb` must be of type bool but it is a string in your case.
> I assume you use GRC to generate this flowgraph.
> Open your USRP source block. Go to the `FE Corrections` tab and put in
> `False` in both fields. No `, ' or ". This will generate a line that says:
> `self.uhd_usrp_source_0.set_auto_dc_offset(False, 0)`
> instead of
> `self.uhd_usrp_source_0.set_auto_dc_offset("False", 0)`.
> This should fix your issue.
>
> Cheers
> Johannes
>
> Am 24.07.19 um 19:33 schrieb Sumit Kumar:
> > Hi Michael,
> > Any update on this? I downgraded my install of uhd and gnuradio as
> > follows but I have the same error.
> >
> > Traceback (most recent call last):
> >File "/home/sumit/Desktop/top_block.py", line 122, in 
> >  main()
> >File "/home/sumit/Desktop/top_block.py", line 110, in main
> >  tb = top_block_cls()
> >File "/home/sumit/Desktop/top_block.py", line 78, in __init__
> >  self.uhd_usrp_source_0.set_auto_dc_offset("False", 0)
> >File
> >
> "/home/sumit/gradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
> > line 3499, in set_auto_dc_offset
> >  return _uhd_swig.usrp_source_sptr_set_auto_dc_offset(self, enb,
> chan)
> > TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2
> > of type 'bool'
> >
> > sumit@PP0380:~/gradio/src/gnuradio$ uhd_find_devices
> > [INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501;
> > *UHD_3.14.1.HEAD-0-g5491b80e*
> > --
> > -- UHD Device 0
> > --
> > Device Address:
> >  serial: 317DD1E
> >  addr: 192.168.10.2
> >  fpga: HG
> >  name:
> >  product: X310
> >  type: x300
> >
> >
> > sumit@PP0380:~/gradio/src/gnuradio$ gnuradio-companion --version
> > *GNU Radio Companion 3.7.13.5
> > *
> > This program is part of GNU Radio
> > GRC comes with ABSOLUTELY NO WARRANTY.
> > This is free software, and you are welcome to redistribute it.
> >
> > sumit@PP0380:~/gradio/src/gnuradio$ git status
> > On branch maint-3.7
> > *Your branch is up to date with 'origin/maint-3.7'.*
> > *
> > *
> > Regards
> > Sumit
> >
> > On Thu, Jun 27, 2019 at 8:07 PM Michael Dickens
> > mailto:michael.dick...@ettus.com>> wrote:
> >
> > __
> > I guess for your need so long as it works that's what matters, yes?
> >
> > We'll work on fixing the issue you found anyway ... seems like it's
> > legit & undesirable LOL.
> >
> > Good luck with your demo! - MLD
> >
> > On Thu, Jun 27, 2019, at 2:01 PM, sumit kumar wrote:
> >> Well it worked after compiling old checkouts (but not giving me
> >> the usual satisfaction of a fresh install... but anyways)
> >>
> >> On Thu, 27 Jun 2019 at 19:45, sumit kumar  >> > wrote:
> >>
> >> Its overwhelming :D, I have a demo on Monday and I was 100%
> >> assured gr-ieee-80211 will work as usual.
> >>
> >> Before I saw your mail, I already checked out GR to 3.7.12,
> >> UHD to 003 009 006 and compiling now.
> >> Yes I used pybombs for installation.
> >>
> >> I have a USB with gnuradio installed into it. It works good
> >> and it has GR 3.7.11, uhd 003 009 006 and gr-ieee-80211
> >> version I dint check.
> >
> >
> >
> > --
> > --
> > Sumit kumar
> > Postdoc
> > SnT, Luxembourg
> >
> >
> >
> > ___
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>


-- 
-- 
Sumit kumar
Postdoc
SnT, Luxembourg
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-07-25 Thread Johannes Demel
Hi Sumit,

this is not an installation error. Your configuration is wrong. The 
argument `enb` must be of type bool but it is a string in your case.
I assume you use GRC to generate this flowgraph.
Open your USRP source block. Go to the `FE Corrections` tab and put in 
`False` in both fields. No `, ' or ". This will generate a line that says:
`self.uhd_usrp_source_0.set_auto_dc_offset(False, 0)`
instead of
`self.uhd_usrp_source_0.set_auto_dc_offset("False", 0)`.
This should fix your issue.

Cheers
Johannes

Am 24.07.19 um 19:33 schrieb Sumit Kumar:
> Hi Michael,
> Any update on this? I downgraded my install of uhd and gnuradio as 
> follows but I have the same error.
> 
> Traceback (most recent call last):
>    File "/home/sumit/Desktop/top_block.py", line 122, in 
>      main()
>    File "/home/sumit/Desktop/top_block.py", line 110, in main
>      tb = top_block_cls()
>    File "/home/sumit/Desktop/top_block.py", line 78, in __init__
>      self.uhd_usrp_source_0.set_auto_dc_offset("False", 0)
>    File 
> "/home/sumit/gradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py", 
> line 3499, in set_auto_dc_offset
>      return _uhd_swig.usrp_source_sptr_set_auto_dc_offset(self, enb, chan)
> TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 
> of type 'bool'
> 
> sumit@PP0380:~/gradio/src/gnuradio$ uhd_find_devices
> [INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; 
> *UHD_3.14.1.HEAD-0-g5491b80e*
> --
> -- UHD Device 0
> --
> Device Address:
>      serial: 317DD1E
>      addr: 192.168.10.2
>      fpga: HG
>      name:
>      product: X310
>      type: x300
> 
> 
> sumit@PP0380:~/gradio/src/gnuradio$ gnuradio-companion --version
> *GNU Radio Companion 3.7.13.5
> *
> This program is part of GNU Radio
> GRC comes with ABSOLUTELY NO WARRANTY.
> This is free software, and you are welcome to redistribute it.
> 
> sumit@PP0380:~/gradio/src/gnuradio$ git status
> On branch maint-3.7
> *Your branch is up to date with 'origin/maint-3.7'.*
> *
> *
> Regards
> Sumit
> 
> On Thu, Jun 27, 2019 at 8:07 PM Michael Dickens 
> mailto:michael.dick...@ettus.com>> wrote:
> 
> __
> I guess for your need so long as it works that's what matters, yes?
> 
> We'll work on fixing the issue you found anyway ... seems like it's
> legit & undesirable LOL.
> 
> Good luck with your demo! - MLD
> 
> On Thu, Jun 27, 2019, at 2:01 PM, sumit kumar wrote:
>> Well it worked after compiling old checkouts (but not giving me
>> the usual satisfaction of a fresh install... but anyways)
>>
>> On Thu, 27 Jun 2019 at 19:45, sumit kumar > > wrote:
>>
>> Its overwhelming :D, I have a demo on Monday and I was 100%
>> assured gr-ieee-80211 will work as usual.
>>
>> Before I saw your mail, I already checked out GR to 3.7.12,
>> UHD to 003 009 006 and compiling now.
>> Yes I used pybombs for installation.
>>
>> I have a USB with gnuradio installed into it. It works good
>> and it has GR 3.7.11, uhd 003 009 006 and gr-ieee-80211
>> version I dint check.
> 
> 
> 
> -- 
> -- 
> Sumit kumar
> Postdoc
> SnT, Luxembourg
> 
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-07-24 Thread Sumit Kumar
Hi Michael,
Any update on this? I downgraded my install of uhd and gnuradio as follows
but I have the same error.

Traceback (most recent call last):
  File "/home/sumit/Desktop/top_block.py", line 122, in 
main()
  File "/home/sumit/Desktop/top_block.py", line 110, in main
tb = top_block_cls()
  File "/home/sumit/Desktop/top_block.py", line 78, in __init__
self.uhd_usrp_source_0.set_auto_dc_offset("False", 0)
  File
"/home/sumit/gradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
line 3499, in set_auto_dc_offset
return _uhd_swig.usrp_source_sptr_set_auto_dc_offset(self, enb, chan)
TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 of
type 'bool'

sumit@PP0380:~/gradio/src/gnuradio$ uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501;
*UHD_3.14.1.HEAD-0-g5491b80e*
--
-- UHD Device 0
--
Device Address:
serial: 317DD1E
addr: 192.168.10.2
fpga: HG
name:
product: X310
type: x300


sumit@PP0380:~/gradio/src/gnuradio$ gnuradio-companion --version

*GNU Radio Companion 3.7.13.5*
This program is part of GNU Radio
GRC comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it.

sumit@PP0380:~/gradio/src/gnuradio$ git status
On branch maint-3.7
*Your branch is up to date with 'origin/maint-3.7'.*

Regards
Sumit

On Thu, Jun 27, 2019 at 8:07 PM Michael Dickens 
wrote:

> I guess for your need so long as it works that's what matters, yes?
>
> We'll work on fixing the issue you found anyway ... seems like it's legit
> & undesirable LOL.
>
> Good luck with your demo! - MLD
>
> On Thu, Jun 27, 2019, at 2:01 PM, sumit kumar wrote:
>
> Well it worked after compiling old checkouts (but not giving me the usual
> satisfaction of a fresh install... but anyways)
>
> On Thu, 27 Jun 2019 at 19:45, sumit kumar  wrote:
>
> Its overwhelming :D, I have a demo on Monday and I was 100% assured
> gr-ieee-80211 will work as usual.
>
> Before I saw your mail, I already checked out GR to 3.7.12, UHD to 003 009
> 006 and compiling now.
> Yes I used pybombs for installation.
>
> I have a USB with gnuradio installed into it. It works good and it has GR
> 3.7.11, uhd 003 009 006 and gr-ieee-80211 version I dint check.
>
>
>

-- 
-- 
Sumit kumar
Postdoc
SnT, Luxembourg
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread sumit kumar
Thats true, thanks. meanwhile the UDP problem is solved. I had to run the
command as root :D not sudo.

On Thu, 27 Jun 2019 at 20:07, Michael Dickens 
wrote:

> I guess for your need so long as it works that's what matters, yes?
>
> We'll work on fixing the issue you found anyway ... seems like it's legit
> & undesirable LOL.
>
> Good luck with your demo! - MLD
>
> On Thu, Jun 27, 2019, at 2:01 PM, sumit kumar wrote:
>
> Well it worked after compiling old checkouts (but not giving me the usual
> satisfaction of a fresh install... but anyways)
>
> On Thu, 27 Jun 2019 at 19:45, sumit kumar  wrote:
>
> Its overwhelming :D, I have a demo on Monday and I was 100% assured
> gr-ieee-80211 will work as usual.
>
> Before I saw your mail, I already checked out GR to 3.7.12, UHD to 003 009
> 006 and compiling now.
> Yes I used pybombs for installation.
>
> I have a USB with gnuradio installed into it. It works good and it has GR
> 3.7.11, uhd 003 009 006 and gr-ieee-80211 version I dint check.
>
>
>

-- 
Sumit Kumar
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread Michael Dickens
I guess for your need so long as it works that's what matters, yes?

We'll work on fixing the issue you found anyway ... seems like it's legit & 
undesirable LOL.

Good luck with your demo! - MLD

On Thu, Jun 27, 2019, at 2:01 PM, sumit kumar wrote:
> Well it worked after compiling old checkouts (but not giving me the usual 
> satisfaction of a fresh install... but anyways)
> 
> On Thu, 27 Jun 2019 at 19:45, sumit kumar  wrote:
>> Its overwhelming :D, I have a demo on Monday and I was 100% assured 
>> gr-ieee-80211 will work as usual. 
>> 
>> Before I saw your mail, I already checked out GR to 3.7.12, UHD to 003 009 
>> 006 and compiling now. 
>> Yes I used pybombs for installation. 
>> 
>> I have a USB with gnuradio installed into it. It works good and it has GR 
>> 3.7.11, uhd 003 009 006 and gr-ieee-80211 version I dint check. 
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread sumit kumar
Well it worked after compiling old checkouts (but not giving me the usual
satisfaction of a fresh install... but anyways)

On Thu, 27 Jun 2019 at 19:45, sumit kumar  wrote:

> Its overwhelming :D, I have a demo on Monday and I was 100% assured
> gr-ieee-80211 will work as usual.
>
> Before I saw your mail, I already checked out GR to 3.7.12, UHD to 003 009
> 006 and compiling now.
> Yes I used pybombs for installation.
>
> I have a USB with gnuradio installed into it. It works good and it has GR
> 3.7.11, uhd 003 009 006 and gr-ieee-80211 version I dint check.
>
>
>
> On Thu, 27 Jun 2019 at 19:31, Michael Dickens 
> wrote:
>
>> Hmmm ... well the current UHD API for "set_auto_dc_offset" is
>> "(bool, size_t)". Looks like the generated Python from gr-ieee-80211 is
>> "set_auto_dc_offset("", 0)", which isn't compatible with the current UHD
>> API for this method.
>>
>> Hmmm ... here's my best bet: gr-ieee802-11 uses the GR-provided GRC
>> blocks (whether XML or YML). Guessing you're using some reasonably recently
>> (e.g., 2019) GR 3.8-tech-preview commit. If that's the case, then here's
>> what seems to be the issue ... In this commit <
>> https://github.com/gnuradio/gnuradio/commit/4804d1fdb6950d2b2ec5707cd8a362f01ed2cf90
>>  >,
>> then file "gr-uhd/grc/gen_uhd_usrp_blocks.py" was dramatically changed to
>> generate the YML required by the 3.8 GRC. The API for
>> "set_auto_dc_offset" was removed entirely ... not sure why ... but somehow
>> GRC when "compiling" the flowgraph from YML into Python generates that
>> command improperly.
>>
>> You said you used PyBOMBS to install everything ... yes? The UHD is the
>> current GIT master, so bleeding edge LOL.
>>
>> Any way you can figure out which commit of GNU Radio and gr-ieee-80211
>> were used? The latter was recently updated such that the GIT master
>> corresponds to GR 3.8, while "main-3.7" is for the current GR "maint-3.7"
>> branch ... - MLD
>>
>> On Thu, Jun 27, 2019, at 12:59 PM, sumit kumar wrote:
>>
>> Sure I will try that, meanwhile any tip on the other issue, i.e.,
>>
>> *TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2
>> of type 'bool'*
>>
>> Regards
>> Sumit
>>
>>
>>
>
> --
> Sumit Kumar
>
>
>

-- 
Sumit Kumar
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread sumit kumar
Its overwhelming :D, I have a demo on Monday and I was 100% assured
gr-ieee-80211 will work as usual.

Before I saw your mail, I already checked out GR to 3.7.12, UHD to 003 009
006 and compiling now.
Yes I used pybombs for installation.

I have a USB with gnuradio installed into it. It works good and it has GR
3.7.11, uhd 003 009 006 and gr-ieee-80211 version I dint check.



On Thu, 27 Jun 2019 at 19:31, Michael Dickens 
wrote:

> Hmmm ... well the current UHD API for "set_auto_dc_offset" is
> "(bool, size_t)". Looks like the generated Python from gr-ieee-80211 is
> "set_auto_dc_offset("", 0)", which isn't compatible with the current UHD
> API for this method.
>
> Hmmm ... here's my best bet: gr-ieee802-11 uses the GR-provided GRC blocks
> (whether XML or YML). Guessing you're using some reasonably recently (e.g.,
> 2019) GR 3.8-tech-preview commit. If that's the case, then here's what
> seems to be the issue ... In this commit <
> https://github.com/gnuradio/gnuradio/commit/4804d1fdb6950d2b2ec5707cd8a362f01ed2cf90
>  >,
> then file "gr-uhd/grc/gen_uhd_usrp_blocks.py" was dramatically changed to
> generate the YML required by the 3.8 GRC. The API for
> "set_auto_dc_offset" was removed entirely ... not sure why ... but somehow
> GRC when "compiling" the flowgraph from YML into Python generates that
> command improperly.
>
> You said you used PyBOMBS to install everything ... yes? The UHD is the
> current GIT master, so bleeding edge LOL.
>
> Any way you can figure out which commit of GNU Radio and gr-ieee-80211
> were used? The latter was recently updated such that the GIT master
> corresponds to GR 3.8, while "main-3.7" is for the current GR "maint-3.7"
> branch ... - MLD
>
> On Thu, Jun 27, 2019, at 12:59 PM, sumit kumar wrote:
>
> Sure I will try that, meanwhile any tip on the other issue, i.e.,
>
> *TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 of
> type 'bool'*
>
> Regards
> Sumit
>
>
>

-- 
Sumit Kumar
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread Michael Dickens
Hmmm ... well the current UHD API for "set_auto_dc_offset" is "(bool, size_t)". 
Looks like the generated Python from gr-ieee-80211 is "set_auto_dc_offset("", 
0)", which isn't compatible with the current UHD API for this method.

Hmmm ... here's my best bet: gr-ieee802-11 uses the GR-provided GRC blocks 
(whether XML or YML). Guessing you're using some reasonably recently (e.g., 
2019) GR 3.8-tech-preview commit. If that's the case, then here's what seems to 
be the issue ... In this commit < 
https://github.com/gnuradio/gnuradio/commit/4804d1fdb6950d2b2ec5707cd8a362f01ed2cf90
 >, then file "gr-uhd/grc/gen_uhd_usrp_blocks.py" was dramatically changed to 
generate the YML required by the 3.8 GRC. The API for "set_auto_dc_offset" was 
removed entirely ... not sure why ... but somehow GRC when "compiling" the 
flowgraph from YML into Python generates that command improperly.

You said you used PyBOMBS to install everything ... yes? The UHD is the current 
GIT master, so bleeding edge LOL.

Any way you can figure out which commit of GNU Radio and gr-ieee-80211 were 
used? The latter was recently updated such that the GIT master corresponds to 
GR 3.8, while "main-3.7" is for the current GR "maint-3.7" branch ... - MLD

On Thu, Jun 27, 2019, at 12:59 PM, sumit kumar wrote:
> Sure I will try that, meanwhile any tip on the other issue, i.e., 
> 
> *TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 of 
> type 'bool'*
> **
> Regards
> Sumit 
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread sumit kumar
Sure I will try that, meanwhile any tip on the other issue, i.e.,

*TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 of
type 'bool'*

Regards
Sumit



On Thu, 27 Jun 2019 at 18:54, Michael Dickens 
wrote:

> I'm no expert on what to change here, but I'd guess there's another
> setting that's the correct one for your specific OS & version, and that
> "net.core.rmem_max" is the correct one for some other OS and/or version.
> Maybe do a quick internet search for how to change the UDP buffer size on
> your OS and version? Maybe someone else in GR-land has seen this issue &
> knows what to do? - MLD
>
> On Thu, Jun 27, 2019, at 12:43 PM, sumit kumar wrote:
>
> This happens after running *sudo sysctl -w net.core.rmem_max=5000*
>
> [INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501;
> UHD_3.15.0.git-1-gf83faf28
> [INFO] [USRP2] Opening a USRP2/N-Series device...
> [INFO] [USRP2] Current recv frame size: 1472 bytes
> [INFO] [USRP2] Current send frame size: 1472 bytes
> [WARNING] [UDP] The recv buffer could not be resized sufficiently.
> Target sock buff size: 5000 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.rmem_max=5000
> [WARNING] [UDP] The current recv_buff_size of 212992 is less than the
> minimum recommended size of 307200 and may result in dropped packets on
> some NICs
> [WARNING] [UDP] The recv buffer could not be resized sufficiently.
> Target sock buff size: 5000 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.rmem_max=5000
> [WARNING] [UDP] The current recv_buff_size of 212992 is less than the
> minimum recommended size of 307200 and may result in dropped packets on
> some NICs
> [WARNING] [UDP] The recv buffer could not be resized sufficiently.
> Target sock buff size: 250 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.rmem_max=250
> [WARNING] [UDP] The current recv_buff_size of 212992 is less than the
> minimum recommended size of 307200 and may result in dropped packets on
> some NICs
> [WARNING] [UDP] The recv buffer could not be resized sufficiently.
> Target sock buff size: 250 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.rmem_max=250
> [WARNING] [UDP] The current recv_buff_size of 212992 is less than the
> minimum recommended size of 307200 and may result in dropped packets on
> some NICs
> [WARNING] [UHD] Unable to set the thread priority. Performance may be
> negatively affected.
> Please see the general application notes in the manual for instructions.
> EnvironmentError: OSError: error in pthread_setschedparam
> Traceback (most recent call last):
>   File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
> 374, in 
> main()
>   File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
> 362, in main
> tb = top_block_cls()
>   File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
> 151, in __init__
> self.uhd_usrp_source_0.set_auto_dc_offset("", 0)
>   File
> "/home/sumit/gradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
> line 3499, in set_auto_dc_offset
> return _uhd_swig.usrp_source_sptr_set_auto_dc_offset(self, enb, chan)
> TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 of
> type 'bool'
>
>
>

-- 
Sumit Kumar
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread Michael Dickens
I'm no expert on what to change here, but I'd guess there's another setting 
that's the correct one for your specific OS & version, and that 
"net.core.rmem_max" is the correct one for some other OS and/or version. Maybe 
do a quick internet search for how to change the UDP buffer size on your OS and 
version? Maybe someone else in GR-land has seen this issue & knows what to do? 
- MLD

On Thu, Jun 27, 2019, at 12:43 PM, sumit kumar wrote:
> This happens after running *sudo sysctl -w net.core.rmem_max=5000*
> 
> [INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; 
> UHD_3.15.0.git-1-gf83faf28
> [INFO] [USRP2] Opening a USRP2/N-Series device...
> [INFO] [USRP2] Current recv frame size: 1472 bytes
> [INFO] [USRP2] Current send frame size: 1472 bytes
> [WARNING] [UDP] The recv buffer could not be resized sufficiently.
> Target sock buff size: 5000 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.rmem_max=5000
> [WARNING] [UDP] The current recv_buff_size of 212992 is less than the minimum 
> recommended size of 307200 and may result in dropped packets on some NICs
> [WARNING] [UDP] The recv buffer could not be resized sufficiently.
> Target sock buff size: 5000 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.rmem_max=5000
> [WARNING] [UDP] The current recv_buff_size of 212992 is less than the minimum 
> recommended size of 307200 and may result in dropped packets on some NICs
> [WARNING] [UDP] The recv buffer could not be resized sufficiently.
> Target sock buff size: 250 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.rmem_max=250
> [WARNING] [UDP] The current recv_buff_size of 212992 is less than the minimum 
> recommended size of 307200 and may result in dropped packets on some NICs
> [WARNING] [UDP] The recv buffer could not be resized sufficiently.
> Target sock buff size: 250 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.rmem_max=250
> [WARNING] [UDP] The current recv_buff_size of 212992 is less than the minimum 
> recommended size of 307200 and may result in dropped packets on some NICs
> [WARNING] [UHD] Unable to set the thread priority. Performance may be 
> negatively affected.
> Please see the general application notes in the manual for instructions.
> EnvironmentError: OSError: error in pthread_setschedparam
> Traceback (most recent call last):
>  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line 374, 
> in 
>  main()
>  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line 362, 
> in main
>  tb = top_block_cls()
>  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line 151, 
> in __init__
>  self.uhd_usrp_source_0.set_auto_dc_offset("", 0)
>  File 
> "/home/sumit/gradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py", 
> line 3499, in set_auto_dc_offset
>  return _uhd_swig.usrp_source_sptr_set_auto_dc_offset(self, enb, chan)
> TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 of 
> type 'bool'
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread sumit kumar
This happens after running *sudo sysctl -w net.core.rmem_max=5000*

[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501;
UHD_3.15.0.git-1-gf83faf28
[INFO] [USRP2] Opening a USRP2/N-Series device...
[INFO] [USRP2] Current recv frame size: 1472 bytes
[INFO] [USRP2] Current send frame size: 1472 bytes
[WARNING] [UDP] The recv buffer could not be resized sufficiently.
Target sock buff size: 5000 bytes.
Actual sock buff size: 212992 bytes.
See the transport application notes on buffer resizing.
Please run: sudo sysctl -w net.core.rmem_max=5000
[WARNING] [UDP] The current recv_buff_size of 212992 is less than the
minimum recommended size of 307200 and may result in dropped packets on
some NICs
[WARNING] [UDP] The recv buffer could not be resized sufficiently.
Target sock buff size: 5000 bytes.
Actual sock buff size: 212992 bytes.
See the transport application notes on buffer resizing.
Please run: sudo sysctl -w net.core.rmem_max=5000
[WARNING] [UDP] The current recv_buff_size of 212992 is less than the
minimum recommended size of 307200 and may result in dropped packets on
some NICs
[WARNING] [UDP] The recv buffer could not be resized sufficiently.
Target sock buff size: 250 bytes.
Actual sock buff size: 212992 bytes.
See the transport application notes on buffer resizing.
Please run: sudo sysctl -w net.core.rmem_max=250
[WARNING] [UDP] The current recv_buff_size of 212992 is less than the
minimum recommended size of 307200 and may result in dropped packets on
some NICs
[WARNING] [UDP] The recv buffer could not be resized sufficiently.
Target sock buff size: 250 bytes.
Actual sock buff size: 212992 bytes.
See the transport application notes on buffer resizing.
Please run: sudo sysctl -w net.core.rmem_max=250
[WARNING] [UDP] The current recv_buff_size of 212992 is less than the
minimum recommended size of 307200 and may result in dropped packets on
some NICs
[WARNING] [UHD] Unable to set the thread priority. Performance may be
negatively affected.
Please see the general application notes in the manual for instructions.
EnvironmentError: OSError: error in pthread_setschedparam
Traceback (most recent call last):
  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
374, in 
main()
  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
362, in main
tb = top_block_cls()
  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
151, in __init__
self.uhd_usrp_source_0.set_auto_dc_offset("", 0)
  File
"/home/sumit/gradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
line 3499, in set_auto_dc_offset
return _uhd_swig.usrp_source_sptr_set_auto_dc_offset(self, enb, chan)
TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 of
type 'bool'

On Thu, 27 Jun 2019 at 18:34, sumit kumar  wrote:

> Hi Michael, Yes indeed, tried till  500, still no luck.
>
> Regards
> Sumit
>
> On Thu, 27 Jun 2019 at 18:30, Michael Dickens 
> wrote:
>
>> Hi Sumit - Just out of curiosity, have you tried the command the warning
>> asks you to execute?
>> {{{
>> sudo sysctl -w net.core.wmem_max=250
>> }}}
>> If not then please try it & see if that helps. - MLD
>>
>> On Thu, Jun 27, 2019, at 12:27 PM, sumit kumar wrote:
>>
>> OS: Ubuntu 18.04
>> Laptop: Dell Latitude 5490
>> GNU Radio : 3.7.13.5
>> UHD : UHD_3.15.0.git-1-gf83faf28
>> SDR: Ettus N200
>>
>> I did a fresh install today using pybombs.
>>
>> Then tried running wifi_rx.grc from gr-ieee-80211 package and flooded
>> with errors. Never seen them before. Bold marked part is coming with all
>> the programs where I am connected to USRP such as uhd_fft while the rest
>> happens with wifi_rx.grc (this is what I have observed so far).
>>
>> However, all the programs are working flawlessly with older version.
>>
>> Any tips to solve it.
>>
>> Regards
>> Sumit
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501;
>> UHD_3.15.0.git-1-gf83faf28[INFO] [USRP2] Opening a USRP2/N-Series
>> device...[INFO] [USRP2] Current recv frame size: 1472 bytes[INFO] [USRP2]
>> Current send frame size: 1472 bytes[WARNING] [UDP] The send buffer could
>> not be resized sufficiently.Target sock buff size: 250 bytes.Actual
>> sock buff size: 212992 bytes.See the transport application notes on buffer
>> resizing.Please run: sudo sysctl -w net.core.wmem_max=250[WARNING]
>> [UDP] The current send_buff_size of 212992 is less than the minimum
>> recommended size of 307200 and may result in dropped packets on some
>> NICs[WARNING] [UDP] The send buffer could not be resized
>> sufficiently.Target sock buff size: 250 bytes.Actual sock buff size:
>> 212992 bytes.See the transport application notes on buffer resizing.Please
>> run: sudo sysctl -w net.core.wmem_max=250[WARNING] [UDP] The current
>> send_buff_size of 212992 is less than the minimum recommended size of
>> 307200 and may 

Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread sumit kumar
Hi Michael, Yes indeed, tried till  500, still no luck.

Regards
Sumit

On Thu, 27 Jun 2019 at 18:30, Michael Dickens 
wrote:

> Hi Sumit - Just out of curiosity, have you tried the command the warning
> asks you to execute?
> {{{
> sudo sysctl -w net.core.wmem_max=250
> }}}
> If not then please try it & see if that helps. - MLD
>
> On Thu, Jun 27, 2019, at 12:27 PM, sumit kumar wrote:
>
> OS: Ubuntu 18.04
> Laptop: Dell Latitude 5490
> GNU Radio : 3.7.13.5
> UHD : UHD_3.15.0.git-1-gf83faf28
> SDR: Ettus N200
>
> I did a fresh install today using pybombs.
>
> Then tried running wifi_rx.grc from gr-ieee-80211 package and flooded with
> errors. Never seen them before. Bold marked part is coming with all the
> programs where I am connected to USRP such as uhd_fft while the rest
> happens with wifi_rx.grc (this is what I have observed so far).
>
> However, all the programs are working flawlessly with older version.
>
> Any tips to solve it.
>
> Regards
> Sumit
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501;
> UHD_3.15.0.git-1-gf83faf28[INFO] [USRP2] Opening a USRP2/N-Series
> device...[INFO] [USRP2] Current recv frame size: 1472 bytes[INFO] [USRP2]
> Current send frame size: 1472 bytes[WARNING] [UDP] The send buffer could
> not be resized sufficiently.Target sock buff size: 250 bytes.Actual
> sock buff size: 212992 bytes.See the transport application notes on buffer
> resizing.Please run: sudo sysctl -w net.core.wmem_max=250[WARNING]
> [UDP] The current send_buff_size of 212992 is less than the minimum
> recommended size of 307200 and may result in dropped packets on some
> NICs[WARNING] [UDP] The send buffer could not be resized
> sufficiently.Target sock buff size: 250 bytes.Actual sock buff size:
> 212992 bytes.See the transport application notes on buffer resizing.Please
> run: sudo sysctl -w net.core.wmem_max=250[WARNING] [UDP] The current
> send_buff_size of 212992 is less than the minimum recommended size of
> 307200 and may result in dropped packets on some NICs[WARNING] [UDP] The
> send buffer could not be resized sufficiently.Target sock buff size:
> 1048576 bytes.Actual sock buff size: 212992 bytes.See the transport
> application notes on buffer resizing.Please run: sudo sysctl -w
> net.core.wmem_max=1048576[WARNING] [UDP] The current send_buff_size of
> 212992 is less than the minimum recommended size of 307200 and may result
> in dropped packets on some NICs[WARNING] [UDP] The send buffer could not be
> resized sufficiently.Target sock buff size: 250 bytes.Actual sock buff
> size: 212992 bytes.See the transport application notes on buffer
> resizing.Please run: sudo sysctl -w net.core.wmem_max=250[WARNING]
> [UDP] The current send_buff_size of 212992 is less than the minimum
> recommended size of 307200 and may result in dropped packets on some
> NICs[WARNING] [UHD] Unable to set the thread priority. Performance may be
> negatively affected.Please see the general application notes in the manual
> for instructions.EnvironmentError: OSError: error in pthread_setschedparam*
>
> Traceback (most recent call last):
>   File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
> 374, in 
> main()
>   File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
> 362, in main
> tb = top_block_cls()
>   File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
> 151, in __init__
> self.uhd_usrp_source_0.set_auto_dc_offset("false", 0)
>   File
> "/home/sumit/gradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
> line 3499, in set_auto_dc_offset
> return _uhd_swig.usrp_source_sptr_set_auto_dc_offset(self, enb, chan)
> TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 of
> type 'bool'
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>

-- 
Sumit Kumar
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread Michael Dickens
Hi Sumit - Just out of curiosity, have you tried the command the warning asks 
you to execute?
{{{
sudo sysctl -w net.core.wmem_max=250
}}}
If not then please try it & see if that helps. - MLD

On Thu, Jun 27, 2019, at 12:27 PM, sumit kumar wrote:
> OS: Ubuntu 18.04
> Laptop: Dell Latitude 5490
> GNU Radio : 3.7.13.5
> UHD : UHD_3.15.0.git-1-gf83faf28
> SDR: Ettus N200
> 
> I did a fresh install today using pybombs. 
> 
> Then tried running wifi_rx.grc from gr-ieee-80211 package and flooded with 
> errors. Never seen them before. Bold marked part is coming with all the 
> programs where I am connected to USRP such as uhd_fft while the rest happens 
> with wifi_rx.grc (this is what I have observed so far).
> 
> However, all the programs are working flawlessly with older version.
> 
> Any tips to solve it.
> 
> Regards
> Sumit 
> 
> *[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; 
> UHD_3.15.0.git-1-gf83faf28
> [INFO] [USRP2] Opening a USRP2/N-Series device...
> [INFO] [USRP2] Current recv frame size: 1472 bytes
> [INFO] [USRP2] Current send frame size: 1472 bytes
> [WARNING] [UDP] The send buffer could not be resized sufficiently.
> Target sock buff size: 250 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.wmem_max=250
> [WARNING] [UDP] The current send_buff_size of 212992 is less than the minimum 
> recommended size of 307200 and may result in dropped packets on some NICs
> [WARNING] [UDP] The send buffer could not be resized sufficiently.
> Target sock buff size: 250 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.wmem_max=250
> [WARNING] [UDP] The current send_buff_size of 212992 is less than the minimum 
> recommended size of 307200 and may result in dropped packets on some NICs
> [WARNING] [UDP] The send buffer could not be resized sufficiently.
> Target sock buff size: 1048576 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.wmem_max=1048576
> [WARNING] [UDP] The current send_buff_size of 212992 is less than the minimum 
> recommended size of 307200 and may result in dropped packets on some NICs
> [WARNING] [UDP] The send buffer could not be resized sufficiently.
> Target sock buff size: 250 bytes.
> Actual sock buff size: 212992 bytes.
> See the transport application notes on buffer resizing.
> Please run: sudo sysctl -w net.core.wmem_max=250
> [WARNING] [UDP] The current send_buff_size of 212992 is less than the minimum 
> recommended size of 307200 and may result in dropped packets on some NICs
> [WARNING] [UHD] Unable to set the thread priority. Performance may be 
> negatively affected.
> Please see the general application notes in the manual for instructions.
> EnvironmentError: OSError: error in pthread_setschedparam*
> *
*Traceback (most recent call last):
>  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line 374, 
> in 
>  main()
>  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line 362, 
> in main
>  tb = top_block_cls()
>  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line 151, 
> in __init__
>  self.uhd_usrp_source_0.set_auto_dc_offset("false", 0)
>  File 
> "/home/sumit/gradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py", 
> line 3499, in set_auto_dc_offset
>  return _uhd_swig.usrp_source_sptr_set_auto_dc_offset(self, enb, chan)
> TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 of 
> type 'bool'
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] gr-ieee-80211: UDP Warning and another error

2019-06-27 Thread sumit kumar
OS: Ubuntu 18.04
Laptop: Dell Latitude 5490
GNU Radio : 3.7.13.5
UHD : UHD_3.15.0.git-1-gf83faf28
SDR: Ettus N200

I did a fresh install today using pybombs.

Then tried running wifi_rx.grc from gr-ieee-80211 package and flooded with
errors. Never seen them before. Bold marked part is coming with all the
programs where I am connected to USRP such as uhd_fft while the rest
happens with wifi_rx.grc (this is what I have observed so far).

However, all the programs are working flawlessly with older version.

Any tips to solve it.

Regards
Sumit































*[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501;
UHD_3.15.0.git-1-gf83faf28[INFO] [USRP2] Opening a USRP2/N-Series
device...[INFO] [USRP2] Current recv frame size: 1472 bytes[INFO] [USRP2]
Current send frame size: 1472 bytes[WARNING] [UDP] The send buffer could
not be resized sufficiently.Target sock buff size: 250 bytes.Actual
sock buff size: 212992 bytes.See the transport application notes on buffer
resizing.Please run: sudo sysctl -w net.core.wmem_max=250[WARNING]
[UDP] The current send_buff_size of 212992 is less than the minimum
recommended size of 307200 and may result in dropped packets on some
NICs[WARNING] [UDP] The send buffer could not be resized
sufficiently.Target sock buff size: 250 bytes.Actual sock buff size:
212992 bytes.See the transport application notes on buffer resizing.Please
run: sudo sysctl -w net.core.wmem_max=250[WARNING] [UDP] The current
send_buff_size of 212992 is less than the minimum recommended size of
307200 and may result in dropped packets on some NICs[WARNING] [UDP] The
send buffer could not be resized sufficiently.Target sock buff size:
1048576 bytes.Actual sock buff size: 212992 bytes.See the transport
application notes on buffer resizing.Please run: sudo sysctl -w
net.core.wmem_max=1048576[WARNING] [UDP] The current send_buff_size of
212992 is less than the minimum recommended size of 307200 and may result
in dropped packets on some NICs[WARNING] [UDP] The send buffer could not be
resized sufficiently.Target sock buff size: 250 bytes.Actual sock buff
size: 212992 bytes.See the transport application notes on buffer
resizing.Please run: sudo sysctl -w net.core.wmem_max=250[WARNING]
[UDP] The current send_buff_size of 212992 is less than the minimum
recommended size of 307200 and may result in dropped packets on some
NICs[WARNING] [UHD] Unable to set the thread priority. Performance may be
negatively affected.Please see the general application notes in the manual
for instructions.EnvironmentError: OSError: error in pthread_setschedparam*

Traceback (most recent call last):
  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
374, in 
main()
  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
362, in main
tb = top_block_cls()
  File "/home/sumit/gradio/src/gr-ieee-80211/examples/wifi_rx.py", line
151, in __init__
self.uhd_usrp_source_0.set_auto_dc_offset("false", 0)
  File
"/home/sumit/gradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
line 3499, in set_auto_dc_offset
return _uhd_swig.usrp_source_sptr_set_auto_dc_offset(self, enb, chan)
TypeError: in method 'usrp_source_sptr_set_auto_dc_offset', argument 2 of
type 'bool'
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio