指令格式
Command Format
07 00 + 唯一单据号 + 00 + UPDATE FTP "serverName",port,"userName","pwd","fileName"
07 00 + Unique Document Number + 00 + UPDATE FTP "serverName",port,"userName","pwd","fileName"
字段说明
Field Description
|
字段
Field
|
说明
Description
|
示例
Example
|
| serverName |
FTP服务器IP地址或域名
FTP server IP address or domain name
|
27.159.89.242 |
| port |
FTP服务器端口号
FTP server port number
|
21 |
| userName |
FTP登录用户名,支持匿名登录
FTP login username, supports anonymous login
|
anonymous |
| pwd |
FTP登录密码,支持无密码
FTP login password, supports no password
|
"" |
| fileName |
固件文件名
Firmware filename
|
KP202_2.4(750,150,128)_GD_MQTT_GPRS_1.07.bin |
完整示例
Complete Example
07 00 201710071107 00 UPDATE FTP "27.159.89.242",21,"anonymous","","KP202_2.4(750,150,128)_GD_MQTT_GPRS_1.07.bin"
07 00 201710071107 00 UPDATE FTP "27.159.89.242",21,"anonymous","","KP202_2.4(750,150,128)_GD_MQTT_GPRS_1.07.bin"
HEX编码示例
HEX Encoding Example
07003230313731303037313130370055504441544520465450202232372E3135392E38392E323432222C32312C22616E6F6E796D6F7573222C22222C224B503230325F322E34283735302C3135302C313238295F47445F4D5154545F475052535F312E30372E62696E220D0A
注意事项
Notes
-
所有字符串参数(serverName、userName、pwd、fileName)必须使用双引号包围
All string parameters (serverName, userName, pwd, fileName) must be enclosed in double quotes
-
port参数为数字,不需要引号
The port parameter is numeric and should not be quoted
-
如果使用匿名登录,userName应设置为"anonymous",pwd可以留空
For anonymous login, set userName to "anonymous" and pwd can be empty
-
确保FTP服务器可以访问,且固件文件存在于指定路径
Ensure the FTP server is accessible and the firmware file exists at the specified path
-
升级前请确保打印机已连接到网络
Ensure the printer is connected to the network before updating
-
升级过程中打印机将自动重启
The printer will automatically reboot during the update process
-
升级过程大约需要2-3分钟完成
The update process takes approximately 2-3 minutes to complete
-
升级过程中请勿断电或断开网络
Do not power off or disconnect the network during the update
-
升级完成后打印机将自动重启并重新连接MQTT服务器
The printer will automatically reboot and reconnect to the MQTT server after the update
-
建议在打印机空闲时执行升级操作
It is recommended to perform the update when the printer is idle