<?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 toggle gpio with modem active/inactive state</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53292/nrf9160-toggle-gpio-with-modem-active-inactive-state</link><description>Hi, 
 
 I am using ncs 1.0.0 and modem fw version 1.0.1. 
 I am using PSM mode in my firmware. 
 I want to toggle state of one gpio when modem goes in active or inactive state. 
 I am using gpio to control sleep mode of LDO powering the nRF9160. 
 Is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 02 Nov 2019 22:18:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53292/nrf9160-toggle-gpio-with-modem-active-inactive-state" /><item><title>RE: nRF9160 toggle gpio with modem active/inactive state</title><link>https://devzone.nordicsemi.com/thread/218063?ContentTypeID=1</link><pubDate>Sat, 02 Nov 2019 22:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0de5caca-1c7c-4439-b8dd-7bb081fae654</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I think this can be archived if you physically connect the COEX2 pin to a specific GPIO (e.g. P0.31). Then you can use the GPIOTE module to generate an event when this&amp;nbsp;pin changes value and toggle another GPIO (e.g. P0.30) though DPPI.&lt;/p&gt;
&lt;p&gt;COEX2&amp;nbsp;changes value&amp;nbsp;→ GPIOTE event from P0.31 &lt;span&gt;→&amp;nbsp;&lt;/span&gt;DPPI&amp;nbsp;&lt;span&gt;→&amp;nbsp;GPIOTE task&amp;nbsp;on&amp;nbsp;P0.31 (toggles)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;
&lt;div style="left:415px;top:34px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 toggle gpio with modem active/inactive state</title><link>https://devzone.nordicsemi.com/thread/217697?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 08:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e2c8cac-e262-449e-9cab-a894c1b70dfd</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks Simon.&lt;/p&gt;
&lt;p&gt;Is it possible to toggle GPIO based on the state of this COEX2 pin using DPPI ?&lt;/p&gt;
&lt;p&gt;If yes , can you give me any example of it ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 toggle gpio with modem active/inactive state</title><link>https://devzone.nordicsemi.com/thread/216251?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 22:24:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2680459-76e9-4eb0-8bd1-5e8370c4ddab</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I took a closer look at this, and you don&amp;#39;t need to send any AT commands in order to use the COEX interface. One thing you should make sure, if you are using the nRF9160 DK, is that the interface pins 6-8 are routed to the COEX interface. However, if you haven&amp;#39;t changed anything, this should be done by default (Check&amp;nbsp;out the file &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/boards/arm/nrf52840_pca10090/Kconfig#L179"&gt;boards/arm/nrf52840_pca10090/Kconfig&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;To see whether the modem is active or not, attach a 100kΩ pull-down resistor&amp;nbsp;to the COEX2 pin on the P1 connector (see image below), and check&amp;nbsp;its digital value.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ef23caf12bea4685864455225a9fa06a/pastedimage1571782141413v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tested it out with the &lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/udp_with_psm"&gt;udp_with_psm sample&lt;/a&gt;, and configured&amp;nbsp;active time to 1 minute and periodic tau to 90 seconds. I checked the results of COEX2 with a digital analyzer, and it worked as expected:&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1280x960/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ef23caf12bea4685864455225a9fa06a/pastedimage1571783326573v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 toggle gpio with modem active/inactive state</title><link>https://devzone.nordicsemi.com/thread/215813?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 03:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6030ce44-cdc6-48d3-a89b-53b782748c2e</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Please take a look at it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I read the description of COEX0, COEX1 and COEX2 from below link&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fdita%2Fchapters%2Fradio_lte%2Fgnss_coext_if.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fdita%2Fchapters%2Fradio_lte%2Fgnss_coext_if.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;COEX2: Output from the LTE modem to the external device. When active high, indicates that the LTE modem transceiver is turned on.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems COEX2 pin is more suitable than COEX1 for controlling LDO sleep control pin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I don&amp;#39;t know how to make use of that pin.&lt;/p&gt;
&lt;p&gt;I mean , do i need to send any AT command to modem to instruct Modem to toggle this pin when transceiver is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;turned on or off.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 toggle gpio with modem active/inactive state</title><link>https://devzone.nordicsemi.com/thread/215808?ContentTypeID=1</link><pubDate>Sun, 20 Oct 2019 22:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3fb9eb2-2b2c-4c9e-8bbd-62f0846e7cbd</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you tried using &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fdita%2Fchapters%2Fradio_lte%2Fgnss_coext_if.html"&gt;COEX1&lt;/a&gt;, I think it&amp;nbsp;does what you are asking about.&amp;nbsp;I can take a closer look at it if you would like to.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;div style="left:109px;top:-20px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 toggle gpio with modem active/inactive state</title><link>https://devzone.nordicsemi.com/thread/215488?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2019 11:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09f11d1e-0f5a-4c33-a344-b2f6c8bb938e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am sorry for the delay, I am currently looking into your issue and will try to provide an answer as soon as possible.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>