Csharp Code to make call By connecting you phone to PC

On July 17

Csharp Code to make call By connecting you phone to PC

The following code can be used make call using C# code by connecting Mobile to your laptop through USB cable.

SerialPort celu = new SerialPort();
            celu.PortName = textBox2.Text; // You have check what port your phone is using here, and replace it
            celu.Open();
            string cmd = "ATD";  // Here you put your AT command
            string phoneNumber = textBox1.Text; // Here you put the phone number, for me it worked just with the phone number, not adding any other area code or something like that
            celu.WriteLine(cmd + phoneNumber + ";\r");
            Thread.Sleep(600);
            string ss = celu.ReadExisting();



Responses

Nice

Yes, really goodone.

Could have been better.

Cool.

?

Leave your comment