Connecting BT LE device
Posted: Thu Mar 07, 2024 8:03 am
hi all.. I recently purchased an ESP32 and am looking to try and connect it to a gimbal using bluetooth.. Someone else has already made this work using the same brand gimbal and they provided their sketch.. so i bought an ESP32 thinking it should work fairly easily butso far no luck.. im wondering if someone might be able to identify where its failing ?
i have a small analog joystick connected which i know is working as i tried it with another sketch.. when i upload the bluetooth sketch and move the joystick i get nothing... the status monitor shows a message that looks like its trying to connect but it repeats over and over, which makes me wonder if the gimbal is disconnecting and the ESP32 keeps trying to reconnect ? here is the message i see in status window..
rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
E (10) Starting Arduino BLE Client application...
BLE Advertised Device found: Name: , Address: XX:XX:XX:XX:XX:XX, manufacturer data: 09050005, serviceUUID: 0000fee9-0000-1000-8000-00805f9b34fb, serviceUUID: 0000180a-0000-1000-8000-00805f9b34fb, serviceUUID: 0000fee8-0000-1000-8000-00805f9b34fb, rssi: -78
Found our device! address: Forming a connection to ac:9a:22:88:7e:81
- Created client
- Connected to server
- Found our service
- Found our characteristic
The characteristic value was:
ets Jul 29 2019 12:21:46
the joystick pins align with whats in the sketch and i also used nrf app on my tablet to verify all the BT characteristics match so the sketch should work with my gimbal but i get nothing ? i can post the sketch here if needed also... if anyone has an idea where it might be failing id appreciate any help.. thanks
i have a small analog joystick connected which i know is working as i tried it with another sketch.. when i upload the bluetooth sketch and move the joystick i get nothing... the status monitor shows a message that looks like its trying to connect but it repeats over and over, which makes me wonder if the gimbal is disconnecting and the ESP32 keeps trying to reconnect ? here is the message i see in status window..
rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
E (10) Starting Arduino BLE Client application...
BLE Advertised Device found: Name: , Address: XX:XX:XX:XX:XX:XX, manufacturer data: 09050005, serviceUUID: 0000fee9-0000-1000-8000-00805f9b34fb, serviceUUID: 0000180a-0000-1000-8000-00805f9b34fb, serviceUUID: 0000fee8-0000-1000-8000-00805f9b34fb, rssi: -78
Found our device! address: Forming a connection to ac:9a:22:88:7e:81
- Created client
- Connected to server
- Found our service
- Found our characteristic
The characteristic value was:
ets Jul 29 2019 12:21:46
the joystick pins align with whats in the sketch and i also used nrf app on my tablet to verify all the BT characteristics match so the sketch should work with my gimbal but i get nothing ? i can post the sketch here if needed also... if anyone has an idea where it might be failing id appreciate any help.. thanks