Page 1 of 1

Phidget22 - phidget22usb error

Posted: Wed Jul 05, 2017 8:04 am
by antowan
I am trying to use the new version of the phidget22.jar lib but I have that kind of error when I run the examples.

The Phidget control panel works properly on my Windows 10 64 bits machine.
I have no issue to compile in IntelliJ
Also I have added the phidget22 folder in the windows env path but it doesn't helped me.

Here is the log message in the console ::

Code: Select all

Opening and waiting 5 seconds for attachment...
INFO [_phidget22usb][2017-07-05T22:52:54]:Attaching Phidget: \\?\hid#vid_06c2&pid_0031#8&2488e6b0&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
INFO [_phidget22usb][2017-07-05T22:52:54]:Attaching Phidget: \\?\hid#vid_06c2&pid_0038#8&39cee3b6&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
INFO [_phidget22usb][2017-07-05T22:52:54]:Attaching Phidget: \\?\hid#vid_06c2&pid_007d&mi_01#9&3831469a&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
INFO [_phidget22usb][2017-07-05T22:52:54]:Attaching Phidget: \\?\hid#vid_06c2&pid_007d&mi_00#9&25012a5c&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [_phidget22usb][2017-07-05T22:52:54]:HidD_GetAttributes failed with error code: 0x00000490
INFO [_phidget22usb][2017-07-05T22:52:54]:Opened USB Device: 0x420
INFO [phidget22][2017-07-05T22:52:54 usb.c+391 PhidgetUSBReadThreadFunction()]: PhidgetRFID(1023) (35160): ReadThread starting
channel 0 on device 35160 attached
WARN [phidget22][2017-07-05T22:52:54 phidget.c+125 waitForReads()]: Timed out waiting for 1 reads in 100 ms


Gathering data for 10 seconds
INFO [phidget22][2017-07-05T22:52:54 rfiddevice.c+559 tagTimerThreadFunction()]: tagTimerThread running


ERR [_phidget22usb][2017-07-05T22:52:54]:HidD_GetAttributes failed with error code: 0x00000490
ERR [_phidget22usb][2017-07-05T22:52:54]:HidD_GetAttributes failed with error code: 0x00000490
ERR [_phidget22usb][2017-07-05T22:52:54]:HidD_GetAttributes failed with error code: 0x00000490
ERR [_phidget22usb][2017-07-05T22:52:55]:HidD_GetAttributes failed with error code: 0x00000490

last message repeated 38 times
Closed RFID
INFO [phidget22][2017-07-05T22:53:04 rfiddevice.c+607 tagTimerThreadFunction()]: tagTimerThread exiting normally
INFO [_phidget22usb][2017-07-05T22:53:04]:Closing USB Device: 0x420
INFO [phidget22][2017-07-05T22:53:04 usb.c+421 PhidgetUSBReadThreadFunction()]: PhidgetRFID(1023) (35160): ReadThread exiting normally (signaled by Phidget_close)

Process finished with exit code 0
Does any body had the same issue ?
Thank you for your support.

Re: Phidget22 - phidget22usb error

Posted: Wed Jul 05, 2017 12:06 pm
by Patrick
Does the Java example work despite the errors?

It looks like the errors may be coming from another USB device on the system that isn't a Phidget - maybe you could try unplugging other USB devices to see if that's the case.

The error should be ignorable, and probably logged at a higher level.

-Patrick

Re: Phidget22 - phidget22usb error

Posted: Fri Jul 07, 2017 7:50 am
by antowan
It works from the phidget control manager so the usb part is working fine here.
For the java part unfortunately no I can launch but the program fail with the errors I have posted.

I could make this work with the phidget21 lib so I wonder what I am missing here.

I could test with no error the HelloWorld example only.

How can I investigate further ?

Thank you.

Re: Phidget22 - phidget22usb error

Posted: Mon Jul 10, 2017 11:00 am
by Patrick
From your output, it looks like it's working fine. Did you have a tag near the reader that's not showing up?

You can remove the enableLogging line from the example to reduce the noise - the USB errors can be ignored.

-Patrick