Home > OS >  Linux hidraw device reboot after unable to read data, you need to plug the equipment
Linux hidraw device reboot after unable to read data, you need to plug the equipment

Time:09-17

Recent development of Linux and USB communication, USB devices can be understood as a hid card reader, use RK3399 platform, system version of Debian 9

Insert usb device, under the/dev, can see hidraw0 equipment, so use below website way operating usb devices to read and write in a
https://blog.csdn.net/qq_33750826/article/details/79397984

But using found a problem, once the Linux system reboot, then execute a program, the open (/dev/hidraw0) can succeed, but can't read data, can only be back to normal to plug USB device

For Linux are not familiar with, so there are two problems

1, why the equipment identification system into hidraw0 rather than hiddev0, this is determined by the system, or USB peripherals decided yet
2. Why after reboot, can't read data,

Hope to have a great god can tell, grateful,

  • Related