<?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>LTE-M always connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76060/lte-m-always-connected</link><description>Shalom! 
 I have using the nRF9160 examples created an application for a future proposed custom board that when there is external power should always stay connected to our TCP server in LTE-M mode. 
 Like in the UDP example main.c file, I call modem_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Jun 2021 15:03:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76060/lte-m-always-connected" /><item><title>RE: LTE-M always connected</title><link>https://devzone.nordicsemi.com/thread/315940?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 15:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d666c6c-326a-495a-bcd8-8f785a17b065</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;&lt;em&gt;Can the low power mode affect re-connection to our TCP server or switching TCP servers?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;No, having PSM enabled should not affect&amp;nbsp;this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Can I switch freely between low power mode in battery operation just when I upload data to our AppServer?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Yes, you can enable and disable PSM mode freely.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M always connected</title><link>https://devzone.nordicsemi.com/thread/315864?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 12:13:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1180b84e-16ea-42f8-9b77-7de87e0438e1</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;Shalom!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You are correct. I don&amp;#39;t know how I missed that I called my wrapper function ami_main_switch_low_power()&lt;/p&gt;
&lt;p&gt;with its parameter true! When the device will run on batteries I will want this and sleep most of the time, but with external power they want a continuous connection so that web queries can arrive.&lt;/p&gt;
&lt;p&gt;I will add the AT+CPSMS? command before connecting so I can see the power saving mode on the debug channel.&lt;/p&gt;
&lt;p&gt;I will need to test everything again with no low power next Sunday as this is the end of my work week.&lt;/p&gt;
&lt;p&gt;Can the low power mode affect affect re-connection to our TCP server or switching TCP servers?&lt;/p&gt;
&lt;p&gt;Can I switch freely between low power mode in battery operation just when I upload data to our AppServer?&lt;/p&gt;
&lt;p&gt;Thanks and I will get back with the results hopefully early next week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M always connected</title><link>https://devzone.nordicsemi.com/thread/315857?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 11:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:273deb9e-e64c-464a-bd3d-d632cbaf06ac</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;From your application, it looks like you&amp;#39;re calling l&lt;span&gt;te_lc_psm_req&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;), which you can&amp;#39;t do if you want the device to stay in RRC Connected mode all the time.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="DavidKaplan"]when testing always our connected work mode[/quote]
&lt;p&gt;&amp;nbsp;Does this mean you fixed the issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please try sending AT+CPSMS after start-up to see if PSM is enabled.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M always connected</title><link>https://devzone.nordicsemi.com/thread/315733?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 04:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65073f4b-343b-4f7f-965a-55e374a5ddcf</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;Shalom!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This morning I wanted to duplicate the problem and create a debug log. I may have added late afternoon a code segment that when a send() returns an error, I understand that there is a problem and close the socket.&lt;/p&gt;
&lt;p&gt;In the debug below you can see that after the modem registers and connects to the cellular network, I issue a series of AT commands primarily to get information for our GetStatus() command and then try to connect to our TCP server. After connection I&amp;nbsp; restarted my TCP Server and then try to reconenct.&lt;/p&gt;
&lt;p&gt;I added to the debug [?!?] explanations. Previously when I tried in my Nordic code to close the current TCP server connection and then connect to another server I got the errno 116 always and immediately. Yesterday after I stopped the TCP server and restarted it I got a 1116 also the first reconnection try.&lt;/p&gt;
&lt;p&gt;Thanks David&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/AMI_5F00_debug_5F00_17Jun2021a.txt"&gt;devzone.nordicsemi.com/.../AMI_5F00_debug_5F00_17Jun2021a.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M always connected</title><link>https://devzone.nordicsemi.com/thread/315730?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 03:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dea0d4a3-9dc7-4ff8-a703-5aa2d36f1236</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;Shalom!&lt;/p&gt;
&lt;p&gt;We will use the GPS in one software version, so I was testing it, without success, maybe because of obstructions, but in any case the define is remarked in the proj.cong file when testing always our connected work mode. I will attached our main with irrelevant functions deleted and again my ami_socket.c TCP code.&lt;/p&gt;
&lt;p&gt;Thanks David&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2072.prj.conf"&gt;devzone.nordicsemi.com/.../2072.prj.conf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ami_5F00_main.c"&gt;devzone.nordicsemi.com/.../ami_5F00_main.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ami_5F00_socket.c"&gt;devzone.nordicsemi.com/.../ami_5F00_socket.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M always connected</title><link>https://devzone.nordicsemi.com/thread/315626?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 13:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b3a51cf-74e7-4646-a798-a75e5a00ec0b</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can I see your main.c and Kconfig file as well, to understand what the configurations do?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I see&amp;nbsp;&lt;br /&gt;&lt;br /&gt;CONFIG_GPS_CONTROL_PSM_ENABLE_ON_START&lt;br /&gt;&lt;br /&gt;is enabled which could mean you are still enabling PSM on startup.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can try sending AT+CPSMS after start-up to see if PSM is enabled.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Heidi&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M always connected</title><link>https://devzone.nordicsemi.com/thread/314587?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 03:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42202ffc-5c90-4a7d-ac61-580678e7521e</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2021_2D00_06_2D00_10T03_2D00_19_2D00_46.258Z_5F00_CONFIG_5F00_PM_5F00_DEVICE_3D00_y.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2021_2D00_06_2D00_10T03_2D00_19_2D00_46.258Z_5F00_CONFIG_5F00_PM_5F00_DEVICE_3D00_y.bin&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2021_2D00_06_2D00_10T03_2D00_26_2D00_57.987Z_5F00_CONFIG_5F00_PM_5F00_DEVICE_3D00_n.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2021_2D00_06_2D00_10T03_2D00_26_2D00_57.987Z_5F00_CONFIG_5F00_PM_5F00_DEVICE_3D00_n.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Shalom!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0167.prj.conf"&gt;devzone.nordicsemi.com/.../0167.prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Shalom!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I took two traces, one with&amp;nbsp;CONFIG_PM_DEVICE=y and the other CONFIG_PM_DEVICE=n.&lt;/p&gt;
&lt;p&gt;The modem connects to the cellular network and then my application connects by TCP to my Application server and after a few seconds of inactivity the modem goes to RRC Idle.&lt;/p&gt;
&lt;p&gt;I also attached my proj.c&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0181.nrf9160dk_5F00_nrf9160ns.overlay"&gt;devzone.nordicsemi.com/.../0181.nrf9160dk_5F00_nrf9160ns.overlay&lt;/a&gt;onf file. Our custom nRF9160 board contains a AT24C512 EEPROM, a LSM6DSL acceleration chip, a SI7055 temperature chip and a&amp;nbsp;mx25r6435 external flash.&lt;/p&gt;
&lt;p&gt;I created an overlay just in preparation for the board&amp;#39;s arrival adding the chips to existing buses but when the config are enabled I get compile errors. Evidently I am doing something wrong or missing something in my overlay.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M always connected</title><link>https://devzone.nordicsemi.com/thread/314535?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 15:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7352d21c-7f3e-4c2d-be89-d4cc27cf8745</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi! Apologies for the late reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please take a modem trace when this is happening so we can have a closer look?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/collect_modem_trace.html"&gt;Collecting a modem trace for the nRF9160 DK&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE-M always connected</title><link>https://devzone.nordicsemi.com/thread/313880?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 10:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b8f9d2a-02fa-480e-bbbd-54bf14ab9b54</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;Could someone help me on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>