I was able to find this... I got the msg from a public forum. Note the date is
in 1996! I am not sure that device speaks IrDA tho. You may want to find out
more on how to talk to it via IR.
btw: I was thinking about coding this up as well. So likely you will be my
competitor. :)
Have fun.
Max
---------------------- START -------------------------------
>From - Fri Nov 15 21:27:47 1996
Path: nntp.ulg.ac.be!news.belnet.be!swsbe6.switch.ch!swidir.switch.ch!01-
newsfeed.univie.ac.at!voskovec.radio.cz!btnet-
feed2!btnet!newsfeed.internetmci.com!feed1.news.erols.com!howland.erols.net!EU.n
et!sun4nl!cs.ruu.nl!usenet
From: [EMAIL PROTECTED] (Jarno Peschier)
Newsgroups: comp.sys.hp48
Subject: All printer codes for the HP 82240B printer/emulator (was: Re: How to
print graphics on IR printer HP82240B)
Date: Thu, 14 Nov 1996 18:06:54 GMT
Organization: Utrecht University - Computer Science faculty
Lines: 46
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
NNTP-Posting-Host: anx1p31.cc.ruu.nl
X-Newsreader: Forte Free Agent 1.1/16.230
[EMAIL PROTECTED] wrote the following:
>Please, Could somebody help me with the description on the subjet of
>this message?
The printer code for sending graphics data to a HP82240B printer is
very simple: an ESC character, then a byte telling how many bytes of
data are to follow and then the bytes, one for each 8 bit high column
of pixels (I can't remember right now if the top bit is the LSB or the
MSB).
You could use the following directory of programs for using all the
printer codes of the HP82240B. To convert a string of graphics data to
a string you can send to the printer to print the graphics data you
can simply use the Graphics program:
DIR
Reset << 255 CC >>
Underline << -> text << 251 CC text + 250 CC + >> >>
Expanded << -> text << 253 CC text + 252 CC + >> >>
ECMA94 << 249 CC >>
Roman8 << 248 CC >>
Graphics << -> data << data SIZE CC data + >> >>
Selftest << 254 CC >>
CC << -> cc << 27 CHR cc CHR + >> >>
$TITLE "HP82240B printer codes"
$ROMID [some LID number you want]
$CONFIG << [same LID] ATTACH >>
$HIDDEN { CC }
END
As you can see, you can make a handy little library out of this with
D->LIB.
One example, if you would like the print the string "In this sentence
_one_ word is underlined." on your HP82240B (or on my emulator) after
resetting the printer, you could use:
<< Reset "In this sentence " + "one" Underline + " word is
underlined." + PR1 >>
Jarno Peschier, [EMAIL PROTECTED], 2:2802/247.5@Fido, 162:100/100.2@Agora,
74:3108/101.5@QuaZie, 27:2331/201.5@SigNet, 606:3130/200.2@F1-net
___________________________________________________________________________
'avwI' nejDI' narghta'bogh qama' reH 'avwI' Sambej
--------------------- END ---------------------------
--- Mike Davis <[EMAIL PROTECTED]> wrote:
> Ok, I have asked this before and did not get an answer.
>
> I would like to have an application print to an HP IR printer. I
> want it to specificall print to the HP 82240A printer.
>
> Does anyone know of any routines that will allow an application to
> print to this printer. I'm looking for some code to handle this so
> that I can integrate the ideas into an application that I have so I
> don't want some 2nd application that allows printing.
>
> Unfortunately, I don't know what standard is used. This IR printer
> is one that HP used with their IR calculators and such. The HP-48
> prints to it as well as some others, if that is any help.
>
> Thanks,
=====
http://www.weirdwww.com/
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/