<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Multiple Issues Connecting nRF9151 to QM13345 Antenna Switch (No RFFE Support?)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124708/multiple-issues-connecting-nrf9151-to-qm13345-antenna-switch-no-rffe-support</link><description>Hello, 
 
 I am developing a custom IoT device based on the nRF9151 SiP with a Qorvo QM13345 SP4T antenna switch controlled via RFFE 2.1 interface. All RFFE AT commands fail with error 65536, preventing antenna switch control and resulting in no cellular</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Oct 2025 08:28:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124708/multiple-issues-connecting-nrf9151-to-qm13345-antenna-switch-no-rffe-support" /><item><title>RE: Multiple Issues Connecting nRF9151 to QM13345 Antenna Switch (No RFFE Support?)</title><link>https://devzone.nordicsemi.com/thread/551674?ContentTypeID=1</link><pubDate>Thu, 16 Oct 2025 08:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d34a17a9-6541-4d12-8f05-00e8abd1f376</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi, thanks for opening a private ticket. I have provided an answer in that ticket.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple Issues Connecting nRF9151 to QM13345 Antenna Switch (No RFFE Support?)</title><link>https://devzone.nordicsemi.com/thread/551499?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 23:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58a07917-71f4-49bb-bf8a-b569eb03b109</guid><dc:creator>mystic</dc:creator><description>&lt;p&gt;Hello Oyvind,&lt;/p&gt;
&lt;p&gt;I have opened a private ticket in regards to this. Please look for that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple Issues Connecting nRF9151 to QM13345 Antenna Switch (No RFFE Support?)</title><link>https://devzone.nordicsemi.com/thread/551458?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 14:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb9efb43-6ed8-44e6-a40d-8b7f08f73ccd</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="mystic"]I am using the sample applications from&amp;nbsp;&lt;a href="https://github.com/Conexiotechnologies/conexio-firmware-sdk/tree/main/samples/conexio_stratus"&gt;https://github.com/Conexiotechnologies/conexio-firmware-sdk/tree/main/samples/conexio_stratus&lt;/a&gt;&amp;nbsp;and modifying it for my board.[/quote]
&lt;p&gt;Can you please provide a full board layout for your custom IoT device? Please provide both schematics and layout.&amp;nbsp;&lt;/p&gt;
[quote user="mystic"]I&amp;#39;m using MAGPIO exclusively and the CESQ is still 99,99,255,255[/quote]
&lt;p&gt;What antenna are you using in your design? The&amp;nbsp;&lt;span&gt;signal quality seems very low or non-existent.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="mystic"]The GNSS &lt;strong&gt;IS&lt;/strong&gt; working as long as LTE is &lt;strong&gt;off&lt;/strong&gt;. LTE seems to block it.[/quote]
&lt;p&gt;&lt;span&gt;Yes, this is correct. From &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf9151/page/gps.html"&gt;nRF9151 Datasheet GPS receiver&lt;/a&gt; -&amp;nbsp;GPS receiver operation is time multiplexed with the LTE modem, and GPS and QZSS position can be received while the LTE modem is in RRC Idle mode, power saving mode (PSM), or completely deactivated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple Issues Connecting nRF9151 to QM13345 Antenna Switch (No RFFE Support?)</title><link>https://devzone.nordicsemi.com/thread/550746?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 22:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e31cbae8-16e0-457e-87aa-01acf068a7f0</guid><dc:creator>mystic</dc:creator><description>&lt;p&gt;I&amp;#39;m using MAGPIO exclusively and the CESQ is still 99,99,255,255. I am not sure why. I am using the sample applications from&amp;nbsp;&lt;a id="" href="https://github.com/Conexiotechnologies/conexio-firmware-sdk/tree/main/samples/conexio_stratus"&gt;https://github.com/Conexiotechnologies/conexio-firmware-sdk/tree/main/samples/conexio_stratus&lt;/a&gt;&amp;nbsp;and modifying it for my board.&lt;/p&gt;
&lt;p&gt;From what I&amp;#39;m seeing the COEX2 isn&amp;#39;t being activated (pasted the pin diagram below):&lt;/p&gt;
&lt;p&gt;The GNSS &lt;strong&gt;IS&lt;/strong&gt; working as long as LTE is &lt;strong&gt;off&lt;/strong&gt;. LTE seems to block it.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; *** Booting nRF Connect SDK v3.0.2-89ba1294ac9b ***
00&amp;gt; *** Using Zephyr OS v4.0.99-f791c49f492c ***
00&amp;gt; [00:00:00.249,511] &amp;lt;inf&amp;gt; GNSS_sample: Stratus GNSS sample started
00&amp;gt; [00:00:00.249,603] &amp;lt;inf&amp;gt; GNSS_sample: Configuring modem for LTE + GNSS operation...
00&amp;gt; [00:00:02.520,446] &amp;lt;inf&amp;gt; GNSS_sample: Modem ready
00&amp;gt; [00:00:02.520,874] &amp;lt;inf&amp;gt; GNSS_sample: Modem FW: mfw_nrf91x1_2.0.2
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:02.521,392] &amp;lt;inf&amp;gt; GNSS_sample: IMEI: 359404233656629
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:02.521,423] &amp;lt;inf&amp;gt; GNSS_sample: Configuring RF front-end for LTE + GNSS...
00&amp;gt; [00:00:02.522,521] &amp;lt;wrn&amp;gt; GNSS_sample: RF power pin still low after drive-strength boost
00&amp;gt; [00:00:02.522,552] &amp;lt;inf&amp;gt; GNSS_sample: Configuring QM13345 MIPI switch for LTE path
00&amp;gt; [00:00:02.529,113] &amp;lt;wrn&amp;gt; GNSS_sample: QM13345 not found at USID 0x00 (65536), trying 0x0C
00&amp;gt; [00:00:02.529,602] &amp;lt;err&amp;gt; GNSS_sample: Failed to register QM13345 switch: 65536
00&amp;gt; [00:00:02.529,602] &amp;lt;wrn&amp;gt; GNSS_sample: Failed to configure MIPI switch: 65536
00&amp;gt; [00:00:02.529,632] &amp;lt;inf&amp;gt; GNSS_sample: Programming MAGPIO and COEX0 for Stratus board
00&amp;gt; [00:00:02.530,456] &amp;lt;inf&amp;gt; GNSS_sample: MAGPIO programmed: OK
00&amp;gt; [00:00:02.531,005] &amp;lt;inf&amp;gt; GNSS_sample: COEX0 programmed: OK
00&amp;gt; [00:00:02.531,005] &amp;lt;inf&amp;gt; GNSS_sample: Setting modem to CFUN=0...
00&amp;gt; [00:00:03.565,490] &amp;lt;inf&amp;gt; GNSS_sample: Enabling LTE-M + GNSS mode...
00&amp;gt; [00:00:03.572,387] &amp;lt;inf&amp;gt; GNSS_sample: Setting modem to full functionality mode (CFUN=1)...
00&amp;gt; [00:00:03.610,748] &amp;lt;inf&amp;gt; GNSS_sample: Waiting for LTE network registration...
00&amp;gt; [00:00:18.611,450] &amp;lt;inf&amp;gt; GNSS_sample: System mode: %XSYSTEMMODE: 1,0,1,0
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:18.611,816] &amp;lt;inf&amp;gt; GNSS_sample: Functional mode: +CFUN: 1
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:18.612,243] &amp;lt;inf&amp;gt; GNSS_sample: LTE Registration: +CEREG: 0,4
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:18.612,640] &amp;lt;inf&amp;gt; GNSS_sample: GPRS attach: +CGATT: 0
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:18.613,098] &amp;lt;inf&amp;gt; GNSS_sample: Signal quality: +CSQ: 99,99
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:18.613,555] &amp;lt;inf&amp;gt; GNSS_sample: Extended signal quality: +CESQ: 99,99,255,255,255,255
00&amp;gt; OK
00&amp;gt; &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is my main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2024-2025 Conexio Technologies, Inc
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 *
 * Enhanced GNSS Sample with proper modem configuration
 */

#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/logging/log.h&amp;gt;
#include &amp;lt;zephyr/drivers/gpio.h&amp;gt;
#include &amp;lt;modem/nrf_modem_lib.h&amp;gt;
#include &amp;lt;modem/lte_lc.h&amp;gt;
#include &amp;lt;dk_buttons_and_leds.h&amp;gt;
#include &amp;lt;nrf_modem_at.h&amp;gt;
#include &amp;lt;nrf_modem_gnss.h&amp;gt;
#include &amp;lt;math.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;hal/nrf_gpio.h&amp;gt;

LOG_MODULE_REGISTER(GNSS_sample, LOG_LEVEL_INF);

/* RF Front-end GPIO definitions */
#define RF_PWR_GPIO_DEV		DT_NODELABEL(gpio0)
#define RF_PWR_ENABLE_PIN	22  /* P0.22 -&amp;gt; RFFE_LTE_ENABLE / COEX2 net */
#define GPS_ENABLE_PIN		19  /* P0.19 -&amp;gt; GPS_EN, low selects LTE path */

/* LED definitions */
#define GNSS_SEARCHING_LED	DK_LED1
#define GNSS_FIX_LED		DK_LED2
#define GNSS_BLOCKED_LED	DK_LED3
#define ERROR_LED		DK_LED4

/* Button definitions */
#define START_GNSS_BTN		DK_BTN1_MSK
#define STOP_GNSS_BTN		DK_BTN2_MSK

/* Define the PVT data frame variable */
static struct nrf_modem_gnss_pvt_data_frame pvt_data;

/* Declare helper variables to find the TTFF */
static int64_t gnss_start_time;
static bool first_fix = false;

static K_SEM_DEFINE(gnss_fix_sem, 0, 1);

/* LTE event handler - simplified version */
static void lte_handler(const struct lte_lc_evt *evt)
{
	if (!evt) {
		return;
	}

	switch (evt-&amp;gt;type) {
	case LTE_LC_EVT_NW_REG_STATUS:
		LOG_INF(&amp;quot;CEREG status: %d&amp;quot;, evt-&amp;gt;nw_reg_status);
		if (evt-&amp;gt;nw_reg_status == LTE_LC_NW_REG_REGISTERED_HOME || 
		    evt-&amp;gt;nw_reg_status == LTE_LC_NW_REG_REGISTERED_ROAMING) {
			LOG_INF(&amp;quot;LTE network registered!&amp;quot;);
		}
		break;
	case LTE_LC_EVT_LTE_MODE_UPDATE:
		LOG_INF(&amp;quot;LTE mode update: %d&amp;quot;, evt-&amp;gt;lte_mode);
		break;
	case LTE_LC_EVT_RRC_UPDATE:
		LOG_INF(&amp;quot;RRC %s&amp;quot;,
			evt-&amp;gt;rrc_mode == LTE_LC_RRC_MODE_CONNECTED ? &amp;quot;connected&amp;quot; : &amp;quot;idle&amp;quot;);
		break;
	default:
		LOG_DBG(&amp;quot;Unhandled LTE event: %d&amp;quot;, evt-&amp;gt;type);
		break;
	}
}

/* RF Front-end configuration functions */
static int configure_rf_front_end(void)
{
	int err;
	const struct device *gpio_dev = DEVICE_DT_GET(RF_PWR_GPIO_DEV);

	LOG_INF(&amp;quot;Configuring RF front-end for LTE + GNSS...&amp;quot;);

	if (!device_is_ready(gpio_dev)) {
		LOG_ERR(&amp;quot;GPIO0 device not ready&amp;quot;);
		return -ENODEV;
	}

	/* Configure RF power enable pin (COEX2) */
	err = gpio_pin_configure(gpio_dev, RF_PWR_ENABLE_PIN, 
				 GPIO_OUTPUT_LOW | GPIO_PUSH_PULL | GPIO_ACTIVE_HIGH);
	if (err) {
		LOG_ERR(&amp;quot;Failed to configure RF power pin: %d&amp;quot;, err);
		return err;
	}

	/* Configure GPS enable pin for antenna switching */
	err = gpio_pin_configure(gpio_dev, GPS_ENABLE_PIN, 
				 GPIO_OUTPUT_LOW | GPIO_PUSH_PULL | GPIO_ACTIVE_HIGH);
	if (err) {
		LOG_ERR(&amp;quot;Failed to configure GPS_EN pin: %d&amp;quot;, err);
		return err;
	}

	/* Boost drive strength for COEX2 pin using Nordic HAL - exact match to working diagnostics */
	nrf_gpio_pin_drive_t drive = NRF_GPIO_PIN_H0H1;
	nrf_gpio_reconfigure(NRF_GPIO_PIN_MAP(0, RF_PWR_ENABLE_PIN), NULL, NULL, NULL, &amp;amp;drive, NULL);

	/* Enable RF power, set GPS_EN low for LTE path initially - exact sequence */
	gpio_pin_set(gpio_dev, RF_PWR_ENABLE_PIN, 1);
	k_sleep(K_MSEC(1));  /* Let the power rail settle */

	/* Verify COEX2 is high - exact same check as working diagnostics */
	if (!gpio_pin_get(gpio_dev, RF_PWR_ENABLE_PIN)) {
		LOG_WRN(&amp;quot;RF power pin still low after drive-strength boost&amp;quot;);
	} else {
		LOG_INF(&amp;quot;RF power switch asserted, GPS_EN held low&amp;quot;);
	}

	/* Explicitly set GPS_EN low after RF power is on */
	gpio_pin_set(gpio_dev, GPS_ENABLE_PIN, 0);

	return 0;
}

static int configure_qm13345_switch(void)
{
	int err;
	char response[64];

	LOG_INF(&amp;quot;Configuring QM13345 MIPI switch for LTE path&amp;quot;);

	/* Try to register QM13345 at USID 0x00 first - matching working lte_diagnostics */
	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT%%XMIPIRFFEDEV=0,0&amp;quot;);
	if (err) {
		LOG_WRN(&amp;quot;QM13345 not found at USID 0x00 (%d), trying 0x0C&amp;quot;, err);
		err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT%%XMIPIRFFEDEV=0,12&amp;quot;);
		if (err) {
			LOG_ERR(&amp;quot;Failed to register QM13345 switch: %d&amp;quot;, err);
			return err;
		}
	}

	/* Configure switch for LTE path */
	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT%%XMIPIRFFECTRL=0,0,1,0x1C,0x01&amp;quot;);
	if (err) {
		LOG_ERR(&amp;quot;Failed to configure QM13345 INIT phase: %d&amp;quot;, err);
		return err;
	}

	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT%%XMIPIRFFECTRL=0,1,1,0x1C,0x01&amp;quot;);
	if (err) {
		LOG_ERR(&amp;quot;Failed to configure QM13345 ON phase: %d&amp;quot;, err);
		return err;
	}

	LOG_INF(&amp;quot;QM13345 switch locked to RF1&amp;quot;);
	return 0;
}

static int configure_magpio_and_coex(void)
{
	int err;
	char response[128];

	LOG_INF(&amp;quot;Programming MAGPIO and COEX0 for Stratus board&amp;quot;);

	/* Configure MAGPIO for LTE bands */
	err = nrf_modem_at_cmd(response, sizeof(response),
		&amp;quot;AT%%XMAGPIO=1,1,1,7,1,746,803,2,698,748,2,1710,2200,3,824,894,&amp;quot;
		&amp;quot;4,880,960,5,791,849,7,1565,1586&amp;quot;);
	if (err) {
		LOG_ERR(&amp;quot;MAGPIO programming failed: %d&amp;quot;, err);
		return err;
	}
	LOG_INF(&amp;quot;MAGPIO programmed: OK&amp;quot;);

	/* Configure COEX0 for GNSS coexistence */
	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT%%XCOEX0=1,1,1565,1586&amp;quot;);
	if (err) {
		LOG_ERR(&amp;quot;COEX0 programming failed: %d&amp;quot;, err);
		return err;
	}
	LOG_INF(&amp;quot;COEX0 programmed: OK&amp;quot;);

	return 0;
}


/**
 * @brief Configure modem for LTE + GNSS operation with proper RF front-end setup
 */
static int modem_configure_for_lte_gnss(void)
{
	int err;
	char response[64];

	LOG_INF(&amp;quot;Configuring modem for LTE + GNSS operation...&amp;quot;);

	/* Initialize modem library first */
	err = nrf_modem_lib_init();
	if (err) {
		if (err == -EALREADY) {
			LOG_INF(&amp;quot;Modem already initialized&amp;quot;);
		} else {
			LOG_ERR(&amp;quot;Failed to initialize modem library: %d&amp;quot;, err);
			return err;
		}
	}

	/* Wait for modem to be ready */
	k_sleep(K_SECONDS(2));

	/* Test modem communication */
	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT&amp;quot;);
	if (err) {
		LOG_ERR(&amp;quot;Modem not responding: %d&amp;quot;, err);
		return err;
	}
	LOG_INF(&amp;quot;Modem ready&amp;quot;);

	/* Get modem info */
	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT+CGMR&amp;quot;);
	if (err == 0) {
		LOG_INF(&amp;quot;Modem FW: %s&amp;quot;, response);
	}

	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT+CGSN&amp;quot;);
	if (err == 0) {
		LOG_INF(&amp;quot;IMEI: %s&amp;quot;, response);
	}

	/* Now configure the RF front-end */
	err = configure_rf_front_end();
	if (err) {
		LOG_ERR(&amp;quot;Failed to configure RF front-end: %d&amp;quot;, err);
		return err;
	}

	/* Configure QM13345 MIPI switch */
	err = configure_qm13345_switch();
	if (err) {
		LOG_WRN(&amp;quot;Failed to configure MIPI switch: %d&amp;quot;, err);
		/* Continue without MIPI switch - might not be present */
	}

	/* Configure MAGPIO and COEX0 */
	err = configure_magpio_and_coex();
	if (err) {
		LOG_WRN(&amp;quot;Failed to configure antenna settings: %d&amp;quot;, err);
		/* Continue without antenna configuration - will use defaults */
	}

	/* Turn off modem to change system mode */
	LOG_INF(&amp;quot;Setting modem to CFUN=0...&amp;quot;);
	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT+CFUN=0&amp;quot;);
	if (err) {
		LOG_WRN(&amp;quot;CFUN=0 request failed: %d&amp;quot;, err);
		/* Continue anyway - modem might already be in correct state */
	}
	k_sleep(K_SECONDS(1));

	/* Enable LTE-M + GNSS in system mode (1,0,1,0) */
	LOG_INF(&amp;quot;Enabling LTE-M + GNSS mode...&amp;quot;);
	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT%%XSYSTEMMODE=1,0,1,0&amp;quot;);
	if (err) {
		LOG_ERR(&amp;quot;Failed to set system mode: %d&amp;quot;, err);
		return err;
	}

	/* Set modem to full functionality mode with LTE enabled (CFUN=1) */
	LOG_INF(&amp;quot;Setting modem to full functionality mode (CFUN=1)...&amp;quot;);
	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT+CFUN=1&amp;quot;);
	if (err) {
		LOG_ERR(&amp;quot;Failed to set CFUN=1: %d&amp;quot;, err);
		return err;
	}

	/* Wait for modem to connect to network automatically */
	LOG_INF(&amp;quot;Waiting for LTE network registration...&amp;quot;);
	k_sleep(K_SECONDS(15));

	/* Verify configuration */
	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT%%XSYSTEMMODE?&amp;quot;);
	if (err == 0) {
		LOG_INF(&amp;quot;System mode: %s&amp;quot;, response);
	}

	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT+CFUN?&amp;quot;);
	if (err == 0) {
		LOG_INF(&amp;quot;Functional mode: %s&amp;quot;, response);
	}

	/* Check LTE registration status and signal quality */
	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT+CEREG?&amp;quot;);
	if (err == 0) {
		LOG_INF(&amp;quot;LTE Registration: %s&amp;quot;, response);
	}

	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT+CGATT?&amp;quot;);
	if (err == 0) {
		LOG_INF(&amp;quot;GPRS attach: %s&amp;quot;, response);
	}

	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT+CSQ&amp;quot;);
	if (err == 0) {
		LOG_INF(&amp;quot;Signal quality: %s&amp;quot;, response);
	}

	err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT+CESQ&amp;quot;);
	if (err == 0) {
		LOG_INF(&amp;quot;Extended signal quality: %s&amp;quot;, response);
	}

	return 0;
}

static int modem_init(void)
{
	/* Modem initialization is now handled in modem_configure_for_lte_gnss() */
	return 0;
}

/* Define a function to log fix data in a readable format */
static void print_fix_data(struct nrf_modem_gnss_pvt_data_frame *pvt_data)
{
	LOG_INF(&amp;quot;===========================================&amp;quot;);
	LOG_INF(&amp;quot;           GPS POSITION ACQUIRED          &amp;quot;);
	LOG_INF(&amp;quot;===========================================&amp;quot;);
	LOG_INF(&amp;quot;Latitude:       %.06f&amp;#176;&amp;quot;, pvt_data-&amp;gt;latitude);
	LOG_INF(&amp;quot;Longitude:      %.06f&amp;#176;&amp;quot;, pvt_data-&amp;gt;longitude);
	LOG_INF(&amp;quot;Altitude:       %.01f m&amp;quot;, pvt_data-&amp;gt;altitude);
	LOG_INF(&amp;quot;Accuracy:       %.01f m&amp;quot;, pvt_data-&amp;gt;accuracy);
	LOG_INF(&amp;quot;Speed:          %.01f m/s&amp;quot;, pvt_data-&amp;gt;speed);
	LOG_INF(&amp;quot;Heading:        %.01f&amp;#176;&amp;quot;, pvt_data-&amp;gt;heading);
	LOG_INF(&amp;quot;Time (UTC):     %04u-%02u-%02u %02u:%02u:%02u.%03u&amp;quot;,
	       pvt_data-&amp;gt;datetime.year,
	       pvt_data-&amp;gt;datetime.month,
	       pvt_data-&amp;gt;datetime.day,
	       pvt_data-&amp;gt;datetime.hour,
	       pvt_data-&amp;gt;datetime.minute,
	       pvt_data-&amp;gt;datetime.seconds,
	       pvt_data-&amp;gt;datetime.ms);
	LOG_INF(&amp;quot;Google Maps:    https://maps.google.com/?q=%.6f,%.6f&amp;quot;,
	       pvt_data-&amp;gt;latitude, pvt_data-&amp;gt;longitude);
	LOG_INF(&amp;quot;===========================================&amp;quot;);
}

static void gnss_event_handler(int event)
{
	int err;
	static int satellites_tracked = 0;

	switch (event) {
	case NRF_MODEM_GNSS_EVT_PVT:
		err = nrf_modem_gnss_read(&amp;amp;pvt_data, sizeof(pvt_data), NRF_MODEM_GNSS_DATA_PVT);
		if (err) {
			LOG_ERR(&amp;quot;Failed to read PVT data: %d&amp;quot;, err);
			return;
		}

		/* Count satellites */
		satellites_tracked = 0;
		for (int i = 0; i &amp;lt; 12; i++) {
			if (pvt_data.sv[i].signal != 0) {
				satellites_tracked++;
			}
		}

		if (pvt_data.flags &amp;amp; NRF_MODEM_GNSS_PVT_FLAG_FIX_VALID) {
			/* Fix acquired! */
			dk_set_led_off(GNSS_SEARCHING_LED);
			dk_set_led_on(GNSS_FIX_LED);

			print_fix_data(&amp;amp;pvt_data);

			/* Print time to first fix */
			if (!first_fix) {
				LOG_INF(&amp;quot;Time to first fix: %lld seconds&amp;quot;,
					(k_uptime_get() - gnss_start_time) / 1000);
				first_fix = true;
			}

			k_sem_give(&amp;amp;gnss_fix_sem);
		} else {
			/* No fix yet */
			dk_set_led_on(GNSS_SEARCHING_LED);
			dk_set_led_off(GNSS_FIX_LED);

			LOG_INF(&amp;quot;GNSS: Searching for fix... (Satellites tracked: %d)&amp;quot;,
				satellites_tracked);
		}
		break;

	case NRF_MODEM_GNSS_EVT_FIX:
		LOG_INF(&amp;quot;GNSS: Fix event&amp;quot;);
		break;

	case NRF_MODEM_GNSS_EVT_AGNSS_REQ:
		LOG_WRN(&amp;quot;GNSS: A-GNSS data requested&amp;quot;);
		break;

	case NRF_MODEM_GNSS_EVT_BLOCKED:
		LOG_WRN(&amp;quot;GNSS: Blocked by LTE&amp;quot;);
		dk_set_led_on(GNSS_BLOCKED_LED);
		break;

	case NRF_MODEM_GNSS_EVT_UNBLOCKED:
		LOG_INF(&amp;quot;GNSS: Unblocked&amp;quot;);
		dk_set_led_off(GNSS_BLOCKED_LED);
		break;

	case NRF_MODEM_GNSS_EVT_PERIODIC_WAKEUP:
		LOG_DBG(&amp;quot;GNSS: Periodic wakeup&amp;quot;);
		break;

	case NRF_MODEM_GNSS_EVT_SLEEP_AFTER_FIX:
		LOG_INF(&amp;quot;GNSS: Sleep after fix&amp;quot;);
		break;

	case NRF_MODEM_GNSS_EVT_SLEEP_AFTER_TIMEOUT:
		LOG_WRN(&amp;quot;GNSS: Sleep after timeout - no fix&amp;quot;);
		break;

	default:
		LOG_DBG(&amp;quot;GNSS: Unknown event %d&amp;quot;, event);
		break;
	}
}

int main(void)
{
	int err;
	
	LOG_INF(&amp;quot;Stratus GNSS sample started&amp;quot;);

	if (dk_leds_init() != 0) {
		LOG_ERR(&amp;quot;Failed to initialize the LEDs Library&amp;quot;);
	}

	/* Simple GPIO test first to verify pin driving */
	err = configure_rf_front_end();
	if (err) {
		LOG_ERR(&amp;quot;Failed to configure RF front-end: %d&amp;quot;, err);
		return 0;
	}

	/* Test GPIO toggling to verify pin is working */
	const struct device *gpio_dev = DEVICE_DT_GET(RF_PWR_GPIO_DEV);
	LOG_INF(&amp;quot;Testing GPIO pin toggling...&amp;quot;);
	for (int i = 0; i &amp;lt; 5; i++) {
		gpio_pin_set(gpio_dev, RF_PWR_ENABLE_PIN, 1);
		LOG_INF(&amp;quot;Pin %d set HIGH, reading: %d&amp;quot;, RF_PWR_ENABLE_PIN, gpio_pin_get(gpio_dev, RF_PWR_ENABLE_PIN));
		k_sleep(K_SECONDS(2));
		
		gpio_pin_set(gpio_dev, RF_PWR_ENABLE_PIN, 0);
		LOG_INF(&amp;quot;Pin %d set LOW, reading: %d&amp;quot;, RF_PWR_ENABLE_PIN, gpio_pin_get(gpio_dev, RF_PWR_ENABLE_PIN));
		k_sleep(K_SECONDS(2));
	}

	/* Leave pin high for modem test */
	gpio_pin_set(gpio_dev, RF_PWR_ENABLE_PIN, 1);
	LOG_INF(&amp;quot;Pin %d left HIGH for modem test, reading: %d&amp;quot;, RF_PWR_ENABLE_PIN, gpio_pin_get(gpio_dev, RF_PWR_ENABLE_PIN));
	k_sleep(K_SECONDS(3));

	err = modem_configure_for_lte_gnss();
	if (err) {
		LOG_ERR(&amp;quot;Failed to configure modem for LTE + GNSS&amp;quot;);
		return 0;
	}

	/* Wait for LTE connection to establish before starting GNSS */
	LOG_INF(&amp;quot;LTE + GNSS mode activated, waiting for LTE connection...&amp;quot;);
	k_sleep(K_SECONDS(10));

	/* Register the GNSS event handler */
	if (nrf_modem_gnss_event_handler_set(gnss_event_handler) != 0) {
		LOG_ERR(&amp;quot;Failed to set GNSS event handler&amp;quot;);
		return 0;
	}

	/* Set the GNSS fix interval and GNSS fix retry period */
	if (nrf_modem_gnss_fix_interval_set(CONFIG_GNSS_PERIODIC_INTERVAL) != 0) {
		LOG_ERR(&amp;quot;Failed to set GNSS fix interval&amp;quot;);
		return 0;
	}

	if (nrf_modem_gnss_fix_retry_set(CONFIG_GNSS_PERIODIC_TIMEOUT) != 0) {
		LOG_ERR(&amp;quot;Failed to set GNSS fix retry&amp;quot;);
		return 0;
	}

	/* Set GNSS to highest priority mode */
	if (nrf_modem_gnss_prio_mode_enable() != 0) {
		LOG_WRN(&amp;quot;Failed to enable GNSS priority mode, continuing anyway&amp;quot;);
	} else {
		LOG_INF(&amp;quot;GNSS priority mode enabled&amp;quot;);
	}

	/* Start the GNSS receiver */
	LOG_INF(&amp;quot;Starting GNSS&amp;quot;);
	if (nrf_modem_gnss_start() != 0) {
		LOG_ERR(&amp;quot;Failed to start GNSS&amp;quot;);
		return 0;
	}

	/* Log the current system uptime */
	gnss_start_time = k_uptime_get();

	return 0;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And the pin diagram:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1759790063452v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I have a feeling it might just be a software issue I&amp;#39;m not seeing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple Issues Connecting nRF9151 to QM13345 Antenna Switch (No RFFE Support?)</title><link>https://devzone.nordicsemi.com/thread/550440?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2025 08:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d63a858f-f3fa-4a6f-9911-eaf498b352de</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you gone through our AT commands documentation? A quick search in the AI search tool gives the answer&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;The CSQ command reports 99,99 when the signal quality is &amp;quot;not detectable&amp;quot; or &amp;quot;not known.&amp;quot; This typically happens when the Radio Access Technology (RAT) is not supported (for example, if the modem is &lt;strong&gt;not operating in a 2G or 3G network&lt;/strong&gt;, or if there is no signal available). For LTE and other E-UTRA networks, you should use the +CESQ or %CESQ commands instead, as CSQ is not applicable for those technologies.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;What output do you get if you use the +CESQ or %CESQ commands instead?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CEREG: 0,4 - indicates&amp;nbsp;Unknown (for example, out of&amp;nbsp;&lt;a title="The network architecture defined for the E-UTRA radio interface consisting of evolved Node Bs (eNB) and providing user plane and control plane protocol terminations towards the User Equipment (UE)." href="https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/dita_common/glossary/glossary.html#eutran"&gt;&lt;dfn&gt;Evolved Terrestrial Radio Access Network (E-UTRAN)&lt;/dfn&gt;&lt;/a&gt;&amp;nbsp;coverage). See &lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/REF/at_commands/nw_service/cereg.html"&gt;Network registration status notification +CEREG&lt;/a&gt;&amp;nbsp;for more information&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If the issue still persists I would recommend a full hardware review including schematics and layout.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple Issues Connecting nRF9151 to QM13345 Antenna Switch (No RFFE Support?)</title><link>https://devzone.nordicsemi.com/thread/550398?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2025 18:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9d93b46-0c36-420d-b630-bdfada5d4b26</guid><dc:creator>mystic</dc:creator><description>&lt;p&gt;Hey thanks for your input. I took your advice for the KConfig values and defaulted strictly to MAGPIO. However I&amp;#39;m still getting a 99,99 for the CSQ and I&amp;#39;m not sure why. Here&amp;#39;s the log:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:00:00.400,024] &amp;lt;inf&amp;gt; LSM6DSO: Initialize device lsm6dso@6b
00&amp;gt; [00:00:00.407,684] &amp;lt;inf&amp;gt; LSM6DSO: chip id 0x6a
00&amp;gt; *** Booting My Application v1.0.0-704e3ba7cb7b ***
00&amp;gt; *** Using nRF Connect SDK v3.0.2-89ba1294ac9b ***
00&amp;gt; *** Using Zephyr OS v4.0.99-f791c49f492c ***
00&amp;gt; [00:00:00.426,513] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:00.434,661] &amp;lt;inf&amp;gt; magpio_test: MAGPIO Configuration Test
00&amp;gt; [00:00:00.441,467] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:00.449,615] &amp;lt;inf&amp;gt; magpio_test: Testing if MAGPIO configuration is needed
00&amp;gt; [00:00:00.457,855] &amp;lt;inf&amp;gt; magpio_test: for nRF9151 RF operation
00&amp;gt; [00:00:00.464,538] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:00.472,686] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:02.477,233] &amp;lt;inf&amp;gt; magpio_test: Initializing modem...
00&amp;gt; [00:00:02.739,227] &amp;lt;dbg&amp;gt; modem_antenna: set_antenna_configuration: Setting configuration: AT%XCOEX0=1,1,1565,1586
00&amp;gt; [00:00:02.757,202] &amp;lt;dbg&amp;gt; modem_antenna: set_antenna_configuration: Setting configuration: AT%XMIPIRFFEDEV=1,7,71,198,248
00&amp;gt; [00:00:02.775,817] &amp;lt;dbg&amp;gt; modem_antenna: set_antenna_configuration: Setting configuration: AT%XMIPIRFFECTRL=1,0,1,28,248
00&amp;gt; [00:00:02.794,372] &amp;lt;dbg&amp;gt; modem_antenna: set_antenna_configuration: Setting configuration: AT%XMIPIRFFECTRL=1,1,1,28,56,13,0,0,8,8,715,4,4,770,12,12,829,11,11,863,130,130,892,1,1,939,129,129,978,26,26,1042,8,8,1118,4,4,1270,12,12,1386,14,14,1523,130,130,2200
00&amp;gt; [00:00:02.825,805] &amp;lt;dbg&amp;gt; modem_antenna: set_antenna_configuration: Setting configuration: AT%XMIPIRFFECTRL=1,2,1,28,184
00&amp;gt; [00:00:02.844,390] &amp;lt;dbg&amp;gt; modem_antenna: set_antenna_configuration: Setting configuration: AT%XMIPIRFFECTRL=1,3,1,28,184
00&amp;gt; [00:00:02.864,349] &amp;lt;inf&amp;gt; magpio_test: Modem initialized
00&amp;gt; [00:00:02.870,391] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:03.874,969] &amp;lt;inf&amp;gt; magpio_test: Checking current MAGPIO configuration:
00&amp;gt; [00:00:03.889,556] &amp;lt;inf&amp;gt; magpio_test:   Current MAGPIO: %XMAGPIO: 1,0,0,1,1,1574,1577
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; 
00&amp;gt; [00:00:03.898,925] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:03.903,411] &amp;lt;inf&amp;gt; magpio_test: Current COEX0 configuration:
00&amp;gt; [00:00:03.917,083] &amp;lt;inf&amp;gt; magpio_test:   %XCOEX0: 1,1,1565,1586
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:03.924,316] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:03.928,833] &amp;lt;inf&amp;gt; magpio_test: Current RFFE configuration:
00&amp;gt; [00:00:03.943,115] &amp;lt;inf&amp;gt; magpio_test:   %XMIPIRFFEDEV: 1,7,71,198,248
00&amp;gt; INIT: 1,0,1,28,248
00&amp;gt; ON: 1,1,1,28,56,13,0,0,8,8,715,4,4,770,12,12,829,11,11,863,130,130,892,1,1,939,129,129,978,26,26,1042,8,8,1118,4,4,1270,12,12,1386,14,14,1523,130,130,2200
00&amp;gt; OFF: 1,2,1,28,184
00&amp;gt; PWROFF: 1,3,1,28,184
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:03.970,855] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:03.975,341] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:03.983,489] &amp;lt;inf&amp;gt; magpio_test: Attempting MAGPIO Configuration
00&amp;gt; [00:00:03.990,844] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:03.998,962] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:04.003,479] &amp;lt;inf&amp;gt; magpio_test: Configuring MAGPIO (nRF9160 DK style)...
00&amp;gt; [00:00:04.018,218] &amp;lt;inf&amp;gt; magpio_test:   MAGPIO configured: OK
00&amp;gt; [00:00:04.024,810] &amp;lt;inf&amp;gt; magpio_test:   Response: OK
00&amp;gt; 
00&amp;gt; [00:00:04.030,792] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:04.035,278] &amp;lt;inf&amp;gt; magpio_test: Verifying MAGPIO configuration:
00&amp;gt; [00:00:04.049,224] &amp;lt;inf&amp;gt; magpio_test:   New MAGPIO: %XMAGPIO: 1,0,0,1,1,1574,1577
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:04.058,227] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:04.062,713] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:04.070,861] &amp;lt;inf&amp;gt; magpio_test: Activating Modem with MAGPIO
00&amp;gt; [00:00:04.077,911] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:04.086,059] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:04.090,545] &amp;lt;inf&amp;gt; magpio_test: Setting CFUN=1...
00&amp;gt; [00:00:04.141,723] &amp;lt;inf&amp;gt; magpio_test: Modem activated
00&amp;gt; [00:00:04.147,583] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:07.152,160] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:07.160,339] &amp;lt;inf&amp;gt; magpio_test: Signal Test (30 seconds)
00&amp;gt; [00:00:07.167,022] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:07.175,170] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:12.180,175] &amp;lt;inf&amp;gt; magpio_test: [ 5s] CSQ: +CSQ: 99,99
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:12.187,652] &amp;lt;inf&amp;gt; magpio_test: [ 5s] CEREG: +CEREG: 0,4
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:12.194,915] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:17.199,951] &amp;lt;inf&amp;gt; magpio_test: [10s] CSQ: +CSQ: 99,99
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:17.207,427] &amp;lt;inf&amp;gt; magpio_test: [10s] CEREG: +CEREG: 0,4
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:17.214,691] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:22.219,665] &amp;lt;inf&amp;gt; magpio_test: [15s] CSQ: +CSQ: 99,99
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:22.227,142] &amp;lt;inf&amp;gt; magpio_test: [15s] CEREG: +CEREG: 0,4
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:22.234,436] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:27.239,379] &amp;lt;inf&amp;gt; magpio_test: [20s] CSQ: +CSQ: 99,99
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:27.246,856] &amp;lt;inf&amp;gt; magpio_test: [20s] CEREG: +CEREG: 0,4
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:27.254,150] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:32.259,094] &amp;lt;inf&amp;gt; magpio_test: [25s] CSQ: +CSQ: 99,99
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:32.266,723] &amp;lt;inf&amp;gt; magpio_test: [25s] CEREG: +CEREG: 0,4
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:32.274,017] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:37.278,961] &amp;lt;inf&amp;gt; magpio_test: [30s] CSQ: +CSQ: 99,99
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:37.286,590] &amp;lt;inf&amp;gt; magpio_test: [30s] CEREG: +CEREG: 0,4
00&amp;gt; OK
00&amp;gt; 
00&amp;gt; [00:00:37.293,884] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:00:37.298,370] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:37.306,518] &amp;lt;inf&amp;gt; magpio_test: Network Scan Test
00&amp;gt; [00:00:37.312,591] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:00:37.320,739] &amp;lt;inf&amp;gt; magpio_test: Scanning for operators (may take 2 minutes)...
00&amp;gt; [00:00:37.329,406] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:04:32.767,517] &amp;lt;err&amp;gt; magpio_test: Network scan FAILED: 65536
00&amp;gt; [00:04:32.774,719] &amp;lt;err&amp;gt; magpio_test: MAGPIO configuration did not resolve the issue
00&amp;gt; [00:04:32.783,691] &amp;lt;inf&amp;gt; magpio_test: 
00&amp;gt; [00:04:32.788,177] &amp;lt;inf&amp;gt; magpio_test: ========================================
00&amp;gt; [00:04:32.796,325] &amp;lt;inf&amp;gt; magpio_test: Test Complete
00&amp;gt; [00:04:32.802,032] &amp;lt;inf&amp;gt; magpio_test: ========================================&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple Issues Connecting nRF9151 to QM13345 Antenna Switch (No RFFE Support?)</title><link>https://devzone.nordicsemi.com/thread/550383?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2025 14:53:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4451fa3-06d8-4b6b-a186-af420f4ba31a</guid><dc:creator>Maximilian Deubel</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;We are using this configuration with the Thingy:91 X successfully. The modem firmware does support RFFE and uses it actively to control the LTE and GNSS antenna circuitry. You can check the modem antenna KConfig values used for the official board:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config MODEM_ANTENNA_AT_MIPIRFFEDEV
	default &amp;quot;AT%XMIPIRFFEDEV=1,4,71,198,248&amp;quot;
config MODEM_ANTENNA_AT_MIPIRFFECTRL_INIT
	default &amp;quot;AT%XMIPIRFFECTRL=1,0,1,28,248&amp;quot;
config MODEM_ANTENNA_AT_MIPIRFFECTRL_ON
	default &amp;quot;AT%XMIPIRFFECTRL=1,1,1,28,56,13,0,0,8,8,715,4,4,770,12,12,829,11,11,863,130,130,892,1,1,939,129,129,978,26,26,1042,8,8,1118,4,4,1270,12,12,1386,14,14,1523,130,130,2200&amp;quot;
config MODEM_ANTENNA_AT_MIPIRFFECTRL_OFF
	default &amp;quot;AT%XMIPIRFFECTRL=1,2,1,28,184&amp;quot;
config MODEM_ANTENNA_AT_MIPIRFFECTRL_PWROFF
	default &amp;quot;AT%XMIPIRFFECTRL=1,3,1,28,184&amp;quot;
config MODEM_ANTENNA_AT_COEX0
	default &amp;quot;AT\%XCOEX0=1,1,1565,1586&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The &amp;quot;Failed to set configuration&amp;quot; configuration issue occurs because the AT commands in the configuration are invalid.&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t use both MAGPIO + RFFE. Specifically&amp;nbsp;AT_MIPIRFFEDEV and&amp;nbsp;AT_MIPIRFFECTRL_ON are invalid.&lt;/p&gt;
&lt;p&gt;Please take a step back and try to solve the issue without an LLM. What are you trying to accomplish? Do you have a table with frequencies and switch configurations? Is there a specific reason to change the configuration from the one for Thingy:91 X? The schematic is nearly identical.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Max.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple Issues Connecting nRF9151 to QM13345 Antenna Switch (No RFFE Support?)</title><link>https://devzone.nordicsemi.com/thread/550348?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2025 12:00:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0f598a3-529e-4ca3-8b89-eca9439609e8</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the logs it states that&amp;nbsp;&lt;strong&gt;nRF9151 modem firmware 2.0.2 does NOT support RFFE.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:00:16.180,786] &amp;lt;err&amp;gt; main_app: CRITICAL HARDWARE ISSUE DETECTED!
00&amp;gt; [00:00:16.188,232] &amp;lt;err&amp;gt; main_app: ====================================
00&amp;gt; [00:00:16.195,953] &amp;lt;err&amp;gt; main_app: QM13345 antenna switch requires RFFE 2.1 protocol
00&amp;gt; [00:00:16.204,833] &amp;lt;err&amp;gt; main_app: nRF9151 modem firmware 2.0.2 does NOT support RFFE
00&amp;gt; [00:00:16.213,806] &amp;lt;err&amp;gt; main_app: Without RFFE, the antenna switch cannot be controlled
00&amp;gt; [00:00:16.223,052] &amp;lt;err&amp;gt; main_app: The switch may be in an undefined/OFF state&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you provide any information on&amp;nbsp;where this information is printed from?&lt;/p&gt;
&lt;p&gt;Did you try running your code on e.g. Thingy:91X or nRF9151DK?&lt;/p&gt;
&lt;p&gt;Will need to forward your questions to our HW experts.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>