I find with ANT AUTO I see frequent disconnects (in older firmware, 0.7.0 and 0.8.0-rc4). The Photon is using an external antenna in an outdoor location. The disconnects are random (not consistently tied to any particular code running at the time) and last for about 10 seconds. After reading this post with this situation solved by specifying ANT EXTERNAL I tried it.
OK, so that does solve it (1 disconnect/day versus 73). However, I only assemble the external antenna at the end when completing the enclosure and perform testing prior to that. If my firmware specifies ANT EXTERNAL then the Photon will not connect with the internal antenna - voiding testing capability and eliminates ability for OTA flashes. I would prefer to only flash once, not once with a ātestingā version, and again with a production version.
My ideal is something like:
Set startup antenna to AUTO (in case there is no external antenna connected).
Have the Photon determine if an external antenna is present (regardless whether the external or internal has the stronger RSSIā¦within acceptable range), and if so, only then switch permanently and exclusively to the external antenna.
I guess this may be something that can be improved on the Particle firmware side with ANT AUTOās dynamic rapid switching behaviorā¦but until then anyone with suggestions on how to implement this on our side?