nRF Cloud - edit Device Information

How to change Device Information in nRF Cloud? Where do I find the code setting this info? Where is "App Name" and "App Version" defined? 

The application is nrf_cloud_multi_service, but I am modifying it, and want to change name.

Parents
  • Hi Bard,

    The app version can be found in the nrf_cloud_init structure. But I am not sure regarding how to change the app name. I have inquired internally and will get back to you once I get a solution.

    Regards,

    Priyanka

  • Hi Priyanka

    I found a solution with "App Name" and "App Version", but not "Battery Voltage" (see at end).

    The "App Name" and "App Version" didn't get updated due to some changes I made in the prj.conf. I commented out every setting related to Location Services configuration since I don't want to add it to my application. But within the same paragraph there is two necessary settings hidden: CONFIG_MODEM_INFO and CONFIG_MODEM_INFO_ADD_NETWORK. These are necessary to update Device Information in nRF Cloud. Maybe these two settings should be grouped elsewhere in prj.conf for the sample?

     

    # Location Services configuration
    # CONFIG_LOCATION=y
    # CONFIG_LOCATION_METHOD_GNSS=y
    # CONFIG_LOCATION_METHOD_CELLULAR=y
    # CONFIG_NRF_CLOUD_AGNSS=y
    # CONFIG_NRF_CLOUD_LOCATION=y
    CONFIG_MODEM_INFO=y
    CONFIG_MODEM_INFO_ADD_NETWORK=y
    # CONFIG_NRF_CLOUD_PGPS=y
    # CONFIG_NRF_CLOUD_PGPS_REPLACEMENT_THRESHOLD=4
    # CONFIG_NRF_CLOUD_PGPS_REQUEST_UPON_INIT=y
    

    The App Name is set in CMakeLists.txt

    project(YOUR_APP_NAME_HERE)
    zephyr_compile_definitions(PROJECT_NAME=${PROJECT_NAME})

    The App version is in Kconfig in the nrf_cloud_multi_service sample. But it can also be set in prj.conf like this:

    CONFIG_APP_VERSION="1.0.1"

    I did want  to change the Battery Voltage to reflect my actual battery voltage (a measured value), but the library implementation of modem info seems to retrieve this value by AT cmd (hence the SoC VCC), and I can't find a way to do it without messing with the SDK files. Any suggestion?

    Bård

Reply
  • Hi Priyanka

    I found a solution with "App Name" and "App Version", but not "Battery Voltage" (see at end).

    The "App Name" and "App Version" didn't get updated due to some changes I made in the prj.conf. I commented out every setting related to Location Services configuration since I don't want to add it to my application. But within the same paragraph there is two necessary settings hidden: CONFIG_MODEM_INFO and CONFIG_MODEM_INFO_ADD_NETWORK. These are necessary to update Device Information in nRF Cloud. Maybe these two settings should be grouped elsewhere in prj.conf for the sample?

     

    # Location Services configuration
    # CONFIG_LOCATION=y
    # CONFIG_LOCATION_METHOD_GNSS=y
    # CONFIG_LOCATION_METHOD_CELLULAR=y
    # CONFIG_NRF_CLOUD_AGNSS=y
    # CONFIG_NRF_CLOUD_LOCATION=y
    CONFIG_MODEM_INFO=y
    CONFIG_MODEM_INFO_ADD_NETWORK=y
    # CONFIG_NRF_CLOUD_PGPS=y
    # CONFIG_NRF_CLOUD_PGPS_REPLACEMENT_THRESHOLD=4
    # CONFIG_NRF_CLOUD_PGPS_REQUEST_UPON_INIT=y
    

    The App Name is set in CMakeLists.txt

    project(YOUR_APP_NAME_HERE)
    zephyr_compile_definitions(PROJECT_NAME=${PROJECT_NAME})

    The App version is in Kconfig in the nrf_cloud_multi_service sample. But it can also be set in prj.conf like this:

    CONFIG_APP_VERSION="1.0.1"

    I did want  to change the Battery Voltage to reflect my actual battery voltage (a measured value), but the library implementation of modem info seems to retrieve this value by AT cmd (hence the SoC VCC), and I can't find a way to do it without messing with the SDK files. Any suggestion?

    Bård

Children
Related