Hi!

I want to communicate with SixAxis PS3 controller on linux OS, and I really don't know how...
The output from hidraw-dump looks like

Qt Code:
  1. 01 00 00 00 00 00 81 80 80 80 00 00 00 00 00 00
  2. 00 00 00 00 00 00 00 00 00 00 00 00 00 03 EF 16
  3. 00 00 00 00 33 FD 77 01 C0 FA 01 DB 01 92 01 EC
  4. 01 00
  5.  
  6. 01 00 00 00 00 00 81 80 80 80 00 00 00 00 00 00
  7. 00 00 00 00 00 00 00 00 00 00 00 00 00 03 EF 16
  8. 00 00 00 00 33 FD 77 01 C0 FA 01 DB 01 92 01 ED
  9. 01 00
  10.  
  11. 01 00 00 00 00 00 81 80 80 80 00 00 00 00 00 00
  12. 00 00 00 00 00 00 00 00 00 00 00 00 00 03 EF 16
  13. 00 00 00 00 33 FD 77 01 C0 FA 01 DB 01 92 01 ED
  14. 01 00
  15.  
  16. 01 00 00 00 00 00 81 80 80 80 00 00 00 00 00 00
  17. 00 00 00 00 00 00 00 00 00 00 00 00 00 03 EF 16
  18. 00 00 00 00 33 FD 77 01 C0 FA 01 DB 01 92 01 ED
  19. 01 00
To copy to clipboard, switch view to plain text mode 

Blocks are sent one every Xms, I have to capture them and send (only couple values) by TCP socket.
The question is, should I use a QProcess to capture those blocks, or a QIODevice and stdin, QFile or some other class?

What I want to achieve in this application is a signal every end of block (not every bit of data).

What is the best ( good ) way to do that