I tried a different cable first and the “View Logs” printout for it is the first one listed below. After that I switched the “Board Type” drop down box from “Uno” to “ATmega328 based” and tried is again with the Uno rev C hex code and the second set of “View Logs” printouts are below for that. It appears the USB cable didn’t change anything but something actually worked better when I selected the 328 board. The script is currently running and the BrewPi status screen in the top left of the page is showing “Mode Off” and giving me a idle time counter. Does this mean its working? Thanks for all your help so far:
FIRST VIEW LOGS REPORT AFTER USING NEW USB CABLE
**** Arduino Program script started ****
Settings will not be restored
Devices will not be restored
Checking old version before programming.
Warning: Cannot receive version number from %(a)s. Your Arduino is either not programmed yet or running a very old version of BrewPi. Arduino will be reset to defaults.
Loading programming settings from board.txt
Checking hex file size with avr-size…
Program size: 25766 bytes out of max 32256
Programming Arduino with avrdude: /usr/share/arduino/hardware/tools/avrdude -F -e -p atmega328p -c arduino -b 115200 -P /dev/ttyACM0 -U flash:w:“brewpi-uno-revC.hex” -C /usr/share/arduino/hardware/tools/avrdude.conf
result of invoking avrdude:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: erasing chip
avrdude: reading input file "brewpi-uno-revC.hex"
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: writing flash (25766 bytes):
Writing | #####avrdude: stk500_recv(): programmer is not responding
avrdude done!
Giving the Arduino a few seconds to power up…
Back up in 5…
Back up in 4…
Back up in 3…
Back up in 2…
Back up in 1…
Back up in 0…
Waiting for device to reset.
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 645, in
{‘settings’: restoreSettings, ‘devices’: restoreDevices})
File “/home/brewpi/programArduino.py”, line 173, in programArduino
return programmer.program(hexFile, restoreWhat)
File “/home/brewpi/programArduino.py”, line 228, in program
while retries and self.ser:
AttributeError: ArduinoProgrammer instance has no attribute 'ser’
Mar 18 2015 23:26:10 Notification: Script started for beer 'My First BrewPi Run’
Mar 18 2015 23:26:52 Warning: Cannot receive version number from Arduino. Your Arduino is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your Arduino.
BrewPi: wifiChecker: Cannot find gateway IP. Restarting wlan0 interface… (Wed Mar 18 23:40:02 CDT 2015)
/sbin/ifdown: interface wlan0 not configured
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Mar 18 2015 23:40:09 Notification: Script started for beer 'My First BrewPi Run’
Mar 20 2015 17:33:11 Warning: Cannot receive version number from Arduino. Your Arduino is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your Arduino.
SECOND VIEW LOGS REPORT AFTER SWITCHING TO “ATmega328 based” BOARD TYPE:
**** Arduino Program script started ****
Settings will not be restored
Devices will not be restored
Checking old version before programming.
Warning: Cannot receive version number from %(a)s. Your Arduino is either not programmed yet or running a very old version of BrewPi. Arduino will be reset to defaults.
Loading programming settings from board.txt
Checking hex file size with avr-size…
Program size: 25766 bytes out of max 32256
Programming Arduino with avrdude: /usr/share/arduino/hardware/tools/avrdude -F -e -p atmega328p -c arduino -b 115200 -P /dev/ttyACM0 -U flash:w:“brewpi-uno-revC.hex” -C /usr/share/arduino/hardware/tools/avrdude.conf
result of invoking avrdude:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: erasing chip
avrdude: reading input file "brewpi-uno-revC.hex"
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: writing flash (25766 bytes):
Writing | ################################################## | 100% 4.96s
avrdude: 25766 bytes of flash written
avrdude: verifying flash memory against brewpi-uno-revC.hex:
avrdude: load data flash data from input file brewpi-uno-revC.hex:
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: input file brewpi-uno-revC.hex contains 25766 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 4.02s
avrdude: verifying …
avrdude: 25766 bytes of flash verified
avrdude done. Thank you.
avrdude done!
Giving the Arduino a few seconds to power up…
Back up in 5…
Back up in 4…
Back up in 3…
Back up in 2…
Back up in 1…
Back up in 0…
Waiting for device to reset.
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 645, in
{‘settings’: restoreSettings, ‘devices’: restoreDevices})
File “/home/brewpi/programArduino.py”, line 173, in programArduino
return programmer.program(hexFile, restoreWhat)
File “/home/brewpi/programArduino.py”, line 228, in program
while retries and self.ser:
AttributeError: ArduinoProgrammer instance has no attribute 'ser’
Mar 20 2015 17:36:10 Notification: Script started for beer 'My First BrewPi Run’
Mar 20 2015 17:36:21 Found BrewPi v0.2.4, running commit 2a6f7f05 build 40, running on a Arduino Uno with a revC shield on port /dev/ttyACM0
**** Arduino Program script started ****
Settings will not be restored
Devices will not be restored
Checking old version before programming.
Checking current version: Found BrewPi v0.2.4, running commit 2a6f7f05 build 40, running on a Arduino Uno with a revC shield on port /dev/ttyACM0
Requesting old settings from Arduino…
Saved old settings to file oldAvrSettings-Mar-20-2015-17-36-33.json
Loading programming settings from board.txt
Checking hex file size with avr-size…
Program size: 25766 bytes out of max 30720
Programming Arduino with avrdude: /usr/share/arduino/hardware/tools/avrdude -F -e -p atmega328p -c arduino -b 57600 -P /dev/ttyACM0 -U flash:w:“brewpi-uno-revC.hex” -C /usr/share/arduino/hardware/tools/avrdude.conf
result of invoking avrdude:
avrdude: stk500_getsync(): not in sync: resp=0x44
avrdude done. Thank you.
avrdude done!
Giving the Arduino a few seconds to power up…
Back up in 5…
Back up in 4…
Back up in 3…
Back up in 2…
Back up in 1…
Back up in 0…
Waiting for device to reset.
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 645, in
{‘settings’: restoreSettings, ‘devices’: restoreDevices})
File “/home/brewpi/programArduino.py”, line 173, in programArduino
return programmer.program(hexFile, restoreWhat)
File “/home/brewpi/programArduino.py”, line 228, in program
while retries and self.ser:
AttributeError: ArduinoProgrammer instance has no attribute 'ser’
Mar 20 2015 17:37:10 Notification: Script started for beer 'My First BrewPi Run’
Mar 20 2015 17:37:21 Found BrewPi v0.2.4, running commit 2a6f7f05 build 40, running on a Arduino Uno with a revC shield on port /dev/ttyACM0