Creating local bluetooth device, possible?

Login to reply to this topic.
Mon, 2005-12-05 11:23
Joined: 2003-09-24
Forum posts: 2
Hellos,

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

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

Tue, 2006-01-03 07:58
Joined: 2005-03-06
Forum posts: 183
Re: Creating local bluetooth device, possible?
Not sure, but I dont beleive so
  • Login to reply to this topic.