Changes between Version 5 and Version 6 of PiBotDev


Ignore:
Timestamp:
Sep 27, 2016, 11:13:30 PM (9 years ago)
Author:
chris
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PiBotDev

    v5 v6  
    55
    66* Windows 10
     7* Eclipse Mars 2 (eclipse-java-mars-2 or neon)
     8* JDK 8 (jdk-8u102-windows)
     9* Bonjour (used for Pi Zero Ethernet-over-USB support)
     10* Pi4J (pi4j-1.1.zip)
     11# [http://pi4j.com/install.html]
     12# Read the first paragraph (re: Pi .vs. dev host installation)
     13# Follow the 'download' link in the first paragraph
     14# Download pi4j-1.1.zip
     15# Extract zip
     16# Add jar files from extracted lib folder to Eclipse project
     17NOTE: This is for development workstation. Pi Zero's Raspian Jessie already has PI4J included, which, I think, is what gets used when running on Pi Zero. (Although, launching on Pi Zero from Windows/Eclipse with Pi Plugin *may* use the jars from the Eclipse project???)
    718
    8 * Eclipse Mars 2 (eclipse-java-mars-2)
    9 
    10 * JDK 8 (jdk-8u102-windows)
    11 
    12 * Bonjour (used for Pi Zero Ethernet-over-USB support)
    13 
    14 * Pi4J (pi4j-1.1.zip)
    15   * http://pi4j.com/install.html
    16   * Read the first paragraph (re: Pi .vs. dev host installation)
    17   * Follow the 'download' link in the first paragraph
    18   * Download pi4j-1.1.zip
    19   * Extract zip
    20   * Add jar files from extracted lib folder to Eclipse project
    21     NOTE: This is for development workstation. Pi Zero's Raspian Jessie already has PI4J included, which, I think, is what gets used when running on Pi Zero. (Although, launching on Pi Zero from Windows/Eclipse with Pi Plugin *may* use the jars from the Eclipse project???)
    22 
    23 * LaunchPi Plugin
     19* LaunchPi Plugin for Eclipse
    2420  * Open Eclipse
    2521  * Select menu item: "Help|Install New Software..."
     
    4945
    5046        Same connection information used for PuTTY
    51 
    52 
    53 * Run a program at startup of Pi/Raspian:
    54 
    55     Check out the following URLs for examples and reference information:
    56 
    57     http://www.mikeslab.net/?p=176
    58     http://wiki.debian.org/LSBInitScripts
    59 
    60     Highlights from this page:
    61 
    62         NOTE: Use ‘sudo’ to perform these operations as root in a Raspbian shell…
    63 
    64     Create an LSB style init script for launching a PiBot autonomous startup app.[[BR]]
    65 *   I copied rc.local as a starting point and modified it to run my desired - PiBot app as follows:
    66   * sudo cp /etc/init.d/rc.local /etc/init.d/pibot_auto
    67   * sudo vi /etc/init.d/pibot_auto
    68   * Revise the header block to describe PiBot autonomous app
    69   * Revise the do_start() to launch the PiBot autonomous app
    70   * Save and exit editor
    71   * Test/debug the script until it works as desired using these commands:
    72   * sudo /etc/init.d/pibot_auto start
    73   * sudo /etc/init.d/pibot_auto stop
    74   * sudo /etc/init.d/pibot_auto restart
    75     When working as desired, register script to run at startup/shutdown:
    76   * sudo update-rc.d pibot_auto defaults
    77     If the script is changed (edited) after registering, a ‘reload’ may be necessary as follows:
    78   * sudo systemctl daemon-reload
    79     To unregister the script (i.e., stop it from running at startup/shutdown):
    80   * sudo update-rc.d -f pibot_auto remove
    81 
    82 
    83 * Configuring WIFI on Pi Zero:
    84 
    85     Set up wifi on the Pi Zero
    86 
    87     Follow the instructions on the following web page to set up wifi on the Pi Zero:
    88 
    89    
    90     https://thepihut.com/blogs/raspberry-pi-tutorials/83502916-how-to-setup-wifi-on-raspbian-jessie-lite
    91 
    92     NOTE: You can make these edits from another Linux system by inserting the Pi Zero’s MicroSD memory card. This will allow you to go straight to configuring the Pi Zero for wifi without having to get the SSH-over-USB configured.
    93 
    94     NOTE: You will need the SSID and associated password for the WIFI network to which the Pi Zero will be connecting. It is also helpful to have access to the WIFI router admin page to verify when the Pi Zero connects and what IP Address is assigned by DHCP. Static IP configuration should be possible, but I was not successful in my attempts to get it working.