PDA

View Full Version : Example on modifying length of text strings in PPM



||Joe
02-03-2002, 10:10 AM
Hi

Here is the example on changing length of text string in PPM language, as I promsed.
I used SW/PPM version 3.14 (PPM A)from my 6110, but this should work with other phones allso.

I only modified one text string from english language sub-block to simplify this example.

There are 3 files in txt_block.zip I attached:

Original.bin = Original block
Modified.bin = Modified block
TEXT_block.txt = Explanation how I did the modification.

Text is quite messy, as was in my previous example on changing ringtones /n/images/smiles/icon_smile.gif

And I'm sorry for the file size of txt_block.zip.
I could have deleted the other languages from .bin files to make filesize smaller
but in that case this would have been example of modifying modified TEXT-block. /n/images/smiles/icon_smile.gif


MTL

mehdi
02-03-2002, 10:46 AM
Hei MTL Great job!
Can you learn me more about
"Start address of PPM-blocks, sub-blocks & end-incicators of PPM-block must be
aligned in modulo 4."
especially about adresses and is it possible to add languages to a ppm??

||Joe
02-03-2002, 12:18 PM
Hi mehdi!

Start address alignment in modulo 4 means that start-address must be divisible by 4.
I have heard that this isn't true with all versions, but it was true in version 3.14.
Actually it is allso quite possible that I have studied this wrong, i'll have to check it.
But hey, we all learn from aour mistakes /n/images/smiles/icon_smile.gif


PPM-block, sub-block & end-indicator are not official terms used with PPM, but I didn't know
how else to call them /n/images/smiles/icon_smile.gif

PPM-block:
PPM section of flash-file has 8 PPM-blocks: LPCS, GSMC, FONT, TEXT, AORD, TONE, PLMN and DUMFILE


sub-block:
For example, I call different languages inside TEXT-block as sub-blocks, and different ringtones
in TONE-block as sub-blocks


end-indicator:
Every PPM-block ends with same kind of 16byte hex data: 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 00
This data is found end of every PPM-block.


Yes it is possible to add languages, but Fonts must be added allso if not using common characters.

MTL

mehdi
02-03-2002, 02:07 PM
I can add a language to text block ?? or another block

mehdi
02-03-2002, 04:35 PM
ive tried to delete a language from a ppm (5110 v530 A(germ lng))
i've deleted the german entry from text block and from Aord block
but i got a Contact service!
can you help me to do this

||Joe
02-03-2002, 05:29 PM
"Contact service" allways means some kind of checksum error.
Either checksum isn't correct, or there is something wrong with PPM structure-> (phone is unable calculate checksum).

I assume that you have calculated new checksums, so I belive it's structure error.
Did you fix the length bytes of TEXT- & AORD-blocks after deleting entries?


I attached TEXT- & AORD-block where german entries are removed.
I tested these blocks with my phone and worked fine.

Please compare the modifications you made to remove language from PPM, to modifications done in these files
to find out what went wrong.

(Adding new language sub-blocks can be done in same way as deleting the original sub-blocks)

MTL

Iccang
02-03-2002, 07:27 PM
@MTL: I was changed my PPM, and it's succes without appearing "Contact Service, but it's no signal and resets every 30 second. I was changed the red byte that pointed by Flash_analizer or PPM_Fixer, and recalc with NFRee 1.2, but .. still same effect /n/images/smiles/icon_frown.gif(((

Btw, my 3310 is version 5.13 Pack H.

Please, your more detail advice....

Thanks...

BR,
Iccang
=====

mehdi
02-03-2002, 07:28 PM
i' ve deleted the german language and fixed block length and checksum
when i stared the phone i've got a blanc screen???
what can i do

Iccang
02-03-2002, 07:37 PM
@MTL: Forgot something, I just replace the character with same lenght and I was updated FAID too with eepromtool by b-phreaks because I don't have mbus cable for 3310 to running nk_calc.

So, What must I do to get the signal again and my phone dosen't resets anymore?

BR,
Iccang
=====

mehdi
02-03-2002, 07:55 PM
i forgot something!!
i can access menu put numbers but i dont have language!!
and also no signal after calc AuthorityID

||Joe
02-03-2002, 11:56 PM
Hi Mehdi and Iccang!

It's hard to tell why it doesn't work, since I don't know the exact modification
you have done in PPM.

If it's ok, please post whole PPM section (MCU / EEPROM not needed) of your
modified flash on this board, and I'll check them out.


Btw. if you are using nk_calc or 'Eeprom Tools V3.0' to calculate FAID for modified PPM, Flash-CHK at the end of flash-file should be recalculated or incorrect FAID is written in EEPROM
NFRee can calculate Flash-CHK, but it can't write it on flash-file. You need to use HEX-editor to do this.

(With BOX you can automacally calculate new Flash-CHK when flashing)
If you don't want to update Flash-CHK, Logger/Logfile-calculator allso works without updating Flash-CHK

MTL

mehdi
03-03-2002, 12:49 AM
How can i calculate flash chk with nfree ??

mehdi
03-03-2002, 02:00 AM
this is a modified flash with checksum calculated!!
but dont work (no network and no chars)

Iccang
03-03-2002, 06:09 AM
Hi MTL

This is my modify file...

I just overwrite "Masukkan.Kartu SIM" with "Pantama'.kartunu!!" and I was change the byte that pointed by ppm_fixed. And I was recalc with nfree. so, I flashed it to phone and make recalc FAID, but you know... Failed, no network and resets..

BR,
Iccang
======

||Joe
03-03-2002, 09:41 AM
Hi mehdi!

Here's the repaired version of the flash file you posted.

There was an error in PPM structure, I re-aligned the start offset of english sub-block,
recalculated checksum of TEXT-block.

I tested this and works now wery well.


This is wery important:
When updating phone with modified flash-file, FAID CANNOT be calculated with NK_CALC or 'EEPROM Tools V3.0'.
'B-phreaks logger' & 'B-Phreaks log calculator' combination works perfectly with modified flashes.

MTL

||Joe
03-03-2002, 09:44 AM
Hi Iccang!

Thanks, I'll try to check this flash-file tonight.
I'll post results as soon as I can.

MTL

mehdi
03-03-2002, 11:44 AM
'B-phreaks logger' & 'B-Phreaks log calculator' combination works perfectly !!!
what bersion of B-phreaks logger
and the version of B-Phreaks log calculator by Tek ??

mehdi
03-03-2002, 01:24 PM
it works well
thanks MTL
./n/images/smiles/icon_biggrin.gifoud@:.