N
N
NeverFoldAQ2012-11-01 18:44:56
ruby
NeverFoldAQ, 2012-11-01 18:44:56

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,

But for fire it is impossible to determine.
Question:
How can I find out the bytecode for a specific action? On the manufacturer's website (presumably: www.dreamcheeky.com/ ) it was not possible to find any API.
Thanks in advance for the options :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zhdanov, 2012-11-01
@zhdanov

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".

S
Sicness, 2012-11-01
@Sicness

Connect a microcontroller instead of a gun and see what the original program sends?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question