title: Send Ctrl+Z to serial port via command line
body: <p>I am trying to send the following to the COM1 serial port via command line using ECHO or similar (I've also tried downloading a small program called serialsend, but I am stuck with how to send the equivalent of <kbd>CTRL</kbd>+<kbd>Z</kbd>. This is to send a SMS message via a Siemens TC35 GAM module. I am able to do it via Hyperterminal as a test and it works fine, but I cannot figure out how to send the <kbd>CTRL</kbd>+<kbd>Z</kbd> at the end to confirm the ned of the message.</p>
  
  <p>This is what I have:</p>
  
  <pre><code>AT
  
  AT+CMGF=1
  
  AT+CMSG="+xxxxxxxxxxx"
  
  HELLO
  </code></pre>
  
  <p>Now, after Hello, which is the message I want to send, I have to send <kbd>CTRL</kbd>+<kbd>Z</kbd>. But cannot figure out how to do it, I have tried this:</p>
  
  <pre><code>AT
  
  AT+CMGF=1
  
  AT+CMSG="+xxxxxxxxxxx"
  
  HELLO
  
  \x1A
  </code></pre>
  
  <p>As I read somehwere that this would be the equivalent of doing it, but it hasnt worked.</p>
  
  <p>Can anyone help me with this? I have found solutions, but they are not command line, which is what I need.</p>
  
  <p>I have also tried using this format:</p>
  
  <pre><code>ECHO AT &gt; COM1:
  </code></pre>
  
  <p>But as I don't know how to send <kbd>CTRL</kbd>+<kbd>Z</kbd> I don't know if it is working.</p>