Hello everyone,
Tom, thanks for that, that was a good start for me, but I’m still am
having
the problems.
This is how I make my modulator for dqpsk, the way I make the modulator
for
dbpsk is mostly the same. Tom, at first I thought you meant I might
need to
change the samples_per_symbol paramter. I did this, on the transmitter
and
receiver, with no results. I’m pretty sure you were talking about
something
else,
Here are my modulators. All I’m doing is switching between them.
modulator = gnuradio.blks2impl.dbpsk.dbpsk_mod(
samples_per_symbol=2,
excess_bw=0.35,
gray_code=True,
verbose=False,
log=False)
modulator = gnuradio.blks2impl.dqpsk.dqpsk_mod(
samples_per_symbol=4,
excess_bw=0.35,
gray_code=True,
verbose=False,
log=False)
Here is my transmitter.
class tx_top_block(gr.top_block):
def __init__(self, mod):
gr.top_block.__init__(self)
modulator=mod
self.packet_modulator = blks2.mod_pkts(
modulator,
access_code=None,
msgq_limit=4,
pad_for_usrp=True,
use_whitener_offset=False
)
usrp2_sink = usrp2.sink_32fc(network_interface)
usrp2_sink.set_interp(interpolation)
usrp2_sink.set_center_freq(center_freq)
usrp2_sink.set_gain(usrp2_sink.gain_max())
self.connect(self.packet_modulator, usrp2_sink)
def main_loop(self):
packet_size = 1000
max_num_packets = 100000
repeat_packets = True
try:
data = "Hello, World!\n"
data = data + (packet_size-len(data))*' ' # pad rest of
packet
self.start()
print "Started Transmitter"
while True:
for pkt_num in xrange(0,max_num_packets):
self.packet_modulator.send_pkt(data, False)
if not repeat_packets:
break
self.packet_modulator.send_pkt('', True) # Tell the source
to
block if it is done transmitting
self.wait() # Wait for radio
to
finish.
except KeyboardInterrupt:
pass
print "\n\nExiting."
Thanks For Any Help,
Devin