Actaully i have returned again to usb_bulk_msg with timeout set to zero so it Builds a bulk urb, sends it off and waits forever until it is completed.
and here is my simple application that uses the skeleton module: ********************************************************************************* do { insize =read (fd,(char*)inbuff, sizeof (inbuff) ); printf("insize is %d\n",insize); printf(" %s\n",inbuff); }while (strcmp(inbuff,"end")); **************************************************************************************** my aim is : when the gadget sends any word to the host, the latter can read it using the usb-skeleton module and prints the data received and its size as shown in the previous code. so when the gadget is sending "hello" for example,the host really receives it "hello" and the insize is 5 and then prints insize is -1 forever as follows: insize is 5 hello insize is -1 insize is -1 insize is -1 insize is -1 also the sending side of the gadget is closed ? so how can i solve this.i dont want the phrase of insize is -1 to be printed . i just want the output to be insize is 5 hello then it stops printing until the gadget sends another thing how can i achieve this? ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel