V2EX 09月21日
Debian开启OBEX服务实现蓝牙文件传输
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文介绍了在Debian系统中开启OBEX服务以实现蓝牙文件传输的方法,包括服务启动、状态确认以及信任手机蓝牙地址等步骤。

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

systemctl --user start obexsystemctl --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/user@1000.service/app.slice/obex.service             └─117672 /usr/libexec/bluetooth/obexduser@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 ,系统接受完成后顶部就会有提示

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Debian OBEX 蓝牙文件传输 系统配置 蓝牙设备
相关文章