Copyrights ---------- Unix Code & part of readme written by Arne Helme Convertion to amiga & further comments written by Joeri Alberty ----------------------------------------------------------------- From Arne Helme --------------- Hello HP48sx users ! This is a little hack I wrote to convert GROB's into portable bitmaps. It takes input from stdin or a file and writes to stdout (UNIX !). You can convert a portable bitmap into many other interesting formats using the pbmplus package (referenced below). Please report bugs or improvements. DESCRIPTION This program converts a HP48sx ASCII GROB file into a portable bitmap. Export your HP48sx GROBs to your computer, convert them to your favorite format and use them in your documents. The portable bitmap (PBM) is a interchange format in the Extended Portable Bitmap Toolkit written by Mr. Jef Poskanzer and the PBM software is public domain. STATUS A two hour's hack. KNOWN BUGS Wont take binary GROBS yet. Only tested on UNIX systemV machines. NOTE A public domain PBM package is available via anonymous ftp to sfd.uit.no [128.39.60.50] (pub/X11/pbmplus.tar.Z). Arne Helme (E-mail : arne@sfd.uit.no) --------------------------------------------------------------------- From Joeri Alberty ------------------ The code was written some years ago but until now i did not need it Now i need it to transmit graphics & other pictures from my hp48sx to my Amiga to put them in a text document as iff ilbm. Because the code was written for Unix in ANSI-C i had to change some definitions and compile it with SAS C 6.51 I have put an example with it test.grob test.pbm test.ilbm Operations you have to do to get test.ilbm (or other graphic) ------------------------------------------------------------- 1) On your hp48sx (see also manual pag 340 hp48sx volume I) Put a PICT (a graphic object) on your sreen This can be done with the plot function or equation writer or press GRAPH button (<-) Now press STO then press ATTN on your keyboard Your display will show Graphic xxx X xxx (eg Graphic 131 x 64) put this in a variable eg 'test' press STO The picture is now in the variable 'test' you can see it by pressing VAR Now press ' than type test press ENTER display will show 1: 'test' Press I/O SETUP (button F) IR/wire: wire ASCII/binary: ASCII baud: 9600 parity: none 0 checksum type: 3 translate code: 1 change until these settings on on your display 2) Connection (see manual page 621 hp48sx volume II) Connect your Hp48sx with our Amiga with the serial interface kit for IBM (This can be bought from HP) YES this cable works with every serial port so also with amiga's. (Attention the APPLE MAC kit won't work wrong plug) 3) Transfer (pag 622 and further) Use a terminal program. I use NCOMM 3.0 (can be found on Aminet aminet/comm i think) Load NCOMM from WorkBench Use settings 9600:8N1:US7 xprkermit protokoll (kermit) In menu comm... Baud rate 9600 Data Lenght 8bits Parity none Stop Bit 1 Duplex Full Handshake none In menu Transfer... Protocol kermit note : I've put my NCOMM.config file with it so you can use it directly I also put a newer version of xprkermit.lib with this release put this in your LIBS: directory where old version of xprkermit is (The version with NCOMM 3.0 is very slow but also works ok) Now select in NCOMM 'DownLoad' from menu Transfer. Press on your hp SEND (I/O dir) Tranfer will take some time and test can now be found on your Amiga (With my config file this will be in ram:) 4) On your Amiga press from shell (cd ram:) grob2pbm test test.pbm (eg test (or other name)) ppmtoilbm >test.ilbm -ecs test.pbm (from netpbm package included) And now you can view test.ilbm with multiview Bview or other picture viewers on your amiga That's all i hope you made it until here else you can mail your problem to me. Use E-mail alberty@uia.ua.ac.be Greatings Joeri Alberty.