首页 > 解决方案 > 蓝牙 Linux ARM 文件传输

问题描述

我有一块带有 BCM434 芯片的控制板。试图让蓝牙运行几天。我对此很陌生,检查相关主题中的问题会有所帮助,但对初学者不太友好。

我需要我的设备做什么:我需要让我的设备成为其他设备通过蓝牙连接并将文件发送到我的设备的服务器。我的板子没有输入方法,所以最好连接没有引脚输入或自动输入。

这是我到目前为止发现的内容:我按照此链接上的指南进行操作:https ://wiki.beyondlogic.org/index.php?title= Cross_Compiling_BlueZ_Bluetooth_tools_for_ARM 安装 bluez(版本 5.28,但从该链接下载所需的库:http: //www.linuxfromscratch.org/blfs/view/7.7/general/bluez.html)。它对理解 bluez 的要求有很大帮助,但不幸的是,我在构建 BlueZ“make”部分时遇到了麻烦。出现以下错误:

make --no-print-directory all-am
CCLD   client/bluetoothctl
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find -lglib-2.0
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find -ldbus-1
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find -lreadline
collect2: error: ld returned 1 exit status
make[1]: *** [client/bluetoothctl] Error 1
make: *** [all] Error 2

我通读了以下链接的第 4 章:https ://people.csail.mit.edu/albert/bluez-intro/c404.html

所以我假设如果我正确安装了 bluez,我可以编写一个运行 bluez 或“hciconfig hci0 up”的 bash 脚本来唤醒蓝牙。然后我只是在系统启动时运行脚本?

我真的需要一个清晰的指南,说明我需要做什么以及我误解了哪一部分。现在我处于阅读 ~2014 年指南的模式,下载文件,编译它们并在其中一个中发现错误(重复)。

感谢您加快阅读此问题的速度,感谢您的任何帮助。

标签: linuxbluetootharmcross-compilingfile-transfer

解决方案


推荐阅读