From: shermin i. <she...@gm...> - 2008-07-16 03:41:36
|
Hi, I am trying to send one command for initialising the printer.In return it will send one 96 bytes of data containing printer information Seeism On 7/15/08, Tim Roberts <ti...@pr...> wrote: > seeism wrote: > > 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 > > > > What are you expecting to read from your printer? > > -- > Tim Roberts, ti...@pr... > Providenza & Boekelheide, Inc. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Libusb-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel > |