<
From version < 27.1 >
edited by aas2
on 2015/12/16 15:45
To version < 22.1 >
edited by cmot
on 2015/12/15 15:56
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.aas2
1 +XWiki.cmot
Content
... ... @@ -22,7 +22,7 @@
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,10 +30,6 @@
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 -
37 37  ----
38 38  
39 39  == Test the Mindstorm ==
... ... @@ -40,31 +40,14 @@
40 40  
41 41  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"]]
42 42  
43 -If this works with your device, you are able to start using KIELER to develop applications for the NXT brick.
39 +If this works with your device, you are able to start using KIELER to develop applications for the NXT brick.\\
44 44  
45 45  ----
46 46  
47 -== Download KIELER ==
48 -
49 -Download and unpack the nightly build of KIELER for your OS. It is available at the [[doc:Downloads]] page.\\
50 -
51 -**Note:** As leJOS only supports 32 bit versions of Java, you will need to download the 32 bit version of KIELER – even if you have a 64 bit operating system! Otherwise the upload to the brick will fail.\\
52 -
53 -----
54 -
55 55  == The Eclipse plugin for leJOS ==
56 56  
57 -There is an Eclipse plugin for leJOS which adds a project creation wizard and launch configuration to the platform.
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.
58 58  
59 -1. You have to install it via the Eclipse Marketplace (//Help > Eclipse Marketplace...//).
60 -OR
61 -1. Install the plugin manually (Help > Install new Software...). Use the following update site\\
62 -11. for NXT: [[http:~~/~~/www.lejos.org/tools/eclipse/plugin/nxj/>>url:http://www.lejos.org/tools/eclipse/plugin/nxj/||shape="rect"]]
63 -11. for EV3: [[http:~~/~~/www.lejos.org/tools/eclipse/plugin/ev3/>>url:http://www.lejos.org/tools/eclipse/plugin/ev3/||shape="rect"]]
64 -\\\\
65 -
66 -If you have an **NXT** **brick**, install the **leJOS NXJ** Plug-in. If you have an **EV3 brick**, install the **leJOS EV3** plugin.
67 -
68 68  [[image:attach:lejos_eclipse_plugin.png]]
69 69  
70 70  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**.
... ... @@ -109,11 +109,9 @@
109 109  
110 110  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.
111 111  
112 -The available wrapper code snippets are defined in the //snippets// directory of the project in ftl files (FreeMarker template files).
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.)
113 113  
114 -**Note:** The Floodlight of the EV3 has a pretty high latency when switching between on and off.
115 -
116 -**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 Mars is [[http:~~/~~/download.jboss.org/jbosstools/mars/stable/updates/>>url:http://download.jboss.org/jbosstools/mars/stable/updates/||shape="rect"]] whereas 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).**
93 +**Note:** The Floodlight of the EV3 has a pretty high latency when switching between on and off.**
117 117  **
118 118  
119 119  === Launch the project: ===
... ... @@ -133,36 +133,3 @@
133 133  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.
134 134  
135 135  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.
136 -
137 -----
138 -
139 -== Problem Solving ==
140 -
141 -The following presents typical issues and how to solve them.
142 -
143 -|=(((
144 -Issue
145 -)))|=(((
146 -Typical Error Messages
147 -)))|=(((
148 -Description
149 -)))|=(((
150 -Solution
151 -)))
152 -|(((
153 -leJOS EV3 does not support Java 8
154 -)))|(((
155 -"java.lang.UnsupportedClassVersionError"
156 -
157 -"unsupported major.minor version"
158 -)))|(((
159 -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
160 -)))|(((
161 -Go to the project properties and switch to Java 7 (Right Click on project > Properties > Java Compiler > Compiler compliance level)
162 -)))
163 -
164 -
165 -
166 -----
167 -
168 -
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -14516282
1 +14516268
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/14516282/LEGO Mindstorms with leJOS and SCCharts
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/14516268/LEGO Mindstorms with leJOS and SCCharts