Skip to content

Conversation

pixelspark
Copy link

Hi Robert, veel dank voor je werk aan deze firmware!

After experiencing spurious reboots on my OTGW unit I finally decided to dig into the issue. Upgrading the PIC firmware to the latest version made it a lot more stable (as far as I understand there were issues before with the voltage dropping). Still the unit appeared to reboot itself almost exactly every five minutes. From the telnet logs it was clear that it happened at the same time, i.e. each time right after the current PIC firmware version was printed. As it turns out, your firmware attempts to check whether there are new PIC firmware versions every five minutes. That makes the unit hang in my setup, because it is connected to a separate WiFi network that has no outside internet access. This PR adds a setting to disable that automatic update mechanism.

(For others stumbling upon this: note that you also need to disable NTP or set up an internal NTP server at a fixed IP to prevent outside DNS requests).

When connected to networks without internet access or properly working DNS, the periodic check can cause the device to hang and the watchdog to kick in.
@DaveDavenport
Copy link
Collaborator

Mine also is on a separate vlan with no internet access, but have not noticed these issues. Do you have an internal DNS server or not, or do dns calls time out and that causing the reset? (it would be nice if we could fix the cause, not the symptom).

@pixelspark
Copy link
Author

Mine also is on a separate vlan with no internet access, but have not noticed these issues. Do you have an internal DNS server or not, or do dns calls time out and that causing the reset? (it would be nice if we could fix the cause, not the symptom).

In this case DHCP handed out a DNS IP address in a private range (10.10.x.x) which is not routed (and is not a DNS server). So that may have upset it.

I agree fixing the cause is better, though I also think it should be possible to disable any sort of update checking (especially for the PIC firmware - there is an option to do it manually from the PIC firmware page and the device isn't going to apply the update automatically anyway - seems a bit pointless if it requires manual intervention anyway).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants