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 

sending DTMF

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






PostPosted: Wed Dec 22, 2004 5:31 pm    Post subject: sending DTMF Reply with quote

Hello all,
I'm trying to send DTMF but there is no wrapped function for this purpose.
Can anyone help me using the stk_cmd function.
I tried to get help from the stkcmd example, but I need specific info on DTMF
Thanks
Wink
Back to top
pz
Guest





PostPosted: Thu Dec 23, 2004 1:45 pm    Post subject: Reply with quote

Well it is untested but should look like this:
Code:


u8 PROGMEM t_DTMF[] = {0x0A, 0x01, 0x02, 0x0B}; // *12#

void send_dtmf (void *data)
{
  u8 *buf = buf_A ();
  u8 len = 0;
  u8 i;


 buf[len++] =  T_DTMF_STRING | CR_FLAG;
 buf[len++] = sizeof(t_DTMF);
 for (i = 0; i < sizeof(t_DTMF); i++)
    buf[len++] = rb(t_DTMF+i);

  stk_cmd (STK_CMD_SEND_DTMF, 0x00, DEV_ID_NETWORK, len);       //terminal response
}
Back to top
pz
Guest





PostPosted: Thu Dec 23, 2004 3:05 pm    Post subject: Reply with quote

sorry, litte mistake, the string uses bcd nibbles, so {0x1A, 0xB2} is *12#
Back to top
Guest






PostPosted: Thu Dec 23, 2004 5:54 pm    Post subject: Reply with quote

It works thank you
Back to top
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