On the Air programming for Contiki

2019-06-06 17:27发布

I'm new Sky Motes on contiki and i'm trying to reprogram the nodes at run time. I've tried the Deluge and it's example in test-deluge.c which is found under examples/sky/test-deluge.c but i don't know what to do after uploading the code to node. So any Help Please ! My main target to reprogram the node on the Air

Thanks in advance

标签: contiki
1条回答
Juvenile、少年°
2楼-- · 2019-06-06 18:22

Deluge only distributes the data to the nodes. You still need to link the file on the node. This is done by passing a coffee-file-descriptor to elfloader_load().

You can find example code in shell-exec.c. There is an sky-shell-exec example using the shell to load a file as well as a regression-test (07-elfloader) that verifies that the sky-shell-exec example works.

查看更多
登录 后发表回答