The USB Circus Cannon has the USB ID 1941:8021
Bus 002 Device 003: ID 1941:8021 Dream Link USB Missile Launcher
and can be controlled under Linux to fire its small rockets. The program USB Missile Launcher is necessary to send commands to the miniature cannon. The corresponding Source-Forge projekt can be found at http://sourceforge.net/projects/usbmissile/.
This program allows to send commands to the cannon from the command line, e.g. :
./USBMissileLauncherUtils -t 2 -L ./USBMissileLauncherUtils -t 2 -R ./USBMissileLauncherUtils -t 2 -U -S 100 ./USBMissileLauncherUtils -t 2 -R -U -F
“-L” to move the cannon to the left, “-R” to move it to the right, “-U” to move it upwards, “-F” to fire the cannon. Therefore, it is possible to include the cannon in a simple way into scripts.
Additionally, it is possible to control the cannon from the keyboard. In this case the input device of the keyboard is provided to the program (event0 in the following example)
sudo ./USBMissileLauncherUtils -t 2 -c /dev/input/event0
The arrow keys can control the cannon, “F” can be used to fire it, while “S” is used to stop the movement..