BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-20-2007, 08:50 AM   #1
BBAdmin
BlackBerry Extraordinaire
 
BBAdmin's Avatar
 
Join Date: Feb 2005
Location: Port 3101.org
Model: .
Carrier: .
Posts: 2,491
Talking Windows Mobile GPRS provisioning

Please Login to Remove!

I've been playing around with creating cab files to quickly install GPRS settings on to Windows Mobile devices and thought I'd publish my results in here in case anybody wants or needs them.

Chuck the text below in to a notepad document and edit the sections highlighted in bold as per your networks APN settings.

Quote:
<wap-provisioningdoc>
<characteristic type="CM_GPRSEntries">
<characteristic type="O2">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
<parm name="UserName" value="APNusername" />
<parm name="Password" value="APNpassword" />
<parm name="SwCompression" value="1" />
<parm name="IpHeaderCompression" value="0" />
<parm name="SpecificNameServers" value="1" />
<parm name="DnsAddr" value="PrimaryDNS" />
<parm name="AltDnsAddr" value="AlternateDNS" />
<parm name="Domain" value="" />
<characteristic type="DevSpecificCellular">
<parm name="GPRSInfoValid" value="1" />
<parm name="GPRSInfoAccessPointName" value="AccessPointName" />
<parm name="BearerInfoValid" value="1" />
<parm name="GPRSInfoProtocolType" value="2" />
<parm name="GPRSInfoL2ProtocolType" value="PPP" />
<parm name="GPRSInfoAddress" value="" />
<parm name="GPRSInfoDataCompression" value="1" />
<parm name="GPRSInfoHeaderCompression" value="1" />
<parm name="GPRSInfoParameters" value="" />
</characteristic>
</characteristic>
</characteristic>

<characteristic type="Registry">
<characteristic type="HKCU\ControlPanel\PhoneExtendFunction" translation="filesystem">
<parm name="GPRSAuthenticationMethod" datatype="integer" value="1" />

</characteristic>
</characteristic>
</wap-provisioningdoc>
On the forth line of text you'll see the long string: {436EF144-B4FB-4863-A041-8F905A62C572}. This is basically stating what you're provisioning for, and in this example it is for GPRS internet settings. If, for example, you were creating a config file for Wi-Fi this would be different. You can track some of these down in the MSDN blogs and TechNet, but like all things Microsoft, it's an arse to find out.

Once you've entered your settings save the text file as _setup.xml.

Use the makecab.exe command line utility to turn the xml in to a cab file:

makecab.exe "location of _setup.xml" what_you_want_to_call_the_cab.cab

You will then have you cab file which you can drop on to a Windows Mobile device. Once you have transferred the file click on it and the settings will install.

I have tried my file based on the above with O2 UK settings for GPRS and tested it on Windows Mobile 5 and 6 successfully.

Enjoy!!!
__________________

Offline  
Old 08-20-2007, 06:07 PM   #2
dc/dc
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,524
Default

That's pretty slick! Nice work!
__________________
I h8 txtspk.
Offline  
Old 09-26-2007, 08:44 AM   #3
cnordb01
New Member
 
Join Date: Jun 2007
Model: 8300
PIN: N/A
Carrier: Vodafone
Posts: 2
Default CAB for APN settings on Samsung SGH-i600

I tried the above solution but I must be missing something. Each time I try to install the CAB on a Samsung SGH-i600 running WM6 it fails. Any ideas? I have pasted exactly what I have in my XML file.

<wap-provisioningdoc>
<characteristic type="CM_GPRSEntries">
<characteristic type="Siminn GPRS">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
<parm name="UserName" value="" />
<parm name="Password" value="" />
<parm name="SwCompression" value="1" />
<parm name="IpHeaderCompression" value="0" />
<parm name="SpecificNameServers" value="1" />
<parm name="DnsAddr" value="" />
<parm name="AltDnsAddr" value="" />
<parm name="Domain" value="" />
<characteristic type="DevSpecificCellular">
<parm name="GPRSInfoValid" value="1" />
<parm name="GPRSInfoAccessPointName" value="gprs.simi.is" />
<parm name="BearerInfoValid" value="1" />
<parm name="GPRSInfoProtocolType" value="2" />
<parm name="GPRSInfoL2ProtocolType" value="PPP" />
<parm name="GPRSInfoAddress" value="" />
<parm name="GPRSInfoDataCompression" value="1" />
<parm name="GPRSInfoHeaderCompression" value="1" />
<parm name="GPRSInfoParameters" value="" />
</characteristic>
</characteristic>
</characteristic>

<characteristic type="Registry">
<characteristic type="HKCU\ControlPanel\PhoneExtendFunction" translation="filesystem">
<parm name="GPRSAuthenticationMethod" datatype="integer" value="1" />

</characteristic>
</characteristic>
</wap-provisioningdoc>
Offline  
Old 09-28-2007, 06:04 AM   #4
BBAdmin
BlackBerry Extraordinaire
 
BBAdmin's Avatar
 
Join Date: Feb 2005
Location: Port 3101.org
Model: .
Carrier: .
Posts: 2,491
Default

You have not specified a username and password for the gateway

Quote:
<parm name="UserName" value="" />
<parm name="Password" value="" />
You don't always need the DNS bit, that depends on your carrier (for example you don't with Vodafone but you do with O2), but you will always need a username and password for your APN (in your case the APN is gprs.simi.is)
__________________

Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip picture

CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip

$5.88



5PCS EEPROM IC ATMEL DIP-28 AT28C256 AT28C256-15PU US picture

5PCS EEPROM IC ATMEL DIP-28 AT28C256 AT28C256-15PU US

$27.99



USB BIOS EEPROM SPI FLASH Programmer CH341A 24 25 series BIOS Writer Burner Chip picture

USB BIOS EEPROM SPI FLASH Programmer CH341A 24 25 series BIOS Writer Burner Chip

$7.57



10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA picture

10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA

$17.98



EZP2019 High Speed SPI Programmer SOP8 Adapter 24 25 93 EEPROM 25 Flash Block A picture

EZP2019 High Speed SPI Programmer SOP8 Adapter 24 25 93 EEPROM 25 Flash Block A

$22.38



REVELPROG-IS SERIAL FLASH & EEPROM PROGRAMMER (1.8V - 5V + ISP, USB) picture

REVELPROG-IS SERIAL FLASH & EEPROM PROGRAMMER (1.8V - 5V + ISP, USB)

$139.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.