Skip to content

Mouse "Disconnect" (or else is ignored by the host)? #9

@coofercat

Description

@coofercat

I'm using the example code to show a mouse moving. I've removed the serial printing so it doesn't slow anything down, and instead flash the onboard LED if movement is detected.

For reasons I can't explain, every once in a while, the mouse seems to "disconnect" or otherwise becomes ignored by the host. My mouse has a light which flashes when it is genuinely disconnected, or is connecting to a host, and this doesn't flash, suggesting this isn't a proper USB-level disconnect. The repeated calls to usbHost.task(); in the loop() are definitely being made.

The only solutions I've found are to disconnect and reconnect the mouse, or else reset the ESP.

I've tried increasing the logging for the underlying ESP libraries (in the Arduino UI: Tools -> Core Debgging Level -> Info), but don't get anything from that when this problem occurs. This logging DOES show the mouse being disconnected/reconnected, again suggesting this isn't actually a USB-level disconnect.

Other that that, I don't have a lot of information to go with. It's hard to reproduce, because it can be hours before it happens, and it doesn't seem to matter what you're actually doing with the mouse at the time either. I'm happy to experiment a bit if anyone has any ideas what might be worth trying.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions