From: seeism <she...@gm...> - 2008-07-15 07:45:53
|
Hi, I am trying to send 6 byte commands to my usb printer.Write succeds but read fails and gives timeout error.What could be the reason. My code is ret=usb_bulk_write(usb_handle,0x02,&bulkwrite,sizeof(bulkwrite),5000); ret =usb_bulk_read(usb_handle,0x81,&bulkread,sizeof(bulkread),5000); printf("Return value of read is %d %s \n",ret,usb_strerror()); Output is -110 No error I am using fedora 8 with kernel 2.6.25 regards, seeism -- View this message in context: http://www.nabble.com/usb_bulk_read-gives-timeout-error-tp18459722p18459722.html Sent from the LibUSB Dev mailing list archive at Nabble.com. |