Unable to make Cellular Monitor v2.4.0 work.

I am able to open up the Cellular Monitor and successrully select the device an get a connection.  However the option to ' Open a Serial Terminal' is greyed out, and so not available.

Parents
  • Hi Jack,

    I suspect there is something wrong with your SIM card.

    Following show my test, the SIM PIN related errors are acceptable since my SIM card do not need to input SIM PIN.

    Checking the SIM card related commands, the device can read corresponding results from SIM card, but you get errors according to the log.

    Did you test with a nRF9160DK or custom hardware? It might be hardware related if you tested with customer hardware.

    If it is nRF9160DK, can you specify with SIM card ware you using, can you test with original iBasis SIM card in nRF9160DK package.

    Best regards,

    Charlie

  • Hi Charlie,

    Sadly, I no longer have the original iBasis SIM card.  My nRF9160 Dev Kit is about 3 years old.

    The SIM card I am using is from a company calle KORE Wireless, an MVNO.

    I know the SIM card is working becuase I'm to able log into nRF Cloud using this SIM card and I can see all sorts of cellular connection data there.  I can also use the cellular monitor serial terminal feature to send AT commands to the device and read back various cellular connection inforamtion as well.

    I've also tried the same SIM card in both our custom HW as well as the nRF9160 Dev kit, and both get connections to the LTE-M network.  So I don't think the problem is with our customer hardware.

    I've also had a colleague in Canada try to use the Cellular Monitor with a Rogers SIM card using his copy of our custom hardware.  Same thing.  He gets a connection to the network but no data show up in his cellular monitor dashboard.

    BTW, I have also used Wireshark to see if there's any data exchange between the cellular monitor and our device and there doesn't seem to be any.

    So I'm baffled. So seems like we're dong something wrong.

  • OK, new info.  I put the SIM into the Dev kit and tried the cellular monitor again.  I made sure to match the 'Modem Trace Database' FW version with the MFW version for the Dev Kit, and this time it works.  I was able to populate the dashboard.

    Still struggling to make it work in our device.

  • Ok, have you verified that your device work with Serial Terminal?

  • Yes, our device works with the serial terminal.  I can send AT commands and get responses, so something else weird is going on at our end when trying to use the cellular monitor.

    I'm going to talk some more with our firmware guy.  Will let you know what I find out.  

  • Hi Jack,

    The Cellular Monitor also needs to collect modem trace data on another uart port.

    Can you confirm you custom firmware also have a second uart port that be assigned for modem tracing?

    Best regards,

    Charlie

  • Hi Charkie,

    Can you please say more about this.

    We have the sngle USB connection to the device and as far as I can tell the Cellular Monitor daashboard only allows one port to be selected.for the Cellular Monitor and a different port to be selected for the Serial Terminal.

    Is this what you're talking about?  Or something different?

Reply
  • Hi Charkie,

    Can you please say more about this.

    We have the sngle USB connection to the device and as far as I can tell the Cellular Monitor daashboard only allows one port to be selected.for the Cellular Monitor and a different port to be selected for the Serial Terminal.

    Is this what you're talking about?  Or something different?

Children
  • Hi Jack,

    You can find the difference on the left side panel. When you enable modem trace, a new serial port is assigned as its backend to output modem trace data. It is different from the uart port used by at command shell.

    Best regards,

    Charlie

  • OK, that's what I thought.  Thx

    Yeah, we have confirmed that we are doing some weird thngs in the firmware at our end.  When we get this sorited out I'll get back to you.

  • Hi Charlie,

    Ok, here's some additional information.

    Our application firmware on the nRF9160 is a compiled version that includes:

    - Asset Tracker v2

    - Handling routines for our Microphone, Accelerometer SMS messaging, and battery voltage - these are all unique to our board, not the same as the 9160 DK

    - UART communications handling between the nRF52840 and the nRF9160 (the USB connection to our device is through the nRF52840)

    - The 'config AT host lib' line of code is compiled in

    But, when we try to run the Cellular Monitor app there is no evidence of AT commands going between the Cellular Monitor app and our device over the USB

    When we switch over from the Cellular Monitor to the Serial Terminal we are able to communicate with our device and get responses to AT commands.

    So don't know what to do next.  Any suggestions?

  • Hi Jack,

    Thanks for your explanation. I get better understand with your custom HW now.

    Simple to say, the Cellular Monitor is specifically designed for nRF91DKs and samples for feature demonstration purpose, you should not expect it to work with your device directly and use it as part of your application.

    The issue with your hardware is that, there is no nRF9160 modem trace backend (By default, the nrf_modem library uses UARTE1 for outputting the trace data) connect with Cellular Monitor. As I have shown before, nRF9160DK have two com ports connecting with Cellular Monitor, which are used for AT commands and modem trace data separately.

    Best regards,

    Charlie

  • Thanks Charlie,

    Can you please say more about the nRF9160 modem trace backend. Where is the code on the DK that makes this work?  I assume it must be in the Asset Tracker V2 application firmware that is loaded on the DK.

    I can't understand why our custom hardware can't be configured exactly like the DK.  It has exactly the same nRF9160 with exactly the same UARTs so it should be possible to configure the code to make our HW behave the same as the DK.

    Specifically, we would like to have a way to run modem traces on our custom hardware for troubleshooting purposes.  If we can't use the Cellular Monitor app for that, is there another way we can do that?

    Thanks for your help,

    Jack

Related