You are not logged in.
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
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
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
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