OpenSprinkler › Forums › OpenSprinkler Unified Firmware › OpenSprinkler (not OSPi!) Firmware 2.0.2 Released
- This topic is empty.
-
AuthorPosts
-
November 11, 2013 at 6:07 pm #22693
RayKeymasterHi,
A quick update that firmware 2.0.2 for OpenSprinkler 2.0 (note: the microcontorller-based OpenSprinkler, not OpenSprinkler Pi!) is now available on Github. Similar to firmware 2.0.1, this version makes use of the microSD card to store Javascripts. The main changes are:
– Added support for JSON (work is under way to combine this with Samer’s work in order to make an integrated mobile app):
/jo: returns options
/jc: returns controller variables
/jp: returns program data
/jn: returns station names and data
– Stores controller operation enable bit, manual mode bit, rain delay time in EEPROM.
– More options are made editable through the web interface
– Added support to change time manually (enabled when NTP sync is turned off).Here is the direct link to the Github folder:
https://github.com/rayshobby/opensprinkler/tree/master/OpenSprinkler%20Controller/software/compiled/hardware%20v2.0/firmware2.0.2
Please follow the README.txt for instructions. Source code is also available on the Github site. Note that the Javascript files have been updated, so you need to update your SD card files as well. Due to a missing pullup resistor on OpenSprinkler 2.0, flashing the firmware while the microSD card is inserted may cause the flashing to fail (no damage, won’t cripple your controller). The work-around is to release the microSD card when flashing the firmware.November 16, 2013 at 3:42 am #25761
rhldrParticipantBeing new to both flashing opensprinkler and github, two questions:
1. How do you request the file as a .zip download?
2. How do you flash the new firmware?November 29, 2013 at 6:55 pm #25762
rwpParticipantaloha trying to follow instructions to update firmware for open sprinkler.Installed virtual box and your mint version.I’m not clear on the next steps.Do I install 2.0.2 or do I have to install a previous firmware update first?Does the update need to be downloaded from git hub within mint or on windows?Where should the files be placed? Looking ahead to make sure I get it right when I click devices-usb- I see no usbtiny.Does uabtiny only show up when open sprinkler is pluged in to my computer?some guidance appreaciated thanks rwp.
December 3, 2013 at 5:39 am #25763
RayKeymaster@rhldr:
1. go to https://github.com/rayshobby/opensprinkler, and you should see a ‘Download as Zip’ button on the right-hand side.
2. firmware update instructions are on the OpenSprinkler homepage: http://www.opensprinkler.com. Click on 6. Firmware Update link on the left-hand side.
@rwp:
If you just want to flash a pre-compiled firmware, you do not need to install VirtualBox — the VirtualBox approach is meant for users who want to compile or modify the firmware source code. Each firmware is independent and does not rely on previous versions of firmware. As I said above:
firmware update instructions are on the OpenSprinkler homepage: http://www.opensprinkler.com. Click on 6. Firmware Update link on the left-hand side.December 17, 2013 at 7:55 am #25764
rwpParticipantstill trying to update firmware hit the zip button,unzip,file in downloads.where is the download to sd file?Label says master open sprinkler.Very unclear on the the tinyusb solution for windows 7 64 bit.I’m close to to 500$ invested transferring my system to open but still lose connection occasionally.No explanation for the bar icon on the lcd display what does the x by the bars mean?where should the usbtiny files be located ?A run once any program feature is a must as is different runtimes within a program.A little better direction for github,the menu always has multiple choices. thanks richard
December 18, 2013 at 7:30 am #25765
rwpParticipantso I went ahead and tried to install the new firm ware and now open sprinkler is dead.usbtiny shows in device manager got the drivers for 64bit win 7.downloaded winavr,found hex file for 2.02.instructions not clear weather I should open firmware file,or access it from ?winavr screens come up but don’t allow any commands.
I put this in windows command promt avrdude -c usbtiny -p m644 -F -U flash:w:xxx.hex .Got a list of actions being taken then lights out.won’t start.A device still shows in usbtiny.No combination of turning on or off with the buttons works. Is it trash? thanks richardDecember 18, 2013 at 1:58 pm #25766
RayKeymasterYou said you put this in Windows command prompt:
avrdude -c usbtiny -p m644 -F -U flash:w:xxx.hex
what is xxx.hex? It should be the actual name of the firmware you want to upload. In your case, firmware2.0.2.hexThere is a README.txt in the folder of each firmware. Please, read it.
To answer your last question: your controller should still be alive. It appears dead probably because you uploaded something wrong. Just try to upload the correct firmware and it should work again.
December 18, 2013 at 5:56 pm #25767
rwpParticipantthanks. tried again as admin in command promt avrdude -c usbtiny -p m644 -F -U flash:firmware2.0.2.hex and get this
avrdude: AVR device initialized and ready to accept instructionsReading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9609
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file “firmware2.0.0.hex”
avrdude: error opening firmware2.0.0.hex: No such file or directory
avrdude: input file firmware2.0.0.hex auto detected as invalid format
avrdude: can’t open input file firmware2.0.0.hex: No such file or directory
avrdude: read from file ‘firmware2.0.0.hex’ failedavrdude: safemode: Fuses OK
avrdude done. Thank you.
usb tiny shows in device manager ,files unzipped but don’t allow access.Tried the master file in open sprinkler mint firmware 2.0.0hex same error,usb tiny shows in devices. what next thanks richardDecember 18, 2013 at 7:13 pm #25768
RayKeymaster“error opening firmware2.0.0.hex: No such file or directory”
it’s pretty clear that you are not running the command in the directory where firmware2.0.0.hex is located. You need to run it in the directory where the file exists.December 18, 2013 at 8:15 pm #25769
rwpParticipantOk for tech impaired people in windows 7 open a command promt in the firmware 2.0..2 folder not the hex file itself by holding the shift key down and right clicking.Run the command avrdude -c usbtiny -p m644 -F -U flash:w:firmware2.0.2.hex and the lights come on.Now I inserted the sd card and have a screen E1: before I do somthing else wrong Whats next. I don’t see a sd icon. mele kalikimaka richard
December 18, 2013 at 9:03 pm #25770
RayKeymasterWhat is E1? If you see a message on the LCD screen, can you please post it here? I don’t know what E1 means.
Did you copy files to the SD card? As I said, there is a README.txt in the firmware folder, please take a look at it. If you don’t know where it is, here is the online copy of the file:
https://github.com/rayshobby/opensprinkler/blob/master/OpenSprinkler%20Controller/software/compiled/hardware%20v2.0/firmware2.0.2/README.txtDecember 19, 2013 at 11:50 pm #25771
rwpParticipantaloha E1 I think stands for expansion board.maybe I hit B3 by accident.Now I’ve plugged open into my router and run through the setup options.B3 to restart then display connecting then MC:M
connection icon then sd card icon.
No x by the icons.gateway address is correct.open ip 192.168.2.11.when I enter ip into browser no connection.
I doublechecked router settings DHCP client list shows192.168.2.11 Arduino-00 00:69:69:2d:30:00 .Ethernet port at open sprinkler solid green with amber blinking.Tried disabling router and windows firewall no change.Tried two different Ethernet cables.re started several times. Any ideas thanks richardDecember 20, 2013 at 12:21 am #25772
RayKeymasterTry this in your browser:
192.168.2.11/sn0
if you see a string of numbers, that means the controller is alive, and most likely you haven’t correctly copied the files to the SD card as required. Note that firmware 2.0.2 requires the necessary Javascript files to be copied onto SD card.December 20, 2013 at 1:17 am #25773
rwpParticipantaloha 192.168.2.11/sn0 brings up a string of zeros 00000000000000000.should I redo the sd card? thankyou richard
December 20, 2013 at 5:52 am #25774
RayKeymasterYes, please redo the sd card. There are a few quick things to note: 1) the SD card should be 2GB or less (the code we use for SD card has not been tested with 4GB card or above); 2) all files, such as home.js, modprog.js etc. (from the copy_to_sd folder) should be copied to the top-level directory of the SD card, in other words, the SD card should *not* have a folder called ‘copy_to_sd’.
December 21, 2013 at 7:27 pm #25775
rwpParticipantaloha I opened the copy to sd folder and copied the files into the command promt window opened in the copy to sd folder and it’s working now.Thanks looking forward to different station runtimes within a program and a run once program option. rwp.
December 22, 2013 at 4:46 am #25776
RayKeymasterOK, glad to hear that it finally worked. Thanks for posting the update.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Unified Firmware › OpenSprinkler (not OSPi!) Firmware 2.0.2 Released