linux - 蓝牙 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 年指南的模式,下载文件,编译它们并在其中一个中发现错误(重复)。
感谢您加快阅读此问题的速度,感谢您的任何帮助。
解决方案
推荐阅读
- magento - Magento 2 未完全保护错误且管理员无法正常工作
- mysql - MySQL中的条件连接查询
- text - 如何在颤动中从“相机”或“画廊”捕获的“图像”上添加文本?
- javascript - React - 如果更新 div/span 的值,如何触发动画?
- php - 在我按下刷新符号之前,我的购物车 Div 不会刷新
- java - Lambda 合并内部对象列表
- angular - 在角度 8 的一个请求中发送图像和 json 数据时出错
- django - 当新用户在 Django 应用程序中注册时向管理员发送电子邮件
- c# - 如何在 azure bot(网络聊天)中将置信度分数阈值设置为 50%?
- opengl - glVertexAttribPointer 提高 GL_INVALID_OPERATION 版本 330