bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Possible to return response data for SMS-PP Download?

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
ming



Joined: 15 Oct 2009
Posts: 2

PostPosted: Thu Oct 15, 2009 11:54 am    Post subject: Possible to return response data for SMS-PP Download? Reply with quote

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
  }
}
Back to top
View user's profile Send private message
pz
Guest





PostPosted: Mon Oct 19, 2009 11:45 am    Post subject: Reply with quote

See retval() like in http://bladox.com/forum/viewtopic.php?t=295
Back to top
ming



Joined: 15 Oct 2009
Posts: 2

PostPosted: Tue Oct 20, 2009 6:43 am    Post subject: Reply with quote

The retval() function is exactly what I was looking for. Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group