• 乐鑫的ESP32-S3芯片的LE能实现beacon功能吗?


    最近帮一个客户做ESP32定位器方案,客户提出这个疑问,乐鑫的ESP32-S3芯片的LE能实现beacon功能吗?针对这个问题,启明云端工程师小启给出这样的回复。

    回答是可以的,大家可以看idf的例程。

    ESP-IDF iBeacon demo

    From welcoming people as they arrive at a sporting event to providing information about a nearby museum exhibit, iBeacon opens a new world of possibilities for location awareness, and countless opportunities for interactivity between iOS devices and iBeacon hardware.

    How to Use Example

    Before project configuration and build, be sure to set the correct chip target using:

    Note: iBeacon is a trademark of Apple Inc.

    Before building devices which use iBeacon technology, visit Apple iBeacon to obtain a license.

    iBeacon Mode

    This example demonstrates iBeacon-compatible BLE advertising, and scanning of iBeacons:

    • IBEACON_SENDER: demo to send iBeacon-compatible advertising data.

    • IBEACON_RECEIVER: demo to receive and resolve iBeacon advertising data.

    Which demo will be run depends on the menuconfig, developers can set it in iBeacon Example Configuration.

    The default mode is iBeacon Sender.

    Configure the project

    Open the project configuration menu:

    And then enter Component config --> Bluetooth --> Bluedroid Enable

    Because the number of peripherals may be very large, developers can enable the BLE Scan Duplicate Options, the maximum number of devices in scan duplicate filter depends on the free heap size, when the cache is full, it is cleared.

    Event Processing

    In the iBeacon receiver demo, the scan result will be posted to ESP_GAP_SEARCH_INQ_RES_EVT event:

    Build and Flash

    Run idf.py -p PORT flash monitor to build, flash and monitor the project.

    (To exit the serial monitor, type Ctrl-].)

    See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.

    Example Output

    The iBeacon sender will broadcast iBeacon packet after initializing the Bluetooth protocol stack, and the iBeacon receiver will scan the iBeacon packet.

    iBeacon Sender

    iBeacon Receiver

    Troubleshooting

    For any technical queries, please open an issue on GitHub. We will get back to you soon.

  • 相关阅读:
    R-CNN、Fast R-CNN和Faster R-CNN:目标检测的进化之路
    [go学习笔记.第十七章.redis的使用] 1.redis的使用
    Spring IOC
    ESP32-IDF MQTT连接aws亚马逊云
    都是星光赶路人
    如何使用 J2L3x 提高企业团队协作效率
    解决“你当前无权访问该文件夹”问题的8种方法
    快捷输入法怎么设置
    工业品MRO采购网站有哪些优势?一文带你读懂
    【Linux环境搭建】五、Linux(CentOS7)编译源码安装Subversion
  • 原文地址:https://blog.csdn.net/wireless_tag/article/details/138196777