The Museum of HP Calculators

HP Forum Archive 18

[ Return to Index | Top of Index ]

web server hack for i41CX+
Message #1 Posted by Alain Mellan on 12 Sept 2008, 10:28 p.m.

Here is the simplest way I've found to load .raw files into my i41CX+ (from Linux or MacOS):

1. Lookup the IP address of the host (ifconfig)

2. cd to the directory where the .raw file(s) are

3. python -m SimpleHTTPServer

On the iPhone, go i41CX+ -> load program -> from URL and type http://<ip address>:8000/myprog.raw


-- alain.

Re: web server hack for i41CX+
Message #2 Posted by Les Wright on 12 Sept 2008, 11:08 p.m.,
in response to message #1 by Alain Mellan


I like that better, since (under Mac OS X Leopard) I don't have go thru the rigamarole of activating my computer as a web server in System Preferences > Sharing and I can keep my raw files ANYWHERE and have a simple temporary URL. To use the default webserver preferences I have to copy my desired files into one place in a subdirectory of the /Users /username/Sites folder.

Just one tip for Mac users, though. On my set up, the output from iconfig is like a dog's breakfast--all sorts of IP addresses and MAC codes and other goods, and lots of it. You are looking for any IP address preceded by "inet" for simplicity, I chose the first one, but there are 3 other such candidates that seem to work just fine for me once SimpleHTTPServer is running.

I don't understand enough about Linux/Unix/Mac networking protocols to know why it works, but it does.

Thanks for sharing this, Alain.


Re: web server hack for i41CX+
Message #3 Posted by Alain Mellan on 13 Sept 2008, 12:53 a.m.,
in response to message #2 by Les Wright

Hi Les,

Glad you like it, it's pretty handy. On my OS X 10.5, en1 is usually the wireless interface. "ifconfig en1 inet" gives me the IP address.

Ideally, I'd like to get rid of DOSBox + 41UCC, and be able to give the URL of a .txt file (the user code source) and then have the Python web server translate to raw on the fly. I already have a Python script that translates most of the single-byte instructions. It's a good way to learn about synthetic programming (better late than never :-)

[ Return to Index | Top of Index ]

Go back to the main exhibit hall