EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM
Hi all, i have a problem with event handler in my sim toolkit applet.
i wrote the code:
reg.setEvent(EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM);
case EVENT_MENU_SELECTION:
proHdlr.init(PRO_CMD_SEND_SHORT_MESSAGE, (byte)0x00, DEV_ID_NETWORK);
proHdlr.appendTLV(TAG_ALPHA_IDENTIFIER, strings,
(short)((MSG_SENDING_SMS * STRING_RECORD_LENGTH)+(short)1),
(short)(strings[(short)(MSG_SENDING_SMS * STRING_RECORD_LENGTH)]));
// Define and append optional "Service center address" for the message (TON/NPI + number)
Util.arrayFillNonAtomic(tempBuffer, (short)0, (short)tempBuffer.length, (byte)0x00);
tempBuffer[0] = (byte)0x91;
tempBuffer[1] = (byte)0x21;
tempBuffer[2] = (byte)0x43;
tempBuffer[3] = (byte)0x65;
tempBuffer[4] = (byte)0x87;
proHdlr.appendTLV(TAG_ADDRESS, tempBuffer, (short)0, (short)5);
// Define and append SMS TPDU
Util.arrayFillNonAtomic(tempBuffer, (short)0, (short)tempBuffer.length, (byte)0x00);
// TP-MTI
tempBuffer[0] = (byte)0x01;
// TP-MR
tempBuffer[1] = (byte)0x00;
// TP-DA length
tempBuffer[2] = (byte)0x04;
// TP-DA
tempBuffer[3] = (byte)0x91;
tempBuffer[4] = (byte)0x34;
tempBuffer[5] = (byte)0x12;
// TP-PID
tempBuffer[6] = (byte)0x41;
// TP-DCS
tempBuffer[7] = (byte)0xF2;
// TP-UDL
tempBuffer[8] = (byte)0x05;
// TP-UD 'Hello' in 7-bit packed format
tempBuffer[9] = (byte)'H';
tempBuffer[10] = (byte)'E';
tempBuffer[11] = (byte)'L';
tempBuffer[12] = (byte)'L';
tempBuffer[13] = (byte)'O';
proHdlr.appendTLV(TAG_SMS_TPDU, tempBuffer, (byte)0, (byte)14);
// Send the command to the mobile
proHdlr.send();
return;
case EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM:
EnvelopeResponseHandler erh = EnvelopeResponseHandler.getTheHandler();
the sms is correctly sent, but the event is not captured!by debugging i can see that the line "EnvelopeResponseHandler erh = EnvelopeResponseHandler.getTheHandler();" is never reached!
Can anyone help me?
thanks!
Hi Guys,
Have you found a slution? I have the same problem!!
many thanks
:-)
Similar Messages
-
MO SMS control by SIm not working
Dear All,
I am using the EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM and Terminal profile event. The handsets I am using are sending back the terminal profile event when occured but not sending the MO SMS control event.
Any hint???
I have registered it as following:
reg.setEvent(EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM);
and the processtoolkit contains:
public void processToolkit(byte event) {
if (event == EVENT_PROFILE_DOWNLOAD) {
profileDownloadService();
} else if (event == EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM) {
MO_SMS_proc();// the procedure to be executed
I treid many handsets and got the same result
Many thanks for the help
RegardsHi,
not with this little information
- which technology
- which browser version (if applicable)
- how to reproduce
- does it reproduce on other machines / browsers
Frank
Maybe you are looking for
-
At my wits end with BT - can anyone help please?
This is a long and ongoing saga and so I apologise for the long post. In February due to a change in job I needed to change the payment date of my DD payment. I did this online and received an email confirming the new payment date of the 28th. I stup
-
Error trying to install windows enterprise 8.1 with bootcamp 5.1.2
Hi, I have a 64 bit windows iso file for enterprise 8.1 and it is 64 bit I am running the latest bootcamp and getting the following error: "Boot Camp only supports 64-bit Windows installation on this platform. Please use a ISO file for 64-bit Window
-
Is there any way to access a PDF in iCloud on an iOS device?
After a PDF has been saved in iCloud, is there any way to access it from an iOS device (iPad)?
-
Using stp 2.0.2, transporter disappeared -any ideas?
using stp 2.0.2, transporter disappeared. No where to be found -any ideas?
-
BPC NW and Related BW Configuration
Hi All, We are currently in development stages of BPC NW. I have a question regarding the BPC and BW server configuration and load balancing. Our BW user base is about 200. When we implement BPC we are targeting to roll it out to a initial group of