<?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>nRF9160 detecting antenna to prevent high power draw</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113084/nrf9160-detecting-antenna-to-prevent-high-power-draw</link><description>Hello, 
 I have a custom board based on a nRF9160 SiP. It uses a shared antenna for GPS and Cellular, based on this : https://infocenter.nordicsemi.com/index.jsp?topic=%2Fnwp_033%2FWP%2Fnwp_033%2Fnwp_033_intro.html 
 I use a SMA connector, which is accessible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Jul 2024 16:32:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113084/nrf9160-detecting-antenna-to-prevent-high-power-draw" /><item><title>RE: nRF9160 detecting antenna to prevent high power draw</title><link>https://devzone.nordicsemi.com/thread/494869?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 16:32:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feafead4-76e1-4f48-989c-0108b5926571</guid><dc:creator>Michal</dc:creator><description>[quote user="Vincent44"]So, rather than an antenna issue, I tend to think that the modem is capable to detect poor network reception, and adjust its output power, which would explain the higher power consumption without the antenna. Is this behavior possible ?[/quote]
&lt;p&gt;Yes. I have heard that even without antenna nRF9160 is able to connect to the network. It makes sense that the network is asking for a higher power output from the device, since it is much less efficient than with an antenna.&lt;/p&gt;
&lt;p&gt;For a proper antenna disconected/lost connection testing you may need to use some kind of faraday cage (a metal box or similar).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 detecting antenna to prevent high power draw</title><link>https://devzone.nordicsemi.com/thread/494730?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 08:49:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b93f66f-9563-4675-8150-63482419bdc3</guid><dc:creator>Vincent44</dc:creator><description>&lt;p&gt;I made new tests, and my issue might not be directly related to the missing antenna, but rather to bad network coverage.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- I tested again in the same conditions (same board, same place), and I got the following results&lt;/p&gt;
&lt;p&gt;We can see that the power is rather normal during the search, and the high spikes only occur when the device seems to actually pickup something (not sure how exactly the cellular connection process works).&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/Measurement2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In my previous post, the device could find the network almost instantly (even without antenna), which resulted in different interpretation of the measurement.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, rather than an antenna issue, I tend to think that the modem is capable to detect poor network reception, and adjust its output power, which would explain the higher power consumption without the antenna. Is this behavior possible ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 detecting antenna to prevent high power draw</title><link>https://devzone.nordicsemi.com/thread/494174?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 13:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b64a75c7-7c3e-4c0a-9cb2-299df7a036dd</guid><dc:creator>Vincent44</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;Thanks for your quick response.&lt;/p&gt;
&lt;p&gt;The schematic is very similar to what is suggested.&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6622.Schematic.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The code looks like this. I remove all the error checking to make it more readable.&lt;/p&gt;
&lt;p&gt;- Init() is called once at startup&lt;/p&gt;
&lt;p&gt;- Enable() is called whenever I need to restart/reconfigure the modem (for example, if the GPS was used)&lt;pre class="ui-code" data-mode="c_cpp"&gt;void CELLULAR_MODEM_Init(void)
{
	nrf_modem_lib_init();	
	
	// Indicate that the AUX pin is used/redirected for GPS
	nrf_modem_at_printf(&amp;quot;AT%%XANTCFG=1&amp;quot;) ;
		
	// Setup COEX0 to be set to 1 when the frequency used by the modem is in GNSS range.
	// Depending on the hardware, this is used to for either :
	// - Enable the GPS frontend (LNA)
	// - Enable power supply for an external active GPS antenna	
	err = nrf_modem_at_printf(&amp;quot;AT%%XCOEX0=1,1,1550,1615&amp;quot;) ; 	// Using the entire LNA operating frequency range

	lte_lc_init() ;
}


void CELLULAR_MODEM_Enable(void)
{
	// Make sure modem is stopped
	nrf_modem_at_printf(&amp;quot;AT+CFUN=0&amp;quot;) ;

	// Setup mode: enable LTE-M and NB-IOT. Disable GNSS.
	nrf_modem_at_printf(&amp;quot;AT%%XSYSTEMMODE=1,1,0,0&amp;quot;) ;	// No preference: Auto
		
	// Start modem 		
	nrf_modem_at_printf(&amp;quot;AT+CFUN=1&amp;quot;) ;

	// Enable PSM
	lte_lc_psm_req(enablePSM);

	// Connect to netwrok
	 lte_lc_connect_async(lte_handler);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 detecting antenna to prevent high power draw</title><link>https://devzone.nordicsemi.com/thread/494154?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 13:04:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0a09f24-b495-4487-a0d3-f2d7bbddbc14</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will need to discuss the issue internally with our antenna experts. Are you able to provide more information on your setup i.e. schematics and layout, or have you had a design review of your custom board?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our development kit uses the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/modem/modem_antenna.html"&gt;modem antenna&amp;nbsp;&lt;/a&gt;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/modem/modem_antenna.html"&gt;library which writes the MAGPIO and COEX0 configuration to the modem&lt;/a&gt; after the&amp;nbsp;&lt;/span&gt;&lt;a title="(in nrfxlib v2.7.0)" href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrfxlib/nrf_modem/README.html#nrf-modem"&gt;&lt;span&gt;Modem library&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;has been initialized. The configuration depends on the selected board and the used GNSS antenna type, onboard or external.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is done at startup of the board. E.g. the Thingy:91 has a combined antenna for LTE and GNSS, and uses the following setup to configure the MAGPIO through the&amp;nbsp;QM12038 RF switches:&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/pastedimage1721134949368v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>