Search found 8 matches
- Mon Apr 22, 2024 1:54 pm
- Forum: ESP-IDF
- Topic: Struggling with BLE OTA encrypted updates
- Replies: 4
- Views: 1084
Re: Struggling with BLE OTA encrypted updates
It's driving me nuts. I have completely redone the code, and used the example in nimble_ota.c After succesfully transmitting data, I get error: E (72038) esp_encrypted_img: Magic Verification failed E (72038) NimBLE_BLE_OTA: Error in decryption: -1 This is my current swift code: func initPackets() {...
- Sat Apr 20, 2024 10:15 am
- Forum: ESP-IDF
- Topic: Struggling with BLE OTA encrypted updates
- Replies: 4
- Views: 1084
Re: Struggling with BLE OTA encrypted updates
Also spend a few hours by looking into the android app (https://github.com/EspressifApps/esp-ble-ota-android/releases/tag/rc) and adding Sector_Index numbers and Packet_Seq numbers in my packages, by updating my iOS code. Like: https://components.espressif.com/components/espressif/ble_ota tells me. ...
- Sat Apr 20, 2024 1:26 am
- Forum: ESP-IDF
- Topic: Struggling with BLE OTA encrypted updates
- Replies: 4
- Views: 1084
Re: Struggling with BLE OTA encrypted updates
Yes, I see. But shouldn't my code pass the decrypted code, instead of the encrypted code to esp_ota_write? Some pieces of my code to get a better idea of the current code. esp_decrypt_cfg_t cfg = {}; cfg.rsa_priv_key = rsa_private_pem_start; cfg.rsa_priv_key_len = rsa_private_pem_end - rsa_private_p...
- Fri Apr 19, 2024 10:50 pm
- Forum: ESP-IDF
- Topic: Struggling with BLE OTA encrypted updates
- Replies: 4
- Views: 1084
Struggling with BLE OTA encrypted updates
Hi everyone, I've been grappling with this issue for several days now, and I'm at a loss. Previously, I had successfully implemented OTA updates using non-encrypted images with ESP-IDF/iOS. I am now transitioning to using encrypted images, which has proven quite complex. I've integrated the OTA BLE ...
- Wed Aug 30, 2023 10:10 am
- Forum: ESP-IDF
- Topic: Create a stable ESP-NOW connection
- Replies: 1
- Views: 974
Re: Create a stable ESP-NOW connection
By switching the mode to APSTA, I've noticed that the connection has become significantly more reliable. esp_wifi_set_mode(WIFI_MODE_APSTA); However, I still find that the range for ESP-NOW communication seems to be limited, perhaps to a maximum of about 8 meters. Is there a way to configure the set...
- Tue Aug 29, 2023 5:04 pm
- Forum: ESP-IDF
- Topic: Create a stable ESP-NOW connection
- Replies: 1
- Views: 974
Create a stable ESP-NOW connection
Hello everyone, I'm currently working on a project with multiple ESP32s communicating via ESP-NOW. I need some guidance regarding the consistent reception of sent messages, and I hope the community can assist me. Issue: In my setup, I have several ESP32s exchanging messages every 5 seconds. However,...
- Tue Aug 29, 2023 11:15 am
- Forum: ESP-IDF
- Topic: Help with gatt_server_service_table BLE example needed
- Replies: 1
- Views: 464
Re: Help with gatt_server_service_table BLE example needed
Fixed!
esp_ble_gatts_set_attr_value(heart_rate_handle_table[APP_CHAR_VAL_A], sizeof(nval), nval);
esp_ble_gatts_send_indicate(heart_rate_profile_tab[PROFILE_APP_IDX].gatts_if, 0, heart_rate_handle_table[APP_CHAR_VAL_A], sizeof(nval), nval, false);
- Mon Aug 28, 2023 2:23 pm
- Forum: ESP-IDF
- Topic: Help with gatt_server_service_table BLE example needed
- Replies: 1
- Views: 464
Help with gatt_server_service_table BLE example needed
Hello, I'm in the process of transitioning from Arduino to ESP-IDF, and it has proven to be quite a challenge. I've dedicated the last couple of days to getting BLE up and running. I stumbled upon the gatt_server_service_table example and I'm attempting to comprehend its workings. Currently, I have ...