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

nRF9160 COEX0 not asserting

Using: ncs v1.4.0, Modem FW v1.2.3, SES v5.10d

I have a custom nRF9160 board with code based on the Asset Tracker app.  I have GPS triggering off of the accelerometer.  GPS will start, but it would never find any satellites.  I found that the COEX0 line was not asserting, turning on the LNA. This used to work, so I'm not sure what changed (yeah, likely some change I made).  

In prj.conf:
CONFIG_NRF9160_GPS_SET_COEX0=y
CONFIG_NRF9160_GPS_COEX0_STRING="AT%XCOEX0=1,1,1565,1586"

Here is the activity right after motion:

[00:00:58.205,230] <dbg> nrf9160_gps.enable_gps: GPS mode is enabled
[00:00:58.216,583] <dbg> nrf9160_gps.start: GPS operational
[00:00:58.222,564] <inf> gps_control: Attempting fix for 360 seconds,
[00:00:58.229,431] <inf> gps_control: restarting every 30 seconds
[00:00:58.235,931] <inf> gps_control: or as soon as 30 seconds later when movement occurs.
[00:00:58.244,689] <inf> asset_tracker: GPS_EVT_SEARCH_STARTED
[00:00:58.251,129] <dbg> nrf9160_gps.gps_thread: A-GPS data update needed
[00:00:58.258,453] <inf> asset_tracker: GPS_EVT_AGPS_DATA_NEEDED
[00:00:58.264,923] <dbg> agps.init_supl: Using GPS driver to input assistance data
[00:00:58.272,888] <inf> agps: SUPL is initialized
+CSCON: 1
[00:00:58.293,884] <inf> asset_tracker: RRC mode: Connected
[00:00:59.006,072] <dbg> agps.open_supl_socket: ip 172.217.215.192 (c0d7d9ac) port 7276
[00:00:59.203,826] <inf> agps: Starting SUPL session
... (SUPL stuff)
[00:01:01.808,746] <inf> agps: SUPL session finished successfully
[00:01:01.815,948] <dbg> nrf9160_gps.gps_thread: Waiting for time window to operate
[00:01:01.824,005] <inf> asset_tracker: GPS_EVT_OPERATION_BLOCKED
+CSCON: 0
[00:01:08.440,185] <inf> asset_tracker: RRC mode: Idle
[00:01:08.487,365] <dbg> nrf9160_gps.gps_thread: GPS has time window to operate
[00:01:08.495,086] <inf> asset_tracker: GPS_EVT_OPERATION_UNBLOCKED
[00:01:08.501,800] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 0 Using: 0 Unhealthy: 0
[00:01:08.510,711] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 68
[00:01:09.487,701] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 0 Using: 0 Unhealthy: 0
[00:01:09.496,643] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 69

You can see RRC connect for SUPL and go idle for GPS, but COEX0 is always low.  What call controls the COEX0 line?

Parents Reply Children
Related