title: how to open usb port and receive data of it using asio library?
body: <p>I have a device that communicates with another application(not written by me) that I want to get value of it using my application. googling I found the ansio library,I installed it and found <a href="http://www.webalice.it/fede.tft/serial_port/serial_port.html" rel="nofollow">this</a> tutorial for getting started. </p>
  
  <p>the question: how I to get the device name to set in port name?
  using <code>lsusb</code>, I get: </p>
  
  <pre><code>Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  Bus 002 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
  Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  Bus 001 Device 004: ID 0ac8:305b Z-Star Microelectronics Corp. ZC0305 Webcam
  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  </code></pre>
  
  <p>I want to handle the webcam device:</p>
  
  <pre><code>Bus 001 Device 004: ID 0ac8:305b Z-Star Microelectronics Corp. ZC0305 Webcam
  </code></pre>
  
  <p>then I wrote: </p>
  
  <pre><code>try {
      SimpleSerial serial("/dev/ttyUSB4",115200); // get SimpleSerial class on link above
      cout&lt;&lt;serial.readLine()&lt;&lt;endl;
      return 0;
  
  } catch(boost::system::system_error&amp; e)
  {
      cout&lt;&lt;"Error: "&lt;&lt;e.what()&lt;&lt;endl;
      return 1;
  }
  </code></pre>
  
  <p>but it given an: <code>Error: open: No such file or directory</code>
  how to fix this? thanks in advance.</p>