Skip to content

Android app for Dream Cheeky Thunder USB missile launcher

March 22, 2014

Image

 

Google ADT includes the missilelauncher App. source code. I connected it to my Dream Cheeky Thunder USB missile launcher. But it didn’t work. 

I found interesting documents which describes the detail of USB HID requests used in Missile Launcher. http://fivedots.coe.psu.ac.th/~ad/jg/nui04/index.html 

For now I couldn’t download USBTrace for finding out the details of USB HID requests. I have one but evaluation was expired long time ago. Anyway, I installed USBTrace on another computer and found that USB product id, vendor id and internal commands are changed.

You should add the below to device_filter.xml 

<!– vendor and product ID for Dream Cheeky Thunder USB Missle Launcher –>
<usb-device vendor-id=”8483″ product-id=”4112″ />

In MissileLauncherActivity.java, two parts are required to change. 

byte[] message = new byte[2];   // changed 2 from 1
message[0] = 0x02;   // added 
message[1] = (byte)control;  // moved from message[0]

That’s all. 

 

Advertisements

From → General

One Comment
  1. Mårten Thurén permalink

    Thank you very much! Got mine working with this, but I had to change <!- to and change the quotes to “straight” quotes, minor things.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: