Exemplo n.º 1
0
    def rx(device, stream, meta_data, samples, num_samples, user_data):
        if squelch:
            samples = bladeRF.samples_to_narray(samples, num_samples)
            if bladeRF.squelched(samples, squelch):
                return stream.current()

        buff = stream.current_as_buffer()
        outfile.write(buff)
        return stream.next()
Exemplo n.º 2
0
    def rx(device, stream, meta_data, samples, num_samples, user_data):
        if squelch:
            samples = bladeRF.samples_to_narray(samples, num_samples)
            if bladeRF.squelched(samples, squelch):
                return stream.current()

        buff = stream.current_as_buffer()
        outfile.write(buff)
        return stream.next()
Exemplo n.º 3
0
 def rx(dev, stream, meta_data, samples, num_samples, repeater):
     with repeater.samples_available:
         if not stream.running:
             return
         samples = bladeRF.samples_to_narray(samples, num_samples)
         if bladeRF.squelched(samples, squelch):
             return stream.current()
         if repeater.num_filled >= 2 * repeater.num_buffers:
             # "RX Overrun encountered, stop advancing
             return stream.current()
         ret = stream.next()
         repeater.num_filled += 1
         repeater.samples_available.notify()
     return ret
Exemplo n.º 4
0
 def rx(dev, stream, meta_data, samples, num_samples, repeater):
     with repeater.samples_available:
         if not stream.running:
             return
         samples = bladeRF.samples_to_narray(samples, num_samples)
         if bladeRF.squelched(samples, squelch):
             return stream.current()
         if repeater.num_filled >= 2 * repeater.num_buffers:
             # "RX Overrun encountered, stop advancing
             return stream.current()
         ret = stream.next()
         repeater.num_filled += 1
         repeater.samples_available.notify()
     return ret