pkg/openthread: rework of FTD and MTD support#9336
Conversation
|
Tested on IoTLAB and all multihop is working as expected. MTD is also working as it should. |
Makefile.dep
Outdated
| USEMODULE += gnrc_sock_udp | ||
| endif | ||
|
|
||
| ifneq (,$(filter openthread,$(USEPKG))) |
There was a problem hiding this comment.
I think the package dependencies could be added to a new pkg/openthread/Makefile.dep file instead. xtimer module could also be added as a dependency there.
tests/openthread/Makefile
Outdated
|
|
||
| USEMODULE += $(DRIVER) | ||
|
|
||
| USEMODULE += xtimer |
There was a problem hiding this comment.
No need to add xtimer module as a dependency here if it's already a dependency of the openthread package.
There was a problem hiding this comment.
yes, you are right. I will address the proposed comments
|
@aabadie done! |
tests/openthread/Makefile
Outdated
| OPENTHREAD_PANID ?= 0xbeef | ||
| OPENTHREAD_CHANNEL ?= 26 | ||
|
|
||
| CFLAGS += -DOPENTHREAD_PANID=${OPENTHREAD_PANID} |
There was a problem hiding this comment.
minor: use parenthesis instead of curly braces for accessing variables in Makefiles
| uint8_t res = ot_call_command("panid", NULL, (void*)&panid); | ||
| printf("Current panid: 0x%x (res:%x)\n", panid, res); | ||
|
|
||
| openthread_uart_run(); |
There was a problem hiding this comment.
why not keep the openthread shell ?
There was a problem hiding this comment.
this is the OpenThread shell. The flow is OpenThread Core <-> Openthread CLI <-> UART
There was a problem hiding this comment.
yes but here it's removed, so how can the OT shell be used ?
There was a problem hiding this comment.
ah, I see what you mean. Now there's no "openthread_uart_run" simulator. It directly handles UART at interrupt level in the file platform_uart.c
|
@aabadie addressed |
|
@aabadie just addressed Murdock issues. Let's see how it goes |
|
@jia200x, seems like Murdock workers are missing automake. |
|
Any update here? |
I just merged it but now I think we have to wait for the new docker image to be deployed on Murdock workers. |
|
@jia200x, how about moving the openthread test application to the |
|
Back from holidays, sorry the delay. |
|
@aabadie just moved the examples folder. Do you know if the Murdock workers were updated? |
|
@aabadie there's an error with Murdock I'm not able to reproduce: Any clues on what could be wrong? |
|
|
|
Triggered Murdock again, the riotdocker image is updated. So the workers I guess |
examples/openthread/README.md
Outdated
| open source implementation of [Thread](https://threadgroup.org/) on RIOT. | ||
| The [Command Line Interface](https://github.com/openthread/openthread/blob/master/examples/apps/cli/README.md) of | ||
| OpenThread was ported. Please check the [full documentation] | ||
| (https://github.com/openthread/openthread/blob/master/src/cli/README.md) |
|
@smling @kaspar030 for some reason Murdock still complains about automake, m4, libtool stuff :( Any clue? |
The Murdock workers need to be updated with the latest docker image version. This is not done automatically and other remaining things may change apparently (use ubuntu bionic, etc) |
ping? @kaspar030 @smlng |
aabadie
left a comment
There was a problem hiding this comment.
Tested this PR on IoT-LAB with iotlab-m3 and samr21-xpro boards. It works as expected: I could exchange pings and also tried the coap command with success.
Let's try to have this one into the release. ACK
|
awesome! I will squash then ;) |
fd96a55 to
bf7b33b
Compare
|
@aabadie there's an unrelated issue with pkg_libhydrogen |
Saw that. I'm wondering why execution tests are run when only |
bf7b33b to
0ea488e
Compare
|
and go ! |
|
after 1 year!!! Thank you so much to everyone involved and special thanks to @biboc who was the original author of this PR! |
|
This is very encouraging! Thank you guys! 👍 |
|
Good job @jia200x ! How about NCP port? |
Contribution description
This is a rework of #7149. The original PR by @biboc includes support for FTD, MTD and NCP.
This is (almost) and exact copy of his original work, but removes NCP support (see discussion)
It also sets the pkg version to the OpenThread Release Thread Reference 2017-07-16.
I had to modify a couple of stuff in order to make it work with the Release version, and I pushed those commits as
fixup!. The initial commit was already reviewed in #7149.#7149 should still be open, because it contains the NCP implementation that can be used after this gets merged.
Issues/PRs references
#7149
Fixes #10031