title: AT command to identify connection type
body: <p>I wrote software to identify and control different modems using AT commands.</p>
  
  <p>Everything works fine, but I'd like to know if the modem is working with GPRS, Edge, 3G or LTE.</p>
  
  <p>How can I get this information?</p>
  
  <p>Is it provided by the modem via unsolicited results or do I have to query the information with a specific standard command (or modem dependent command)?</p>
  
  <h2>Update</h2>
  
  <p>I wanted to have a general solution, but this is not possible as the <code>[AcT]</code> response to <code>+CREG</code> and <code>+CGREG</code> is not returned by my modem (GTM661W), no matter if I am connected or not.</p>
  
  <p>So I played with proprietary commands for the GTM661W and managed to get information about <code>WCDMA</code>-status (if <code>WCDMA</code>, <code>WCDMA + HSDPA</code>, <code>WCDMA + HSUPA</code> or <code>WCDMA + HSDPA + HSUPA</code> is used) unsing <code>_OWCTI?</code>.</p>
  
  <p>I tried the following commands:</p>
  
  <ul>
  <li><code>_OWCTI?</code> => <code>_OWCTI: 4</code></li>
  <li><code>_OUWCTI?</code> => <code>_OUWCTI: 0,4</code></li>
  <li><code>_OCTI?</code> => <code>_OCTI: 0,0</code></li>
  </ul>
  
  <p>This means now I am able to recognize <code>3G</code> and <code>H</code> connection types, but not <code>G</code> and <code>E</code>.</p>
  
  <p>How can I recognize <code>G</code>, <code>E</code>, <code>3G</code> and <code>H</code>?</p>
  
  <hr>
  
  <h2>Remark</h2>
  
  <p>Unfortunately I am not able to test this any more. Therefore I am not able to accept an answer, since I can't evaluate if the solutions are working on various devices of different manufacturers.</p>