Servo disconnected when digital microscope is connected

Supporting Visual Studio on Windows
jeden
Fresh meat
Posts: 3
Joined: Tue Sep 13, 2011 4:02 am
Contact:

Servo disconnected when digital microscope is connected

Postby jeden » Tue Sep 13, 2011 4:16 am

Hello,

I'm writing an application controlling:
- a Dino-Lite AM-423X digital microscope
- a Phidgets AdvancedServo 1066 connected to a HS-645MG servo

Both work fine when connected individually, but if I try attaching both at the same time the Servo gets disconnected, with no error message.

Disconnection occurs randomly from immediately to a few seconds after the microscope is attached, regardless of whether I am moving the servo (via the slider implemented in my application) or not.

After enabling logging, I see something happens, but I can't figure out what.

Code: Select all

09/13/11 11:47:10,3828,".\windows\cusbwindows.c(545)",ERR,"GetOverlappedResult failed with error: ERROR_GEN_FAILURE (A device attached to the system is not functioning)"
09/13/11 11:47:10,3828,".\cthread.c(429)",ERR,"WriteThread exiting - CPhidget_write returned : 3"
09/13/11 11:47:10,6240,".\cphidgetmanager.c(221)",WARN,"PHIDGET_USB_ERROR_FLAG is set - cycling device through a detach"
09/13/11 11:47:10,5428,".\windows\cusbwindows.c(686)",INFO,"closeReadEvent signalled - cancelling outstanding read..."
09/13/11 11:47:10,5428,".\windows\cusbwindows.c(702)",INFO,"read successfully cancelled"
09/13/11 11:47:10,5428,".\cthread.c(293)",INFO,"ReadThread exiting normally (signaled by CPhidget_close)"
09/13/11 11:47:12,6240,".\windows\cusbwindows.c(265)",INFO,"New Phidget found in CUSBBuildList: \\?\hid#vid_06c2&pid_0082#6&1f154905&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}"
09/13/11 11:47:12,6240,".\windows\cusbwindows.c(395)",INFO,"Phidget successfully opened in CUSBOpenHandle"
09/13/11 11:47:12,6300,".\cthread.c(354)",INFO,"WriteThread running"
09/13/11 11:47:12,5872,".\cthread.c(236)",INFO,"ReadThread running"
09/13/11 11:47:14,5872,".\windows\cusbwindows.c(668)",INFO,"GetOverlappedResult failed with error: ERROR_DEVICE_NOT_CONNECTED"
09/13/11 11:47:14,5872,".\cthread.c(290)",INFO,"ReadThread exiting normally (Phidget detach detected in CPhidget_read)"
09/13/11 11:47:14,6300,".\cthread.c(418)",INFO,"WriteThread exiting normally (Phidget detach detected in CPhidget_write)"
09/13/11 11:47:15,6240,".\windows\cusbwindows.c(265)",INFO,"New Phidget found in CUSBBuildList: \\?\hid#vid_06c2&pid_0082#6&1f154905&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}"
09/13/11 11:47:15,6240,".\windows\cusbwindows.c(395)",INFO,"Phidget successfully opened in CUSBOpenHandle"
09/13/11 11:47:15,3824,".\cthread.c(354)",INFO,"WriteThread running"
09/13/11 11:47:15,6716,".\cthread.c(236)",INFO,"ReadThread running"


Any help please?

Development environment is a Windows Vista x64, VS.NET 2010, compilation targeted to x86.

Thanks
Antonio

User avatar
Patrick
Lead Developer
Posts: 3155
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Servo disconnected when digital microscope is connected

Postby Patrick » Tue Sep 13, 2011 8:44 am

It looks like a voltage or EMI issue. What type of computer are you using? Are the USB devices attached directly, or via a hub? You can try attaching them via a powered hub, or try attaching the 1066 via a thicker cable, or a cable with ferrite beads.

-Patrick

jeden
Fresh meat
Posts: 3
Joined: Tue Sep 13, 2011 4:02 am
Contact:

Re: Servo disconnected when digital microscope is connected

Postby jeden » Tue Sep 13, 2011 8:50 am

Patrick wrote:It looks like a voltage or EMI issue. What type of computer are you using? Are the USB devices attached directly, or via a hub? You can try attaching them via a powered hub, or try attaching the 1066 via a thicker cable, or a cable with ferrite beads.

-Patrick


Hi Patrick,

thanks for your reply.

The computer is an "anonymous" assembled one, based on Asus P5B Deluxe.
Devices are attached directly to the motherboard ports - I'm not using any hub.
Unfortunately I don't have a powered hub - need to check if I have other USB cables svto test with.

I'll try and let you know

Thanks

jeden
Fresh meat
Posts: 3
Joined: Tue Sep 13, 2011 4:02 am
Contact:

Re: Servo disconnected when digital microscope is connected

Postby jeden » Tue Sep 13, 2011 9:54 am

I tried using the printer cable.... and it works

Apparently they look the same... same length, even same color (I know... that's irrelevant) - but the printer cable is about 10 years old, whereas the one I used is brand new. Does that mean old is better? :)

Thank you very much for your help

User avatar
Patrick
Lead Developer
Posts: 3155
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Servo disconnected when digital microscope is connected

Postby Patrick » Tue Sep 13, 2011 4:03 pm

It probably has thicker wires, and so any voltage drop will be less severe - because the 1066 is powering a servo directly with USB power, it's using more power then most USB devices.

-Patrick


Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 1 guest