avsystem / anjay-freertos-client Goto Github PK
View Code? Open in Web Editor NEWLwM2M client based on Anjay and FreeRTOS for STM32 devices.
License: Apache License 2.0
LwM2M client based on Anjay and FreeRTOS for STM32 devices.
License: Apache License 2.0
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
Setting IPv6 link-local address
Obtaining IPv4 address via DHCP
IPv6 Network ready IP: FE80::29D:6BFF:FE62:78AA
IPv4 Network ready IP: 192.168.1.195
Wifi network up success
Wifi network up success
TEST Version 1.0.4
*** mbedtls_ctr_drbg_seed ***
entropy_callback
######################## entropy_callback
Seed_callback out buff : 536930016
Initializing Anjay
RunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunningRunning$$$$$ AVS_NET_DTLS_SOCKET $$$$$$
avs_net_dtls_socket_create
WITH SSL
$$$$$create_ssl_socket
configure_ssl socket 0x2000e3cc, configuration= 0x2000e4e8
*initialize_ssl_socket
AVS_NET_SECURITY_PSK
******** initialize_psk_security ******
******************* mbedtls_ssl_conf_psk ###################
Psk key P4s$w0rd length 8
Identity testboard length 9
$$$$$$$ AVS_OK
************_anjay_server_connection_internal_bring_online
Start SSL
**Could not restore session; performing full handshake
MBEDTLS_SSL_CLI_C end point 0
inside mbedtls_ssl_flush_output
wrap_handshake_result Result 0, security mode 1, dane_ta_certs (null) verify_result 0
handshake success: new session started
**Return AVS_OK
ANJAY_REGISTRATION_ERROR_REJECTED
update rejected for SSID 1 needs re-registration
Attempting to register with LwM2M version 1.0
sending Register
lwm2m version 0
coap_base->last_exchange_id 0
(*exchange_ptr)->id 0
avs_time_monotonic_now() second 0 nanosec 9
Register send
Runningget_dtls_overhead
avs_net_socket_send
send_ssl start
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
inside mbedtls_ssl_flush_output
avs_bio_send
avs_net_socket_send
wrap_handshake_result Result 53, security mode 1, dane_ta_certs (null) verify_result 0
Hand shake result : 53
RunningReceive_ssl socket = 0x20015b18, buffer= 0x200141e8 , buffer_length= 2048inside mbedtls_ssl_flush_output
MBEDTLS_SSL_CLI_C end point 0
inside mbedtls_ssl_flush_output
wrap_handshake_result Result -76, security mode 1, dane_ta_certs (null) verify_result 0
receive failed: -76
RunningRunningRunningavs_net_socket_send
send_ssl start
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
The video link in the README.md
is not pointing to a working video file.
https://www.youtube.com/watchv=fgy38XfttM8
gives 404.
Hello, I wanted to ask if secure boot and firmware update supported for the STM32U585?
Hi Team,
Is Anjay-freertos-client 21.10 buildable?
We having error when we build it with STM32 cube IDE.
Please support us or share the buildable code.
We are using STM32CubeIde Version: 1.8.0.
Regards,
Vijendra
Hello Team,
Is there any source code compile with KEIL IDE?
Regards,
Vijendra
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.