BLE Connectable Broadcaster using AT Commands .
Posted: Tue Mar 06, 2018 9:01 am
Hi everyone,i'm using ESP32 BLE AT commands .My idea is to use one device as broadcaster and two or more devices as observers, in order to transmists the advertising packets to the listeners specifically with connectable broadcast mode , i have done following steps .
As GAP AT commands are not given in datasheet .
I have set ESP32-01 module as Server used following commands :
06-03-2018 12:38:10.565 [TX] - AT+BLEINIT=2<CR><LF>
06-03-2018 12:38:10.568 [RX] - AT+BLEINIT=2<CR><LF>
06-03-2018 12:38:11.101 [RX] - <CR><LF>
OK<CR><LF>
06-03-2018 12:38:19.506 [TX] - AT+BLEADVPARAM=50,50,0,1,7<CR><LF>
06-03-2018 12:38:19.510 [RX] - AT+BLEADVPARAM=50,50,0,1,7<CR><LF>
<CR><LF>
OK<CR><LF>
06-03-2018 12:38:25.159 [TX] - AT+BLEADVDATA="0201040302e0ff04ffA232021200003400000234e00003a000ae32000000FF"<CR><LF>
06-03-2018 12:38:25.168 [RX] - AT+BLEADVDATA="0201040302e0ff04ffA232021200003400000234e00003a000ae32000000FF"<CR><LF>
<CR><LF>
OK<CR><LF>
06-03-2018 12:38:34.275 [TX] - AT+BLEADVSTART<CR><LF>
06-03-2018 12:38:34.278 [RX] - AT+BLEADVSTART<CR><LF>
<CR><LF>
OK<CR><LF>
I have set ESP-02 module as Client used following commands :
06-03-2018 14:23:10.640 [TX] - AT+BLEINIT=1<CR><LF>
06-03-2018 14:23:10.642 [RX] - AT+BLEINIT=1<CR><LF>
06-03-2018 14:23:11.193 [RX] - <CR><LF>
OK<CR><LF>
06-03-2018 14:23:13.017 [TX] - AT+BLESCAN=1<CR><LF>
06-03-2018 14:23:13.020 [RX] - AT+BLESCAN=1<CR><LF>
<CR><LF>
OK<CR><LF> .
Andriod phone is getting advertised data but it is not connectable , so please tell me how to advertise data in connectable mode .
I have also checked with sniffer : Not getting connectable advertise data .
Thank you for your help.
Karan Tak
As GAP AT commands are not given in datasheet .
I have set ESP32-01 module as Server used following commands :
06-03-2018 12:38:10.565 [TX] - AT+BLEINIT=2<CR><LF>
06-03-2018 12:38:10.568 [RX] - AT+BLEINIT=2<CR><LF>
06-03-2018 12:38:11.101 [RX] - <CR><LF>
OK<CR><LF>
06-03-2018 12:38:19.506 [TX] - AT+BLEADVPARAM=50,50,0,1,7<CR><LF>
06-03-2018 12:38:19.510 [RX] - AT+BLEADVPARAM=50,50,0,1,7<CR><LF>
<CR><LF>
OK<CR><LF>
06-03-2018 12:38:25.159 [TX] - AT+BLEADVDATA="0201040302e0ff04ffA232021200003400000234e00003a000ae32000000FF"<CR><LF>
06-03-2018 12:38:25.168 [RX] - AT+BLEADVDATA="0201040302e0ff04ffA232021200003400000234e00003a000ae32000000FF"<CR><LF>
<CR><LF>
OK<CR><LF>
06-03-2018 12:38:34.275 [TX] - AT+BLEADVSTART<CR><LF>
06-03-2018 12:38:34.278 [RX] - AT+BLEADVSTART<CR><LF>
<CR><LF>
OK<CR><LF>
I have set ESP-02 module as Client used following commands :
06-03-2018 14:23:10.640 [TX] - AT+BLEINIT=1<CR><LF>
06-03-2018 14:23:10.642 [RX] - AT+BLEINIT=1<CR><LF>
06-03-2018 14:23:11.193 [RX] - <CR><LF>
OK<CR><LF>
06-03-2018 14:23:13.017 [TX] - AT+BLESCAN=1<CR><LF>
06-03-2018 14:23:13.020 [RX] - AT+BLESCAN=1<CR><LF>
<CR><LF>
OK<CR><LF> .
Andriod phone is getting advertised data but it is not connectable , so please tell me how to advertise data in connectable mode .
I have also checked with sniffer : Not getting connectable advertise data .
Thank you for your help.
Karan Tak