OpenSprinkler Forums OpenSprinkler Unified Firmware Can not create new program.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #60089

    chufi
    Participant

    I click add, put in a name, timing, stations, etc. I get ‘please check input’ and nothing happens. 🙁

    App Version: 1.8.5<br>Firmware: 2.1.7<br>Hardware Version: 2.2 – AC

    #60213

    chufi
    Participant

    Any thoughts? Pretty tough to not be able to make a new program…:(

    I have also tried copying an existing program, changing the name and saving and the same problem occurs.

    #60227

    Samer
    Keymaster

    I suspect the controller is refusing the new program for one reason or another. How many programs do you currently have? Could you try using the browser and inspecting the network request to the controller and possibly provide the headers and reply? If you need assistance getting that information I would be glad to help.

    Thank you!

    #60322

    dun4cheap
    Participant

    Can you try to clear the logs, then try to create a new program? I had a similar problem once and clearing the logs solved it.

    #60334

    chufi
    Participant

    Tried clearing the logs but no luck. :/

    #60335

    chufi
    Participant

    Request:

    GET /cp?pw=****b&pid=-1&v=[49,1,2,[0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,360,0]]&name=Test&_=1557851471692 HTTP/1.1
    Host: 192.168.1.68
    Connection: keep-alive
    Accept: text/plain, */*; q=0.01
    DNT: 1
    X-Requested-With: XMLHttpRequest
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36
    Referer: http://192.168.1.68/
    Accept-Encoding: gzip, deflate
    Accept-Language: en-US,en;q=0.9
    Cookie: gsScrollPos-924=0; gsScrollPos-901=0; gsScrollPos-904=0; gsScrollPos-205=0

    Response:
    {"result":17}

    Looks like I currently have 8 programs.

    #60429

    Ray
    Keymaster

    Result 17 (0x11) means it’s a data-out-of-bound error:
    https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/server.cpp#L100
    Really the only thing I can think of would be if you have reached the maximum number of programs. You said you have 8 programs, which should be within the maximum (17 for firmware 2.1.7). Can you export your configurations to a file and attach it here (you may want to mask out sensitive information), or you can send it as attachment to a support ticket.

    #60449

    chufi
    Participant
    {  
       "settings":{  
          "devt":1558010333,
          "nbrd":3,
          "en":0,
          "rd":0,
          "rs":0,
          "rdst":0,
          "loc":"37.98731,-122.58917",
          "wtkey":"****",
          "sunrise":360,
          "sunset":1215,
          "eip":1237140128,
          "lwc":1558008836,
          "lswc":1558008836,
          "lrun":[  
             12,
             99,
             272,
             1557907474
          ],
          "sbits":[  
             0,
             0,
             0,
             0
          ],
          "ps":[  
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ],
             [  
                0,
                0,
                0
             ]
          ],
          "wto":{  
             "h":70,
             "t":100,
             "r":100,
             "bh":40,
             "bt":60,
             "br":0
          }
       },
       "programs":{  
          "nprogs":8,
          "nboards":3,
          "mnp":8,
          "mnst":4,
          "pnsize":16,
          "pd":[  
             [  
                3,
                123,
                0,
                [  
                   240,
                   3,
                   13,
                   0
                ],
                [  
                   0,
                   0,
                   180,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   180,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0
                ],
                "Small Pots"
             ],
             [  
                3,
                127,
                0,
                [  
                   240,
                   0,
                   4,
                   0
                ],
                [  
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   180,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0
                ],
                "GreenHouse"
             ],
             [  
                51,
                2,
                3,
                [  
                   180,
                   2,
                   80,
                   0
                ],
                [  
                   600,
                   0,
                   0,
                   600,
                   600,
                   0,
                   600,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0
                ],
                "Veggies"
             ],
             [  
                3,
                4,
                0,
                [  
                   180,
                   3,
                   44,
                   0
                ],
                [  
                   0,
                   300,
                   0,
                   0,
                   0,
                   0,
                   0,
                   300,
                   0,
                   420,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0
                ],
                "Landscape"
             ],
             [  
                51,
                3,
                10,
                [  
                   120,
                   3,
                   45,
                   0
                ],
                [  
                   0,
                   0,
                   0,
                   0,
                   0,
                   1200,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0
                ],
                "Trees"
             ],
             [  
                2,
                64,
                0,
                [  
                   0,
                   3,
                   29,
                   0
                ],
                [  
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   300,
                   0,
                   300,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0
                ],
                "Extra Landscape"
             ],
             [  
                3,
                127,
                0,
                [  
                   0,
                   1,
                   720,
                   0
                ],
                [  
                   0,
                   0,
                   0,
                   120,
                   120,
                   0,
                   180,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0
                ],
                "Starts"
             ],
             [  
                67,
                43,
                0,
                [  
                   480,
                   780,
                   -1,
                   -1
                ],
                [  
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   900,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0
                ],
                "Lawn"
             ]
          ]
       },
       "options":{  
          "fwv":217,
          "tz":20,
          "ntp":1,
          "dhcp":1,
          "ip1":192,
          "ip2":168,
          "ip3":1,
          "ip4":68,
          "gw1":192,
          "gw2":168,
          "gw3":1,
          "gw4":1,
          "hp0":80,
          "hp1":0,
          "hwv":22,
          "ext":2,
          "sdt":0,
          "mas":0,
          "mton":0,
          "mtof":0,
          "urs":0,
          "rso":0,
          "wl":0,
          "den":0,
          "ipas":0,
          "con":150,
          "lit":100,
          "dim":50,
          "uwt":1,
          "ntp1":50,
          "ntp2":97,
          "ntp3":210,
          "ntp4":169,
          "lg":1,
          "mas2":0,
          "mton2":0,
          "mtof2":0,
          "fwm":0,
          "fpr0":100,
          "fpr1":0,
          "re":0,
          "dns1":192,
          "dns2":168,
          "dns3":1,
          "dns4":1,
          "sar":0,
          "ife":0,
          "reset":0,
          "dexp":2,
          "mexp":5,
          "hwt":172
       },
       "status":[  
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
       ],
       "stations":{  
          "masop":[  
             255,
             255,
             255
          ],
          "ignore_rain":[  
             0,
             0,
             0
          ],
          "masop2":[  
             0,
             0,
             0
          ],
          "stn_dis":[  
             0,
             0,
             0
          ],
          "stn_seq":[  
             255,
             255,
             255
          ],
          "stn_spe":[  
             0,
             0,
             0
          ],
          "snames":[  
             "Veg - Main 1",
             "Upper Landscape",
             "Upper Pots",
             "Veg - Lower",
             "Veg - Main 2",
             "Upper trees",
             "Veg - Upper",
             "UpperLandscape2",
             "Low tree",
             "Lower Landscape",
             "Deck Small Pots",
             "Lawn",
             "Greenhouse",
             "S14",
             "S15",
             "S16",
             "S17",
             "S18",
             "S19",
             "S20",
             "S21",
             "S22",
             "Lawn borders",
             "S24"
          ],
          "maxlen":16
       }
    }
    #60450

    chufi
    Participant

    I deleted a program, then was able to add a new one. Seems like I’m limited to 8 programs. 🙁 Maybe my OpenSprinkler is old enough it doesn’t have enough nvram for more? Though that program struct doesn’t look particularly big. If that’s the case I guess I’m stuck.

    #60543

    Ray
    Keymaster

    I see, you have OpenSprinkler 2.2, which is why the maximum number of programs is limited to 8. Because OS 2.2 has only half the amount of EEPROM as 2.3 has, the number of programs is also roughly halved. If you had OS 2.3 the limit would have been 17 (and if you have OS 3.0, the limit would have been 35).

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

OpenSprinkler Forums OpenSprinkler Unified Firmware Can not create new program.