Mihir Solanki

mihirsolanki.com

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

Links

Subscriptions

Post Categories



How to create a CAB provisioning format (.cpf) file for the Mobile Devices?

1. Create a valid provisioning XML file named _setup.xml.

Here is an example xml file which can be use to change a device's Bluetooth radio into Discoverable mode.

<wap-provisioningdoc>
   <characteristic type="Bluetooth">
      <parm name="BtMode" value="2"/>
   </characteristic>
</wap-provisioningdoc>

Possible BtMode (Bluetooth Mode) values are:

 0 - Off
 1 - On
 2 - Discoverable

2. Use the makecab utility, which is included with the Smartphone SDK and the Pocket PC SDK, to create a .cab file.

// For Smartphone
makecab _setup.xml myprovxml.cab

// For Pocket PC
makecab /D COMPRESS=OFF _setup.xml name.cpf

Note : Pocket PC does not support compressed .cpf files.

3. Rename the resulting .cab file to .cpf
4. Copy the .cpf file to the device and install it.
5. and thats all, it will set the device's Bluetooth setting to Discoverable Mode

-- Mihir

posted on Friday, March 11, 2005 2:07 PM by mihirsolanki





Powered by Dot Net Junkies, by Telligent Systems