My Lego EV3 projects using Lejos
- EV3 clock - youtube preview
- Downloaded JDK
ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz - Create jre using :
bin\jrecreate.bat --profile compact2 --dest ejre1.7.0_60 --vm client - Use 7Zip to create
ejre-7u60-fcs-b19-linux-arm-sflt-headless-07_may_2014.tararchive with above folder inside - Use 7Zip to create
ejre-7u60-fcs-b19-linux-arm-sflt-headless-07_may_2014.gzwith above file - Copy it to SD card
- (Optional) Copy
wpa_supplicant.conf(see below wifi setup)
Based on: https://sourceforge.net/p/lejos/wiki/Installing%20leJOS/
http://java.com/legomindstorms redirects to http://www.oracle.com/technetwork/java/embedded/downloads/javase/javaseemeddedev3-1982511.html , but I used http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/legomindstormev3-2200042.html to get the jrecreate parameters.
WARN:
compact3(javax.naming) seems to be needed by logback: http://www.oracle.com/technetwork/java/embedded/resources/tech/compact-profiles-overview-2157132.html
Check PAN menu for ip address.
- Connect usb cable
- In PAN menu check USB client - set IP address from the same pool as IP on PC (USB Ethernet/RNDIS Gadget). For example
169.254.90.1on EV3 and169.254.90.196on PC. - Exit menu - the ip will be set when PAN restarts
Entering password from EV3 menu is not the best option, so better hardcode some network settings.
- Use
sshto connect to EV3 - userroot, password blank. - Use
wpa_passphraseto generate a passkey - Create a
/home/root/lejos/bin/utils/wpa_supplicant.conf, eg.:
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="mySSID"
key_mgmt=WPA-PSK
psk=myEncryptedPassword
}
First line is taken from
/home/root/lejos/bin/utils/base_wpa_supplicant.conf
Based on: https://sourceforge.net/p/lejos/wiki/Configuring%20Wifi/
- Check IP in
pom.xml mvn install- this will build, test and upload project to EV3- Run it from EV3 menu
