STK send sms on nokia 6021 results in 0x32
Hi,
I am developing a STK application that sends an SMS. On the emulator and nokia 6680 everything goes fine. However, the nokia 6021 returns a resultcode of 0x32 ("command data not understood by ME").
What could be the problem ?
Thanks, Eric
This is the SMS_TPDU (number is Z-ed out):
publicbyte[] tpdu ={
//|
(byte) 0x11,// TP-RP TP-UDHI TP-SRR TP-VPFTP-RD TP-MTI
//0=no0=no0=no00=no field001 (submit)
//reply usr data 1=yes10=relative
//pathheaderstatus 01=enhanced
//indicat report 11=absolute
//validity period format
(byte) 0x00,// TP-MR (message reference)
(byte) 0x0B,// address length
(byte) 0x91,// TON
0x13, 0x16,(byte)0xZZ,0xZZ, (byte)0xZZ, (byte)0xfZ,// number
(byte) 0x00,// TP-PID protocol id
(byte) 0x04,// TP-DCS (8bit data =0x04)
(byte) 0x0B,// TP-VALIDITY-PERIOD 0x0B=1H 0xAA=4 DAYS
(byte) 00,// TP-USER DATA LENGTH
(byte) 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,// 140 bytes
(byte) 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,
(byte) 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,
(byte) 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,
(byte) 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,
(byte) 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,
(byte) 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,
(byte) 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20// 20 bytes overflow
};
and the code (writePos is the length of the the TPDU):
ProactiveHandler hdlr = ProactiveHandler.getTheHandler();
hdlr.clear();
hdlr.init(PRO_CMD_SEND_SHORT_MESSAGE, (byte)0x00, DEV_ID_ME);
//bit 0: 0=no pack 1=ME packs^^^^
// alpha indentifier with no data indicates that ME should not show anything
hdlr.appendTLV(this.TAG_ALPHA_IDENTIFIER, nullAlphaIdentifier, (byte)0, (byte)nullAlphaIdentifier.length );
tpdu[OFFSET_USERDATA_LENGTH]= (byte) (writePos-OFFSET_USERDATA_BEGIN);
hdlr.appendTLV(this.TAG_SMS_TPDU, tpdu, (byte)0, writePos);
byte r = hdlr.send();

