Search found 47 matches

by 666hjk
Thu Oct 20, 2022 6:24 am
Forum: ESP-IDF 中文讨论版
Topic: [已解决] 户外做 BLE 广播,隔天却无法扫描到广播了?
Replies: 3
Views: 2690

Re: 户外做 BLE 广播,隔天却无法扫描到广播了?

烧录个 esp-idf 中的gatt server 的demo, https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/bluedroid/ble/gatt_server_service_table 使用 串口查看日志(是否正常运行)并使用手机 BLE 调试工具扫描看下能不能获取到广播 你好。 我用了https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/bluedroid/ble_50/peroidic_adv ,能获取到广播。那...
by 666hjk
Wed Oct 19, 2022 4:19 am
Forum: ESP-IDF 中文讨论版
Topic: [已解决] 户外做 BLE 广播,隔天却无法扫描到广播了?
Replies: 3
Views: 2690

[已解决] 户外做 BLE 广播,隔天却无法扫描到广播了?

你们有遇到这样的问题吗?可以分享如何搞定。 我的 esp32c3 开发板昨天在户外做 BLE 广播一切正常(将开发板放在户外的塑料瓶子中),但我今天无法扫描到广播。 如果没有对板里的code进行任何更改,为什么在使用 nrf connect应用程序时扫描没有显示广告? 1) 我使用 USB powerbank 通过板载 USB 端口为其供电,并且 powerbank 有电源。 板的供电红色 LED 有亮起来。 2)重建并再次flash,没有发现问题但仍然无法使用nRF Connect应用程序对其进行扫描。 3)尝试按下重置按钮,除了附近的其他广播外,应用程序上没有显示任何我的广播。 4)还有其...
by 666hjk
Wed Oct 19, 2022 3:38 am
Forum: ESP-IDF 中文讨论版
Topic: 各位大侠,你们一般用什么软件来编程啊?
Replies: 2
Views: 1822

Re: 各位大侠,你们一般用什么软件来编程啊?

本来是想用eclipse里的plugin,但一部分搞不清楚。不想浪费时间,就用普通的word editor 造c file然后用esp-idf command line 来 build and flash。
by 666hjk
Tue Oct 18, 2022 1:37 am
Forum: General Discussion
Topic: BLE advertising suddenly stop and unscannable using nrf connect app.
Replies: 0
Views: 821

BLE advertising suddenly stop and unscannable using nrf connect app.

Hi guys, my esp32c3 development board was ok yesterday doing BLE advertising outdoor (place the board in a plastic casing outdoor) but I can't scan the advertisment today. if there's no changes made to the board , why is the advertisement not shown when scan for using nrf connect app? 1) i powered i...
by 666hjk
Thu Oct 13, 2022 10:43 am
Forum: ESP-IDF 中文讨论版
Topic: [已解决](esp32c3)eddystone url 用 coded phy 可以吗?
Replies: 10
Views: 5067

(搞定了 )Re: (esp32c3)eddystone url 用 coded phy 可以吗?

广播结构不对 multi-adv demo 只修改如下内容再试下 static uint8_t raw_scan_rsp_data_coded[] = { 0x02, 0x01, 0x06, // ( type of flag ) 0x03, 0x03, 0xAA,0xFE, // length of service list , service list , eddystone ID , (16-bit uuid type) 0x03, 0x16, 0xAA,0xFE, // length of service data , service data , eddystone ID , (t...
by 666hjk
Wed Oct 12, 2022 10:27 am
Forum: ESP-IDF 中文讨论版
Topic: [已解决](esp32c3)eddystone url 用 coded phy 可以吗?
Replies: 10
Views: 5067

Re: (esp32c3)eddystone url 用 coded phy 可以吗?

漏了一条,先切换到 release/v4.4 分支后,再执行后面的操作 cd $IDF_PATH git fetch git checkout release/v4.4 git pull git submodule update --init --recursive ./install.sh . ./export.sh 1) version 的问题已经搞定。 >> ESP-IDF v4.4.2-378-g9269a536ac-dirty 。 谢谢。 2) build and flash 后的输出也一切ok(看下方), 但手机scan 不到 eddystone url ?? 问题在哪里? 在 ...
by 666hjk
Tue Oct 11, 2022 8:53 pm
Forum: ESP-IDF 中文讨论版
Topic: [已解决](esp32c3)eddystone url 用 coded phy 可以吗?
Replies: 10
Views: 5067

Re: (esp32c3)eddystone url 用 coded phy 可以吗?

coded phy 的使用示例可以参考这个 demo: https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/bluedroid/ble_50/multi-adv esp_ble_gap_set_prefered_default_phy API 的使用位置也不对,应当在 controller init 和 enable 之后; 使用 coded phy 广播可以不用这个 API,参考 ble_50/multi-adv 例程进行修改 ESP_XuLZ , 你提议的demo 是用 ESP-IDF Release v...
by 666hjk
Mon Oct 10, 2022 7:34 pm
Forum: ESP-IDF 中文讨论版
Topic: [已解决](esp32c3)eddystone url 用 coded phy 可以吗?
Replies: 10
Views: 5067

Re: (esp32c3)eddystone url 用 coded phy 可以吗?

coded phy 的使用示例可以参考这个 demo: https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/bluedroid/ble_50/multi-adv esp_ble_gap_set_prefered_default_phy API 的使用位置也不对,应当在 controller init 和 enable 之后; 使用 coded phy 广播可以不用这个 API,参考 ble_50/multi-adv 例程进行修改 ESP_XuLZ , 你提议的demo 是用 ESP-IDF Release v...
by 666hjk
Sun Oct 09, 2022 5:42 pm
Forum: ESP-IDF 中文讨论版
Topic: [已解决](esp32c3)eddystone url 用 coded phy 可以吗?
Replies: 10
Views: 5067

Re: (esp32c3)eddystone url 用 coded phy 可以吗?

谢谢你的提议。

1)我是想, 如果只有一个adv的话, 可用另一个方法来广播而不需要用multi-adv.
2) ble_50/multi-adv 里,.tx_power = EXT_ADV_TX_PWR_NO_PREFERENCE , 他的type 是 uint8_t . 如果用 +126dBm , 就是 0x7E ?

让我做修正,才让你知道。 :D

1x  .png
1x .png (125.58 KiB) Viewed 4114 times
by 666hjk
Thu Oct 06, 2022 1:02 am
Forum: ESP-IDF 中文讨论版
Topic: [已解决](esp32c3)eddystone url 用 coded phy 可以吗?
Replies: 10
Views: 5067

[已解决](esp32c3)eddystone url 用 coded phy 可以吗?

有那位可以帮帮忙? 谢谢。 1) 构建后的输出 build and flash giving output : E (356) EDDYSTONE_DEMO: app_main set prefered default phy failed: ESP_ERR_INVALID_STATE 问题在哪里? 2) 把 esp_ble_gap_set_prefered_default_phy( ESP_BLE_GAP_PHY_CODED_PREF_MASK, ESP_BLE_GAP_PHY_1M_PREF_MASK) 这样用法对吗? 有案例我可以参考吗? ========================...