Subject:
|
Re: Serial line interrupt
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Tue, 7 Jul 1998 05:21:30 GMT
|
Original-From:
|
Michael_Bonadio@peoplesoft#ihatespam#.com
|
Viewed:
|
1162 times
|
| |
| |
Hello all,
I have also had this problem and would be interested in any resolution.
However, on another note has anyone had luck or intruction on how to you
the serial code here :
http://el.www.media.mit.edu/groups/el/projects/handy-board/software/libs.ht
ml
I am not sure how this works and any information would be greatly
appreciated.
Thanks
Michael
Remi Desrosiers <harlock@videotron.ca> on 07/06/98 04:10:43 PM
To: handyboard@media.mit.edu
cc: (bcc: Michael Bonadio)
Subject: Re: Serial line interrupt
At 18:29 7/6/98 +0200, you wrote:
> Hello all,
>
> I'm currently trying to communicate between the Handy Board and a PC (i486)
> using the existing serial line between the two. Sending data from the handy
> Board to the PC is no problem. An interrupt handler puts all incoming serial
> data into a buffer, which the main program can read from.
>
> Sending data from the PC to the Handy Board is another story. The serial
> routines on http://www.ai.mit.edu/people/rsargent/ic/serialio.html work
> fine if
> the PC isn't sending very fast. The current 'solution' is to put the PC in a
> short loop after it has sent a character to slow it down. But that's not a
> very
> elegant solution.
>
> Is there a way to use the same technique on the handy Board as on the PC
> (using
> an interrupt handler)? If so, has anyone used that approach and is willing to
> share this code?
>
> If there is a simpler way of doing things, I would also be glad to know about
> it.
>
> Jan Sipke van der Veen
>
>
> Jose Antonio Barata de Oliveira
> Universidade Nova de Lisboa - Dep. Eng. Electrotecnica
> Quinta da Torre
> P 2825 - Monte da Caparica
> Portugal
>
>
> TF: +351-1-2948535
> FAX: +351-1-2948532
Hi,
you could simply build and Acknowledge routine so that every character sent
by the PC could be echoed back by the HandyBoard. It asks a bit more of
processing time from the HandyBoard, but at least it's simple to build :)
ex:
PC sends 0x56
HB sends back 0xFF then 0x56
(here 0xFF could tell the computer that this is an echoed character)
Or you could lookup how to build a CRC correction scheme and build a kind
of packet with the CRC byte at the end, which would save a lot of
transmission time, but more processing time for the HB.
.-------------------------- . . .
| Remi Desrosiers
| "My Youth in Arcadia" ICQ# 7228856
| harlock@videotron.ca
. remi.desrosiers@polymtl.ca
.
.
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|