Skip to content

Detection of disconnection #2

Description

@FelixGruetzmacher

We are developing a USB device which, among other interfaces, provides ethernet via NCM with the help of your great library. It works beautifully.
However, we are running into a problem where the host sometimes decides to disconnect our device. We tested with other ethernet devices as well and saw the same disconnection behavior, so our device is not at fault (or at least shares this problem with others).
We are looking for a way (possibly a callback) to detect when the host disconnects from us. Unfortunately we cannot simply check VBUS as this pin is not handled by our main processor directly. Is there any way to ask how long ago the last transaction took place? We learned that not all transactions raise interrupts, so simply resetting a timer in the isr (as I ignorantly tried) won't do.
Any help is greatly appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions