nRF Connect Desktop is the utility that you can use to manipulate your nRF9160 Feather. In this section we'll be focusing on two apps that will affect you the most:
You can find the download page for nRF Connect Desktop here.
The best way to debug anything cellular-related is to use the LTE Link Monitor.
- Install nRF Connect Desktop app
- Open it up and in the list of apps find LTE Link Monitor
- Click install
- Once installed click open and let the fun begin!
For more information check out Nordic's Documentation.
Almost any code example can be used with the AT Host Library. Generally all that is needed is adding these lines to your
# AT host library CONFIG_AT_HOST_LIBRARY=y CONFIG_UART_INTERRUPT_DRIVEN=y
Alternatively, for a quick start, simply program the
at_client example to your nRF9160 Feather. Then follow these quick steps to get up an running:
- Insert your SIM into the nRF9160 Feather.
- Attach your LTE antenna.
- Plug your nRF9160 Feather into your computer's USB port.
- Ensure that Flow Control is turned off, and Auto device/port filter is also unchecked.
- Connect to it using the Device dropdown in the top left hand corner of the LTE Link Monitor.
On *nix based systems, the port will show up like
/dev/tty.SLAB_USBtoUART. On Windows, you'll have to determine which COM port is associated by using the device manager.
- With Automatic requests turned on and the nRF9160 Feather connected, press the AT+CFUN=1 button followed by the AT+CFUN? button. This will cause a few important commands to be automatically sent to your nRF9160 Feather. Additionally, your nRF9160 Feather will attempt to connect to the closest compatible tower possible.
- Review the LTE Link Monitor for connection information. Yes, the LTE Link Monitor provides some great information. Consider it your go-to tool when debugging cellular or board related issues.
The programmer is excellent for updating your application firmware. The most important function it provides is updating the modem firmware.
Another way of programming your application other firmware images is to use the nRF Connect Desktop Programmer App.
- First, you'll need to install it if you haven't already.
- Then open it up and select your programmer
- Then add a hex file using the button on the right side.
- Click Browse to loook for your file
- Browse your Nordic Connect SDK repo for your file. For instance the
at_clienthex image is:
- Hit write to start the writing process. Remember your programmer has to be connected to the nRF910 Feather for this to work!
Handy trick! Since the nRF Connect Desktop app is web based, you can use (Command) ⌘ + R to refresh the program. (or CTRL + R on Windows/Linux) This is great when the app goes into a weird state or if your serial device/programmer is now showing up.
Your modem firmware plays an important role in the nRF9160. The easiest way, as of this writing, to update is to use the Programmer's Update modem function. It's important to note that not all firmware is certified to work on every provider. For a full up-to-date list, check out Nordic's documentation.
Another note: you will need a programmer and Tag Connect cable in order to update the modem firmware.
Here are the instructions for updating your modem firmware:
- Download the modem firmware you need.
- Next, open up the Programmer in nRF Connect Desktop. (You may need to open it first)
- Then open up a connection to your programmer. (Your programmer should be connected to USB and attached to your nRF9160 Feather)
- Once opened, the program will read the memory contents of your device and display it.
- To update the modem firmware, scroll down to the bottom right and click Update modem
- Find your modem firmware
- Start the DFU process by clicking Write!
Then, your device will be updated. This process takes about 45 seconds. You can check if the firmware version using the
AT+CGMR AT command. Devices running on Verizon must use modem firmware v1.1.2.