This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf9160 not able to connect to Bands other than 12

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 SIMs (Bell, Hologram, iBasis) and none of them can connect to any band other than band 12. I have also tried with a few different off-board antennas as well as tried connection from 3 different physical locations (Brampton, Vaughan and Mississauga) and nothing has worked so far.

This is the code that I have been testing with and only band 12 seems to work. I am not sure if I have to perform any other operation before locking a band. For testing, I am physically disconnecting power to our custom board between each test.

//if (at_cmd_write("AT%XBANDLOCK=2,\"1000000000000100000011010\"", NULL, 0, NULL) == 0)

//if (at_cmd_write("AT%XBANDLOCK=2,\"1000000000000000000011010\"", NULL, 0, NULL) == 0)

if (at_cmd_write("AT%XBANDLOCK=2,\"1000000000001000000011010\"", NULL, 0, NULL) == 0)
{
  printk("Band lock set\n");
}

Regards

  • Hi Noaman, 

    Do you know which bands are available in your area?

    I am checking with our team to see if we have any overview over how Toronto is covered. 

    Best regards, 

    Håkon

  • Hi Noaman,

    Your use of XBANDLOCK looks like it should be OK. After using the command, are you seeing 'OK' or some error in the log output?

    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.

    Best regards,

    Håkon

  • Hi Haken,

    I have band 2 and 12 available for sure as confirmed by bell tech support.

    I do not have a telus SIM. our current contract is with bell.

  • Thank you for your reply. 

    What do you currently see in the log after XBANDLOCK? 

    Could you please confirm that you are setting the band lock before activating modem with +CFUN? I assume, however, that you would have seen an error if you tried the opposite order.

    How do you currently verify which band is working? Something to try is to activate the modem without using XBANDLOCK, and then use XCBAND to check the active bands(XCBAND works only after the modem is activated). 

    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? 

    An alternative to XBANDLOCK is to update your prj.conf with the following configs:

    CONFIG_LTE_LOCK_BANDS  and CONFIG_LTE_LOCK_BAND_MASK, for example like this:

    CONFIG_LTE_LOCK_BANDS=y

    CONFIG_LTE_LOCK_BAND_MASK="00000000000000000010"

    Have you tried using XBANDLOCK with the at_client sample? 

  • Hi Hakan, 

    Thanks for your response.

    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.

    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.

    3. Yes, I was trying band 13 in line 5 instead of band 12 just as one of the tests.

    4. I will try the proj.conf settins as you suggested and get back to you tomorrow.

    5. I have not tried it using at_client.

    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'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

    Regards

    Noaman

Related