Search found 121 matches

by newsettler_AI
Wed Nov 28, 2018 4:42 pm
Forum: General Discussion
Topic: ESP_GATTS_READ_EVT infinite loop
Replies: 5
Views: 6462

Re: ESP_GATTS_READ_EVT infinite loop

Maybe as alternative I should use ESP_GATT_AUTO_RSP instead?

Can I just maually edit my_data buffer?
by newsettler_AI
Tue Nov 27, 2018 7:56 pm
Forum: General Discussion
Topic: ESP_GATTS_READ_EVT infinite loop
Replies: 5
Views: 6462

ESP_GATTS_READ_EVT infinite loop

I have created custom characteristic using gatts table demo. I'm trying to establish manual responding on ESP_GATTS_READ_EVT . Problem: I got infinite loop when trying read characteristic value. my characteristic configuration: static uint8_t my_char_uuid[16] = { /* LSB <----------------------------...
by newsettler_AI
Sun Nov 25, 2018 1:52 pm
Forum: General Discussion
Topic: How to make 128bit service using ble gatts table demo?
Replies: 7
Views: 10233

Re: How to make 128bit service using ble gatts table demo?

Ok, I got working as I want with next settings: [IDX_SVC] ={ {ESP_GATT_AUTO_RSP}, {ESP_UUID_LEN_16, // why 16bits lenght? (uint8_t *)&primary_service_uuid, ESP_GATT_PERM_READ, 500, sizeof(service_uuid), (uint8_t *)service_uuid} }, And here is what nrfConnect shows: esp32_gatts_table4.jpg.JPEG.jpg Ca...
by newsettler_AI
Sat Nov 24, 2018 4:46 pm
Forum: General Discussion
Topic: How to make 128bit service using ble gatts table demo?
Replies: 7
Views: 10233

Re: How to make 128bit service using ble gatts table demo?

This is what i think (not what i know for sure): [IDX_SVC] = { {ESP_GATT_AUTO_RSP}, {ESP_UUID_LEN_128, (uint8_t *)&primary_service_uuid, ESP_GATT_PERM_READ, 50, // max service length (try some bigger value, you only waste few bytes or ram) sizeof(service_uuid), (uint8_t *)service_uuid} // service_u...
by newsettler_AI
Sat Nov 24, 2018 11:40 am
Forum: General Discussion
Topic: How to make 128bit service using ble gatts table demo?
Replies: 7
Views: 10233

Re: How to make 128bit service using ble gatts table demo?

Thanks for the reply. Next you have to know that some values in GATT attribute table cant be changed: https://github.com/espressif/esp-idf/blob/master/examples/bluetooth/gatt_server_service_table/main/gatts_table_creat_demo.c#L167-L169 I want to change not this, but this: https://github.com/espressi...
by newsettler_AI
Fri Nov 23, 2018 7:17 pm
Forum: General Discussion
Topic: How to make 128bit service using ble gatts table demo?
Replies: 7
Views: 10233

How to make 128bit service using ble gatts table demo?

Hi. I'm using this demo: https://github.com/espressif/esp-idf/blob/release/v3.2/examples/bluetooth/gatt_server_service_table/main/gatts_table_creat_demo.c I want to make custom 128bit service with some 128bit characteristics aswell. My peripheral must advertize UUID of my128bit_service too. [my128bi...
by newsettler_AI
Thu Nov 22, 2018 5:28 pm
Forum: General Discussion
Topic: BLE: How to add multiple characteristics in one service?
Replies: 1
Views: 5626

BLE: How to add multiple characteristics in one service?

Hi. I need to create custom 128bit service with some characteristics (which will be 128 bits too) As basic I'm using this https://github.com/espressif/esp-idf/blob/release/v3.2/examples/bluetooth/gatt_server/main/gatts_demo.c I have sucessfully created custom 128bit service. But when I'm trying add ...
by newsettler_AI
Wed Oct 24, 2018 12:36 pm
Forum: General Discussion
Topic: Auto flashing error (GPIO0 need to be manually set low)
Replies: 2
Views: 3713

Re: Auto flashing error (GPIO0 need to be manually set low)

Probably one of your two transistors is broken, that control the DTR RTS signals.
but how can it be damaged with sofware problem? It was only some kind of hard fault...
by newsettler_AI
Wed Oct 24, 2018 9:44 am
Forum: General Discussion
Topic: Auto flashing error (GPIO0 need to be manually set low)
Replies: 2
Views: 3713

Auto flashing error (GPIO0 need to be manually set low)

Hello! I'm using ESP32 DOIT kit. I flashed it automatically with onboard CP2102 usb-uart converter. But once I got app crash (says CPU halted) I'm not available to flash it in auto mode. Now I have to hold GPIO_0 on ground untill flashing will be done, even with fixed code its not flashing automatic...
by newsettler_AI
Mon Jul 23, 2018 4:24 pm
Forum: General Discussion
Topic: BT SPP acceptor error: "Cache disabled but cached memory region accessed" while pairing
Replies: 0
Views: 2479

BT SPP acceptor error: "Cache disabled but cached memory region accessed" while pairing

Hello, I'm running modified SPP acceptor example and WiFi in AP mode simultaneosly. Aslo there are deployed UART (GPIO 5, 18) and some LEDs (GPIO 13, 15, 21, 16, 17). I cant robustly pair via Bluetooth and esp32 from android tablet (i.e. I'm able to connect after 2-3 retries). Here is log: Guru Medi...