HI, how can i read out the message from the GSM modem. The follow code only manage to show "at+cmgl=all" which is not the mesage i want. anyone know how to solve it ?

vb.net Code:
  1. [CODE]
  2. With serialport
  3.             .PortName = "COM6"
  4.             .BaudRate = "115200"
  5.             .StopBits = IO.Ports.StopBits.One
  6.             .DataBits = 8
  7.             .Parity = IO.Ports.Parity.None
  8.             .ReadBufferSize = 10000
  9.             .ReadTimeout = 1000
  10.             .WriteBufferSize = 10000
  11.             .WriteTimeout = 10000
  12.             .RtsEnable = True
  13.  
  14.             .Open()
  15.             .DiscardOutBuffer()
  16.             'for reading sms
  17.  
  18.             atcCommand = "AT+CMGL=all"        'to read from inbox
  19.             .Write(atcCommand + vbCrLf)    'execute command on buffer
  20.  
  21. 'code manage to get out what it wrote in the atcCommand
  22.             TextBox1.Text = .ReadExisting
  23.  
  24.         End With
  25. [/CODE]