[comp.sys.handhelds] HP-48SX: Serial IO Details

dan@Apple.COM (Dan Allen) (03/13/90)

The built-in serial port of the HP-48SX should work moderately well for
shooting files across to terminals without Kermit.  I have sent files to
my Macintosh (it was running a standard terminal package called
MacTerminal) at 9600 baud without any problem.  The HP-48SX supports
setting parity, baud rates, receive pacing, and transmit pacing for
low-level serial transfers.

There are five low-level serial commands built into the HP-48SX:

*  XMIT - sends a string out the serial port
*  SRECV - receives characters with a boolean indicating success or not
*  STIME - sets the serial transmit/receive timout
*  SBRK - sends a serial BREAK
*  BUFLEN - returns the number of chars in the input buffer and a
boolean indicating if there have been framing errors or UART overruns

Together the basics of low-level serial transfers can be accomplished
with these commands.  The only problem is that programs and data must be
converted to strings before being sent.  Kermit automatically handles
such things.

There is no automatic checksumming of data sent; you need to roll your
own protocols, whereas Kermit has various options for such things.

Dan Allen
Happy HP-48 Owner
Apple Computer