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 | Packet | Function |
|
|
|
Q | Acquires basic information | |
|
|
|
Q | Acquires status | |
|
|
|
C | ||
|
|
|
C | Reset | |
|
|
|
C | Buffer flash | |
|
|
|
C | Clears connection | |
|
|
|
4.7.1 Commands Packets
Size | Packet Transmission | Packet Reply | |
|
|
|
|
0 | 5 | Character string “EPSON” | Character string “EPSON” |
|
|
|
|
5 | 1 | Packet type: | Packet type reply: |
|
| ’Q’: Query | ’q’: Query reply |
|
| ’C’: Command | ’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 |
|
|
|
|
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 |