espressif / esp-at

AT application for ESP32/ESP32-C2/ESP32-C3/ESP32-C6/ESP8266
Apache License 2.0
860 stars 746 forks source link

AT+BLESCAN error, with name/mac filter. release/4.0.0.0 with ble command support #815

Closed F1RST1 closed 3 weeks ago

F1RST1 commented 5 months ago

Answers checklist.

General issue report

image

repo: https://github.com/F1RST1/esp-at

F1RST1 commented 5 months ago

chip type: esp32-c2

F1RST1 commented 5 months ago

Hello. @xcguang @ustccw Could you guys help me? I tried the Actions artifact and there is still error.

https://github.com/espressif/esp-at/actions/runs/8359432201 esp32c2-ble-2mb-at

Luxin812 commented 4 months ago

@F1RST1 thank you very much for asking this issue. I've reproduced it locally and will have a fix soon.

F1RST1 commented 4 months ago

@Luxin812 By the way, as I know, the implementation of filtering by name is fully comparison. Could yout please change it to partical compare? I meant using function like strstr instead of strcmp.

Luxin812 commented 4 months ago

The latest master branch has fixed the problem of BLE returning ERROR when scanning the specified name and mac. You can download the latest firmware to test it.

By the way, as I know, the implementation of filtering by name is fully comparison. Could yout please change it to partical compare? I meant using function like strstr instead of strcmp. Maybe you can use the AT+BLESCAN command without filtering. Use the AT+SYSMSGFILTERCFG command to filter. You can study this command: Command reference: https://docs.espressif.com/projects/esp-at/en/latest/esp32c2/AT_Command_Set/Basic_AT_Commands.html#at-sysmsgfiltercfg-query-set-the-system-message-filters Example reference: https://docs.espressif.com/projects/esp-at/en/latest/esp32/AT_Command_Examples/at_msg_resp_fmt_ctrl_examples.html#at-response-message-format-control-examples