View Full Version : @ Yak: call_duration.gsc Bug Report
kraze1984
27-01-2004, 11:43 PM
Hi Yak,
Whilst patching the 3210 v 5.36 got this in g3n0lite 2:
----------------------------------------------
processing:
'display the duration of the call during it'
by '[Yak]'
----------------------------------------------
############# ### ### ## ## # #
##
## CALL DURATION
## Copyright (c) 2004 [Yak]
##
## This script patches the flash to display the duration of the call
## during it.
##
## This is still an experimental version (the duration is simply
## written to the screen without checking what's on the screen
## at the moment).
##
## If you have some sugestions or bug-reports visit nokiafree.org.
##
############################# ### ### ## ## # #
FATAL: too many matches, please let g3gg0 refine the search!
print_text_show:
located at: 0x000AAF08
[searching back to entry point]
- func_start: 000AAEFE
- func_end: 000AAF10
----------------------------------
itoa:
located at: 0x000A2B38
----------------------------------
inc_phonetime:
no more matches
----------------------------------
pattern name inc_phonetime not found
inc_phonetime2:
no more matches
----------------------------------
pattern name inc_phonetime2 not found
#####
##### ERROR processing
##### <LOC: routine = inc_phonetime2>
##### line 24
#####
tried with a clean file and with a modified file.
Any suggestions?
grreetz
asgaardro
28-01-2004, 12:50 AM
where shoul i find yak patch or all his patches can u upload here the patch for call duration
thx
gab0r
28-01-2004, 03:12 AM
where shoul i find yak patch or all his patches can u upload here the patch for call duration
thx
try on his hp (http://www.yak.prv.pl/true7bars)
u can find every of his scripts there
ema2000
28-01-2004, 08:41 PM
tested with 3330 works gr8 :D
realy rocks :-o
First, official address of my NOKIA page is http://www.yak.prv.pl/nokia :) .../true7bars is just an "alias".
About the call_duration.gsc, seems that the inc_phonetime function looks diffrent on 3210. The script was based on g3gg0's minutebeep.gsc script and I didn't checked it with diffrent models (btw. it's still experimental). Does the minutebeep script works for you?
Anyway, this probable can be fixed by tuning the patterns for inc_phonetime function. I'll look closer at this if I'll find sone time :).
Regards
[Yak]
asgaardro
30-01-2004, 02:33 AM
@ yak
g3gg0 script minute beep work verry fine with nokia 3410
so can u do a adaptetion because if i try to inject this script
in 3410 fls with g3n0lite it give me this msg
----------------------------------------------
processing:
'display the duration of the call during it'
by '[Yak]'
----------------------------------------------
############# ### ### ## ## # #
##
## CALL DURATION
## Copyright (c) 2004 [Yak]
##
## This script patches the flash to display the duration of the call
## during it.
##
## This is still an experimental version (the duration is simply
## written to the screen without checking what's on the screen
## at the moment).
##
## If you have some sugestions or bug-reports visit nokiafree.org.
##
############################# ### ### ## ## # #
seccode/setfaid/sim_get_resp routine is required, but not found
print_text_show:
located at: 0x001B59B4
[searching back to entry point]
- func_start: 001B59AA
- func_end: 001B59BC
----------------------------------
itoa:
no more matches
----------------------------------
pattern name itoa not found
#####
##### ERROR processing
##### <LOC: itoa = itoa>
##### line 19
#####
and this is the msg from minute beep on 3410 how works fine
----------------------------------------------
processing:
'while phoning a vibra signal of 1s is played each minute '
by 'g3gg0'
----------------------------------------------
seccode/setfaid/sim_get_resp routine is required, but not found
inc_phonetime:
no more matches
----------------------------------
pattern name inc_phonetime not found
inc_phonetime2:
located at: 0x00085FB0
----------------------------------
set_vibra:
FATAL: not found - sorry
----------------------------------
function name set_vibra not found in flash, will create it
found 0064 bytes for function set_vibra at 0x002C5E54
- bl: 002C5E62 -> 001CB592: F7 05 FB 96
- bl: 002C5E78 -> 001CB592: F7 05 FB 8B
- bl: 002C5E86 -> 001CB5AC: F7 05 FB 91
found 0024 bytes for function minutebeep at 0x002C5E94
- bl: 002C5E9E -> 002C5E54: F7 FF FF D9
- bl: 002C5EA6 -> 002C5E54: F7 FF FF D5
found 0016 bytes for function hook_temp at 0x002C5EAC
- bl: 002C5EAE -> 002C5E94: F7 FF FF F1
Trying to find suitable code at 0x00085FC4
oh, cool.. a BL! => relocateable!
offset: 0x00085FC4
Relocatable code found at 0x00085FC4
- bl: 002C5EB2 -> 0012FAE8: F6 69 FE 19
- bl: 00085FC4 -> 002C5EAC: F2 3F FF 72
this tricky thing was done =)
can u do this adaptetion
u're great
from where have u leard arm basic so good ? can u tell me?
Romeo26222
03-02-2004, 07:59 PM
Yak
your patch is really cool but i think the call duration should stay on the screen about 5 seconds after the call is ended to make a chance to read it after the call..if this possib;e please make it..
thanx
danwood76
03-02-2004, 08:15 PM
@romeo26222
Just look in the call duration under call register for last call length!!
Romeo26222
03-02-2004, 09:14 PM
Just look in the call duration under call register for last call length!!
WOW what a big new feature in nokia phones..thanx for telling me that... :lol:
@YAK it is much easy to see the last call duration on the screen after ending the call...I am sure that you'll do it..
kraze1984
03-02-2004, 10:07 PM
About the call_duration.gsc, seems that the inc_phonetime function looks diffrent on 3210. The script was based on g3gg0's minutebeep.gsc script and I didn't checked it with diffrent models (btw. it's still experimental). Does the minutebeep script works for you?...
Nope, the minutebeep.gsc doesn't work for me with the same problem.
But i found the solution:
using hexworkshop i compared the 3310 files before and after modifiying with Your script.
then i used winarm to find how do those bytes look in asm
Then i opened a clean 3210 v536 file (the one i'm basing my mod) and searched a routine that looked similar to the one in 3310.
AND I DID IT.
here is the inc_phonetime routine pattern for 3210 (i just put it in your script instead of inc_phonetime pattern:
[PATTERN]
Name = inc_phonetime
Pattern = 20352180F012F99D48CD210022002301F030F8E64CCB78202801D10548CA210022002301F030F8DC78602801D000E1F548CD2100
Mask = FF00FFFFF800F800FF00FFFFFFFFFFFFF800F800FF00FFFFFFFFFF00FF00FFFFFFFFFFFFF800F800FF00FFFFFFFFF000FF00FFFF
Maybe U could integrate it in your patch, like inc_phonetime_3210 or something like that...
And thanks a lot for the patch.
i must confess. i didnt test this script yet. i'l test it today.
gsmsikar
14-02-2004, 05:36 PM
@yak
thanks very much for the call duration patch , its what i wanted the most...
i have tried it with 3310 and it is working fine..
but when i tried it with 2100,3610 it gives error ,
now please make it more useful for using it with every models..
u also try to insert the patch with any 2100 & 3610 flash file., then u will get the error...
thanks very much...
bye
danwood76
15-02-2004, 02:49 PM
@yak
now please make it more useful for using it with every models..
You cannot demand things off busy people, just thank them for the work so far.
Another Nice patch ;)
Many thanks,
Danny
asgaardro
18-03-2004, 11:17 PM
@ mr yak
hy can u help me to make u're patch work on 3410. i finded all function in flash but when i try to run the new script in g3n0lite it says
variable MALLOC not known
variable PRINT_TEXT not known
variable FREE not known
#####
##### ERROR processing
##### <CRE: hook_call = call_duration>
##### line 26
#####
what is malloc? is the keyword to make pointers?
how can i pass this error and creat the call_duration function?
i tryed some tips on the original patch but no result. i tryed to create all function like g3gg0 in minute_beep.gsc but i fail. can u make a patch for beta test that creates all function in flash?
i tryed this but it give error
SPC: 600
AUT:
cre: print_text_show = print_text_show findfirst
cre: itoa = itoa findfirst
LOC: print_text_show = print_text_show
LOC: itoa = itoa
i'll post the modified script(all functions inc_phonetime, inc_phonetime2, print_text_show, itoa are taken from 3410 flash but the masks are original i don't know how to calculate the new mask), maybe if u'll have some time to see it
thx
if u what to speek in private pls send me a msg.
anyway thx again
[PATCH]
Description = display the duration of the call during it
Creator = [Yak]
[CODE]
Name = call_duration
Code = B5FF1C07263A200AF000F8002800D0181C0578381C29F000F80070AE78781CE9F000F800716E78B81DA9F000F8001C28211E2223F000F800F000F8001C28F000F800BDFF
BL = 0x08 -> MALLOC
BL = 0x16 -> ITOA
BL = 0x20 -> ITOA
BL = 0x2a -> ITOA
BL = 0x34 -> PRINT_TEXT
BL = 0x38 -> PRINT_TEXT_SHOW
BL = 0x3e -> FREE
[CODE]
Name = hook_temp
Code = B50046C046C0F000F800BD0000000000
BL = 0x06 -> HOOK_CALL
[PATTERN]
Name = inc_phonetime
Pattern = 203E217DF071FE882001F0A9FB7B20230180E2E7F7E8FB5848C788002801D000E30E4AC6789120FD400806000E007090D000E305
Mask = FF00FFFFF800F800FF00FFFFFFFFFFFFF800F800FF00FFFFFFFFFF00FF00FFFFFFFFFFFFF800F800FF00FFFFFFFFF000FF00FFFF
SearchBack = N
[PATTERN]
Name = inc_phonetime2
Pattern = 203E217DF072F8D4260024011C2348D51C311C32F245FE124DD988282801D10548D81C311C321C23F0A9FD868868
Mask = FF00FFFFF800F800FFFFFFFFFFFFFF00FFFFFFFFF800F800FF00FFFFFFFFFFFFFF00FFFFFFFFFFFFF800F800FFFF
SearchBack = N
[PATTERN]
Name = print_text_show
Pattern = 20012132F743F81ABD00
Mask = ffffffffff00f000ffff
SearchBack = Y
[PATTERN]
Name = itoa
Pattern = B5301C0B1C0568182800D103200060107110BD30682849C44288D20A2104
Mask = FFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
SearchBack = N
[SCRIPT]
prt: ############# ### ### ## ## # #
prt: ##
prt: ## CALL DURATION
prt: ## Copyright (c) 2004 [Yak]
prt: ##
prt: ## This script patches the flash to display the duration of the call
prt: ## during it.
prt: ##
prt: ## This is still an experimental version (the duration is simply
prt: ## written to the screen without checking what's on the screen
prt: ## at the moment).
prt: ##
prt: ## If you have some sugestions or bug-reports visit nokiafree.org.
prt: ##
prt: ############################# ### ### ## ## # #
SPC: 200
AUT:
LOC: print_text_show = print_text_show
LOC: itoa = itoa
LOC: routine = inc_phonetime NOBREAK
CLC: routine = routine + 0x10
CMP: routine = 0x10
BNE: 2
LOC: routine = inc_phonetime2
CLC: routine = routine + 0x14
CRE: hook_call = call_duration
CRE: hook = hook_temp
INF: routine -> hook 0x02 0x0c
asgaardro
19-03-2004, 12:37 AM
@kraze1984
sir i have done my self some research with hexworkshop an i found the inc_phonetime ,
inc_phonetime2 , print_text_show , itoa but when i try to create call_duration function g3n0lite
it says
variable MALLOC not known
variable PRINT_TEXT not known
variable FREE not known
and can't create the function
u have succed aplaying yak patch to 3210?
on 3210 u found print_text_show function like the one from 3310?
same question for itoa, inc_phonetime2?
can u send me u're modified scrpit for better understanding my probemlem on 3410?
thx
@yak
sir i tried something else
instead to search all the function now i'll create them but when i try create call_duration
function it says
variable MALLOC not known
variable PRINT_TEXT not known
variable FREE not known
what is the problem ?
i think if u'll adjust u're gsc it will work on other nki
can u explain how can i understand this chunk of code
it is from g3gg0 minute beep script
how it looks in arm?
[CODE]
Name = minutebeep
Code = B5FF78802831D1032005F000F800E0022000F000F800BDFF
BL = 0x0a -> set_vibra
BL = 0x12 -> set_vibra
[CODE]
Name = set_vibra
Code =
B51F2800D00B490D224043107008F000F80049092210780843107008E009490720607008F000F800490322EF78084010
7008F000F800BD1F000200150002001B
BL = 0x0e -> disable_irq
BL = 0x24 -> disable_irq
BL = 0x32 -> enable_irq
kraze1984
19-03-2004, 07:00 PM
@kraze1984
sir i have done my self some research with hexworkshop an i found the inc_phonetime ,
inc_phonetime2 , print_text_show , itoa but when i try to create call_duration function g3n0lite
it says
variable MALLOC not known
variable PRINT_TEXT not known
variable FREE not known
and can't create the function
u have succed aplaying yak patch to 3210?
on 3210 u found print_text_show function like the one from 3310?
same question for itoa, inc_phonetime2?
can u send me u're modified scrpit for better understanding my probemlem on 3410?
thx
DO the standart patches from g3n0lite work with 3410?
my patch is same as yak's only i changed the original
[PATTERN]
Name = inc_phonetime
Patern= bla bla bla
Mask= bla bla bla
to
[PATTERN]
Name = inc_phonetime
Pattern = 20352180F012F99D48CD210022002301F030F8E64CCB782028 01D10548CA210022002301F030F8DC78602801D000E1F548CD 2100
Mask = FF00FFFFF800F800FF00FFFFFFFFFFFFF800F800FF00FFFFFF FFFF00FF00FFFFFFFFFFFFF800F800FF00FFFFFFFFF000FF00 FFFF
i didn't do nothing else...
and i didn't search nothing else, while it was only this function that was not found in my 3210.
grreeetz
3210 inc_phonetime = 20362180F014F80B48CD210022002301F031FCAA4CCB78202801D10548CA210022002301F031FCA078602801D000E1F548CD2100
3210 print_text_show =
20012132F7BEFAE3BD00
;)
belabs
30-03-2004, 12:47 PM
what does this part of the script mean?
[CODE]
Name = call_duration
Code = B5FF1C07263A200AF000F8002800D0181C0578381C29F000F80070AE78781CE9F000F800716E78B81DA9F000F8001C28211E2223F000F800F000F8001C28F000F800BDFF
BL = 0x08 -> MALLOC
BL = 0x16 -> ITOA
BL = 0x20 -> ITOA
BL = 0x2a -> ITOA
BL = 0x34 -> PRINT_TEXT
BL = 0x38 -> PRINT_TEXT_SHOW
BL = 0x3e -> FREE
im having problems with the PRINT_TEXT
variable PRINT_TEXT not known
#####
##### ERROR processing
##### <CRE: hook_call = call_duration>
##### line 26
#####
could U explain it to me in a simple english, im just studying the script by my own and dont even have a background on it
ejvital
30-03-2004, 03:10 PM
3310 VERSION 5.47, 5.55, 5,57
worx fine!
Uff, lot of things to answer :)
The problems with patches that work on every model are the patterns. While most dct3 model's have simillar code in MCU, the 3410 is very diffrent. That causes the patterns not to find the apropriate functions and that causes errors.
All the patterns defined in the GSC file can be updated to work with diffrent model. On 3410 there is still problem with patterns defined in G3n0lite. They are processed during "AUT:" command and they cannot be fixed. All those MALLOC, PRINT_TEXT and other things not defined by patterns in GSC come from patterns buid in G3n0lite. That's the problem. To make the patch work on 3410 we would have to define new patterns for those functions and place them in GSC with apropriate code in [SCRIPT] section.
As I said before, I'm working now on new tool - kind of G3n0lite replacement. Currently I'm rewriting G3n0lite's patches to work with 3310, later I'll try to make them work on larger number of models.
Yesterday for example, I created a new version of shortkeys script (of course for my new tool, not for G3n0lite). You can call almost any phone function using shortkey (using 5E0 IDs). Also, it is much more easier to press the shortkey (instead of pressing two keys together, you press and hold the asterix key for about half second and when you hear a short beep you release it and press a key with number - easy and you can do it using one hand!).
yes. that sure looks great. :)
do u have any idea when we will see ur work?
and maybe it helps u, g3gg0 made g3n0lite source free...
GsmCyber
02-04-2004, 04:48 PM
Uff, lot of things to answer :)
As I said before, I'm working now on new tool - kind of G3n0lite replacement. Currently I'm rewriting G3n0lite's patches to work with 3310, later I'll try to make them work on larger number of models.
Yesterday for example, I created a new version of shortkeys script (of course for my new tool, not for G3n0lite). You can call almost any phone function using shortkey (using 5E0 IDs). Also, it is much more easier to press the shortkey (instead of pressing two keys together, you press and hold the asterix key for about half second and when you hear a short beep you release it and press a key with number - easy and you can do it using one hand!).
GREAT :-o :-o
:)
Powered by vBulletin® Version 4.2.0 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.