通过串口发送BLE原始数据包

发布于 2025-01-13 07:02:51 字数 658 浏览 3 评论 0原文

我想知道是否有一种方法可以通过 UART 端口访问所有 BLE 数据包(您可以使用嗅探器和wireshark(LL、SMP、ATT、L2CAP 协议)以及 BLE 适配器或 nrf52 DK 嗅探的所有数据包,其中已连接至 BLE 设备。 我期望的输出是原始数据包,稍后可以通过 Python 或其他软件进行修改。 如果您有任何想法/样本我可以处理,那就太好了。

谢谢 !

编辑:

我的想法是做代理,因此我不想使用嗅探器。我想分析接收/发送的数据包,以便我可以将它们重新传输到另一个 BLE 适配器。然后,它将能够连接到距离他很远的第一个设备(顺便说一句,它还会通过 python 接口为我提供整个流量的日志)。

我想看看我正在使用 BLE 适配器的驱动程序(“btusb”)。也许我可以对驱动程序进行编程以添加此功能。你知道这是否可能吗?

这是我拥有的 BLE 适配器的链接: https://www.amazon。 fr/TP-Link-Adaptateur-蓝牙-便携式-Ordinateur/dp/B07YLDVM6B?th=1

I was wondering if there is a way to have access through UART port to all BLE packets (all the packets that you can sniff using a sniffer and wireshark (LL, SMP, ATT, L2CAP protocols) with a BLE adapter or a nrf52 DK which is connected to a BLE device.
The output I am expecting is raw packets that can later be modified by Python or another software.
If you have any idea/sample I can work on it would be greatful.

Thank you !

EDIT :

My idea is to do a proxy thus I don't want to use a sniffer. I want to analyze the packets which are received/sent so I can retransmit them to another BLE adapter. Then, it will be able to connect to the first device that is far away from him (by the way it would also provides me logs of the whole traffic through python interface).

I thought to take a look at the driver I am using ("btusb") with my BLE adapter. Maybe I can program the driver to add this functionality . Do you know if it's possible ?

Here is the link of the BLE adapter I have :
https://www.amazon.fr/TP-Link-Adaptateur-Bluetooth-Portable-Ordinateur/dp/B07YLDVM6B?th=1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文