HP48 - Maverick-Shark/retroGuru GitHub Wiki

MS-Kermit

COM port

  • Check COM ports
  C:\> debug		 (start the debug program)
  -d 40:0		 (display segment 40)
  -q			 (quit the debug program)

("C:\>" is the DOS prompt, "-" is the debug prompt.)  Here are the results
on a PS/2 with 3 COM ports:

  0040:0000  F8 03 F8 02 20 32 00 00-BC 03 00 00 00 00 60 03  .... 2........`.
             ^^^^^ ^^^^^ ^^^^^ ^^^^^
             COM1  COM2  COM3  COM4
  • COM ports
  Port	 Assumed Address (hexadecimal)
  COM1	      03F8
  COM2	      02F8
  COM3	      03E8
  COM4	      02E8
  • Configure COM port with address
  set com3 \x3f8   ; FIRST specify the address of COM3 
  set port com3	   ; THEN select COM3
  • You can add to AUTOEXEC.BAT the following line:
  set kermit=com3 \x3e8; com4 \x2e8;
  SET PORT COM2	      ; First select the port
  SET SPEED 19200     ; Then set its speed
  SET PARITY EVEN     ; and other parameters for this port...
  SET FLOW RTS/CTS
  SET LOCAL-ECHO ON

HP48 communications settings

  • The maximum speed of the HP-48's built-in Kermit program is 9600 bps, and this is also its default speed. By default, it also uses 8 data bits, no parity, 1 stop bit, and no flow control. In case the defaults have been changed, they can be restored by deleting the IOPAR variable in the HP-48 HOME directory.
  • The IOPAR variable contains six fields (perhaps fewer in earlier models):
Data rate
Parity (0 = none)
Receive data pacing (1 = Xon/Xoff, 0 = no flow control)
Send data pacing (ditto)
Checksum type (1, 2, or 3)
Translation option (0, 1, 2, or 3; might be new to G series).

SETTINGS

SET MODEM TYPE DIRECT ; (C-Kermit or Kermit 95 only)
SET PORT COM1         ; (Or other communication port)
SET SPEED 9600  
SET CARRIER-WATCH OFF ; Kermit client must be instructed not to require the Carrier Detect (CD) signal:
SET FLOW NONE         ; HP-48 does not use any form of flow control
SET PARITY NONE       ; HP-48 allows transmission and reception of 8-bit data
``

**SUMMARY**
Put the HP-48 in Kermit server mode. Set up the Kermit client like this:
```sh
  SET MODEM TYPE DIRECT   ; (C-Kermit or Kermit 95)
  SET PORT COM1           ; (Or other communication port)
  SET SPEED 9600          ; (Serial port speed)
  SET CARRIER-WATCH OFF   ; (Don't require carrier)
  SET FLOW NONE           ; (Don't use flow control)
  SET PARITY NONE         ; (8 data bits, no parity)
  SET BLOCK 3             ; (if desired, or 2)
  SET CONTROL PREFIX ALL  ; (Necessary in Kermit 95)

For file transfer, use binary mode unless you are exporting or importing HP-48 objects:

  SET FILE TYPE BINARY

To transfer files:

  SEND filename           ; Send file(s) to the HP-48
  GET filename            ; Get file(s) from the HP-48

To change directory on the HP-48:

  REMOTE HOST { relative_directory_name } EVAL

To shut down the HP-48 Kermit server:

  FINISH

If file transfers fail, try:

  SET SEND TIMEOUT 20     ; (Or other number of seconds)
  SET SEND PAUSE 100      ; (Or other number of milliseconds)

Comandos

  • Comandos para la conexion desde MS-KERMIT>
  MS-Kermit>set baud 9600  ó  >set speed 9600
  MS-Kermit>set file type binary
  MS-Kermit>set file type text
  MS-Kermit>set flow none
  MS-Kermit>set port 1
  MS-Kermit>server
  • Cada vez que se ejecute el programa kermit.exe se recomienda modificar a estos parametros:
        9600
        binary: para programas.
        text:   para archivos de texto.
  • Para ayuda, "instruccion ?" :
        >set  ?
        >set baud ?  ó  >set speed ?
        >set file type ?
        >set port ?
  • Para ver la configuracion:
        >show file
        >show com
  • Para establecer la espera de servidor:
        >server  ó  >serv
  • Para recivir desde la HP al PC:
        >receive  ó   >r
  • Para mandar desde el PC a la HP:
        >send archivo.ext  ó  >s archivo.ext
  • Para terminar y volver al DOS:
        >quit  ó  >q

Test COM1 (Pinpointing the Problem)

A>kermit (Run MS-DOS Kermit)
MS-Kermit>set port 1 (Select the right port)
MS-Kermit>set local off (Let loopback do the echoing)
MS-Kermit>connect (Begin terminal emulation)
abcdefghijklmnopqrstuvwxyz (Type some characters)
Alt-X (Escape back to the PC)
MS-Kermit>exit (Exit to DOS)
A>
  • NOTE: If you see these characters on your screen, Kermit is working, your PC is working, and the port is working;

  • Log session

MS-Kermit>log session who.log (Select session logging)
MS-Kermit>connect (Begin terminal emulation)

Serial cable

  • HP48 serial connector
 Connector on HP48         Connector to HP48
      ______                     ______
      |....|                     |oooo|  <-- First is
      \____/                     \____/       null
  pin 1   pin 4              pin 4   pin 1
  • HP48 to PC cable
HP48 | RS232-9 | RS232-25
-----+---------+----------
  1  | shield  |  shield
  2  |    2    |    3
  3  |    3    |    2
  4  |    5    |    7
  • HP48 to HP48
1. Output = from HP 48     _________
s. Input  = to HP48       | o o o o |
                           \_______/
                            ^ ^ ^ ^
                            | | | \------ 1 SHIELD
                            | | \---------2 TX (output)
                            | \-----------3 RX (input)
                            \-------------4 Signal GND
  • RS232 (DB9 and DB25)
   9-pin RS232                 25-pin RS232
  connector (F)                connector (F)

pin 5       pin 1    pin 13                     pin 1
  -------------         ---------------------------
  | o o o o o |         | o o o o o o o o o o o o |
   \ o o o o /           \ o o o o o o o o o o o /
    ---------             -----------------------
 pin 9     pin 6      pin 25                   pin 14

Links