在windows xp 环境下给eclipse安装TINYOS的插件步骤
|
|
TINYOS安装包tinyos-1.1.0-1is.exe, |
http://webs.cs.berkeley.edu/users/users.php?download=1 |
|
|
安装JAVA |
http://java.sun.com/j2se/1.5.0/download.jsp
下载说明
JDK 5.0 Update 10 with NetBeans 5.5
This distribution of the Java SE Development Kit (JDK) includes NetBeans IDE, which is a powerful integrated development environment for developing applications on the Java platform. » More info
安装后说明
The Install Wizard has successfully installed J2SE Development Kit 5.0 Update 10 and NetBeans IDE 5.5 on your computer. Choose Finish to exit the Wizard.
J2SE Development Kit 5.0 Update 10 installation location: C:\tinyos\jdk-1_5_0_10
J2SE Runtime Environment 5.0 Update 10 installation location: C:\Program Files\Java\jre1.5.0_10
NetBeans IDE 5.5 installation location: C:\Program Files\netbeans-5.5
To run the IDE, launch:
C:\Program Files\netbeans-5.5\bin\netbeans.exe
To uninstall the IDE, launch:
C:\Program Files\netbeans-5.5\_uninst\uninstaller.exe
To uninstall J2SE Development Kit 5.0 Update 10:
Use Add or Remove Programs in Control Panel
To uninstall J2SE Runtime Environment 5.0 Update 10:
Use Add or Remove Programs in Control Panel
|
|
|
安装eclipse |
下载安装包
eclipse-SDK-3.2.1-win32.zip
解压缩后,把文件夹eclipse 拷到c:/eclipse
下载主页
http://download.eclipse.org/downloads
|
|
|
Eclipse汉化方法
|
下载下来的语言包 NLpack1-eclipse-SDK-3.2.1-win32.zip 解压缩到c:/eclipse目录中,
再次运行c:/eclipse/eclipse.exe
下载主页
http://download.eclipse.org/downloads |
|
|
给eclipse安装TINYOS的插件TinyOS-UpdateSite1-1.zip |
下载主页
http://www.dcg.ethz.ch/~rschuler/installation.htm |
|
|
测试 |
|

用的是XP,第一步,先在TINYOS的网站登记下载TINYOS安装包tinyos-1.1.0-1is.exe,你填写完 http://webs.cs.berkeley.edu/users/users.php?download=1 就可以下载了,文件都点大,142 MB (149,565,941 字节)。下载后按找默认的安装,路径在C:\tinyos,最好不要改动,因为还有很多的软件运行要靠它的。
第二步,安装JAVA,下载 http://java.sun.com/j2se/1.5.0/download.jsp 就好的,主要是为了使用eclipse。
第三步,安装eclipse,选择速度最快的服务器 http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.1.2-200601181600/eclipse-SDK-3.1.2-win32.zip 就可以了,文件也比较大,103 MB (108,459,237 字节)。下载完,不用安装的,直接解压缩到你想的目录下,就好了。
第四步,给eclipse安装TINYOS的插件,安装之前要仔细看看看 http://www.dcg.ethz.ch/~rschuler/installation.htm ,你要下载 TinyOS-UpdateSite1-1.zip ,文件很大,492 MB (516,668,683 字节),建议用BT下载而不是在线升级方式安装。下载完后,根据安装说明UPDATE到eclipse,没有什么特别的地方,只要听话做,一般没任何问题。
第五步,测试,你可以安装 http://www.dcg.ethz.ch/~rschuler/img/roundtrip/play.htm 这段FLASH动画演示做。
http://www.dcg.ethz.ch/~rschuler/img/roundtrip/play.htm
Overview:
Application programming for the Tinyos-Environment can be a cumbersome task, especially if you're coming from the java-world and thus are used to an integrated development environment that ships with a special editor, help, debugging facilities and enhanced search functionality.
This plugin aims to provide a useful set of functions to help programming in nesC. Most of the functions (outline, quickfix, etc) are based on a generated abstract syntax tree (AST) of the file currently being edited. The grammar used for parsing builds upon the nesC 1.1 language specification with minor modifications.
At the moment, this plugin provides many features of current IDEs, such as:
Syntax coloring
Displaying of semantical and syntactical errors (real time)
Quickfixes for missing commands or events
Code-Completion for nescdoc-comments
Compilation and flashing from within the IDE
Graphical representation of the application
Context-sensitive search function for interfaces, modules, components and types
Integrated MIG (message interface generator for nesC) / NCG
The plugin is divided into two major components:
the editor plugin
the environment plugin
The environment plugin holds a complete TinyOS-installation or a wrapper around cygwin, if it exists on the system. These loosely coupled plugins are a necessity to operating-system independence, easy installation and it allows further to code against multiple installations without deinstalling/installating the os.
The TinyOS-Plugin is still in its first stages and can't be compared to jdt or cdt. Please feel free to try it out and report any bugs or feature-request.
Responsible: Roland Schuler , Nicolas Burri
l Operating System: Windows 2000, XP
l JAVA: jre 1.5
l Tested on Eclipse 3.1.1 / 3.1.2 / Eclipse 3.2M4 on WinXP SP2
l Optional BitTorrent
If you have previously installed a version of the plugin you can update it with the inbuilt update system of eclipse.
Located in: Help -> Software Updates -> Search for updates of the currently installed features
1 It's good to have a backup of your existing TOS-Installation. Required steps for backuping the mount-points are described in:
HowTo: Backup the existing TinyOS installation
2 Optional (for optimal speed):
Download the complete TinyOS Update Site (about 500MB):
TinyOS-UpdateSite1-1.zip.torrent using BitTorrent and extraxt the zip-file
3 In Eclispse, click on Help 帮助-> Software Update软件更新 -> Find and Install...查找并安装
4 Choose the Search for new features to install option, and click Next搜索要安装的新功能部件
5 Click New Remote Site:新建远程站点
Update-Site: Help -> Software Updates -> Find and Install -> New Remote Site
Name: TinyOS Plugin Update Site
URL: http://dcg.ethz.ch/~rschuler/update
Optional:
if you downloaded the update site via BitTorent:已经下载了文件
Click New Local Site:
Update-Site: Help -> Software Updates -> Find and Install -> New Local Site
and point to the unzipped TinyOS Update Site
选择已经下在冰解压缩的文件夹 TinyOS-UpdateSite1-1
6 Choose Suite -> TinyOS Core Plugin
7 Choose one or more environments.选择这三个时报错,需要tinyos插件,先选择suite ,再选择environment 不报错。
- TinyOS Environment Plugin (1.15)
The Plugin contains a complete Cygwin Installation with an installed TinyOS 1.15 snapshot. You don't need to install/configure anything !
- Tinynode Environment Plugin
The Tinynode Plugin holds a complete Cygwin Installation and is based upon the actual Shockfish-Installer
- TinyOS Wrapper Environment 选择此选项,已经安装cygwin
If you have an existing Cygwin-Installation choose this plugin. After installation manual configuration is required
(read step 6 for configuration)
8 Click through the installation (next, next, I accept, install, ..)
9 The plugin should now work without restarting, but for certainity click Yes to make Eclipse restart itself
10 Confiugration of the Wrapper-Environment (skip this point if you didn't select the Wrapper-Plugin:
Specify paths and directories in the TinyOS Environment-Preference page. Found at Window->Preference->TinyOS Environment Preferences -> Wrapper Env. Preferences.
11 now you're ready to check out and play with the shipped examples.
Tutorial - Using the TinyOS-Example Wizard (Blink) is a good starting point.
P.S: don't forget to switch to the new TinyOS perspective ! ( Window->Open perpective->others-> TinyOS) 打开透视图
12 If you have more than one environment installed, you can select the environment within the project-properties工程属性.
HOWTO describing how to choose an environment once the plugin is installed.
13 If you have any questions check out the articles-page and/or post your question in the TinyOS forum.
Backup Mountpoints:
If you already have Cygwin installed on your machine, climb into it and then
mount -m > /bin/remount.txt
Restore Mountpoints:
Recover your pre-existing installation with
\Cygwin\bin\bash
to obtain a bash window. You might get a "warning: could not find /tmp"
error message, but this does not matter. From here
pwd
to check your location (it should be your original cygwin installation, e.g. /cygdrive/c/Cygwin/bin/) and then
PATH=.
bash ./remount.txt
exit
* Instructions based on http://www.cygwin.com/ml/cygwin/2003-07/msg01117.html
1. Open the wizard using: File -> New -> Example -> TinyOS Example Wizards
在这里不能运行下去,
2. Choose an application (Blink) and an appropriate project name (Blink App), target (PC) and environment (TinyOS CVS Snapshot 1.1.15)
The example wizard takes care of creating a standard make option and configures the original makefile, so that it can be used inside the eclipse tinyos plugin.
Besides the original files there should be also a
|
.Makefile_orig |
The original makefiel as found in tinyos/apps/Blink |
|
.project |
Eclipse specific project file, that defines the nature of this project (a tinyos-project) |
|
.targetOptions |
The XML Input for the Make Options-View |
3. Switch to the TinyOS Perspective透视图 (Windows->Show Perspective->Others-> TinyOS)
The TinyOS-Perpective has 5 sections:
1. the navigator window shows all files of a project
2. the editor view show the currently editable file, or application graph
3. the outline-view displays the structure of the file beeing edited. With a right click on a component, the corresponding file opens
4. the make option view: responsible for managing the different make options like install, reinstall, etc. With right-click on the project name you can add more options. Right click on an option shows the operations: edit, delete and execute.
5. this place hold different views: the standard problem view, task and the console
Extra: under Windows -> Show-View -> Other -> TinyOS Files another view is available that puts all reachable TinyOS files in different categories like modules, configurations, nc-file that provide/uses an interface, etc.
4. Change the Make-Option to your needs
Right click on the target (in the example -> Target mica2 (default)) and select edit. In the following dialog choose the appropriate settings.
5. Execute make on the modified Make-Option
Double-Click on the Target or right-click and select execute from the menu. In the console view all output of make is displayed. If an error exist, a link to the specific file and linenumber is created (in the image below, StdControl was changed to StdCotrol, of course -> the standard blink should compile without errors ;-))
1. Right-Click on your current TinyOS-Project and select Properties
You should find an entry "TOS - Environment" where you can choose between the environments shipped with this plugin.
Select the "TinyNode Development Platform" and click OK.
All make options under this project will be redirected to this platform.
2. Update the Make-Options for this specific Project
To successfully compile on this new environment, you have to update or add a new make item.
Edit (Right-Click on an existing target) or add a new target (Right-Click on Project in the Make-Options-View). And select the options according to your needs.
3. Run the make option by double-click the make item.
All the interaction with make is logged in the console window.
====================================================
====================================================
订阅免费电子杂志〈名人传记〉
每期发送电子图书,广读博览融汇贯通。阅读电子书时,请注意保护视力。╭○═○╮╭◎═◎╮╭●═●╮同步发行《名人传记简装版》简装版只包含附件联接地址,大小控制在80k以内。同时发送《热点》期刊
1 邮件订阅方式
向下面的邮件地址发一封信,邮件正文(不是标题)填写subscribe zhuanji
1.主页订阅
主页地址一
http://list.cn99.com/cgi-bin/getlsts?listname=zhuanji
主页地址二 http://yjxsuccess.blog.hexun.com/