﻿Instructions for using Linux_SDK:

**************************************************** **************************************************** ****************
1. Compilation environment:
   1. Development system: Ubuntu 14.04.3 LTS (GNU/Linux 3.19.0-25-generic x86_64)
   2. Compilation environment: gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1 14.04.3)
   3.SDK include files:
   ①: libHWPrinter.so is the sdk shared library;
   ②: HWPrinter.h is the header file;
   ③: Graphic.h is the header file of the graphics printing module;
   ④: testMain.c is the ESC/POS instructions DEMO source program, CPCLtest.c is the CPCL instructions DEMO source program, TSPLtest.c is the TSPL instructions DEMO source program;
   ⑤: testMain, CPCLtest, TSPLtest are executable DEMO programs;
   ⑥: goodwork.bmp is a picture for demonstration;
   ⑦: makefile is a compilation script;
   ⑧: README.txt is a description document;

**************************************************** **************************************************** ****************
2. Function description:
   The functions supported by this version of Linux_SDK are: serial port, USB port, network port switch and read and write functions, ESC/POS command printing function, CPCL command printing function, TSPL command printing function, the function description is detailed in "HWISPRTPrinter. h".
   Note: This version of Linux_SDK currently does not support TSPL instruction to print graphics;

**************************************************** **************************************************** ****************
3. DEMO description:
   1. This version of Linux_SDK includes three DEMO demonstration programs, testMain.c, CPCLtest.c, and TSPLtest.c, which are respectively the encapsulation function call demonstration of ESC/POS instruction set, CPCL instruction set, and TSPL instruction set. When users use SDK functions Please read the corresponding DEMO source program in detail first;
   2. The compiled DEMO executable program may require root permission when running, and use the macro command: export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH to set the system environment variable;

**************************************************** **************************************************** ****************


Linux_SDK 使用说明：

*********************************************************************************************************************
一、编译环境：
   1.开发系统：Ubuntu 14.04.3 LTS (GNU/Linux 3.19.0-25-generic x86_64)
   2.编译环境：gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1 14.04.3)
   3.SDK包含文件：
	①：libHWPrinter.so为sdk动态库；
   	②：HWPrinter.h为头文件；
   	③：Graphic.h为图形打印模块头文件；
   	④：testMain.c为ESC/POS指令集DEMO源程序，CPCLtest.c为CPCL指令集DEMO源程序，TSPLtest.c为TSPL指令集DEMO源程序；
   	⑤：testMain、CPCLtest、TSPLtest为可执行的DEMO程序；
   	⑥：goodwork.bmp为演示用图片；
   	⑦：makefile为编译脚本；
   	⑧：README.txt为说明文档；

*********************************************************************************************************************
二、函数说明：
   该版本Linux_SDK支持的功能函数有：串口、USB口、网口的开关和读写函数，ESC/POS指令打印功能函数，CPCL指令打印功能函数，TSPL指令打印功能函数，函数说明详见“HWPrinter.h”。
   注：该版本Linux_SDK暂不支持TSPL指令方式打印图形；

*********************************************************************************************************************
三、DEMO说明：
   1.该版本Linux_SDK包含testMain.c、CPCLtest.c、TSPLtest.c三个DEMO演示程序，分别为ESC/POS指令集、CPCL指令集、TSPL指令集的封装函数调用演示，用户在使用SDK函数时请先详细阅读相应的DEMO源程序；
   2.编译后的DEMO可执行程序在运行时可能需要root权限，并使用宏命令：export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH设置系统环境变量；

*********************************************************************************************************************

2022/05/21
