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 

turbo sms-can be read?

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





PostPosted: Sat Feb 10, 2007 9:53 am    Post subject: turbo sms-can be read? Reply with quote

i have built an application that sends an sms.
however, this sms cannot be read by a simple phone, only by a phone equipped with turbo sim.

so my question:
is there any setting in order to be this sms readable by any phone?
Back to top
pz
Guest





PostPosted: Mon Feb 12, 2007 9:58 am    Post subject: Reply with quote

Yes, sure, PID=0x00, DCS=0x00. Look at e.g. smspal application for code/details, it sends normal text messages.
Back to top
mike
Guest





PostPosted: Mon Feb 12, 2007 4:10 pm    Post subject: Reply with quote

I have already tried PID=0x00 and DCS=0x00, but nothing. The code is:
#include <config.h>
#include <turbo/turbo.h>

#include <stdlib.h>
#include <string.h>

u8 PROGMEM t_sms_ex[]="Example sms";
u8 PROGMEM t_ms[]="+306972257087";

void action_sms (void * data)
{
u8 * sms_data=malloc(100);
u8 * p;
u8 * ms=str2msisdn(t_ms, MSISDN_ADN, MEM_R);


//p=create_head_msg(sms, t_sms_ex); //header
memcpy(sms_data, t_sms_ex, sizeof(t_sms_ex)); //data - optional
// p+=sizeof(t_sms_ex);

send_sms(sms_data, sizeof(t_sms_ex), ms, MSISDN_ADN, 0x00, 0x00, NULL, NULL);

free(sms_data);
free(ms);
}

void turbo_handler (u8 action, void *data)
{
switch (action)
{
case ACTION_INSERT_MENU:
insert_menu (t_sms_ex);
break;
case ACTION_MENU_SELECTION:
stk_thread (action_sms, data);
break;
default:
break;
}
}

the fact is that I cannot read in a simple terminal the string: "Example sms"
Instead I get sth that is created by grouping the bits of the above string in septets (namely EpekuAA2 f5i).

what should I do?
Back to top
pz
Guest





PostPosted: Mon Feb 12, 2007 5:10 pm    Post subject: Reply with quote

"Normal" text messages are 7bit packed, i.e. it's not bytes (140 can fit into one SMS) but 160 chars. 0x00 DCS says 7 bit packed SMS, i.e. you store it as bytes but phone interprets it as 7bit default alphabet -> you see a trash. Use/see dcs_78() call. Or you may just say that DCS is 8bit - DCS_8_BIT_DATA. See 3.38 on coding definitions.

I see that smspal.c wasn't the best example because the packing is already done by phone, we request packed output in get_input().
Back to top
mike
Guest





PostPosted: Tue Feb 13, 2007 8:51 pm    Post subject: Reply with quote

where can I find smspal.c?
I have read 3.38 and I used DCS for 8bits but the same result.
Back to top
pz
Guest





PostPosted: Fri Feb 16, 2007 7:22 pm    Post subject: Reply with quote

mike wrote:
where can I find smspal.c?


In download, SMSPal application. You may also look at ondisplay example.

Quote:

I have read 3.38 and I used DCS for 8bits but the same result.


Mmm, you sure? This should work. What phone?
Back to top
mike
Guest





PostPosted: Tue Feb 20, 2007 4:40 pm    Post subject: Reply with quote

finally, I used dcs_78() function and everything was ok.

thanks very much for your help!
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