Author Topic: Pair with friendlyname only  (Read 1617 times)

Offline Edje11

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Pair with friendlyname only
« on: February 10, 2010, 05:49:19 PM »
Hi Folks,

We have designed an portable device with bluetooth. However putting it in "connectable and discoverable"  consumes to much power and drains the battery's to fast.
To save power we want to put it in "Connectable but not discoverable" mode.
And now the question; Connecting to the "Not discoverable" device with the mac-address works perfect with WclVirtualCOMPort.Address = "(00:80:98:E6:88:5E)", but it's for our future customers not that neat to enter an mac address.
It would be nice if you can pair with help of the friendlyname, can this be done with the .net library?
Some pseudo code ; WclVirtualCOMPort.name = "MyDevice_0123"
Or is there an other way to find out the mac-adress with the Friendlyname.


Online Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: Pair with friendlyname only
« Reply #1 on: February 10, 2010, 06:05:23 PM »
Hi,

There is not way to pair or connect to device with just its name. You must know MAC address to connect to. However, if you have device's name (note that device's name is not unique and can be any and identical for 2 or more devices) you can discover devices around PC and check its names. Then find needed one by its name and get MAC. But if your device is not in discoverable mode than there is only one way to pair/connect - know its MAC.

 

Sitemap 1 2 3 4 5 6 7 8 9