now we sucessfully flashed the device, it is connected to the wifi hotspot.

but we are facing the follwing error

XDK DEVICE 1: WLANPersonalWPA2Connect : Connected to WPA network successfully. 
 INFO | XDK DEVICE 1: srand(3416)
 INFO | XDK DEVICE 1: FOTA_EVENT_PARTITION_AGENT_INIT_OK 
 INFO | XDK DEVICE 1: LWM2M_Enable : with DTLS (PSK) 
 INFO | XDK DEVICE 1: SntpSentCallback : Success
 INFO | XDK DEVICE 1: SntpTimeCallback : received
 INFO | XDK DEVICE 1: LWM2M server resolved: coaps://52.29.220.52:5684
 INFO | XDK DEVICE 1: WLAN: connect status: --- online ---
 INFO | XDK DEVICE 1: Try refresh registration ENABLED (28 sec)
 INFO | XDK DEVICE 1: ==> registration retry
 INFO | XDK DEVICE 1:   . Setting up the SSL/TLS structure...==> Waiting for successful registration 1!
 INFO | XDK DEVICE 1: failed  ! mbedtls_ssl_handshake returned -0x7780MyHandshake break 
 INFO | XDK DEVICE 1:         34 [EXH:2] M=0x03, E=0x09, S=0x2 (0x0389)
 INFO | XDK DEVICE 1:         34 [EXH:2] M=0x03, E=0x09, S=0x2 (0x0389)
 INFO | XDK DEVICE 1: LWM2MApplicationCallback : Serval Stack Error Code : M=0x09, E=0x0B, S=0x1 (0x094B)
 INFO | XDK DEVICE 1: registration failed M=0x09, E=0x0B, S=0x1 (0x094B)
 INFO | XDK DEVICE 1: AppLWM2MStatusNotificationCB : Registration failed 

 INFO | XDK DEVICE 1: LWM2M server resolve started: coaps://lwm2m.eu-1.bosch-iot-suite.com:5684
 INFO | XDK DEVICE 1: DNS lookup coaps://lwm2m.eu-1.bosch-iot-suite.com:5684
 INFO | XDK DEVICE 1: DNS resolved coaps://52.29.220.52:5684, time 79 ms
 INFO | XDK DEVICE 1: LWM2M server resolved: coaps://52.29.220.52:5684
 INFO | XDK DEVICE 1:    ENABLED (since 40 sec, lifetime 240 sec)
 INFO | XDK DEVICE 1:    DNS RESOLVED (since 5 sec)
 INFO | XDK DEVICE 1:    ENABLED (since 60 sec, lifetime 240 sec)
 INFO | XDK DEVICE 1:    DNS RESOLVED (since 25 sec)
 INFO | XDK DEVICE 1:    ENABLED (since 80 sec, lifetime 240 sec)
 INFO | XDK DEVICE 1:    DNS RESOLVED (since 45 sec)
 INFO | XDK DEVICE 1:    ENABLED (since 100 sec, lifetime 240 sec)
 INFO | XDK DEVICE 1:    DNS RESOLVED (since 65 sec)
 INFO | XDK DEVICE 1:    ENABLED (since 120 sec, lifetime 240 sec)
 INFO | XDK DEVICE 1:    DNS RESOLVED (since 85 sec)
 INFO | XDK DEVICE 1:    ENABLED (since 140 sec, lifetime 240 sec)
 INFO | XDK DEVICE 1:    DNS RESOLVED (since 105 sec)
 INFO | XDK DEVICE 1:    ENABLED (since 160 sec, lifetime 240 sec)
 INFO | XDK DEVICE 1:    DNS RESOLVED (since 125 sec)
 INFO | XDK DEVICE 1:    ENABLED (since 180 sec, lifetime 240 sec)
 INFO | XDK DEVICE 1:    DNS RESOLVED (since 145 sec)
 INFO | XDK DEVICE 1: Try refresh registration ENABLED (192 sec)
 INFO | XDK DEVICE 1: ==> registration retry
 INFO | XDK DEVICE 1:   . Setting up the SSL/TLS structure...==> Waiting for successful registration 2!
 INFO | XDK DEVICE 1: failed  ! mbedtls_ssl_handshake returned -0x7780MyHandshake break 
 INFO | XDK DEVICE 1:        198 [EXH:2] M=0x03, E=0x09, S=0x2 (0x0389)
 INFO | XDK DEVICE 1:        198 [EXH:2] M=0x03, E=0x09, S=0x2 (0x0389)
 INFO | XDK DEVICE 1: LWM2MApplicationCallback : Serval Stack Error Code : M=0x09, E=0x0B, S=0x1 (0x094B)
 INFO | XDK DEVICE 1: registration failed M=0x09, E=0x0B, S=0x1 (0x094B)
 INFO | XDK DEVICE 1: AppLWM2MStatusNotificationCB : Registration failed 
 INFO | XDK DEVICE 1: LWM2M server resolve started: coaps://lwm2m.eu-1.bosch-iot-suite.com:5684
 INFO | XDK DEVICE 1: DNS lookup coaps://lwm2m.eu-1.bosch-iot-suite.com:5684
 INFO | XDK DEVICE 1: DNS resolved coaps://52.29.220.52:5684, time 135 ms
 INFO | XDK DEVICE 1: LWM2M server resolved: coaps://52.29.220.52:5684
 INFO | XDK DEVICE 1: Try refresh registration ENABLED (200 sec)

0 (0 Votes)
RE: LWM2M Registration Error in IoT Cloud Connection 
Answer
12/3/18 4:00 AM as a reply to Geetha Devasena MS.
can anyone help me for the above error
0 (0 Votes)
RE: LWM2M Registration Error in IoT Cloud Connection 
Answer
12/3/18 4:37 PM as a reply to Geetha Devasena MS.
Hello Geetha,

the issue with your project is, that the mbedtls_ssl_handshake is failing. The return code of this function call is corresponding to 0x7780MyHandshake break . According to the mbed TLS documentation , this error means that you received a fatal alert message from the server.

Furthermore, the message 34 [EXH:2] M=0x03, E=0x09, S=0x2 (0x0389) is corresponding to an issue with the ServalStack and is pointing to an invalid UDP socket .

Furthermore, I tested the BoschXDKCloudConnectivity example by myself and was, unfortunately, not able to reproduce your issue. As such, could you please go into detail, if you followed the steps described here to connect to the Bosch IoT cloud or if you used the empty config.txt file provided by the BoschXDKCloudConnectivity example itself?

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
0 (0 Votes)
RE: LWM2M Registration Error in IoT Cloud Connection 
Answer
12/6/18 5:23 AM as a reply to Franjo Stjepandic.

Hello Franjo,

 

I had followed the steps provided in exmaple, even i changed the Config.txt file,

 

the follwing is my config file\

 

# XDK config for "xdk-110" (bosch.xdk:3895673686480647)
SSID = Ranjith
PASSWORD = 12345678
LWM2MDEFSRV = coaps://lwm2m.eu-1.bosch-iot-suite.com:5684
ACTIVATEDTLSPSK = YES
DTLSPSKIDENTITY = bosch.xdk\3895673686480647
DTLSPSKSECRETKEY = AQDFTUXWCSQKTOHH
LWM2MENDPOINT = 3895673686480647

I have changed the app controller file also

0 (0 Votes)
RE: LWM2M Registration Error in IoT Cloud Connection 
Answer
12/6/18 3:42 PM as a reply to Geetha Devasena MS.
Dear Geetha,

Thank you for providing further information. You can simply use the config.txt file you received from the Bosch IoT Cloud and insert your Wi-Fi credentials into it. You do not need to insert the credentials from the provided files into the files you have in the config folder of the BoschXDKCloudConnectivity example. Additionally, a further configuration in the header file AppController.h is not necessary.

Please let me know if this was helpful and feel free to ask if you have further questions.

Kind regards,
Franjo
0 (0 Votes)