<?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>Control of MAGPIO during %XRFTEST</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93020/control-of-magpio-during-xrftest</link><description>Hi! 
 I have an issue with control of the MAGPIO during RFTEST procedures. 
 The device is using RF Switch (like Thingy91) and I want to perform SNR/Received signal power tests to make sure the matching network is properly working. 
 I have the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Oct 2022 12:56:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93020/control-of-magpio-during-xrftest" /><item><title>RE: Control of MAGPIO during %XRFTEST</title><link>https://devzone.nordicsemi.com/thread/391676?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 12:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6166271-e03f-48cd-8ec4-20904511c7d9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad to hear that the issue was resolved.&lt;/p&gt;
&lt;p&gt;Hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control of MAGPIO during %XRFTEST</title><link>https://devzone.nordicsemi.com/thread/391663?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 12:34:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a95efa-2043-44de-b359-b79dfb403508</guid><dc:creator>McRancor</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I now checked again everything with a proper oscilloscope setup and I can confirm my original assumption was wrong.&lt;/p&gt;
&lt;p&gt;The MAGPIO are not set immediately, however launching the RF test does switch them on, and also they stay on after the test, until the whole setup is relaunched.&lt;/p&gt;
&lt;p&gt;Your question about checking GPIO after issuing XRFTEST was the spark, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control of MAGPIO during %XRFTEST</title><link>https://devzone.nordicsemi.com/thread/391633?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 11:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05326b98-6101-4088-95e8-6efbd2dfc050</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems that your MAGPIO mask is setting for &amp;quot;state&amp;quot; 7 (5th input), which is GPS, but the test parameter is for RX SNR.&lt;/p&gt;
&lt;p&gt;Try this mask:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT%XMAGPIO=1,1,1,7,1,746,803,2,698,746,2,1710,2200,3,849,894,4,894,960,6,803,849,7,1574,1577&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And see if this enables the GPIOs when issuing the XRFTEST RX mode test.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control of MAGPIO during %XRFTEST</title><link>https://devzone.nordicsemi.com/thread/391617?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 11:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f99799eb-13c7-4df1-b9f5-9654a2c8d17f</guid><dc:creator>McRancor</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Let me use this example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;The AT host sample started
AT+CFUN=0
OK
AT%XMAGPIO=1,1,1,1,7,600,2100
OK
AT%XRFTEST=3,1,19,8800,-65,1,0
%XRFTEST: -177,-24516
OK&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The problem is that this MAGPIO setup is not effective while AT+CFUN=0. All MAGPIO are down. Once I switch the modem on - all MAGPIO go to 1.8V (as expected). Taking the modem off causes all MAGPIO to go back to low (0V). Offline modes etc (AT+CFUN=4, 44 etc.) give the same result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control of MAGPIO during %XRFTEST</title><link>https://devzone.nordicsemi.com/thread/391616?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 11:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1db215a-d89f-4b2e-9110-7fc72fefdbb3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]However, the RF SNR test (%XRTEST=3,...) is working reliably only when the modem is offline (AT+CFUN=0). When I&amp;#39;m trying to perform this test while the modem is online, the modem seems to freeze.[/quote]
&lt;p&gt;This is correct. The modem must be offline when using these test commands.&lt;/p&gt;
[quote user=""]- How to control the MAGPIO when the modem is offline, or how to perform SNR tests when the modem is online?[/quote]
&lt;p&gt;Modem must be in offline mode.&lt;/p&gt;
&lt;p&gt;You can use this AT command to set the MAGPIO:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/sip_pin_configuration/xmagpio_set.html?cp=2_1_5_1_0"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/sip_pin_configuration/xmagpio_set.html?cp=2_1_5_1_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How are you setting the MAGPIO before issuing AT%XRFTEST command? Can you share the logs from your side?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>