• 乐鑫的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.

  • 相关阅读:
    LeetCode-37-解数独
    zookeeper + kafka集群搭建详解
    Linux学习(1) ——Linux基本介绍
    【蓝桥备战】快速排序+归并排序+二分查找 基本实现
    行业分析| 物流对讲
    Python继承和组合 工厂模式、单例模式实现如下需求
    无代码开发平台应用可见权限设置入门教程
    2、HTML——标题分组、居中、引用标签、水平线标签下划线标签、删除标签、<font>标签、图像标签
    【数据结构】斐波那契数列优化
    二、[mysql]之Explain讲解与实战
  • 原文地址:https://blog.csdn.net/wireless_tag/article/details/138196777