蓝牙配网问题

IPC/NVR/可视门铃等具备多媒体能力的设备,扫地机/AGV等机器人设备


Post Reply
青柠1234
Posts: 17

在蓝牙配网流程卡这里,第一条验证数据可以下发 uuid:00000001-0000-1001-8001-00805f9b07d0
att======0x0 0x21 0x20 0x1 0xe6 0xcd 0x1d 0x15 0xc7 0x8f 0xb9 0xbc 0x3 0xde 0xf5 0x60 0x7b 0x22 0x2f 0x9b 0xc7 0xd3 0x65 0xc4 0xbd 0xca 0xfc 0xe2 0x14 0x77 0x58 0x89 0xa 0xe7 0xcd 0xc0 ;接着我这也用通知uuid 回复这条数据,但是没接收到下一条读数据了?具体什么原因?


Tags:
郭老庄
Posts: 323

Re: 蓝牙配网问题

你是用我们提供的demo测试的吗?https://developer.tuya.com/cn/docs/iot- ... Peripheral

青柠1234
Posts: 17

Re: 蓝牙配网问题

我是参考这个demo的,现在不太清楚这些对应的参数是什么,vent.gatt_event.write_report.char_handle = uuid;
event.gatt_event.write_report.report.p_data = data;
event.gatt_event.write_report.report.length = len; gatt层拿到数据具体要传哪些数据

Attachments
蓝牙配网demo.rar
(8.02 MiB) Downloaded 4 times
郭老庄
Posts: 323

Re: 蓝牙配网问题

demo是用来测试tkl_ble接口的。代码仅需要tkl_ble的实现以及tuyaos_tkl_ble_peripheral_test.c(不需要tuya sdk)。配合使用APP验证广播与扫描响应包,服务注册,以及通过回环测试验证设备的接收和发送(APP端发一笔数据,设备收到后,再发出去,检查APP是否能收到)。
如果测试没问题,再把tkl_ble的实现拷贝进ipc开发框架,使用tuya sdk验证配网功能

青柠1234
Posts: 17

Re: 蓝牙配网问题

[01-01 00:00:03 ty D][tuya_ble_svc.c:890] rev ble event 4
[01-01 00:00:03 ty N][tuya_ble_svc.c:512] Ble Connected
[01-01 00:00:03 ty N][tuya_ble_data_handler.c:67] ble reset sn

Ble Connected 链接成功后,报]ble reset sn是什么原因呢

郭老庄
Posts: 323

Re: 蓝牙配网问题

这是正常的

Post Reply