This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

#if defined(CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2) doesn't support in lwm2m client project?

Hello,

We are using lwm2m client project SDK version v1.9.0.  We need to enable  #define CONNMON_LAC 12 to get LAC value but i am facing problem to enable #if defined(CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2). could you please provide the document to update firmware version to enable require object.

I follow the this link  https://www.nordicsemi.com/Products/nRF9160/Download#infotabs and update the mfw_nrf9160_1.3.1.zip using programmer. this zip file contain three hex file i put all together in "File memory layout" and "Erase & write".

Result is still same. Could you please explain me the right way to enable #if defined(CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2)

Thanks

Best Regards

Deepak Aagri

  • Hello Deepak,

    I’m not really sure if I understand what you would like me to answer here, because I do not see any obvious connection between the Zephyr configuration parameter CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2 and how to perform a modem firmware update.

    We are using lwm2m client project SDK version v1.9.0.  We need to enable  #define CONNMON_LAC 12 to get LAC value but i am facing problem to enable #if defined(CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2). could you please provide the document to update firmware version to enable require object.

    I have added:

    CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2=y

    to the LwM2M client and can build it without any errors. What kind of error are you facing?

    I follow the this link  https://www.nordicsemi.com/Products/nRF9160/Download#infotabs and update the mfw_nrf9160_1.3.1.zip using programmer. this zip file contain three hex file i put all together in "File memory layout" and "Erase & write".

    Modem update triggered by selecting the whole mfw_nrf9160_1.x.x.zip file followed by “Write”.

    Regards,

    Markus

  • Hello,

    I include the CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2=y in prj.conf file. After compilation .config file (build\zephyr)  reflect the changes below

    # CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_0 is not set
    CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2=y

    LAC start appearing in object list, as show in below picture:

    But it is showing Zero there is no value available. In next step i found  .config file \build_nrf9160dk_nrf9160_ns\zephyr

    CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_0=y
    # CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2 is not set

    i replace with the below mentioned changes manually::

    # CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_0=y
    CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2=y  

    But still LAC value is zero. using nrfCloud i can see LAC (Area Code) it showing different..

    Could please help me to update LAC value on leshan server.

    Best Regards

    Deepak Aagri

  • Thanks a lot for your feedback, Deepak!

    Deepak Aagri said:
    But it is showing Zero there is no value available. In next step i found  .config file \build_nrf9160dk_nrf9160_ns\zephyr

    I’m a little confused here. Are you building the sample for different targets? Because you should see:

    # CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_0 is not set
    CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_2=y

    in .config for the nrf9160dk_nrf9160_ns build as well.

    Deepak Aagri said:
    Could please help me to update LAC value on leshan server.

    But anyway, LAC value update is not implemented yet from our side. As the parameter description states, this is only experimental for the moment.

    However, you can add the update yourself if you like. To do so, you can add the following line to the end of modem_data_update():

    lwm2m_engine_set_u16("4/0/12", modem_param.network.area_code.value);

    Regards,

    Markus

Related