I wrote a gnuRadio code that allows me to switch between a Tx_Path and
Rx_Path every 10 seconds.
The code is based on the tb.lock() , tb.unlock() functions and the
benchmarks provided with gnuradio.
I am able to do the switching fine, however after switching from
transmission to reception, the node receives some of the packets that
sent during its own transmission period.
How can I overcome this echo like effect between the TX and RX periods ?
*In the main() function I have :
In the top_block class I have:
begin_time = time.time()
pktno = 0
while time.time() - begin_time < 10: # Send for 10 minutes
data = (pkt_size - 2) * chr(pktno & 0xff)
payload = struct.pack(’!H’, pktno & 0xffff) + data
pktno += 1
def send_pkt(self, payload=’’, eof=False):
### Main Function to Send Packets.
return self.txpath.send_pkt(payload, eof)