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 

SMSs sent from a TurboSIM application are blank on Android

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



Joined: 04 Nov 2011
Posts: 5

PostPosted: Fri Nov 04, 2011 7:16 pm    Post subject: SMSs sent from a TurboSIM application are blank on Android Reply with quote

Hi Pavel, All,

We've run in to a deployment issue with our TurboSIM application, and could use some help.

We have a data collection application, written for the TurboSIM platform, that collects some data in the field and transmits it back to an Android-based SMS gateway.

We're able to send messages without issue between Nokia phones, and between the Nokia phone and an Apple iPhone 4. However, when we use the SIM application to send an SMS message to an Android-based phone, the SMS arrives but is completely blank. I've tested on an ideos phone, and on a Google nexus; we've probably tried a total of six or seven SIM cards from three different US-based carriers -- the SMSs still arrive with no apparent content.

We've tried both 7-bit and 8-bit class 2; 7-bit encoding shows garbled content on all phones including the Android phone; the 8-bit class two is blank on the Android phones but readable on the others (Nokia, Apple). We've tried PIDs of both 0x00 and 0x7f; this setting doesn't appear to make a difference.

Is there anything special we should know about sending SMSs to an Android-based device? Has anyone encountered something like this, or (better yet) a workaround?

Code:

  send_sms(s, strlen(s), value.msisdn, MSISDN_ADN, 0xF6, tsms_pid(), NULL, NULL);


Thanks,
Dave
Back to top
View user's profile Send private message
browndav



Joined: 04 Nov 2011
Posts: 5

PostPosted: Fri Nov 04, 2011 8:02 pm    Post subject: Answering my own post... Reply with quote

We actually figured this out. We were sending SMS messages as 8-bit, which the iPhone supports, but not many other phones. In the 7-bit case, we were labeling 8-bit data as 7-bit, which caused garbage to be sent.

By calling dcs_7b to pack the data in to a seven-bits-per-character string, and using PID 0x0 and DCS 0x0 in send_sms, we seem to have messages going to Android and others successfully now.
Back to top
View user's profile Send private message
pz



Joined: 12 Mar 2004
Posts: 1161

PostPosted: Wed Nov 09, 2011 11:35 am    Post subject: Reply with quote

This is bug in android (handling badly something 10 years old phones have no issues with).
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