How do I control SMS class?

How do I control SMS class? SearchSearch
Author Message
Anonymous
 
Posted on Tuesday, March 16, 2004 - 03:42 pm:   

How do I control the Class of the SMS which is being sent?

I would like to send messages using class 0 and class 1-4. At the moment the message I get is marked as class "None".

What is "Replacement Type"
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2126
Registered: 10-2002
Posted on Tuesday, March 16, 2004 - 04:44 pm:   

Hi,

Message class settings are specified as part of the "DCS" (Data Coding Scheme) value.

For the official definition of DCS values, see the ETSI GSM 03.38 specification (available for download from http://www.etsi.org), but I'll try to hit some of the highlights here ...

Default (same as Class 1) - 0
Class 0 - 10
Class 1 - 11
Class 2 - 12
Class 3 - 13

(The above DCS values are in hex, which is the format that NowSMS expects for the DCS parameter in a message submission.)

Usually there is not much value in setting any class values other than "Class 0", which is more commonly known as a "Flash SMS" ... an SMS that is displayed on the recipient's phone, but that is not saved to their SMS inbox.

If you are sending a message with Unicode characters, or any of the above DCS values with 8. (E.g., a flash SMS with Unicode text would have a DCS value of 18)

If you are sending a binary message, or any of the above DCS values with 4.

Other useful DCS values are used for setting message waiting indication (MWI). NowSMS has an option for setting the voicemail MWI as that is very widely supported, but you can also send other MWI messages by setting an appropriate DCS value. Some examples:

Voicemail Off - C0
Voicemail On - C8
Fax Off - C1
Fax On - C9
E-Mail Off - C2
E-Mail On - CA

There are also a series of DCS values that start with F, as an alternate way of specifying message class.

F0 - Class 0
F1 - Class 1
F2 - Class 2
F3 - Class 3

Or the Fx values with 4 to specify that the message contains binary data.

The "Replacement Type" settings are something different. There is a good discussion of these settings in the following thread:

http://support.nowsms.com/discus/messages/1/459.html
Joshua Weiss
Unregistered guest
Posted on Wednesday, March 17, 2004 - 09:14 am:   

Do I uinderstand correctly that I can only controll the SMS class (using the DCS Vlause) when sending a Binary SMS but not in the Send Text Message window?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2135
Registered: 10-2002
Posted on Wednesday, March 17, 2004 - 04:36 pm:   

If you are using the web forms exclusively, then that is correct.

There is no setting in the form to set the DCS.

But you can include the DCS parameter when submitting a message using a complete URL ... for example:

http://127.0.0.1:8800/?User=username&password=password&PhoneNumber=phonenumber&text=this+is+a+test+message&DCS=10

(The user and password settings are not always required.)

If you wanted to add a DCS setting to the form, it would be a relatively simple edit of the "Send Text Message.htm" file in the HTML subdirectory of NowSMS. In fact, it's a good idea, so I'll go ahead and make the edits, and you can download the updated form from the attachment to this message.

-bn

application/x-zip-compressedUpdated Send Text Message HTML.zip
html.zip (3.2 k)