Search found 19 matches

by heyinling
Tue Mar 28, 2017 1:08 pm
Forum: ESP32 IDF
Topic: connected wifi stations
Replies: 5
Views: 4136

Re: connected wifi stations

HI, I have got the following code work. You can try this. esp_wifi_ap_get_sta_list(&wifi_sta_list); tcpip_adapter_get_sta_list(&wifi_sta_list, &tcpip_adapter_sta_list); for (i=0; i<wifi_sta_list.num; i++){ printf("StaInfo:"MACSTR","IPSTR"",MAC2STR(wifi_sta_list.sta[i].mac),IP2STR(&tcpip_adapter_sta_...
by heyinling
Tue Mar 28, 2017 12:37 pm
Forum: ESP32 IDF
Topic: lwIP reconnect same address+port
Replies: 3
Views: 2638

Re: lwIP reconnect same address+port

Hi, The reason why we need to wait around 2 minutes is because TCP has time wait state. remote TCP peer could re-send FIN-ACK if last ACK lost. If we're reusing same port immediately, the new connection will receive un-excepted packets and could lead to problem. As you're using ssl client, I think i...
by heyinling
Tue Mar 28, 2017 7:03 am
Forum: ESP32 IDF
Topic: ESP32 BLE - how many simultaneous unique iBeacon readings?
Replies: 4
Views: 3284

Re: ESP32 BLE - how many simultaneous unique iBeacon readings?

I think we can setup the following test: setting up 3 devices advertising on each adv channel with interval 10ms. use ESP32 do full duty cycle passive or active scan for 1 second and check how many HCI adv events it receives. The controller should passthrough the adv packets to host, I think there's...
by heyinling
Tue Mar 28, 2017 6:44 am
Forum: ESP32 IDF
Topic: [TW#11125] BLE connect to non-advertising peripheral
Replies: 14
Views: 8798

Re: BLE connect to non-advertising peripheral

I tried from HCI command HCI_LE_Create_Connection, API to send this command is btsnd_hcic_ble_create_ll_conn in components/bt/bluedroid/stack/hcic/hciblecmds.c. by checking the callers of btsnd_hcic_ble_create_ll_conn, I find GATT seems will finally call gatt_connect in components/bt/bluedroid/stack...
by heyinling
Tue Mar 28, 2017 1:48 am
Forum: ESP32 IDF
Topic: [TW#11125] BLE connect to non-advertising peripheral
Replies: 14
Views: 8798

Re: BLE connect to non-advertising peripheral

Hi, according to BLE Core Spec 4.2 Vol 3 part C 9.3, there're several connection procedures. As the figure in 9.3.6 describes, general connection establish procedure will always including a scanning procedure. I think what you're trying to do is 9.3.8, direct connection establish procedure. Current ...
by heyinling
Sun Mar 26, 2017 3:24 pm
Forum: ESP32 IDF
Topic: BLE multi-connection procedure
Replies: 10
Views: 13614

Re: BLE multi-connection procedure

Hi, multi-connection is not supported yet. some SW work need to be done before releasing this feature. plz kindly wait.
by heyinling
Fri Mar 24, 2017 7:01 am
Forum: Report Bugs
Topic: BLE rssi is too strong
Replies: 1
Views: 2179

Re: BLE rssi is too strong

Hi

please refer to this issue on Github: https://github.com/espressif/esp-idf/issues/421
by heyinling
Thu Mar 23, 2017 1:21 pm
Forum: ESP32 IDF
Topic: ESP32 BLE - how many simultaneous unique iBeacon readings?
Replies: 4
Views: 3284

Re: ESP32 BLE - how many simultaneous unique iBeacon readings?

Hi, Not sure if I get your point. The host will send all adv reports to gap callback and let user process them. The scan API will not ask controller to filter duplicates so all adv will be reported. I think it's up to the application behavior. You can try examples/bluetooth/gatt_client, modify main/...
by heyinling
Thu Mar 23, 2017 9:09 am
Forum: ESP32 IDF
Topic: BLE characteristic size
Replies: 1
Views: 2630

Re: BLE characteristic size

Hi, 22 bytes is the MTU size of GATT. If you want to read/write more than MTU size, you need to do read long or prepare write. server handle read long: const char DEFAULT_LONG_VALUE[512]; // in gatts callback esp_gatt_rsp_t *response = malloc(sizeof(esp_gatt_rsp_t)); ... case ESP_GATTS_READ_EVT: if ...

Go to advanced search