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

Quick way to send signal strength to nrfcloud by hacking tracker_update application?

I am looking to check signal strength and would like to be able to do it as easily as possible.

The default asset_tracker sends messages which can be seen in the nrfcloud demo interface. 

How can I get the device to send the signal strength with every fake GPS update? 

Parents
  • Hello,

    I'm sorry, I deleted your comment with the link to GitHub. At the moment, I will urge you to follow this GitHub thread. As the author writes, he will have an example ready that does exactly what is asked for in the forum during the next couple of days. This may be what you are looking for.

    Currently, the way to get signal strength is using the AT Command AT+CESQ. See the documentation for more information. You may try using the AT Client example for the nRF9160 DK. Be aware that nRF Cloud interprets received data in an expected format.

    Best regards,
    Oeyvind


Reply
  • Hello,

    I'm sorry, I deleted your comment with the link to GitHub. At the moment, I will urge you to follow this GitHub thread. As the author writes, he will have an example ready that does exactly what is asked for in the forum during the next couple of days. This may be what you are looking for.

    Currently, the way to get signal strength is using the AT Command AT+CESQ. See the documentation for more information. You may try using the AT Client example for the nRF9160 DK. Be aware that nRF Cloud interprets received data in an expected format.

    Best regards,
    Oeyvind


Children
  • In the comments section of the PR above, hmhalvorsen recommended that I call this function
    modem_info_short_get(MODEM_INFO_RSRP, your_data_buffer)

    when I do this, I use a 16 bit unsigned integer (I believe this is correct)
    u16_t *mybuf;

    If I don't set mybuf to a dummy value, the whole script blows up with a fault.

    Is there anything important I am missing about this? Can I just straight vall the at+cesq command in the main.c of the asset tracker somehow and bypass the issues I am having?

  • Hello,

    Please ensure the repo is up to date with the latest version of master. 

    rkguy said:
    Can I just straight vall the at+cesq command in the main.c of the asset tracker somehow and bypass the issues I am having?

    You could this example:
    https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/simple_at/

    This calls fewer functions compared to asset_tracker, but with the information is not uploaded to nrfcloud. This example lets you play around more with AT commands and the information you are looking for.

    rkguy said:

    when I do this, I use a 16 bit unsigned integer (I believe this is correct)
    u16_t *mybuf;

    If I don't set mybuf to a dummy value, the whole script blows up with a fault.

     I'm sorry, I do not know these details of the asset_tracker. Please see application documentation.

Related