Re: How to use DTLS with offloaded socket if the underlying modem does not support DTLS

William Fish
 

A quick internet search brought up a manual which gave a basic DLTS example:
https://www.quectel.com/UploadImage/Downlad/Quectel_BC95-G&BC68_AT_Commands_Manual_V1.1.pdf

BC95-G&BC68_AT_Commands_Manual -- Pg 122 
 
Register to Huawei’s IoT Platform with DTLS
 
AT+CGATT? //Query the PS service attach status.
+CGATT:1 //Attached to the PS service.
OK
 
AT+NCDP= 180.101.147.115,5684 //Set IoT platform IP address and port. The port is 5684.
OK
 
AT+QSECSWT=1 //Encryption using standard DTLS.
OK
 
AT+QSETPSK=201703230000024,0123456789ABCDEF0123456789ABCDEF
OK //Set PSK ID and PSK.
 
AT+QREGSWT? //Query the registration mode.
+QREGSWT:0 //Manual registration mode.
OK
 
AT+QLWSREGIND=0 //Start to register to the IoT platform.
OK
 
+QLWEVTIND:0 //Successful registration indication.

Join devel@lists.zephyrproject.org to automatically receive all group messages.