ts-7000
[Top] [All Lists]

[ts-7000] Re: mouse as flow meter

To:
Subject: [ts-7000] Re: mouse as flow meter
From: "j.chitte" <>
Date: Thu, 20 Sep 2007 05:38:04 -0000
--- In   wrote:

> Fortunately, the kernel driver isn't going to make a difference to 
any
> of these problems, so you do not need to worry about it.  Regular
> serial port programming is sufficient.
> 
> Mark S.
>


Hi,

I finally found time to get a bit further with this. In general it 
works pretty well using std serial port I/O as Mark suggested. The 
nice bit was that the PCB from the mouse slotted into the pump with 
vertually no modifications.

Unfortunately I can only get the time that I read the port not the 
time of the "mouse" event but that is sufficient for this application 
since it's just an average flow I'm after not an instanteous value.

The only thing I have not sussed is resetting the mouse. The best 
info I have managed to find involved fiddling with DTR RTS and 
setting bit 6 of the LCR. The mouse should respond with "M".

Acces to LCR presumes a std UART so I'm not sure how to translate 
that to the ARM. My best shot so far is this which has absolutely no 
visible effect on the mouse:

    ioctl(fd, TIOCMGET, &status);

    status &= ~TIOCM_DTR;
    status &= ~TIOCM_RTS;
    ioctl (fd, TIOCMSET, &status);
    usleep(200000);
     tcsendbreak(fd,0);

    status |= TIOCM_DTR;
    status |= TIOCM_RTS;
    ioctl (fd, TIOCMSET, &status);


Any suggestions would be grand.

TIA. 

/jacques.




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU