蓝牙技术
直播中

五斤麻辣油

8年用户 1219经验值
擅长:电源/新能源
私信 关注
[问答]

CYW54591无法通过GFATT创建新服务的原因?怎么处理?

我们有一个默认的NVIDIA jetson nano和WiFi-BT模块(CYW54591
在测试BLE时,我们无法为GATT配置文件创建服务,因为我们的用例主要是用于交换数据的BLE 虽然关贸总协定
我们的BT模块通过UART连接,我们在启用所需的GPIO后使用以下命令启动模块
sudo hciattach /dev/ttyTHS2 bcm43xx 3000000 flow -t 20

我们已经使用 bluetoothctl 工具对此进行了测试, bluez 版本 5.48 是 SD
K Jetpack 版本 4.6.2 和内核版本 4.9.253 中提供的默认版
来自蓝牙 /ctl 工具的日志
Failed to register application: org.bluez.Error.Failed
来自 journalctl 的日志在下面共享
Dec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: src/gatt-database.c:manager_register_app() Registering application: :1.75:/Dec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: src/gatt-database.c:proxy_added_cb() Object received: /org/bluez/app, iface: org.bluez.GattProfile1Dec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: src/gatt-database.c:proxy_added_cb() Object received: /org/bluez/app/service0x557b8754e0, iface: org.bluez.GattService1Dec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: src/gatt-database.c:proxy_added_cb() Object received: /org/bluez/app/service0x557b8754e0/chrc0x557b851cd0, iface: org.bluez.GattCharacteristic1Dec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: src/gatt-database.c:proxy_added_cb() Object received: /org/bluez/agent, iface: org.bluez.Agent1Dec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: src/gatt-database.c:profile_add() Added ":1.75/org/bluez/app/register-application"Dec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: Invalid characteristic flag: 0xbbbbDec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: Failed to parse characteristic propertiesDec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: No valid external GATT objects foundDec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: src/gatt-database.c:profile_remove() Removed ":1.75/org/bluez/app/register-application"Dec 10 09:38:06 tegra-ubuntu bluetoothd[7008]: src/gatt-database.c:profile_release() Releasing ":1.75"Dec 10 09:38:06 tegra-ubuntu dbus-daemon[3895]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.74" (uid=0 pid=7008 comm="/usr/lib/bluetooth/bluetoothd -d --noplugin=audio,") interface="org.bluez.GattProfile1" member="Release" error name="(unset)" requested_reply="0" destination=":1.75" (uid=0 pid=7080 comm="bluetoothctl ")
你能否告诉我们,要使用 关贸总协定 配置文件添加一项新 服务 ,以验证通过 BLE 进行基本通信,使用 jets on nano 中的默认 b luez 软件包进行基本通
                                                                                                                                                                                                                                                                                                                                                                                                   

回帖(1)

h1654155216.9102

2024-3-1 18:11:27
有几个可能的原因解释为什么您无法为GATT配置文件创建服务:

1. 蓝牙芯片的功能限制:某些蓝牙芯片可能不支持在主机模式下创建GATT服务。请确保您的CYW54591芯片支持此功能。

2. 蓝牙配置错误:可能发生了蓝牙配置错误,导致无法创建服务。您可以尝试重新配置蓝牙模块,确保所有必要的配置参数正确设置。

3. 软件问题:可能是由于软件版本或驱动问题导致的。尝试升级到最新的蓝牙软件版本,并确保所有必要的驱动程序已正确安装。

为了解决这个问题,您可以尝试以下步骤:

1. 确认CYW54591芯片是否支持在主机模式下创建GATT服务。您可以查阅芯片的技术规格文档或联系生产厂商获取更多信息。

2. 检查蓝牙配置是否正确。确保所有配置参数都正确设置,例如设备名称、安全性要求等。

3. 尝试升级蓝牙软件版本。查看是否有最新的蓝牙软件可用,并安装它以确保解决了可能存在的软件问题。

4. 检查驱动程序是否正确安装。确保所需的驱动程序已正确安装,并按照设备制造商提供的说明进行配置。


举报

更多回帖

发帖
×
20
完善资料,
赚取积分