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

Monday, March 2, 2015


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 make some alterations if you may and bingo ! ye gotcha ..

0 comments: