Dear all,

I am getting error CMS ERROR: 500 when sending SMS messages from web
interface that come with Kannel 1.5.0

I have figured out that CMS ERROR: 500 in MY CASE is because: 
1) My modem is, by default, in "text mode" for SMS sending while Kannel
(bearerbox) is sending messages in PDU mode 
2) Kannel, as far as I can see can work only in PDU mode 
3) I have to initialize my modem, not in "text mode", but in PDU mode 

So, CMR ERROR: 500 is showing when there is some kind of inconsistency
in modem configuration (working in text mode trying to send PDU
messages... or vice versa) with having no specific and more precise
explanation in error description ... which sucks... 

Now, I have another problem: 
When try using minicom to work with modem using AT commands I can send
messages in PDU mode, let's say: 
AT+CMGF=0;+CSCS="UCS2";+CMGS=25 
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxx Ctrl+Z 

and part "xxxxxxxxxxx" I have converted using this
tool http://twit88.com/home/utility/sms-pdu-encode-decode

this procedure give me message on receiving phone. 

So, it should be same procedure in Kannel - just need to initialize
modem in proper way: 
AT+CMGF=0 (work in PDU mode) 
AT+CSCS="UCS2" (using Hex) 
AT+CMGS=25 (calculated for every particular message, in our case
calculated by Kannel) 
xxxxxxxxxxxxxx (calculated by Kannel, containing among other things SMS
Center number and text of SMS message) 

So, I need to add AT+CMGF=0 and AT+CSCS="UCS2" withing init-string of my
Huawei E220 modem. 
Till this moment, my initial script line in kannel.conf was: 
init-string = "AT+CNMI=2,1,2,2,0;+CMEE=1" 

Now, when I add to above line: +CMGF=0; +CSCS=UCS2 
init-string = "AT+CNMI=2,1,2,2,0;+CMEE=1;+CMGF=0;+CSCS=UCS2" 

I have an error in bearerbox log file - ERROR: Initialization error.... 

I supose I am making mistake in sintax of "init-string = ..."

I have tried init-string =
"AT+CNMI=2,1,2,2,0;+CMEE=1;+CMGF=0;+CSCS="UCS2"" .... but I've got same
error....
When put init-string = "AT+CNMI=2,1,2,2,0;+CMEE=1;+CMGF=0" I don't have
initialization error, but have CMS ERROR: and Rerouting error for
messages in queue for sending. When translate PDU message (PDU > ASCII)
there is no sms center number and some other fields...

Can someone help with this ? Does someone has "working init script" for
this modem ????


Reply via email to