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 

STK select item size limit?

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
browndav



Joined: 04 Nov 2011
Posts: 5

PostPosted: Wed Mar 27, 2013 8:16 pm    Post subject: STK select item size limit? Reply with quote

Hi,

I'm running in to a case where a couple of STK select item commands are returning immediately rather than drawing the menu. Each menu contains UCS-2 text, and roughly 12 items. If I cut the number of items per menu down to 6 or 7 (with the same content), it seems to work perfectly.

Moving the menu creation out to another TRB that does nothing else (i.e. doesn't malloc anything) yields the same result.

Is there an arbitrary limit for the total size of (or number of items in) an STK select item command? Does the firmware use malloc() internally when it's preparing STK command data to send to the phone?

Thanks,
Dave
Back to top
View user's profile Send private message
belve



Joined: 04 May 2006
Posts: 30

PostPosted: Mon Apr 01, 2013 7:51 pm    Post subject: Reply with quote

Structure passed with ACTION_MENU_SELECTION action to application. inserted with insert_menu() (max. 4 items can be inserted by one application).

http://www.bladox.cz/devel-docs/struct__Menu__selection__data.html
Back to top
View user's profile Send private message
pz



Joined: 12 Mar 2004
Posts: 1161

PostPosted: Tue Apr 02, 2013 11:47 am    Post subject: Reply with quote

The max number of items is 13 for standard alphabet and 6 for ucs2. Max len of the item is 14 for def alpha and 29 for ucs2. These limits are hard coded in kernel to follow the max value of STK cmd. Unfortunately ucs2 is 2 bytes/char.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development 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