蓝牙 - 如何浏览设备上的文件?

Том*_*раћ 12 bluetooth

这听起来可能很愚蠢,但我不知道如何在通过蓝牙连接到 Ubuntu 机器的设备(手机)上浏览文件。我看到连接已建立,我可以将文件从我的电脑发送到手机,但似乎无法找到如何浏览手机的文件系统。

我应该提一下,我的蓝牙适配器是富士康/鸿海,直到最近 Linux 才支持它。但是,现在我可以将手机与计算机配对,并将文件从计算机发送到手机。不起作用的是将文件从手机发送到计算机并在计算机上浏览手机文件。

我之所以问这个问题,其实是想看看我的蓝牙适配器是不是还没有完全支持,或者就是不知道怎么正确使用。

小智 8

  1. 在 /media/mountpoint 中创建一个具有 root 权限的文件夹
  2. 安装 obexfs
  3. 将手机与电脑配对
  4. 获取设备 MAC 并使用以下命令安装它obexfs

    sudo mkdir /media/mountpoint
    sudo apt-get install obexfs
    hcitool scan
    
    Run Code Online (Sandbox Code Playgroud)

正在扫描...

8F:77:17:77:44:16 My Android Phone

obexfs -b 8F:77:17:77:44:16 /mountpoint
Run Code Online (Sandbox Code Playgroud)

要卸载设备:

fusermount -u /mountpoint 
Run Code Online (Sandbox Code Playgroud)


小智 2

好的,然后试试这个:

之前测试,如果您的 USB 加密狗被识别,您可以使用以下命令进行测试:

lsusb | grep Bluetooth 
Run Code Online (Sandbox Code Playgroud)

如果您收到此消息,则说明已成功识别:

Bus 003 Device 004: ID 1310:0001 Roper Class 1 Bluetooth Dongle
Run Code Online (Sandbox Code Playgroud)

然后为 ubuntu 安装另一个浏览器:

sudo apt-get install bluez-utils libopenobex1 bluez-tools 
Run Code Online (Sandbox Code Playgroud)

安装后,您必须使用以下命令重新启动蓝牙适配器:

sudo /etc/init.d/bluetooth restart 
Run Code Online (Sandbox Code Playgroud)

或使用此命令

sudo service bluetooth restart 
Run Code Online (Sandbox Code Playgroud)

使用以下命令获取蓝牙设备的详细信息:

hciconfig --all 
Run Code Online (Sandbox Code Playgroud)

如果一切正常,安装蓝牙小程序