title: How to communicate with scale via rs232
body: <p>I am trying to make my C# application communicate with digital scale via rs232 by using SerialPort class in .net. Unfortunatelly I can't get any feedback from the scale.</p>
  
  <p>It's a TSCALE TSQSP scale and aparently it's using CAS communication protocol. From my understanding in CAS protocol i need to send "ENQ" wait for "ACK" and then send "DC1" to get information, but after sending "ENQ" I am not getting any reply. Here is my code. Does anybody has experience with scale with same communication protocol?</p>
  
  <p>Thanks a lot for any help</p>
  
  <pre><code>public partial class Form1 : Form
  {
      private SerialPort port = new SerialPort("COM6", 4800, Parity.None, 8, StopBits.One);
  
      public Form1()
      {
          InitializeComponent();
  
          port.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);
          port.Open();            
      }
  
      private void button1_Click(object sender, EventArgs e)
      {            
          port.Write("ENQ");
  
      }
  
      private void port_DataReceived(object sender, SerialDataReceivedEventArgs e)
      {
          this.textBox1.Text = port.ReadExisting();
      }      
  }
  </code></pre>
  
  <hr>
  
  <p>Thanks everybody for the help, all answers were helpful, I was finally able to make it work. First i found out i didnt have the scale set up properly and also you are right that i am supposed to send down 05H. Everything works now, thx.</p>