mcumgr failed to connect ble device via peer_name

I am running smp_svr demo on my nrf54l15DK board, and use mcumgr command on my linux.

I could connect to my ble device and echo hello successfully (via peer_name='Zephyr'), as the pic shows.

But when I tried to via peer_id to connect device, it warned "failed to connect to peer after 10s".

As the pic shows, I am definitely ensure that the MAC of device is correct, but I still failed to connect it via peer_id.

So what is the difference between peer_id and peer_name? Why can't I connect to device via peer_id?

Parents
  • Hi again, 

    This looks odd to me. 

    So what is the difference between peer_id and peer_name? Why can't I connect to device via peer_id?

    There shouldn't be a massive difference besides the name maybe being more practical, both should work. 

    Could you try not using quotation marks around the argument for connstring? That is the only thing I am seeing that sepereates what you are doing from the docs.

    Regards,

    Elfving

Reply
  • Hi again, 

    This looks odd to me. 

    So what is the difference between peer_id and peer_name? Why can't I connect to device via peer_id?

    There shouldn't be a massive difference besides the name maybe being more practical, both should work. 

    Could you try not using quotation marks around the argument for connstring? That is the only thing I am seeing that sepereates what you are doing from the docs.

    Regards,

    Elfving

Children
Related