You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use AwaLWM2M between Ci40 and 6lowpan clicker.
I saw following issues:
Even if I explicitly set local ip address on a command line argument of awa_serverd (example: awa_serverd --interface lowpan0 --addressFamily 6 --port 5683 --ip=fe80::c892:fd83:e6b7:c392 -v -o temp_object.xml) it still wants to bind to the Global Scope address (for example to 2001:1418:100::1/48). It should bind to the address I passed as an argument. See "Lwm2mCore_GetIPAddressFromInterface": there is the if-else statement checking firstly "globalIpv6Address" and then does not care about link local at all.
When I forced it to bind to the local link address (by hardcoding it in code) I encoutered new problems. The link local address is kept together with iface name "fe80::c892:fd83:e6b7:c392%lowpan0". Normally this is not a problem, but in function "NetworkAddress_FromIPAddress" there is a call to "inet_pton" which does NOT accept "%iface" format.
When I forced inet_pton to succeed (by hardcoding address without "%iface" in code) it came out that call to "bind" in NetworkSocket_StartListening fails because of "invalid argument". This is because for link local IPv6 addresses, the "sin6_scope_id" should be set.
When I forced sin6_scope_id to be set (by hardcoding result->Address.Sin6.sin6_scope_id = if_nametoindex("lowpan0") inside "NetworkAddress_FromIPAddress") I finally could see my AwaLWM2M client. The UDP packets were exchanged so I saw my client on a list (awa-server-list-clients). Unfortunetly, when I tried to read my resource I got segmentation fault on a server side. I didn't debug it further.
The text was updated successfully, but these errors were encountered:
I was trying to use AwaLWM2M between Ci40 and 6lowpan clicker.
I saw following issues:
The text was updated successfully, but these errors were encountered: