espressif / esp-now

A connectionless Wi-Fi communication protocol
Apache License 2.0
486 stars 91 forks source link

Disable CCA(Carrise sense) using ESP-NOW ??? (AEGHB-140) #69

Closed uecken closed 1 year ago

uecken commented 1 year ago

Does anyone know disable the CCA(Carrise sense) using ESP-NOW? I think below function means the carrier sense threshold. esp_ieee802154_set_cca_threshold(int8_t cca_threshold);

Therefore, esp_ieee802154_set_cca_threshold(-200) disable CCA?

https://github.com/espressif/arduino-esp32/blob/00214d5c2a1c2b1904f2caf6f0d5ddfe952331ff/tools/sdk/esp32c3/include/ieee802154/include/esp_ieee802154.h

IDE: PlatformI HW: ESP32-C3

lhespress commented 1 year ago

@uecken Please add the patch to the examples: get_start.diff and cca.patch as the attachment cca.zip

lhespress commented 1 year ago

@uecken Closing this issue since there has been no update on this. Please feel free to reopen if required.

uecken commented 1 year ago

Now, I noticed your reply. Thank you.

uecken commented 1 year ago

Sorry, my information was lost. I means arduino environment. How about below envronment?

[env:esp32-c3-devkitm-1] platform = espressif32 board = seeed_xiao_esp32c3 framework = arduino

I cannot find about cca function in esp_now.h https://github.com/espressif/esp-idf/blob/903af13e847cd301e476d8b16b4ee1c21b30b5c6/components/esp_wifi/include/esp_now.h