bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

undesired SIM "restart", timeout?

 
Post new topic   Reply to topic    bladox.com Forum Index -> General
View previous topic :: View next topic  
Author Message
asciz
Guest





PostPosted: Tue Jan 10, 2006 10:29 am    Post subject: undesired SIM "restart", timeout? Reply with quote

Hi

I'm using a TM2 to send some data on serial cable to a PC, using status polling to trigger the app. The data comes up fine on the PC.

For some reason however, after each time data is sent the SIM seems to "disappear" from the phone's point of view. The phone says "Insert SIM card". After a while the phone seems to have "found" the SIM again until next piece of data is sent. Finally, after quite a few times, the phone freezes completely or the app stops working. Have tried mainly on Nokia 3510i but also Nokia 6600 and SonyEricsson 750i with similar behaviour.

I am guessing that maybe the SIM app takes too long time building & sending the data string, and therefore causes a timeout, so I inserted a couple of MORE TIME commands in the code, but it made no difference.

Does anyone recognise this problem?

Thanks
Back to top
pz
Guest





PostPosted: Wed Jan 11, 2006 9:03 am    Post subject: Re: undesired SIM "restart", timeout? Reply with quote

asciz wrote:
Hi

I'm using a TM2 to send some data on serial cable to a PC, using status polling to trigger the app. The data comes up fine on the PC.

For some reason however, after each time data is sent the SIM seems to "disappear" from the phone's point of view. The phone says "Insert SIM card". After a while the phone seems to have "found" the SIM again until next piece of data is sent. Finally, after


Could you debug SIM<->Turbo<->ME communication? The "founding" seems to be just pure SIM reset - selfhealing (some vendors use it to avoid own phone freezes).

So I guess something went wrong in your code and ME<->Turbo is down, i.e. turbo is not answering (maybe even not sending null bytes (0x60)) - is dead.

Quote:

quite a few times, the phone freezes completely or the app stops working. Have tried mainly on Nokia 3510i but also Nokia 6600 and SonyEricsson 750i with similar behaviour.


Mmm, will be something in code.

Quote:

I am guessing that maybe the SIM app takes too long time building & sending the data string, and therefore causes a timeout, so I inserted a couple of MORE TIME commands in the code, but it made no difference.

Does anyone recognise this problem?

Thanks


MORE TIME doesn't help, turbo/sim runs only in APDU. How long does this operation take? Phones stand a lot if null bytes are sent, the only issue could be if call was on, then it should be short.
Back to top
asciz
Guest





PostPosted: Thu Jan 12, 2006 5:46 pm    Post subject: Reply with quote

Did some debugging:

    139.029 FROM ME: a0 12 00 00 0b
    139.039 TO ME: d0 09 81 03 01 02 00 82 02 81 82 90 00
    139.049
    139.049 FROM ME: a0 14 00 00 0c
    139.049 FROM ME: 81 03 01 02 00 02 02 82 81 03 01 00
    139.089 TO ME: 91 0b
    139.089
    139.089 FROM ME: a0 12 00 00 0b
    139.089 TO ME: d0 09 81 03 01 02 00 82 02 81 82 90 00
    139.089
    139.089 FROM ME: a0 14 00 00 0c
    139.089 FROM ME: 81 03 01 02 00 02 02 82 81 03 01 00
    139.119 TO ME: 91 58
    139.129
    139.129 FROM ME: a0 12 00 00 58
    139.129 TO ME: d0 56 81 03 01 05 00 82 02 81 82 0c 81 03 01 02 00 02 02 82 81 03 01 00 00 10 18 18 ff 9c 27 8e 05 35 c1 e9 48 45 17 38 7a 7d 1d 13 8e e4 39 1e 4b 9b a7 09 fa 86 a2 28 aa 62 b6 ae 6b bb 34 67 90 00 74 8f 06 04 74 2d 66 75 6e 8f 09 05 74 2d 67 72 6f 75 70 73 8f 08 90 00
    139.179
    139.179 FROM ME: a0 14 00 00 0c
    139.189 FROM ME: 81 03 01 05 00 02 02 82 81 03 01 32
    139.229 RESET


What I can see is a couple of MORE TIME commands (they are from my code), and then a long command which appears to be an incorrectly formatted SET UP EVENT LIST command (the tag 'c' would be cell broad cast page)

I don't think it comes from my code (but I suppose it does somehow..) - seen anything like it before?

(I'm not using stk_cmd() in the code)

Thanks
Back to top
pz
Guest





PostPosted: Fri Jan 13, 2006 7:43 am    Post subject: Reply with quote

asciz wrote:
Did some debugging:

    139.029 FROM ME: a0 12 00 00 0b
    139.039 TO ME: d0 09 81 03 01 02 00 82 02 81 82 90 00
    139.049
    139.049 FROM ME: a0 14 00 00 0c
    139.049 FROM ME: 81 03 01 02 00 02 02 82 81 03 01 00
    139.089 TO ME: 91 0b
    139.089
    139.089 FROM ME: a0 12 00 00 0b
    139.089 TO ME: d0 09 81 03 01 02 00 82 02 81 82 90 00
    139.089
    139.089 FROM ME: a0 14 00 00 0c
    139.089 FROM ME: 81 03 01 02 00 02 02 82 81 03 01 00
    139.119 TO ME: 91 58
    139.129
    139.129 FROM ME: a0 12 00 00 58
    139.129 TO ME: d0 56 81 03 01 05 00 82 02 81 82 0c 81 03 01 02 00 02 02 82 81 03 01 00 00 10 18 18 ff 9c 27 8e 05 35 c1 e9 48 45 17 38 7a 7d 1d 13 8e e4 39 1e 4b 9b a7 09 fa 86 a2 28 aa 62 b6 ae 6b bb 34 67 90 00 74 8f 06 04 74 2d 66 75 6e 8f 09 05 74 2d 67 72 6f 75 70 73 8f 08 90 00
    139.179
    139.179 FROM ME: a0 14 00 00 0c
    139.189 FROM ME: 81 03 01 05 00 02 02 82 81 03 01 32
    139.229 RESET


What I can see is a couple of MORE TIME commands (they are from my code), and then a long command which appears to be an incorrectly formatted SET UP EVENT LIST command (the tag 'c' would be cell broad cast page)


Yes, that's trash.

Quote:

I don't think it comes from my code (but I suppose it does somehow..) - seen anything like it before?

(I'm not using stk_cmd() in the code)

Thanks


No, haven't. My guess is that something goes wrong elsewhere and calling set_up_event() is just coincidence.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group