34 lines
944 B
Python
34 lines
944 B
Python
'''
|
|
Created on 19 mar 2020
|
|
|
|
@author: Emanuele Trabattoni
|
|
'''
|
|
TSC_COMMANDS = {'DOWNLOAD': "DOWNLOAD {location}{name}{size}{content}",
|
|
'REMOVE': "KILL {location}{name}",
|
|
'MOVE': "MOVE {name}",
|
|
'LIST': "~!F",
|
|
'INFO': "~!T",
|
|
'USE': "~!@",
|
|
'PAUSE': "!P",
|
|
'RESUME': "!O",
|
|
'CLEAR': "!.",
|
|
'RUN': "RUN {name}",
|
|
'STATUS': "!?"}
|
|
|
|
TSC_STATUS = {0x00:"Normal",
|
|
0x01:"Head opened",
|
|
0x02:"Paper Jam",
|
|
0x03:"Paper Jam and head opened",
|
|
0x04:"Out of paper",
|
|
0x05:"Out of paper and head opened",
|
|
0x08:"Out of ribbon",
|
|
0x09:"Out of ribbon and head opened",
|
|
0x0A:"Out of ribbon and paper jam",
|
|
0x0B:"Out of ribbon, paper jam and head opened",
|
|
0x0C:"Out of ribbon and out of paper",
|
|
0x0D:"Out of ribbon, out of paper and head opened",
|
|
0x10:"Pause",
|
|
0x20:"Printing",
|
|
0x80:"Other error"
|
|
}
|
|
LINE_SEP = '\r\n' |