Hi Board,
I've a little problem with the USB2 test plug SDK. I have 3 plugs connected to my test system, USB2NumPlugsConnected() detects all 3 and USB2GgetDeviceInfo() returns the correct serial numbers.
I use USB2GetConnectedPlugs() to get the connected plugs for testing, but when I have a look inside the returned bool array, I can see that only the first [0] ist set to true. When I call USB2StartTest() only the first plug is tested.
If I set [1] and [2] also to true, no plug were tested.
Somebody an Idea what's wrong? Maybe my invoke deklaration?
Thanks!
I've a little problem with the USB2 test plug SDK. I have 3 plugs connected to my test system, USB2NumPlugsConnected() detects all 3 and USB2GgetDeviceInfo() returns the correct serial numbers.
I use USB2GetConnectedPlugs() to get the connected plugs for testing, but when I have a look inside the returned bool array, I can see that only the first [0] ist set to true. When I call USB2StartTest() only the first plug is tested.
If I set [1] and [2] also to true, no plug were tested.
Somebody an Idea what's wrong? Maybe my invoke deklaration?
Thanks!
PHP Code:
[DllImport("USB2DLL.dll", EntryPoint = "USB2SetTestParameters")]
public static extern bool USB2SetTestParameters([In] Boolean[] useplug, int mode, uint duration, DATA_PATTERN dataPattern, ulong patternStart, bool verifyData);
PHP Code:
bool[] bUSBDevs = new bool[Libs.PCTestLibUSB2Plug.MAX_USB_DEV_NUMBER];
if (!Libs.PCTestLibUSB2Plug.USB2GetConnectedPlugs(bUSBDevs))
{
...
}
else
{
Libs.PCTestLibUSB2Plug.USB2SetTestParameters(bUSBDevs, Libs.PCTestLibUSB2Plug.LOOPBACK, 60, Libs.PCTestLibUSB2Plug.DATA_PATTERN.CONSTANTBYTE, 0, true);
Libs.PCTestLibUSB2Plug.USB2StartTest();
...
Comment