| Reply | « Previous Thread | Next Thread » |
|
Is there ANY way of filtering devices by major/minor device class during Bluetooth discovery on a Series 60 phone?I have tied the simpler Rnotifier method:-
….. if (!iIsDeviceSelectorConnected) { User::LeaveIfError(iDeviceSelector.Connect()); iIsDeviceSelectorConnected = ETrue; } // Request a device selection TBTDeviceSelectionParamsPckg selectionFilter; selectionFilter().SetUUID(ServiceClass()); selectionFilter().SetDeviceClass(TBTDeviceClass(KMajorServiceClass….,KMajorDeviceClass...,KMinorDeviceClass….)); iDeviceSelector.StartNotifierAndGetResponse( aObserverRequestStatus, KDeviceSelectionNotifierUid, selectionFilter, iResponse); ….. No filtering of devices takes place (as mentioned in other postings in this forum). Following Seppo's advice I then changed to an RHostResolver based approach using my own Active Object and UI:- …. // initialize host resolver User::LeaveIfError(iResolver.Open(*iSocketServ, pdesc.iAddrFamily, pdesc.iProtocol)); // start device discovery by invoking remote address lookup iAddr.SetIAC(KGIAC); iAddr.SetAction(KHostResInquiry|KHostResName|KHostResIgnoreCache); iAddr.SetMajorClassOfDevice(EMajorDevicePhone); //DOESNT WORK! iResolver.GetByAddress(iAddr, iEntry, iStatus); SetActive(); // using local request status …. The RunL code contains:- // new device data entry TDeviceData *devData = new (ELeave) TDeviceData(); devData->iDeviceName = iEntry().iName; devData->iDeviceAddr = static_cast<TBTSockAddr>(iEntry().iAddr).BTAddr(); devData->iDeviceServicePort = 0; // add device data entry iDeviceList.Append(devData); …. // get next discovered device iResolver.Next(iEntry, iStatus); SetActive(); Unfortunately, this method dosen't provide any filtering either! (all devices are shown) Does ANYBODY know how this can be done on a Series 60 phone? If Nokia are aware that this is not possible, I would like to know, if any of you have a good solution to this , I would also be very grateful. Many Thanks Jason |
|
Quote:
Did you find any solution for the same for device filtering...if yes, then do let me know please... Thanks Alot Regards Amit |
| amitsingh18 |
| View Public Profile |
| Find all posts by amitsingh18 |
|
Hi,
I have exactly the same problem! I found many posts on the forum but no clear answer whether it is a problem of the sdk or that we are unable to use it correctly. I tried both RNotifier and RHostResolver to filter the devices, but no way, all the devices are shown in all kind of combinations of Major and Minor Classes and Services! I hope somebody can help all of us that have this problem! Thank you! ![]() |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|