Raspberry Bluetooth Setting in Bluez 5: connect raspberry bluetooth with Andriod Phone

本文介绍了如何在BlueZ 5环境下配置Raspberry Pi的蓝牙功能,以实现与Android手机的连接。在过程中遇到了'advertise_service'找不到文件的错误,解决方案是将蓝牙守护进程运行在兼容模式,修改配置文件并调整权限。同时,文章提到了解决'sdptool'在BlueZ 5中失效的方法,以及处理BluetoothError: (13, Permission Denied)的权限问题。" 113239079,10542099,Excel导入MySQL数据错列问题解决方案,"['数据导入', '数据库管理', 'Excel工具', 'MySQL', '数据处理']
摘要由CSDN通过智能技术生成

Using Raspberry bluetooth to send message to Andriod Phone
https://blog.csdn.net/pinganddu/article/details/78784522

advertise_service no such file or directory
advertise_service Error
This might help

sdptool is broken in Bluez 5

You need to run the blue tooth daemon in compatibility mode to provide deprecated command line interfaces. You’re running Bluez5 and you need some Bluez4 functions. You can do this by editing this file

/etc/systemd/system/dbus-org.bluez.service

and changing this line

ExecStart=/usr/lib/bluetooth/bluetoothd

to this

ExecStart=/usr/lib/bluetooth/bluetoothd --compat  // -C

Error: BluetoothError, 2, no such file and directory

Then adding the Serial Port Profile, executing: sudo sdptool add SP

and th

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值