Hi. I am developing an application that controls irrigation electrovalves. The problem is that the application stops after a few minutes running, sometimes lasts longer and another less.
I'm running the latest image 201606061707 and I am using the Arduino IDE 1.6.0. I have reviewed the code and I do not see the problem.
I have decided to make an example that turns on and off a led and test whether or not to end the application. If I powered intel edison by computer via a USB cable the sketch lasts longer than if I powered
intel edison by DC power jach (witch a power supply of 12vdc), and I do not understand why.
I found online that when using unsigned long variables I had to establish value using L.
Someone has had this problem that stops the sketch if powered the intel edison with barrel dc power jack?. I do not know if it's an error in the following sample code:
int led = 13;
unsigned long seconds = 1000L;
unsigned long minutes = seconds * 60;
unsigned long hours = minutes * 60;
// the setup routine runs once when you press reset:
// initialize the digital pin as an output.
// the loop routine runs over and over again forever:
delay(5 * seconds);
delay(5 * seconds);
Thanks for reaching out!
How long does it take your Edison to crash using the example you posted above? I tested it on my Edison for several minutes, powering it through the power jack as you mentioned, and I never saw it fail.
This might be an issue with the image on your board, so, I suggest you to flash it again to the latest version (which can be found in https://downloadmirror.intel.com/26028/eng/iot-devkit-prof-dev-image-edison-20160606.zip) and try again to see if the issue persists.
Let me know.
Hello Peter. Thank you very much for the response.
Yesterday I passed the whole evening installing again the last version of the image (201606061707), from the same link that you have indicated me.
For it I used the application Intel Edison Board Configuration Tool. I followed 4 steps: repairs "USB driver installed", "Flash firmware", "Change password", and "Change Wifi"
Then, I followed the steps indicated in this link (https://software.intel.com/en-us/blogs/2015/08/01/procedure-to-autostart-the-arduino-sketch-on-ediso... Procedure to Autostart the Arduino Sketch on Edison | Intel® Software ) in order that the sketch should begin. I had not read the comments in this link, I'm sorry, and I have exactly the same mistake that they describe. The scketch lasts only 5 minutes. I just saw that in this link they also talk about the problem.
I copied the files that they describe in the zip file of the last link (https://dl.dropboxusercontent.com/u/13635196/clloader.zip https://dl.dropboxusercontent.com/u/13635196/clloader.zip) but the scketch stops for 5 minutes too.
The code that I put lasts more than 5 minutes in your intel edison and powering it through the power jack?
Sorry for starting a new thread about this problem.
Don't worry, we are glad to help!
Yes, as you can see in the screenshots below I started the sketch at 7:51 and at 9:06 it was still running.
I have seen some issues similar to what you describe, the workaround I have found is to flash a previous version of the image (like https://downloadmirror.intel.com/25871/eng/iot-devkit-prof-dev-image-edison-20160315.zip https://downloadmirror.intel.com/25871/eng/iot-devkit-prof-dev-image-edison-20160315.zip) and then going back to the latest. Could you please try this? Also, please use the flashall method to do so. In case you are not aware of the flashall method, you can find instructions on how to do it in /docs/DOC-25154 https://communities.intel.com/docs/DOC-25154.
Let us know.
Hello Peter. Thank you for the help and your time.
I have followed the steps that you advise: I have installed a previous version of the image (iot-devkit-prof-dev-image-edison-20160315.zip) and later I have installed the last version (iot-devkit-prof-dev-image-edison-20160606).
Next, I have followed the steps indicated in this https://software.intel.com/en-us/blogs/2015/08/01/procedure-to-autostart-the-arduino-sketch-on-ediso... link in order that the sketch should be executed automatically, but the sketch was stopping to 5 minutes also.
Next, I have proved one of the options that was indicated in this /thread/77945 link: to return to the version image https://downloadcenter.intel.com/downloads/eula/24910/Intel-Edison-Software-Release-2-1%3FhttpDown%3... 146 (ww18-15) And once realized the configuration in order that the sketch is executed automatically, this time was not stopping the sketch after being working any more than 7 hours!
It has surprised me that in the older version, the folder etc/init.d has more files that in the last version (20160606)
I would like to have the last version, so I will prove the steps that are indicated initially of this /thread/77945 link , but I will not be able to realize it up to the weekend. When it does it I will indicate if it has worked these steps or not.
At the moment, that the sketch is not closed already it is a good advance.
Thanks to all.
I'm glad to hear that what you tried made the sketch not stop. Please continue with your tests and keep us updated on this. And if you have any doubts, we'll be more than glad to help in any way we can.
Hi Peter. I have proved the steps indicated in the beginning of this /thread/77945 link: but using the version ww18-15 first and the last version 20160606 in the fifth step.
In the step 2, after copying the files (launcher.sh, clloader, sketch_reset, sketch_reset.sh), have given them permission of execution, because when I copied them it did not have these permissions (I think that this one is the key).
Later I had copied my sketch and have followed the steps in this https://software.intel.com/en-us/blogs/2015/08/01/procedure-to-autostart-the-arduino-sketch-on-ediso... link to allow the execution of my sketch on having restarted my edison. And after more than one hour the sketch continues working, has not stopped!
And I have the last version of the image installed in my edison.
Thank you very much for the help .
Thank you for sharing the steps you took to fix your Edison with the community. These steps will be of much help for other users.
Please don't hesitate to come back to the community whenever you have any other issue or doubt.