<
From version < 21.1 >
edited by aas2
on 2015/12/12 23:00
To version < 29.1 >
edited by dso
on 2015/12/17 17:06
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.aas2
1 +XWiki.dso
Content
... ... @@ -16,13 +16,13 @@
16 16  
17 17  == Download and install leJOS ==
18 18  
19 -Download and extract the newest archives for your Operating System from [[Sourceforce>>url:http://sourceforge.net/projects/nxt.lejos.p/files/||shape="rect"]].
19 +Download and extract the newest archives for your Operating System from [[Sourceforce>>url:http://sourceforge.net/projects/nxt.lejos.p/files/||shape="rect"]] (Linux/Mac) or use the Setup.exe (Windows).
20 20  
21 21  The further installation is explained in detail at [[http:~~/~~/www.lejos.org/nxt/nxj/tutorial/Preliminaries/GettingStarted.htm>>url:http://www.lejos.org/nxt/nxj/tutorial/Preliminaries/GettingStarted.htm||shape="rect"]].
22 22  
23 23  === Known issues ===
24 24  
25 -== Linux ==
25 +==== Linux ====
26 26  
27 27  On Linux there is an issue when uploading the firmware because of a kernel module ([[http:~~/~~/ubuntuforums.org/showthread.php?t=1123633>>url:http://ubuntuforums.org/showthread.php?t=1123633||shape="rect"]]). If you can't upload the firmware with your Linux OS, add **blacklist cdc_acm**{{code language="none"}}{{/code}} at the very end of the file **{{code language="none"}}/etc/modprobe.d/blacklist.conf{{/code}}**. Afterwards execute **{{code language="none"}}sudo rmmod cdc_acm{{/code}}**. This will remove the cdc_acm module from the kernel and prevent its restart. Now try to flash the firmware again.
28 28  
... ... @@ -30,6 +30,10 @@
30 30  
31 31  Furthermore, to use USB connection, a java library has to be compiled via ant. To do this perform **cd /path/to/leJOS/build** and start ant. If the ant build tool is not installed on your system, you can do so via **sudo apt-get install ant**.
32 32  
33 +==== Windows ====
34 +
35 +The setup.exe of the current LEGO Fantom driver for Windows (1.2.0) has an awkward issue. If you get an error message (Developer Error) because an .msi file could not be found, don't panic. The file is part of the downladed archive (in the Products folder) but you have to start it manually.
36 +
33 33  ----
34 34  
35 35  == Test the Mindstorm ==
... ... @@ -36,19 +36,40 @@
36 36  
37 37  A simple Hello World application for the Mindstorms is developed as part of the leJOS tutorial [[http:~~/~~/www.lejos.org/nxt/nxj/tutorial/Preliminaries/FirstProgram.htm>>url:http://www.lejos.org/nxt/nxj/tutorial/Preliminaries/FirstProgram.htm||shape="rect"]]
38 38  
39 -If this works with your device, you are able to start using KIELER to develop applications for the NXT brick.\\
43 +If this works with your device, you are able to start using KIELER to develop applications for the NXT brick.
40 40  
41 41  ----
42 42  
43 -== The Eclipse plugin for leJOS ==
47 +== Download and Configure KIELER
48 + ==
44 44  
45 -There is an Eclipse plugin for leJOS which adds a project creation wizard and launch configuration to the platform. You have to install it via the Eclipse Marketplace (//Help > Eclipse Marketplace...//). If you have an **NXT** **brick**, install the **leJOS NXJ** Plug-in. If you have an **EV3 brick**, install the **leJOS EV3** plugin.
50 +Download and unpack the nightly build of KIELER for your OS. It is available at the [[doc:Downloads]] page.\\
46 46  
52 +**Note:**Java 1.8 is needed on all operating systems, with Java 1.7 not all plugins of KIELER will be loaded.
53 +
54 + On Windows, you will need to download the 32 bit version of KIELER – even if you have a 64 bit operating system! Otherwise flashing the brick and uploading to the brick will fail.
55 +
56 + \\
57 +
58 +\\
59 +
60 +=== The Eclipse plugin for leJOS ===
61 +
62 +There is an Eclipse plugin for leJOS which adds a project creation wizard and launch configuration to the platform.
63 +
64 +1. You have to install it via the Eclipse Marketplace (//Help > Eclipse Marketplace...//).
65 +OR
66 +1. Install the plugin manually (Help > Install new Software...). Use the following update site\\
67 +11. for NXT: [[http:~~/~~/www.lejos.org/tools/eclipse/plugin/nxj/>>url:http://www.lejos.org/tools/eclipse/plugin/nxj/||shape="rect"]]
68 +11. for EV3: [[http:~~/~~/www.lejos.org/tools/eclipse/plugin/ev3/>>url:http://www.lejos.org/tools/eclipse/plugin/ev3/||shape="rect"]]
69 +
70 +If you have an **NXT** **brick**, install the **leJOS NXJ** Plug-in. If you have an **EV3 brick**, install the **leJOS EV3** plugin.
71 +
47 47  [[image:attach:lejos_eclipse_plugin.png]]
48 48  
49 -After the installation, the plugin requires a **little configuration**. Go to //Window > Preferences > leJOS NXJ// and enter the base directory of your **leJOS** **installation** in the **NXJ_HOME field**.
74 +After the installation, the plugin requires a **little configuration**. Go to //Window > Preferences > leJOS NXJ// (//Window > Preferences > leJOS EV3 //respectively) and enter the base directory of your **leJOS** **installation** in the **NXJ_HOME field**.
50 50  
51 -For the **EV3 plugin**, the required dialog is under //Window > Preferences > leJOS EV3//. You have to set the **leJOS installation directory**. Furthermore the leJOS EV3 plugin requires the IP address to connect to the brick (it may work without, but its safer to directly set the name. Reduces headache ). Check **Connect to named brick** and enter the **IP adress** of the brick (displayed on the brick at startup).
76 +For EV3 the plugin requires the IP address to connect to the brick (it may work without, but its safer to directly set the name. Reduces headache ). Check **Connect to named brick** and enter the **IP adress** of the brick (displayed on the brick at startup).
52 52  
53 53  ----
54 54  
... ... @@ -88,9 +88,11 @@
88 88  
89 89  The annotations on the input and output variable are used to define which wrapper code is used to set / read them. **@Wrapper TouchSensor, S4** will set the input variable to true iff the touch sensor on the port S4 is pressed. **@Wrapper Floodlight, S1** on the output variable will turn on the red led of the light sensor that is attatched to port S1 iff the variable is true.
90 90  
91 -The available wrapper code snippets are defined in the //snippets// directory of the project in ftl files (FreeMarker template files). (To view ftl files with highlighting, you may want to install the FreeMarker IDE feature from the JBoss tools that is available in the Eclipse Market Place.)
116 +The available wrapper code snippets are defined in the //snippets// directory of the project in ftl files (FreeMarker template files).
92 92  
93 -**Note:** The Floodlight of the EV3 has a pretty high latency when switching between on and off.**
118 +**Note:** The Floodlight of the EV3 has a pretty high latency when switching between on and off.
119 +
120 +**Note: **To view ftl files with highlighting, you may want to install the //FreeMarker IDE// feature from the JBoss Tools. However, this is not necessary to work with KIELER. JBoss Tools is available in the Eclipse Market Place and via update site. The update site for Eclipse Luna is [[http:~~/~~/download.jboss.org/jbosstools/updates/stable/luna/>>url:http://download.jboss.org/jbosstools/updates/stable/luna/||shape="rect"]] . Note that only the //FreeMarker IDE// feature is required (Abridged JBoss Tools > FreeMarker IDE).**
94 94  **
95 95  
96 96  === Launch the project: ===
... ... @@ -110,3 +110,36 @@
110 110  To use the RConsole, **uncomment** the **RConsole** lines in the wrapper code template **Main.ftl**. Start the **nxjconsoleviewer** tool in the bin directory of your **leJOS installation**. Now, when **starting the application**, the brick tries to connect with the nxjconsoleviewer. **Press the //Connect//** button. If connected succesfully, RConsole.println(...) commands will be written to this window.
111 111  
112 112  The **EV3 brick** has a similar feature. However it does not require any code changes. Just run the ev3console program in the bin directory of your leJOS installation from command line. The output of the brick will be printed to this command line.
140 +
141 +----
142 +
143 +== Problem Solving ==
144 +
145 +The following presents typical issues and how to solve them.
146 +
147 +|=(((
148 +Issue
149 +)))|=(((
150 +Typical Error Messages
151 +)))|=(((
152 +Description
153 +)))|=(((
154 +Solution
155 +)))
156 +|(((
157 +leJOS EV3 does not support Java 8
158 +)))|(((
159 +"java.lang.UnsupportedClassVersionError"
160 +
161 +"unsupported major.minor version"
162 +)))|(((
163 +You compile the sources in your project with Java 8 and upload them to the brick. However the lejos EV3 does not support Java 8
164 +)))|(((
165 +Go to the project properties and switch to Java 7 (Right Click on project > Properties > Java Compiler > Compiler compliance level)
166 +)))
167 +
168 +
169 +
170 +----
171 +
172 +
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -14516266
1 +14516329
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/14516266/LEGO Mindstorms with leJOS and SCCharts
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/14516329/LEGO Mindstorms with leJOS and SCCharts