Error while receiving device configuration: SyntaxError: Unexpected token C

Today I removed the devices for fermentation and prepare new devices for Herms system.
After I removed the device and updated list of devices I have this error:
"Error while receiving device configuration: SyntaxError: Unexpected token C"
I can not do anything! Help!
I rebooted brewpi spark and raspberry, but it did not help.

This is my log:
`Listening on LPF/wlan0/f8:1a:67:0c:53:68
Sending on LPF/wlan0/f8:1a:67:0c:53:68
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPOFFER from 10.0.0.1
DHCPACK from 10.0.0.1
bound to 10.0.0.21 – renewal in 34315 seconds.
May 11 2016 22:53:33 quit message received on socket. Stopping script.
May 11 2016 22:54:03 Opening serial port
May 11 2016 22:54:03 Notification: Script started for beer 'None’
May 11 2016 22:54:13 Checking software version on controller…
JSON decode error: Unterminated string starting at: line 1 column 49 (char 48)
Could not parse version number: {“v”:“0.4.3”,“n”:“0.4.3-0-g4d00879”,“s”:4,“y”:0,"
JSON decode error: Unterminated string starting at: line 1 column 18 (char 17)
Could not parse version number: {“v”:“0.4.3”,“n”:"0
JSON decode error: Expecting ‘,’ delimiter or ‘}’: line 1 column 36 (char 35)
Could not parse version number: {“v”:“0.4.3”,“n”:"0.4.3-0-g4d00879"
JSON decode error: Unterminated string starting at: line 1 column 6 (char 5)
Could not parse version number: {“v”:"0.4
JSON decode error: Expecting ‘:’ delimiter: line 1 column 40 (char 39)
Could not parse version number: {“v”:“0.4.3”,“n”:“0.4.3-0-g4d00879”,"s"
JSON decode error: Expecting ‘,’ delimiter or ‘}’: line 1 column 64 (char 63)
Could not parse version number: {“v”:“0.4.3”,“n”:“0.4.3-0-g4d00879”,“s”:4,“y”:0,“b”:“y”,“l”:"3"
JSON decode error: Unterminated string starting at: line 1 column 18 (char 17)
Could not parse version number: {“v”:“0.4.3”,“n”:"0
JSON decode error: Unterminated string starting at: line 1 column 18 (char 17)
Could not parse version number: {“v”:“0.4.3”,“n”:"0.4.
JSON decode error: Unterminated string starting at: line 1 column 18 (char 17)
Could not parse version number: {“v”:“0.4.3”,“n”:"
JSON decode error: Unterminated string starting at: line 1 column 18 (char 17)
Could not parse version number: {“v”:“0.4.3”,“n”:"0.4.3-
May 11 2016 22:54:24 Found BrewPi v0.0.0 on port /dev/ttyACM0

May 11 2016 22:54:24 Warning: minimum BrewPi version compatible with this script is 0.4.0 but version number received is 0.0.0
May 11 2016 22:54:24 Warning: version number of local copy of logMessages.h does not match log version number received from controller.controller version = 0, local copy version = 3
May 11 2016 22:54:24 Cannot process line from controller: 0-g4d00879",“s”:4,“y”:0,“b”:“y”,“l”:“3”}
May 11 2016 22:57:45 quit message received on socket. Stopping script.`

Problem solved.
I installed the firmware again …

That looks like a strange timing error, where the device timed out waiting for the rest of the version string. I think it was an intermittent problem - not specifically fixed by reinstalling firmware. I imagine if you had re-run the script and restarted the device you would see that it didn’t happen again (unless you were unlucky again.)

We have reworked the protocol for the next major version of brewpi so that this doesn’t happen.