从 Raspberry Pi 到 Parani SD100 的蓝牙连接 - 无可用服务
Bluetooth connection from Raspberry Pi to Parani SD100- No usable services
我正在尝试将我的 raspberry Pi 连接到 Parani SD1000 RS232 串行适配器。我已经配置了 Parani,并且在使用我的 Macbook 时可以成功连接到它并检索数据。我想使用我的 raspberry pi 建立连接。我有一个 raspberry Pi 3 型号 b+ 32 位。我编写了一个使用 Pyserial 的脚本,并通过 sudo rfcomm bind /dev/rfcomm0 XX:XX:XX:XX:XX:XX 1
创建了一个到蓝牙设备的绑定。但是,当我使用 Raspberry PI OS 接口连接到蓝牙时,我收到一条消息 'Paired successfully, but this device has no services with can be used with the Raspberry Pi
并且连接被中止。
我已寻找其他建议并尝试更新我在别处列出的软件。无果。
sudo apt-get update
sudo apt-get dist-upgrade
sudo rm /etc/udev/rules.d/99-com.rules
sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall raspberrypi-sys-mods
sudo systemctl reboot
我不确定我应该看哪个方向。我知道 Parani 配置正确,所以它一定是树莓派上的东西。提前谢谢你
rfcomm
于 2017 年由 BlueZ 项目 deprecated 提出,因此我建议不要使用该方法。
Python3 on Linux 支持连接到具有串行端口配置文件 (SPP) 的蓝牙经典设备及其 socket library.
以下博客中有更多信息:https://blog.kevindoran.co/bluetooth-programming-with-python-3/
Bluedot Python 库中也支持 SPP:https://www.stuffaboutcode.com/2017/07/python-bluetooth-rfcomm-client-server.html
我正在尝试将我的 raspberry Pi 连接到 Parani SD1000 RS232 串行适配器。我已经配置了 Parani,并且在使用我的 Macbook 时可以成功连接到它并检索数据。我想使用我的 raspberry pi 建立连接。我有一个 raspberry Pi 3 型号 b+ 32 位。我编写了一个使用 Pyserial 的脚本,并通过 sudo rfcomm bind /dev/rfcomm0 XX:XX:XX:XX:XX:XX 1
创建了一个到蓝牙设备的绑定。但是,当我使用 Raspberry PI OS 接口连接到蓝牙时,我收到一条消息 'Paired successfully, but this device has no services with can be used with the Raspberry Pi
并且连接被中止。
我已寻找其他建议并尝试更新我在别处列出的软件。无果。
sudo apt-get update
sudo apt-get dist-upgrade
sudo rm /etc/udev/rules.d/99-com.rules
sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall raspberrypi-sys-mods
sudo systemctl reboot
我不确定我应该看哪个方向。我知道 Parani 配置正确,所以它一定是树莓派上的东西。提前谢谢你
rfcomm
于 2017 年由 BlueZ 项目 deprecated 提出,因此我建议不要使用该方法。
Python3 on Linux 支持连接到具有串行端口配置文件 (SPP) 的蓝牙经典设备及其 socket library.
以下博客中有更多信息:https://blog.kevindoran.co/bluetooth-programming-with-python-3/
Bluedot Python 库中也支持 SPP:https://www.stuffaboutcode.com/2017/07/python-bluetooth-rfcomm-client-server.html