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();

[3696 byte] By [E.Zijlstraa] at [2007-11-27 2:57:30]
# 1
Does the 6021 actually support the Send Short Message proactive command ? Nokia's are notorious for having inaccurate terminal profiles.However the 6021 teminal profile DF F7 FF FF 1F 00 00 DC 5D 00 00 00 00 05 0F 80 00 00 00 would suggest that it is meant to support
CEOPHSa at 2007-7-12 3:36:05 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
Yes I think it does support send short message because otherwise it should return 0x30 ("command beyond ME capabilites").
E.Zijlstraa at 2007-7-12 3:36:05 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3
Ah, DEV_ID_ME should be DEV_ID_NETWORK.
E.Zijlstraa at 2007-7-12 3:36:05 > top of Java-index,Java Mobility Forums,Consumer and Commerce...