Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Hy,I want to get Mobile information such as Menufacture,IMEI etc through AT command.I am using the following code but this does not work.
VB
Try
            If SerialPort1.IsOpen Then
                Label11.Text = (SerialPort1.Write("AT+CGMI"))
            Else
                MsgBox("Sorry ! there is some error in your computer port")
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub


[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 1-Jun-13 21:10pm
v2
Comments
[no name] 1-Jun-13 22:11pm    
Why would you expect writing to a serial port (a void method) to magically put text into a label?
How many times are you planning to post and reposting this same thing?
OriginalGriff 2-Jun-13 3:10am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.

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