To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 4109
4108  |  4110
Subject: 
Re: Serial line interrupt
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Mon, 6 Jul 1998 23:10:43 GMT
Original-From: 
Remi Desrosiers <harlock@videotron.ca=StopSpammers=>
Viewed: 
1138 times
  
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
.
.



Message is in Reply To:
  Serial line interrupt
 
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 (...) (26 years ago, 6-Jul-98, to lugnet.robotics.handyboard)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR