JSON Spec Sheet
JSON Spec Sheet
M00141200
Attri- Remarks
1 2 3 Description List and explanation of set values
bute
FormatName Format name RW TM genre printer information format "TM-Form"
Rev Information format management number (data structure changes managed as Rev) RW TM genre printer information format revision number "1"
SerialNo Serial number RO Serial number (values that can be acquired with the GS I 68 command)
Setting Setting
AutoCut Cutter-related
CutAfterPaperset Paper automatic cut at cover close (GS (E fn = 5, a = 100) RW "Invalid": Does not cut, "Valid": Cuts
Select Buzzer functionSelection of valid buzzer (GS (E fn = 5, a = 119) RW "Invalid": Invalid, "Valid": Valid
"70%": 70%
"75%": 75%
Density Print density (GS (E fn = 5, a = 5) RW
"80%": 80%
"85%": 85%
"90%": 90%
1
JSON Specifications
Attri- Remarks
1 2 3 Description List and explanation of set values
bute
"95%": 95%
"100%": 100%
"105%": 105%
"110%": 110%
Density Print density (GS (E fn = 5, a = 5) RW
"115%": 115%
"120%": 120%
"125%": 125%
"130%": 130%
2
JSON Specifications
Attri- Remarks
1 2 3 Description List and explanation of set values
bute
"58mm": 58 mm
RollPaperWidth Paper width (GS (E fn = 5, a = 3) RW
"80mm": 80 mm
Maintenance
ThermalHead
Position of the dots exceeding the Warning threshold value "" (blank character): Failed to detect missing dots. Alternatively, there are no dots exceeding the Warn-
PositionOfWarningDot The position of the left-end dots on the print surface is treated as 1, and this returns all the positions of RO ing threshold value.
the dots exceeding the Warning threshold value. "Hexadecimal string": Dots exceeding the Warning threshold value.
Position of the dots exceeding the Fault threshold value "" (blank character): Failed to detect missing dots. Alternatively, there are no dots exceeding the Fault
PositionOfBrokenDot The position of the left-end dots on the print surface is treated as 1, and this returns all the positions of RO threshold value.
the dots exceeding the Fault threshold value. "Hexadecimal string": Dots exceeding the Fault threshold value.
RollPaper_FeedLines Number of paper feed lines [lines] RO "" to "": 4-byte decimal maximum value
RollPaper_CutterDrives Auto cutter drive count [times] RO "" to "": 4-byte decimal maximum value
3
jsonString Acquisition Example
TM-m30II-H
{ Key Info
TM-m30II
"PrinterSpec": {
EU-m30
"Product": { Value
"SerialNo": "ABCD000002" 1 2 3
},
"Spec": {
FormatName "TM-Form" ✔ ✔ ✔
"Language": "KANJI JAPANESE"
} Rev "1" ✔ ✔ ✔
},
"Setting": { PrinterSpec ✔ ✔ ✔
"AutoCut": {
"CutAfterPaperset": "Invalid" Product ✔ ✔ ✔
},
"Buzzer": { SerialNo ✔ ✔ ✔
"Select": "Valid"
}, Spec ✔ ✔ ✔
"Command": {
"AutoCR": "Invalid" Language ✔ ✔ ✔
},
"Print": { Setting ✔ ✔ ✔
"Density": "100%",
"Speed": "Level13", AutoCut ✔ ✔ ✔
"ColumnEmulation": "Standard",
"RollPaperWidth": "80mm", CutAfterPaperset "Invalid"?"Valid" ✔ ✔ ✔
"NearEndSetting": "Disable"
Buzzer ✔ ✔ ✔
}
}, Select "Invalid"?"Valid" ✔ ✔ ✔
"Maintenance": {
"ThermalHead": { Command ✔ ✔ ✔
"NumberOfWarningDot": "0",
"PositionOfWarningDot": "", AutoCR "Invalid"?"Valid" ✔ ✔ ✔
"NumberOfBrokenDot": "0",
"PositionOfBrokenDot": "" Print ✔ ✔ ✔
},
"Counter": { "DIPSW" - - -
"RollPaper_FeedLines": "53408",
"RollPaper_CutterDrives": "5647" "70%" ✔ ✔ ✔
}
}, "75%" ✔ ✔ ✔
"FormatName": "TM-Form",
"Rev": "1" "80%" ✔ ✔ ✔
}
"85%" ✔ ✔ ✔
"90%" ✔ ✔ ✔
"95%" ✔ ✔ ✔
Density
"100%" ✔ ✔ ✔
"105%" ✔ ✔ ✔
"110%" ✔ ✔ ✔
"115%" ✔ ✔ ✔
"120%" ✔ ✔ ✔
"125%" ✔ ✔ -
"130%" ✔ ✔ -
4
Corresponding Models
TM-m30II-H
TM-m30II-H
Key Info Key Info
TM-m30II
TM-m30II
EU-m30
EU-m30
Value Value
1 2 3 1 2 3
"Level1" ✔ ✔ ✔ Counter ✔ ✔ ✔
"Level2" ✔ ✔ ✔ RollPaper_FeedLines ✔ ✔ ✔
"Level3" ✔ ✔ ✔ RollPaper_CutterDrives ✔ ✔ ✔
"Level4" ✔ ✔ ✔
"Level5" ✔ ✔ ✔
"Level6" ✔ ✔ ✔
"Level7" ✔ ✔ ✔
"Level8" ✔ ✔ ✔
Speed "Level9" ✔ ✔ ✔
"Level10" ✔ ✔ ✔
"Level11" ✔ ✔ ✔
"Level12" ✔ ✔ ✔
"Level13" ✔ ✔ ✔
"Level14" ✔ - -
"Level15" - - -
"Level16" - - -
"Level17" - - -
"Standard" ✔ ✔ ✔
"48/36"?"48¥¥/36" - - -
ColumnEmulation "46/32"?"46¥¥/32" - - -
"42/42" - - -
"42/32"?"42¥¥/32" ✔ ✔ ✔
"58mm" ✔ ✔ ✔
RollPaperWidth
"80mm" ✔ ✔ ✔
NearEndSetting "Disable"?"Enable" ✔ ✔ ✔
Maintenance ✔ ✔ ✔
ThermalHead - ✔ ✔
NumberOfWarningDot - - ✔
PositionOfWarningDot - - ✔
NumberOfBrokenDot - - ✔
PositionOfBrokenDot - - ✔
5
JSON 仕様
JSON 仕様シート
JSON仕様
Epson ePOS SDK for Android の下記 API で使用する JSON フォーマットの仕様を解説します。
• setPrinterSettingEx
• setGetPrinterSettingExListener
RW: Read Write( 設定の取得及び変更可能 )
RO: Read Only( 設定の取得のみ可能 )
PrinterSpec プリンター仕様情報
Product 製品情報
Spec 仕様情報
現在選択されている多国語フォント名
Language 多国語フォント名 RO
(GS I 69 コマンドで取得できる値)
Setting 設定
AutoCut カッター関連
Buzzer Buzzer 機能
Command コマンド関連機能
Print 印刷関連設定
"DIPSW": ディップスイッチの設定に従う
"70%": 70%
"75%": 75%
"85%": 85%
"90%": 90%
"95%": 95%
6
JSON 仕様
"105%": 105%
"110%": 110%
"120%": 120%
"125%": 125%
"130%": 130%
"Level1": 印字速度レベル 1
"Level2": 印字速度レベル 2
"Level3": 印字速度レベル 3
"Level4": 印字速度レベル 4
"Level5": 印字速度レベル 5
"Level6": 印字速度レベル 6
"Level7": 印字速度レベル 7
"Level8": 印字速度レベル 8
"Level10": 印字速度レベル 10
"Level11": 印字速度レベル 11
"Level12": 印字速度レベル 12
"Level13": 印字速度レベル 13
"Level14": 印字速度レベル 14
"Level15": 印字速度レベル 15
"Level16": 印字速度レベル 16
"Level17": 印字速度レベル 17
"Standard": 標準桁モード
"58mm": 58 mm
RollPaperWidth 用紙幅 (GS (E fn=5 a=3) RW
"80mm": 80 mm
7
JSON 仕様
Maintenance
ThermalHead
"-1": ドット抜けの検出に失敗した
NumberOfWarningDot Warning 閾値を超えたドット(もうすぐ壊れそうなドット)の数を返す。 RO "0": Warning 閾値を超えたドットなし
"1" ∼ "512": Warning 閾値を超えたドットの数
"-1": ドット抜けの検出に失敗した
NumberOfBrokenDot 故障閾値を超えたドット(故障したドット)の数を返す。 RO "0": 故障閾値を超えたドットなし
"1" ∼ "512": 故障閾値を超えたドットの数
Counter メンテナンスカウンター(積算)
8
jsonString の取得例
jsonStringの取得例 対応機種
TM-m30II-H
{ Key Info
TM-m30II
"PrinterSpec": {
"Product": { Value
"SerialNo": "ABCD000002" 1 2 3
},
"Spec": {
"Language": "KANJI JAPANESE"
} FormatName "TM-Form" ✔ ✔
},
Rev "1" ✔ ✔
"Setting": {
"AutoCut": { PrinterSpec ✔ ✔
"CutAfterPaperset": "Invalid"
}, Product ✔ ✔
"Buzzer": {
"Select": "Valid" SerialNo ✔ ✔
},
"Command": { Spec ✔ ✔
"AutoCR": "Invalid"
}, Language ✔ ✔
"Print": {
"Density": "100%", Setting ✔ ✔
"Speed": "Level13",
"ColumnEmulation": "Standard", AutoCut ✔ ✔
"RollPaperWidth": "80mm",
"NearEndSetting": "Disable" CutAfterPaperset "Invalid"、"Valid" ✔ ✔
}
}, Buzzer ✔ ✔
"Maintenance": {
Select "Invalid"、"Valid" ✔ ✔
"ThermalHead": {
"NumberOfWarningDot": "0", Command ✔ ✔
"PositionOfWarningDot": "",
"NumberOfBrokenDot": "0", AutoCR "Invalid"、"Valid" ✔ ✔
"PositionOfBrokenDot": ""
}, Print ✔ ✔
"Counter": {
"RollPaper_FeedLines": "53408", "DIPSW" - -
"RollPaper_CutterDrives": "5647"
} "70%" ✔ ✔
},
"FormatName": "TM-Form", "75%" ✔ ✔
"Rev": "1"
} "80%" ✔ ✔
"85%" ✔ ✔
"90%" ✔ ✔
"95%" ✔ ✔
Density
"100%" ✔ ✔
"105%" ✔ ✔
"110%" ✔ ✔
"115%" ✔ ✔
"120%" ✔ ✔
"125%" ✔ -
"130%" ✔ -
9
対応機種
TM-m30II-H
TM-m30II-H
Key Info Key Info
TM-m30II
TM-m30II
Value Value
1 2 3 1 2 3
"Level1" ✔ ✔ Counter ✔ ✔
"Level2" ✔ ✔ RollPaper_FeedLines ✔ ✔
"Level3" ✔ ✔ RollPaper_CutterDrives ✔ ✔
"Level4" ✔ ✔
"Level5" ✔ ✔
"Level6" ✔ ✔
"Level7" ✔ ✔
"Level8" ✔ ✔
Speed "Level9" ✔ ✔
"Level10" ✔ ✔
"Level11" ✔ ✔
"Level12" ✔ ✔
"Level13" ✔ ✔
"Level14" - -
"Level15" - -
"Level16" - -
"Level17" - -
"Standard" ✔ ✔
"48/36"、"48¥¥/36" - -
ColumnEmulation "46/32"、"46¥¥/32" - -
"42/42" - -
"42/32"、"42¥¥/32" ✔ ✔
"58mm" ✔ ✔
RollPaperWidth
"80mm" ✔ ✔
NearEndSetting "Disable"、"Enable" ✔ ✔
Maintenance ✔ ✔
ThermalHead ✔ ✔
NumberOfWarningDot - ✔
PositionOfWarningDot - ✔
NumberOfBrokenDot - ✔
PositionOfBrokenDot - ✔
10