Target:
I use a HL7812 for mobile communication.
I want my application to be able to register and exchange data with LESHAN test-server using LWM2M protocol.
Actual:
I have a running application which can communicate via http protocol to a configured URL using:
AT+KHTTPCFG=1,“www.http-server.net”,80,0,“user”,“password”
AT+KHTTPPOST=1,“/registration/register.php”,0
Problem:
I can’t find how to setup the URL for communication via LWM2M protocol.
Implementation LWM2M communication:
AT+DMSUPPORT=1 // enable LWM2M
AT+DMSESSION=1,1 // register to server
Questions:
How to setup the URL from the LWM2M server?
In the AT+DMSESSION command is the second parameter ‘server_short_id’ a number.
Is it possible to assign this value to a specific URL? And if so, how to do it?
What firmware is the HL7812 running? Which network carrier’s SIM are you using? Which server do you want to connect the LWM2M client to?
Because according to the AT command guide:
The HL78xx firmware uses the carrier client only for those carriers that have identified to
Sierra that they want it to be used instead of the AVMS client. For example, 4.6.2.1 is configured to use the carrier client only for AT&T, Verizon, Softbank, and LGU+
I use 1nce SIM (roaming)
+CREG: 3,5,“11A3”,“01AEA100”,7
first I will try to connect to ‘Leshan Demo Server’ for experience
finally I will connect to AT&T server (ODIS) for registration the host device
I can do updates via Airvantage website (also LWM2M protocol),
but in this case the URL seems to be hardcoded in the HL7812.
What does 4.6.2.1 mean? Is this the HL7812 Firware version?
If so, can only this connect to AT&T carrier?
I saw AT&T has certified HL7812 with firmware 5.5.8. I tested it (in NA) but connection was denied. Response: ‘PLMN denied, Cause 15’
For connecting to ‘Leshan Demo Server’ (LWM2M protocol) how to tell HL7812
‘coap://leshan.eclipseprojects.io:5683’ is the target URL
The AT&T LWM2M Server has already been pre-added into the firmware of the HL7812 module.
You just need to register the HL7812 on the AT&T server using the serial number and IMEI.
After that, you can use LWM2M commands to communicate with the server. Please refer to the section “Carrier LWM2M Client Configuration Commands” based on my previous comment.
With this firmware, and previous versions, it is not possible to connect to Leshan or other test servers, because you do not have AT commands to setup the URL from the test server.
I reported this to our distributor and contact person from Semtech. I got no information about, when this will be possible.