Giter VIP home page Giter VIP logo

Comments (9)

delmet avatar delmet commented on May 22, 2024

13078 is 5683 in network byte order, I will look into whether this just a display problem (ie need to convert back)

from awalwm2m.

abhijit-mahajani-imgtec avatar abhijit-mahajani-imgtec commented on May 22, 2024

clicker_awa0.2.3_24Aug2016_1650.txt
clicker_awa0.2.1_24Aug2016_1650.txt

from awalwm2m.

abhijit-mahajani-imgtec avatar abhijit-mahajani-imgtec commented on May 22, 2024

Actually i was wrong, its not 8-10 attempts, but it has taken almost 36 attempts to bootstrap the clicker to Ci40. Attached the both the logs, one with clickers having awa-0.2.1, where bootstrapping happens almost immediately in 1st attempt. where as with awa-0.2.3 it has taken hell lot of time, almost 36 attempts (its not always 36, it can be more or less, but far more time).
all these observations are with cascoda boards., we have seen that with TI boards, it has not able to bootstrap at all. we can upload those logs as well.

from awalwm2m.

abhijit-mahajani-imgtec avatar abhijit-mahajani-imgtec commented on May 22, 2024

pcaps.tar.gz

Attaching both the packet captures.
Ci40 running with awa-0.2.3 and clickers with awa-0.2.3 (where clickers bootstrapping to Ci40 taking lots of time and then sending notifications to 13078)
Ci40 running with awa-0.2.3 and clickers with awa-0.2.1 (where clickers bootstrapping to Ci40 is almost immediate and send notifications to 5683 , works fine)

from awalwm2m.

abhijit-mahajani-imgtec avatar abhijit-mahajani-imgtec commented on May 22, 2024

Another set of logs including awa_serverd and awa_bootstrapd logs with clicker(2.1/2.3), including matching pcaps.
awa_286_logs.tar.gz

from awalwm2m.

DavidAntliff avatar DavidAntliff commented on May 22, 2024

@abhijit-mahajani-imgtec thanks, we'll take a look soon.

from awalwm2m.

DavidAntliff avatar DavidAntliff commented on May 22, 2024

@abhijit-mahajani-imgtec confirmed that there's an issue with IPv6. We're looking into it.

from awalwm2m.

datachi7d avatar datachi7d commented on May 22, 2024

Hi @abhijit-mahajani-imgtec, in the main loop, have you changed PROCESS_WAIT_EVENT_UNTIL to PROCESS_YIELD?

Delme updated the docs when we switched to erbium:

diff --git a/doc/example_app_static_api.md b/doc/example_app_static_api.md
@@ -427,7 +425,7 @@ PROCESS_THREAD(lwm2m_client, ev, data)
         AwaStaticClient_ResourceChanged(awaClient, 1000, 0, 104);

         etimer_set(&et, (waitTime * CLOCK_SECOND) / 1000);
-        PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));
+        PROCESS_YIELD();
         waitTime = 0;
     }

This allows the process to yield to the network stack for incoming packets, which was previously done in the contiki rest engine process.

from awalwm2m.

abhijit-mahajani-imgtec avatar abhijit-mahajani-imgtec commented on May 22, 2024

Thanks @datachi7d , yes we have already update the button-sensor application to add this PROCESS_YIELD, see CreatorKit/button-sensor@d272b9c

from awalwm2m.

Related Issues (20)

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.