No IO Warrior Attached

This is the English forum for all topics related to IO-Warrior. Please post in English only

Moderator: Guido Körber

Post Reply
hytecinc
Posts: 9
Joined: Mon Jun 19, 2006 9:55 pm

No IO Warrior Attached

Post by hytecinc »

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.
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Post by Guido Körber »

Try this version:
http://www.codemercs.com/Downloads/IowKit15Beta2.zip

The new release of the IOW24PV can show up under two different PIDs.
hytecinc
Posts: 9
Joined: Mon Jun 19, 2006 9:55 pm

Hang while writing

Post by hytecinc »

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:

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] ) );
	}
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:

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
Thanks for the help.
Post Reply