Dear all,
We are working on to write a CDC-ACM (HOST) class Driver in starter ware by taking usb MSC and HID Class a skeleton for the Development.We are succeeded up to the enumeration by calling USBHCDMain() function repeatedly.We are Facing some problems in Data Handling Stage.
For Initial development i have taken a Profilic BAFO, it is a USB-Serial Converter(VENDOR SPECIFIC CLASS) and registers the driver as a VENDOR_SPECIFIC and seems works fine up to the enumeration.In the Data Handling stage registers the call back functions to handle the data and notified to the application. i am Trying to loop back the data which are coming from the PC which is connected to the EVM USB(host) by using null modem cable.
we can add some structures,which are specific to CDC-ACM Class and handle the Enumeration.
we are facing some problems during the development phase.
1.How can i set the baud rate(comm parameters) for the Device?
2.As a host it has to handle the data at a specified rate,How can i achieve the task in the starter ware?
3.we are giving call back to the IN End point,but it is not notified to the call back when the data is available?
For the interrupt end points there is polling time interval and schedule the events based on the Polling time,but in case of the BULK Endpoints,the polling time is zero.
4.How Host will do the IN Transactions(tokens) to the Device?
Thanks & Regards
Rama Krishna