When running the demo download it claims:
"No IO Warrior Attached” or something similar.
My program gives me a NULL return when I run IowKitOpenDevice().
GetLastError returns 0.
I am using the SDK from July 21st 2005 and IOW24PV-P V1.0.2.3R
Microsoft HID recognizes the device when connecting to the USB port.
No IO Warrior Attached
Moderator: Guido Körber
-
- Site Admin
- Posts: 2856
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
Try this version:
http://www.codemercs.com/Downloads/IowKit15Beta2.zip
The new release of the IOW24PV can show up under two different PIDs.
http://www.codemercs.com/Downloads/IowKit15Beta2.zip
The new release of the IOW24PV can show up under two different PIDs.
Hang while writing
The new software helped the basic access problem. I am now able to open a connection, retrieve version information, chip revision, serial number, etc.
But when I try writing to the chip it either fails writing zero bytes or hangs depending on which pipe I write to. For example, I am trying to retrieve the power status. Here is my code:
It just hangs at the write. Am I doing something wrong? I have verified that the handle is open and working at this point.
Here is the information I was able to retrieve from the chip:
Thanks for the help.
But when I try writing to the chip it either fails writing zero bytes or hangs depending on which pipe I write to. For example, I am trying to retrieve the power status. Here is my code:
Code: Select all
char arrReport[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
unsigned long intReturn;
arrReport[0] = 20;
intReturn = IowKitWrite( hndIOW, 1, arrReport, sizeof(arrReport) );
if ( intReturn != sizeof(arrReport) ) {
memLog->Lines->Add( "Failed to write to the IOW. Return = " + String( intReturn ) );
}
else {
memLog->Lines->Add( "Response = " + String( (int)arrReport[1] ) );
}
Here is the information I was able to retrieve from the chip:
Code: Select all
IowKit Version IO-Warrior Kit V1.5
Opening Device...
Opened the device.
There is/are 1 device(s) connected.
Device #1
13697044: Is an unknown IOW (5394)
13697044: Revision 4131
13697044: Serial #00000224