How to send AT commands to a sony ericsson phone using VB ?

Posted By: KP On May 5, 2009 Under Mobile Tricks, Programming, Tips and Tricks Categories


This tutorial teaches how to connect / operate / send AT commands to sony ericsson phone using Visual Basic

If the device is detected as a modem, you need to know which COM port it is attached to.
Go to Device Propeties and check the properties of the detected modem and check which port it connects to.
Then in VB add the MS Comm control, and set the properties.
I suppose you should use the slowest speed and use hardware flow control.
Now send the AT commands like normal ASCII data like MSComm1.Output = “AT”

How to add MS comm Control in VB:

1. Create a new Standard EXE project. Form1 is created by default.
2. Choose Components from the Project menu, check the “Microsoft Comm Control,” and click OK.
3. Add an MSCOMM control to the form.
4. Add a label(to display the data send by the hardware)
5. At the properties – MSComm1, the settings i have change to 9600,n,8,1

Now you need send AT commands to the serial port.

Here is list of AT commands with examples fro sony ericsson.A nice guide from sony ericsson.

http://developer.sonyericsson.com/getDocument.do?docId=65054

Download it.

Below is code for hangup current call in phone , you can develop your own software.Here is just an example for single task.

Private Sub Command1_Click()
MSComm1.CommPort = 4
MSComm1.Settings = “921600,N,8,1”
MSComm1.Handshaking = comNone
MSComm1.PortOpen = True
MSComm1.Output = “ATH” & Chr$(13)
MSComm1.PortOpen = False
End Sub

Hope you enjoyed the post and This will help you to develop your own software for controlling phone.



Share with Friends ( Sharing is Caring! )


Subscribe For E-mail Notification Of Article Updates

Enter your email address:

NOTICE:
DO NOT FORGET TO CLICK ON THE VERIFICATION LINK AFTER SUBSCRIBING,THE VERIFICATION MAIL WILL BE SENT TO YOU FROM "FeedBurner Email Subscriptions".
( What is this? Why I need to do this?)

Related Posts

Post a Comment

OR