0

I am trying to open a bluetooth mesh network with my Raspberry Pi and a Qorov DWM3001CDK dev board where I run a Zepyhr RTOS.

I like to work with Python to do that so I got the bluetooth-mesh package for that. (https://github.com/SilvairGit/python-bluetooth-mesh)

For testing I also tried this package: https://github.com/dominikberse/homeassistant-bluetooth-mesh

When I am scaning for unprovisioned devices I can find my DEV board. But when I am start the provision process it always ends with an bad-pdu error.

The same result I got when I use the bluez mesh-cfgclient. The system says that it like to get an hexadecimal key and than after a few seconds I get the bad-pdu

There Termial ouput looks like:

Unprovisioned devices:
UUID: C713030EB87D4B90B5E70A51E8AA8E66, RSSI -67, Seen: Sat Jan 21 16:55:00 2023
[mesh-cfgclient]# provision C713030EB87D4B90B5E70A51E8AA8E66
Provisioning started
Request hexadecimal key (hex 16 octets)
[[mesh-agent]# ] Enter key (hex number): Provisioning failed:
[[mesh-agent]# ] Enter key (hex number):    UUID = C713030EB87D4B90B5E70A51E8AA8E66
[[mesh-agent]# ] Enter key (hex number):    bad-pdu
[[mesh-agent]# ] Enter key (hex number): 

The bluez log looks like:

mesh/prov-initiator.c:int_prov_auth() auth_method: 1
mesh/agent.c:prompt_input() Send "static-oob" input request to :1.55 /mesh/cfgclient/agent
mesh/net-keys.c:snb_timeout() beacon 1 for 1 nodes, period 20, obs 2, exp 2
mesh/net-keys.c:snb_timeout() beacon 1 for 1 nodes, period 20, obs 2, exp 2
Bad response length: 0 (need 16)
mesh/pb-adv.c:send_adv_segs() Sending 1 fragments for 2 octets
mesh/pb-adv.c:send_adv_segs() max_seg: 00
mesh/pb-adv.c:send_adv_segs() size: 02, CRC: e6
mesh/pb-adv.c:pb_adv_packet() PB-ADV start with 0 fragments, 2 octets
mesh/prov-initiator.c:int_prov_rx() Provisioning packet received type: 09 (2 octets)
Expected 05, Got:09
mesh/prov-initiator.c:int_prov_rx() Failing... 3
mesh/pb-adv.c:send_adv_segs() Sending 1 fragments for 2 octets
mesh/pb-adv.c:send_adv_segs() max_seg: 00
mesh/pb-adv.c:send_adv_segs() size: 02, CRC: e1

The Zepyhr log tells me this when the error apears:


<wrn> bt_mesh_prov: Unexpect msg 0x09 != 0x05 

There is also no key output that I can use to work with.

Thank you very much for your help.

SvHoy
  • 3
  • 1

0 Answers0