Giter Site home page Giter Site logo

armmbed / mbed-os-example-client Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 58.0 8.08 MB

DEPRECATED: This is the mbed Client example application for mbed OS.

Home Page: https://cloud.mbed.com/docs/current/welcome/index.html

License: Other

C++ 74.64% C 17.46% Shell 7.90%
example omalwm2m iot-platform iot-framework mbed-os

mbed-os-example-client's Introduction

Deprecation note

This repository has been deprecated and is no longer maintained.

The service (Mbed Device Connector) used by this example application was deprecated in 2018 and is no longer available.

The application has been replaced by mbed-cloud-client-example and service with Pelion Device Management.

Old README.md

The old README is still available.

mbed-os-example-client's People

Contributors

0xc0170 avatar adbridge avatar adustm avatar betzw avatar bogdanm avatar bridadan avatar c1728p9 avatar cmonr avatar geky avatar jammukekkonen avatar janjongboom avatar jeromecoutant avatar juhaylipekkala avatar kaizen8501 avatar kjbracey avatar marcelosalazar avatar mbed-test-account avatar meriac avatar miklis avatar mlnx avatar mshawcroft avatar peknis01 avatar robmeades avatar sg- avatar simosillankorva avatar stevep-arm avatar teetak01 avatar yogpan01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mbed-os-example-client's Issues

Sub-G environment, mesh network could not work, scan fail

I use this example and keep scan no beacon.

Here is my device
Gateway: FIREFLY 6LOWPAN GATEWAY 900MHZ
Mesh_6lowpan_ND: FRDM-K64F board + mbed 6LoWPAN shield (AT86RF212B)

I think my Gateway has already up, here is the bootstrap ready log
====== Gateway log ======
Eth bootstrap ready, IP=fd00:ff1:ce0b:a5e0:fec2:3dff:fe04:81e9
6Lowpan bootstrap ready, IP=fd00:ff1:ce0b:a5e0:0:ff:fe00:31e1
Destination Cache:
Routing table:
fe80::/64 if:0 src:'Static' id:0 lifetime:infinite
On-link (met 128)
fd00:ff1:ce0b:a5e0:0:ff:fe00:31e1/128 if:0 src:'Loopback' id:0 lifetime:infinite
On-link (met 128)
fd00:ff1:ce0b:a5e0:fec2:3dff:fe04:81e9/128 if:1 src:'Loopback' id:0 lifetime:infinite
On-link (met 128)
fe80::/64 if:1 src:'Static' id:0 lifetime:infinite
On-link (met 128)
fd00:ff1:ce0b:a5e0::/64 if:1 src:'Static' id:0 lifetime:1791
On-link (met 64)
RPL memory usage 336
RPL Domain 2000823c
RPL Instance 1
DODAG fd00:ff1:ce0b:a5e0:0:ff:fe00:31e1
G=0 MOP=1 Prf=7
fd00:ff1:ce0b:a5e0::/64 lifetime:infinite pref:-1
::/0 lifetime:infinite pref:0
fd00:ff1:ce0b:a5e0::/64 lifetime:infinite flags:--*
Version 240
Current version Rank=0080
DIO trickle Imin=6, Imax=20972, k=10
I=3072, now=2285, t=2263, c=0
Neighbour Cache 1
Reachable Time: 44577 Retrans Timer: 1000 MTU: 1500
Neighbour Cache 0
Reachable Time: 35539 Retrans Timer: 1000 MTU: 1280
======End Gateway log =======

And here is my Mesh_6lowpan_ND scan fail log
====== 6lowpan_ND log ======
[DBG ][m6LND]: Channel: 1
[DBG ][m6LND]: Channel page: 2
[DBG ][m6LND]: Channel mask: 2
[INFO][addr]: Address added to IF 0: fe80::fec2:3d00:4:ab0b
[DBG ][addr]: LL64 Register OK!
[INFO][m6LND]: Start 6LoWPAN ND Bootstrap
[DBG ][6Bo ]: Start Active Scan
[DBG ][mlme]: chan page 2, mask 2
[DBG ][mlme]: MAC: Start MLME scan
[DBG ][mlme]: Scan channel 1
[DBG ][mlme]: BEA REQ tx
[DBG ][mlme]: Scan Complete..Halt MAC
[DBG ][mlme]: Trig confirm
[DBG ][mlme]: Active Scan Result
[DBG ][6Bo ]: Mac scan confirm:No Beacons
[DBG ][mlme]: 00
[DBG ][mlme]: Free Response
[DBG ][6Bo ]: Network Bootsrap Start Fail
[DBG ][mleS]: Free Socket
[DBG ][mlme]: RESET MAC PIB
[DBG ][m6LND]: app_parse_network_event() 3
[DBG ][m6LND]: Link Layer Scan Fail: No Beacons
=====End 6lowpan_ND log==========

and to the mbed_app.json, i have done the follow modified,

    "network-interface":{
        "help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD",
        "value": "MESH_LOWPAN_ND"
    },

        "mbed-mesh-api.6lowpan-nd-channel-page": 2,
        "mbed-mesh-api.6lowpan-nd-channel": 1,
        "mbed-trace.enable": 1

This is followed the sub-G settings,

Do i do anything wrong?

Add default JSON files to 'config' folder

There are lots of configurations available for this example. Modifying 'mbed_app.json' is becoming tedious.

I suggest to create a 'config' folder and add multiple json files that could be reused by the user (by copying it to the root directory and renaming to 'mbed_app.json'). Suggestions:

  • Ethernet_IPv4
  • Ethernet_IPv6
  • Wifi_IPv4
  • Mesh_6LoWPAN_AT233
  • Mesh_Thread_SED_AT233
  • Mesh_Thread_Router_AT233
  • Others?

@jankii01

[IAR export] Multiple tools write to the same file.

This is the exact error when building in IAR after calling the mbed export command for K64F:

Build error: Multiple tools write to the same file.
  File: C:\Repos\oob\mbed-os-example-client\projectfiles\iar_K64F\.build\iar_arm\Obj\Timeout.o 
  Tool 1: C/C++ Compiler, when processing C:\Repos\oob\mbed-os-example-client\mbed-os\features\FEATURE_COMMON_PAL\sal-stack-nanostack-eventloop\bare-metal\timeout.c 
  Tool 2: C/C++ Compiler, when processing C:\Repos\oob\mbed-os-example-client\mbed-os\hal\common\Timeout.cpp 



Client fails to initialise the RF shield for target NUCLEO_F401RE (based in mbed 5.2)

The build based on commit c57e5ec not working for target NUCLEO_F401RE and using the GCC_ARM toolchain.

Everytime that I try to execute the resulting binary on my demo board I end up with the following error:

Connection to Network Failed -3012! Exiting application....

Further digging showed that the it fails to initialise the RF shield since the call to rf_radio_type_read() returns ATMEL_UNKNOW_DEV

I attached an oscilloscope to the SPI interface and could check that there is activity on the MOSI line (so it manages to write the command to read the radio type) but no activity in the MISO line.

If attach the same shield with the same probes attached to a K64F, everything works, the radio type is properly read and I can clearly see activity in the MISO line.

@MarceloSalazar @karsev

RZ_A1H build fails - 6LoWPAN config

Tried RC4 with 6LoWPAN configuration

Commented out lines with SW2 and SW3 and now compiles fine.

Link errors:


Link: mbed-os-example-client
./.build/RZ_A1H/GCC_ARM/atmel-rf-driver/source/driverRFPhy.o: In function `rf_device_register':
driverRFPhy.c:(.text.rf_device_register+0x98): undefined reference to `arm_net_phy_register'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/mesh_system.o: In function `mesh_system_init':
mesh_system.c:(.text.mesh_system_init+0x28): undefined reference to `net_init_core'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.o: In function `nd_tasklet_configure_and_connect_to_network':
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0x18): undefined reference to `arm_nwk_interface_configure_6lowpan_bootstrap_set'
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0xa4): undefined reference to `arm_nwk_link_layer_security_mode'
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0xb4): undefined reference to `arm_nwk_6lowpan_link_scan_parameter_set'
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0x100): undefined reference to `arm_nwk_set_channel_list'
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0x154): undefined reference to `arm_nwk_6lowpan_link_nwk_id_filter_for_nwk_scan'
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0x160): undefined reference to `arm_nwk_interface_up'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.o: In function `nd_tasklet_trace_bootstrap_info':
nd_tasklet.c:(.text.nd_tasklet_trace_bootstrap_info+0x18): undefined reference to `arm_nwk_nd_address_read'
nd_tasklet.c:(.text.nd_tasklet_trace_bootstrap_info+0x84): undefined reference to `arm_net_address_get'
nd_tasklet.c:(.text.nd_tasklet_trace_bootstrap_info+0xb8): undefined reference to `arm_nwk_mac_address_read'
nd_tasklet.c:(.text.nd_tasklet_trace_bootstrap_info+0x180): undefined reference to `arm_net_get_current_channel'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.o: In function `nd_tasklet_get_ip_address':
nd_tasklet.c:(.text.nd_tasklet_get_ip_address+0x30): undefined reference to `arm_net_address_get'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.o: In function `nd_tasklet_disconnect':
nd_tasklet.c:(.text.nd_tasklet_disconnect+0x2c): undefined reference to `arm_nwk_interface_down'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.o: In function `nd_tasklet_network_init':
nd_tasklet.c:(.text.nd_tasklet_network_init+0x24): undefined reference to `ns_sw_mac_create'
nd_tasklet.c:(.text.nd_tasklet_network_init+0x2c): undefined reference to `arm_nwk_interface_lowpan_init'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_configure_and_connect_to_network':
thread_tasklet.c:(.text.thread_tasklet_configure_and_connect_to_network+0x2c): undefined reference to `arm_nwk_interface_configure_6lowpan_bootstrap_set'
thread_tasklet.c:(.text.thread_tasklet_configure_and_connect_to_network+0x220): undefined reference to `thread_management_node_init'
thread_tasklet.c:(.text.thread_tasklet_configure_and_connect_to_network+0x22c): undefined reference to `arm_nwk_interface_up'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_trace_bootstrap_info':
thread_tasklet.c:(.text.thread_tasklet_trace_bootstrap_info+0x1c): undefined reference to `arm_net_address_get'
thread_tasklet.c:(.text.thread_tasklet_trace_bootstrap_info+0x50): undefined reference to `arm_nwk_mac_address_read'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_main':
thread_tasklet.c:(.text.thread_tasklet_main+0x80): undefined reference to `arm_nwk_interface_up'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_get_ip_address':
thread_tasklet.c:(.text.thread_tasklet_get_ip_address+0x30): undefined reference to `arm_net_address_get'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_disconnect':
thread_tasklet.c:(.text.thread_tasklet_disconnect+0x2c): undefined reference to `arm_nwk_interface_down'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_network_init':
thread_tasklet.c:(.text.thread_tasklet_network_init+0x28): undefined reference to `ns_sw_mac_create'
thread_tasklet.c:(.text.thread_tasklet_network_init+0x30): undefined reference to `arm_nwk_interface_lowpan_init'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_data_poll_rate_set':
thread_tasklet.c:(.text.thread_tasklet_data_poll_rate_set+0x24): undefined reference to `arm_nwk_host_mode_set'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackInterface::socket_send(void*, void const*, unsigned int)':
NanostackInterface.cpp:(.text._ZN18NanostackInterface11socket_sendEPvPKvj+0x60): undefined reference to `socket_sendto'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackSocket::open()':
NanostackInterface.cpp:(.text._ZN15NanostackSocket4openEv+0x30): undefined reference to `socket_open'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackInterface::socket_sendto(void*, SocketAddress const&, void const*, unsigned int)':
NanostackInterface.cpp:(.text._ZN18NanostackInterface13socket_sendtoEPvRK13SocketAddressPKvj+0x88): undefined reference to `socket_sendto'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackInterface::socket_bind(void*, SocketAddress const&)':
NanostackInterface.cpp:(.text._ZN18NanostackInterface11socket_bindEPvRK13SocketAddress+0x5c): undefined reference to `socket_bind'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackInterface::socket_connect(void*, SocketAddress const&)':
NanostackInterface.cpp:(.text._ZN18NanostackInterface14socket_connectEPvRK13SocketAddress+0x54): undefined reference to `socket_connect'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackSocket::close()':
NanostackInterface.cpp:(.text._ZN15NanostackSocket5closeEv+0x3c): undefined reference to `socket_close'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackSocket::~NanostackSocket()':
NanostackInterface.cpp:(.text._ZN15NanostackSocketD2Ev+0x24): undefined reference to `socket_free'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackSocket::event_data(socket_callback_t*)':
NanostackInterface.cpp:(.text._ZN15NanostackSocket10event_dataEP17socket_callback_t+0x5c): undefined reference to `socket_read'
collect2.exe: error: ld returned 1 exit status
[ERROR] ./.build/RZ_A1H/GCC_ARM/atmel-rf-driver/source/driverRFPhy.o: In function `rf_device_register':
driverRFPhy.c:(.text.rf_device_register+0x98): undefined reference to `arm_net_phy_register'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/mesh_system.o: In function `mesh_system_init':
mesh_system.c:(.text.mesh_system_init+0x28): undefined reference to `net_init_core'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.o: In function `nd_tasklet_configure_and_connect_to_network':
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0x18): undefined reference to `arm_nwk_interface_configure_6lowpan_bootstrap_set'
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0xa4): undefined reference to `arm_nwk_link_layer_security_mode'
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0xb4): undefined reference to `arm_nwk_6lowpan_link_scan_parameter_set'
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0x100): undefined reference to `arm_nwk_set_channel_list'
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0x154): undefined reference to `arm_nwk_6lowpan_link_nwk_id_filter_for_nwk_scan'
nd_tasklet.c:(.text.nd_tasklet_configure_and_connect_to_network+0x160): undefined reference to `arm_nwk_interface_up'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.o: In function `nd_tasklet_trace_bootstrap_info':
nd_tasklet.c:(.text.nd_tasklet_trace_bootstrap_info+0x18): undefined reference to `arm_nwk_nd_address_read'
nd_tasklet.c:(.text.nd_tasklet_trace_bootstrap_info+0x84): undefined reference to `arm_net_address_get'
nd_tasklet.c:(.text.nd_tasklet_trace_bootstrap_info+0xb8): undefined reference to `arm_nwk_mac_address_read'
nd_tasklet.c:(.text.nd_tasklet_trace_bootstrap_info+0x180): undefined reference to `arm_net_get_current_channel'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.o: In function `nd_tasklet_get_ip_address':
nd_tasklet.c:(.text.nd_tasklet_get_ip_address+0x30): undefined reference to `arm_net_address_get'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.o: In function `nd_tasklet_disconnect':
nd_tasklet.c:(.text.nd_tasklet_disconnect+0x2c): undefined reference to `arm_nwk_interface_down'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.o: In function `nd_tasklet_network_init':
nd_tasklet.c:(.text.nd_tasklet_network_init+0x24): undefined reference to `ns_sw_mac_create'
nd_tasklet.c:(.text.nd_tasklet_network_init+0x2c): undefined reference to `arm_nwk_interface_lowpan_init'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_configure_and_connect_to_network':
thread_tasklet.c:(.text.thread_tasklet_configure_and_connect_to_network+0x2c): undefined reference to `arm_nwk_interface_configure_6lowpan_bootstrap_set'
thread_tasklet.c:(.text.thread_tasklet_configure_and_connect_to_network+0x220): undefined reference to `thread_management_node_init'
thread_tasklet.c:(.text.thread_tasklet_configure_and_connect_to_network+0x22c): undefined reference to `arm_nwk_interface_up'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_trace_bootstrap_info':
thread_tasklet.c:(.text.thread_tasklet_trace_bootstrap_info+0x1c): undefined reference to `arm_net_address_get'
thread_tasklet.c:(.text.thread_tasklet_trace_bootstrap_info+0x50): undefined reference to `arm_nwk_mac_address_read'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_main':
thread_tasklet.c:(.text.thread_tasklet_main+0x80): undefined reference to `arm_nwk_interface_up'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_get_ip_address':
thread_tasklet.c:(.text.thread_tasklet_get_ip_address+0x30): undefined reference to `arm_net_address_get'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_disconnect':
thread_tasklet.c:(.text.thread_tasklet_disconnect+0x2c): undefined reference to `arm_nwk_interface_down'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_network_init':
thread_tasklet.c:(.text.thread_tasklet_network_init+0x28): undefined reference to `ns_sw_mac_create'
thread_tasklet.c:(.text.thread_tasklet_network_init+0x30): undefined reference to `arm_nwk_interface_lowpan_init'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.o: In function `thread_tasklet_data_poll_rate_set':
thread_tasklet.c:(.text.thread_tasklet_data_poll_rate_set+0x24): undefined reference to `arm_nwk_host_mode_set'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackInterface::socket_send(void*, void const*, unsigned int)':
NanostackInterface.cpp:(.text._ZN18NanostackInterface11socket_sendEPvPKvj+0x60): undefined reference to `socket_sendto'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackSocket::open()':
NanostackInterface.cpp:(.text._ZN15NanostackSocket4openEv+0x30): undefined reference to `socket_open'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackInterface::socket_sendto(void*, SocketAddress const&, void const*, unsigned int)':
NanostackInterface.cpp:(.text._ZN18NanostackInterface13socket_sendtoEPvRK13SocketAddressPKvj+0x88): undefined reference to `socket_sendto'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackInterface::socket_bind(void*, SocketAddress const&)':
NanostackInterface.cpp:(.text._ZN18NanostackInterface11socket_bindEPvRK13SocketAddress+0x5c): undefined reference to `socket_bind'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackInterface::socket_connect(void*, SocketAddress const&)':
NanostackInterface.cpp:(.text._ZN18NanostackInterface14socket_connectEPvRK13SocketAddress+0x54): undefined reference to `socket_connect'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackSocket::close()':
NanostackInterface.cpp:(.text._ZN15NanostackSocket5closeEv+0x3c): undefined reference to `socket_close'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackSocket::~NanostackSocket()':
NanostackInterface.cpp:(.text._ZN15NanostackSocketD2Ev+0x24): undefined reference to `socket_free'
./.build/RZ_A1H/GCC_ARM/mbed-os/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.o: In function `NanostackSocket::event_data(socket_callback_t*)':
NanostackInterface.cpp:(.text._ZN15NanostackSocket10event_dataEP17socket_callback_t+0x5c): undefined reference to `socket_read'
collect2.exe: error: ld returned 1 exit status

[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u C:\mbed\oob3\multi-platform\mbed-os-example-client\mbed-os\tools\make.py -t GCC_ARM -m RZ_A1H --source . --build .\.build\RZ_A1H\GCC_ARM" in "C:\mbed\oob3\multi-platform\mbed-os-example-client"

---

@hasnainvirk @yogpan01 @sg-

Source port randomization

Looking at
https://github.com/ARMmbed/mbed-os-example-client/blob/master/simpleclient.h#L108
the random source port might be <1024 and thus selecting a registered port. Which might be no problem. At the same time randomly you might choose 5683 (or other locally used ports) by chance. Which might break things. OK, not in this application, but since it is a reference application it might make sense, to fix it here, before it spills in applications by others.

Please implement https://tools.ietf.org/html/rfc6056 with a check_suitable_port() function in this app.

DNS resolution failure in Thread mode

I've configured the example as a thread end node and it seems like the DNS resolution is failing. I'm getting following error with trace enabled.

[DBG ][mClt]: M2MInterfaceImpl::state_register - IP address 2607:f0d0:2601:52::20 , Port 5684
[DBG ][mClt]: resolve_server_address()
[DBG ][mClt]: M2MInterfaceImpl::socket_error: (4), retry (1), reconnecting (0)

Digging in deeper, pal_getAddressInfo() method in void M2MConnectionHandlerPimpl::dns_handler() is failing.

INT32_MAX not defined in m2mtimerpimpl.cpp

Error when building the example with the ARM Compiler and IAR.

Compile: m2mtimerpimpl.cpp
[Error] m2mtimerpimpl.cpp@111:  #20: identifier "INT32_MAX" is undefined
[Error] m2mtimerpimpl.cpp@125:  #20: identifier "INT32_MAX" is undefined

@yogpan01 could you please have a look and fix it asap?

[multiple targets] Unable to connect using Wifi

Tested RC4 and commented out SW2 / SW3
GCC, Windows

Targets:

  • NUCLEO_F401RE, F411RE: No error message on serial port
  • NUCLEO_F746ZG: [ERROR:] M2MInterface::SecureConnectionFailed

Targets not expected to work

  • DISCO_F429ZI - No arduino headers available
  • RZ_A1H - Wifi module doesn't fit well

NUCLEO_F746ZG build fails

Tested https://github.com/mbedmicro/mbed/releases/tag/mbed-os-5.1.0-rc3
GCC, Windows

Configuration: Ethernet, 6LoWPAN

Build fails because SW2 and SW3 are not mapped to this target:

[Error] main.cpp@72,24: 'SW2' was not declared in this scope
[Error] main.cpp@73,26: 'SW3' was not declared in this scope
[ERROR] .\main.cpp:72:24: error: 'SW2' was not declared in this scope
 InterruptIn obs_button(SW2);
                        ^
.\main.cpp:73:26: error: 'SW3' was not declared in this scope
 InterruptIn unreg_button(SW3);
                          ^

We need to create a config mapping for the relevant targets using this example.

Issue on import of mbed-client-quickstart-morpheus

Here is the error we get currently on the mbed-client-quickstart-morpheus import:

c:\mbed\>mbed import mbed-client-quickstart-morpheus
[mbed] Importing program "mbed-client-quickstart-morpheus" from "https://github.com/ARMmbed/mbed-client-quickstart-morpheus/" at latest revision in the current branch
[mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os/" at rev #a326c13f78038705d84b17a8e92b8a3b9b043709
[mbed] Adding library "mbed-os\mbed" from "https://github.com/mbedmicro/mbed/" at rev #24e767c10f1beb4ad9d2496360ea972be2c02595
[mbed] Adding library "mbed-os\uvisor-mbed-lib" from "https://github.com/ARMmbed/uvisor-mbed-lib/" at rev #9b0756ac4889a26b999383ab82691d05d98f9496
remote: Repository not found.
fatal: repository 'https://github.com/ARMmbed/uvisor-mbed-lib/' not found
abort: HTTP Error 404: Not Found
[mbed ERROR] Unable to clone repository (https://github.com/ARMmbed/uvisor-mbed-lib/#9b0756ac4889a26b999383ab82691d05d98f9496)

build failure with Nucleo boards

compilation fails when built for Nucleo boards. Tried a build with K64F which builds OK.
Adding the ENTROPY macros in mbed_app.json does not add the macros to the mbed_config.h file in the .build/ folder.

"macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\"", "MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES", "MBEDTLS_TEST_NULL_ENTROPY"],

In fact the first macro added is repeatedly added to the file multiple times.
E.g. in mbed_config.h (./build/NUCLEO_L476RG/GCC_ARM)
`

define MBEDTLS_TEST_NULL_ENTROPY

define MBEDTLS_TEST_NULL_ENTROPY

define MBEDTLS_TEST_NULL_ENTROPY

define MBEDTLS_TEST_NULL_ENTROPY

`

error is generated in the file mbed-os/features/mbedtls/inc/mbedtls/check_config.h line no.135
#error "MBEDTLS_TEST_NULL_ENTROPY defined, but not all prerequisites"

This failure happens both in mbed-cli and the online compiler.

Problem connecting mbed os example client with dtls enabled to Leshan

Iยดm trying to connect a mbed os client with DTLS to a Leshan. First I used to connect to the ARM connector with their credentials and it worked properly. The next thing I tried was a setup with a local leshan with the PSK ciphersuite, but i could not get it working. So i switched to the Certificate ciphersuite, where I got it running one time, but they only exchanged one package each. Since then I`m stuck on the 6th flight (client sends "ChangeCipherSpec" and "Encrypted Handshake Message") and the server gets back to the 4th flight ("Server Hello" ... "..Done").

"No.","Time","Source","Destination","Protocol","Length","Info"
"1","0.000000","Client"----->"Server","DTLSv1.0","181","Client Hello"
"2","0.225764","Server"<-----"Client","DTLSv1.2","122","Hello Verify Request"
"3","0.297524","Client"----->"Server","DTLSv1.0","213","Client Hello"
"4","0.506469","Server"<-----"Client","DTLSv1.2","1225","Server Hello, Certificate"
"5","0.510098","Server"<-----"Client","DTLSv1.2","415","Server Key Exchange, Certificate Request, Server Hello Done"
"6","1.534889","Server"<-----"Client","DTLSv1.2","1225","Server Hello, Certificate"
"7","1.538469","Server"<-----"Client","DTLSv1.2","415","Server Key Exchange, Certificate Request, Server Hello Done"
"8","3.639545","Server"<-----"Client","DTLSv1.2","1225","Server Hello, Certificate"
"9","3.642932","Server"<-----"Client","DTLSv1.2","415","Server Key Exchange, Certificate Request, Server Hello Done"
"10","3.723168","Client"----->"Server","DTLSv1.2","592","Certificate"
"11","6.530284","Client"----->"Server","DTLSv1.2","185","Client Key Exchange"
"12","7.352226","Client"----->"Server","DTLSv1.2","162","Certificate Verify"
"13","7.356961","Client"----->"Server","DTLSv1.2","76","Change Cipher Spec"
"14","7.381765","Client"----->"Server","DTLSv1.2","115","Encrypted Handshake Message"
"15","7.544108","Client"----->"Server","DTLSv1.2","592","Certificate"
"16","7.548869","Client"----->"Server","DTLSv1.2","185","Client Key Exchange"
"17","7.553294","Client"----->"Server","DTLSv1.2","162","Certificate Verify"
"18","7.558359","Client"----->"Server","DTLSv1.2","76","Change Cipher Spec"
"19","7.562992","Client"----->"Server","DTLSv1.2","115","Encrypted Handshake Message"
"20","7.782404","Server"<-----"Client","DTLSv1.2","1225","Server Hello, Certificate"  // !!!!
"21","7.786347","Server"<-----"Client","DTLSv1.2","415","Server Key Exchange, Certificate Request, Server Hello Done"
"22","7.997052","Server"<-----"Client","DTLSv1.2","129","Change Cipher Spec, Encrypted Handshake Message"
"23","10.139419","Client"----->"Server","DTLSv1.2","592","Certificate"
"24","10.144136","Client"----->"Server","DTLSv1.2","185","Client Key Exchange"
"25","10.149045","Client"----->"Server","DTLSv1.2","162","Certificate Verify"
"26","10.153632","Client"----->"Server","DTLSv1.2","76","Change Cipher Spec"
"27","10.158366","Client"----->"Server","DTLSv1.2","115","Encrypted Handshake Message"

My setup:
i added these cipher suites to mbedtls_mbed_client_config.h

MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,

MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,

MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8,

MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256

For the security credentials I used the follwing script: ยดcreate-keystores.shยด:

#!/bin/bash

KEY_STORE=keyStore.jks
KEY_STORE_PWD=endPass
TRUST_STORE=trustStore.jks
TRUST_STORE_PWD=rootPass
VALIDITY=365

echo "creating root key and certificate..."
keytool -genkeypair -alias root -keyalg EC -dname 'C=CA,L=Ottawa,O=Eclipse IoT,OU=Californium,CN=cf-root' \
        -ext BC=ca:true -validity $VALIDITY -keypass $TRUST_STORE_PWD -keystore $TRUST_STORE -storepass $TRUST_STORE_PWD

echo "creating CA key and certificate..."
keytool -genkeypair -alias ca -keyalg EC -dname 'C=CA,L=Ottawa,O=Eclipse IoT,OU=Californium,CN=cf-ca' \
        -ext BC=ca:true -validity $VALIDITY -keypass $TRUST_STORE_PWD -keystore $TRUST_STORE -storepass $TRUST_STORE_PWD
keytool -keystore $TRUST_STORE -storepass $TRUST_STORE_PWD -certreq -alias ca | \
  keytool -keystore $TRUST_STORE -storepass $TRUST_STORE_PWD -alias root -gencert -validity $VALIDITY -ext BC=0 -rfc | \
  keytool -alias ca -importcert -keystore $TRUST_STORE -storepass $TRUST_STORE_PWD

echo "creating server key and certificate..."
keytool -genkeypair -alias server -keyalg EC -dname 'C=CA,L=Ottawa,O=Eclipse IoT,OU=Californium,CN=cf-server' \
        -validity $VALIDITY -keypass $KEY_STORE_PWD -keystore $KEY_STORE -storepass $KEY_STORE_PWD
keytool -keystore $KEY_STORE -storepass endPass -certreq -alias server | \
  keytool -keystore $TRUST_STORE -storepass $TRUST_STORE_PWD -alias ca -gencert -validity $VALIDITY -rfc > server.pem
keytool -alias server -importcert -keystore $KEY_STORE -storepass $KEY_STORE_PWD -trustcacerts -file server.pem

echo "creating client key and certificate..."
keytool -genkeypair -alias client -keyalg EC -dname 'C=CA,L=Ottawa,O=Eclipse IoT,OU=Californium,CN=cf-client' \
        -validity $VALIDITY -keypass $KEY_STORE_PWD -keystore $KEY_STORE -storepass $KEY_STORE_PWD
keytool -keystore $KEY_STORE -storepass $KEY_STORE_PWD -certreq -alias client | \
  keytool -keystore $TRUST_STORE -storepass $TRUST_STORE_PWD -alias ca -gencert -validity $VALIDITY -rfc > client.pem
keytool -alias client -importcert -keystore $KEY_STORE -storepass $KEY_STORE_PWD -trustcacerts -file client.pem

then modified security.h with following changes:

const uint8_t SERVER_CERT[] =  ยดCA certificate from truststore.jks alias CAยด

const uint8_t CERT[] = ยดclient certificate from keystore.jsk alias clientยด

const uint8_t KEY[] = ยดprivate key from keystore.jsk alias clientยด

I modified LeshanServerDemo.java so that it uses X509 certificates
(every line with my name behind it was changed)
in words: I changed the path to the keystores, changed the passwords, loaded the certificates and the key, put it in corresponding arrays and add the things to the builder.


Questions:

  • Did anyone test a setup like this?
  • Am i using the right credentials in the mbed client?
  • Is the loading of the credentials in the server wrong?

Versions:

  • mbed client SHA-1: a89b5bc
  • leshan: leshan-server-demo-0.1.11-M15-SNAPSHOT (with californium 2.0.0 M2)

Attachements:

Broken: UBLOX_EVK_ODIN_W2 (Ethernet)

Importing example and switching to target UBLOX_EVK_ODIN_W2 as Ethernet or WiFi, compile all fine, flashes fine.

ISSUE

  1. Board just hangs, outputs "Connecting to ethernet..." but nothing else happens?

  2. When using WiFi, connects to network and registers, however after one button press on 'SW1' again device hangs.

?

incompatible redefinition of macro "UNITY_INCLUDE_CONFIG_H"

from a fresh import of this example
release tag mbed-os-5.1.2

there are hundreds of warnings for:

[Warning] mbed_config.h@29,0: #47-D: incompatible redefinition of macro "UNITY_INCLUDE_CONFIG_H" (declared at line 28)

in mbed_config.h, multiple defines are generated for this macro.

// Macros

define UNITY_INCLUDE_CONFIG_H None // defined by library:utest

define UNITY_INCLUDE_CONFIG_H // defined by library:utest

blinking red LED gives impression of failure

Problem

The successful running of the example results in a flashing red LED. This indicated failure to most people.

Solutions

  1. Change the LED deffinition to use led2 which is green on most boards with RGB deffinitions.
  2. Use a blinking LED for failure and a solid LED for success?

mbed-os-example-client does not work on STM Nucleo F401RE

I am trying to get the mbed-os-example-client to run on an STM Nucleo F401RE with the 6LoWPAN shield and the configuration.

In order to do so, I modified

diff --git a/mbed_app.json b/mbed_app.json
index 48fbd8d..f4f737b 100644
--- a/mbed_app.json
+++ b/mbed_app.json
@@ -2,7 +2,7 @@
     "config": {
         "network-interface":{
             "help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD",
-            "value": "ETHERNET"
+            "value": "MESH_LOWPAN_ND"
         },
         "wifi-ssid": {
             "help": "WiFi SSID",
@@ -15,9 +15,10 @@
     },
     "target_overrides": {
         "*": {
-            "target.features_add": ["IPV6", "CLIENT", "IPV4"],
+            "target.features_add": ["IPV6", "CLIENT"],
             "mbed-client.reconnection-count": 3,
-            "mbed-client.reconnection-interval": 5
+            "mbed-client.reconnection-interval": 5,
+            "nanostack.configuration": "lowpan_router"
         }
     }
-}
+}

and

diff --git a/tools/toolchains/gcc.py b/tools/toolchains/gcc.py
index 027a956..27dc11f 100644
--- a/tools/toolchains/gcc.py
+++ b/tools/toolchains/gcc.py
@@ -86,7 +86,7 @@ class GCC(mbedToolchain):
             self.flags["common"].append("-g")
             self.flags["common"].append("-O0")
         else:
-            self.flags["common"].append("-O2")
+            self.flags["common"].append("-Os")

         main_cc = join(tool_path, "arm-none-eabi-gcc")
         main_cppc = join(tool_path, "arm-none-eabi-g++")

so that it actually fits into ROM.

On the K64:
mbed compile -c -t GCC_ARM -m K64F -j 4

Starting mbed Client example...
Using Mesh
Connecting to Mesh..
Connected to Network successfully
IP address ....
SOCKET_MODE : UDP
Connecting to coap://[...
Registered object successfully!

On the F401RE:
mbed compile -c -t GCC_ARM -m NUCLEO_F401RE

Starting mbed Client example...
Using Mesh
Connecting to Mesh..
Connection to Network Failed -3009! Exiting application....

Fail building with uvision5

Hi,

I want to use Keil to build this project, and I command "mbed export -i uvision5" on mbed-cli,
Then I open the file which was exported and try to build, but the error shows:

Error: *** Project 'mbed-os-example-client-master', Target 'mbed-os-example-client-master', Device 'Freescale::MK64FN1M0xxx12' is not supported by Toolchain ! ***.
Build Time Elapsed: 00:00:00

How to solve this?
the toolchain which I used is gcc not ARMCC, is this reason caused?

The device connection problem

Hi,

In my testing environment, there is one router(K64F+6lowpan shield) connected with gateway and registered on mDS.
I set the led status to blink blue led instead red in main code.(in this case is blinking red led originally)
And after about 3 hours(not exactly, but it would really take a long time), my router will disconnect with both mDS and gateway, also the red led will blink rapidlly but I just set blue led why red led blinky?

So, my problem is

  1. Why red led blinky? Whats the meaning of this condition?
  2. Is the device just could exist 3 hours or some effective times? Is there any parameter to adjust to keep connection?

Many thanks.

M2MInterface::SecureConnectionFailed @mbedtls_ctr_drbg_seed(...)

Description

Through my DEV board ethernet interface, mbed-os-example-client prompt M2MInterface::SecureConnectionFailed quickly after got IP address from DHCP. After traced, the failure is caused by MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED atmbedtls_ctr_drbg_reseed(...) of ctr_drbg.c of mbedtls. I confirmed the network environment & security.h are OK by K64F board. I also confirmed ethernet & TCP/IP OK by tcp_client test code on my DEV board.

mbed-os sha
mbed-os-5.0.1-epr

Reproduce
Run mbed-os-example-client

Debug Log
[DBG ][mClt]: M2MInterfaceImpl::state_register - IP address api.connector.mbed.c om , Port 5684 [DBG ][mClt]: M2MInterfaceImpl::register_object - OUT [DBG ][mClt]: M2MConnectionHandlerPimpl::connection_tasklet_event_handler
[DBG ][mClt]: connection_tasklet_event_handler - ESocketDnsHandler [DBG ][mClt]: M2MConnectionHandlerPimpl::dns_handler()
[DBG ][mClt]: IP Address 169.45.82.18
[DBG ][mClt]: Port 5684
[DBG ][mClt]: M2MConnectionHandlerPimpl::close_socket() - IN [DBG ][mClt]: M2MConnectionHandlerPimpl::close_socket() - OUT [DBG ][mClt]: M2MConnectionHandlerPimpl::init_socket - IN [DBG ][mClt]: M2MConnectionHandlerPimpl::init_socket - Using UDP - port 47437 [DBG ][mClt]: M2MConnectionHandlerPimpl::init_socket - OUT [DBG ][mClt]: M2MConnectionSecurityPimpl::init [ERR ][mClt]: M2MConnectionHandlerPimpl::resolve_server_address - init failed [DBG ][mClt]: M2MInterfaceImpl::socket_error: (1), retry (0),

Socket error with 6lowpan

Hey there,
I currently have an issue with the example client, and after trying all i could think, i thought you might have an idea.
My client is one board K64f with the firefly shield in 6lowpan_nd mode, one other K64f in border router mode connected to my pc by ETH, and my LWM2M server being a local leshan server.
I am able to send regular UDP packet from my client board to my computer, and i'm able to see them through Wireshark, so I know the routing process is correct.
I'm able to connect to the leshan server through the OMA-LWM2M addon for firefox, to see the server.
Here is the trace of my client:

Connected to Network successfully
[DBG ][m6LND]: getOwnIpAddress()
IP address fd00:db8:ff1:0:fec2:3d00:3:84d2
[DBG ][mClt]: M2MInterfaceFactory::create_object : Name : 3200
[DBG ][mClt]: M2MObject::create_object_instance - id: 0
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 5501)
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MResourceInstance::report()
[DBG ][mClt]: M2MResourceInstance::report() - level 0
[DBG ][mClt]: M2MResourceInstance::report() - mode = 1, is_observable = 1
[DBG ][mClt]: M2MInterfaceFactory::create_object : Name : 3201
[DBG ][mClt]: M2MObject::create_object_instance - id: 0
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 5853)
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 5850)
[DBG ][mClt]: M2MInterfaceFactory::create_object : Name : 1000
[DBG ][mClt]: M2MObject::create_object_instance - id: 0
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 1)
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MInterfaceFactory::create_interface - IN
[DBG ][mClt]: M2MInterfaceFactory::create_interface - parameters endpoint name : ENDPOINT_NAME
[DBG ][mClt]: M2MInterfaceFactory::create_interface - parameters endpoint type : test
[DBG ][mClt]: M2MInterfaceFactory::create_interface - parameters life time(in secs): 100
[DBG ][mClt]: M2MInterfaceFactory::create_interface - parameters Listen Port : 59392
[DBG ][mClt]: M2MInterfaceFactory::create_interface - parameters Binding Mode : 1
[DBG ][mClt]: M2MInterfaceFactory::create_interface - parameters NetworkStack : 4
[DBG ][mClt]: M2MInterfaceFactory::create_interface - Creating M2MInterfaceImpl
[DBG ][mClt]: M2MNsdlInterface::M2MNsdlInterface()
[DBG ][mClt]: M2MObject::create_object_instance - id: 0
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 1)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 6)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 7)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 8)
[DBG ][mClt]: M2MNsdlInterface::initialize()
[DBG ][mClt]: M2MInterfaceImpl::M2MInterfaceImpl() -IN
[DBG ][mClt]: M2MNsdlInterface::create_endpoint( name ENDPOINT_NAME type test lifetime 100, domain DOMAIN, mode 1)
[DBG ][mClt]: M2MInterfaceImpl::M2MInterfaceImpl() -OUT
[DBG ][mClt]: M2MInterfaceFactory::create_interface - OUT

SOCKET_MODE : UDP
Connecting to coap://[fd00:db8:ff1:0:79df:42e8:293b:9e13]:5683
[DBG ][mClt]: M2MInterfaceImpl::set_platform_network_handler()
[DBG ][mClt]: set_platform_network_handler
[DBG ][mClt]: M2MInterfaceFactory::create_security
[DBG ][mClt]: M2MObject::create_object_instance - id: 0
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 1)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 2)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 3)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 4)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 5)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 10)
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MResourceInstance::report()
[DBG ][mClt]: M2MResourceInstance::report() - level 0
[DBG ][mClt]: M2MResourceInstance::report() - mode = 1, is_observable = 0
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MResourceInstance::report()
[DBG ][mClt]: M2MResourceInstance::report() - level 0
[DBG ][mClt]: M2MResourceInstance::report() - mode = 1, is_observable = 0
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MResourceInstance::report()
[DBG ][mClt]: M2MResourceInstance::report() - level 0
[DBG ][mClt]: M2MResourceInstance::report() - mode = 1, is_observable = 0
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MResourceInstance::report()
[DBG ][mClt]: M2MResourceInstance::report() - level 0
[DBG ][mClt]: M2MResourceInstance::report() - mode = 1, is_observable = 0
[DBG ][mClt]: M2MInterfaceFactory::create_device
[DBG ][mClt]: M2MObject::create_object_instance - id: 0
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 4)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource_instance(resource_name 11)
[DBG ][mClt]: M2MResource::resource(resource_name inst_id 0)
[DBG ][mClt]: M2MResource::add_resource_instance()
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MResourceInstance::report()
[DBG ][mClt]: M2MResourceInstance::report() - level 0
[INFO][rplc]: DIO from fe80::ff:fe00:facf, rankM from fe80::ff:fe00:facf, rank 80
is_observable = 1 80

[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 16)
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 0)
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 17)
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 1)
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 2)
[DBG ][mClt]: M2MResourceInstance::set_value()
[DBG ][mClt]: M2MResourceInstance::is_value_changed() -- true
[DBG ][mClt]: M2MInterfaceImpl::register_object - IN
[DBG ][mClt]: M2MInterfaceImpl::external_event : new state 5
[DBG ][mClt]: M2MInterfaceImpl::external_event : handle new state
[DBG ][mClt]: M2MInterfaceImpl::internal_event : new state 5
[DBG ][mClt]: M2MInterfaceImpl::state_engine
[DBG ][mClt]: M2MInterfaceImpl::state_register
[DBG ][mClt]: M2MInterfaceImpl::state_register - server_type : M2MSecurity::M2MServer
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_list_structure()
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_list_structure - Object count is 4
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_structure()
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_structure - Object Instance count 1
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_instance_structure()
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_instance_structure - ResourceBase count 7
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 3/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - res_name 3/0/4
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3/0/4)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 3/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - ResourceInstance count 1
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3/0/11/0)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 3
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 3
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3/0/11)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 3/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - res_name 3/0/16
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3/0/16)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 3/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - res_name 3/0/0
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3/0/0)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 3/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - res_name 3/0/17
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3/0/17)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 3/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - res_name 3/0/1
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3/0/1)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 3/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - res_name 3/0/2
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3/0/2)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3/0)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 2
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 2
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 0
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 0
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_structure()
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_structure - Object Instance count 1
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_instance_structure()
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_instance_structure - ResourceBase count 1
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 3200/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - res_name 3200/0/5501
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3200/0/5501)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_structure()
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_structure - Object Instance count 1
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_instance_structure()
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_instance_structure - ResourceBase count 2
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 3201/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - res_name 3201/0/5853
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3201/0/5853)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 3201/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - res_name 3201/0/5850
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 3201/0/5850)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_structure()
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_structure - Object Instance count 1
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_instance_structure()
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_object_instance_structure - ResourceBase count 1
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure(object_name 1000/0)
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource_structure - res_name 1000/0/1
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource(name 1000/0/1)
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::M2MReportHandler()
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MNsdlInterface::create_nsdl_resource - Creating in NSDL-C result 0
[DBG ][mClt]: M2MBase::set_under_observation - observed: 0
[DBG ][mClt]: M2MBase::set_under_observation - base_type: 1
[DBG ][mClt]: M2MReportHandler::set_under_observation(observed 0)
[DBG ][mClt]: M2MReportHandler::stop_timers()
[DBG ][mClt]: M2MReportHandler::stop_timers() - out
[DBG ][mClt]: M2MReportHandler::set_default_values
[DBG ][mClt]: M2MInterfaceImpl::state_register - create_nsdl_list_structure - success
> [DBG ][mClt]: M2MInterfaceImpl::state_register - server_address coap://[fd00:db8:ff1:0:79df:42e8:293b:9e13]:5683
[DBG ][mClt]: M2MInterfaceImpl::state_register - IP address fd00:db8:ff1:0:79df:42e8:293b:9e13 , Port 5683

[DBG ][mClt]: resolve_server_address()
> [DBG ][mClt]: M2MInterfaceImpl::socket_error: nterfaceImpl::socket_error: (4), retry (1(4), retry (1), reconnecting (0)
[DBG ][mClt]: M2MInterfaceImpl::internal_event : new state 0
[DBG ][mClt]: M2MInterfaceImpl::state_engine
[DBG ][mClt]: M2MInterfaceImpl::state_idle
[DBG ][mClt]: M2MNsdlInterface::stop_timers()
[DBG ][mClt]: stop_listening()
[DBG ][mClt]: M2MInterfaceImpl::socket_error - reconnecting in 15(s), count 1/3

I can see that there is a socket error, number 4, although could not find properly what it means.
However, I don't get why there is this error. Maybe you understand?
Sincerely,

problem for sending packet between SED and router

Hi,

I set two endpoints(1 router, 1 sleepy end device) to connect to mDS within gateway, I want to let SED send a packet to router by thread in this example, is this possible and how do I do this?

Many thanks.

A binary built with ARMCC is not able to connect to the connector.

Step:
1-1. Build this example with the online compilation environment.
1-2. Build this example with mbed cli with -t ARM.
2. Flash the binary and turn on the K64F and ESP8266.
3. See it connects to a wifi AP.

Symptom:
It can't connect to the connector; stops moving forward after this line:

SOCKET_MODE : UDP
Connecting to coap://api.connector.mbed.com:5684

Enabling logs from ESP8266Interface, I could see below is the last AT command:

AT> AT+CIPSTART

Supposed to be:
You should see "Registered object successfully!" from your terminal.

Send data only if the device is successfully registered

We see the application starts sending data periodically to mDC, regardless on whether the device is registered or not.
I believe this doesn't makes sense, as it confused people (especially when the application is not working correctly due to other reasons).

Could you please consider putting the data transmission on hold until the device is successfully registered?

An example of the mbed_app.json file for non-K64F boards is not correct

An example of the mbed_app.json file for non-K64F boards is not correct here:

https://github.com/ARMmbed/mbed-os-example-client#requirements-for-non-k64f-board

This example configuration generates following build error:

In file included from ./mbed-os/features/mbedtls/inc/mbedtls/config.h:2585:0,
                 from ./mbed-os/features/FEATURE_CLIENT/mbed-client-mbed-tls/mbed-client-mbedtls/m2mconnectionsecuritypimpl.h:25,
                 from .\mbed-os\features\FEATURE_CLIENT\mbed-client-mbed-tls\source\m2mconnectionsecurity.cpp:22:
./mbed-os/features/mbedtls/inc/mbedtls/check_config.h:135:2: error: #error "MBEDTLS_TEST_NULL_ENTROPY defined, but not all prerequisites"
 #error "MBEDTLS_TEST_NULL_ENTROPY defined, but not all prerequisites"
  ^

[mbed] ERROR: "python" returned error code 1.

I think correct configuration for the mbed_app.json file is something like this:

    "target_overrides": {
        "your-target-name": {
            "target.macros_add": ["MBEDTLS_TEST_NULL_ENTROPY", "MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES"]
        },

Current checkout (001fe0d) Not running in K64F and NUCLEO_F401RE

I using the following checkouts:

  • mbed-os-example-client 001fe0d
  • mbed-os dd36dc4
  • esp8266-driver 450cc128865ffb90b5cbfe5af193621644024fa7
  • atmel-rf-driver a16a4ed6f6e8d5f2d009f25b6ab7c38affb5019c

The project builds fine, but when I try running it I never reaches main.

Stack trace looks like this:

mbed-os-example-client.elf

Thread #1

(Suspended : Signal : SIGTRAP:Trace/breakpoint trap)

__isr_vector() at 0x0
0x0

If I try to compile it with "MESH_LOWPAN_ND" as a network-interface I get:

mbed-os-example-client.elf

Thread #1 (Suspended : User Request)

__isr_vector() at 0x0
thread_comm_status_indication_cb() at 0xa400

problem on reading a resource value with REST API node-red

Hi,
I created a simple program with mbed client and mbed os which creates a resource called "/device/0/name" on my device. I can read the resource value with GET or PUT new value on it with mbed connector dashboard with no problem. I create a node red sample which does the same thing. If I use this command on my node red it works fine:
GET https://api.connector.mbed.com/v2/endpoints/<my device id>
and it response the values which are:
[{"uri":"/device/0/name","obs":true,"type":""},{"uri":"/3/0","obs":false,"type":""}]"
and it is OK. The problem is when I want to get a resource value with this:
GET https://api.connector.mbed.com/v2/endpoints/<my device id>/device/0/name
it gives me this:
"No notification channel found."
I read the documentation and it says I will need a server to receive a notification call back but I am running node-red at localhost. I just want to receive resource value of my device.
Thanks

Example is no longer working with 6LoWPAN

When doing 'mbed add atmel-rf-driver', it adds the atmel-driver-rf repository on the master branch. It looks like there have been changes there that are not interoperable with the mbed client example causing the build to fail.

Either add a .lib pointing to the right commit to get this to work, or update the readme, please.

[Uvision export] Error in SVC_Table.S

This is the exact error when building in uvision after calling the mbed export command for K64F:

SVC_Table.S: error: A3907U: Via file '.\.build\uvision5\svc_table._ia' command too long for buffer.

Can't compile the example using armcc

When I try to compile the example in windows 7 with:

\Keil\ARM\ARMCC\bin\armcc --help
Product: MDK-ARM Standard Cortex-M only 5.10
Component: ARM Compiler 5.04 update 1 (build 49)
Tool: armcc [5040049]

Using:

mbed compile -m K64F -t ARM

or

mbed compile -m NUCLEO_F401RE -t ARM

I get in both cases the following output:

Scan: .
Scan: FEATURE_BLE
Scan: FEATURE_CLIENT
Scan: FEATURE_COMMON_PAL
Scan: FEATURE_UVISOR
Scan: FEATURE_IPV4
Scan: FEATURE_IPV6
Scan: FEATURE_STORAGE
Scan: mbed
Scan: env
Compile: BufferedPrint.c
Compile: MyBuffer.cpp
Compile: ESP8266Interface.cpp
[Error] Thread.h@61,0: #1204: attribute "deprecated" does not take arguments
[Error] Thread.h@86,0: #1204: attribute "deprecated" does not take arguments
[Error] Thread.h@112,0: #1204: attribute "deprecated" does not take arguments
[Error] Thread.h@137,0: #1204: attribute "deprecated" does not take arguments
[Error] RtosTimer.h@47,0: #1204: attribute "deprecated" does not take arguments
[Error] FunctionPointer.h@32,0: #1204: attribute "deprecated" does not take arguments
[Error] FunctionPointer.h@37,0: #1204: attribute "deprecated" does not take arguments
[Error] FunctionPointer.h@49,0: #1204: attribute "deprecated" does not take arguments
[Error] FunctionPointer.h@54,0: #1204: attribute "deprecated" does not take arguments
[ERROR] "./mbed-os/rtos/rtos/Thread.h", line 61: Error: #1204: attribute "deprecated" does not take arguments
"./mbed-os/rtos/rtos/Thread.h", line 86: Error: #1204: attribute "deprecated" does not take arguments
"./mbed-os/rtos/rtos/Thread.h", line 112: Error: #1204: attribute "deprecated" does not take arguments
"./mbed-os/rtos/rtos/Thread.h", line 137: Error: #1204: attribute "deprecated" does not take arguments
"./mbed-os/rtos/rtos/RtosTimer.h", line 47: Error: #1204: attribute "deprecated" does not take arguments
"./mbed-os/hal/api/FunctionPointer.h", line 32: Error: #1204: attribute "deprecated" does not take arguments
"./mbed-os/hal/api/FunctionPointer.h", line 37: Error: #1204: attribute "deprecated" does not take arguments
"./mbed-os/hal/api/FunctionPointer.h", line 49: Error: #1204: attribute "deprecated" does not take arguments
"./mbed-os/hal/api/FunctionPointer.h", line 54: Error: #1204: attribute "deprecated" does not take arguments
.\esp8266-driver\ESP8266Interface.cpp: 0 warnings, 9 errors

Digging further it looks like when this part of the code is compiled Is using the wrong definition of MBED_DEPRECATED (mbed-os/rtos/rtos/Thread.h):

MBED_DEPRECATED(
        "Thread-spawning constructors hide errors and may lead to complex "
        "program state when a thread is declared")
    Thread(mbed::Callback<void()> task,
           osPriority priority=osPriorityNormal,
           uint32_t stack_size=DEFAULT_STACK_SIZE,
           unsigned char *stack_pointer=NULL) {
        constructor(task, priority, stack_size, stack_pointer);
    }

If I fiddle with the definition:

#ifndef MBED_DEPRECATED
#if defined(__GNUC__) || defined(__clang__)
#define MBED_DEPRECATED(M) __attribute__((deprecated(M)))
#elif defined(__CC_ARM)
#define MBED_DEPRECATED(M) __attribute__((deprecated))
#else
#define MBED_DEPRECATED(M)
#endif
#endif

I can see that GNUC and __CC_ARM are both defined

I've tested the same procedure in another coworker's machines with the same results.

@MarceloSalazar @markus-becker-tridonic-com

Thread SED configured with TCP fails

Tested 5.3-rc3 (https://github.com/ARMmbed/mbed-os-example-client/tree/mbed-os-5.3-rc3)

Default option TCP fails. When changed to UDP works ok (device is registered in mDC).

Platform K64. Atmel RF.

mbed_app.json.txt

Starting mbed Client example...
Using Mesh

Connecting to Mesh..
[DBG ][nsth]: connect()
[DBG ][evlp]: event_loop_thread
[DBG ][m6Thread]: PANID defa
[DBG ][m6Thread]: channel: 12
[DBG ][m6Thread]: channel page: 0
[DBG ][m6Thread]: channel mask: 134215680
[DBG ][m6Thread]: Mesh prefix: fd:00:0d:b8:00:00:00:00
[DBG ][m6Thread]: Master key: 00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff
[DBG ][m6Thread]: PSKc: 00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff
[DBG ][m6Thread]: PSKd: Secret password
[DBG ][ThSA]: service init interface 1, port 61631, options 0
[DBG ][ThSA]: service tasklet init
[DBG ][ThSA]: service init interface 1, port 49191, options 130
[DBG ][ThSA]: Service 2, Uri registration uri: c/tx
[DBG ][ThSA]: Service 2, Uri registration uri: c/mg
[DBG ][ThSA]: Service 2, Uri registration uri: c/ag
[DBG ][ThSA]: Service 2, Uri registration uri: c/pg
[DBG ][ThSA]: Service 2, Uri registration uri: c/cg
[DBG ][ThSA]: Service 2, Uri registration uri: c/as
[DBG ][ThSA]: Service 2, Uri registration uri: c/ps
[DBG ][ThSA]: Service 2, Uri registration uri: c/cs
[DBG ][ThSA]: Service 2, Uri registration uri: c/cp
[DBG ][ThSA]: Service 2, Uri registration uri: c/ca
[DBG ][ThSA]: service init interface 1, port 61631, options 0
[DBG ][ThSA]: Service 3, Uri registration uri: c/mg
[DBG ][ThSA]: Service 3, Uri registration uri: c/ag
[DBG ][ThSA]: Service 3, Uri registration uri: c/pg
[DBG ][ThSA]: Service 3, Uri registration uri: c/cg
[DBG ][ThSA]: Service 3, Uri registration uri: c/pq
[DBG ][ThSA]: Service 3, Uri registration uri: c/es
[DBG ][ThSA]: Service 3, Uri registration uri: c/ab
[DBG ][ThSA]: service init interface 1, port 61631, options 0
[DBG ][ThSA]: Service 4, Uri registration uri: d/dg
[DBG ][ThSA]: Service 4, Uri registration uri: d/dr
[DBG ][ThSA]: Service 4, Uri registration uri: d/dq
[DBG ][ThSA]: service init interface 1, port 61631, options 0
[INFO][m6Thread]: Start Thread bootstrap (SED mode)
[DBG ][ThSA]: service tasklet initialised
[DBG ][nnvm]: ns_nvm_data_read() key=com.arm.nanostack.thread.static_link_cfg, l                                                                                                             en=120, ctx=0x2000b1c4
[DBG ][rnvm]: platform_nvm_read() com.arm.nanostack.thread.static_link_cfg len=1                                                                                                             20

Connection to Network Failed -3010! Exiting application....

@jankii01

VK_RZ_A1H: fatal error: EthernetInterface.h: No such file or directory

Version: mbed-os-5.1.0-rc5
OS: Mac
Toolchain: GCC
Board: VK_RZ_A1H

$ mbed compile -t GCC_ARM -m VK_RZ_A1H
Building project mbed-os-example-client (VK_RZ_A1H, GCC_ARM)
Scan: .
Scan: FEATURE_BLE
Scan: FEATURE_CLIENT
Scan: FEATURE_COMMON_PAL
Scan: FEATURE_UVISOR
Scan: FEATURE_IPV4
Scan: FEATURE_IPV6
Scan: FEATURE_STORAGE
Scan: mbed
Scan: env
Compile: main.cpp
[ERROR] ./main.cpp:38:31: fatal error: EthernetInterface.h: No such file or directory
 #include "EthernetInterface.h"
                               ^
compilation terminated.

[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u /Users/barsza01/devel/mbed/mbed-os-example-client/mbed-os/tools/make.py -t GCC_ARM -m VK_RZ_A1H --source . --build ./.build/VK_RZ_A1H/GCC_ARM" in "/Users/barsza01/devel/mbed/mbed-os-example-client"

---

mbed_apps.json: Cannot remove "NANOSTACK" from "target.features_add"

Hi,
I am trying to use wifi (ESP8266 module) together with a NUCLEO_F429ZI platform.
I modified the mbed_apps.json based on the configs.wifi_v4.json file

    "target_overrides": {
        "*": {
            "target.features_add": ["LWIP", "COMMON_PAL"],
            "lwip.ipv4-enabled": true,
            "lwip.ipv6-enabled": false,
            "mbed-trace.enable": 0
        },

But then typing mbed compile -t GCC_ARM -m NUCLEO_F429ZI does not work. I need to add "NANOSTACK" to make the compilation successfull again.
It looks like mbed tries to compile the atmel driver, but as nanostack is not defined, it does not find the arm_hal_phy.h file.

Am I the only one having this trouble ?
Could anyone remove this dependency ?
Could we avoid compiling the atmel rf driver when not needed ?

See below the details:

$ mbed compile -t GCC_ARM -m NUCLEO_F429ZI
Building project mbed-os-example-client (NUCLEO_F429ZI, GCC_ARM)
Scan: .
Scan: FEATURE_BLE
Scan: FEATURE_COMMON_PAL
Scan: FEATURE_LWIP
Scan: FEATURE_UVISOR
Scan: FEATURE_ETHERNET_HOST
Scan: FEATURE_LOWPAN_BORDER_ROUTER
Scan: FEATURE_LOWPAN_HOST
Scan: FEATURE_LOWPAN_ROUTER
Scan: FEATURE_NANOSTACK
Scan: FEATURE_NANOSTACK_FULL
Scan: FEATURE_THREAD_BORDER_ROUTER
Scan: FEATURE_THREAD_END_DEVICE
Scan: FEATURE_THREAD_ROUTER
Scan: FEATURE_STORAGE
Scan: mbed
Scan: env
Compile [  0.3%]: NanostackRfPhyAtmel.cpp
[ERROR] .\atmel-rf-driver\source\NanostackRfPhyAtmel.cpp:18:44: fatal error: nanostack/platform/arm_hal_phy.h: No such file or directory
compilation terminated.

[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u C:\EXAMPLES\mbed-os-example-client\mbed-os\tools\make.py -t GCC_ARM -m NUCLEO_F429ZI --source . --build .\.build\NUCLEO_F429ZI\GCC_ARM"
in "C:\EXAMPLES\mbed-os-example-client"

Problem of building project

Hi,

I wanted to update my mbed-os 5.1.2 to 5.2 and I tried to build this project , but it got some trouble,
the error message is as below.

C:\Users\04070\WIFI test\mbed-os-example-client-master>mbed compile -m K64F -t G
CC_ARM
Building project mbed-os-example-client-master (K64F, GCC_ARM)
Scan: .
Scan: FEATURE_BLE
Scan: FEATURE_COMMON_PAL
Scan: FEATURE_LWIP
Scan: FEATURE_UVISOR
Scan: FEATURE_LOWPAN_BORDER_ROUTER
Scan: FEATURE_LOWPAN_HOST
Scan: FEATURE_LOWPAN_ROUTER
Scan: FEATURE_NANOSTACK
Scan: FEATURE_NANOSTACK_FULL
Scan: FEATURE_THREAD_BORDER_ROUTER
Scan: FEATURE_THREAD_END_DEVICE
Scan: FEATURE_THREAD_ROUTER
Scan: FEATURE_STORAGE
Scan: mbed
Scan: env
Compile [ 0.3%]: BusInOut.cpp
[ERROR] arm-none-eabi-g++: error: test/mbed-os-example-client-master/mbed-os/.bu
ild: No such file or directory
arm-none-eabi-g++: error: test/mbed-os-example-client-master/mbed-os/features/un
supported/tests/mbed: No such file or directory
arm-none-eabi-g++: error: test/mbed-os-example-client-master/mbed-os/features/un
supported/tests/mbed/env: No such file or directory

[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u C:\Users\04070\WIFI test\mbed-os-example-client
-master\mbed-os\tools\make.py -t GCC_ARM -m K64F --source . --build .\BUILD\K64F
\GCC_ARM" in "C:\Users\04070\WIFI test\mbed-os-example-client-master"

and my mbed-cli version is 0.9.10.

How could I solve this?
thx.

Problem for connecting to mDS

Hi,
I want to connect to local mDS instead of mDC because my contry do not support for IPv6 connectitvity...
So, I did some change in main code as follow,

  1. coaps://[2607:f0d0:2601:52::20]:5684 TO "coap://FD00:FF1:CE0B:A5E0::1:5683" <--local mDS static address
  2. security->set_resource_value(M2MSecurity::SecurityMode, M2MSecurity::Certificate); TO security->set_resource_value(M2MSecurity::SecurityMode, M2MSecurity::NoSecurity);
    and rebuild project...

But...
There's a bit confusing for me is where gatewayThreadStatic.bin comes from, and I've done two testing process...

First, I copied that from the lateset "mbed-os-example-client/ GW_Binary", after loaded to Gatway Router, and the meassage shows on Putty terminal is

Starting mbed Client example...
Using Mesh

Connecting to Mesh..

Connected to Network successfully

No IP address

SOCKET_MODE : UDP
Connecting to coap://FD00:FF1:CE0B:A5E0::1:5683

The other gatewayThreadStatic.bin comes from "mbed-client-example-6lowpan-device_server/ GW_Binary" which version is mbed-os 3.0, and the message shows on Putty is

Starting mbed Client example...
Using Mesh

Connecting to Mesh..

Connected to Network successfully

IP address fd00:ff1:ce0b:a5e0:fcc2:3d00:4:b74d

SOCKET_MODE : UDP
Connecting to coap://FD00:FF1:CE0B:A5E0::1:5683

The two results are different, and both fail to connect to mDS,
I don't know what the problem is, could someone help me to solve this?

Many thanks.

Meet SecureConnectionFailed error

I've updated security.h but still meet the SecureConnectionFailed error. The example worked before.

Target: K64F

Toolchain: ARM/GCC_ARM

Network interface: WiFi

mbed-os-examle-client version: mbed-os-5.2.1

$ mbed ls
mbed-os-example-client (b3655abb7d50)
|- atmel-rf-driver (62c0c49d7a94)
|- esp8266-driver (dc37b65ca877)
|- mbed-client (1c03b36ac944)
|  |- mbed-client-classic (656f13cd4864)
|  `- mbed-client-mbed-tls (7e1b6d815038)
|- mbed-os (e2617cc0e17f)
|- mcr20a-rf-driver (d8810e105d7d)
`- pal (08f7c93f8e24)

VCOM message:

Starting mbed Client example...

Using WiFi 

Connecting to WiFi..

Connected to Network successfully
IP address 192.168.43.68

SOCKET_MODE : UDP
Connecting to coap://api.connector.mbed.com:5684

[ERROR:] M2MInterface::SecureConnectionFailed

@cyliangtw

Stack overflow

When first using the PUT and then the POST methods I get a stack overflow error as follows:

simulate button_click, new value of counter is 23

PUT Request Received!
Name :'5853',
Type : '1' (0 for Object, 1 for Resource),
Type : 'Pattern'
simulate button_click, new value of counter is 24
led_execute_callback pattern=75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75:75
Resource: 3201/0/5850 executed
Payload:
RTX error code: 0x00000001, task ID: 0x2001305C

A client example failed when proper entropy collector has not been implemented

In K64F platform, the macro MBEDTLS_ENTROPY_HARDWARE_ALT is defined in the target.json and proper implementation has been done in the HAL.

ARMmbed/mbed-os#1879

Some platforms do not support RNG hardware and expect to use software solution. e.g. build client example without MBEDTLS_ENTROPY_HARDWARE_ALT macro.

In that case, I got connection error below if I removed the MBEDTLS_ENTROPY_HARDWARE_ALT macro in K64F platform (as non RNG support device).

Starting mbed Client example...
Using Ethernet

Connected to Network successfully
IP address 10.128.4.32

SOCKET_MODE : UDP
Connecting to coap://api.connector.mbed.com:5684

[ERROR:] M2MInterface::SecureConnectionFailed

Attached files is mbed-trace log: trace_log_failed.txt

So, my question is:

  • Is the MBEDTLS_ENTROPY_HARDWARE_ALT macro and entropy collector implementation mandatory feature, or optional?

If this is optional, the nanostack-hal-mbed-cmsis-rtos should also have software implementation and the client example should not fail.

https://github.com/ARMmbed/nanostack-hal-mbed-cmsis-rtos/blob/master/arm_hal_random.c#L28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.