Professional Documents
Culture Documents
(Zambia)
-1-
This protocol is used to define the communications content between printer and server, and it is a
simple protocol and based on http protocol, as shown below :
Parameter defined:
u= means user name,decided by INI. [58];
p= means password,decided by INI.[59];
r= random numbers for cache protection. Every time when user presses F1, the
printer will generate a random number.
id=means ResId,set in INI.[5]
dsp= when one display is confirm(see the #d#Text# defined),printer will send
dsp=times,times means how many times be confirmed.
prn= when some data is printed(see the #p#test# defined), printer will
-2-
#command#content#
The return content from the server should be in UTF-8 format.
The fixed format for the server return is:
#command#content#
Special char in content:
%% --- new line
/--- one line ----------------
/r --- big font
Defined command:
#D#Text#
---- D = Display only,the Text will be shown;
#d#Text#
---- d = Display only,the Text will be shown. After pressing ok, it will
reconnect to the server, and add &dsp=timesto GET
protocol;
eg. /printer.cgi?u=user&p=password&action=create&dsp=1
#P#Text#
#p#Text#
-----
-3-
#M#Text#
---
---
#I#Text#
---
tp= Evouchers
st= MTN
mi= z50
4. printer send :
-4-
6. printer will print out the textthis is for print testand quit.
//Do something
-5-
Display:
Print:
-6-