Error Device could not be connected. Please try again

User avatar
myglc2
Posts: 14
Joined: Thu Jun 27, 2019 4:38 pm

Error Device could not be connected. Please try again

Postby myglc2 » Tue Jul 20, 2021 7:49 pm

Using an ESP32-WROOM-32E performing these steps:

'idf.py build flash monitor'

successful iPhone add using QRcode

'esptool.py --port $(ESPPORT) erase_region 0x10000 0x6000'

'idf.py build flash monitor' (Note: produced same QR code)

iPhone add fails:

Error
Device could not be connected.
Please try again

TIA - George

PS: Might this be a quota problem?

ESP_Piyush
Posts: 309
Joined: Wed Feb 20, 2019 7:02 am

Re: Error Device could not be connected. Please try again

Postby ESP_Piyush » Thu Jul 22, 2021 4:19 pm

Hi George,

No, this is not a quota problem. Often, we have seen that the iOS caches some BLE data and so, the RainMaker app gets stale data and is unable to discover the device with the new name. A poor way to verify this is to reboot your iPhone :? . Can you try that once and let us know if provisioning works after that?

User avatar
myglc2
Posts: 14
Joined: Thu Jun 27, 2019 4:38 pm

Re: Error Device could not be connected. Please try again

Postby myglc2 » Fri Jul 23, 2021 1:07 am

Hi Piyush,

Thanks. We discovered today it isn't a quota problem when the switch example worked fine on an ESP32-S2. Sorry didn't try this before we cried wolf!

We tried restarting the iPhone but that did not fix the provisioning problem we see with our project app code as previously reported.

The problem seems associated with the ESP32.

E.g., we can provision the rainmaker switch example on the ESP-SAOLA-1_V1.2, both when built within the Rainmaker repo and when built copied outside the repo. But when we set-target to esp32 and attempt to provision the switch example on the ESP32-DevKitC_V4 we get the same error, repeated here for convenience ...

Error
Device could not be connected. Please try again

The associated serial log is attached

TIA - George
Attachments
provision2.txt.gz
(4.92 KiB) Downloaded 405 times

Who is online

Users browsing this forum: No registered users and 12 guests