Answer the question
In order to leave comments, you need to log in
USB gun: movement codes?
Good evening, colleagues.
There is a *not* big problem that I would like to implement.
Given:
USB Rocketlauncher, a ruby script to control this device, which connects libusb and controls it through curses.
In principle, there are no problems with the script, however, I cannot find out which bytecode should activate the most important function - fire (fire!)
That is, I can send bytes to the device and the gun reacts normally, for example:
:up => 0x02,
:down => 0x01,
:left => 0x04,
:right => 0x08,
Answer the question
In order to leave comments, you need to log in
Solved a similar issue. It was necessary to intercept device commands that were transmitted over the network. For this, the Wireshark program came up. I think there should also be sniffers for usb. Search Google for "usb sniffer".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question