system
April 25, 2012, 1:33pm
1
RE: Reddit - Dive into anything
Harware:
I traced the USB commands to the missile launcher and it takes in four 0a 0a 00 00 00 00 00 00. I am having trouble sending this to the missile launcher via the arduino.
Pretty sure I have to do something like this: http://www.circuitsathome.com/mcu/driving-the-cheeky-mail-notifier-from-arduino#more-5665
But setReport is giving me errors.
system
April 25, 2012, 1:39pm
2
But setReport is giving me errors.
Your code? The errors?
Our psychic is out sick today. Strange that she didn't see that coming...
system
April 25, 2012, 1:44pm
3
http://www.circuitsathome.com/mcu/driving-the-cheeky-mail-notifier-from-arduino#more-5665
I can't even compile the above. I believe it is because it is using the legacy usb host shield that does not work with arduino 1.0?
error: 'class USB' has no member named 'setReport'
Some information about the USB
Intf.number: 00
Alt.: 00
Endpoints: 01
Endpoint address: 82
Attr.: 03
Max.pkt size: 0008
Polling interval: 0A
Endpoint address: 81
Attr.: 03
Max.pkt size: 0008
Polling interval: 0A
system
April 25, 2012, 2:29pm
4
I believe it is because it is using the legacy usb host shield that does not work with arduino 1.0?
The hardware doesn't care which version of the IDE you use. Which version of the USB Host library are you using?
system
April 25, 2012, 3:30pm
5
USB Host Library 2.0
The legacy version wasn't working for me because it said the BYTE was outdated for arduino 1.0
system
April 25, 2012, 3:51pm
6
So, you are using version 2.0 with some code that expects version 1.0, and you are having problems compiling, and can't figure out why. Did I miss something?
system
April 25, 2012, 3:55pm
7
Nope, that basically sums it up.
So what is the replacement for setReport for 2.0?
system
April 25, 2012, 3:58pm
8
So what is the replacement for setReport for 2.0?
Beats me. Might be easier to get the older version working with 1.0, though.
system
April 25, 2012, 4:54pm
9
Where would I be able to download a pre-1.0 arduino environment?
system
April 25, 2012, 5:11pm
10
Why not make the USB 1.0 library work with Arduino 1.0? It can't be that hard.
system
April 26, 2012, 12:20am
11
Alright. I finally got this to compile. However, I don't think I am connected fully.
#define MailNotifier_ADDR 1
#define MailNotifier_EP 81
#define MailNotifier_IF 0
#define EP_MAXPKTSIZE 8
#define EP_POLL 0x0a
EP_RECORD ep_record[ 81 ];
Here is the usb information from arduino http://pastebin.ca/2140539
edit:// Here is my code: http://pastebin.ca/2140545
edit:// I got it! http://pastebin.ca/2140564
I used pre-1.0 and the legacy USB driver.