Epson C32C824151 Technical Reference - Page 63

Printer Operation by the UDP Commands

Page 63 highlights

UB-E02 Technical Reference Guide 4.7 Printer Operation by the UDP Commands By using the UDP commands, the following information can be received in order to recover from abnormal operations and errors. Function Code 03-0000 03-0010 03-0011 03-0012 03-0013 03-0016 Packet Q Q C C C C Function Acquires basic information Acquires status Off-line forced transmission Reset Buffer flash Clears connection time-out timer 4.7.1 Commands Packets Off-set Size 0 5 5 1 6 1 7 1 8 2 10 2 12 2 14 n Packet Transmission Character string "EPSON" Packet type: 'Q': Query 'C': Command Device type (0 × 03 fixed) Device number (0 × 00 fixed) Function number 0 × 00, 0 × 00 fixed Length (n) Command parameter Packet Reply Character string "EPSON" Packet type reply: 'q': Query reply 'c': Command reply Device type (0 × 03 fixed) Device number (0 × 00 fixed) Function number Result code Length (n) Reply data The following values are replied for the packet reply result codes. Check the results in an application. ❏ 0000h: Normal end ❏ FFFEh: No device requested ❏ FFFFh: Function requested are not supported Rev. A 4-7 Programming Samples

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84

Rev. A
4-7
Programming Samples
UB-E02 Technical Reference Guide
4.7
Printer Operation by the UDP Commands
By using the UDP commands, the following information can be received in order to recover
from abnormal operations and errors.
4.7.1
Commands Packets
The following values are replied for the packet reply result codes. Check the results in an
application.
0000h: Normal end
FFFEh: No device requested
FFFFh: Function requested are not supported
Function Code
Packet
Function
03-0000
Q
Acquires basic information
03-0010
Q
Acquires status
03-0011
C
Off-line forced transmission
03-0012
C
Reset
03-0013
C
Buffer flash
03-0016
C
Clears connection time-out timer
Off-set
Size
Packet Transmission
Packet Reply
0
5
Character string “EPSON”
Character string “EPSON”
5
1
Packet type:
’Q’: Query
’C’: Command
Packet type reply:
’q’: Query reply
’c’: Command reply
6
1
Device type (0
×
03 fixed)
Device type (0
×
03 fixed)
7
1
Device number (0
×
00 fixed)
Device number (0
×
00 fixed)
8
2
Function number
Function number
10
2
0
×
00, 0
×
00 fixed
Result code
12
2
Length (n)
Length (n)
14
n
Command parameter
Reply data