OpenGarage Forums OpenGarage Firmware Time in Log file invalid when using Static IP

This topic contains 8 replies, has 7 voices, and was last updated by  AndyC 3 days, 2 hours ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1429

    andrewsci
    Participant

    It seems that when I set the OG with a static ip address, the time in the log becomes invalid. I think I first noticed this in 1.0.9 and it’s still there in 1.1.0

    It works fine using DHCP.

    Just an FYI.

    Thanks, a

    #1431

    Ray
    Keymaster

    OK, I will check. I don’t think it should have anything to do with static ip vs. DHCP — the only reason for time being invalid would be NTP time sync fails.

    By the way, even with DHCP, you can still set a fixed IP, by going to your router’s configuration page, and set a DHCP reservation for the device (basically binding a fixed IP to its MAC address). This is effectively static IP, but managed using the router.

    #1434

    andrewsci
    Participant

    Thanks, Ray. That is, in fact, how I created the new static ip. I only noticed it because in trying to reset the device, the default is DHCP and suddenly the time was right in the log. I then set a static ip address and the time stamps were all wrong. Initially I did not use DHCP because I use a different sub-net to isolate all my IOT devices, JIFC. I’d like to go back to that policy, so please let me know if you find the problem. Again, thanks.

    #1522

    apop
    Participant

    I noticed the same thing after setting a static IP. Not a big deal for me since I’m using Home Assistant and that’s my source of truth for logging, but I still decided to manage my IP reservation through the router to remedy this.

    #1568

    binnyuk
    Participant

    I found the same issue.

    On top of this, it also seems if the date/time is wrong, blynk doesn’t see the board online. As soon as you use DHCP and date/time is correct, blynk says the board is online.

    #1640

    insight3fl
    Participant

    I am having the same problem. I am running old firmware, but since I added static IP the date and time is wrong… it says January 1 1970!

    #1697

    kentaylor
    Participant

    Could this be a DNS issue? – DHCP will supply the DNS, but there is nowhere on the static IP page to insert one

    I worked around this by doing a DHCP static mapping and it came good

    • This reply was modified 1 week ago by  kentaylor.
    #1709

    Ray
    Keymaster

    Yes, this is most likely a DNS issue — the current firmware 1.1.0 does not accommodate custom DNS. I’m already working on firmware 1.1.1 which will allow custom DNS and should fix this issue. In the meantime, as suggested earlier in the thread, you can use your router’s DHCP reservation feature to bind a fixed IP address to the controller — there is no need to set static IP on OpenGarage, instead, leave it in DHCP but use your router to set a fixed IP to it.

    #1716

    AndyC
    Participant

    I noticed the same thing and modified the firmware to allow specifying the DNS value for a static configuration.
    I’ve attached an updated firmware which is working well for me if anyone wants to try. Ray, I’ve attached the source if interested.

    • This reply was modified 3 days, 2 hours ago by  AndyC.
    • This reply was modified 3 days, 2 hours ago by  AndyC.
    Attachments:
    You must be logged in to view attached files.
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

OpenGarage Forums OpenGarage Firmware Time in Log file invalid when using Static IP