This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C1294NCPDT: Identify when software is connected when using Bulk USB connection

Part Number: TM4C1294NCPDT


Tool/software: Code Composer Studio

I am developing a device based on the tm4c1294 launchpad. I am using a bulk USB connection to transfer blocks of data back to a PC acting as the host.

I note there are the USB_EVENT_CONNECTED and USB_EVENT_DISCONNECTED events that allow me to tell when the device has been connected/disconnected from the PC, however I don't seem to be able to find any events that relate to if a software application is actually listening to the endpoint.

I am very new to USB development and much more used to communications via a USB-Serial chip where the drivers make it possible to tell when the comport between the PC and device have been opened.

Is this possible over USB using usblib or does this need to be included in my own communications protocol.

  • Hello Hugh,

    There are not specific USB event's defined within the firmware to handle that level of detail for the connection status, but there is a struct which tracks states for the USB bulk device which is the tBulkState in the usbdbulk.h file.

    That struct is used along with other variables to form the tBulkInstance struct, which is what is used by the usblib in various API's.

    That would be the closest the usblib offers to what you are looking for, anything more specific than that would need to be part of your own communication protocol.
  • Hi Hugh,

    To add with Ralph's great insight of target side library.

    The USB bulk device Windows client can detect if the target USB endpoint is online and listening. Below link you can find in Windows examples USB bulk device echo project for MS Visual Studio 2000 and modify it to handle transfers back and forth. Best of luck!

    http://software-dl.ti.com/tiva-c/SW-TM4C/latest/index_FDS.html