title: OBD-II Perl code hangs after specific number of AT requests
body: <p>After connecting to a Bluetooth OBD-II adapter, I am able to get
  data by sending PID service requests, but they stop exactly after
  the same number of requests.</p>
  
  <pre><code>for ( ;; ) {
      obj -&gt; write ( "010C\r" );
      if ( $data = $obj -&gt; input ) {
          print "$data";
      }
      obj -&gt; write ( "010D\r" );
      if ( $data = $obj -&gt; input ) {
          print "$data";
      }
  
  }
  </code></pre>
  
  <p>Can you please let me know what could be the problem? I read
  somewhere about two options 1) Re-initializing and 2) about
  buffer left with CRs. I am looking into those.</p>
  
  <p>(I used Torque on my android with the same OBD-II Bluetooth
   adapter and it seems to get the data continuously. So there
   must be something wrong in what I am doing).</p>
  
  <p>Thank you for any response.</p>