gnuradio.digital: OFDM Packet Utilities

gnuradio.digital.ofdm_packet_utils.conv_1_0_string_to_packed_binary_string(s)

‘10101111’ -> (‘¯’, False)

Basically the inverse of conv_packed_binary_string_to_1_0_string, but also returns a flag indicating if we had to pad with leading zeros to get to a multiple of 8.

gnuradio.digital.ofdm_packet_utils.conv_packed_binary_string_to_1_0_string(s)

‘¯’ –> ‘10101111’

gnuradio.digital.ofdm_packet_utils.dewhiten(s, o)
gnuradio.digital.ofdm_packet_utils.is_1_0_string(s)
gnuradio.digital.ofdm_packet_utils.make_header(payload_len, whitener_offset=0)
gnuradio.digital.ofdm_packet_utils.make_packet(payload, samples_per_symbol, bits_per_symbol, pad_for_usrp=True, whitener_offset=0, whitening=True)

Build a packet, given access code, payload, and whitener offset

Parameters:
  • payload – packet payload, len [0, 4096]
  • samples_per_symbol – samples per symbol (needed for padding calculation) (int)
  • bits_per_symbol – (needed for padding calculation) (int)
  • whitener_offset – offset into whitener string to use [0-16)
  • whitening – Turn whitener on or off (bool)

Packet will have access code at the beginning, followed by length, payload and finally CRC-32.

gnuradio.digital.ofdm_packet_utils.random_mask_tuple() → empty tuple

tuple(iterable) -> tuple initialized from iterable’s items

If the argument is a tuple, the return value is the same object.

gnuradio.digital.ofdm_packet_utils.random_mask_vec8()
gnuradio.digital.ofdm_packet_utils.string_to_hex_list(s)
gnuradio.digital.ofdm_packet_utils.unmake_packet(whitened_payload_with_crc, whitener_offset=0, dewhitening=1)

Return (ok, payload)

Parameters:
  • whitened_payload_with_crc – string
  • whitener_offset – offset into whitener string to use [0-16)
  • dewhitening – Turn whitener on or off (bool)
gnuradio.digital.ofdm_packet_utils.whiten(s, o)

Previous topic

gnuradio.digital: Constellations

Next topic

gnuradio.digital: Packet Utilities

This Page