Skip to content

How identify connection between MSC device and PC? #597

Answered by Stan6314
Stan6314 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi hathatch,
it took some time to get to investigate the problem. The whole problem with tud_ready() appears in the sequence of operations. ( I assume that you meant tud_ready() even when you write tud_read() ).
I used Adafruit Feather M0 Express and Adafruit_TinyUSB_Arduino.

  1. When you use tud_ready() and just try to connect the Feather module to the computer, everything works O.K. Every connection or disconnection from the PC is correctly signaled.
  2. It's the same even if you use only tud_ready() and connect (after RESET) the charger via the USB connector. Connection to the computer is not reported.
  3. But when you connect a computer first and then try to charge the battery, each charger conn…

Replies: 7 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@hathach
Comment options

@jcummings2
Comment options

@jcummings2
Comment options

Answer selected by hathach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants