Rachel Legerski - Fab Academy 2015

Networking and Communications

Week 14 Assignment

The assignment for this week is to design and build a wired &/or wireless network connecting at least two processors.


Struggles

  1. Learning to use python...again! This is a struggle for me because it is not intuitive. I have to open up my notes each time I have to work through the process.
  2. "Blurt out" a message and the board will "handshake" The message will be sent out and an acknowledgement will be sent. WHAT???
  3. Network code? I get the idea but I'm not sure how to make it happen.
  4. When we first tried Python, we got an error message that the computer could not find term.py
  5. I went back to the class schedule and found it under Input Week. After copying that to our computer, we were in business!


  6. Where to begin?


    Persistence and Success

    1. Gail and I supported each other through this trying process.
    2. I learned that the command sudo make creates an outfile. It turns the C file into a hex file.
    3. After the sudo make command, we had to enter the password to send the command to the board.
    4. After sudo make program-avrisp2, we ran python to talk to both boards sudo python term.py /dev/TTYUSB0 9600.
    5. I was very excited to type in the 0 and watch my first board respond. Unfortunately, when I typed in the 1, the second board flashed but did not acknowledge receipt.
    6. The first picture shows my boards being programmed. The second picture shows all the windows I needed to open to get through this!


      Programming Steps

      1. sudo means run as root (administrator)
      2. sudo make compiles c file into hexfile
      3. sudo make program avrisp2 sends the hexfile into the ATTiny using an avrisp2
      4. After sudo make program-avrisp2, we ran python to talk to both boards (sudo python term.py/dev/ttyUSBO9600.
      5. sudo python term.py /dev/TTYUSB0 9600 allows the use of python to run term.py using the USB port at 9600 baud
      6. Project Files:


        Back To Home