Can't provision devices


#1

I have two ESP32 devices (a NodeMCU ESP-32s and a Heltec ESP WiFi with OLED).
Both are running the same firmware described on the Atmosphere “Getting Started with ESP32” page.

When I try to provision the devices from my phone (Samsung Galaxy A5 (2017), running Android 8.0.0) I can only see one of them, the NodeMCU. (Log from the device is at the bottom of this message).

When I try to provision this device I see the repeating “ATMO ESP32 BLE: event = 0x17 gatts_if = 0x3” pattern you can see at the bottom of the log.

The log from the Heltec device is pretty much the same, with the exception of the device name and the lack of repeating pattern - not surprising as I can’t see the device to start to provision it.
Interestingly I needed to use different baud rates to capture the logs from both devices (115200 for NodeMCU and 74880 for the Heltec device). As these are running exactly the same firmware I would have expected them to use the same baud rate, but apparently now.

I’ve verified the Bluetooth hardware is working on both devices using example code from the Arduino libraries - both are available and can be connected to with my phone.

Any help would be appreciated - I’m just evaluating the platform and have no experience with the Atmosphere platform so I couldn’t begin to debug it.

Many thanks

John

=== START ===== NodeMCU device log

ets Jun 8 2016 00:22:57
09:20:29.113 ->
09:20:29.113 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
09:20:29.113 -> configsip: 0, SPIWP:0xee
09:20:29.113 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
09:20:29.113 -> mode:DIO, clock div:2
09:20:29.113 -> load:0x3fff0018,len:4
09:20:29.113 -> load:0x3fff001c,len:5756
09:20:29.113 -> load:0x40078000,len:7684
09:20:29.146 -> load:0x40080000,len:7392
09:20:29.146 -> entry 0x4008039c
09:20:29.146 -> e[0;32mI (28) boot: ESP-IDF v3.1-beta1-8-g5ebb70e 2nd stage bootloadere[0m
09:20:29.146 -> e[0;32mI (28) boot: compile time 09:18:17e[0m
09:20:29.146 -> e[0;32mI (28) boot: Enabling RNG early entropy source…e[0m
09:20:29.146 -> e[0;32mI (34) boot: SPI Speed : 40MHze[0m
09:20:29.146 -> e[0;32mI (38) boot: SPI Mode : DIOe[0m
09:20:29.146 -> e[0;32mI (42) boot: SPI Flash Size : 4MBe[0m
09:20:29.181 -> e[0;32mI (46) boot: Partition Table:e[0m
09:20:29.181 -> e[0;32mI (50) boot: ## Label Usage Type ST Offset Lengthe[0m
09:20:29.181 -> e[0;32mI (57) boot: 0 nvs WiFi data 01 02 00009000 00040000e[0m
09:20:29.181 -> e[0;32mI (65) boot: 1 otadata OTA data 01 00 00049000 00002000e[0m
09:20:29.181 -> e[0;32mI (72) boot: 2 ota_0 OTA app 00 10 00050000 00177000e[0m
09:20:29.181 -> e[0;32mI (80) boot: 3 atmosphere Unknown data 01 40 001c7000 001c2000e[0m
09:20:29.215 -> e[0;32mI (87) boot: End of partition tablee[0m
09:20:29.215 -> e[0;31mE (91) boot: ota data partition invalid and no factory, will try all partitionse[0m
09:20:29.215 -> e[0;32mI (99) esp_image: segment 0: paddr=0x00050020 vaddr=0x3f400020 size=0x36ccc (224460) mape[0m
e[0;32mI (187) esp_image: segment 1: paddr=0x00086cf4 vaddr=0x3ffc0000 size=0x03f4c ( 16204) loade[0m
09:20:29.319 -> e[0;32mI (194) esp_image: segment 2: paddr=0x0008ac48 vaddr=0x3ffc3f4c size=0x00000 ( 0) loade[0m
09:20:29.319 -> e[0;32mI (194) esp_image: segment 3: paddr=0x0008ac50 vaddr=0x40080000 size=0x00400 ( 1024) loade[0m
09:20:29.319 -> e[0;32mI (203) esp_image: segment 4: paddr=0x0008b058 vaddr=0x40080400 size=0x04fb8 ( 20408) loade[0m
09:20:29.319 -> e[0;32mI (220) esp_image: segment 5: paddr=0x00090018 vaddr=0x400d0018 size=0xdf72c (915244) mape[0m
e[0;32mI (541) esp_image: segment 6: paddr=0x0016f74c vaddr=0x400853b8 size=0x12430 ( 74800) loade[0m
e[0;32mI (572) esp_image: segment 7: paddr=0x00181b84 vaddr=0x400c0000 size=0x00000 ( 0) loade[0m
09:20:29.693 -> e[0;32mI (572) esp_image: segment 8: paddr=0x00181b8c vaddr=0x50000000 size=0x00000 ( 0) loade[0m
09:20:29.693 -> e[0;32mI (593) boot: Loaded app from partition at offset 0x50000e[0m
09:20:29.693 -> e[0;32mI (593) boot: Disabling RNG early entropy source…e[0m
09:20:29.727 -> e[0;32mI (593) cpu_start: Pro cpu up.e[0m
09:20:29.727 -> e[0;32mI (597) cpu_start: Starting app cpu, entry point is 0x40081150e[0m
09:20:29.727 -> e[0;32mI (0) cpu_start: App cpu up.e[0m
09:20:29.727 -> e[0;32mI (607) heap_init: Initializing. RAM available for dynamic allocation:e[0m
09:20:29.727 -> e[0;32mI (614) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAMe[0m
09:20:29.727 -> e[0;32mI (620) heap_init: At 3FFD3930 len 0000C6D0 (49 KiB): DRAMe[0m
09:20:29.727 -> e[0;32mI (626) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAMe[0m
09:20:29.762 -> e[0;32mI (633) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAMe[0m
09:20:29.762 -> e[0;32mI (639) heap_init: At 400977E8 len 00008818 (34 KiB): IRAMe[0m
09:20:29.762 -> e[0;32mI (645) cpu_start: Pro cpu start user codee[0m
09:20:29.762 -> e[0;32mI (328) cpu_start: Starting scheduler on PRO CPU.e[0m
09:20:29.762 -> e[0;32mI (0) cpu_start: Starting scheduler on APP CPU.e[0m
09:20:29.796 -> e[0;32mI (349) ATMO DBG: Stored Build UUID: 8fb231cf-594f-4ce8-8de7-65bb1d55d624

09:20:29.796 -> Current Build UUID: 8fb231cf-594f-4ce8-8de7-65bb1d55d624

09:20:29.796 -> e[0m
09:20:29.796 -> e[0;32mI (349) ATMO DBG: Error opening file ota_complete

09:20:29.796 -> e[0m
e[0;32mI (409) ATMO DBG: Uuid Match 1 Boot After OTA: 0

09:20:29.830 -> e[0m
09:20:29.830 -> e[0;32mI (409) ATMO DBG: Not Wiping Flash

09:20:29.864 -> e[0m
e[0;32mI (789) ATMO ESP32 BLE: ATMO_ESP32_BLE_PeripheralInit: ATMO_ESP32_BLE_PeripheralInit 728
09:20:30.241 -> e[0m
09:20:30.241 -> e[0;32mI (799) BTDM_INIT: BT controller compile version [c8f540d]
09:20:30.241 -> e[0m
09:20:30.241 -> e[0;32mI (799) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSEe[0m
e[0;32mI (1099) phy: phy_version: 3910, c0c45a3, May 21 2018, 18:07:06, 0, 0e[0m
e[0;32mI (1179) ATMO ESP32 BLE: event = 0x0 gatts_if = 0x3
09:20:30.616 -> e[0m
09:20:30.616 -> e[0;32mI (1179) ATMO ESP32 BLE: ESP_GATTS_REG_EVT: _ATMO_ESP32_BLE_gatts_event_handler 468
09:20:30.616 -> e[0m
09:20:30.616 -> I (1179) wifi: wifi driver task: 3ffdfd50, prio:23, stack:4096, core=0
09:20:30.650 -> I (1189) wifi: wifi firmware version: 4fd6a2c
09:20:30.650 -> I (1189) wifi: config NVS flash: enabled
09:20:30.650 -> I (1199) wifi: config nano formating: disabled
09:20:30.650 -> e[0;32mI (1199) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSEe[0m
09:20:30.650 -> e[0;32mI (1209) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSEe[0m
I (1229) wifi: Init dynamic tx buffer num: 32
09:20:30.684 -> I (1229) wifi: Init data frame dynamic rx buffer num: 32
09:20:30.684 -> I (1229) wifi: Init management frame dynamic rx buffer num: 32
09:20:30.684 -> I (1239) wifi: Init static rx buffer size: 1600
09:20:30.684 -> I (1239) wifi: Init static rx buffer num: 10
09:20:30.684 -> I (1249) wifi: Init dynamic rx buffer num: 32
09:20:30.684 -> e[0;32mI (1249) ATMO DBG: Error opening file wifiCredentials

09:20:30.718 -> e[0m
e[0;32mI (1309) ATMO ESP32 BLE: ATMO_ESP32_BLE_PeripheralInit: ATMO_ESP32_BLE_PeripheralInit 728
09:20:30.752 -> e[0m
09:20:30.752 -> e[0;32mI (1309) ATMO ESP32 BLE: esp_ble_gatts_create_service: config->gatts_if = 0x3
09:20:30.752 -> e[0m
09:20:30.752 -> e[0;32mI (1309) ATMO ESP32 BLE: event = 0x7 gatts_if = 0x3
09:20:30.752 -> e[0m
09:20:30.752 -> e[0;32mI (1319) ATMO ESP32 BLE: ESP_GATTS_CREATE_EVT: _ATMO_ESP32_BLE_gatts_event_handler 539
09:20:30.787 -> e[0m
09:20:30.787 -> e[0;32mI (1329) ATMO ESP32 BLE: CREATE_SERVICE_EVT, status 0, service_handle 0x28
09:20:30.787 -> e[0m
09:20:30.787 -> e[0;32mI (1329) ATMO ESP32 BLE: event = 0xC gatts_if = 0x3
09:20:30.787 -> e[0m
09:20:30.787 -> e[0;32mI (1339) ATMO ESP32 BLE: ESP_GATTS_START_EVT: _ATMO_ESP32_BLE_gatts_event_handler 570
09:20:30.787 -> e[0m
09:20:30.787 -> e[0;32mI (1349) ATMO ESP32 BLE: esp_ble_gatts_create_service: serviceEntry->handle = 0x28
09:20:30.787 -> e[0m
09:20:30.787 -> e[0;32mI (1359) ATMO ESP32 BLE: esp_ble_gatts_add_char: serviceHandle = 0x28
09:20:30.821 -> e[0m
09:20:30.821 -> e[0;31mE (1359) BT_BTC: btc_gatts_arg_deep_copy 8 no mem
09:20:30.821 -> e[0m
09:20:30.821 -> e[0;32mI (1369) ATMO ESP32 BLE: event = 0x9 gatts_if = 0x3
09:20:30.821 -> e[0m
09:20:30.821 -> e[0;32mI (1369) ATMO ESP32 BLE: ESP_GATTS_ADD_CHAR_EVT: _ATMO_ESP32_BLE_gatts_event_handler 554
09:20:30.821 -> e[0m
09:20:30.821 -> e[0;32mI (1379) ATMO ESP32 BLE: ATMO_ESP32_BLE_GATTSAddCharacteristic: config->numberOfCharacteristicEntries = 0 (1070)
09:20:30.855 -> e[0m
09:20:30.855 -> e[0;32mI (1389) ATMO ESP32 BLE: ATMO_ESP32_BLE_GATTSAddCharacteristic: config->numberOfCharacteristicEntries = 1 (1076)
09:20:30.855 -> e[0m
09:20:30.855 -> e[0;32mI (1409) ATMO ESP32 BLE: ATMO_ESP32_BLE_GATTSAddCharacteristic: characteristicEntry->handle = 0x2A
09:20:30.855 -> e[0m
09:20:30.855 -> e[0;32mI (1419) ATMO ESP32 BLE: GAP_EVT, event 17
09:20:30.855 -> e[0m
09:20:30.855 -> e[0;32mI (1419) ATMO DBG: Setting device name: P6467

09:20:30.855 -> e[0m
09:20:30.889 -> e[0;32mI (1429) ATMO ESP32 BLE: GAP_EVT, event 4
09:20:30.889 -> e[0m
09:20:30.889 -> e[0;32mI (1429) ATMO DBG: Setting service uuid

09:20:30.889 -> e[0m
09:20:30.889 -> e[0;32mI (1439) ATMO ESP32 BLE: GAP_EVT, event 4
09:20:30.889 -> e[0m
09:20:30.889 -> e[0;32mI (1439) ATMO DBG: Starting advertising

09:20:30.889 -> e[0m
09:20:30.889 -> e[0;32mI (1449) ATMO DBG: Updating adv data

09:20:30.889 -> e[0m
09:20:30.889 -> e[0;32mI (1449) ATMO ESP32 BLE: GAP_EVT, event 4
09:20:30.889 -> e[0m
e[0;32mI (1549) ATMO DBG: esp_ble_gap_start_advertisinge[0m
09:20:30.991 -> e[0;32mI (1549) ATMO ESP32 BLE: GAP_EVT, event 6
09:20:30.991 -> e[0m
09:20:30.991 -> e[0;32mI (1549) ATMO DBG: Registered: 0

09:20:30.991 -> e[0m
09:20:30.991 -> e[0;32mI (1549) ATMO ESP32 BLE: esp_ble_gatts_create_service: config->gatts_if = 0x3
09:20:30.991 -> e[0m
09:20:30.991 -> e[0;32mI (1559) ATMO ESP32 BLE: event = 0x7 gatts_if = 0x3
09:20:31.026 -> e[0m
09:20:31.026 -> e[0;32mI (1559) ATMO ESP32 BLE: ESP_GATTS_CREATE_EVT: _ATMO_ESP32_BLE_gatts_event_handler 539
09:20:31.026 -> e[0m
09:20:31.026 -> e[0;32mI (1569) ATMO ESP32 BLE: CREATE_SERVICE_EVT, status 0, service_handle 0x38
09:20:31.026 -> e[0m
09:20:31.026 -> e[0;32mI (1579) ATMO ESP32 BLE: event = 0xC gatts_if = 0x3
09:20:31.026 -> e[0m
09:20:31.026 -> e[0;32mI (1579) ATMO ESP32 BLE: ESP_GATTS_START_EVT: _ATMO_ESP32_BLE_gatts_event_handler 570
09:20:31.026 -> e[0m
09:20:31.026 -> e[0;32mI (1589) ATMO ESP32 BLE: esp_ble_gatts_create_service: serviceEntry->handle = 0x38
09:20:31.060 -> e[0m
09:20:31.060 -> e[0;32mI (1599) ATMO ESP32 BLE: esp_ble_gatts_add_char: serviceHandle = 0x38
09:20:31.060 -> e[0m
09:20:31.060 -> e[0;31mE (1609) BT_BTC: btc_gatts_arg_deep_copy 8 no mem
09:20:31.060 -> e[0m
09:20:31.060 -> e[0;32mI (1609) ATMO ESP32 BLE: event = 0x9 gatts_if = 0x3
09:20:31.060 -> e[0m
09:20:31.060 -> e[0;32mI (1619) ATMO ESP32 BLE: ESP_GATTS_ADD_CHAR_EVT: _ATMO_ESP32_BLE_gatts_event_handler 554
09:20:31.060 -> e[0m
09:20:31.060 -> e[0;32mI (1629) ATMO ESP32 BLE: ATMO_ESP32_BLE_GATTSAddCharacteristic: config->numberOfCharacteristicEntries = 1 (1070)
09:20:31.095 -> e[0m
09:20:31.095 -> e[0;32mI (1639) ATMO ESP32 BLE: ATMO_ESP32_BLE_GATTSAddCharacteristic: config->numberOfCharacteristicEntries = 2 (1076)
09:20:31.095 -> e[0m
09:20:31.095 -> e[0;32mI (1649) ATMO ESP32 BLE: ATMO_ESP32_BLE_GATTSAddCharacteristic: characteristicEntry->handle = 0x3A
09:20:31.095 -> e[0m
e[0;32mI (41939) ATMO ESP32 BLE: event = 0xE gatts_if = 0x3
09:21:11.366 -> e[0m
09:21:11.401 -> e[0;32mI (41939) ATMO ESP32 BLE: ESP_GATTS_CONNECT_EVT: _ATMO_ESP32_BLE_gatts_event_handler 578
09:21:11.401 -> e[0m
09:21:11.401 -> e[0;32mI (41949) ATMO ESP32 BLE: GAP_EVT, event 17
09:21:11.401 -> e[0m
e[0;32mI (42969) ATMO ESP32 BLE: event = 0x4 gatts_if = 0x3
09:21:12.423 -> e[0m
09:21:12.423 -> e[0;32mI (42969) ATMO ESP32 BLE: ESP_GATTS_MTU_EVT: _ATMO_ESP32_BLE_gatts_event_handler 527
09:21:12.423 -> e[0m
e[0;32mI (51549) ATMO ESP32 BLE: event = 0x17 gatts_if = 0x3
09:21:20.984 -> e[0m
e[0;32mI (61549) ATMO ESP32 BLE: event = 0x17 gatts_if = 0x3
09:21:30.997 -> e[0m
e[0;32mI (71549) ATMO ESP32 BLE: event = 0x17 gatts_if = 0x3
09:21:40.998 -> e[0m
e[0;32mI (81549) ATMO ESP32 BLE: event = 0x17 gatts_if = 0x3
09:21:50.978 -> e[0m
e[0;32mI (91549) ATMO ESP32 BLE: event = 0x17 gatts_if = 0x3
09:22:00.994 -> e[0m
e[0;32mI (101549) ATMO ESP32 BLE: event = 0x17 gatts_if = 0x3
09:22:11.001 -> e[0m

=== END ===== NodeMCU device log


#3

Hi John,

For this bug report, can you please include the brand/model of your phone and what version of the OS it’s running.

Thanks!


#4

Hi Robert

I’m using a Samsung Galaxy A5, running Android 8.0.0.
(I’ve updated the OP with these details as well).

Thanks
John


#5

Hi John,

Where did you get these two modules? We do not have them on our line card, thus they haven’t been tested. Can you share the part markings on the base board?

Regards,


#6

Hi Robert

Photos attached.

My boss gave them to me, but I think he ordered them from Amazon - I was going to order some myself, and these look exactly the same.

Regards
John


#7

Thanks for the pictures John, I was able to now find both those units on amazon, will be testing them early next week…

Regards,


#8

Thanks for the update Robert.

Regards
John


#9

Hi John,

So both these devices arrived last night, and i just tested them both. So far only the NodeMCU ESP-32s works, I’ve only got Google Nexus and Pixel based phones with Qualcomm based radios. If you consider it’s just a ESP32-WROOM-32D module on a pcb board, it’s very similar to the ESP32-DEVKITC-32D-F however, the other device is not working it looks like a clone of ESP32-PICO-KIT-F which works, but i wonder what they changed.

Regards,


#10

Hi Robert

Quick work there :slight_smile: I’d assumed they would have been the same - wrongly it would seem.

Are they any debug features in the android app I could use to get any debug for you?

Regards,
John