BLE Serial Port Profile with AT commands
Posted: Tue Jan 08, 2019 2:10 pm
Hi guys,
I have ESP-WROOM-32 module and I try to make BLE connection as SPP. I use ESP32_AT_V1.1.3 firmware. This firmware has below .bin files and I downloaded all of them to ESP32 module. I didnt change any .bin file. I just downloaded them.
( bootloader.bin, at_customize.bin , ble_data.bin, server_cert.bin, server_key.bin, server_ca.bin , client_cert.bin, client_key.bin, client_ca.bin, factory_param.bin, phy_init_data.bin , esp-at.bin, partitions_at.bin )
I follow the manual and send below AT commands to ESP32 to make a SPP.
AT+BLEINIT=2 // role: server
AT+BLEGATTSSRVCRE
AT+BLEGATTSSRVSTART
AT+BLEGATTSCHAR?
AT+BLEADVSTART // start advertising
After "StartAdvertise" command, I scan with my phone as a client (I try a lot of BLE scanner applications) but I cant find the ESP32.
Question 1: Is there any body make SPP with AT commands and can share the commands?
Question 2: In the manual it says
If using ESP32 as a BLE server, a service bin should be downloaded into Flash.
‣ at_customize.bin has to be downloaded, so that the relevant commands can be used.
Please refer to the ESP32_Customize_Partitions for more details.
‣ To learn how to generate a service bin, please refer to esp32-at/tools/readme.md.
‣ The download address of the service bin is the "ble_data" address in esp32-at/at_customize.csv.
I didnt understand that note. Should I need to make a new service bin or bin files (which are in ESP32_AT_V1.1.3 folder ) I downloaded are enough
I have ESP-WROOM-32 module and I try to make BLE connection as SPP. I use ESP32_AT_V1.1.3 firmware. This firmware has below .bin files and I downloaded all of them to ESP32 module. I didnt change any .bin file. I just downloaded them.
( bootloader.bin, at_customize.bin , ble_data.bin, server_cert.bin, server_key.bin, server_ca.bin , client_cert.bin, client_key.bin, client_ca.bin, factory_param.bin, phy_init_data.bin , esp-at.bin, partitions_at.bin )
I follow the manual and send below AT commands to ESP32 to make a SPP.
AT+BLEINIT=2 // role: server
AT+BLEGATTSSRVCRE
AT+BLEGATTSSRVSTART
AT+BLEGATTSCHAR?
AT+BLEADVSTART // start advertising
After "StartAdvertise" command, I scan with my phone as a client (I try a lot of BLE scanner applications) but I cant find the ESP32.
Question 1: Is there any body make SPP with AT commands and can share the commands?
Question 2: In the manual it says
If using ESP32 as a BLE server, a service bin should be downloaded into Flash.
‣ at_customize.bin has to be downloaded, so that the relevant commands can be used.
Please refer to the ESP32_Customize_Partitions for more details.
‣ To learn how to generate a service bin, please refer to esp32-at/tools/readme.md.
‣ The download address of the service bin is the "ble_data" address in esp32-at/at_customize.csv.
I didnt understand that note. Should I need to make a new service bin or bin files (which are in ESP32_AT_V1.1.3 folder ) I downloaded are enough