Author Topic: USB-CDC Host  (Read 7727 times)

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3238
    • View Profile
    • uTasker
USB-CDC Host
« on: July 22, 2017, 11:58:15 AM »
Hi All

This topic has been created from snippets from a different thread (from Paul) and will be continued here:

PS: Thank you for the usb stack fixes, all my problems seem to be gone :)

BTW:

There seems to be still a bug in the USB-Host functions where it gets stuck requesting the IN token.
I can't really reproduce it but it happens sometimes after half an hour and sometimes after 5 hours :)


Continued...

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3238
    • View Profile
    • uTasker
Re: USB-CDC Host
« Reply #1 on: July 22, 2017, 12:02:35 PM »
Hi Paul

Does this mean that the host does not sent IN frames from a certain point in time?
For USB-CDC host IN frames will be sent all of the time when the host is not transmitting itself so it sounds as though the IN tokens haven't been re-enabled after a transmission has been performed.

Is such a call missing?
fnDriver(USBPortID_comms[FIRST_CDC_INTERFACE], (RX_ON), 0);
or can you identify that such a call failed (to restart the IN tokens)?

Regards

Mark

Offline kingston

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: USB-CDC Host
« Reply #2 on: August 07, 2017, 09:30:22 AM »
Hi Mark,

I was out of the office for the last two weeks so I did not check it again.
I will leave debugging running over night and will tell you the result.

Regards

Paul