Packet Decoder blks2_packet_decoder from grc_gnuradio import blks2 as grc_blks2 grc_blks2.packet_demod_$(type.fcn)(grc_blks2.packet_decoder( access_code=$access_code, threshold=$threshold, callback=lambda ok, payload: self.$(id).recv_pkt(ok, payload), ), ) Output Type type float enum Access Code access_code string Threshold threshold -1 int in byte out $type Packet decoder block, for use with the gnuradio demodulator blocks: gmsk, psk, qam. Access Code: string of 1's and 0's, leave blank for automatic. Threshold: -1 for automatic.