Photon update (0.2.11), Script update (0.3.7) and Shop closes August 5-22

Fixed :smile:

Device on windows:

USB VID:PID=2B04:C006

Device on Linux:

USB VID:PID=2b04:c006

The obvious fix is to convert to lowercase before the regex.

Next time there is an update to the brewpi-tools repo (via updater.py) will I end up with the latest config.cfg file as a result, or will I need to revert my recent change manually?

That file is out of source control, because it is user config.
defaults.cfg are the fallback settings, and auto is the new default.

If you just remove the port settings from config.cfg, it will fall back to auto detect.

Hi Elco,

Just wondering if the interim PWM update is likely to happen before you go?

Cheers.

Yes, I will release what I have so far before I go.

It’s out :smile:

Preliminary PWM actuators release

I found time to add PI controllers for the fridge actuators and to modify the beer PID anti-windup to work better in combination with this.

Hi,

I am currently using my own temperature controller, but the BrewPi project looks very interesting. Due to the fact that I need only limited functionality I decided to buy Photon core and display, wired it together and tried to upload the firmware to the core. Upload of FW passed OK, but when board is restarted the Photon led lights white and USB open is not open for connection. The display is fully white, no picture at all. When I try to reset to the factory state, Photon works as expected.

I checked the wiring and it is OK. So question is if this could be caused by missing DS2482 chip which I have not added to board yet. What do you think? Or is there any way how to check the display communication? Digital probe indicates that pins used for display interface are not set to ouptu probably as there is Z state (high impedance). It seems to me that code is stucked somewhere in the init phase.

Thanks in advance.

I just tried to add the DS2482 to the board and the firmware is started OK. :sunglasses:

Has anyone started using the new firmware? I’m going to do the update tonight & have a play with heating water in BIAB pot to see what happens.

Any update @SwiftPint ? how did you go?

IF you have time to post your experience that would be awesome.

Unfortunately I’m not able to open the serial port after adding those port settings to config.cfg. Just hanging at “Opening serial port” Any suggestions?

File downloaded successfully
Now writing BrewPi firmware /home/brewpi/utils/downloads/0.3.0a/brewpi-0.3.0a-photon.bin
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 58164

File downloaded successfully
Error during download get_status
Error during download get_status
Programming done, now resetting EEPROM to defaults
Opening serial port
Aug 18 2015 23:43:27 Opening serial port

This turned out to be a permissions thing.

Aug 19 2015 18:40:02 Opening serial port
Aug 19 2015 18:40:12 Errors while opening serial port:
[Errno 13] Permission denied: ‘/dev/ttyAMA0’

I had to add pi to the tty group…

pi@BrewPi /home/brewpi/logs $ ls -l /dev/ttyAMA0
crw-rw---- 1 root tty 204, 64 Aug 19 18:36 /dev/ttyAMA0
pi@BrewPi /home/brewpi/logs $ sudo adduser pi tty
Adding user pi' to grouptty’ …
Adding user pi to group tty
Done.
pi@BrewPi /home/brewpi/logs $

Then I got a good connection…

Aug 19 2015 18:54:03 Opening serial port
Aug 19 2015 18:54:03 Notification: Script started for beer 'My First BrewPi Run’
Aug 19 2015 18:55:02 Opening serial port
Aug 19 2015 18:55:02 Notification: Script started for beer 'My First BrewPi Run’
Aug 19 2015 18:55:12 Checking software version on controller…
Aug 19 2015 18:55:12 Found BrewPi v0.3.0a build 0.3.0a-0-g2d15c1b, running on a Particle Photon with a V1 shield on port /dev/ttyACM0

I am getting the following error when running updater.py,and it’s been this way for a few days. I get through the earlier parts of the script OK, just not the firmware part:

Checking current firmware version…
Aug 22 2015 14:00:19 Opening serial port
Current firmware version on controller: 0.2.10

Checking GitHub for latest release…
Latest version on GitHub: 0.2.11

Version on GitHub is newer than your current version, downloading new version…
Downloading latest firmware…
Downloading firmware failed

Did you run it with sudo?
Are you sure the pi had a working connection to GitHub?

I did run it with sudo, below is the full output of the command. The script is able to connect to GitHub when updating the local /home/brewpi and /var/www branches, and when checking my local firmware version against the latest release, so it’s not clear why it fails on downloading firmware from GH:

pi@RaspberryBrewPi1 ~/brewpi-tools $ sudo python updater.py
######################################################
####                                              ####
####        Welcome to the BrewPi Updater!        ####
####                                              ####
######################################################

Checking whether the update script is up to date
/home/pi/brewpi-tools is up-to-date.



*** Updating BrewPi script repository ***

Stopping running instances of BrewPi
Quit message sent to BrewPi instance with pid 5224!
You are on branch master
The latest commit in /home/brewpi  is 4c7dfa342d8403eb2b485e9970e2cdec9e53c9e4 on Wed, 05 Aug 2015 14:15:44
The latest commit on origin/master is 4c7dfa342d8403eb2b485e9970e2cdec9e53c9e4 on Wed, 05 Aug 2015 14:15:44
Your local version of /home/brewpi is up to date!


*** Updating BrewPi web interface repository ***
You are on branch master
The latest commit in /var/www      is d44c03e786d0bde0dc43f86a8bd655659f3f3d2b on Wed, 11 Mar 2015 14:59:39
The latest commit on origin/master is d44c03e786d0bde0dc43f86a8bd655659f3f3d2b on Wed, 11 Mar 2015 14:59:39
Your local version of /var/www is up to date!

No changes were made, skipping runAfterUpdate.sh.
If you encounter problems, you can start it manually with:
sudo /home/brewpi/utils/runAfterUpdate.sh

The update script can automatically check your controller firmware version and program it with the latest release on GitHub, would you like to do this now? [Y/n]:y
 Stopping any running instances of BrewPi to check/update controller...

Checking current firmware version...
Aug 23 2015 08:30:44   Opening serial port
 Current firmware version on controller: 0.2.10

Checking GitHub for latest release...
 Latest version on GitHub: 0.2.11

Version on GitHub is newer than your current version, downloading new version...
 Downloading latest firmware...
 Downloading firmware failed

*** Done updating BrewPi! ***

I have the Brewpi Photon working and logging temps using the SSR expansion board, next Ia m going to hook up my SSR’s and then my fermentation chamber. One question I have is if the Touchscreen is supposed to control anything? So far I touch it and it doesn’t do anything. Are there any controls that I can change with the touchscreen? Thanks for any help.

@DanCook

I think I had the same issue, line 115 of /home/brewpi/utils/updateFirmware.py reads elif family == “Spark”:

but believe it should read elif family == “Particle”:

I changed mine local and it fixed the issue.

Let me know how you get on.

Even if I am running a Spark Core and not a Particle board?

Yep, i updated my core before upgrading the core to a Photon, I think Elco has changed the github fork for the new name for Spark.

If it doesn’t fix the issue then you could always copy down the original again. I have just tried setting mine back and get the same error. one I change Spark to Particle is works.

Rich

I updated my Spark Core to 0.2.11, and the update completed. On the first reboot after flashing the firmware I got the stuck on the stylus calibration screen, but on subsequent reboots I get the 4 flashes and then the standard BrewPi UI.

I had to query and re-install my devices and default settings, no big deal. But here’s the troubling thing: I no longer have cooling activity. When the freezer should kick on at the beginning of a cooling cycle it does nothing and I don’t hear the SSR click. But I do get the expected result for heating cycles! I recreated the device settings as they previously were (based on screenshots from a known working environment) so I am pretty sure they are correct.

My updater,py output is at bottom, and above that is what I see upon rebooting the Pi/BrewPi. Notice it says “running on a Particle Core” (which is not true)

Aug 24 2015 16:43:34 Opening serial port
Aug 24 2015 16:43:34 Notification: Script started for beer 'None'
Aug 24 2015 16:43:44 Checking software version on controller... 
Aug 24 2015 16:43:45 Found BrewPi v0.2.11 build 0.2.11-0-ga28c22d, running on a Particle Core with a V1 shield on port /dev/ttyACM0

pi@RaspberryBrewPi1 ~/brewpi-tools $ sudo python updater.py
######################################################
####                                              ####
####        Welcome to the BrewPi Updater!        ####
####                                              ####
######################################################

Checking whether the update script is up to date
/home/pi/brewpi-tools is up-to-date.



*** Updating BrewPi script repository ***

Stopping running instances of BrewPi
Quit message sent to BrewPi instance with pid 2507!
You are on branch master
The latest commit in /home/brewpi  is 4c7dfa342d8403eb2b485e9970e2cdec9e53c9e4 on Wed, 05 Aug 2015 14:15:44
The latest commit on origin/master is 4c7dfa342d8403eb2b485e9970e2cdec9e53c9e4 on Wed, 05 Aug 2015 14:15:44
Your local version of /home/brewpi is up to date!


*** Updating BrewPi web interface repository ***
You are on branch master
The latest commit in /var/www      is d44c03e786d0bde0dc43f86a8bd655659f3f3d2b on Wed, 11 Mar 2015 14:59:39
The latest commit on origin/master is d44c03e786d0bde0dc43f86a8bd655659f3f3d2b on Wed, 11 Mar 2015 14:59:39
Your local version of /var/www is up to date!

No changes were made, skipping runAfterUpdate.sh.
If you encounter problems, you can start it manually with:
sudo /home/brewpi/utils/runAfterUpdate.sh

The update script can automatically check your controller firmware version and program it with the latest release on GitHub, would you like to do this now? [Y/n]:y
 Stopping any running instances of BrewPi to check/update controller...

Checking current firmware version...
Aug 24 2015 16:10:53   Opening serial port
 Current firmware version on controller: 0.2.10

Checking GitHub for latest release...
 Latest version on GitHub: 0.2.11

Version on GitHub is newer than your current version, downloading new version...
 Downloading latest firmware...
downloading https://github.com/BrewPi/firmware/releases/download/0.2.11/brewpi-0.2.11-core.bin
 Latest firmware downloaded to /home/brewpi/utils/downloads/0.2.11/brewpi-0.2.11-core.bin
 ****    Spark Core Program script started    ****
 Settings will be restored if possible
 Devices will be restored if possible
Aug 24 2015 16:10:56   Opening serial port
 Checking old version before programming.
 Checking current version: Found BrewPi v0.2.10 build 0.2.10-0-g2312560, running on a Particle Core with a V1 shield on port /dev/ttyACM0

 Requesting old settings from Spark Core...
 Saved old settings to file settings-Aug-24-2015-16-10-59.json
 Waiting for the binary file to be sent ... (press 'a' to abort)

 sent packet nr 0
 sent packet nr 1
 sent packet nr 2
 sent packet nr 3
 sent packet nr 4
 sent packet nr 5
 sent packet nr 6
 sent packet nr 7
 sent packet nr 8
 sent packet nr 9
 sent packet nr 10
 sent packet nr 11
 sent packet nr 12
 sent packet nr 13
 sent packet nr 14
 sent packet nr 15
 sent packet nr 16
 sent packet nr 17
 sent packet nr 18
 sent packet nr 19
 sent packet nr 20
 sent packet nr 21
 sent packet nr 22
 sent packet nr 23
 sent packet nr 24
 sent packet nr 25
 sent packet nr 26
 sent packet nr 27
 sent packet nr 28
 sent packet nr 29
 sent packet nr 30
 sent packet nr 31
 sent packet nr 32
 sent packet nr 33
 sent packet nr 34
 sent packet nr 35
 sent packet nr 36
 sent packet nr 37
 sent packet nr 38
 sent packet nr 39
 sent packet nr 40
 sent packet nr 41
 sent packet nr 42
 sent packet nr 43
 sent packet nr 44
 sent packet nr 45
 sent packet nr 46
 sent packet nr 47
 sent packet nr 48
 sent packet nr 49
 sent packet nr 50
 sent packet nr 51
 sent packet nr 52
 sent packet nr 53
 sent packet nr 54
 sent packet nr 55
 sent packet nr 56
 sent packet nr 57
 sent packet nr 58
 sent packet nr 59
 sent packet nr 60
 sent packet nr 61
 sent packet nr 62
 sent packet nr 63
 sent packet nr 64
 sent packet nr 65
 sent packet nr 66
 sent packet nr 67
 sent packet nr 68
 sent packet nr 69
 sent packet nr 70
 sent packet nr 71
 sent packet nr 72
 sent packet nr 73
 sent packet nr 74
 sent packet nr 75
 sent packet nr 76
 sent packet nr 77
 sent packet nr 78
 sent packet nr 79
 sent packet nr 80
 sent packet nr 81
 sent packet nr 82
 sent packet nr 83
 sent packet nr 84
 sent packet nr 85
 sent packet nr 86
 sent packet nr 87
 sent packet nr 88
 sent packet nr 89
 sent packet nr 90
 sent packet nr 91
 sent packet nr 92
 sent packet nr 93
 sent packet nr 94
 sent packet nr 95
 sent packet nr 96
 sent packet nr 97
 sent packet nr 98
 sent packet nr 99
 sent packet nr 100
 sent packet nr 101
 sent packet nr 102
 sent packet nr 103
 sent packet nr 104
 sent packet nr 105
 sent packet nr 106
 sent packet nr 0
 File flashed successfully
 Waiting for device to reset.
Aug 24 2015 16:11:06   Opening serial port
 Warning: Cannot receive version number from controller. Your controller is either not programmed yet or running a very old version of BrewPi. It will be reset to defaults.
 Resetting EEPROM to default settings
 INFO MESSAGE 15: EEPROM initialized
 Now checking which settings and devices can be restored...
 Warning: Cannot receive version number from controller after programming.
Something must have gone wrong. Restoring settings/devices settings failed.

BrewPi script will restart automatically.
Firmware update done

*** Done updating BrewPi! ***