Friday, March 21, 2008

Setting up the number of Channel in BIP

<Instance Aid="A0000000185000000000000052414441" Index="1" ApplicationSpecificParameters="7110A0000000185201050000000040534357" EepromSize="0000" RamSize="0000" InstallToken="" Privilege="00">
<!--If you add another Instance, you should increase his Index number-->
<GSMParameter TextMaxLength="14" MaxNumberOfMenuEntries="01" PriorityLevel="FF" TimerMaxNumber="00" Menus="0000">
<!--You can customize the GSM parameters of this Instance here-->
<SIMR5Parameter MaximumChannels="02">
<!--2 Channel -->
</SIMR5Parameter>

</GSMParameter>
<UICCParameter>
<!--You can customize the UICC parameters of this Instance here-->
<UICCToolkitParameter>
<UICCR6ToolkitParameter MaximumNumberOfServices="00"/>
</UICCToolkitParameter>
<!--You can customize the UICC Access Application parameters of this Instance here-->
<UICCAccessApplicationParameter Index="1">
<UICCR6AccessApplicationParameter AccessDomainParameter="00" AccessDomainData=""/>
</UICCAccessApplicationParameter>
</UICCParameter>
</Instance>

Sunday, March 16, 2008

Multimedia Ready Card

AID : A0 00 00 00 18 43 4D 08 09 0A 0B 0C 00 00 00

Edit : C:\Documents and Settings\$User\GemXploreDeveloper\keyfiles\scws carddefault.keys
aid.security_domain=hex/A0 00 00 00 18 43 4D 08 09 0A 0B 0C 00 00 00

And For MMready1.0 card, you need modify something in your .gdp file to be able to load it in your real card.
Remove the SecurityDomainAid value in gdp file. For example,
  1. Modify SecurityDomainAid="A0000000185201050000000030534357" to SecurityDomainAid=""
  2. Modify ApplicationSpecificParameters="7110A0000000185201050000000040534357" to ApplicationSpecificParameters="7110A0000000185201050000000030534357"
reference : Gemalto forum

Parsing Query in Smart Web Server

SharedByteString name = new SharedByteString();
SharedByteString value= new SharedByteString();
StringValueBuffer stringValueBuffer = new StringValueBuffer((short) 50, (short) 100); //short sizeRAM, short sizeEEPROM
FormParser formParser = new FormParser(true);
ByteString queryString = req.getQueryString();
if (queryString != null) {
formParser.parse(this, queryString, stringValueBuffer, name,value);
}