Skip to content

USB device - Current consumption stays high before 1st connect #1284

@amveeq

Description

@amveeq

We've been working on the USB Device for a while and we noticed that there is some shortcomings in the USB device library which result in the high current consumption before (any class) USB device is connected for the 1st time. There has been already reported couple of issues “USB Serial constructor blocking" (#53) and “Allow USBDevice::connect() to be non-blocking" (#169) with some level of fixes.
Related to the issues mentioned there is also another potential way to correct the issues. Constructing the Serial (or MSD class) object a bit differently, current consumption can be limited in the main function: USBSerial (VID, PID, REL, false). This is possible with Serial and MSD classes as they support non-blocking construction.
However this still leaves Audio and HID classes with the current consumption issue as they do not support non-blocking construction.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions