I have a sensor developed by PNI Corp called the spacepoint-fusion. I need to interface with this device in C++ and continuously read new data from the device.
When I plug the device into my computer, I see /dev/hidraw1 and /dev/hidraw2 show up. Also /dev/usb/hiddev0 shows up.
My problem is that I have no idea how to read these devices. I can't find any examples or documentation online. I don't even know where to start with this. I have been looking at libhid and hiddev as possible solutions, but as of yet, I can't figure out how to use either of these libraries.
So how do I read from this human interface device in c++ on a linux machine? Examples would be greatly appreciated. Thanks.