Skip to content
Guy Hoffman edited this page Nov 4, 2017 · 1 revision

Project Blossom - Software Dev Guide

This Wiki should get you up and running from the software perspective.

RPI Side

  1. Install the latest Raspbian

  2. Upgrade the OS:

     sudo apt-get update
     sudo apt-get upgrade
     sudo apt-get install software-properties-common
     sudo apt-get install python-software-properties
    

**Note: ** Right now WiringPI doesn't work with the latest kernel (4.9), but it works with kernel 4.4. To solve this you need to downgrade the kernel using the following command: sudo rpi-update b2de18efa673f3337dae0defd394306f2191437c

  1. Disable onboard Pi3 Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15:

    sudo nano /boot/config.txt

Add to the end of the file

dtoverlay=pi3-disable-bt

We also need to run to stop BT modem trying to use UART

sudo nano .bashrc

Add to the end of the file

sudo systemctl disable hciuart

More info: http://www.tldp.org/HOWTO/Serial-HOWTO-4.html , http://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/

PC / Mac Side

  1. Download and install IntelliJ IDEA
  2. Download and Install Java SE SDK (Last found here, but you can search "Java SE Development Kit Downloads")

From Bitbucket

  1. Clone the RMS and RMS Java Extension Bitbucket Repos
  2. In IntelliJ, choose "Import Project" and navigate to the rms-java-extension directory.
    1. When it asks you to "Import Gradle Project", say Yes.
    2. When it asks you to add your changes to Mercurial, say "No".
    3. Sat "Yes" to everything else.

From GitHub

  1. Clone the Blossom GitHub Repos
  2. In IntelliJ, choose "Open Project" and navigate to the rms-java-extension directory.

Both

  1. Configure the remote robot IP in the build.gradle
  2. The deployBlossom task in javaExt should build ok, including copying of the new JAR over to the Raspberry Pi

Troubleshooting

  • .gradle/ something cache not found --> Close IntelliJ, remove the rms-java-extension/.gradle/ directory completely and re-open IntelliJ
  • Can't import module ("Project already registered") --> Remove the <GradleProjectSettings> item from