LwM2M client in Type 1 LD

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
sanees
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

We are integrating Anjay LWM2M client on Murata Type 1LD (cypress psoc). if mbedTLS is enabled there is an error trying to register. Where as the code works in non -secure mode. Also  the same code works fine in mbedTLS mode from linux machine. So this has to be an issue with Anjay LWM2M and WICED integration. Trying to debug and not sure what the following error means, any help is much appreciated

Output Bytes:48 2 B4 66 D 88 34 D0 23 5B 8B 31 B2 72 64 11 28 39 6C 77 6D 32 6D 3D 31 2E 30 C 65 70 3D 74 65 73 74 62 6F 61 72 64 5 6C 74 3D 36 30 FF 3C 2F 31 2F 30 3E
send_ssl socket= 0x20015b18 , buffer= 0x20017014 , buffer_length= 53
Going for mbedtls_ssl_write
Handshake not NULL
Client id (null) client id length 0 Host name try-anjay.avsystem.com psk (null) psk_leng 0
Psk key P4s$w0rd ident testboard
Hand shake not over
MBEDTLS_SSL_CLI_C end point 0
inside mbedtls_ssl_flush_output
inside mbedtls_ssl_flush_output
avs_bio_send
avs_net_socket_send
Handshake return -26880
Going for mbedtls_ssl_write
Handshake not NULL
Client id (null) client id length 0 Host name try-anjay.avsystem.com psk (null) psk_leng 0
Psk key P4s$w0rd ident testboard
Hand shake not over
MBEDTLS_SSL_CLI_C end point 0
inside mbedtls_ssl_flush_output
Handshake return -76
wrap_handshake_result Result -76, security mode 1, dane_ta_certs (null) verify_result 0
Hand shake result : -76
socket bio_error
send failed 0 53 : -76
AVS_COAP_CLIENT_REQUEST_FAIL
failure while receiving Register response: Message too long
mapping CoAP error Message too long to network error
ANJAY_REGISTRATION_ERROR_NETWORK
could not register to server 1

0 Likes
1 Solution
Phanindra_I
Moderator
Moderator
Moderator
250 sign-ins 10 likes given 25 likes received

Hi,

You can consider trying with ModusToolbox because WICED is not recommended for new designs. Please confirm whether you have enabled the macros in "Security stack prints" in "wiced_defaults.h" file. Also, you can try setting up breakpoints and running in debug mode to find the function that's causing error.

Thanks

View solution in original post

0 Likes
3 Replies
Phanindra_I
Moderator
Moderator
Moderator
250 sign-ins 10 likes given 25 likes received

Hi,

You can consider trying with ModusToolbox because WICED is not recommended for new designs. Please confirm whether you have enabled the macros in "Security stack prints" in "wiced_defaults.h" file. Also, you can try setting up breakpoints and running in debug mode to find the function that's causing error.

Thanks

0 Likes

does ModusToolbox support murata type 1LD? we are in this catch 22 situation

1) murata wifidriver depends on wiced specifc mbedTLS , there is some issue/bug in that implementation which make it not work with lwm2m client

2)Example if we used anjay lwm2m it fails in this mbedTLS_bio library inside the socketsend.

3)mbedTLS implementation is much different compared to open source version. We couldnt even trace where the packets are going after calling sendsocket,

4) if there is an example code that used mbedTLS in wiced that can send a packet successfully, we could try to figure out where the issue is

Is there a way we can reach out to some one to help figure this out?

0 Likes
Phanindra_I
Moderator
Moderator
Moderator
250 sign-ins 10 likes given 25 likes received

Hi,

The ModusToolbox has support for CYW43438 but not for Type 1LD module. The snip.secure_mqtt application in wiced uses mbedTLS, so you can try that application.

Thanks

0 Likes