Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 read SMS from sim (usb 3g modem)

$
0
0
hi guys..

i'm having trouble in reading sms...

in hyperterminal:

AT
-ok
at+cmgf=1
-ok
at+cpms?
-+cpms: "SM",11,50, "SM",11,50, "SM",11,50
OK

my vb.net code in reading SMS..

serialport1.writeline("at+cpms=""SM"")

or

serialport1.writeline("at+cpms=" & chr(34) & "SM" & chr (34))

also tried this

serialport1.writeline("at+cpms=")
serialport1.write(chr (34))
serialport1.write("SM")
serialport1.write(chr (34))

always returns ERROR

what could possibly wrong with my codes? thanks for your help guys

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>