<
From version < 25.11 >
edited by ybe
on 2023/09/11 16:16
To version < 27.1
edited by Richard Kreissig
on 2023/09/14 10:54
Change comment: There is no comment for this version

Summary

Details

Page properties
Parent
... ... @@ -1,1 +1,1 @@
1 -KIELER.SCCharts.SCCharts (DeprecatedHistorical Documentation).WebHome
1 +KIELER.SCCharts (DeprecatedHistorical Documentation & Features).WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ybe
1 +XWiki.stu230980
Content
... ... @@ -1,11 +1,11 @@
1 -{{panel borderStyle="dashed" title="Project Overview"}}
1 +== Project Overview ==
2 +
2 2  Responsible:
3 3  
4 4  * [[Christian Motika>>url:http://www.informatik.uni-kiel.de/rtsys/kontakt/cmot/||shape="rect"]]
5 5  * Yvan Benekov
6 -{{/panel}}
7 7  
8 -= KLOTS - KIELER Lego On-line Testing System[[url:http://trac.rtsys.informatik.uni-kiel.de/trac/kieler/wiki/Projects/KLOTS#KLOTS-KIELERLegoOn-lineTestingSystem||title="Link to this section" shape="rect" class="anchor"]] =
8 += KLOTS - KIELER Lego On-line Testing System[[url:http://trac.rtsys.informatik.uni-kiel.de/trac/kieler/wiki/Projects/KLOTS#KLOTS-KIELERLegoOn-lineTestingSystem||shape="rect" title="Link to this section" class="anchor"]] =
9 9  
10 10  [[image:attach:klots_logo.png]]
11 11  
... ... @@ -23,7 +23,7 @@
23 23  
24 24  For more information about the leJOS NXJ project and especially the leJOS tutorial and NXT Programming API please visit the [[leJOS NXJ website>>url:http://lejos.sourceforge.net/||shape="rect" class="ext-link"]].
25 25  
26 -**Note that KLOTS currently uses leJOS NXJ v0.8.5, not the brand new v0.9.0.** You can download the v0.8.5 API from (% class="confluence-link" %) (% class="confluence-link confluence-link" %)[[here>>attach:leJOS_v0.8.5_API.zip]](% class="confluence-link" %) (% class="confluence-link noprint confluence-link" %)[[image:attach:download.png]][[attach:leJOS_v0.8.5_API.zip]](% class="noprint confluence-link" %) (%%).
26 +**Note that KLOTS currently uses leJOS NXJ v0.8.5, not the brand new v0.9.0.** You can download the v0.8.5 API from (% class="confluence-link" %) (% class="confluence-link confluence-link" %)[[here>>attach:leJOS_v0.8.5_API.zip]](% class="confluence-link" %) (% class="confluence-link confluence-link noprint" %)[[image:attach:download.png]][[attach:leJOS_v0.8.5_API.zip]](% class="confluence-link noprint" %) (%%).
27 27  
28 28  ----
29 29  
... ... @@ -56,7 +56,7 @@
56 56  * org.lejos.jtools
57 57  * org.lejos.pccomms
58 58  * org.lejos.pctools
59 -* If you want to be able to import KLOTS example programs using the KIELER Example Management (KEX), you will also need:\\
59 +* If you want to be able to import KLOTS example programs using the KIELER Example Management (KEX), you will also need:
60 60  ** de.cau.cs.kieler.core.kgraph
61 61  ** de.cau.cs.kieler.kex
62 62  ** de.cau.cs.kieler.kex.ui
... ... @@ -78,7 +78,6 @@
78 78  
79 79  **Note: Currently there are some problems when using the 64-bit version of KLOTS. Since leJOS is using only the 32-bit Lego USB Fantom driver, you will not be able to connect the NXT brick via USB cable, i. e. you will also not be able to flash the leJOS firmware on the NXT. Bluetooth connection will work with most (but not all) bluetooth devices. So, if you want to be on the safe side, you will have to use the 32-bit version of KLOTS on your 64-bit machine.**
80 80  
81 -
82 82  
83 83  === USB set-up on Microsoft Windows systems ===
84 84  
... ... @@ -88,9 +88,8 @@
88 88  
89 89  For the communication over Bluetooth, you will need a Bluetooth dongle or built-in support on your computer, and a Bluetooth software stack. The Microsoft and Widcomm stacks have been tested and proven to work, but other stacks should work as well.
90 90  
91 -**Note: The (% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)__BlueSoleil__(%%) stack has been reported as currently not working with KLOTS.**
90 +**Note: The (% style="color:#000000" %)__BlueSoleil__(%%) stack has been reported as currently not working with KLOTS.**
92 92  
93 -
94 94  
95 95  === USB set-up on Linux systems ===
96 96  
... ... @@ -118,7 +118,7 @@
118 118  
119 119  === (optional) Bluetooth set-up on Linux systems ===
120 120  
121 -If you want to communicate with the NXT over Bluetooth, you will need a Linux supported Bluetooth dongle or built-in support on your computer. KLOTS uses the Bluecove libraries which are included in the distribution. Note however, that not all Bluetooth adapters are compatible with Linux. A list of the supported hardware in several Linux distributions can be found on the web, for example [[Ubuntu Hardwaredatenbank (German)>>url:http://wiki.ubuntuusers.de/Hardwaredatenbank||shape="rect" class="ext-link"]] for the Ubuntu distribution.
119 +If you want to communicate with the NXT over Bluetooth, you will need a Linux supported Bluetooth dongle or built-in support on your computer. KLOTS uses the Bluecove libraries which are included in the distribution. Note however, that not all Bluetooth adapters are compatible with Linux. A list of the supported hardware in several Linux distributions can be found on the web, for example [[Ubuntu Hardwaredatenbank (German)>>url:http://wiki.ubuntuusers.de/Hardwaredatenbank||shape="rect" class="ext-link"]] for the Ubuntu distribution.
122 122  You may also need to install the **libbluetooth** and **libbluetooth-dev** libraries, however on most systems they are already pre-installed.
123 123  
124 124  ----
... ... @@ -158,26 +158,16 @@
158 158  
159 159  == Introducing the KLOTS Editor ==
160 160  
161 -{{section}}
162 -{{column width="90%"}}
159 +
163 163  When the KLOTS perspective is activated, Embedded Java files //(.java)// will be automatically associated with the //KLOTS Editor//. To open an Embedded Java file simply double-click on it. The KLOTS Editor offers the full functionality of the //standard Eclipse Java Editor// as well as means to build, download and execute Embedded Java programs on the NXT brick. The easiest way to check if a file is displayed in the KLOTS Editor is to look at the editor's toolbar. There should be four new buttons.
164 -{{/column}}
165 165  
166 -{{column width="10%"}}
167 167  [[image:attach:buttons_all.png]]
168 -{{/column}}
169 -{{/section}}
170 170  
171 -{{section}}
172 -{{column width="90%"}}
173 173  You can now write your code in the corresponding section and click on the **Build Embedded Java Program** button. Your program will then be build and linked with the leJOS NXJ library. An executable file named //<your_program's_name>.nxj// should appear in the project's //bin// folder.
174 -{{/column}}
175 175  
176 -{{column width="10%"}}
177 177  [[image:attach:buttons_build.png]]
178 -{{/column}}
179 -{{/section}}
180 180  
168 +
181 181  Sometimes, while running your program on the NXT brick, you may get a "blue screen", i.e. the brick plays an error tune and a message like
182 182  
183 183  |(((
... ... @@ -193,40 +193,22 @@
193 193  PC: 28087
194 194  )))
195 195  
196 -appears on the display. This indicates that an uncaught Java //Runtime Exception//, e.g. (% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)//NullPointerException//(% style="color: rgb(0,0,0);" %),(%%) occurred somewhere in your program. The error message indicates the kind of the exception and the method where it was thrown. This information is produced by the program build procedure and you can see it by clicking on the //Details// button. It can be very helpful for debugging your programs.
184 +appears on the display. This indicates that an uncaught Java //Runtime Exception//, e.g. (% style="color:#000000" %)//NullPointerException//,(%%) occurred somewhere in your program. The error message indicates the kind of the exception and the method where it was thrown. This information is produced by the program build procedure and you can see it by clicking on the //Details// button. It can be very helpful for debugging your programs.
197 197  
198 198  (% class="confluence-link" %)[[image:url:http://trac.rtsys.informatik.uni-kiel.de/trac/kieler/raw-attachment/wiki/Projects/KLOTS/build_program_output.png]]
199 199  
200 -{{section}}
201 -{{column width="90%"}}
202 202  By clicking on the **Download Embedded Java Program to NXT** button the executable file will be downloaded to your NXT brick. The file will then appear in the //Files// submenu on the brick. Note that for the downloading process the NXT should be turned on and connected to the computer via USB. (You can also download programs via Bluetooth.)
203 -{{/column}}
204 204  
205 -{{column width="10%"}}
206 206  [[image:attach:buttons_download.png]]
207 -{{/column}}
208 -{{/section}}
209 209  
210 -{{section}}
211 -{{column width="90%"}}
212 212  To run the program on your NXT brick, in case the program uses the //remote print// option and you want to enable remote printing, you should click on the **Run Embedded Java Program on NXT** button. The program will then be started on the NXT and you should specify **on the brick** whether or not you want to enable remote printing and the protocol for the connection with the computer (USB or Bluetooth). Then you should make the corresponding selection in KLOTS.
213 213  **Remember to do the connection selection always on the NXT site first, since doing otherwise can trigger connection abort!**
214 -{{/column}}
215 215  
216 -{{column width="10%"}}
217 217  [[image:attach:buttons_run.png]]
218 -{{/column}}
219 -{{/section}}
220 220  
221 -{{section}}
222 -{{column width="90%"}}
223 223  The remote prints will be then displayed on the //KLOTS Console// on the right site of the KLOTS Perspective. You can temporary disable the remote printing by clicking on the **Disable Console** button. You can then enable remote printing at any time by simply clicking on that button again.
224 -{{/column}}
225 225  
226 -{{column width="10%"}}
227 227  [[image:attach:buttons_console.png]]
228 -{{/column}}
229 -{{/section}}
230 230  
231 231  (% class="confluence-link" %)[[image:url:http://trac.rtsys.informatik.uni-kiel.de/trac/kieler/raw-attachment/wiki/Projects/KLOTS/new_embedded_java_file_example_console1.png]][[image:url:http://trac.rtsys.informatik.uni-kiel.de/trac/kieler/raw-attachment/wiki/Projects/KLOTS/new_embedded_java_file_example_console2.png]]
232 232