×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    24

    Problem in using KPropertyKeyBluetoothGetPHYCount(P&S)

    Problem 1:
    SDK say "KPropertyKeyBluetoothGetPHYCount is the key to observe the number of bluetooth physical links attached to the local device, the P&S value will contain the number of physical links". What does "bluetooth physical links attached to the local device" mean? Does that mean pair?

    Problem 2:
    Below is my code to use KPropertyKeyBluetoothGetPHYCount. Why count is always zero even there is one bluetooth pair? Does I use it right?
    Code:
    TUid BtUid;
    BtUid = BtUid.Uid(KUidBluetoothPubSubKeyBase);
    User::LeaveIfError(iProperty.Attach(BtUid,KPropertyKeyBluetoothGetPHYCount));
    RProperty::Define(BtUid,KPropertyKeyBluetoothGetPHYCount,RProperty::EInt);
    iProperty.Subscribe(iStatus);
    TInt count;
    if (iProperty.Get(count)==KErrNotFound)
        {
        // property deleted, do necessary actions here...
        iconsole->Write(_L("KErrNotFound\n"));
        }
    else
        {
        iconsole->Printf(_L("count=%d\n"),count);
        }
    Thanks in advance.

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Problem in using KPropertyKeyBluetoothGetPHYCount(P&S)

    I think you can't define like
    RProperty:efine(BtUid,KPropertyKeyBluetoothGetPHYCount,RProperty::EInt); BTstack is doing that for us, we just listen the P&S key. This key gives current physical connection.

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    24

    Re: Problem in using KPropertyKeyBluetoothGetPHYCount(P&S)

    I totally agree with you. In the begining, I didn't define it, but there's a KErrNotFound when execute iProperty.Get(count), SDK says this error is caused by the property has not been defined. I have sent you an email, please give me some help. the email attachment is almost my whole code.
    Quote Originally Posted by mahbub_s60 View Post
    I think you can't define like
    RProperty:efine(BtUid,KPropertyKeyBluetoothGetPHYCount,RProperty::EInt); BTstack is doing that for us, we just listen the P&S key. This key gives current physical connection.

Similar Threads

  1. HandleKeyEventL && ActiveObj && While problem...
    By sir graham in forum Symbian C++
    Replies: 6
    Last Post: 2009-11-30, 09:17
  2. 可以通过电脑向手&
    By jllts2000 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2004-12-02, 10:07
  3. Replies: 1
    Last Post: 2004-08-04, 08:16
  4. 咨询关于7210的一个问
    By lxczyllxc0003 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-20, 10:58
  5. Replies: 4
    Last Post: 2004-04-05, 02:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •