@urovotest/urovosdk-docs-mcp 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +176 -0
  2. package/docs/00-overview.md +37 -0
  3. package/docs/01-integration/android-permissions.md +22 -0
  4. package/docs/01-integration/quickstart-zh.md +54 -0
  5. package/docs/02-reference/emv/emv-api.md +3308 -0
  6. package/docs/02-reference/emv/emv-appendix.md +112 -0
  7. package/docs/02-reference/emv/emv-callback.md +1155 -0
  8. package/docs/02-reference/emv/emv-enum.md +324 -0
  9. package/docs/02-reference/error-codes.md +59 -0
  10. package/docs/02-reference/general/beeper.md +160 -0
  11. package/docs/02-reference/general/devicemanager.md +460 -0
  12. package/docs/02-reference/general/insertcardreader.md +307 -0
  13. package/docs/02-reference/general/install-manager.md +202 -0
  14. package/docs/02-reference/general/led-light.md +144 -0
  15. package/docs/02-reference/general/magcardreader.md +191 -0
  16. package/docs/02-reference/general/pinpad.md +3309 -0
  17. package/docs/02-reference/general/printer.md +1410 -0
  18. package/docs/02-reference/general/psam2.md +55 -0
  19. package/docs/02-reference/general/rfcardreader.md +1090 -0
  20. package/docs/02-reference/general/scanner-custom.md +196 -0
  21. package/docs/02-reference/general/scanner.md +214 -0
  22. package/docs/02-reference/general/sdk-log-output-management.md +124 -0
  23. package/docs/02-reference/general/serial-port-deprecated-suggest-using-module-14-serialtool.md +406 -0
  24. package/docs/02-reference/general/serial-port.md +326 -0
  25. package/docs/02-reference/general/sle4428-4436-4442.md +1890 -0
  26. package/docs/02-reference/general/system-manager.md +212 -0
  27. package/docs/02-reference/module-index.md +30 -0
  28. package/docs/02-reference/source-emv_sdk.md +3927 -0
  29. package/docs/02-reference/source-general_sdk.md +8978 -0
  30. package/docs/02-reference/undocumented/kiosk-lock-task.md +92 -0
  31. package/docs/03-demo/activity-map.md +27 -0
  32. package/docs/api-registry.json +4733 -0
  33. package/docs/search-index.json +2688 -0
  34. package/docs/source/emv_sdk.md +3927 -0
  35. package/docs/source/general_sdk.md +8978 -0
  36. package/docs/source/kiosk_lock_task.md +86 -0
  37. package/package.json +36 -0
  38. package/src/launch.js +22 -0
  39. package/src/lib/check-update.js +92 -0
  40. package/src/lib/create-mcp-server.js +90 -0
  41. package/src/lib/docs-tools.js +206 -0
  42. package/src/server.js +10 -0
@@ -0,0 +1,324 @@
1
+ ---
2
+ title: EMV Enum API
3
+ module: EMV Enum
4
+ domain: emv
5
+ tags: ["emv", "emv-enum", "emv enum"]
6
+ ---
7
+ # EMV Enum
8
+
9
+ 共 **11** 个 API/条目,来源 `emv_sdk.md`。
10
+
11
+ ## API 索引
12
+
13
+ | 方法 | 类路径 | Demo Activity |
14
+ |------|--------|---------------|
15
+ | [EmvOption](#emvoption) | `-` | - |
16
+ | [CheckCardMode](#checkcardmode) | `-` | - |
17
+ | [CheckCardResult](#checkcardresult) | `-` | - |
18
+ | [TransactionResult](#transactionresult) | `-` | - |
19
+ | [DisplayText](#displaytext) | `-` | - |
20
+ | [PinEntryResult](#pinentryresult) | `-` | - |
21
+ | [PinEntrySource](#pinentrysource) | `-` | - |
22
+ | [NfcTransResult](#nfctransresult) | `-` | - |
23
+ | [NfcTipMessageID](#nfctipmessageid) | `-` | - |
24
+ | [NfcErrMessageID](#nfcerrmessageid) | `-` | - |
25
+ | [Operation](#operation) | `-` | - |
26
+
27
+ ## EmvOption
28
+
29
+ - **源文档章节:** 3.01
30
+
31
+ - Source section: `3.01`
32
+
33
+
34
+
35
+ Purpose:
36
+ public static enum EmvOption
37
+
38
+
39
+ Source details:
40
+ ```text
41
+ public static enum EmvOption
42
+ {
43
+ START, START_WITH_FORCE_ONLINE
44
+ }
45
+ ```
46
+
47
+ ## CheckCardMode
48
+
49
+ - **源文档章节:** 3.02
50
+
51
+ - Source section: `3.02`
52
+
53
+
54
+
55
+ Purpose:
56
+ public static enum CheckCardMode{
57
+
58
+
59
+ Source details:
60
+ ```text
61
+ public static enum CheckCardMode{
62
+ SWIPE, INSERT, TAP, SWIPE_OR_INSERT, SWIPE_OR_TAP,
63
+ INSERT_OR_TAP,
64
+ SWIPE_OR_INSERT_OR_TAP,
65
+ }
66
+ ```
67
+
68
+ ## CheckCardResult
69
+
70
+ - **源文档章节:** 3.03
71
+
72
+ - Source section: `3.03`
73
+
74
+
75
+
76
+ Purpose:
77
+ public static enum CheckCardResult{
78
+
79
+
80
+ Source details:
81
+ ```text
82
+ public static enum CheckCardResult{
83
+ NO_CARD INSERTED_CARD NOT_ICC BAD_SWIPE MSR USE_ICC_CARD
84
+ , , , , , ,
85
+ TAP_CARD_DETECTED NEED_FALLBACK TIMEOUT CANCEL DEVICE_BUSY
86
+ , , , ,
87
+ }
88
+ Checkcard result Result description
89
+ Nocardhasbeendetected,pleasecheck
90
+ NO_CARD
91
+ CheckCardMode
92
+ INSERTED_CARD ICCcardhasbeeninserted
93
+ NOT_ICC ICCcardreading failed,pleasetryto reinsertcard
94
+ Magneticstripecardreading failed,pleasetryto
95
+ BAD_SWIPE
96
+ re-swipethecard
97
+ MSR Magneticstripecardreading success
98
+ USE_ICC_CARD Pleaseinsert ICCcard
99
+ TAP_CARD_DETECTED Tapcardhasbeendetected
100
+ NEED_FALLBACK PleaseTaporSwipeCard
101
+ TIMEOUT Timeout,pleasetryto readcard again
102
+ Cardreadinghasbeencanceled,pleasetrytoreadcard
103
+ CANCEL
104
+ again
105
+ DEVICE_BUSY Cardreaderisbusy, pleasetryto read cardagain later
106
+ MULT_CARD Multiplecardsdetected ,Please taponecard
107
+ ```
108
+
109
+ ## TransactionResult
110
+
111
+ - **源文档章节:** 3.04
112
+
113
+ - Source section: `3.04`
114
+
115
+
116
+
117
+ Purpose:
118
+ public static enum TransactionResult
119
+
120
+
121
+ Source details:
122
+ ```text
123
+ public static enum TransactionResult
124
+ {
125
+ OFFLINE_APPROVAL,ONLINE_APPROVAL, TERMINATED,
126
+ OFFLINE_DECLINED,ONLINE_DECLINED, CANCELED, CANCELED_OR_TIMEOUT,
127
+ CARD_BLOCKED_APP_FAIL, NO_EMV_APPS, ICC_CARD_REMOVED,
128
+ SELECT_APP_FAIL, INVALID_ICC_DATA,
129
+ APPLICATION_BLOCKED_APP_FAIL
130
+ }
131
+ Transaction result Result description
132
+ OFFLINE_APPROVAL Offlinerequest hasbeen approved
133
+
134
+ ONLINE_APPROVAL Onlinerequesthasbeenapproved
135
+ TERMINATED Transactionhasbeenterminated
136
+ OFFLINE_DECLINED Offlinerequest hasbeen rejected
137
+ ONLINE_DECLINED Onlinerequesthasbeenrejected
138
+ CANCELED Transactionhasbeencanceled
139
+ CANCELED_OR_TIMEOUT Transactionhasbeencanceled ortimeout
140
+ CARD_BLOCKED_APP_FAIL Cardhasbeenblocked
141
+ NO_EMV_APPS Terminaldoesnot supportapplicationsofcard
142
+ ICC_CARD_REMOVED ICCcardhasbeenremoved
143
+ SELECT_APP_FAIL Terminalhasbeenfailto selectapplication ofcard
144
+ INVALID_ICC_DATA ICCcarddataisinvalid
145
+ APPLICATION_BLOCKED_APP_FAIL Applicationhasbeenblocked
146
+ ```
147
+
148
+ ## DisplayText
149
+
150
+ - **源文档章节:** 3.05
151
+
152
+ - Source section: `3.05`
153
+
154
+
155
+
156
+ Purpose:
157
+ public static enum DisplayText
158
+
159
+
160
+ Source details:
161
+ ```text
162
+ public static enum DisplayText
163
+ {
164
+ USE_MAG_STRIPE,
165
+ APPROVED_PLEASE_SIGN,//if CVM is Signature
166
+ }
167
+ ```
168
+
169
+ ## PinEntryResult
170
+
171
+ - **源文档章节:** 3.06
172
+
173
+ - Source section: `3.06`
174
+
175
+
176
+
177
+ Purpose:
178
+ public static enum PinEntryResult{
179
+
180
+
181
+ Source details:
182
+ ```text
183
+ public static enum PinEntryResult{
184
+ ENTERED, CANCEL, TIMEOUT, BYPASS, WRONG_PIN_LENGTH,
185
+ INCORRECT_PIN
186
+ }
187
+ ```
188
+
189
+ ## PinEntrySource
190
+
191
+ - **源文档章节:** 3.07
192
+
193
+ - Source section: `3.07`
194
+
195
+
196
+
197
+ Purpose:
198
+ public static enum PinEntrySource{
199
+
200
+
201
+ Source details:
202
+ ```text
203
+ public static enum PinEntrySource{
204
+ PHONE, KEYPAD
205
+ }
206
+ ```
207
+
208
+ ## NfcTransResult
209
+
210
+ - **源文档章节:** 3.08
211
+
212
+ - Source section: `3.08`
213
+
214
+
215
+
216
+ Purpose:
217
+ public static enum NfcTransResult{
218
+
219
+
220
+ Source details:
221
+ ```text
222
+ public static enum NfcTransResult{
223
+ ONLINE_APPROVAL,
224
+ DECLINE_ONLINE,
225
+ TERMINATE,
226
+ OFFLINE_APPROVAL,
227
+ OTHER_INTERFACES,
228
+ RETRY,
229
+ CARD_REMOVED,
230
+ ISSUER_SCRIPT_UPDATE_SUCCESSFUL, //8
231
+ ISSUER_SCRIPT_UPDATE_FAILED, //9
232
+ DECLINE_OFFLINE}
233
+ ```
234
+
235
+ ## NfcTipMessageID
236
+
237
+ - **源文档章节:** 3.09
238
+
239
+ - Source section: `3.09`
240
+
241
+
242
+
243
+ Purpose:
244
+ publicstaticenumNfcTipMessageID
245
+
246
+
247
+ Source details:
248
+ ```text
249
+ publicstaticenumNfcTipMessageID
250
+ {
251
+ PLS_REMOVE_CARD,
252
+ PLS_USE_CONTACT_IC_CARD,//1
253
+ NEED_SIGNATURE,//2
254
+ END_APPLICATION,//3
255
+ SEE_PHONE_REMOVE_AND_PRESENT_CARD,//4
256
+ DISPLAY_BALANCE,//5
257
+ CARD_READ_OK,//6
258
+ PLS_SECOND_TAP_CARD,//7
259
+ APPLICATION_BLOCKED,//8
260
+ TRY_AGAIN_RESENT_CARD,//9
261
+ USE_MAG_STRIPE,//10
262
+ INSERT_SWIPE_OR_TRY_ANOTHER_CARD,//11
263
+ TERMINATE,
264
+ CARD_ERROR,
265
+ PROCESSING_ERROR,
266
+ UNKNOW
267
+ }
268
+ ```
269
+
270
+ ## NfcErrMessageID
271
+
272
+ - **源文档章节:** 3.10
273
+
274
+ - Source section: `3.10`
275
+
276
+
277
+
278
+ Purpose:
279
+ publicstaticenumNfcErrMessageID
280
+
281
+
282
+ Source details:
283
+ ```text
284
+ publicstaticenumNfcErrMessageID
285
+ {
286
+ ERR_LOAD_CALLBACK,//0
287
+ ICS_PARAM_NOT_FIND,//needupdateterminalparamters
288
+ KERNEL_ERR,
289
+ ERR_PIN_LENTH,
290
+ ERR_MULT_CARD,
291
+ ERR_CHECK_CARD,
292
+ AID_PARAM_NOT_FIND,
293
+ CAPK_PARAM_NOT_FIND,
294
+ GET_KERNEL_DATA_FAILED,
295
+ QPBOC_APPLICATION,//9
296
+ QPBOC_FDDA_FAILED,
297
+ PURE_ELE_CASH_CARD_NOT_ALLOW_ONLINE_TRANS,
298
+ UNKNOW
299
+ }
300
+ ```
301
+
302
+ ## Operation
303
+
304
+ - **源文档章节:** 3.11
305
+
306
+ - Source section: `3.11`
307
+
308
+
309
+
310
+ Purpose:
311
+ publicstaticenumOperation
312
+
313
+
314
+ Source details:
315
+ ```text
316
+ publicstaticenumOperation
317
+ {
318
+ CLEAR, //clearcontactandcontactlessAID
319
+ ADD,
320
+ CLEAR_EMV_AID,//onlyclearcontactAID
321
+ CLEAR_NFC_AID//onlyclearcontactlessAID
322
+ }
323
+ 4.Appendix
324
+ ```
@@ -0,0 +1,59 @@
1
+ ---
2
+ title: 错误码
3
+ module: reference
4
+ tags: ["error-codes", "pinpad", "printer"]
5
+ ---
6
+ # UrovoSDK 错误码参考
7
+
8
+ ## Pinpad(getLastErrorCode / getLastErrorMsg)
9
+
10
+ | 码 | 说明 |
11
+ |----|------|
12
+ | 0x00 | Success |
13
+ | 0x01 | Unsupported command |
14
+ | 0x02 | Command length error |
15
+ | 0x03 | Command separator error |
16
+ | 0x04 | Command separator length error |
17
+ | 0x05 | command head (CB) error |
18
+ | 0x06 | Data crc16 error |
19
+ | 0x07 | Message mac error |
20
+ | 0x09 | Message format error |
21
+ | 0x0C | Unsupported algorithm |
22
+ | 0x0D | Unsupported format |
23
+ | 0x0E | Unsupported mode |
24
+ | 0x12 | Keys not ready or init |
25
+ | 0x14 | Keys number not found |
26
+ | 0x15 | Keys number out of range |
27
+ | 0x16 | Keys download |
28
+ | 0x17 | Keys not download |
29
+ | 0x18 | Keys out of space |
30
+ | 0x19 | Keys exists or can not be overwrite |
31
+ | 0x1A | Keys encrypt keys not download |
32
+ | 0x1B | Keys unsupported specified use |
33
+ | 0x1C | Unsupported keys length |
34
+ | 0x28 | Unsupported pinblock format |
35
+ | 0x29 | Username length error |
36
+ | 0x2A | Username value error |
37
+ | 0x2B | User pinblock length error |
38
+ | 0x2C | User pinblock value error |
39
+ | 0x2D | Pinblock char error |
40
+ | 100 | Parameter is null or empty |
41
+ | 101 | Mismatch data length |
42
+ | 102 | Invalid data length |
43
+ | 103 | Invalid key index |
44
+ | 104 | Invalid parameter |
45
+ | 105 | Invalid RSA public key |
46
+ | 106 | Runtime exception |
47
+
48
+ ## Printer
49
+
50
+ | 码 | 说明 |
51
+ |----|------|
52
+ | 0x00 | Success |
53
+ | 0xF0 | No paper |
54
+ | 0xF3 | Over heat |
55
+ | 0xE1 | Low voltage |
56
+ | 0xF2 | Hardware error |
57
+ | 0xF7 | Printer busy |
58
+
59
+ 详见 `02-reference/general/printer.md` 中 Printer Error Code Definition。
@@ -0,0 +1,160 @@
1
+ ---
2
+ title: Beeper API
3
+ module: Beeper
4
+ domain: general
5
+ tags: ["general", "beeper", "beeper"]
6
+ ---
7
+ # Beeper
8
+
9
+ 共 **2** 个 API/条目,来源 `general_sdk.md`。
10
+
11
+ ## API 索引
12
+
13
+ | 方法 | 类路径 | Demo Activity |
14
+ |------|--------|---------------|
15
+ | [startBeep](#startbeep) | `com.urovo.sdk.beeper.BeeperImpl` | BeeperActivity |
16
+ | [stopBeep](#stopbeep) | `com.urovo.sdk.beeper.BeeperImpl` | BeeperActivity |
17
+
18
+ ## startBeep
19
+
20
+ Start Beeping
21
+
22
+ ```java
23
+ void startBeep(int cnts, int msec)
24
+ ```
25
+
26
+ - **类路径:** `com.urovo.sdk.beeper.BeeperImpl`
27
+ - **Demo Activity(参考):** BeeperActivity
28
+ - **源文档章节:** 1.1
29
+
30
+ - Source section: `1.1`
31
+
32
+ - Package/class path: `com.urovo.sdk.beeper.BeeperImpl`
33
+
34
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/BeeperActivity.java`
35
+
36
+
37
+
38
+ Purpose:
39
+ Start Beeping
40
+
41
+
42
+ Signature/prototype:
43
+ ```java
44
+ void startBeep(int cnts, int msec)
45
+ ```
46
+
47
+
48
+ Parameters:
49
+ Input
50
+ cnts - frequency.
51
+ cnts=1, msec=timeout.
52
+ cnts>1, mescTime = interval time of each beep.
53
+
54
+ msec- the duration of the beep, in milliseconds.
55
+ Output
56
+ None
57
+
58
+
59
+ Return value:
60
+ None
61
+
62
+
63
+ Usage notes:
64
+ The buzzer sounds in a non-blocking manner. After calling this function, the function returns immediately and does not block the call.
65
+
66
+
67
+ Simplified example:
68
+ ```java
69
+ BeeperImpl.getInstance().startBeep(1, 100); // one short beep; returns immediately
70
+ ```
71
+
72
+
73
+ Source details:
74
+ ```text
75
+ Prototype
76
+ void startBeep(int cnts, int msec)
77
+ Description
78
+ Start Beeping
79
+ Parameters
80
+ Input
81
+ cnts - frequency.
82
+ cnts=1, msec=timeout.
83
+ cnts>1, mescTime = interval time of each beep.
84
+
85
+ msec- the duration of the beep, in milliseconds.
86
+ Output
87
+ None
88
+ Return
89
+ None
90
+ Remark
91
+ The buzzer sounds in a non-blocking manner. After calling this function, the function returns immediately and does not block the call.
92
+ ```
93
+
94
+ ## stopBeep
95
+
96
+ Stop Beeping
97
+
98
+ ```java
99
+ void stopBeep()
100
+ ```
101
+
102
+ - **类路径:** `com.urovo.sdk.beeper.BeeperImpl`
103
+ - **Demo Activity(参考):** BeeperActivity
104
+ - **源文档章节:** 1.2
105
+
106
+ - Source section: `1.2`
107
+
108
+ - Package/class path: `com.urovo.sdk.beeper.BeeperImpl`
109
+
110
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/BeeperActivity.java`
111
+
112
+
113
+
114
+ Purpose:
115
+ Stop Beeping
116
+
117
+
118
+ Signature/prototype:
119
+ ```java
120
+ void stopBeep()
121
+ ```
122
+
123
+
124
+ Parameters:
125
+ Input
126
+ None
127
+ Output
128
+ None
129
+
130
+
131
+ Return value:
132
+ None
133
+
134
+
135
+ Usage notes:
136
+ Stop the beep immediately after calling this method.
137
+
138
+
139
+ Simplified example:
140
+ ```java
141
+ BeeperImpl.getInstance().stopBeep();
142
+ ```
143
+
144
+
145
+ Source details:
146
+ ```text
147
+ Prototype
148
+ void stopBeep()
149
+ Description
150
+ Stop Beeping
151
+ Parameters
152
+ Input
153
+ None
154
+ Output
155
+ None
156
+ Return
157
+ None
158
+ Remark
159
+ Stop the beep immediately after calling this method.
160
+ ```