Hello all.
In this week, I got first PHOTON and I enjoy it.
When I try to use OSC(local network) , PHOTON get lost Wifi connection …
After that I did my best ,although I can’t repair it…
The current situation in the following
My mac is OSX 10.10.5
My PHOTON is flashing Slow Cyan now
1, At first ,I tried reset.
Any chance there are also blinks of orange in between?
If at all possible, please try to make a short video of the colors, since that’s infinitely more easy than trying to describe them.
It seems your device can make it onto your WiFi network but can’t communicate with the cloud.
Can you check your firewall if CoAP port 5683 is open, your network is 2.4GHz, you’re not using a captive portal (landing page, splash page)?
You can also try this code to see where exactly your device gets stuck
STARTUP(WiFi.selectAntenna(ANT_INTERNAL))
SYSTEM_MODE(MANUAL)
void setup()
{
uint32_t ms;
WiFiAccessPoint ap[5];
Serial.begin(115200);
pinMode(D7, OUTPUT);
// connect via serial terminal and press any key to send data
while(Serial.read() < 0 && millis() < 20000) digitalWrite(D7, (millis() >> 2) % 0x88);
digitalWrite(D7, HIGH);
Serial.print("WiFi.on()");
ms = millis();
WiFi.on();
Serial.printlnf(" took %.1f sec", (millis()-ms)/1000.0);
digitalWrite(D7, LOW);
delay(100);
// make sure we use dynamic IP
WiFi.useDynamicIP();
Serial.print("Known WiFi networks");
for (int i = WiFi.getCredentials(ap, 5)-1; i >= 0; i--)
{
Serial.printlnf(" ssid: %s", ap[i].ssid);
}
digitalWrite(D7, HIGH);
Serial.print("WiFi.connect()");
ms = millis();
WiFi.connect();
Serial.printlnf(" took %.1f sec", (millis()-ms)/1000.0);
digitalWrite(D7, LOW);
delay(100);
digitalWrite(D7, HIGH);
Serial.print("waitUntil(WiFi.ready)");
ms = millis();
waitUntil(WiFi.ready);
Serial.printlnf(" took %.1f sec", (millis()-ms)/1000.0);
digitalWrite(D7, LOW);
delay(100);
Particle.process(); // allow for internal transfer of WiFi data
Serial.print("localIP "); Serial.println(WiFi.localIP());
Serial.print("gatewayIP "); Serial.println(WiFi.gatewayIP());
digitalWrite(D7, HIGH);
Serial.print("Particle.connect()");
ms = millis();
Particle.connect();
Serial.printlnf(" took %.1f sec", (millis()-ms)/1000.0);
digitalWrite(D7, LOW);
delay(100);
digitalWrite(D7, HIGH);
Serial.print("waitUntil(Particle.connected)");
ms = millis();
waitUntil(Particle.connected);
Serial.printlnf(" took %.1f sec", (millis()-ms)/1000.0);
digitalWrite(D7, LOW);
delay(100);
Serial.println("Particle.connected");
}
void loop()
{
Particle.process();
}
Flash this via USB, then open a serial terminal like PuTTY, send one byte to the device and see what happens.
Maybe post the output here