Search found 16 matches
- Thu Apr 27, 2023 11:11 am
- Forum: ESP-IDF
- Topic: Stack overflow in task ble
- Replies: 3
- Views: 1958
Re: Stack overflow in task ble
What is the recommended size of the BLE task stack? We use both peripheral and central role.
- Mon Apr 24, 2023 12:45 pm
- Forum: ESP-IDF
- Topic: Stack overflow in task ble
- Replies: 3
- Views: 1958
Stack overflow in task ble
Hi, I use a ESP32 WROVER and run IDF 4.4.3. The device is setup as BLE central and peripheral. If the device connects to a peripheral and the peripheral sends more than 150 bytes in a notification (frame will be fragmented) the device crashes with this crashlog: ***ERROR*** A stack overflow in task ...
- Mon Nov 21, 2022 2:39 pm
- Forum: ESP-IDF
- Topic: Task watchdog triggered nvs_set_blob
- Replies: 0
- Views: 772
Task watchdog triggered nvs_set_blob
Hi, I'm using IDF version 4.4.2 and sometimes get task watchdog triggered when calling function nvs:_set_blob. Task watchdog get triggered continuously and no hard reset is performed so the system is stalled. On line 1351 In log log_221121.txt it is for the first time triggered. What might be causin...
- Wed Jun 08, 2022 12:26 pm
- Forum: ESP-IDF
- Topic: Device disconnected from soft AP
- Replies: 0
- Views: 1025
Device disconnected from soft AP
I set wifi module in STA_AND_AP mode and try to connect my PC to it. It seems like it connect and 60 ms later disconnect, with bss_flags 658531. Does the bss_flags give indication to the reason why it diconnects? Logs: mode : sta (10:97:bd:e4:ae:80) + softAP (10:97:bd:e4:ae:81) I (87125) wifi:new:<1...
- Mon Mar 28, 2022 7:30 am
- Forum: ESP-IDF
- Topic: ECONNABORTED TCP link
- Replies: 0
- Views: 1387
ECONNABORTED TCP link
Hi,
I'm using a ESP32 as a TCP server. A PC is client and connects without any problems to the server. After a while (10-15 minutes) I get ECONNABORTED and I can see in Wireshark that ESP32 sends RST flag to client.
What might trigger this behavior?
I'm using a ESP32 as a TCP server. A PC is client and connects without any problems to the server. After a while (10-15 minutes) I get ECONNABORTED and I can see in Wireshark that ESP32 sends RST flag to client.
What might trigger this behavior?
- Wed Sep 29, 2021 9:24 am
- Forum: ESP-IDF
- Topic: NIMBLE stack crashes
- Replies: 1
- Views: 1902
Re: NIMBLE stack crashes
I added a log with debug printouts enabled, seems like assertion fails in ble_gap.c line 1166: /** * Called when an error is encountered while the master-connection-fsm is * active. */ static void ble_gap_master_failed(int status) { switch (ble_gap_master.op) { case BLE_GAP_OP_M_CONN: STATS_INC(ble_...
- Wed Sep 29, 2021 7:38 am
- Forum: ESP-IDF
- Topic: NIMBLE stack crashes
- Replies: 1
- Views: 1902
NIMBLE stack crashes
Hi, I use IDF version 4.3 and uses NIMBLE stack both for central and peripheral role. Sometimes the NIMBLE stack crashes when peripheral is connected and central is trying to connect to a device. I've registered two different reasons for the NIMBLE stack reset: 0x0c (12) BLE_HS_ECONTROLLER Event fro...
- Mon Sep 27, 2021 12:44 pm
- Forum: ESP-IDF
- Topic: BLE peripheral and central simultaneously
- Replies: 3
- Views: 4253
Re: BLE peripheral and central simultaneously
This is what the code is doing: 1) Advertising is started from on_sync() function and restarted at CONNECT and DISCONNECT event using ble_gap_adv_start(own_addr_type, NULL, BLE_HS_FOREVER,&adv_params, test_gap_event, NULL); 2) Every 10th second a scanning to to fins peripherals is performed using th...
- Mon Sep 27, 2021 12:13 pm
- Forum: ESP-IDF
- Topic: Simultaneous BLE Scanning/Advertising
- Replies: 4
- Views: 5807
Re: Simultaneous BLE Scanning/Advertising
I scan during 5 sec with an interval of 10 sec. Is that ok? I constantly advertise. rc = ble_gap_disc(own_addr_type, 5000/*600*/, &disc_params, passive_scan_event, NULL); When I restart advertising do I need to call these functions: ble_gap_adv_stop ble_gap_adv_start Or do I only need to call this f...
- Fri Sep 24, 2021 7:29 am
- Forum: ESP-IDF
- Topic: Simultaneous BLE Scanning/Advertising
- Replies: 4
- Views: 5807
Simultaneous BLE Scanning/Advertising
Hi, is it possible to scan and advertise at the same time use the integrated BLE in ESP32? I use NIMBLE stack and version 4.3 of the ESP-IDF. Can I start advertising and periodically scan for other devices without stopping advertising? I added a Wireshark BLE sniffer log. The central can't connect t...