An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only.Download presentation by click this link.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.
Install TinyOS • Setup Cygwin with TinyOS • Execute Cygwin
About Cygwin / Linux • $:command sign • $ls • ls:list files and directories in current directory • pwd:show the path of current directory from root • man:search information from manual • man [command / library] • man grep
About Cygwin / Linux • cd:change directory • cd [directory path] • cd ./tinyos-1.x • cd /opt/tinyos-1.x • grep: • grep [-r] “string” [filename] • grep “Fish” TestTinyViz.nc • grep “Fish” * • grep -r “Fish” *
About Cygwin / Linux • [Tab] • When typing command, [Tab] key could complete the file name or directory name • If there are many file / directory name are similar, [Tab] key will list all of files and directories which are match the non-complete name we typed
Make TinyViz • Cygwin • $/opt/tinyos-1.x/tools/java/net/tinyos/sim • $make all • Root of Cygwin in Windows • C:\Program Files\UCB\cygwin
Using TinyViz • $export PATH=$PATH:/opt/tinyos-1.x/tools/java/net/tinyos/sim • Edit /etc/profile • at the end of file add • export PATH=$PATH:/opt/tinyos-1.x/tools/java/net/tinyos/sim • At the end line of file is empty line
Using TinyViz • $cd /opt/tinyos-1.x/apps • For example, we want to use Blink module • $cd ./blink • $make pc • $tinyviz –run ./build/pc/main.exe 10
Structure of TinyViz • All of files about TinyViz are in • /opt/tinyviz-1.x/tools/java/net/tinyos/sim • 主要程式位置都在上述之目錄 • 有關plugin的程式都在./plugin • 有關event的程式都在./event