<?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 not able to connect to Bands other than 12</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79352/nrf9160-not-able-to-connect-to-bands-other-than-12</link><description>modem: 1.2.3 
 sdk: 1.4.2 and 1.6 
 
 We have been trying to test LTE performance on different bands but so far we have not been able to use BANDLOCK to limit the connection to only certain bands. 
 We are in Toronto, Canada and have tried to use 3 different</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Oct 2021 14:30:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79352/nrf9160-not-able-to-connect-to-bands-other-than-12" /><item><title>RE: nrf9160 not able to connect to Bands other than 12</title><link>https://devzone.nordicsemi.com/thread/336717?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 14:30:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8879ee3-f300-446e-a601-e5ddaeb4cc7d</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;Are you sure that LTE M (or NB1) is available on other bands in your area?&lt;/p&gt;
&lt;p&gt;Do you get connected on other bands with a nRF9160-DK/thingy91 for instance?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you lock the bands to the other band, then do a manual search using AT+COPS=? it should return any network it finds. If it does not find any, it&amp;#39;s highly likely not available in your area.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 not able to connect to Bands other than 12</title><link>https://devzone.nordicsemi.com/thread/335834?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 23:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9e63795-24b6-422a-8dbe-78ab3d15d7ed</guid><dc:creator>Stratosphere</dc:creator><description>&lt;p&gt;Hi Haken,&lt;/p&gt;
&lt;p&gt;After many tests I am still unable to connect to any band other than Band 12.&lt;/p&gt;
&lt;p&gt;Band 12 connects right away but other bands just do not work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried on Thingy91 with AT Client example and At LInk Monitor.&lt;/p&gt;
&lt;p&gt;I have tried using BandLock command and it is working as I can see the Bands update on the GUI as well as when I send out AT%XBANDLOCK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have tried manually sending the MAGPIO command to set different different band settings as well but all without success.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;At this point, I can safely say that the device just won&amp;#39;t connect to any Bands other than 12.&lt;/p&gt;
&lt;p&gt;Are you aware of any such behavior in Canada?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635205816435v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 not able to connect to Bands other than 12</title><link>https://devzone.nordicsemi.com/thread/332646?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a75de1e8-3107-481a-9722-402dc2c85d31</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Noaman,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Stratosphere"]after updating my code[/quote]
&lt;p&gt;What changes did you make? Which sample are you building? And which board are you building for?&lt;/p&gt;
[quote user="Stratosphere"]Can let me know what line is that I need to add to configure the MAGPIO on thingy91?[/quote]
&lt;p&gt;MAGPIO is set automatically when you are building for Thingy:91. If you want to use Band 4 at 850MHz, then the correct MAGPIO pins will be changed automatically whenever that frequency is in use. Here is how MAGPIO is configured automatically:&lt;/p&gt;
&lt;p&gt;In the file&amp;nbsp;board_nonsecure.c, located in v1.7.0/nrf/boards/arm/thingy91_nrf9160/, you will find the following.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;code&gt;#define&amp;nbsp;AT_CMD_MAGPIO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;AT%XMAGPIO=1,1,1,7,1,746,803,2,698,748,&amp;quot;&amp;nbsp;\&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;2,1710,2200,3,824,894,4,880,960,5,791,849,&amp;quot;&amp;nbsp;\&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;7,1565,1586&amp;quot;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The command is given to the modem at startup.&lt;/p&gt;
&lt;p&gt;The setup corresponds more or less with &lt;a href="https://infocenter.nordicsemi.com/pdf/Thingy91_UG_v1.0.pdf"&gt;Thingy:91 User Guide&lt;/a&gt;, section 5.3.1. Antenna tuning. The configuration is, as you say, set up with &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/sip_pin_configuration/sip_pin_configuration.html"&gt;MAGPIO configuration %XMAGPIO&lt;/a&gt; and the &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/sip_pin_configuration/xmagpio_set.html"&gt;MAGPIO set command&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if you would like to make changes to the settings, and I will look up exactly how this is done. I think the way to do this is something like adding the below configs to prj.conf but I have not tested this myself:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CONFIG_NRF9160_GPS_SET_MAGPIO=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_NRF9160_GPS_MAGPIO_STRING=&amp;quot;AT%XMAGPIO=1,1,1,7,1,746,803,2,698,748,2,1710,2200,3,824,894,4,880,960,5,791,849,7,1565,1586&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best 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: nrf9160 not able to connect to Bands other than 12</title><link>https://devzone.nordicsemi.com/thread/330143?ContentTypeID=1</link><pubDate>Sun, 19 Sep 2021 21:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b22d7e92-5181-4465-9559-9db9f14d4587</guid><dc:creator>Stratosphere</dc:creator><description>&lt;p&gt;Hi Hakan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;1. I will check the log again and get back to you tomorrow about what I see after XBANDLOCK. When i try the band lock on Band 12, everything works well. Setting it to any other band is where LTE Connection is not established.&lt;/p&gt;
&lt;p&gt;2. We have almost 20 devices in the field. They all submit band information and they all run band 12. I have on a couple of occassions seens devices connect to band 4 but that is 1 in a 100 occurance. This is without any bandlock.&lt;/p&gt;
&lt;p&gt;3. Yes, I was trying band 13 in line 5 instead of band 12 just as one of the tests.&lt;/p&gt;
&lt;p&gt;4. I will try the proj.conf settins as you suggested and get back to you tomorrow.&lt;/p&gt;
&lt;p&gt;5. I have not tried it using at_client.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I just purchased a thingy91 and I was trying this XBAND code on their. The asset tracker example was working out of the box but after updating my code, it does not connect to any bands at all. I remember seeing somewhere about adding a MAGPIO config line in the code to properly configure the active tuner but I can&amp;#39;t find that now. Can let me know what line is that I need to add to configure the MAGPIO on thingy91? This test should let me compare Antenna performance on various bands between thingy91 and our board and possibly indicate/elimiate any hardware issues&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Noaman&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 not able to connect to Bands other than 12</title><link>https://devzone.nordicsemi.com/thread/329842?ContentTypeID=1</link><pubDate>Thu, 16 Sep 2021 12:39:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf306f07-d428-4c61-930c-b76e6158018d</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Thank you for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What do you currently see in the log after XBANDLOCK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please confirm that you are setting the band lock before&amp;nbsp;&lt;span&gt;activating modem with&amp;nbsp;&lt;/span&gt;&lt;a title="The +CFUN command sets and reads the modem functional mode." href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/cfun.html#cfun"&gt;&lt;span&gt;+CFUN&lt;/span&gt;&lt;/a&gt;? I assume, however, that you would have seen an error if you tried the opposite order.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;How do you currently verify which band is working?&amp;nbsp;Something&amp;nbsp;&lt;span&gt;to try is to activate the modem without&amp;nbsp;using XBANDLOCK, and then use XCBAND to check the active bands(XCBAND works only after the modem is activated).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Looking at line 5 of the code you posted: Are you selecting band 13(and not band 12) on purpose? Is that in order to make band 12 unavailable?&amp;nbsp;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;An alternative to XBANDLOCK is to update your prj.conf with the following configs:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_LTE_LOCK_BANDS.html#cmdoption-arg-CONFIG_LTE_LOCK_BANDS"&gt;CONFIG_LTE_LOCK_BANDS&amp;nbsp;&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_LTE_LOCK_BAND_MASK.html#cmdoption-arg-CONFIG_LTE_LOCK_BAND_MASK"&gt;CONFIG_LTE_LOCK_BAND_MASK&lt;/a&gt;, for example like this:&lt;/p&gt;
&lt;p lang="en-GB"&gt;CONFIG_LTE_LOCK_BANDS=y&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;span&gt;CONFIG_LTE_LOCK_BAND_MASK=&amp;quot;00000000000000000010&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Have you tried using XBANDLOCK with the at_client sample?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 not able to connect to Bands other than 12</title><link>https://devzone.nordicsemi.com/thread/329125?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 05:30:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:addb67d6-1271-46db-b6fd-55c3ce2f2343</guid><dc:creator>Stratosphere</dc:creator><description>&lt;p&gt;Hi Haken,&lt;/p&gt;
&lt;p&gt;I have band 2 and 12 available for sure as confirmed by bell tech support.&lt;/p&gt;
&lt;p&gt;I do not have a telus SIM. our current contract is with bell.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 not able to connect to Bands other than 12</title><link>https://devzone.nordicsemi.com/thread/328780?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 11:14:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:893d9e9e-b75f-479c-8c47-c5fcf3f86dbf</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Noaman,&lt;/p&gt;
&lt;p&gt;Your use of XBANDLOCK looks like it should be OK. After using the command, are you seeing &amp;#39;OK&amp;#39; or some error in the log output?&lt;/p&gt;
&lt;p&gt;Do you have any SIM card from Telus that you could try? Telus seems to have B4, B5 and B12 active in Canada. However, I do not know which bands are available in the Toronto area.&lt;/p&gt;
&lt;p&gt;Best 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: nrf9160 not able to connect to Bands other than 12</title><link>https://devzone.nordicsemi.com/thread/328677?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 20:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98265d9f-95bc-4918-b555-2186ce322e9d</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Noaman,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you know which bands are available in your area?&lt;/p&gt;
&lt;p&gt;I am checking with our team to see if we have any overview over how Toronto is covered.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>