Symbian
Symbian OS Library

FAQ-1259 How can I migrate to the new Bluetooth virtual serial port configuration APIs in 8.0 ?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: PAN (Bluetooth, USB, Irda)
Created: 04/14/2005 Modified: 04/18/2005
Number: FAQ-1259
Platform: Symbian OS v6.1, Symbian OS v7.0, Symbian OS v7.0s, Symbian OS v8.0a, Symbian OS v8.1a, Symbian OS v8.1b

Question:
I am having difficulty running Series 60 code written for v6.1 and v7.0s phones on newer Symbian OS phones using 8.0a and/or recompiling my code on new SDKs, such as the Series 60 2nd Edition FP2.

Answer:
    You may be experiencing such problems if you are using the Bluetooth Registry for configuring the Bluetooth virtual serial port settings.
    Previously with Symbian OS v6.1/v7.0 and v7.0s you would have used the API as declared in btregistry.h. In v8.0a you have to include btdefcommport.h and btmanclient.h instead. Moreover, you need to link against btmanclient.lib as opposed to btregistry.lib in your MMP file.

    Unfortunately, btdefcommport.h is missing from S60 v2 FP2 SDK, and you can't reuse the 7.0s btdefcommport.h found in the Series 80 v2 and Techview v7.0s SDKs. Use the supplied v8.0a btdefcommport.h file by copying it into your v8.0a SDK's \epoc32\include directory.

    The new Bluetooth API is documented in the Symbian OS v8.1a developer library on Symbian Developer Network website (http://www.symbian.com/developer/techlib/sdl.html).

    Examples of its usage can be found in the source of the BTComm Control application in the example applications section of the Symbian Developer Network website (http://www.symbian.com/developer/development/index.html#example)