title: Reading from /dev/hidraw1 device connected to linux system
body: <p>I have a QR/Bar code scanner connected to my linux system, which comes up as /dev/hidraw1 device.
  If I do <code>ls -la /dev/hidraw*</code> I get </p>
  
  <pre><code>crw------- 1 root root 248, 0 May  5 10:18 /dev/hidraw0
  crw------- 1 root root 248, 1 May  5 11:05 /dev/hidraw1
  </code></pre>
  
  <p>Whenever I try to read from this device using <code>cat /dev/hidraw1</code> command I get a lot of junk data along with the encoded data also the it doesn't comes up in a formatted way. Here is the output of one of the QR code</p>
  
  <pre><code>    68&lt;,?
            .4xml ve7'rsion4="1
  
  ..0"4    encod-%in4876g=
                                     "UTF-8"?&gt;&lt;PrintLetterB,
                                                                         .arcod4e&amp;D!'ata"&amp;% ' uid=$"12345,.678",name=
                                                                                                                                        "Rohit 4Ka,
  poo.44r,."4 gend&amp;&amp; er=4"M,."4 yob=8"319,93" co
                                                                ="S
  
                                                                    ,/O:
                                                                          Mukesh  4,
  </code></pre>
  
  <p>Why its not coming in continuous readable string, changing the Baud-rate also didn't made any difference.
  <a href="https://i.stack.imgur.com/EYrL0.jpg" rel="nofollow noreferrer">Here is the screenshot attached</a></p>