Calculating the number of sms out of the Binairy string | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through May 12, 2004 ⬆ |
◄ ► |
Author | Message | |||
jerrel New member Username: Jerrel Post Number: 8 Registered: 02-2004 |
Hi, I know that this if not a related topic to Now SMS,but I need to know this. I'am using the software from http://www.clickatell.com to convert my rttl and midi files to binairy strings. The webpage displays the number of sms message that will be transmitted to get the full image are tone to the phone. I would like to implement this calculation in a software of mine. I tried a little calulation of ("length of binairy string" / 2) / 160 But I don't get the right answer Can anyone tell me how this the binairy string is calculated to the # of SMS. Any ideas regards Jerrel Smith | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2172 Registered: 10-2002 |
Hi Jerrel, The calculation would be: (Length of binary hex string, including UDH) / 280 When you send a binary SMS, there are 140 bytes available in the message. In a typical hex string format, each byte is represented by 2 characters, which is why I say to divide by 280 instead of 140. A text SMS can contain 160 characters, as long as you restrict yourself to characters that are in the standard GSM character set table. This is because the text is encoded as 7-bit characters, and 160 7-bit characters can be packed into 140 8-bit bytes. -bn |