View previous topic :: View next topic |
Author |
Message |
browndav
Joined: 04 Nov 2011 Posts: 5
|
Posted: Wed Mar 27, 2013 8:16 pm Post subject: STK select item size limit? |
|
|
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 |
|
|
belve
Joined: 04 May 2006 Posts: 30
|
|
Back to top |
|
|
pz
Joined: 12 Mar 2004 Posts: 1161
|
Posted: Tue Apr 02, 2013 11:47 am Post subject: |
|
|
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 |
|
|
|