nRF9160 get device position using AT command

I am playing around with nRF9160 on the Thingy 91. I am testing various AT command and just familiarizing myself with the LTE and AT commands.

For me, the most important modem funcionality is to be able to detect device position. I have been going through the AT command document trying to figure out how can this be done:

https://infocenter.nordicsemi.com/pdf/nrf9160_at_commands_v2.2.pdf

but I could not find a way to do this.

I have flashed the device with asset tracker v2 application and opened cellular monitor:

I was hoping to see the device position here but I do not think that is the case since I cannot see position parameter anywhere

I have also tried this:

https://electronics.stackexchange.com/questions/73427/trying-to-find-location-in-gsm-network

but it did not seem to work.

Apologies in advance if my questions are silly, I am quite new to this.

My main question

1. Is there a way to get the device location (latitude, longitude) using AT command? 

2. Can you monitor device position in Cellular Monitor?

Parents
  • Hello,

    Apologies in advance if my questions are silly, I am quite new to this.

    Not at all. 

    1. Is there a way to get the device location (latitude, longitude) using AT command? 

    No, the AT commands does not communicate with the GNSS module. It uses the GNSS interface from the modem library which is shown in our GNSS sample.

    Can you monitor device position in Cellular Monitor?

    The output from this sample is shown in the Serial Terminal which can be opened from the Cellular Monitor. 

    I have flashed the device with asset tracker v2 application and opened cellular monitor:

    The position of the device running Asset Tracker v2 is uploaded to nRF Cloud. More information on this is described in the nRF Cloud documentation.

    If you need more details, please provide more information on what you are trying to achieve Slight smile

    Kind regards,
    Øyvind

  • Thanks for response.

    If you need more details, please provide more information on what you are trying to achieve

    I was simply hoping that I would be able to fully control the modem using AT commands if the modem is running at_client or asset_tracker_v2 firmware while the other MCU (nrf52840) is running connectivity_bridge application to allow communication with the modem.

    I have read somewhere that when you are working with the modems, you have 2 options:

    1. Write your own application if manufacturer provides SDK and tools for it (same as in asset_tracker_v2).

    2. Use AT commands and simply control the modem by using standartised AT commands that all modems should support according to 3GPP standard. In fact, if I am not mistaken, some modems (such as Quectel) do not even allow writing your own application on the modem side like you allow on the nRF9160. You can only control some modems via AT commands. Is that correct? 

    Anyways, since I cannot read the device position using AT command, I do not have any other option but to write my own application since for my project I need to get the position. Is there any particular reason why on the nRF9160 is not possible to extract device position using AT command? If that was possible, I could just use AT commands for my project and that would probably simplify the development.

  • zazas321 said:
    I was simply hoping that I would be able to fully control the modem using AT commands if the modem is running at_client or asset_tracker_v2 firmware while the other MCU (nrf52840) is running connectivity_bridge application to allow communication with the modem.

    Thanks for elaborating. It sounds like the Serial LTE Modem application is something you should check out. This allows the other MCU to communicate with the nRF9160 using AT commands. This application also has its own custom AT commands to control e.g. GNSS module which provides location. Note that these custom AT commands are part of the application, and not the modem. You can even add your own AT commands if needed. 

    You can also have a look at the modem shell samples.

    zazas321 said:
    Use AT commands and simply control the modem by using standartised AT commands that all modems should support according to 3GPP standard. In fact, if I am not mistaken, some modems (such as Quectel) do not even allow writing your own application on the modem side like you allow on the nRF9160. You can only control some modems via AT commands. Is that correct? 

    Yes, that is correct. The nRF9160 has two cores in it, one application and one modem. The modem itself is not open for development. The application core can be programmed with the application that fits. More information can be found in the Working with nRF91-series. The nRF9160 uses AT commands between the modem core and the application core, but only 3GPP standard AT commands are supported. 

    Kind regards,
    Øyvind

Reply
  • zazas321 said:
    I was simply hoping that I would be able to fully control the modem using AT commands if the modem is running at_client or asset_tracker_v2 firmware while the other MCU (nrf52840) is running connectivity_bridge application to allow communication with the modem.

    Thanks for elaborating. It sounds like the Serial LTE Modem application is something you should check out. This allows the other MCU to communicate with the nRF9160 using AT commands. This application also has its own custom AT commands to control e.g. GNSS module which provides location. Note that these custom AT commands are part of the application, and not the modem. You can even add your own AT commands if needed. 

    You can also have a look at the modem shell samples.

    zazas321 said:
    Use AT commands and simply control the modem by using standartised AT commands that all modems should support according to 3GPP standard. In fact, if I am not mistaken, some modems (such as Quectel) do not even allow writing your own application on the modem side like you allow on the nRF9160. You can only control some modems via AT commands. Is that correct? 

    Yes, that is correct. The nRF9160 has two cores in it, one application and one modem. The modem itself is not open for development. The application core can be programmed with the application that fits. More information can be found in the Working with nRF91-series. The nRF9160 uses AT commands between the modem core and the application core, but only 3GPP standard AT commands are supported. 

    Kind regards,
    Øyvind

Children
Related