I've got my Photon hooked to the Core Shield Shield and USB powered. Observing Photon event logs, I see the device frequently reporting offline-online-cc3000-patch-version events. Here's the latest logs(with 'coreid' removed):
event: spark/status
data: {"data":"offline","ttl":"60","published_at":"2015-08-30T19:13:18.364Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"online","ttl":"60","published_at":"2015-08-30T19:13:18.362Z","coreid":"<my_core_id>"}
event: spark/cc3000-patch-version
data: {"data":"wl0: Nov 7 2014 16:03:45 version 5.90.230.12 FWID 01-68dd52ec","ttl":"60","published_at":"2015-08-30T19:13:18.399Z","coreid":"<my_core_id>"}event: spark/status
data: {"data":"offline","ttl":"60","published_at":"2015-08-30T21:09:53.408Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"online","ttl":"60","published_at":"2015-08-30T21:09:53.404Z","coreid":"<my_core_id>"}
event: spark/cc3000-patch-version
data: {"data":"wl0: Nov 7 2014 16:03:45 version 5.90.230.12 FWID 01-68dd52ec","ttl":"60","published_at":"2015-08-30T21:09:53.440Z","coreid":"<my_core_id>"}event: spark/status
data: {"data":"offline","ttl":"60","published_at":"2015-08-31T00:12:04.381Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"online","ttl":"60","published_at":"2015-08-31T00:12:23.803Z","coreid":"<my_core_id>"}
event: spark/cc3000-patch-version
data: {"data":"wl0: Nov 7 2014 16:03:45 version 5.90.230.12 FWID 01-e87d72ac","ttl":"60","published_at":"2015-08-31T00:12:24.386Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"offline","ttl":"60","published_at":"2015-08-31T03:54:22.176Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"online","ttl":"60","published_at":"2015-08-31T03:54:25.556Z","coreid":"<my_core_id>"}
event: spark/cc3000-patch-version
data: {"data":"wl0: Nov 7 2014 16:03:45 version 5.90.230.12 FWID 01-e87d72ac","ttl":"60","published_at":"2015-08-31T03:54:25.595Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"offline","ttl":"60","published_at":"2015-08-31T04:16:53.550Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"online","ttl":"60","published_at":"2015-08-31T04:16:53.777Z","coreid":"<my_core_id>"}
event: spark/cc3000-patch-version
data: {"data":"wl0: Nov 7 2014 16:03:45 version 5.90.230.12 FWID 01-e87d72ac","ttl":"60","published_at":"2015-08-31T04:16:53.811Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"offline","ttl":"60","published_at":"2015-08-31T04:20:50.992Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"online","ttl":"60","published_at":"2015-08-31T04:20:50.992Z","coreid":"<my_core_id>"}
event: spark/cc3000-patch-version
data: {"data":"wl0: Nov 7 2014 16:03:45 version 5.90.230.12 FWID 01-e87d72ac","ttl":"60","published_at":"2015-08-31T04:20:51.035Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"offline","ttl":"60","published_at":"2015-08-31T04:30:57.968Z","coreid":"<my_core_id>"}
event: spark/status
data: {"data":"online","ttl":"60","published_at":"2015-08-31T04:31:03.036Z","coreid":"<my_core_id>"}
event: spark/cc3000-patch-version
data: {"data":"wl0: Nov 7 2014 16:03:45 version 5.90.230.12 FWID 01-e87d72ac","ttl":"60","published_at":"2015-08-31T04:31:03.073Z","coreid":"<my_core_id>"}
What's this cc3000-patch-version
status? Anyone else observing similar behavior? For now, I issue System.reset()
if Spark.connected()
returns false
for 20 seconds. Any better ideas to avoid these frequent disconnects?