BG96 and LwM2M - Is there any example that currently works?

I’m using this example as a working base:

http://www.noomio.com.au/wiki/bg96/lwm2m-step-by-step/

After rebooting the modem I get the expected log:

LWM2M: State: STATE_REGISTER_REQUIRED
LWM2M: State: STATE_REGISTERING
LWM2M: State: STATE_READY

I have an entry on the Leshan server for this device, but when I select the “read” button for any property on the Leshan server, it has a device timeout in the first attempt and after that, it says the device is sleeping:

“Unable to read instance /1/1 for urn:imei:866425030054276 : 400 Invalid request:The destination client is sleeping, request cannot be sent.”

My device is running FW BG96MAR04A04M1G_01.005.01.005

Any idea of what could be the problem? Are there more updated examples to use?

Thanks in advance.

Best regards

Fernando

Have your register you device in LwMm server first ,if not ,pls do it

any more detail, pls reach to support@quectel.com

we need to check the log for more detail

Hi Stephen,

Thanks for your feedback! I am currently seeing these messages on the debug console, doesn’t this mean the device is registered on the server?

LWM2M: State: STATE_REGISTER_REQUIRED
LWM2M: State: STATE_REGISTERING
LWM2M: State: STATE_READY

Or do I need to register it manually? And how is this done?

Best regards

Fernando

I’m facing the same problem.

The device is registered with the lwm2m server as I can see the registration ID on the server.

Here are the logs from the debug console from the BG96.

Net: Net Registered
dss_netapp: DSS_NetApp Registered
atfwd_cli_app: Atfwd_Cli_App Registered
LWM2M_EXT: LWM2M_EXT Registered

Command List:
  Commands:
     1. Help
     2. Exit

  Subgroups:
     3. Net
     4. dss_netapp
     5. atfwd_cli_app
     6. LWM2M_EXT


>
LWM2M: CLI registered
LWM2M: LWM2M_LOG:Carrier type = 0
LWM2M:
LWM2M: REG EP NAME = 4
LWM2M:
LWM2M: BOOTSTRAP EP NAME = 4
LWM2M:

Any help would be appreciated.

Regards,
Yadunandan AB

1 Like