Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #71522

    zenonmb
    Participant

    Colleagues,

    I am facing network error and not sure why. I have esp8266 system,fw 2.1.9(9), Hw 3.0 . As soon as I get in to the GUI, I see the network error at bottom, and also a notification “weather options have corrupted” . Interesting to note is that i can turn on a station(let’s say for 1 min) and it works, but GUI never gets updated, so i can not turn it off . I see always network error.
    In system diagnostics , I see “poor” as WIFI signal strength, but on the display(OLE) I see “4 bars” and my wifi is just a wall apart . So display is correct, but system diagnostic not….
    Also, turning on serial monitor , i do not see any error on weather.
    Any idea what might be wrong here?
    cheers,

    martin

    #71556

    Roger
    Participant

    I, too, had this problem and found that the only solution was to reboot OpenSprinkler. I also run HomeSeer, and developed an event to recognize when OS was offline to warn me.

    I tried any number of approaches, including an access point that was just 10 feet away. I finally gave up and switched to OpenSprinkler Pi. The Pi has a much more robust TCP/IP stack. Haven’t had the problem since, and the access point is now 20′ and two walls away. (My original OS installation had a wired ethernet connection to a TP-Link powerline connection. That worked just fine, although I really dislike using powerline for communications.)

    Incidentally, I’m impressed by the reliability of the wifi connection on the OSBee. I have two of those, both out-of-doors, one of them using solar power and the other powered by the 24VAC sprinkler power (bucked down). Even in the worst of winter here, -20 degrees F in the early morning, both of these continue to communicate.

    Rog

    #71557

    Roger
    Participant
    #74100

    zsolesz79
    Participant

    I’ve just compiled a fresh instance 2.1.9(9) and uploaded to a wemos d1 and having the same problem, getting Network Error and a notification about corrupted weather data. Running a 2.1.9(3) version on an ESP32 over a year without any issues, that one can gather the weather data correctly. Any idea how to solve this problem? (otherwise if I turn of the location everything works fine.)

    Attachments:
    #74104

    Ray
    Keymaster

    The corrupted json doesn’t seem to have to do with the firmware. You may want to perform a factory reset and try again, or use the HTTP API to directly reset that particular corrupted string.

    #74105

    zsolesz79
    Participant

    It was a fresh upload to a brand new Wemos D1 module. I’ve already tried the factory reset but didn’t help. Can you give me a hint how to use the http api to reset the corrupted string?

    #74106

    zsolesz79
    Participant

    And almost forgot: a HUGE THANK for your great work I really love this project!

    #74107

    Ray
    Keymaster

    This is definitely not a known issue for firmware 2.1.9(9). I am not sure whether it has to do with your Wemos. Probably the easiest way to set the parameter is to go to:
    http://raysfiles.com/os/TestOSAPI.html
    type in your OpenSprinkler’s IP, port number, password, choose the ‘Change Option (co)’ API, then
    Option name: wto
    Option value: {}
    this will set an empty string for wto. Hopefully it works.

    #74118

    bluedev
    Participant

    I have this same issue with two of my four controllers. They were both on 2.1.9(9) originally, I updated both of them to 2.1.9(10) in an attempt to fix it but to no avail. I have to power cycle them constantly to get them back online. My other two controllers with no issues are also on 2.1.9(9). All four are hardwired with with supplied ethernet module.

    #74119

    Ray
    Keymaster

    Honestly I really don’t know what’s causing it. We’ve tried everything we can, including changing the Ethernet library and released 2.1.9(10) which you’ve tried. We have never been able to reproduce the issue internally, so without observing the issue happening we can’t debug it. Also, what zsolesz79 was asking is a separate issue — it has to do with a corrupted flash memory string, this has nothing to do with losing Ethernet connection.

    #74120

    zsolesz79
    Participant

    Following your guide, I’ve managed to reproduce the problem:
    1. When I flash the modul, everything is fine, getting no error, weather service working correctly. I’ve read the values with your tool, you can see the results in the first picture.
    2. The problem comes up when I change the location to anything else. After that the response is invalid as you can see it on the second picture. You can also see the same corrupted strings shown at the notification.

    #74123

    zsolesz79
    Participant

    update: I couldn’t clear the “wto” string with value: {} as you advised, it still shows corrupted characters: “wto”:{���y”:””}

    I’ve tried this:
    Option name: wto
    Option value: “key”:””
    With this I’m getting “wto”:{“key”:””} and the error disappears, weather service working again until I change the location again on the GUI.

    #74124

    Ray
    Keymaster

    zsolesz79: are you using wired Ethernet or WiFi?

    #74125

    zsolesz79
    Participant

    I’m using wifi only

    #74126

    Ray
    Keymaster

    Well if you are using WiFi, I really have no idea. Perhaps try a different nodemcu? You said you compiled the firmware yourself. Did you try the stock firmware that we compiled?

    #74127

    zsolesz79
    Participant

    Do you have a download link for a compiled stock version? Unfortunatelly I don’t have another nodemcu to test with, I’ll get one next week.

    #74128

    Ray
    Keymaster
    #74129

    zsolesz79
    Participant

    I’ve tried with rev9, it looks good. So I assume my problem had to with the compilation but I don’t know why. I’ve download the sources from github, put them into the platformio project directory and hit Build. Got no errors at all so I don’t know where to look for the problem 🙁
    (I’ve tried to compile it Arduino IDE too without any problems but still getting the error… )

    #74130

    zsolesz79
    Participant

    I figured out what was the problem: I had a newer ESP8266 platform installed in platformio than required. With [email protected] I’ve finally managed to compile a working version and everything looks good. (I’ve also tried all the newer espressif8266 versions up to the latest 4.0.1 but got the same error…)

    Thanks for your assistance!

    #74132

    Ray
    Keymaster

    I am glad to hear you’ve figured it out, although I am still puzzled why newer ESP8266 platform would result in such difference. Do you know the esp8266 core version that these newer platforms use? The current OpenSprinkler firmware is compiled with ESP8266 core 2.7.4 (as shown in the Makefile and build instructions). I’ve compiled it with the latest core version 3.0.2 as well but have not fully tested it. I am not sure what core versions platformio uses.

    #74133

    zsolesz79
    Participant

    The [email protected]. platform is using the 2.7.4 core version too. According to their github site after that they changed to core 3.0.0 but also made it clear that it has limitations:

    Breaking changes
    The latest Arduino Core v3.0.0 is a major release that brings several breaking changes including removed and significantly changed APIs. Many popular libraries are not synchronized with these changes which may lead to non-obvious compilation and linker errors. Please thoroughly examine the summary of the changes in the release notes before updating the platform.

    https://github.com/platformio/platform-espressif8266/releases/

    If you have a compiled version with 3.0.2 to download I can test this issue with it.

    #74134

    Ray
    Keymaster

    I am surprised you were able to get the firmware compiled with core 3.0.0. It has been a while but I remember when I tried to compile the firmware with 3.0.2 I had to make a number of significant changes to even get it to compile. The main advantage of core 3.0.x is that it unifies the handling of WiFi with wired Ethernet (using lwip2). Since both use the same WiFi API functions, OTA update works with wired Ethernet as well (currently with firmware 2.1.9 OTA updates only works with WiFi as wired Ethernet uses a separate library). I will probably check in the changes I made to a separate branch on github. I made the changes as an initial step to prepare for firmware 2.2.0, but it’s quite far from being completed.

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