×

Discussion Board

Results 1 to 1 of 1

Thread: CommDB troubles

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    CommDB/Bluetooth LAP troubles

    Hi,

    In Nokia 3650 and 7650 there is no UI method for setting Internet Access Points to be Bluetooth Access Points. This problem can be averted with first doing the following:

    Create one access point from the settings menu named BT Internet. Use GSM Data and set phone number to whatever comes into your mind.

    Then run the following code from a custom application (Bluetooth AP inquiry and setting omitted):

    CCommsDbTableView* table;
    table = iCommDb->OpenTableLC(TPtrC(DIAL_OUT_ISP));
    table->GotoFirstRecord();
    table->UpdateRecord();
    table->WriteTextL(TPtrC(COMMDB_NAME), _L("Bluetooth IAP"));
    table->WriteTextL(TPtrC(ISP_DEFAULT_TEL_NUM),KNullDesC);
    table->PutRecordChanges();
    table = iCommDb->OpenTableLC(TPtrC(MODEM));
    table->GotoFirstRecord();
    table->UpdateRecord());
    table->WriteTextL(TPtrC,(MODEM_PORT_NAME),_L("BTCOMM::0"));
    table->WriteTextL(TPtrC(MODEM_CSY_NAME),_L("BTCOMM"));
    table->WriteTextL(TPtrC(MODEM_TSY_NAME),KNullDesC);
    table->PutRecordChanges();

    This clears the phonenumber in the CommDB and sets the modem to use Bluetooth as a bearer (This causes the OS to start a PPP in top of the connection once it's launched). When user then opens a web browser for example and start surfing he only has to pick the BT Internet and it automatically opens the Bluetooth connection and the whole setup is transparent to the application. This way user can surf the web, read email etc.. over the Bluetooth PPP link and everything works like a charm.

    However, in the v2.0 this approach does not work anymore. Just by clearing the phonenumer and setting modem setup as above the connection doesn't get established. Can someone give me instructions what exactly has changed in the PPP launching mechanisms and what kind of database record should a transparent Bluetooth Lan Access Profile have in the CommDB?

    Thanks,
    Teemu
    Last edited by teemuva; 2003-11-20 at 14:05.

Posting Permissions

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