WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2013-May-13 09:07:05

uimran
Member
From: Montreal
Registered: 2013-Jan-01
Posts: 52

Disabling TX

Hi,

I am working with the OFDMv16.1, and was wondering whats the simplest way to disable TX operation in the C code, so I only have a receiver.


Thanks,
Umaid

Offline

 

#2 2013-May-13 10:00:10

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Disabling TX

It depends on the MAC you're using.

To disable all DATA transmissions, bypass the code in dataFromNetworkLayer_callback() (i.e. just add "return();" as the first line of the function).

If you're using a MAC with ACKs, like CSMAMAC, you also need to disable the auto-responder logic which transmits ACKs immediately upon reception of an error-free DATA packet. In csmamac.c, change "mimo_ofdmTxRx_setAction0(autoResp_action)" to "mimo_ofdmTxRx_setAction0(0)" to disable the auto-responder completely.

Offline

 

#3 2013-May-13 11:24:31

uimran
Member
From: Montreal
Registered: 2013-Jan-01
Posts: 52

Re: Disabling TX

Thanks. I'm using NoMac for this test, and sending UDP packets (no acks).

So can you confirm that it will receive as usual for the NoMac?

Offline

 

#4 2013-May-13 11:34:27

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Disabling TX

The default nomac code will attempt to receive every wireless packet and forward to Ethernet all packets received without errors. If you disable the dataFromNetworkLayer_callback() code, nomac will never transmit.

Offline

 

#5 2013-May-13 12:11:57

uimran
Member
From: Montreal
Registered: 2013-Jan-01
Posts: 52

Re: Disabling TX

Thanks!

Offline

 

Board footer