This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to configure the COEX interface as input on nRF9160

Greetings,

The only examples I can seem to locate of using the Coexistence Interface on nRF9160 is with the internal GPS but the documentation states that "COEX0: Input to the LTE modem from the external device. When active high, indicates that the external device transceiver is turned on." 

That's the function I'm looking for, where an external device tells the '9160 to be quiet while it's using the airwaves.

I'm not certain I get the  %XCOEX0 AT command, as it seems to relate to using COEX0 as an output that's tied to internal GPS use.  My questions:

  1. Can COEX0 be used as an input from external devices to keep the LTE radio quiet?
  2. Does it need to be configured to behave this way and, if so, how?

Thanks for any hints on this and please don't hesitate if you need more info.

  • Hi!

    Can COEX0 be used as an input from external devices to keep the LTE radio quiet?

    As of today, this functionality is unfortunately not implemented. 

    For now, you can only set this as an output, as per the AT command documentation you refer to AT%XCOEX0.

    If you want more information on future roadmaps regarding this functionality, you can contact your regional sales manager. PM me your location and I can give you the contact information. 

    Best regards,

    Heidi

  • Oh, hum.  Ok, so the workaround is to do it "manually"?  I.e. tell the LTE to shutdown before operating other transmitters?

  • In theory yes, but what is the other transmitter you are using?

  • The current board has an nRF9160 and an nRF5340, and we intend to use the on-board GPS as well and perhaps some other radio stuff in future revisions.

    So, in short, I've got an ORed logic where any active transmitter (including a GPIO from the '9160 to indicate when we're using GPS) drives the COEX0 line high and the hope was to leave the LTE alone and rely on coexistence to quiet the transmissions while any of the others want to be active.

  • Okay, so the suggested work-around is to use AT+CFUN=20 to suspend LTE and let GPS run. 

    However, it is not really necessary for the application to try to schedule the modem and GNSS. Modem firmware has a built-in scheduling system so that the GNSS tracker will run during PSM and eDRX (and even normal DRX) gaps. Of course, to find a (cold start) fix a longer continuous GNSS period is needed, eDRX/DRX cycle is usually not enough for that.

    Regarding LTE vs BLE, the BLE can avoid sending when COEX2 (automated signal from nRF91) is high. There is no way for BLE to suspend LTE modem via a signal to any COEX pin.

1 2