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
Page308
Uniform Industrial Corp. Proprietary and Confidential Total 342 pages
Message J4 Download JPEG File
Format: <STX>J4[PktType][SeqNo][Force]<FS>
[FileName]<FS>[Size][Data]<ETX>[LRC]
Request frame (HOST to PIN Pad)
<STX>J4[Status]<ETX>[LRC]
Response frame (PIN Pad to HOST)
Message length: Variable 22 to 538 bytes for request frame, and fixed 6 bytes for response frame.
Usage: This message is used to download a JPEG file from terminal.
Message element:
Request frame (HOST to PIN Pad)
Field Length Value and description
<STX> 1 <02>
J4 2 Message ID
[PktType] 1 '0' = first or middle of multiple packets.
'1' = last or only packet.
[SeqNo] 3 '000' to '999', for onetime only packet, set to '000'.
[Foce] 1 '0' = ask before overwrite, '1' = force overwrite
<FS> 1 <1C>, field separator
[FileName] 0-15 JPEG file name (optional)
<FS> 1 <1C>, field separator
[Size] 3 '000' to '523', size of [ImgData] in bytes
[ImgData] 0-523 Base 64 format data (optional)
<ETX> 1 <03>
[LRC] 1 Checksum
Response frame (PIN Pad to HOST)
Field Length Value and description
<STX> 1 <02>
J4 2 Message ID
[Status] 1 '0': Ready for next J4 packet.
'1': [PktType] has invalid value.
'2': [SeqNo] has invalid value.
'3': [Force] has invalid value.
'4': [FileName] has invalid value.
'5': [Size] has invalid value.
'6': [ImgData] has invalid value.