I have a Huawei Modem connected to my VB.net project
all AT Commands work such as CONNECT
, READ
and SEND SMS
The only thing that I cannot work with is the DELETE SMS
I have this code:
With SerialPort1
.Write("AT")
Threading.Thread.Sleep(1000)
.Write("AT+CMGF=1")
Threading.Thread.Sleep(1000)
.Write("AT+CPMS=""SM""" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("AT+CMGD=1,4")
Threading.Thread.Sleep(1000)
MsgBox(at_status.ToString)
End With
But the at_status
throws me "ERROR" always.
AT+CMGD=1,4
as what I've read on the documentation is the right command but it throws me an "ERROR" always.
What do you think is wrong with my code? All other command works, except this.