|
bladox.com Turbo SIM Toolkit Adapter Forums
|
View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Wed Dec 22, 2004 5:31 pm Post subject: sending DTMF |
|
|
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
|
|
Back to top |
|
|
pz Guest
|
Posted: Thu Dec 23, 2004 1:45 pm Post subject: |
|
|
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
|
Posted: Thu Dec 23, 2004 3:05 pm Post subject: |
|
|
sorry, litte mistake, the string uses bcd nibbles, so {0x1A, 0xB2} is *12# |
|
Back to top |
|
|
Guest
|
Posted: Thu Dec 23, 2004 5:54 pm Post subject: |
|
|
It works thank you |
|
Back to top |
|
|
|
|
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
|