<?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>Sending data while using PSM mode.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55288/sending-data-while-using-psm-mode</link><description>Hi Everyone, 
 I am using PSM mode in my program and want to send data everytime when modem wakes up from sleep(PSM mode). I also want to turn off/on UART only when required as use is not frequent. I am also monitoring current consumption on oscilloscope</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Dec 2019 16:38:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55288/sending-data-while-using-psm-mode" /><item><title>RE: Sending data while using PSM mode.</title><link>https://devzone.nordicsemi.com/thread/224534?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 16:38:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb1d3115-de80-4f10-a449-0a1893c09476</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Here is a sample that sends data over UDP every time the device wakes up from PSM mode (TX window):&amp;nbsp;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/udp_with_psm"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/udp_with_psm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;One way you can get notified when modem wakes up from PSM (goes active) is to use the COEX2 pin. If you physically connect it to a GPIO, you can get notified through a GPIOTE interrupt. Check this ticket for more information:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53292/nrf9160-toggle-gpio-with-modem-active-inactive-state"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/53292/nrf9160-toggle-gpio-with-modem-active-inactive-state&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There may be other ways to do this. If this solution isn&amp;#39;t sufficient please tell me and I will&amp;nbsp;take a deeper look into it.&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>