Re: Problem with my python block for WSPR coding Process

2024-03-01 Thread Croizer Mathieu
Hello,

I worked on it, and I correct things in my python block and my grc file. It
works when I put QT GUI Time Sink blocks, than Histogramms block. You can
fin the update here :
https://github.com/Krounet/gnuradio-WSPR/tree/development/WSPR-Tx

Best Regards

Mathieu

Le ven. 23 févr. 2024 à 17:25, Croizer Mathieu 
a écrit :

> Hello,
>
> I would like to simulate the simulation of a WSPR transmission with
> GNURADIO. First I created a python block for WSPR coding process. The
> output of my python block is connected to a Pack K Bits block to create
> packs of bytes of 8 bits. It is also connected to a QT GUI Histogramm, to
> verify if there is something at the output. The Pack K Bits block is also
> connected to a QT GUI Histogramm. When I launch my gnuradio file, The two
> histogramms show a pike at 0. So think I think there is nothing at the
> output of my python block. But, in my code I put some prints to show what
> happens at the output, and they indicates that there are zeroes and ones.
> So I don't understand what happens, and I need some Help.
>
> This is my python block work function :
>
> def work(self,input_items,output_items):
>
> """
> What do we do here ? :
>
> _ The Callsigns and the Location + Power are compressed in two
> integer N and M
> _ N is calculated with these equations :
> * N1 = [Ch1] -> [Chn] is the n character in decimal of the
> Callsigns modified by the function transform_Callsigns()
> * N2 = N1 * 36 + [Ch2]
> * N3 = N2 * 10 + [Ch3]
> * N4 = 27 * N3 + [Ch4] - 10
> * N5 = 27 * N4 + [Ch5] - 10
> * N = N6 = 27 * N5 + [Ch6] - 10
>
> _ M is calculated with these equations :
> * M1= (179 - 10 * [Loc1] - [Loc3]) * 180 + 10 * [Loc2] +
> [Loc4] -> [Locn] is the n character in decimal of the Location modified by
> the function transform_Location()
> * M = M1 * 128 + [Pwr] + 64 -> [Pwr] is the power in dBm
> """
> #time.sleep(5)
> codingN=self.transform_Callsigns()
> codingM=self.transform_Location()
> #creating the 88 elements array to encode. The array will be
> packed then in 11 8-bits bytes array c[0] to c[6] will contain the
> informations to transmit.c[6] will contain the 2 two las bit of M and is
> completed by zeroes. c[7] to c[10] is filled with zeroes
> #serializing N
> n_Serial=np.byte([bit for bit in codingN])
> #serializing M
> m_Serial=np.hstack((np.byte([bit for bit in
> codingM]),np.byte([0,0,0,0,0,0])))
> #creating c[7] to c[10]
> c7toc10bin=np.binary_repr(0,32)
> c7toc10=np.byte([bit for bit in c7toc10bin])
>
> #stacking the arrays
> bitstreams=np.hstack((n_Serial,m_Serial,c7toc10))
> #output_items[0]=bitstreams
> for x in range(len(bitstreams)):
> output_items[0]=bitstreams[x]
> print(output_items[0])
> #print("length of the Block Output: "+str(len(output_items[0])))
> return len(bitstreams)
>
> You can find all the code here :
> https://github.com/Krounet/gnuradio-WSPR/tree/development/WSPR-Tx
>
> Best Regards.
>
> Mathieu
>


Announcing GRCon24 !!

2024-03-01 Thread Neel Pandeya
Greetings GNU Radio Community!

We are excited to announce that the GNU Radio Conference 2024 (GRCon24)
will be held on September 16-20 at the Knoxville Convention Center in
Knoxville, Tennessee, USA. Please Save-the-Date! Attendee registration for
the event is already open. More details about the event for attendees,
participants, and sponsors are available on the event website.

https://www.gnuradio.org/grcon/

https://events.gnuradio.org/event/24/

The Call for Participation (CfP) opens today (Friday March 1). Submissions
for papers, posters, talks, workshops, and other contributions are now
being accepted through the GRCon24 website. The Call for Participation will
close on Monday June 17.

https://events.gnuradio.org/event/24/abstracts/

If you have any questions about attending and/or participating, or if you
would like to find out more about becoming one of our valued sponsors, then
please contact us here on the mailing list, or via email at
gr...@gnuradio.org, or via our Matrix chat server at
https://chat.gnuradio.org/. Note that this event can only be successful
because of our sponsors. The link below contains more information about
sponsorship opportunities.

https://events.gnuradio.org/event/24/page/158-sponsorship-opportunities

Since GRCon is run by a group of volunteers, we are also looking for people
to help with both the planning of the event and assisting during the
event.  If you are interested in volunteering in any capacity, please see
the link below, or please reach out to us at gr...@gnuradio.org.

https://events.gnuradio.org/event/24/page/159-volunteer-opportunities

We look forward to seeing you at GRCon24 !!

Sincerely,
The GRCon24 Organizers


Re: Faq? GRC and gnuradio versions don't match?

2024-03-01 Thread David Cherkus
 Thank you!

I followed your steps, now I have 3.10.9.2 working!
dcherkus@dmin:~$ gnuradio-companion *grc<<< Welcome to GNU Radio Companion 
3.10.9.2 >>>
I made myself a note to do 'make uninstall' before trying a new version.
Regards,Dave

Re: Faq? GRC and gnuradio versions don't match?

2024-03-01 Thread Marcus Müller

Hi Dave,

nope, not the way it should be. You should have uninstalled your GNU Radio 
3.10.6.0 first!
Anyways, what is happening now is that Python loads the Python GRC module in version 
3.10.6.0, but your GNU Radio binaries (and also probably your libraries) are loaded in 
version 3.10.9.2.


That's going to fail. Please uninstall your 3.10.9.2 (go to the build/ directory, `sudo 
make uninstall`) first, then check /usr/local for all things that might be remainders of 
your now dysfunctional 3.10.6.0 installation, and remove them. Especially 
/usr/local/lib*/python*/{site,dist}-packages/gnuradio* will contain outdated stuff.


Afterwards, do a clean build (meaning: remove everything from build/, and run `cmake` 
again, run make, run make install).


Best regards,
Marcus

On 01.03.24 14:19, David Cherkus wrote:

Hi,
I just built GNUradio from source on Debian 11 x86 64 bit.
Even after a reboot, GRC and GNUradio's versions don't match?
dcherkus@dmin:~$ gnuradio-config-info --version3.10.9.2dcherkus@dmin:~$ 
gnuradio-companion --helpusage: gnuradio-companion [-h] [--log 
{debug,info,warning,error,critical}] [flow_graphs ...]
GNU Radio Companion 3.10.6.0 This program is part of GNU Radio GRC comes with 
ABSOLUTELY NO WARRANTY.This is free software, and you are welcome to 
redistribute it.
Both programs have the same date stamp and are the only ones installed (I never 
install the Debian packages).
dcherkus@dmin:~$ ls -lLt /usr/bin/gnu*ls: cannot access '/usr/bin/gnu*': No such 
file or directorydcherkus@dmin:~$ ls -lLt /usr/local/bin/gnu*-rwxr-xr-x 1 root root 
1182160 Mar  1 07:35 /usr/local/bin/gnuradio-config-info*-rwxr-xr-x 1 root root    
2985 Mar  1 07:34 /usr/local/bin/gnuradio-companion*dcherkus@dmin:~$ apt list 
|& grep gnuradio | grep installed
Is this the way things are supposed to be?
Regards,Dave





Faq? GRC and gnuradio versions don't match?

2024-03-01 Thread David Cherkus
Hi,
I just built GNUradio from source on Debian 11 x86 64 bit.
Even after a reboot, GRC and GNUradio's versions don't match?
dcherkus@dmin:~$ gnuradio-config-info --version3.10.9.2dcherkus@dmin:~$ 
gnuradio-companion --helpusage: gnuradio-companion [-h] [--log 
{debug,info,warning,error,critical}] [flow_graphs ...]
GNU Radio Companion 3.10.6.0 This program is part of GNU Radio GRC comes with 
ABSOLUTELY NO WARRANTY.This is free software, and you are welcome to 
redistribute it.
Both programs have the same date stamp and are the only ones installed (I never 
install the Debian packages).
dcherkus@dmin:~$ ls -lLt /usr/bin/gnu*ls: cannot access '/usr/bin/gnu*': No 
such file or directorydcherkus@dmin:~$ ls -lLt /usr/local/bin/gnu*-rwxr-xr-x 1 
root root 1182160 Mar  1 07:35 /usr/local/bin/gnuradio-config-info*-rwxr-xr-x 1 
root root    2985 Mar  1 07:34 
/usr/local/bin/gnuradio-companion*dcherkus@dmin:~$ apt list |& grep gnuradio | 
grep installed
Is this the way things are supposed to be?
Regards,Dave