Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
first of all i know that this question is frequently significantly,but i swear that i tried every thing to make my application do the required process (i checked almost every codeproject and Google articles).
i'm using the Huawei e1552 Modem, the application send SMS normally with the text mode.
when i tried the PDU mode the modem just send nothing !!! and i really don't know what is the cause .
i test some AT Commands as below:

"AT+CMGF=?"

and the response is : +CMGF(1,0)

"AT+CSCS=?"

and the response is : +CSCS("IRA","GSM","UCS2")

and i used the following code
VB
Dim sp As New SerialPort
        With sp
            .PortName = "COM9"
            .BaudRate = 9600
            .Parity = Parity.None
            .StopBits = StopBits.One
            .DataBits = 7
            .Handshake = Handshake.RequestToSend
            .DtrEnable = True
            .NewLine = vbCrLf
            .Open()
        End With
        sp.WriteLine("AT" & Chr(34))
        sp.WriteLine("AT+CMGF=0" & Chr(34))
        sp.WriteLine("AT+CMGW=24")
        sp.WriteLine("0891697408929929F011000A9187510930320000AA0CC8F71D14969741F977FD07" & Chr(26))


any suggestion will be appreciated
Posted

1 solution

bellow is the PDU AT commands procedure and the modem response also

every thing seems to look OK , but i receive no message at all !!!

  AT+CMGF=?
 
+CMGF: (0-1)
 
OK
 
AT+CMGF=0
 
OK
 
AT+CSCS=UCS2
 
OK
 
AT+CMGF=21
 
> 
0891697408929929F011000A9187510930320004AA086D6F68616D6D6564 & Chr(26)
 

+CMGS: 47
 
OK  
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900