-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 25 Oct 2002 06:26, Douglas Roberts wrote:
> It seems that there are no takers.
I was away yesterday - busy.

> Does anyone have a suggested reference, or better yet, examples of a
> user-space application communicating with hiddev?
The examples that I know of (the Network UPS tools (http://www.exploits.org) 
and apcupsd) are readers.  You could look at those, but not sure if it will 
help.

The desciptors you provided are worthless. You could have used lsusb to get a 
better version yourself.
<snip>
> > Application 0 is 0xffa00001 (Needs to be added)
> >  Report id: 1 (1 fields)
> >    Field: 0: app: ffa00001 phys ffa00002 flags 2 (1 usages) unit 0 exp 0
> >      Usage: ffa00003 val 0
You need to know what this usage is for.

> >  Report id: 2 (1 fields)
> >    Field: 0: app: ffa00001 phys ffa00004 flags 2 (1 usages) unit 0 exp 0
> >      Usage: ffa00005 val 0
And this one.

> >  Report id: 3 (1 fields)
> >    Field: 0: app: ffa00001 phys ffa00006 flags 2 (1 usages) unit 0 exp 0
> >      Usage: ffa00007 val 0
And this one.

> >  Report id: 4 (1 fields)
> >    Field: 0: app: ffa00001 phys ffa00008 flags 2 (1 usages) unit 0 exp 0
> >      Usage: ffa00009 val 0
And this one.

> > Now, the specific question:
> >
> > I want to send this sequence of bytes to the radio:  0x03, 0x01, 0x0.
> > This will tell the radio to go into transmit mode and transmit a "0".
> > A side effect will be to turn on one of the radio's  LEDs.  Do I want
> > to do this with a SUSAGE first, followed by a SREPORT, or do I want to
SUSAGE, then SREPORT. Note that you can't send three bytes - you might be able 
to send three bytes of a data request to the control endpoint (so 8+3 bytes) 
though?

> > create instances of hiddev_event, like
> >
> > struct hiddev_event ev[64];
> >
> > fill in ev[0] - ev[2] and send them off via a write to the hiddev0
> > file descriptor?
You can't write() - it doesn't do anything:

static ssize_t hiddev_write(struct file * file, const char * buffer, size_t 
count, loff_t *ppos)
{
        return -EINVAL;
}

Brad
- -- 
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9uGJMW6pHgIdAuOMRAjf2AJoCxCpIKg7E8pNLpJB1i60HhxIxxgCfZIyK
OMnToRIqBoGpoYTQxTBWjDw=
=7ex/
-----END PGP SIGNATURE-----



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to