Gr-satnogs: no attribute 'cw_to_symbol'

AttributeError: module ‘gnuradio.satnogs’ has no attribute ‘cw_to_symbol

is the error message running this flowgraph:

I’ve installed gr-satnogs according to README.md for Ubuntu.

Is it correct, that cw_to_symbol isn’t shown after print(dir(gnuradio.satnogs))?

1 Like

As far as I can see: the CW Decoder Definition block should be used by a Frame Decoder block. I am currently trying to get the latest gr-satnogs, which is of version 3.0.0 installed among the latest satnogs-flowgrpahs, where examples are available. I am currently using GR3.10 for this which seems to be an issue right now (I’ll get back later on this).

1 Like

The flowgraph cw_decoder.grc uses the block Frame Decoder instead of block CW to Symbol. Thanks @DL4PD .

A flowgraph using Frame Decoder like this …

… however brings up this error message:

  self.satnogs_frame_decoder_0 = satnogs.frame_decoder("variable_cw_decoder_1", 8 * 1) 
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
  1. gnuradio.satnogs.satnogs_python.frame_decoder(decoder_object: gnuradio.satnogs.satnogs_python.decoder, input_size: int)

Invoked with: 'variable_cw_decoder_1', 8

Could it be due to this error message during “make”?

gr-satnogs-v3.0.0/include/gnuradio/satnogs/frame_decoder.h:35: warning: explicit link request to 'decoder()' could not be resolved
gr-satnogs-v3.0.0/include/gnuradio/satnogs/frame_decoder.h:53: warning: The following parameter of gr::satnogs::frame_decoder::make(decoder::decoder_sptr decoder_object, int input_size) is not documented:  parameter 'input_size'

By the way, I’m using gr-satnogs 3.0.0 (as you can see) on gnuradio 3.10.1.1.

@DL4PD found the bug.

Until it gets updated, just use this version of satnogs_cw_decoder.block.yml.
satnogs_cw_decoder.block.yml.remove(.txt).txt (1.1 KB)

This flowgraph worked, at least once, even if not with the desired result regarding the quality.
cw_decoder.grc.remove(.txt).txt (2.9 KB)

Recent update Fix CW Decoder variable (!337) · Merge requests · librespacefoundation / SatNOGS / gr-satnogs · GitLab

2 Likes