Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 7 months ago.
How to enable Receive Diversity in H5
I'm looking at main.cpp for Dragonfly_Cellular_Ping_example. I see where you can set the APN for the H5 radio. Is there a spot in the code to enable/disable receive diversity?
at#rxdiv?
enable at#rxdiv=1,3
disable at#rxdiv=0,3
Thanks
Jeff
Question relating to:

1 Answer
9 years, 7 months ago.
Jeff,
There isn't a function in the Cellular code to do this, but you can use the Cellular::sendBasicCommand or Cellular::sendCommand functions to enable/disable diversity.
Enabling RX Diversity
// send AT command to enable diversity with a 1 second timeout if (radio->sendBasicCommand("AT#RXDIV=1,3", 1000) != MTS_SUCCESS) { // failure } else { // success }
Hope this helps!
-Mike