'discover-unprovisioned on' does not detect nodes available on other system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm testing mesh using 2 raspberry PI 5 on which I've recompile &
install the latest 5.77 version
I try a basic test where on
PI-1 I join (mesh-cfgclient) a node
PI-2 I try to discover it

I can discover the node on PI-1 but not on PI-2 .... ?
Same system on both side, same stack, same version

Find below my test case.
If an expert in the community could help me that would be great !!!

Regards

On both PI
sudo systemctl disable bluetooth
sudo systemctl stop bluetooth
in /etc/bluetooth/main.conf, AutoEnable=false then reboot

On PI-1
Terminal-1
sudo rm -rf ~/.config/meshcfg/config_db.json
sudo rm -fr /root/.config/meshcfg/config_db.json
sudo rm -rf /var/lib/bluetooth/mesh
sudo mkdir /var/lib/bluetooth/mesh
sudo /usr/libexec/bluetooth/bluetooth-meshd -nd --debug

Terminal-2
sudo mesh-cfgclient
create

Terminal-3
pyhton3 test-mesh
join
==> here I get: Joining with UUID 346d6b0cf5b8446d9beff2078ec9bfdf

Terminal-2
discover-unprovisioned on
list-unprovisioned
==> Here I get:
Unprovisioned devices:
#1 UUID: 346D6B0CF5B8446D9BEFF2078EC9BFDF, RSSI 0, Server: 0001

Up to here all looks fine

On the PI-2, I try to discover the the un provisioned node active on the PI-1
PI-2 & PI-1 have the same 5.77 bluez stack recompile

On PI-2
Terminal-1
sudo rm -rf ~/.config/meshcfg/config_db.json
sudo rm -fr /root/.config/meshcfg/config_db.json
sudo rm -rf /var/lib/bluetooth/mesh
sudo mkdir /var/lib/bluetooth/mesh
sudo /usr/libexec/bluetooth/bluetooth-meshd -nd --debug

Terminal-2
sudo mesh-cfgclient
create
discover-unprovisioned on
list-unprovisioned
Unprovisioned devices:

====>>>
The problem is that my list-unprovisioned on PI-2 / Terminal-2 does
not retrieve anything

I see nevertheless, on PI-2 (see meshd logs below) some beacon
activity, but I don't understand why I can get them on the
list-unprovisioned

Thanks very much for your support
Regards
user@localhost:~ $ sudo /usr/libexec/bluetooth/bluetooth-meshd -nd --debug
D-Bus ready
Loading node configuration from /var/lib/bluetooth/mesh
mesh/mesh-mgmt.c:mesh_mgmt_list() send read index_list
mesh/mesh.c:mesh_init() io 0x55567219e080
mesh/mesh-mgmt.c:read_index_list_cb() Number of controllers: 1
mesh/mesh-mgmt.c:read_info_cb() hci 0 status 0x00
mesh/mesh-mgmt.c:read_info_cb() settings: supp 0001feff curr 00000080
mesh/mesh-mgmt.c:features_cb() Status: 0, Length: 4
index 0 up:1 pwr: 0 mesh: 1
mesh/mesh-io-mgmt.c:read_info_cb() hci 0 status 0x00
Controller hci 0 not in use
mesh/mesh-io-mgmt.c:le_up() HCI0 LE up status: 0
mesh/mesh-io-mgmt.c:ctl_up() HCI0 is up status: 0
mesh/mesh-io-mgmt.c:ctl_up() done 0 mesh startup
mesh_ready_callback
Added Network Interface on /org/bluez/mesh
mesh/mesh-io-mgmt.c:mesh_up() HCI0 Mesh up status: 0
mesh/mesh.c:create_network_call() Create network request
mesh/node.c:node_create()
mesh/node.c:get_app_properties() path /mesh/cfgclient
mesh/node.c:get_element_properties() path /mesh/cfgclient/ele0
mesh/mesh-config-json.c:mesh_config_create() New node config
/var/lib/bluetooth/mesh/f449ed321026445a888075a0f85f18f6/node.json
mesh/mesh-config-json.c:mesh_config_net_key_add() netKey 0000
mesh/net.c:trigger_heartbeat() HB: 0002 --> 0
mesh/net.c:mesh_net_set_friend_mode() mesh_net_set_friend_mode - 0
mesh/net.c:trigger_heartbeat() HB: 0001 --> 0
mesh/cfgmod-server.c:cfgmod_server_init() 00
mesh/prvbeac-server.c:prv_beacon_server_init() 00
mesh/keyring.c:keyring_put_remote_dev_key() Put Dev Key
/var/lib/bluetooth/mesh/f449ed321026445a888075a0f85f18f6/dev_keys/0001
mesh/mesh.c:create_node_ready_cb() Calling JoinComplete (create)
mesh/mesh.c:attach_call() Attach
mesh/node.c:get_app_properties() path /mesh/cfgclient
mesh/node.c:get_element_properties() path /mesh/cfgclient/ele0
mesh/node.c:build_element_config() Element 0
mesh/node.c:dev_key_send_call() DevKeySend
mesh/mesh-config-json.c:mesh_config_write_seq_number() Seq Cache: 1 -> 30001
mesh/model.c:mesh_model_rx() iv_index 00000000 key_aid = 00
mesh/util.c:print_packet() 43751.675 Clr Rx: 800880
mesh/cfgmod-server.c:cfg_srv_pkt() CONFIG-SRV-opcode 0x8008 size 1 idx 000
mesh/model.c:mesh_model_rx() iv_index 00000000 key_aid = 00
mesh/util.c:print_packet() 43751.675 Clr Rx:
0200f10502000100ff7f050000000600000001000400050008000900
mesh/cfgmod-server.c:cfg_srv_pkt() CONFIG-SRV-opcode 0x2 size 27 idx 000
mesh/prvbeac-server.c:prvbec_srv_pkt() PRV-BEAC-SRV-opcode 0x2 size 27 idx 000
mesh/model.c:send_dev_key_msg_rcvd() Send "DevKeyMessageReceived"
mesh/prvbeac-server.c:prvbec_srv_pkt() PRV-BEAC-SRV-opcode 0x8008 size 1 idx 000
mesh/model.c:mesh_model_rx() iv_index 00000000 key_aid = 00
mesh/util.c:print_packet() 43754.793 Clr Rx: 8052053c
mesh/cfgmod-server.c:cfg_srv_pkt() CONFIG-SRV-opcode 0x8052 size 2 idx 000
PB-SVR: src 0001 dst 0001
mesh/util.c:print_packet() 43754.794 App Tx: 80540001053c
mesh/model.c:mesh_model_rx() iv_index 00000000 key_aid = 00
mesh/util.c:print_packet() 43754.794 Clr Rx: 80540001053c
mesh/cfgmod-server.c:cfg_srv_pkt() CONFIG-SRV-opcode 0x8054 size 4 idx 000
mesh/prvbeac-server.c:prvbec_srv_pkt() PRV-BEAC-SRV-opcode 0x8054 size 4 idx 000
mesh/prvbeac-server.c:prvbec_srv_pkt() PRV-BEAC-SRV-opcode 0x8052 size 2 idx 000
mesh/util.c:print_packet() 43757.940 Set SNB to:
2b01002a9d9d56281cefca0000000005e47ebf08b81ef0
mesh/net-keys.c:net_key_beacon_refresh() Set Beacon: IVI: 00000000,
IVU: 0, KR: 0
mesh/net-keys.c:beacon_timeout() beacon 1 for 1 nodes, period 20, obs 2, exp 3
mesh/net-keys.c:beacon_timeout() beacon 1 for 1 nodes, period 20, obs 2, exp 2
mesh/net-keys.c:beacon_timeout() beacon 1 for 1 nodes, period 20, obs 2, exp 2
mesh/manager.c:scan_cancel()
mesh/model.c:mesh_model_rx() iv_index 00000000 key_aid = 00
mesh/util.c:print_packet() 43814.794 Clr Rx: 8053
mesh/cfgmod-server.c:cfg_srv_pkt() CONFIG-SRV-opcode 0x8053 size 0 idx 000
mesh/prvbeac-server.c:prvbec_srv_pkt() PRV-BEAC-SRV-opcode 0x8053 size 0 idx 000
mesh/net-keys.c:beacon_timeout() beacon 1 for 1 nodes, period 20, obs 2, exp 2




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux