--- 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/
|