User's Manual

PIN Pad 791 Programmer’s Manual (PCI POS-A) UDN PM0103-U Rev. 06
Section 13 JPEG File Operation messages 2015-04-20
Page310
Uniform Industrial Corp. Proprietary and Confidential Total 342 pages
Message J5 Upload JPEG File
Format: <STX>J5[control]<FS>[FileName]<ETX>[LRC]
Request frame (HOST to PIN Pad)
<STX>J5[PktType][SeqNo][Size][Data]<ETX>[LRC]
Response frame (PIN Pad to HOST)
Message length: Variable 6 to 21 bytes for request frame, and variable 12 to 536 bytes for response
frame.
Usage: This message is used to upload a JPEG file from terminal.
Message element:
Request frame (HOST to PIN Pad)
Field Length Value and description
<STX> 1 <02>
J5 2 Message ID
[control] 1 '0': First command for upload, [FileName] is
required.
'1': Ready for next J5 packet, [FileName] is ignored.
[FileName] 1-15 File name (Option)
<ETX> 1 <03>
[LRC] 1 Checksum
Response frame (PIN Pad to HOST)
Field Length Value and description
<STX> 1 <02>
J5 2 Message ID
[PktType] 1 '0' = First or middle of multiple packets.
'1' = Last or only packet.
'2': Null file name.
'3': File name is not found.
'4': Buffer is not enough.
'5': Format error.
[SeqNo] 3 '000' to '999', for onetime only packet, set to '000'.
[Size] 3 '000' to '524', size of [Data] in bytes
[Data] 0-524 Base 64 format data
<ETX> 1 <03>
[LRC] 1 Checksum