What is the meaning of \"data_coding\" field in the SMPP protocol?
I searched for this but couldn\'t find any helpful resource.
It means how text is converted into bytes, since SMPP is a binary protocol but applications typically deal with text strings. The first hit on google for 'smpp data coding' explains it well http://sourceforge.net/apps/trac/smstools/raw-attachment/wiki/MiscWikiFiles/smppv34_gsmumts_ig_v10.pdf in section 2.2.2.
In short, datacoding contains the information on how the text in an smpp SubmitSM (i.e. a typical SMS message) message is encoded. The SubmitSM packet contains a binary encoded body, and the dataCoding is how the text is stored in this body.
The most important values are:
Other possible values (rarely used):
And two reserved for special uses:
In short, if your binary body is unicode (UTF-16) you will set dataCoding to 8. If your message is stored as GSM7 then it will (usually) be 0.
This should definitely help: ETSI GSM 03.38 Specification