Category: Interface — LAN Terminal (TCP)
Printhead Cleaning is mainly used by third-party platforms to send a printhead cleaning command to the device through the interface.
Interface Information
| Parameter | Value | Description |
|---|---|---|
| IP | 192.168.127.11 | Use the corresponding IP address within the LAN |
| Port | 63333 | Fixed port |
| Connection | TCP | Uses a persistent TCP long-connection |
| Encoding | UTF-8 | All sent and received data uses UTF-8 encoding |
| Data Format | JSON | Both data sending and receiving use the JSON format |
Request Example
{"event":"010","type_code":"0"}
Response Result
{"event":"010","code":"0","msg":"成功"}
Request Parameters
| Field | Sample Value | Type | Required | Description |
|---|---|---|---|---|
| event | 010 | string | Yes | 010 — printhead cleaning event |
| type_code | 0 | string | Yes | 0: light cleaning; 1: strong cleaning |
Return Result
| Field | Sample Value | Type | Description |
|---|---|---|---|
| event | 010 | string | 010 — query current device status event |
| code | 0 | string | Result status code: 0 on success, 1 on failure |
| msg | 成功 | string | Result description, e.g. "submission successful" |
Note: In the source material, the
eventdescription in the return result reads "010 — query current device status event", which does not match this interface's "printhead cleaning" purpose and appears to be a typo. Preserved as-is.
If the device encounters an unsolvable problem during debugging, contact the cloud-printing owner to troubleshoot and find a solution. Contact details are as follows:
- Phone: 137-5177-4454 (WeChat same number)
- Email: info@ColorPark.cn