ming
Joined: 15 Oct 2009 Posts: 2
|
Posted: Thu Oct 15, 2009 11:54 am Post subject: Possible to return response data for SMS-PP Download? |
|
|
According to 11.14, it is possible for SMS-PP Download to respond with data. Instead of responding with 0x9000. 0x9EXX or 0x9FXX is returned along with response data of XX length.
I have developed an Turbo application that registers ACTION_SMS_PP_DOWNLOAD, code provided below. However, it always responds with 0x9000. It is possible to change the response? I appreciate any feedback on this.
Code: | void turbo_handler (u8 action, void *data) {
switch (action) {
case ACTION_APP_INIT:
reg_action(ACTION_SMS_PP_DOWNLOAD);
break;
case ACTION_SMS_PP_DOWNLOAD:
stk_thread(sms_pp_download, data);
break;
default:
break;
}
}
void sms_pp_download (u8 *data) {
u8 offset;
u8 dataLength;
offset = get_tag(data, T_SMS_TPDU);
if (offset != 0) {
offset++;
// Determine length.
dataLength = data[offset];
// Move offset to beginning of SMS TPDU data.
offset++;
// private code
}
} |
|
|