OpenSprinkler › Forums › OpenSprinkler Unified Firmware › OpenSprinkler (not OSPi!) Firmware 2.0.9 Released
- This topic is empty.
-
AuthorPosts
-
September 4, 2014 at 3:25 am #23146
RayKeymasterHi,
A new firmware 2.0.9 is released for the microcontroller-based OpenSprinkler. This version includes the following changes:
1. Fixed a major bug in fw 2.0.8 which causes issues when station name or location contains a SPACE character.
2. Refined Cache-Control directives in HTTP headers. This is useful for those who prefer to serve the UI Javascripts locally on the device (using an SD card).
Thanks for those who helped testing fw 2.0.8 and pointed out issues. Please feel free to post comments / bug reports here. Thanks.
How to Upgrade to Firmware 2.0.9:
Please use the OpenSprinkler Firmware Updater tool, available at: http://rayshobby.net/?page_id=732#uploadSeptember 4, 2014 at 3:50 am #28057
TechFanParticipantBeen meaning to ask. Is there any plan for being able to just download the updated files instead of downloading the whole updater? I seem to be able to update with just two new files, the firmware file and versions file. Seems like it would be simple enough to wget those two files? I can probably create a script to do that, but it wouldn’t have the benefit of thorough understanding of other potentially updated files.
September 4, 2014 at 3:59 am #28058
RayKeymaster@TechFan: yes, that’s a good point. Samer and I were just talking about revamping the Updater program. You are right that the program should be able to automatically grab files from the web. Also I think it’s possible for the program to automatically detect the hardware version (so no need to manually select hardware version). We will try to get this done as soon as we can.
September 4, 2014 at 4:01 am #28059
TechFanParticipantK, let me know if I can assist somehow.
September 4, 2014 at 4:07 am #28060
RayKeymasterThe updater program source code is actually in the Github:
https://github.com/rayshobby/opensprinkler/tree/master/OpenSprinkler%20Controller/software/osFirmwareUpdater
If you look at each os folder, there are lib and source sub-folders. The source code is the same in each os folder. The program is compiled in Processing with G4P libarry for GUI. It makes an external call to the ‘avrdude’ program which uploads the fimrware. The main reason to use Processing is that it can easily compile and export the program to all major OS. The program is pretty rudimentary and there are lots of improvements to be made. If you are interested, you can try to install Processing and get the program compiled. That would be a good starting point to make modifications to it. Thanks.September 4, 2014 at 4:10 am #28061
TechFanParticipantWill look at it. I don’t really have much of a build environment at this point. No current Linux installs. And haven’t ever tried on OSX.
September 4, 2014 at 4:38 am #28062
TechFanParticipantIs there any specific place that can be checked to determine the latest version?
September 4, 2014 at 5:55 am #28063
TechFanParticipantOk. Got it to compile. Had to include java to get it to run. . .otherwise it doesn’t seem to find java.
Added button to check for updates and got it to open a different file. . .now to figure out how to use the http library. . .
September 4, 2014 at 6:20 am #28064
TechFanParticipantOk. Got it to download the version file and the latest firmware file. . .I guess I can grab always grab the latest versions available from the versions file (os_firmware_info.txt), then check to see if they exist in the current structure and download if they don’t. I will have to figure out a bit more syntax to get that logic done though.
September 4, 2014 at 10:26 am #28065
TechFanParticipantOk. All done. Updated it so it will get the latest firmware file, then download any missing firmware files. . .how do you want me to send you the new source file?
September 4, 2014 at 10:31 am #28066
TechFanParticipantI did also update to 2.0.9 tonight. . .hadn’t played much since I was working on the updater. . .it appears my log files are corrupt now for some reason. . .it only shows history on 3 stations for some reason. . .and one is the rain sensor,which I haven’t ever used. . .most of my entries are missing. . .
September 4, 2014 at 1:49 pm #28067
AnonymousInactiveHi,
I’ve downloaded the osFirmwareUpdater and unzipped it. I’m running Windows 7.
When I run the windows version I first get the dialog box to authorize the application to run, and then I get another dialog which reads “Windows cannot find ‘javaw.exe’. Make sure you typed the name correctly, then try again.”
After pressing OK, another dialog appears which reads “Error calling ShellExecuteEx()” (Dialog box title is Processing Error). I press OK and the install terminates.
Any ideas?
Mark
September 4, 2014 at 3:26 pm #28068
TechFanParticipantSounds like it can’t find java. Do you have it installed already? I am not sure how it knows where to look. . .I had to bundle it in my testing last night, but there must be another way.
September 4, 2014 at 5:50 pm #28069
RayKeymaster@MarkB: try to install Java first: http://www.java.com/
September 4, 2014 at 5:52 pm #28070
RayKeymasterOk. All done. Updated it so it will get the latest firmware file, then download any missing firmware files. . .how do you want me to send you the new source file?
Wow, that’s quick. Yes you can send it to me ([email protected]). Thanks!
September 4, 2014 at 6:36 pm #28071
TechFanParticipantSent. Any reason why I might have had trouble trying to restore the config backup last night on 2.0.9 or have my logs missing? Went back to 2.0.8 at the end of the night since I needed my sprinklers to run during the day.
September 4, 2014 at 9:17 pm #28072
Oasiz37ParticipantToo bad you’ve decided to discontinue the original UI; in my experience, it was 10x better, even when used with my phone, not just desktop. Is there any way (SD card?) to keep the old UI around?
(If you care about “why”, the mobile design takes way more steps to perform the same task and has too many layers. In my experience, it’s heavy and over-engineered.)
Thank you,
Oasiz37September 4, 2014 at 9:43 pm #28073
AnonymousInactiveThanks Ray and TechFan. Java is installed and Javaw.exe actually appears in at least three locations (System32, Arduino and Processing). At a loss …
Update: all fixed! To summarize, its to do with where Java is located. My version was located in Windows/System32 (installed in 2012). My system is 64-bit Windows. I re-installed Java to the latest version – it installed Java in Windows/SysWOW64. osFirwareUpdater then worked. The following site provided the clue (but see the comment some way down the list by Mark B (no relation) as the best explanation) http://www.pdfsam.org/miscellaneous/cannot-find-javawexe/84/.
September 4, 2014 at 10:22 pm #28074
SamerKeymaster@Oasiz37 wrote:
Is there any way (SD card?) to keep the old UI around?
2.0.8 still supports the previous UI and even has a downgrade button in the settings page. If you need assistance with this please let me know.
September 4, 2014 at 11:03 pm #28075
SamerKeymaster@TechFan wrote:
Sent. Any reason why I might have had trouble trying to restore the config backup last night on 2.0.9 or have my logs missing? Went back to 2.0.8 at the end of the night since I needed my sprinklers to run during the day.
Any specific error when importing your config? If not, what didn’t import?
Are the logs actually corrupt on the SD card or they are simply not showing in the log page? Did the logs show up again on 2.0.8?
Thanks!
September 4, 2014 at 11:06 pm #28076
Oasiz37ParticipantThank you Salbahra,
I’m going to keep 2.07 for a while since 2.08 is officially not recommended. I was hoping 2.0.9 and subsequent releases would allow the old UI style.
September 4, 2014 at 11:14 pm #28077
SamerKeymaster@Oasiz37 I have plans on making the UI more applicable for the desktop and allow quicker access to certain elements. Of course, part one was getting it integrated and we will improve from there. If you have any specific things you would like to see changed please don’t hesitate to let me know.
Thanks!
September 4, 2014 at 11:17 pm #28078
TechFanParticipant@salbahra wrote:
@TechFan wrote:
Sent. Any reason why I might have had trouble trying to restore the config backup last night on 2.0.9 or have my logs missing? Went back to 2.0.8 at the end of the night since I needed my sprinklers to run during the day.
Any specific error when importing your config? If not, what didn’t import?
Are the logs actually corrupt on the SD card or they are simply not showing in the log page? Did the logs show up again on 2.0.8?
Thanks!
Logs are back on 2.0.8.
I got timeout errors and password errors on restore. . .only showed 8 stations instead of 24. . .none of them named. . .no programs restored. . .very slow processing restore command. I can try again tonight. I am wondering if the config file in my local browser got removed potentially? Would be great to actually save out to a file on a PC, then load back in (I would feel more confident I really had it). Ended up restoring from backup on my phone (app v1.1.6beta still).
September 4, 2014 at 11:20 pm #28079
SamerKeymaster@TechFan wrote:
@salbahra wrote:
@TechFan wrote:
Sent. Any reason why I might have had trouble trying to restore the config backup last night on 2.0.9 or have my logs missing? Went back to 2.0.8 at the end of the night since I needed my sprinklers to run during the day.
Any specific error when importing your config? If not, what didn’t import?
Are the logs actually corrupt on the SD card or they are simply not showing in the log page? Did the logs show up again on 2.0.8?
Thanks!
Logs are back on 2.0.8.
I got timeout errors and password errors on restore. . .only showed 8 stations instead of 24. . .none of them named. . .no programs restored. . .very slow processing restore command. I can try again tonight. I am wondering if the config file in my local browser got removed potentially? Would be great to actually save out to a file on a PC, then load back in (I would feel more confident I really had it). Ended up restoring from backup on my phone (app v1.1.6beta still).
I think you are exactly right (the backup was bad). I want to add file support but making it work across all platforms is impossible. How about this: for devices supporting files use that instead of email but fallback to email when device unsupported. Also, I will add an import file button next to the import config button (like export) when files are supported. I will try to get around to this very soon as I understand having a file is much better, when possible.
Is there a reason your app is so far behind (1.1.6 beta)?
Thanks!
Update: Also for the logging, I just checked and mine work fine and also show previous logs. I think I know the issue and it’s related to your station count. I assume your logs have 24 stations and currently your controller was only reporting 8. Basically, the program only gets station IDs from the controller and it uses your current station names to re-map them. If you decrease your station count, then all stations above the current count won’t be shown.
Update 2: If you are curious, you can see the backup in the browser by doing: localStorage.getItem(“backup”) in the console when you are on the app. This is the same data that is sent via email export.
September 4, 2014 at 11:39 pm #28080
TechFanParticipant@salbahra wrote:
I think you are exactly right (the backup was bad). I want to add file support but making it work across all platforms is impossible. How about this: for devices supporting files use that instead of email but fallback to email when device unsupported. Also, I will add an import file button next to the import config button (like export) when files are supported. I will try to get around to this very soon as I understand having a file is much better, when possible.
Is there a reason your app is so far behind (1.1.6 beta)?
Thanks!
Update: Also for the logging, I just checked and mine work fine and also show previous logs. I think I know the issue and it’s related to your station count. I assume your logs have 24 stations and currently your controller was only reporting 8. Basically, the program only gets station IDs from the controller and it uses your current station names to re-map them. If you decrease your station count, then all stations above the current count won’t be shown.
Makes sense. . .or allow for pasting copied email config backup. . .then you could use that across all platforms. . .? I installed 1.1.6beta back when you were first testing some issues with manual control. I just don’t get to updating my apps constantly. . .if I don’t notice any problems, why upgrade. Also, the problems that appeared in 1.1.7 and 1.1.8 in connection with 2.0.8 kept me from wanting to upgrade as well.
I think you are correct about the logs. . .all my active stations are above 8, so that would be why I only saw a couple stations I had tested on and the rain sensor (which i don’t have).
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Unified Firmware › OpenSprinkler (not OSPi!) Firmware 2.0.9 Released