title: GsmCommMain - No Phone Connected Error in C# (Sending SMS using broadband stick)
body: <p>I want to use a broadband stick and create a C# application in VB.net 2012 that can send SMS message to single / multiple mobile phones. I'm currently connected to a COM Port, but I could not send any message. Here is my whole code:</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  using GsmComm.GsmCommunication;
  using GsmComm.PduConverter;
  using GsmComm.Server;
  using GsmComm.Interfaces;
  
  namespace myTEXT
  {
  public partial class Form1 : Form
  {
      private GsmCommMain comm;
  
  
      public Form1()
      {
          InitializeComponent();
      }
  
      private void Form1_Load(object sender, EventArgs e)
      {
      }
  
      private void cmdSend_Click(object sender, EventArgs e)
      {
              SmsSubmitPdu pdu;
              byte dcs = (byte)DataCodingScheme.GeneralCoding.Alpha7BitDefault;
              pdu = new SmsSubmitPdu(txtMessage.Text, txtPhoneNumber.Text, dcs);
  
                  comm.SendMessage(pdu);
  
      }
  
      private void cmdConnect_Click(object sender, EventArgs e)
      {
  
          if (txtCommPort.Text == &quot;&quot;)
          {
              MessageBox.Show(&quot;Invalid Port Number!&quot;);
  
          }
  
          else
          {
              comm = new GsmCommMain(txtCommPort.Text, 9600, 150);
              Cursor.Current = Cursors.Default;
  
                  Cursor.Current = Cursors.WaitCursor;
                  comm.Open();
                  Cursor.Current = Cursors.Default;
                  MessageBox.Show(&quot;Connected!&quot;);              
                   
  
          }
      }
  }
  }
  </code></pre>
  <p>When I run my program, I can connect to a certain port (for my case, COM22). But when I try to send my message, it has an error</p>
  <blockquote>
  <p>CommException was unhandled</p>
  <p>No phone connected.</p>
  </blockquote>
  <p>What to do?</p>
  <p>Thanks for the help!
  Happy coding ^_^</p>