Author Topic: How to overcome connection problems  (Read 2604 times)

mikekgr

  • Newbie
  • *
  • Posts: 34
How to overcome connection problems
« on: April 03, 2017, 01:46:01 pm »
Dear friends,
I need your help. I have a couple OAKs running but I faced a big problem. When the WiFi Access Point that these OAKs are connected have a power shortage ( for 5-10 minutes ) then the OAKs are starting to behave as Access Point and never come back itself to running the user software ( so I need to connect them as client and give "restart", very bad when I am aboard ). Why? What can I do in order to overcome this problem?

Thanks and Best Regards,
Mike Kranidis

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: How to overcome connection problems
« Reply #1 on: April 03, 2017, 07:35:59 pm »
Because your Oaks don't have an internet connection for whatever the retry period is (a couple of minutes), they reboot into safe mode waiting to be reconfigured.

The solution is to change your board profile. In the Arduino IDE, choose Tools -> Board > Oak by Digistump (Pin 1 Safe Mode, Manual Config Only) and they should be fine. The Default variant, is the one that has the automatic network/internet reboot checks, whereas the Manual Config Only mode doesn't do any of that.

mikekgr

  • Newbie
  • *
  • Posts: 34
Re: How to overcome connection problems
« Reply #2 on: April 03, 2017, 11:52:42 pm »
Thanks @PeterF

I did the shange and the new firmware loading to OAKs already.

Best Regards,
Mike Kranidis

P.S. Do you know what it will happens in case of WiFi home A.P. missing or power off? I mean, what is the behavior of OAKs in this case???

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: How to overcome connection problems
« Reply #3 on: April 04, 2017, 05:17:20 pm »
In the Manual Config mode, the Oaks will just sit there looking dumb until they get their internet fix again... they won't try to into config mode or anything... they'll just wait for it. So instead of being 'intelligent' and going 'there's no access point, so we'd better jump into config mode' you would have to manually put them into config mode by connecting P1 to GND when powering on the Oak.

mikekgr

  • Newbie
  • *
  • Posts: 34
Re: How to overcome connection problems
« Reply #4 on: April 05, 2017, 05:21:01 am »
Perfect! Thanks a lot for the explanation.