Since Saturday, I’ve been seeing things like the following in the output from https://api.spark.io/v1/devices/events/ for multiple Cores:
event: spark/cc3000-patch-version
data: {"data":"1.29","ttl":"60","published_at":"2014-09-05T07:10:42.957Z","coreid":"55ff70065075555309431487"}
Two questions:
What changed? Why did these events suddenly start appearing in the event stream on Saturday?
Some cores’ streams include these repeatedly, every couple of minutes in one case. Does this indicate continual rebooting? Something else?
It was baked into the latest firmware so that’s published by default.
Looking at it, the only cores affected are those that were flashed on Saturday. OK, that much makes sense.
What’s causing the repeated events, does this indicate repeated reboots?
I don’t think so. It’s just broadcasting periodically.
see:
/**
******************************************************************************
* @file spark_utilities.cpp
* @author Satish Nair, Zachary Crockett and Mohit Bhoite
* @version V1.0.0
* @date 13-March-2013
*
* Updated: 14-Feb-2014 David Sidrane <david_s5@usa.net>
* @brief
******************************************************************************
Copyright (c) 2013 Spark Labs, Inc. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation, either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
This file has been truncated. show original
That’s inside Spark_handshake(), which only appears to be called in spark_wlan.cpp:SPARK_WLAN_Loop() if (!SPARK_CLOUD_CONNECTED), which suggests that something’s going wrong. I’ll dig deeper sometime soon.
bko
September 5, 2014, 11:15am
6
Hi @rolandturner
This is how the cloud “knows” if you core needs a “deep update” or not and I think is only sent when your core joins or rejoins the cloud connection. If you are seeing it a lot and you are not explicitly controlling your connection, then your core is rebooting.
1 Like