V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
wuruxu
V2EX  ›  Linux

手机和 Debian13 通过蓝牙互相发送文件

  •  
  •   wuruxu ·
    wuruxu · 17 小时 45 分钟前 · 521 次点击

    需要先开启 debian 系统中的 obex 服务

    systemctl --user start obex
    systemctl --user enable obex
    

    确认 obex 服务正常工作

    user@debian:/tmp$ systemctl --user status obex
    ● obex.service - Bluetooth OBEX service
         Loaded: loaded (/usr/lib/systemd/user/obex.service; enabled; preset: enabled)
         Active: active (running) since Sat 2025-09-20 20:35:53 CST; 1h 9min ago
     Invocation: 279f5e1a454a428dbb07065246269cb2
       Main PID: 117672 (obexd)
          Tasks: 7 (limit: 54969)
         Memory: 4.8M (peak: 5.7M)
            CPU: 432ms
         CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/obex.service
                 └─117672 /usr/libexec/bluetooth/obexd
    user@debian:/tmp$
    

    就可以正常使用蓝牙发送文件给手机

    假如手机发送文件给 Debian 系统 除了 pair
    还需要 trust 手机设备的蓝牙地址 94:45:60:6D:XX:YY

    user@debian:/tmp$ bluetoothctl 
    hci0 new_settings: powered bondable ssp br/edr le secure-conn wide-band-speech cis-central cis-peripheral 
    Agent registered
    [Pixel]> trust 94:45:60:6D:XX:YY
    
    

    这样 手机就可以发送文件到 debian ,系统接受完成后顶部就会有提示

    MacsedProtoss
        1
    MacsedProtoss  
       14 小时 8 分钟前 via iPhone
    不是很懂这个玩意为啥是发帖而不是技术博客
    另外这个体验有点远古了,我宁可开个 smb 都不愿意整蓝牙,蓝牙真的慢的要死
    voydomnvd
        2
    voydomnvd  
       13 小时 53 分钟前 via Android
    不是还有 kdeconnect 和 localsend 可以用啊
    pooorguy
        3
    pooorguy  
       6 小时 47 分钟前 via Android
    电脑开机后 可以电脑后手机单向发送文件,手机向电脑发送文件就会失败
    每次要 systemctl restart bluetooth.service 才能有用
    wuruxu
        4
    wuruxu  
    OP
       6 小时 36 分钟前
    @pooorguy 这个就是 需要 trust 那个手机的蓝牙地址
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2622 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 07:38 · PVG 15:38 · LAX 00:38 · JFK 03:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.