unable to test usb c program on beagleboard

Hi i have ported android (rowboat) on beagleboard with libusb, lsusb , and also compiled the kernel with Config USBFS, mounted usb file system in init.rc, and when i give command lsusb it gives the vid & did both,
but i m trying to run a usb program using libusb api’s but it is alwaya giving error
device not found, code is as follows

result = libusb_init(NULL);
if (result >= 0)
{
devh = libusb_open_device_with_vid_pid(NULL, VENDOR_ID, PRODUCT_ID);
if (devh != NULL)
{
// The HID has been detected.
// Detach the hidusb driver from the HID to enable using libusb.
libusb_detach_kernel_driver(devh, INTERFACE_NUMBER);
{
result = libusb_claim_interface(devh, INTERFACE_NUMBER);
if (result >= 0)
{
device_ready = 1;
}
else
{
fprintf(stderr, “libusb_claim_interface error %d\n”, result);
}
}
}
else
{
fprintf(stderr, “Unable to find the device.\n”);
}
}
else
{
fprintf(stderr, “Unable to initialize libusb.\n”);
}