通过蓝牙发送传感器数据和流视频(Raspberry Pi 到 PC)

Send Sensor Data & Stream Video Over Bluetooth (Raspberry Pi to PC)

我想通过蓝牙从 Raspberry Pi 摄像头发送传感器数据(字符串)和实时视频。我想用 python 来做到这一点。我想用 tkinter window 在 PC 上显示视频。有什么想法吗??

Raspberry Pi: 圆周率 3
PC:Windows 10 和 Python 3.8.3 64 位

视频可能有点棘手。更多详细信息,请访问:

Windows 和 Python 上的蓝牙没有得到很好的支持。但是,Python 3.9 支持串行端口配置文件 (SPP)。有关如何创建客户端的详细信息,请访问:

要在 Raspberry Pi (RPi) 上创建服务器,我将使用 Bluedot 库: https://bluedot.readthedocs.io/en/latest/btcommapi.html#bluetoothserver (Bluedot 仅适用于 RPi)

同时开发蓝牙的两端 link 如果您不熟悉创建蓝牙,那么这很棘手。我的建议是首先在 RPi 上创建服务器,然后在 phone 上使用像 Serial Bluetooth Terminal 这样的应用程序来测试它。一旦开始开发客户端。