SERVER MODE The whole scoop by Joe Horn The Owner's Manual is sparse regarding the HP 48's response to Kermit packets when in Server Mode. It's even sparser regarding Server Mode's response from MS-Kermit. So here's the whole scoop. This will let you use the HP 48's PKT command to control another HP 48 or a PC. Note: Set a TIO mode > 0 for proper CR/LF translation. +-----------------------------+ | HP 48 Server Mode Responses | +-----------------------------+ "name" "R" PKT --> tells server to send file, but it arrives in "PC" format as a string. Not very useful. Use KGET to tell the server to send things correctly. "command(s)" "C" PKT --> server performs OBJ-> on "command(s)" and after it's all done it ships the current stack (as a single string) back, or the string "Empty Stack". This is the principle way of controlling another HP 48. Do not include commands that would interrupt Kermit, such as OFF or any programs that perform I/O. "L" "G" PKT -or- "F" "G" PKT --> tells server to exit Server Mode. Not very useful; use the FINISH command instead. "D" "G" PKT --> tells server to send a "directory" which is a single string containing information about the current VARS list, to wit: name; byte size (including name); object type (in English); and checksum (as a decimal real). The "I", "S", and "E" packet types generate useless responses. No other packet types or "G"-type commands are recognized. +---------------------------------+ | MS-Kermit Server Mode Responses | +---------------------------------+ "init-string" "I" PKT --> Initializes Kermit's parameters. Each byte of the init-string stands for and sets the following: Byte 1: max packet length (0-94) + 32 Byte 2: timeout in seconds (0-94) + 32 Byte 3: number of pad chars (0-94) + 32 Byte 4: pad char ascii code + 32 Byte 5: packet terminator ascii code + 32 Byte 6: control prefix char, literal Byte 7: eighth-bit prefix char, literal Byte 8: block checksum type (0-3) char, literal Byte 9: repeat count prefix, literal -- subsequent bytes control Kermit functions that the HP 48 can't use (like sliding windows & long packets), so they may be omitted. "name" "R" PKT --> same as HP 48 response. Not useful. "command" "C" PKT --> same as typing command at the DOS prompt. Output, if any, gets sent back to the HP 48 as a single string. This is the principle way of controlling a PC from an HP 48. "I" "G" PKT --> PC sends " Kermit-MS Server ready" "C" "G" PKT --> PC sends current directory; use "CD " "C" PKT instead. "L" "G" PKT -or- "F" "G" PKT --> PC sends " Goodbye!" and exits Kermit. "D" "G" PKT --> PC sends a file directory. Use "DIR " "C" PKT instead. "U" "G" PKT --> PC sends free bytes on current drive or a report that the current drive is not ready. "W" "G" PKT --> PC sends " Just this Server" "M" "G" PKT --> PC clears the "Last message" line "M:text" "G" PKT --> PC displays "text" on "Last message" line "H" "G" PKT --> PC sends list of MS-Kermit server commands The "S" and "E" packet types generate useless responses. The "GE" and "GT" commands work, but require length encoding for the filename. It is easier to use "DEL " "C" PKT and "TYPE " "C" PKT instead, respectively. No other packet types or "G"-type commands are recognized. Note: MS-Kermit sends "C" commands to the DOS command-line interpreter. If you have something other than DOS's COMMAND.COM running as your primary shell (such as 4DOS, which I use), then you can use whatever commands it can handle.