Packet Encoder
blks2_packet_encoder
from grc_gnuradio import blks2 as grc_blks2
from gnuradio import gr
grc_blks2.packet_encoder(
item_size_in=$type.size*$vlen,
samples_per_symbol=$samples_per_symbol,
bits_per_symbol=$bits_per_symbol,
access_code=$access_code,
pad_for_usrp=$pad_for_usrp,
payload_length=$payload_length,
)
Input Type
type
float
enum
Samples/Symbol
samples_per_symbol
int
Bits/Symbol
bits_per_symbol
int
Access Code
access_code
string
Pad for USRP
pad_for_usrp
enum
Payload Length
payload_length
-1
int
Vec Length
vlen
1
int
$vlen > 0
in
$type
$vlen
Packet encoder block, for use with the gnuradio modulator blocks: gmsk, psk, qam.
Access Code: string of 1's and 0's, leave blank for default.
Bits/Symbol should be set accordingly:
gmsk -> 1
dbpsk -> 1
dqpsk -> 2
d8psk -> 3
qam8 -> 3
qam16 -> 4
qam64 -> 6
qam256 -> 8