I have similar problem too.
My board with mega8 mcu used for retrieve data from dallas 1-wire temperature sensor and next to computer. I'am use "commandline" program from powerswitch distributive with some tiny changes. About 5-10 hours it's works is fine then i have -
"Warning: cannot query manufacturer for device: error sending control message: Input/output error".
Used OS - FreeBSD 7.0-STABLE.
In system logs no messages about connect/disconnect.
Only disconnect and connect by hand enables board for further operate...
I'am use zener diode on D+ and D-... hmm 3.3v.
and i'am use usb drivers from last powerswitch (2008-02-28)
P.S.: Sorry for bad english.
AVR_USB timing out?
christian wrote:3.3 V Zener diodes are not a very good idea. Can you please measure the voltage level on D-? Is it well above 2.5 V?
Yes, I have measured. Between VCC and D- voltage 3.15V, between GND and D- voltage 1.95V. It is normal? No?
Also before your post I have changed connection 1.5K pullup resistor from VCC to pin on MCU and change firmware as it was recommended earlier:
Code: Select all
int main(void)
{
uchar i;
usbInit();
/* enforce USB re-enumerate: */
usbDeviceDisconnect(); /* do this while interrupts are disabled */
for(i=0;--i;){ /* fake USB disconnect for > 250 ms */
_delay_ms(1);
}
usbDeviceConnect();
....
sei();
for(;;){ /* main loop */
usbPoll();
....
}
}
defined USB_CFG_PULLUP_IOPORTNAME, USB_CFG_PULLUP_BIT also.
it has worked some days, and I was already happy, but... again all has repeated.
One more interesting thing. The program(firmware) thus works, as the light-emitting diode blinks in cycle... but usb-connection is down.
Thanks for help, christian.