I was wondering if it'd be possible to adjust a sketch via the webserver page. So if a temp probe dies (the one wire has a unique code for each temp probe), a new one can be hooked up, and somebody can remotely alter parts of the sketch via the webpage. (or change certain parts of the sketch, so a box somebody can type in, and it'll change preset parts of the sketch).
QuoteI was wondering if it'd be possible to adjust a sketch via the webserver page. So if a temp probe dies (the one wire has a unique code for each temp probe), a new one can be hooked up, and somebody can remotely alter parts of the sketch via the webpage. (or change certain parts of the sketch, so a box somebody can type in, and it'll change preset parts of the sketch).I don't know there are any way allow modify sketch during run time, however there is some type workaround.Plan A.TFTP Bootloader, With this and an Ethernet shield, it's easy to upload code to any Internet-connected Arduino, whether it's on your desk or halfway across the world. webserver create correct file and save it at TFTP server.TFTP BootloaderPlan B.Java applet at web page. It called online Arduino IDE. Java applet upload the file.Plan C.ActiveX at at web page, if u are in Microsoft/IE house.
What changes or adjustments to the sketch do you need? It sounds like the things you need (from your description) could just be stored and recalled from EEPROM. So, just include code to handle that from an admin page.It sounds like you need to only change some constants, not the actual code. But adding in the bootloader may be a good idea to update and upgrade the programs as needed.If it is any consolation, I don't think any product is idiot proof and certainly not on the first launch. It's not until the real world happens that you see all the variables that can happen. It would be unrealistic not to expect problems to pop up. My only suggestion is to do a lot of testing on a small, regional basis first before trying to deploy tens of thousands of units.
It seems to have impressed all my bosses, and I'm now in the process with another guy of making up a business plan to implement it (possibly worldwide, 56000 sites, I'm not kidding on that).
I'm hoping to make it send emails to certain addresses if a temp is out. I'm pretty sure I can figure that part out.
The report will get you salary increase, arduino sketch not.
I have done this for companies I have worked for in the past. They get their lawyers involved. So should you. Seek legal advice if you have not done so.
[I certainly hope that the OP made arrangements to sell the technology, etc.. to the company versus just doing it for his normal pay. Unless you need to just add it to your portfolio, never do that.
In order to make sketch changes on the fly... Have you considered to use Raspberry Pi? There are bridges that allow them to run Arduino code, and they are a usual computer where files can be replaced remotelly.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16