×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    18

    Local bluetooth device

    Hellos,

    Is it possible to create "virtual" "local bluetooth device", which
    points in bluetooth service running on local device?

    In practise this device would for example simulate GPS receiver, but
    instead of pointing in real H/W, it points into service on
    local device outputting NMEA string..?

    In theory it could be possible with:

    - Create bluetooth service and get it's TBTDevAddr

    Then register it into CCommsDatabaseBase:

    CCommsDatabase * db = CCommsDatabase::NewL( ETrue );
    CCommsDbTableView * view1 = db->OpenTableLC( TPtrC( BT_DEVICE_TABLE ) );
    view1->InsertRecord(btId);
    view1->WriteTextL(TPtrC(BT_DEV_FRIENDLY_NAME), _L("Virtual GPS"));
    view1->WriteTextL(TPtrC(BT_DEV_ADD), addr); // insert here the TBTDevAddr acquired before!
    view1->WriteUintL(TPtrC(BT_DEV_STATE), (TUint32) 923);
    view1->PutRecordChanges();

    ?

    --noxo

  2. #2
    Regular Contributor
    Join Date
    Feb 2006
    Location
    Slovakia
    Posts
    76

    Re: Local bluetooth device

    did you succeed with that? I also want to simulate BT GPS receiver..

Similar Threads

  1. Replies: 4
    Last Post: 2007-09-04, 17:14
  2. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26
  3. Local Bluetooth device address??
    By timbe78 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-06-05, 04:01
  4. Bluetooth discovery with device scanning
    By arto_koskela in forum Symbian
    Replies: 2
    Last Post: 2004-09-10, 08:40
  5. Bluetooth update to local device
    By MIC331 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-02-25, 08:17

Posting Permissions

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