On the Air programming for Contiki

折月煮酒 提交于 2020-01-03 03:28:14

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/21225480/on-the-air-programming-for-contiki

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!