Connecting by Bluetooth

The Profiler agent can be wirelessly transferred to and from Bluetooth enabled Nokia S60 devices. Our overall goal is to:

  1. Enable Bluetooth devices on the target device and PC.
  2. Allow the target’s Bluetooth device to find and connect to the PC’s Bluetooth device, and vice versa.
  3. Transfer the Performance Investigator Profiler .sisx files to the target device, and install them.
  4. After profiling your application, transfer, import and analyze the profiler (.dat) data file.

To enable communication with a Bluetooth device, a connection must be established between the PC and the device. Follow the steps below for a typical Bluetooth connection with a Bluetooth enabled device.

This example shows how to setup a Bluetooth connection on a PC running Windows XP SP2. The actions to setup Bluetooth connections may be different on your version of Windows. Refer to the OS documentation and your Bluetooth installation for information on configuring Bluetooth connections.

Steps to Setup a Bluetooth Connection

  1. Enable Bluetooth on the Symbian OS target device
  2. For example, select the Communications application on the device, then select Bluetooth.

  3. On your PC, start the Bluetooth device
  4. For example, right-click the Bluetooth icon in your task bar and select Start the Bluetooth device.

  5. Open your Bluetooth Configuration window
  6. For example, select Bluetooth configuration from the control panel or double-click My Bluetooth Places icon on your Desktop.

  7. Click the Accessibility tab and verify the following settings (Figure 1)
  8. Check the option Let other Bluetooth devices discover this computer. Set the option Allow to All Devices.
    Click OK.

    Figure 1. Bluetooth Configuration window's Accessibility panel

  9. Search for Devices in Range

  10. Under Bluetooth Tasks select Search for devices in range (Figure 2).
    After devices are found, select your target device, right-click and select Pair Device.

    Figure 2. Bluetooth Devices in Range

  11. Enter Unique Code
  12. Enter a unique Bluetooth PIN code. It can be any number you choose, such as 123456.

  13. Enter code on Target Device
  14. The target device will prompt you to enter the same code. Enter code to connect devices.

  15. List Functions
  16. On your PC, double-click your device to list available functions.

  17. Run File Transfer Program
  18. Double-click OBEX File Transfer to display C: drive folder on target device.

  19. Browse to Transfer Location on Target Device
  20. Browse to the location on the device to transfer Profiler agent SISX file. For example, create a folder on the device called C:\Data\CarbidePI Installer.

  21. Transfer Performance Investigator .sisx files to Target Device
  22. Locate the Profiler agent SISX file on your PC that you saved from the Install remote agents pane in the On-device Connections wizard and drag it to the Window representing the C:\Data\CarbidePI Installer folder on the device. Leave this window open for transferring your profiler data file.

Transfering a DAT File

Once you've collected some data from a profiler run, you'll need to transfer the DAT file back to your PC for analysis.

  1. Connect to the Device using Bluetooth (as described above)
  2. Locate Profiler Data File
  3. On your PC, in your Bluetooth connection window (used previously) navigate to C:\root folder on phone and select View > Refresh to update the list of files.

  4. Transfer Profiler Data File to PC
  5. Your new profiler data file should be listed. Drag this file to your PC.

After you have the profiler data file on your PC you can import it into Carbide.c++ to analyze the captured data.

Related references