This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/WL1837MOD:在使用 Linux Bluez 通过蓝牙实施个人局域网(PAN)时遇到问题

Guru**** 2893300 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/606370/linux-wl1837mod-having-problems-implementing-personal-area-network-pan-over-bluetooth-using-linux-bluez

器件型号:WL1837MOD

工具/软件:Linux

我们在使用 TI Linux SDK 和 Linux 4.4.419版通过蓝牙实施 PAN 服务时遇到问题。 (我们的架构使用 ARM AM335x)

我们可以通过蓝牙使用 SP 服务、方法是在 Linux 上使用以下命令:

dbus 守护程序--system
蓝本
hciattach /dev/ttyO4 Texas 3000000
hciconfig hci0名称'CARLOSBT'
hciconfig hci0 sspmode 1
hciconfig hci0 piscan
hciconfig hci0向上
sdptool -i hci0添加 SP
hciconfig -a
RFCOMM 观看/dev/rfcomm0 1 &

这种方法非常有效、我们能够通过蓝牙进行连接并来回发送字符(设备之间的连接)

然后、我们尝试将 PANU 服务添加到蓝牙

sdptool -i hci0添加 PANU

PAND --Listen --role PANU -n &

然后、我们尝试连接到蓝牙设备

我们从 PC 收到以下消息:

这是器件命令行中显示的消息:

bluetoothd[216]:plugins/mgmttops.c:mgmt_event()条件1.
bluetoothd[216]:plugins/mgmttops.c:mgmt_event()从管理套接字接收35个字节
bluetoothd[216]:plugins/mgmttops.c:mgmt_device_connected () hci0 device 00:19:0E:17:24:A1 connected eir_len 16
bluetoothd[216]:src/adapter.c:adapter_get_device () 00:19:0E:17:24:A1
bluetoothd[216]:network/server.c:confirm_event() BNEP:从00:19:0E:17:24:A1传入连接
bluetoothd[216]:plugins/mgmttops.c:mgmt_event()条件1.
bluetoothd[216]:plugins/mgmttops.c:mgmt_event()从管理套接字接收到14个字节
bluetoothd[216]:plugins/mgmttops.c:mgmt_device_disconnected () hci0器件00:19:0E:17:24:A1已断开连接
bluetoothd[216]:src/event.c:BTD_EVENT_disconn_COMPLETE ()
bluetoothd[216]:src/adapter.c:adapter_remove_connection()

有什么想法可以做什么? 是否有人知道如何使用 TI 的 Linux SDK、BlueZ 和 PAND 在 Linux 中实现 PAN?