OpenSprinkler Forums OpenSprinkler Unified Firmware OpenSprinkler (not OSPi!) Firmware 2.0.9 Released

  • This topic is empty.
Viewing 25 posts - 1 through 25 (of 74 total)
  • Author
    Posts
  • #23146

    Ray
    Keymaster

    Hi,

    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#upload

    #28057

    TechFan
    Participant

    Been 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.

    #28058

    Ray
    Keymaster

    @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.

    #28059

    TechFan
    Participant

    K, let me know if I can assist somehow.

    #28060

    Ray
    Keymaster

    The 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.

    #28061

    TechFan
    Participant

    Will 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.

    #28062

    TechFan
    Participant

    Is there any specific place that can be checked to determine the latest version?

    #28063

    TechFan
    Participant

    Ok. 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. . .

    #28064

    TechFan
    Participant

    Ok. 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.

    #28065

    TechFan
    Participant

    Ok. 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?

    #28066

    TechFan
    Participant

    I 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. . .

    #28067

    Anonymous
    Inactive

    Hi,

    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

    #28068

    TechFan
    Participant

    Sounds 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.

    #28069

    Ray
    Keymaster

    @MarkB: try to install Java first: http://www.java.com/

    #28070

    Ray
    Keymaster

    @TechFan:

    Ok. 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!

    #28071

    TechFan
    Participant

    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.

    #28072

    Oasiz37
    Participant

    Too 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,
    Oasiz37

    #28073

    Anonymous
    Inactive

    Thanks 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/.

    #28074

    Samer
    Keymaster

    @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.

    #28075

    Samer
    Keymaster

    @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!

    #28076

    Oasiz37
    Participant

    Thank 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.

    #28077

    Samer
    Keymaster

    @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!

    #28078

    TechFan
    Participant

    @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).

    #28079

    Samer
    Keymaster

    @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.

    #28080

    TechFan
    Participant

    @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).

Viewing 25 posts - 1 through 25 (of 74 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware OpenSprinkler (not OSPi!) Firmware 2.0.9 Released