1
我想从我的手机发送文件到我的笔记本电脑。他们两人都有蓝牙。使用bluez蓝牙发送文件从手机到笔记本电脑 - 不工作
在笔记本电脑上我有archlinux
。我已经安装bluez-5.35-1
进行蓝牙管理。
安装完成后,我输入:
systemctl enable bluetooth.service
systemctl start bluetooth.service
然后,使用bluetoothctl
我通过键入power on
现在,我可以发现并从我的手机进行配对,笔记本电脑启动蓝牙。
我开始使用FTP服务器:
systemctl --user start obex
在电话里,我试图发送一个文件,但我很短的时间后file not sent
接收消息。
在journalctl -f
我可以看到以下日志:
Oct 04 18:01:16 laptop obexd[8058]: CONNECT(0x0), (null)(0xffffffff)
Oct 04 18:01:16 laptop obexd[8058]: CONNECT(0x0), (null)(0x0)
Oct 04 18:01:16 laptop obexd[8058]: PUT(0x2), (null)(0xffffffff)
Oct 04 18:01:16 laptop obexd[8058]: PUT(0x2), FORBIDDEN(0x43)
Oct 04 18:01:16 laptop obexd[8058]: DISCONNECT(0x1), (null)(0xffffffff)
Oct 04 18:01:16 laptop obexd[8058]: DISCONNECT(0x1), SUCCESS(0x20)
Oct 04 18:01:16 laptop obexd[8058]: disconnected: Transport got disconnected
我假设这是一个权限问题,因为我可以看到FORBIDDEN
那里。 obexd
的配置文件在哪里查看它将尝试保存文件的位置?我不明白为什么bluez
是如此贫穷的记录。
任何人都发出蓝牙相同的问题?