particle-iot / spark-setup-ios

(DEPRECATED) Spark device setup library - Soft AP Cocoapod/Carthage lib for iOS
Apache License 2.0
19 stars 25 forks source link

Could not send device-id command: Timeout occured while waiting for response from socket #29

Open upuxaa opened 8 years ago

upuxaa commented 8 years ago

Keep getting this error message in the sdk which does not allow me to continue past the 'Once Connected, return to this app' screen.

screen shot 2015-09-22 at 1 32 25 pm

2015-09-22 13:58:53.903 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:28.310 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:28.311 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:28.873 man[405:46853] DeviceID sent 2015-09-22 13:59:30.815 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:30.834 man[405:46853] DeviceID response received: 2e0048001747343337363432 2015-09-22 13:59:30.835 man[405:46853] PublicKey sent 2015-09-22 13:59:31.349 man[405:46853] DeviceID sent 2015-09-22 13:59:33.845 man[405:46853] Error sending public-key command to target: Timeout occured while waiting for response from socket 2015-09-22 13:59:34.364 man[405:46853] Could not send device-id command: Timeout occured while waiting for response from socket 2015-09-22 13:59:36.346 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:36.866 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:36.866 man[405:46853] PublicKey sent 2015-09-22 13:59:37.404 man[405:46853] DeviceID sent 2015-09-22 13:59:40.424 man[405:46853] Could not send device-id command: Timeout occured while waiting for response from socket 2015-09-22 13:59:40.888 man[405:46853] Error sending public-key command to target: Timeout occured while waiting for response from socket 2015-09-22 13:59:42.926 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:43.389 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:43.466 man[405:46853] DeviceID sent 2015-09-22 13:59:43.931 man[405:46853] PublicKey sent 2015-09-22 13:59:46.476 man[405:46853] Could not send device-id command: Timeout occured while waiting for response from socket 2015-09-22 13:59:46.946 man[405:46853] Error sending public-key command to target: Timeout occured while waiting for response from socket 2015-09-22 13:59:48.978 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:49.448 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:49.537 man[405:46853] DeviceID sent 2015-09-22 13:59:49.986 man[405:46853] PublicKey sent 2015-09-22 13:59:52.546 man[405:46853] Could not send device-id command: Timeout occured while waiting for response from socket 2015-09-22 13:59:53.032 man[405:46853] Error sending public-key command to target: Timeout occured while waiting for response from socket 2015-09-22 13:59:55.048 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:55.534 man[405:46853] SparkDiscover -> checkDeviceWifiConnection timer 2015-09-22 13:59:55.568 man[405:46853] DeviceID sent 2015-09-22 13:59:56.051 man[405:46853] PublicKey sent

This is what it looks like in the particle app:

img_1505

idokleinman commented 8 years ago

This is some kind of a dead loop in the connection between setup app and the Photon firmware in Soft AP mode. Need to find some reliable technique to reproduce it. Fix is pending