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

@param payload: packet payload, len [0, 4096] @param samples_per_symbol: samples per symbol (needed for padding calculation) @type samples_per_symbol: int @param bits_per_symbol: (needed for padding calculation) @type bits_per_symbol: int @param whitener_offset offset into whitener string to use [0-16) @param whitening: Turn whitener on or off @type whitening: 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)

@param whitened_payload_with_crc: string @param whitener_offset offset into whitener string to use [0-16) @param dewhitening: Turn whitener on or off @type dewhitening: bool

gnuradio.digital.ofdm_packet_utils.whiten(s, o)

Previous topic

gnuradio.digital: Constellations

Next topic

gnuradio.digital: Packet Utilities

This Page