We have been struggling to get the photon working as well as we were able to get the core working. This might be expected as the code we developed was built up and each routine tested as we added more. There were plenty of connection and crashing issues with the cores as well. Although by the end of it, we had some very stable and functioning code. This code is currently running on 10 cores as we speak with little to no issue, maybe once a week I get an email one rebooted.
Moving on, now unable to get the core any more, we had to port our code to the photon. After a few weeks of tweaking and flashing new firmware, we have gotten it to function ok.
There is an issue, when we submit the “Start” command to our photon, it connects to the website and reads all the information it needs, then goes semi-unresponsive.
Symptoms
Tries to connect to the URL but fails over and over again.
It can ping the local wifi router
It can not goto sleep, just turns the wifi off and never back on again.
Can still send additional web commands to the photon, But it always fails to respond after the first
System.memory() returns around a 5000 value
Our semi Fix:
After the 4.3 firmware the photons stopped rebooting on socket connection failed. We added a System.reset() function every time the photon starts. This works pretty well, except sometimes the photon goes unresponsive outside of the start function.
We can’t share the code due to the size of it, its over 15 custom libraries.
Any thoughts or idea’s why the photon would be able to communicate locally, but not be able to reach an internet host.
On boot, if the website tells the program to start it runs just fine
void setup{
net.message(NET_BOOT);
net_retrieve_data(flush);
}
Serial out:
1101010000320493048d048304790000 <— This command is the stop command
2701010000320493048d048304790000 <— This is just describing what is stopping
2301010000320493048d048304790001RL CYCLE 2 <— This is just describing what is stopping
Message sent successfully
Message sent successfully
Message sent successfully
5*<------- Ping from the core to the router*
5 <------- Ping from the core to the router
1001010000320493048d048304790000 <--------------10 Network command to start
unable to connect**<----outbound internet traffic stops here, and never recovers**
Failed to send message ( on connect )
5
Wifi Down
Wifi Up
unable to connect
unable to connect
Failed to send message ( post connect )
5
unable to connect
Failed to send message ( on connect )
5
Thank you,
Brian