Changes between Version 1 and Version 2 of PiBotDev


Ignore:
Timestamp:
Sep 20, 2016, 11:37:52 PM (9 years ago)
Author:
aborgwardt
Comment:

Formatted to make more readable. More formatting is needed...

Legend:

Unmodified
Added
Removed
Modified
  • PiBotDev

    v1 v2  
    33This is a description of the development environment used by one of the mentors (Mr. Alan Borgwardt) for initial PiBot development / prototyping in Fall 2016.
    44
    5 - Windows 10
    6 - Eclipse Mars 2 (eclipse-java-mars-2)
    7 - JDK 8 (jdk-8u102-windows)
    8 - Bonjour (used for Pi Zero Ethernet-over-USB support)
    9 - Pi4J (pi4j-1.1.zip)
    10     http://pi4j.com/install.html
    11         - Read the first paragraph (re: Pi .vs. dev host installation)
    12         - Follow the 'download' link in the first paragraph
    13         - Download pi4j-1.1.zip
    14         - Extract zip
    15         - Add jar files from extracted lib folder to Eclipse project
     5Windows 10
     6
     7Eclipse Mars 2 (eclipse-java-mars-2)
     8
     9JDK 8 (jdk-8u102-windows)
     10
     11Bonjour (used for Pi Zero Ethernet-over-USB support)
     12
     13Pi4J (pi4j-1.1.zip)
     14    http://pi4j.com/install.html[[BR]]
     15- Read the first paragraph (re: Pi .vs. dev host installation)[[BR]]
     16- Follow the 'download' link in the first paragraph[[BR]]
     17- Download pi4j-1.1.zip[[BR]]
     18- Extract zip[[BR]]
     19- Add jar files from extracted lib folder to Eclipse project
    1620    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???)
    1721
    18 - LaunchPi Plugin
     22LaunchPi Plugin
    1923
    2024    - Open Eclipse
     
    3034    NOTE: When the Pi Zero is connected to the USB port on my Windows system, it is automatically identified as hostname 'raspberrypi.local'.
    3135
    32 - PuTTY
     36PuTTY
    3337
    3438    I use PuTTY to SSH into the Pi Zero from Windows:
     
    3842        username: pi
    3943        password: raspberry
    40 - WinSCP
     44WinSCP
    4145
    4246    I use WinSCP transfer files between Windows and the Pi Zero.
     
    4549
    4650
    47 - Run a program at startup of Pi/Raspian:
     51Run a program at startup of Pi/Raspian:
    4852
    4953    Check out the following URLs for examples and reference information:
    5054
    5155    http://www.mikeslab.net/?p=176
    52 http://wiki.debian.org/LSBInitScripts
     56    http://wiki.debian.org/LSBInitScripts
    5357
    54 Highlights:
     58    Highlights from this page:
    5559
    5660        NOTE: Use ‘sudo’ to perform these operations as root in a Raspbian shell…
    5761
    58 Create an LSB style init script for launching a PiBot autonomous startup app. I copied rc.local as a starting point and modified it to run my desired PiBot app as follows:
    59 sudo cp /etc/init.d/rc.local /etc/init.d/pibot_auto
    60 sudo vi /etc/init.d/pibot_auto
    61 Revise the header block to describe PiBot autonomous app
    62 Revise the do_start() to launch the PiBot autonomous app
    63 Save and exit editor
    64 Test/debug the script until it works as desired using these commands:
    65 sudo /etc/init.d/pibot_auto start
    66 sudo /etc/init.d/pibot_auto stop
    67 sudo /etc/init.d/pibot_auto restart
    68 When working as desired, register script to run at startup/shutdown:
    69 sudo update-rc.d pibot_auto defaults
    70 If the script is changed (edited) after registering, a ‘reload’ may be necessary as follows:
    71 sudo systemctl daemon-reload
    72 To unregister the script (i.e., stop it from running at startup/shutdown):
    73 sudo update-rc.d -f pibot_auto remove
     62    Create an LSB style init script for launching a PiBot autonomous startup app.[[BR]]
     63    I copied rc.local as a starting point and modified it to run my desired - PiBot app as follows:
     64- sudo cp /etc/init.d/rc.local /etc/init.d/pibot_auto
     65- sudo vi /etc/init.d/pibot_auto
     66- Revise the header block to describe PiBot autonomous app
     67- Revise the do_start() to launch the PiBot autonomous app
     68- Save and exit editor
     69- Test/debug the script until it works as desired using these commands:
     70- sudo /etc/init.d/pibot_auto start
     71- sudo /etc/init.d/pibot_auto stop
     72- sudo /etc/init.d/pibot_auto restart
     73    When working as desired, register script to run at startup/shutdown:
     74- sudo update-rc.d pibot_auto defaults
     75    If the script is changed (edited) after registering, a ‘reload’ may be necessary as follows:
     76- sudo systemctl daemon-reload
     77    To unregister the script (i.e., stop it from running at startup/shutdown):
     78- sudo update-rc.d -f pibot_auto remove
    7479
    7580
    7681- Configuring WIFI on Pi Zero:
    7782
    78 Follow the instructions on the following web page to set up wifi on the Pi Zero:
     83Set up wifi on the Pi Zero
     84
     85    Follow the instructions on the following web page to set up wifi on the Pi Zero:
    7986
    8087https://thepihut.com/blogs/raspberry-pi-tutorials/83502916-how-to-setup-wifi-on-raspbian-jessie-lite