Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send Unicode (UCS2) SMS with AT commands

I am trying to send Unicode SMS using AT commands and UCS2 encoding. But it doesn't work, as I get errors. Here is my inputs:

AT
OK
AT+CSCS = ? 
+CSCS: ("IRA","GSM","UCS2")
AT+CSCS="UCS2"
OK
AT+CMGF=1
OK
AT+CSMP=1,167,0,8 //So this one doesnt work, let's try with 17,167,0,8
ERROR

AT+CSMP=17,167,0,8
OK
AT+CMGS="+370********"
ERROR

Or maybe I should use PDU mode to achieve this?

I have tried using older modem, and UCS2 works in that one, however not in one I'm using. But I'm sure this conflicting modem supports UCS2.

like image 251
kaktusas2598 Avatar asked Oct 26 '25 01:10

kaktusas2598


1 Answers

I found I just needed to encode my number in AT+CMGS to UCS2, and now it works:

AT+CMGS="002B003300370030************************"
like image 181
kaktusas2598 Avatar answered Oct 28 '25 15:10

kaktusas2598



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!