Python UCP Library (SMS)
https://launchpad.net/ucplib
EMI - UCP interface specification v4.6 with ucplib Setup First we need to import the UcpMsg form the library >>> from ucplib import UcpMsg
General examples The SMT sends a message to the SMSC with text “hello” in the GSM 7-bit alphabet. Note that “hello†in ASCII has the same encoding.
‘49/00078/O/51/0031612345678/55555/////////////////3//68656C6C6F/////////////0D’
Specific types Type 01 messages Operation Alphanumeric message ‘Short Message’ to receiver 01234567890 from sender 09876543210
>>> msg = UcpMsg( o_r=“O”, ot=01, adc=“01234567890”, oadc=“09876543210”, mt=3, amsg=u“Short Message”) >>> print msg 00/00070/O/01/01234567890/09876543210//3/53686F7274204D657373616765/D9