USB41 + 41CL connection to PC (for Linux/Mac). Here goes:



#2

So, it's done. Thanks for all the input.

From the website:

Program to facilitate connection between an HP-41 and a PC running Linux/Unix/Mac OSX.

With this program and the USB41 module, you can use your PC as a printer for the HP-41. USB41 module by Diego Diaz: http://www.clonix.org

With this program and the serial interface to the HP-41CL replacement board, you can transfer data/modules between a PC and an HP-41. HP-41CL by Monte Dalrymple: http://www.systemyde.com

	  SYNOPSIS: 

pc41 [DEVICE] [OPTION]

DEVICE:

d=devicename
Specifies the device name for the connection from the PC.

OPTIONS:

-h
Displays the helpfile

r=filename
Read data from the HP-41 and save to "filename" (9600 baud)

w=filename
Writes "filename" from the PC to the HP-41 (4800 baud)

Make sure the program is "runable" (with "chmod a+x") and drop it in your "bin" folder of choice and you are ready to go.

The program must be run as root to get access to the serial/usb port.

The program defaults to input from /dev/ttyUSB0, but you may specify another input device by simply adding it as an argument to the program:

pc41 d=/dev/ttyUSB1

Default usage is with the USB41 module. To use the program to transfer data/modules using the HP-41, you need to provide one of two options:

	    pc41 r=filename
pc41 w=filename

With the option "r=filename", you READ data FROM the HP-41 and save it in the file specified by "filename".

With the option "w=filename", you WRITE data from the file specified by "filename" TO the HP-41.

Without the "r=" or "w=" options, the program expects input from an HP-41 with the USB41 module and acts as a printer.

Any printing from your HP-41 will go to Standard Out. To print whatever comes from the HP-41 straight onto the screen, simply run the program:

	    pc41

You can of course do all kinds of tricks on the PC side like piping the output or redirect it to a file, etc.

To print a program on the HP-41 to the file "myprogram.txt" on the PC, do:

	    pc41 > myprogram.txt

Except for ending the program with a "Control-C" on the PC, you may also print the message "PREND", and the program will terminate (just enter "PREND" into Alpha and do XEQ"PRA")

You must have Ruby installed as well as "ruby-serialport" (on Ubuntu or Debian, do "sudo apt-get install ruby-serialport"). Alternatively you may install ruby-serialport from RubyGems:

	    sudo gem install ruby-serialport

The script will work just the same.

For Mac OS/X users, the usual device would be "/dev/tty.usbserial ". To write the file "~/coolstuff.txt" from a Mac OSX computer to the HP-41CL using the serial connector:

	    pc41 d=/dev/tty.usbserial w=~/coolstuff.txt        

Version: 0.2 (2012-06-12)

License: Public domain

Here is the pc41 program.

Edited: 12 June 2012, 8:38 a.m.


#3

The "pc41" program is now updated. Available at isene.com


Possibly Related Threads…
Thread Author Replies Views Last Post
  Prime Emulator Connection Problem John Colvin 3 2,606 12-14-2013, 11:00 PM
Last Post: Han
  Is Linux common among us RPN types? db (martinez, ca.) 46 16,916 12-11-2013, 08:25 PM
Last Post: Paul Guertin
  HP-41(CL): The easiest way to transfer FOCAL programs from a Linux PC to the HP-41 Geir Isene 13 5,848 12-05-2013, 02:40 AM
Last Post: Hans Brueggemann
  HP-41CL setup troubleshooting Xavier A. (Brazil) 2 1,933 12-02-2013, 06:29 AM
Last Post: Xavier A. (Brazil)
  EMU41; Dosbox on Linux; Excruciatingly sloooow Geir Isene 9 3,242 12-01-2013, 05:10 PM
Last Post: Geir Isene
  HP-Prime firmware update on a Mac Javier Goizueta 5 2,236 11-15-2013, 10:52 AM
Last Post: Javier Goizueta
  [41CL] New Extra Functions version Monte Dalrymple 0 1,158 11-08-2013, 04:32 PM
Last Post: Monte Dalrymple
  So, latest 41CL / Library 4 config is... Gene Wright 4 2,068 09-22-2013, 02:59 AM
Last Post: Ángel Martin
  HP-41CL anyone? Matt Agajanian 8 3,020 08-31-2013, 12:27 AM
Last Post: Sylvain Cote
  Building WP 34s emulator on Linux Eric Smith 3 1,589 07-25-2013, 03:03 PM
Last Post: Marcus von Cube, Germany

Forum Jump: