<?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>Unable to change APN</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53364/unable-to-change-apn</link><description>After struggling quite a bit to get network traffic going on nRF9160 DK using NB-IoT, I&amp;#39;ve contacted our SIM card provider (Com4 in Norway). They are telling me we need to change the APN from the default &amp;quot;com4&amp;quot; to &amp;quot;iot.com4.net&amp;quot;. 
 However, no matter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Oct 2019 07:44:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53364/unable-to-change-apn" /><item><title>RE: Unable to change APN</title><link>https://devzone.nordicsemi.com/thread/216754?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 07:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2d8b2ab-f257-4a40-a8f3-c48d1b5701ad</guid><dc:creator>Terje K Wahl</dc:creator><description>&lt;p&gt;Success! I&amp;nbsp;Network traffic now works.&lt;/p&gt;
&lt;p&gt;The problem turned out to be the network provider not having configured my SIM card/subscription to allow it to use NB-IoT. And also not telling me about this the first time I contacted them...&lt;/p&gt;
&lt;p&gt;After this configuration change with the network provider, the correct APN is automatically used for context CID 0. I tested however with CID 1 also, and activating CID 1 and deactivating CID 0 now also works.&lt;/p&gt;
&lt;p&gt;My conclusion: Error message&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;+CNEC_ESM: 65,1&lt;/span&gt;&lt;span&gt;&amp;quot; - &amp;quot;Maximum number of EPS bearers reached&amp;quot; - indicated a problem with the cellular subscription configuration.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Terje&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change APN</title><link>https://devzone.nordicsemi.com/thread/216636?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 13:13:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2612c046-87f9-406f-b759-6e57fb4ed2a0</guid><dc:creator>Terje K Wahl</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your support.&lt;/p&gt;
&lt;p&gt;I have now been in contact with the network provider, and they have changed my SIM/subsription settings for it to work on NB-IoT. And now I am able to get an IP address &amp;quot;automagically&amp;quot; for the correct APN when connecting to the network! So the error message was related to carrier configuration/limitations.&lt;/p&gt;
&lt;p&gt;I am a bit annoyed that my network provider did not told me this needed to be done for it to work on NB-IoT before when I contacted them... But anyway, it now looks promising.&lt;/p&gt;
&lt;p&gt;I will test tomorrow if network traffic now finally works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change APN</title><link>https://devzone.nordicsemi.com/thread/216635?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 13:08:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73a42d01-829f-4406-a83b-88229dce0794</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I am out of ideas at the moment but have requested help from our modem team.&lt;/p&gt;
&lt;p&gt;They will probably want a modem trace to help identify what is going on.&lt;/p&gt;
&lt;p&gt;Can you take a modem trace where you override the default APN (CGDCONT=0, ...) before turning on the modem (similar to your first log from the at_client), and upload the trace together with the application log?&lt;/p&gt;
&lt;p&gt;If you want to, you can also do the same where you are using a different PDN context.&lt;/p&gt;
&lt;p&gt;If you do not know how to take a modem trace, you can follow this guide: &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change APN</title><link>https://devzone.nordicsemi.com/thread/216594?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 11:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb63e99a-9c6b-4975-b850-73945f3874a0</guid><dc:creator>Terje K Wahl</dc:creator><description>&lt;p&gt;Hi and thanks for the suggestions.&lt;/p&gt;
&lt;p&gt;When trying to activate a second APN after being attached to the network (&amp;quot;&lt;span&gt;AT+CGACT=1,1&lt;/span&gt;&amp;quot;), I receive an error &amp;quot;ERROR&amp;quot; and error code &amp;quot;&lt;span&gt;+CNEC_ESM: 65,1&lt;/span&gt;&amp;quot;. According to&amp;nbsp;3GPP TS 24.301 Table 9.9.4.4.1 for EPS session management errors codes, error code 65 means &amp;quot;Maximum number of EPS bearers reached&amp;quot;.&lt;/p&gt;
&lt;p&gt;I double checked the device is in NB-IoT mode (as shown in the log below), and AT%XMONITOR seems to return sensible values as far as I can tell (shown in log below).&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not quite sure what to make of the&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;Maximum number of EPS bearers reached&amp;quot; error (I&amp;#39;ve tried searching for it), so more&amp;nbsp;help would be great.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To summarize so far: I am able to&amp;nbsp;connect to the cellular network and I am even assigned an IP address on CID 0 with APN &amp;quot;com4&amp;quot;. However, data traffic won&amp;#39;t work and when I speak to the network provider (Com4 in Norway) they tell me I need to use APN&amp;nbsp;&amp;quot;iot.com4.net&amp;quot;. However there is a limitation in the nRF9160 so I&amp;#39;m not able to replace CID 0 but have to create an additional CID 1 with the different APN. However when trying to activate CID 1 an error is returned (as mentioned above).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is this a limitation in the nRF9160 or a limitation with the network provider? Or are they just not compatible (yet)? Are there other things I can try?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Log from AT Client:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;***** Booting Zephyr OS v1.14.99-ncs2 *****
The AT host sample started
AT
OK
AT%XSYSTEMMODE?
%XSYSTEMMODE: 0,1,1,0
OK
AT+CFUN?
+CFUN: 4

OK
AT+CGDCONT=1,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;
OK
AT+CGDCONT?
+CGDCONT: 1,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;,&amp;quot;&amp;quot;,0,0
OK
AT+CFUN=1
OK
AT+CFUN?
+CFUN: 1
OK
AT+CGSN=1
+CGSN: &amp;quot;352656100223414&amp;quot;
OK
AT+CGMI
Nordic Semiconductor ASA
OK
AT+CGMM
nRF9160-SICA
OK
AT+CGMR
mfw_nrf9160_1.0.1
OK
AT+CEMODE?
+CEMODE: 0
OK
AT%XCBAND=?
%XCBAND: (1,2,3,4,5,8,12,13,17,19,20,25,26,28,66)
OK
AT+CMEE?
+CMEE: 0
OK
AT+CMEE=1
OK
AT+CNEC?
+CNEC: 0
OK
AT+CNEC=24
OK
AT+CGEREP?
+CGEREP: 0,0
OK
AT+CGDCONT?
+CGDCONT: 1,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;,&amp;quot;&amp;quot;,0,0
OK
AT+CGACT?
+CGACT: 1,0
OK
AT+CGEREP=1
OK
AT+CIND=1,1,1
OK

AT+CEREG=2
OK
AT+CEREG?
+CEREG: 2,&amp;quot;0CEB&amp;quot;,&amp;quot;0202791C&amp;quot;,9
+CEREG: 2,2,&amp;quot;0CEB&amp;quot;,&amp;quot;0202791C&amp;quot;,9
OK
AT%CESQ=1
OK
AT+CESQ
+CESQ: 99,99,255,255,255,59
OK
AT%XSIM=1
OK
AT%XSIM?
%XSIM: 1
OK
AT+CPIN?
+CPIN: READY
OK
AT+CPINR=&amp;quot;SIM PIN&amp;quot;
+CPINR: &amp;quot;SIM PIN&amp;quot;,3
OK
AT+CIMI
242090000457851
OK
+CGEV: ME PDN ACT 0,0
+CNEC_ESM: 50,0
+CEREG: 1,&amp;quot;0CEB&amp;quot;,&amp;quot;0202791C&amp;quot;,9
+CIND: &amp;quot;service&amp;quot;,1
AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;com4&amp;quot;,&amp;quot;100.64.66.80&amp;quot;,0,0
+CGDCONT: 1,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;,&amp;quot;&amp;quot;,0,0
OK

AT+COPS=3,2
OK
AT+CGACT?
+CGACT: 0,1
+CGACT: 1,0
OK
AT+COPS?
+COPS: 0,2,&amp;quot;24202&amp;quot;,9
OK
AT%XCBAND
%XCBAND: 20
OK
AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;com4&amp;quot;,&amp;quot;100.64.66.80&amp;quot;,0,0
+CGDCONT: 1,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;,&amp;quot;&amp;quot;,0,0
OK
AT+CGACT?
+CGACT: 0,1
+CGACT: 1,0
OK
AT+CFUN?
+CFUN: 1
OK
AT+CGSN=1
+CGSN: &amp;quot;352656100223414&amp;quot;
OK
AT+CGMI
Nordic Semiconductor ASA
OK
AT+CGMM
nRF9160-SICA
OK
AT+CGMR
mfw_nrf9160_1.0.1
OK
AT+CEMODE?
+CEMODE: 0
OK
AT%XCBAND=?
%XCBAND: (1,2,3,4,5,8,12,13,17,19,20,25,26,28,66)
OK
AT+CMEE?
+CMEE: 1
OK
AT+CNEC?
+CNEC: 24
OK
AT+CGEREP?
+CGEREP: 1,0
OK
AT+CIND=1,1,1
OK
AT+CEREG=2
OK

AT+CEREG?
+CEREG: 2,1,&amp;quot;0CEB&amp;quot;,&amp;quot;0202791C&amp;quot;,9
OK
AT+COPS=3,2
OK
AT+COPS?
+COPS: 0,2,&amp;quot;24202&amp;quot;,9
OK
AT%XCBAND
%XCBAND: 20
OK

AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;com4&amp;quot;,&amp;quot;100.64.66.80&amp;quot;,0,0
+CGDCONT: 1,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;,&amp;quot;&amp;quot;,0,0
OK
AT+CGACT?
+CGACT: 0,1
+CGACT: 1,0
OK
AT%CESQ=1
OK
AT+CESQ
+CESQ: 99,99,255,255,255,59
OK
AT%XSIM=1
OK
AT%XSIM?
%XSIM: 1
OK
AT+CPIN?
+CPIN: READY
OK
AT+CPINR=&amp;quot;SIM PIN&amp;quot;
+CPINR: &amp;quot;SIM PIN&amp;quot;,3
OK
AT+CIMI
242090000457851
OK
AT+CGACT=1,1
ERROR
+CNEC_ESM: 65,1

AT%XMONITOR
%XMONITOR: 1,&amp;quot;Telia&amp;quot;,&amp;quot;Telia&amp;quot;,&amp;quot;24202&amp;quot;,&amp;quot;0CEB&amp;quot;,9,20,&amp;quot;0202791C&amp;quot;,31,6254,59,29,&amp;quot;&amp;quot;,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;
OK
AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;com4&amp;quot;,&amp;quot;100.64.66.80&amp;quot;,0,0
+CGDCONT: 1,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;,&amp;quot;&amp;quot;,0,0
OK
AT+CGACT=1,1
ERROR
AT+CGACT=0,0
ERROR
AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;com4&amp;quot;,&amp;quot;100.64.66.80&amp;quot;,0,0
+CGDCONT: 1,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;,&amp;quot;&amp;quot;,0,0
OK
AT+CGACT?
+CGACT: 0,1
+CGACT: 1,0
OK

&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Terje&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change APN</title><link>https://devzone.nordicsemi.com/thread/216311?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 08:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdbaf666-5774-4e2b-be38-9da0fedf550f</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;According to our modem team, you will not be able to activate a second APN until you are attached to the network.&lt;/p&gt;
&lt;p&gt;Also, you to make sure, have you remembered to change to NB-IoT mode?&lt;/p&gt;
&lt;p&gt;What is the result of AT%XMONITOR?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change APN</title><link>https://devzone.nordicsemi.com/thread/216178?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 12:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4abfa63f-0b6f-48c5-95f7-daac482c5feb</guid><dc:creator>Terje K Wahl</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have gotten a suggestion to try to use context ID (CID) 1 for the new APN, but now I don&amp;#39;t know how to specify that the modem should use CID 1 in stead of CID 0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using the command&amp;nbsp;AT+CGACT=1,1 only returns error messages, and I have tried both in online and flight mode (CFUN=4 and 1):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;The AT host sample started
AT
OK
AT+CGDCONT=1,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;
OK
AT+CGDCONT=0,&amp;quot;IP&amp;quot;,&amp;quot;com4&amp;quot;
OK
AT+CGACT=1,1
ERROR
AT+CGACT=0,0
ERROR
AT+CFUN=1
OK
AT+CGACT=1,1
ERROR
AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;com4&amp;quot;,&amp;quot;100.64.93.245&amp;quot;,0,0
+CGDCONT: 1,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;,&amp;quot;&amp;quot;,0,0
OK
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How do I specify that the modem should use context ID 1?&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change APN</title><link>https://devzone.nordicsemi.com/thread/215699?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 11:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d57a7c9-bf31-468c-8c21-ef11b1d7fa2b</guid><dc:creator>Terje K Wahl</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the tips, but I have allready done this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When setting&amp;nbsp;CONFIG_LTE_PDP_CONTEXT in the configuration file I used backslash to escape the quote characters. When sending AT commands directly I do not escape the quotation marks because then it is (as far as I know) not right to do so.&lt;/p&gt;
&lt;p&gt;Either way, when reading back the PDP context from the modem it&amp;nbsp;appears to return the correct string with quotation marks:&lt;/p&gt;
&lt;p&gt;AT+CGDCONT?&lt;br /&gt;+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;iot.com4.net&amp;quot;,&amp;quot;&amp;quot;,0,0&lt;br /&gt;OK&lt;/p&gt;
&lt;p&gt;Other suggestions are welcome &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change APN</title><link>https://devzone.nordicsemi.com/thread/215695?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 11:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ad4811c-8f59-465f-8afb-32fba35e3fb0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Since the APN has quotes in it, you need to explicitly set this as \&amp;quot;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_LTE_PDP_CONTEXT=&amp;quot;1,\&amp;quot;IP\&amp;quot;,\&amp;quot;test\&amp;quot;&amp;quot;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This will end up as:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;AT+CGDCONT?
+CGDCONT: 0,&amp;quot;IPV4V6&amp;quot;,&amp;quot;telenor.iot&amp;quot;,&amp;quot;10.111.223.35 2A02:2121:0048:8B27:0000:001A:DCA1:2701&amp;quot;,0,0
+CGDCONT: 1,&amp;quot;IP&amp;quot;,&amp;quot;test&amp;quot;,&amp;quot;&amp;quot;,0,0
OK&lt;/pre&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>