How to talk to the HP48 through the rs232
#1

How can I use my 48 for some some simple functions:

I would like to do a "request to send" from a rs232 to the 48. The 48 must give in return a number (cumulative or random) back to the PC.

Thanks in advance,
Menno

#2

Hi, Menno;

I'm not sure this is going to help you, but there are two IO commands that allow the user to directly access the HP48 RS232-compatible IO port: SRECV and XMIT. Neither of these use Kermit protocol.

SRECV takes a number 'n' in Level 1 and waits for 'n' characters to be 'read' from the serial port. SRECV waits for the time specified by STIME as 'time out' reference (default: 10 secs)

XMIT takes a string in level 1 and serialy transmits it.

There are some additional remarks about SRECV in the Adv. Users Guide (or the Programmer's Reference Manual, if HP48S/SX) concerning BUFLEN (buffer lenght), also there's a reference to SBRK (serial break) as a related command.

If you need more, let us know.

Cheers.

Luiz (Brazil)

Edited: 21 Apr 2005, 8:21 p.m.

#3

Thanks I am going to try something.

Regards
Menno

#4

It works;

<<1 SRECV DROP DROP RAND ->STR XMIT DROP programm >>

To get a random number to the PC on request.
The drop's are needed to keep the stack empty and a loop to let the programm run continuously. The 48 gives a "1" for when the SRECV and XMIT-actions were succesfull.

thanks

Regards
Menno



Possibly Related Threads…
Thread Author Replies Views Last Post
  An amazing day: Giving a talk at HP about their calculators Geir Isene 9 4,453 12-16-2013, 06:14 PM
Last Post: aurelio
  TED Talk: Adam Spencer: Why I fell in love with monster prime numbers Les Bell 3 1,685 09-05-2013, 12:54 PM
Last Post: Ken Shaw
  Hand Held Products RS232 to HP-IL aj04062 11 3,369 08-31-2013, 07:12 PM
Last Post: Paul Berger (Canada)
  hp clock does not talk to hp 71 Hans Holzach 15 3,926 07-29-2012, 04:13 PM
Last Post: Hans Holzach
  Video: talk on HP Calculators by Randall Neff Ed Spittles 2 1,025 12-21-2011, 12:35 PM
Last Post: David Ramsey
  HP Calculator Communications - USB -> RS232/Serial on Win7/64? Thomas Chrapkiewicz 10 2,932 10-12-2011, 03:13 PM
Last Post: Gerry Schultz
  More talk of cults at HP Palmer O. Hanson, Jr. 2 1,130 10-06-2011, 12:37 AM
Last Post: Eddie W. Shore
  HP-30b successfully re-flashed to a WP-34s in Vista with SAM-BA 2.10 & USB-RS232 converter Bart (UK) 4 1,555 08-22-2011, 05:47 AM
Last Post: Hubert Weikert
  Need help with HP82164A HP-IL/RS232 Interface Ilyas B. 11 2,697 11-13-2009, 02:28 AM
Last Post: Ilyas.B.
  FSl164A hp-il/RS232 Interface Power Supply Andy Delano 5 1,687 10-19-2009, 06:02 AM
Last Post: Marcus von Cube, Germany

Forum Jump: