Import Block "bad import syntax"

2020-11-09 Thread Elmore's
I have a problem as indicated in the subject line that has me totally baffled.

I have created a noblock module with gr_modtool called softrock. This module 
has been successfully created and lives in 
/usr/local/lib/python2.7/dist-packages/softrock. It contains a file 
softrock_usb.py.

I have an existing flowgraph in which I select an Import block. In the Import 
line in Properties I type “import softrock” (without quotes). I get the error 
“bad import syntax”.

I used the document TutorialPythonFunctions from the gnuradio wiki as guidance 
for this task.

I have performed extensive searching for this issue but everything points back 
to simply adding the word “import” in front of the module name.

I have tried completely clearing the text box thinking that there might be 
extraneous characters present.

This seems so simple that I am baffled why it isn’t working.

My platform is a Raspberry Pi 3 with Raspbian Jessie.

Thanks for any help you might give me.

Jim

--
This email has been checked for viruses by AVG.
https://www.avg.com


Amateur Radio & GNU Radio

2020-11-09 Thread Gavin Jacobs


Thanks to the organizers of the Zoom meeting held on Saturday.
On your page https://wiki.gnuradio.org/index.php/HamRadio you mention Transmit 
/ Receive Station Control TBD.
I volunteer to do a presentation at a future meeting and describe how I do that 
on my Hackrf with GnuRadio. I couldn't see any contact information for the 
group, so I'm putting it out here.

73
VE7GSJ


HamRadio - GNU Radio
Using GNU Radio for Amateur Radio []. Ham radio operators are given a license 
by their government enabling them to make radio transmissions for the purpose 
of scientific investigation, experimentation and non-commercial communication.
wiki.gnuradio.org




Re: Discuss-gnuradio Digest, Vol 217, Issue 10

2020-11-09 Thread Moses Browne Mwakyanjala
Hi,
The flowgraph contains a sinusoidal source and a USRP sink. You may notice
that the sample rate is quite high. It is part of the requirements.
Regards,
Moses.
[image: image.png]

On Mon, Nov 9, 2020 at 6:19 PM  wrote:

> Send Discuss-gnuradio mailing list submissions to
> discuss-gnuradio@gnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> or, via email, send a message with subject or body 'help' to
> discuss-gnuradio-requ...@gnu.org
>
> You can reach the person managing the list at
> discuss-gnuradio-ow...@gnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Discuss-gnuradio digest..."
>
>
> Today's Topics:
>
>1. Re: Measuring transmission power from USRP B210 (Marcus D. Leech)
>
>
> --
>
> Message: 1
> Date: Mon, 09 Nov 2020 12:01:24 -0500
> From: "Marcus D. Leech" 
> To: discuss-gnuradio@gnu.org
> Subject: Re: Measuring transmission power from USRP B210
> Message-ID: <5fa975e4.9020...@gmail.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> On 11/09/2020 11:39 AM, Moses Browne Mwakyanjala wrote:
> > Hello everyone,
> > I'm in the process of testing a GNU Radio transmitter. The transmitter
> > will be connected to a solid-state power amplifier (SSPA) for
> > near-Earth satellite communications. The SSPA expects an input of 0dm
> > from the USRP TX port.
> >
> > The first step is thus to measure the power from the USRP. To that
> > end, the flowgraph generates a complex sinusoidal signal with a unit
> > magnitude. The UHD:USRP Sink block is set to maximum gain (i.e.
> > normalized gain of 1.0). Unfortunately, the maximum power I can see
> > from the spectrum analyzer is around -6.93 dBm as shown below. To my
> > understanding, the USRP can transmit up to 20 dBm as reported in the
> > "External Connections" section at this Ettus link :
> > https://files.ettus.com/manual/page_usrp_b200.html.
> > Could anyone explain why I can't achieve a 20 dBm (or anything around
> > it) power level?
> > IMG_3475.JPG
> > Thanks in advance,
> > Moses.
> >
> Could we perhaps see a minimal flow-graph that demonstrates the issue?
>
> Generally, setting the baseband magnitude to 1.0 at the same times as
> setting to MAX gain can cause linearity issues.
>
>
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20201109/e3b13728/attachment.html
> >
> -- next part --
> A non-text attachment was scrubbed...
> Name: not available
> Type: image/jpeg
> Size: 1112823 bytes
> Desc: not available
> URL: <
> https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20201109/e3b13728/attachment.jpe
> >
>
> --
>
> Subject: Digest Footer
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
> --
>
> End of Discuss-gnuradio Digest, Vol 217, Issue 10
> *
>


Re: Measuring transmission power from USRP B210

2020-11-09 Thread Moses Browne Mwakyanjala
Hi,
The flowgraph contains a sinusoidal source and a USRP sink. You may notice
that the sample rate is quite high. It is part of the requirements.
Regards,
Moses.
[image: image.png]

On Mon, Nov 9, 2020 at 6:19 PM  wrote:

> Send Discuss-gnuradio mailing list submissions to
> discuss-gnuradio@gnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> or, via email, send a message with subject or body 'help' to
> discuss-gnuradio-requ...@gnu.org
>
> You can reach the person managing the list at
> discuss-gnuradio-ow...@gnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Discuss-gnuradio digest..."
>
>
> Today's Topics:
>
>1. Re: Measuring transmission power from USRP B210 (Marcus D. Leech)
>
>
> --
>
> Message: 1
> Date: Mon, 09 Nov 2020 12:01:24 -0500
> From: "Marcus D. Leech" 
> To: discuss-gnuradio@gnu.org
> Subject: Re: Measuring transmission power from USRP B210
> Message-ID: <5fa975e4.9020...@gmail.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> On 11/09/2020 11:39 AM, Moses Browne Mwakyanjala wrote:
> > Hello everyone,
> > I'm in the process of testing a GNU Radio transmitter. The transmitter
> > will be connected to a solid-state power amplifier (SSPA) for
> > near-Earth satellite communications. The SSPA expects an input of 0dm
> > from the USRP TX port.
> >
> > The first step is thus to measure the power from the USRP. To that
> > end, the flowgraph generates a complex sinusoidal signal with a unit
> > magnitude. The UHD:USRP Sink block is set to maximum gain (i.e.
> > normalized gain of 1.0). Unfortunately, the maximum power I can see
> > from the spectrum analyzer is around -6.93 dBm as shown below. To my
> > understanding, the USRP can transmit up to 20 dBm as reported in the
> > "External Connections" section at this Ettus link :
> > https://files.ettus.com/manual/page_usrp_b200.html.
> > Could anyone explain why I can't achieve a 20 dBm (or anything around
> > it) power level?
> > IMG_3475.JPG
> > Thanks in advance,
> > Moses.
> >
> Could we perhaps see a minimal flow-graph that demonstrates the issue?
>
> Generally, setting the baseband magnitude to 1.0 at the same times as
> setting to MAX gain can cause linearity issues.
>
>
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20201109/e3b13728/attachment.html
> >
> -- next part --
> A non-text attachment was scrubbed...
> Name: not available
> Type: image/jpeg
> Size: 1112823 bytes
> Desc: not available
> URL: <
> https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20201109/e3b13728/attachment.jpe
> >
>
> --
>
> Subject: Digest Footer
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
> --
>
> End of Discuss-gnuradio Digest, Vol 217, Issue 10
> *
>


Re: Measuring transmission power from USRP B210

2020-11-09 Thread Marcus D Leech
Is it possible that you have the cables on the wrong port?

Sent from my iPhone

> On Nov 9, 2020, at 1:16 PM, Moses Browne Mwakyanjala  
> wrote:
> 
> 
> Hi,
> The flowgraph contains a sinusoidal source and a USRP sink. You may notice 
> that the sample rate is quite high. It is part of the requirements. 
> Regards,
> Moses. 
> 
> 
> 
>> On Mon, Nov 9, 2020 at 6:19 PM  wrote:
>> Send Discuss-gnuradio mailing list submissions to
>> discuss-gnuradio@gnu.org
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> or, via email, send a message with subject or body 'help' to
>> discuss-gnuradio-requ...@gnu.org
>> 
>> You can reach the person managing the list at
>> discuss-gnuradio-ow...@gnu.org
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Discuss-gnuradio digest..."
>> 
>> 
>> Today's Topics:
>> 
>>1. Re: Measuring transmission power from USRP B210 (Marcus D. Leech)
>> 
>> 
>> --
>> 
>> Message: 1
>> Date: Mon, 09 Nov 2020 12:01:24 -0500
>> From: "Marcus D. Leech" 
>> To: discuss-gnuradio@gnu.org
>> Subject: Re: Measuring transmission power from USRP B210
>> Message-ID: <5fa975e4.9020...@gmail.com>
>> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>> 
>> On 11/09/2020 11:39 AM, Moses Browne Mwakyanjala wrote:
>> > Hello everyone,
>> > I'm in the process of testing a GNU Radio transmitter. The transmitter 
>> > will be connected to a solid-state power amplifier (SSPA) for 
>> > near-Earth satellite communications. The SSPA expects an input of 0dm 
>> > from the USRP TX port.
>> >
>> > The first step is thus to measure the power from the USRP. To that 
>> > end, the flowgraph generates a complex sinusoidal signal with a unit 
>> > magnitude. The UHD:USRP Sink block is set to maximum gain (i.e. 
>> > normalized gain of 1.0). Unfortunately, the maximum power I can see 
>> > from the spectrum analyzer is around -6.93 dBm as shown below. To my 
>> > understanding, the USRP can transmit up to 20 dBm as reported in the 
>> > "External Connections" section at this Ettus link :
>> > https://files.ettus.com/manual/page_usrp_b200.html.
>> > Could anyone explain why I can't achieve a 20 dBm (or anything around 
>> > it) power level?
>> > IMG_3475.JPG
>> > Thanks in advance,
>> > Moses.
>> >
>> Could we perhaps see a minimal flow-graph that demonstrates the issue?
>> 
>> Generally, setting the baseband magnitude to 1.0 at the same times as 
>> setting to MAX gain can cause linearity issues.
>> 
>> 
>> -- next part --
>> An HTML attachment was scrubbed...
>> URL: 
>> <https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20201109/e3b13728/attachment.html>
>> -- next part --
>> A non-text attachment was scrubbed...
>> Name: not available
>> Type: image/jpeg
>> Size: 1112823 bytes
>> Desc: not available
>> URL: 
>> <https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20201109/e3b13728/attachment.jpe>
>> 
>> --
>> 
>> Subject: Digest Footer
>> 
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> 
>> 
>> --
>> 
>> End of Discuss-gnuradio Digest, Vol 217, Issue 10
>> *


Re: Amateur Radio & GNU Radio

2020-11-09 Thread Barry Duggan

Hi Gavin,

Thank you for your response! At this time we have no other volunteers, 
so if you would like to do one in December or January, that would be 
great. We seem to have somewhat of a consensus for a Saturday and for 
starting between 1600 to 1800 UTC.


Let me know what you would like to do.

73,
---
Barry Duggan KV4FV
https://github.com/duggabe

On Mon, 9 Nov 2020 16:49:55 +, Gavin Jacobs wrote:

Thanks to the organizers of the Zoom meeting held on Saturday.
On your page https://wiki.gnuradio.org/index.php/HamRadio you mention 
Transmit / Receive Station Control TBD.
I volunteer to do a presentation at a future meeting and describe how I 
do that on my Hackrf with GnuRadio. I couldn't see any contact 
information for the group, so I'm putting it out here.


73
VE7GSJ