[sane-devel] On certain functions

2004-02-18 Thread m. allan noah
ok, you need to read the usb spec. it is a little hard to read, so i also 
recommend the usb in a nutshell doc from 
http://www.beyondlogic.org/usbnutshell/usb1.htm

there are 4 types of usb transfers. you must use whichever one the windows 
driver uses. a device will have several 'endpoints' (think of them like 
'ports' in IP) each of which has a specific purpose. you must use the ones 
that windows driver uses.

you got any of benoit's usbsniffer logs on a website so we can 
see them somewhere?

allan

On Tue, 17 Feb 2004, Jason Anderson wrote:

> Now I'm trying to send/recieve data from the scanner, however, I don't know 
> the proper functions and code to do that.  I've been looking in "sanei" and 
> it has a function called "sanei_usb_control_msg()".  Should I use this 
> function for certain transfers or should I use other functions?
> 

-- 
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera




[sane-devel] On certain functions

2004-02-17 Thread Jason Anderson
Now I'm trying to send/recieve data from the scanner, however, I don't know the 
proper functions and code to do that.  I've been looking in "sanei" and it has 
a function called "sanei_usb_control_msg()".  Should I use this function for 
certain transfers or should I use other functions?
-- 
___
Get your free email from http://www.iname.com




[sane-devel] On certain functions

2003-12-14 Thread Major A
Sorry, correction to my last email:

  SANE_Int fd;

rather than "int fd;".

  Andras



[sane-devel] On certain functions

2003-12-14 Thread Major A
> Sorry if this sounds weird, but what kind of device number exactly
> goes in the parameter for the function, sanei_usb_open()?  Can I
> write:

You don't give a number, you give a pointer to a SANE_Int, as
sane/sanei_usb.h tells you:

  extern SANE_Status sanei_usb_open (SANE_String_Const devname, SANE_Int * dn);

> int Dev_num = 48;
> sanei_usb_open("/Path/to/device", Dev_Num);

Rather like this:

  int fd;
  sanei_usb_open("/Path/to/device", &fd);

After that fd will be the device handle of your opened USB device.

  Andras

===
Major Andras
e-mail: and...@users.sourceforge.net
www:http://andras.webhop.org/
===



[sane-devel] On certain functions

2003-12-13 Thread Jason Anderson
Sorry if this sounds weird, but what kind of device number exactly goes in the 
parameter for the function, sanei_usb_open()?  Can I write:

int Dev_num = 48;
sanei_usb_open("/Path/to/device", Dev_Num);

Or do I have to get the answer from a different source?  From another function?

Thank you in advance.
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm