Search found 10 matches

by PaulELong
Tue Nov 19, 2019 10:03 pm
Forum: ESP32 IDF
Topic: Help debugging ESP32 WROOM with jlink edu mini
Replies: 1
Views: 241

Re: Help debugging ESP32 WROOM with jlink edu mini

I determined I made a stupid mistake, though debugging with jlink edu mini is not working yet. The first problem is that I had the cable backwards. I picture I found showed it connected incorrectly which I now found is backwards. I see that it connects, but now it's getting timeout errors. I do see ...
by PaulELong
Sun Nov 10, 2019 6:00 pm
Forum: ESP32 IDF
Topic: My multiple BLE client connection example rarely succeeds
Replies: 9
Views: 626

Re: My multiple BLE client connection example rarely succeeds

I'll continue to post progress of my research in case it reveals a clue or helps somebody in the future. I've tracked the disconnect logging back to this stack trace. This is processing a queue, which I think is created for each connection. There is an Event = 5 which is disconnect, 0x4008dcb5: abor...
by PaulELong
Fri Nov 08, 2019 6:25 pm
Forum: ESP32 IDF
Topic: Help debugging ESP32 WROOM with jlink edu mini
Replies: 1
Views: 241

Help debugging ESP32 WROOM with jlink edu mini

I'm trying to setup a debugging, but OpenOCD fails to connect and repeats the warning "Failed to receive data from device: LIBUSB_ERROR_TIMEOUT." Then I see Error: Sending data to device timed out. I'll put the full output below. The steps I remember that I took to get here are: 1. Installed driver ...
by PaulELong
Fri Nov 08, 2019 3:19 pm
Forum: ESP32 IDF
Topic: My multiple BLE client connection example rarely succeeds
Replies: 9
Views: 626

Re: My multiple BLE client connection example rarely succeeds

I still have problems. I can make the gattc_multi_connect.c reproduce my problems more frequently if I comment out the following lines: //esp_log_buffer_hex(GATTC_TAG, scan_result->scan_rst.bda, 6); //ESP_LOGI(GATTC_TAG, "Searched Adv Data Len %d, Scan Response Len %d", scan_result->scan_rst.adv_dat...
by PaulELong
Thu Oct 31, 2019 5:23 pm
Forum: ESP32 IDF
Topic: My multiple BLE client connection example rarely succeeds
Replies: 9
Views: 626

Re: My multiple BLE client connection example rarely succeeds

More info about #2, the messages I see with gattc_multi example are as follows. W (8331) BT_APPL: bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x0008 W (8331) BT_APPL: bta_gattc_conn_cback() - cif=4 connected=0 conn_id=4 reason=0x0008 W (8341) BT_APPL: bta_gattc_conn_cback() - cif=5 c...
by PaulELong
Thu Oct 31, 2019 2:04 pm
Forum: ESP32 IDF
Topic: My multiple BLE client connection example rarely succeeds
Replies: 9
Views: 626

Re: My multiple BLE client connection example rarely succeeds

I've switched to using the gattc_multi_connect.c example per @genedyne's advice. And that example is where the exception occurs. Glad to hear that it's been addressed. If you know of a specific patch, I would appreciate it, but I can also look and try to figure it out. But I also run into my origina...
by PaulELong
Tue Oct 29, 2019 4:03 pm
Forum: ESP32 IDF
Topic: My multiple BLE client connection example rarely succeeds
Replies: 9
Views: 626

Re: My multiple BLE client connection example rarely succeeds

Since the problem above doesn't necessarily block me I'm moving on. I would like to understand if this is a bug in the example somewhere else, but from a prototype point of view, I can continue with my testing. But now I have new problem with the multi-connect example. I see that garbage is printed ...
by PaulELong
Mon Oct 28, 2019 1:45 pm
Forum: ESP32 IDF
Topic: My multiple BLE client connection example rarely succeeds
Replies: 9
Views: 626

Re: My multiple BLE client connection example rarely succeeds

I posted the code, but for some reason it didn't show up on the forum. I've now changed to use the gattc_multi_connect and modified it for two devices. I changed this line "if (conn_device_a && conn_device_b /*&& conn_device_c*/ && !stop_scan_done){" While it works more consistently, I still crashes...
by PaulELong
Fri Oct 25, 2019 1:26 pm
Forum: ESP32 IDF
Topic: My multiple BLE client connection example rarely succeeds
Replies: 9
Views: 626

Re: My multiple BLE client connection example rarely succeeds

Here's my code. I'm leveraging the BLE wrapper created by nkolban. /** * Create a sample BLE client that connects to a BLE server and then retrieves the current * characteristic value. It will then periodically update the value of the characteristic on the * remote server with the current time since...
by PaulELong
Thu Oct 24, 2019 10:01 pm
Forum: ESP32 IDF
Topic: My multiple BLE client connection example rarely succeeds
Replies: 9
Views: 626

My multiple BLE client connection example rarely succeeds

I'm trying to connect my ESP32 WROOM to two BLE devices, an HM10 and HM18. Occasionally it works, but most of the time it fails in one of two ways. 1. It gets a disconnect event "gattClientEventHandler: disconnect event, reason: 62, connId: 0, my connId: 255, my IF: 4, gattc_if: 4". Or 2. it gets a ...

Go to advanced search