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:

Ping a server using the onboard cellular radio. Cellular, Dragonfly, multitech, PING

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

Thank you

posted by Jeff Blees 28 Jan 2016