您尚未登录。

#1 2024-09-10 15:46:27

maoyaotang
会员
注册时间: 2024-05-14
帖子: 5

蓝牙能连接,却不能发送文件

蓝牙耳机能正常用,手机连接蓝牙,只有往手机里发送文件就断开,手机往电脑发送文件也是一样会断开
systemctl status --user obex                                      ✔  27s 
● obex.service - Bluetooth OBEX service
     Loaded: loaded (/usr/lib/systemd/user/obex.service; enabled; preset: enabled)
    Drop-In: /home/maoyaotang/.config/systemd/user/obex.service.d
             └─10-symlink.conf
     Active: active (running) since Tue 2024-09-10 15:32:50 CST; 9min ago
Invocation: 43a7f0c987064ee9a4d6a52169b3b57e
   Main PID: 4548 (obexd)
      Tasks: 1 (limit: 18780)
     Memory: 932K (peak: 1.5M)
        CPU: 8ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/obex.service
             └─4548 /usr/lib/bluetooth/obexd --symlinks

9月 10 15:32:50 pc systemd[1346]: Starting Bluetooth OBEX service...
9月 10 15:32:50 pc obexd[4548]: OBEX daemon 5.77
9月 10 15:32:50 pc systemd[1346]: Started Bluetooth OBEX service.
9月 10 15:34:08 pc obexd[4548]: connect to B4:1A:1D:85:B1:E2: Connection timed out (110)
9月 10 15:34:30 pc obexd[4548]: connect to B4:1A:1D:85:B1:E2: Software caused connection>
9月 10 15:36:18 pc obexd[4548]: Unable to find service record
9月 10 15:36:31 pc obexd[4548]: Unable to find service record
9月 10 15:39:32 pc obexd[4548]: Unable to find service record

离线

#2 2024-09-10 15:56:12

maoyaotang
会员
注册时间: 2024-05-14
帖子: 5

Re: 蓝牙能连接,却不能发送文件

systemctl status bluetooth                                            127 ✘
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disable>
     Active: active (running) since Tue 2024-09-10 15:16:57 CST; 38min ago
Invocation: 365f08c2edcb43f596c07cd34dfc54ac
       Docs: man:bluetoothd(8)
   Main PID: 751 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 18780)
     Memory: 3.8M (peak: 4.2M)
        CPU: 170ms
     CGroup: /system.slice/bluetooth.service
             └─751 /usr/lib/bluetooth/bluetoothd

9月 10 15:32:13 pc bluetoothd[751]: src/profile.c:ext_connect() Hands-Free unit failed c>
9月 10 15:32:14 pc bluetoothd[751]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to>
9月 10 15:32:17 pc bluetoothd[751]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to>
9月 10 15:36:18 pc bluetoothd[751]: src/profile.c:ext_connect() Hands-Free unit failed c>
9月 10 15:39:32 pc bluetoothd[751]: src/profile.c:ext_connect() Hands-Free unit failed c>
9月 10 15:39:32 pc bluetoothd[751]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to>
9月 10 15:39:35 pc bluetoothd[751]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to>
9月 10 15:54:52 pc bluetoothd[751]: src/profile.c:ext_connect() Hands-Free unit failed c>
9月 10 15:54:52 pc bluetoothd[751]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to>
9月 10 15:54:55 pc bluetoothd[751]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to>
   ~  bluetooth-sendto                                                   ✔  9s 
Gtk-Message: 15:55:48.523: GtkDialog mapped without a transient parent. This is discouraged.

离线

#3 2024-09-10 16:06:52

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,836
个人网站

Re: 蓝牙能连接,却不能发送文件

你没有确认接收文件,也没有选择把文件收到哪里。我的办法是指定几个参数:

# /home/lilydjwg/.config/systemd/user/obex.service.d/recv-files.conf
[Service]
ExecStart=
ExecStart=/usr/lib/bluetooth/obexd -r /run/user/%U/obex -a

[Install]
WantedBy=default.target

离线

#4 2024-09-10 16:16:04

maoyaotang
会员
注册时间: 2024-05-14
帖子: 5

Re: 蓝牙能连接,却不能发送文件

依云 说:

你没有确认接收文件,也没有选择把文件收到哪里。我的办法是指定几个参数:

# /home/lilydjwg/.config/systemd/user/obex.service.d/recv-files.conf
[Service]
ExecStart=
ExecStart=/usr/lib/bluetooth/obexd -r /run/user/%U/obex -a

[Install]
WantedBy=default.target

电脑发送到手机,就显示正在连接,而设置里和状态栏却显示已经连接上了,手机上也没有任何提示和反应,手机发送到电脑就显示连接失败,感觉蓝牙一直没有连接上一样,而电脑上和手机里却显示已经连接了

离线

#5 2024-09-10 16:22:00

maoyaotang
会员
注册时间: 2024-05-14
帖子: 5

Re: 蓝牙能连接,却不能发送文件

现在又提示The name is not activatable了

离线

#6 2024-09-10 16:37:42

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,836
个人网站

Re: 蓝牙能连接,却不能发送文件

那你的情况看来和我的不一样。

离线

页脚