سلام
اگه مودم خاموش باشه sms ها داخل مودم که نیست!!
بعد از وصل کردن و روشن شدن به سیم کارت ارسال می شه .
بعدش باید خودت با دستورات at بخونیشون.
p_strCommand=
"AT+CMGL="ALL"
"AT+CMGL="REC UNREAD"
"AT+CMGL="STO SENT"
"AT+CMGL="STO UNSENT"
ExecCommand(port, "AT", 300, "No phone connected")
' Use message format "Text mode"
ExecCommand(port, "AT+CMGF=1", 300, "Failed to set message format.")
' Use character set "PCCP437"
ExecCommand(port, "AT+CSCS=""PCCP437""", 300, "Failed to set character set.")
' Select SIM storage
ExecCommand(port, "AT+CPMS=""SM""", 300, "Failed to select message storage.")
' Read the messages
Dim input As String = ExecCommand(port, p_strCommand, 5000, "Failed to read the messages.")