Search found 14 matches

by phantomBlurrr
Wed Nov 13, 2019 2:25 pm
Forum: ESP32 IDF
Topic: Minimum pairing key size [BLE]
Replies: 2
Views: 164

Minimum pairing key size [BLE]

Hello, I am getting some seriously strange behavior from BLE. When I set the pairing key on the esp to 4 digits the esp can successfully pair as long as the connecting device is iOS. However, if we try to pair an android device the pairing process fails. On an android device, we must pad the key inp...
by phantomBlurrr
Tue Aug 13, 2019 3:08 pm
Forum: ESP32 IDF
Topic: Anyone know how to decrypt with mbed aes CTR mode?
Replies: 2
Views: 334

Anyone know how to decrypt with mbed aes CTR mode?

I'm trying to encrypt/decrypt data using mbed aes CTR mode. I can get the encryption to work, but I can't figure out how to make it decrypt. Below is my code: mbedtls_aes_context aes; unsigned char key[16]; unsigned char input[128] = {0x48, 0x45, 0x4c, 0x4c, 0x4f}; unsigned char output[128]; unsigne...
by phantomBlurrr
Wed Aug 07, 2019 12:53 pm
Forum: ESP32 IDF
Topic: ESP32 Bluetooth Pairing Mode Change
Replies: 1
Views: 557

Re: ESP32 Bluetooth Pairing Mode Change

Hello, You are very close to the solution you want; The code you used to make the passkey be shown on the android device is correct, you just have to change some of the parameters. Try changing these like so: esp_ble_auth_req_t auth_req = ESP_LE_AUTH_REQ_SC_MITM_BOND; esp_ble_io_cap_t iocap = ESP_IO...
by phantomBlurrr
Fri Aug 02, 2019 2:12 pm
Forum: ESP32 IDF
Topic: Question about BLE and Wi-Fi security
Replies: 3
Views: 435

Re: Question about BLE and Wi-Fi security

Ritesh wrote:
Sat Jul 13, 2019 9:50 am
Do you need security for data communications as well or just connection level security is OK?
Hi Ritesh, thank you for your reply,
I am trying to make the connection as secure as possible, so communication security is necessary as well. Any advicse on this matter is very much appreciated!
by phantomBlurrr
Thu Aug 01, 2019 5:12 pm
Forum: ESP32 IDF
Topic: How to create a custom BLE service
Replies: 1
Views: 280

Re: How to create a custom BLE service

Hey Espressif team, Just wondering if it's possible or if it's in the works to make an example detailing how to create a customer BLE service not predefined by the BT SIG. Cheers, Gibson Hi, If you mean how to add custom services/characteristics to the GATT server, Espressif already has a tutorial ...
by phantomBlurrr
Mon Jul 29, 2019 8:48 pm
Forum: ESP32 IDF
Topic: ESP32 BLe Password Pairing
Replies: 2
Views: 388

Re: ESP32 BLe Password Pairing

Hello, Are you trying to make it so that when you connect to the ESP for the first time, it requests for you to pair your device. Not only that, but it requires a password to pair? This is what you want, right? If so, check out this: Sample code provided by Espressif: https://github.com/espressif/es...
by phantomBlurrr
Mon Jul 29, 2019 8:32 pm
Forum: ESP32 IDF
Topic: Automatically Reconnect w/Paired Device? esp-idf, BLE (solved)
Replies: 1
Views: 392

Re: Automatically Reconnect w/Paired Device? esp-idf, BLE (solved?)

Hello, It seems this is not done in the ESP firmware, it is done in the phone application code instead. I'm not sure if this is the correct way to do it or if there are more optimal ways, but here's what I did. In your Android phone application, in the line of code that starts the GATT connection fr...
by phantomBlurrr
Mon Jul 29, 2019 5:06 pm
Forum: ESP32 IDF
Topic: How to disable/enable BLE? esp-idf (solved)
Replies: 3
Views: 586

Re: How to disable/enable BLE? esp-idf

Hello, It took a few tries but I have figured out the proper sequence for enabling/disabling BLE in order to use WiFi. Start the ESP in BLE mode and add a command that will start the WiFi. During WiFi init, do NOT start the WiFi, so don't use wifi_start(). When you call the command to start the wifi...
by phantomBlurrr
Mon Jul 29, 2019 1:55 pm
Forum: ESP32 IDF
Topic: How to disable/enable BLE? esp-idf (solved)
Replies: 3
Views: 586

Re: How to disable/enable BLE? esp-idf

esp_bluedroid_disable(); esp_bluedroid_deinit(); esp_bt_controller_disable(); esp_bt_controller_deinit(); Hello, Thanks for your reply; I am aware of the commands needed to disable BT. What I am having difficulty is *where* to place this code. Currently, the ESP boots to BLE mode, later I call wifi...
by phantomBlurrr
Thu Jul 25, 2019 4:26 pm
Forum: ESP32 IDF
Topic: How to disable/enable BLE? esp-idf (solved)
Replies: 3
Views: 586

How to disable/enable BLE? esp-idf (solved)

Hello, In my project I need to use BLE and Wi-Fi. There's only one radio. I want to disable the BLE to use Wi-Fi. After Wi-Fi serves it's purpose, disable Wi-Fi, enable BLE. If user finished using BLE, disable BLE, enable Wi-Fi. So on and so on. I tried using a command which is called FROM GATT (the...

Go to advanced search