Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate cascoda driver issues with contiki upstream #14

Open
abhijit-mahajani-imgtec opened this issue Jan 9, 2017 · 2 comments
Open

Comments

@abhijit-mahajani-imgtec
Copy link

abhijit-mahajani-imgtec commented Jan 9, 2017

AS a result of #11, its observed that there are some issues with cascoda driver working with contiki-master (upstream version)

@mtusnio mtusnio changed the title Investigate cascoda driver issues with contiki master Investigate cascoda driver issues with contiki upstream Jan 10, 2017
@ghost ghost self-assigned this Jan 10, 2017
@mtusnio
Copy link
Member

mtusnio commented Jan 10, 2017

https://github.com/mtusnio/contiki/tree/upstream_merge - upstream merged into 3.0-mikro-e with a fix for the clock, ca8210-conf.h will need the following change:

diff --git a/platform/mikro-e/ca8210-conf.h b/platform/mikro-e/ca8210-conf.h
index 9283e83..6ec21f8 100644
--- a/platform/mikro-e/ca8210-conf.h
+++ b/platform/mikro-e/ca8210-conf.h
@@ -36,9 +36,9 @@
 #ifndef CA8210_CONF_H
 #define CA8210_CONF_H
 
-#undef DEBUG /* Conflict with a macro named DEBUG defined in compiler */
-#include <p32xxxx.h>
 #undef DEBUG
+#include <p32xxxx.h>
+#define DEBUG 0
 
 #include <pic32_gpio.h>
 #include <pic32_irq.h>

If you build the following example - https://github.com/mtusnio/LetMeCreateIoT/tree/master/examples/udp_client - with the upstream_merge branch the clicker will not send data (try tcpdump -i lowpan0), however it will periodically send ROUTER_SOLICITATION packets. Check ca8210 driver to enable debug to see the payload dump.

@ghost ghost removed their assignment Jan 10, 2017
@ghost ghost added s: development and removed s: design labels Jan 10, 2017
@ghost ghost self-assigned this Jan 10, 2017
@ghost
Copy link

ghost commented Jan 13, 2017

RPL is now enabled by default. RPL is currently not working no udp connection from clicker to ci40. Disabling it enables NA which re-establish the previous behaviour before the merge with upstream.

In the Makefile of each project, RPL can be disabled by adding the line:

CONTIKI_WITH_RPL = 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants