@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,307 @@
1
+ ---
2
+ title: InsertCardReader API
3
+ module: InsertCardReader
4
+ domain: general
5
+ tags: ["general", "insertcardreader", "insertcardreader"]
6
+ ---
7
+ # InsertCardReader
8
+
9
+ 共 **5** 个 API/条目,来源 `general_sdk.md`。
10
+
11
+ ## API 索引
12
+
13
+ | 方法 | 类路径 | Demo Activity |
14
+ |------|--------|---------------|
15
+ | [powerUp](#powerup) | `com.urovo.sdk.insertcard.InsertCardHandlerImpl` | ICReaderActivity |
16
+ | [powerDown](#powerdown) | `com.urovo.sdk.insertcard.InsertCardHandlerImpl` | ICReaderActivity |
17
+ | [IisCardIn](#iiscardin) | `com.urovo.sdk.insertcard.InsertCardHandlerImpl` | ICReaderActivity |
18
+ | [exchangeApdu](#exchangeapdu) | `com.urovo.sdk.insertcard.InsertCardHandlerImpl` | ICReaderActivity |
19
+ | [isPSAMCardExist](#ispsamcardexist) | `com.urovo.sdk.insertcard.InsertCardHandlerImpl` | ICReaderActivity |
20
+
21
+ ## powerUp
22
+
23
+ Card power up.
24
+
25
+ ```java
26
+ int powerUp(byte cardSlot,byte[] atrData)
27
+ ```
28
+
29
+ - **类路径:** `com.urovo.sdk.insertcard.InsertCardHandlerImpl`
30
+ - **Demo Activity(参考):** ICReaderActivity
31
+ - **源文档章节:** 9.1
32
+
33
+ - Source section: `9.1`
34
+
35
+ - Package/class path: `com.urovo.sdk.insertcard.InsertCardHandlerImpl`
36
+
37
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/ICReaderActivity.java`
38
+
39
+
40
+
41
+ Purpose:
42
+ Card power up.
43
+
44
+
45
+ Signature/prototype:
46
+ ```java
47
+ int powerUp(byte cardSlot,byte[] atrData)
48
+ ```
49
+
50
+
51
+ Parameters:
52
+ Input
53
+ cardSlot - 0:user card ,1:psam1,2:psam2.
54
+ Output
55
+ None
56
+
57
+
58
+ Return value:
59
+ 0:success, others:failed.
60
+
61
+
62
+ Simplified example:
63
+ ```java
64
+ byte[] atr = InsertCardHandlerImpl.getInstance().powerUp(Constant.SlotType.USER_CARD);
65
+ ```
66
+
67
+
68
+ Source details:
69
+ ```text
70
+ Prototype
71
+ int powerUp(byte cardSlot,byte[] atrData)
72
+ Description
73
+ Card power up.
74
+ Parameters
75
+ Input
76
+ cardSlot - 0:user card ,1:psam1,2:psam2.
77
+ Output
78
+ None
79
+ Return
80
+ 0:success, others:failed.
81
+ Remark
82
+ ```
83
+
84
+ ## powerDown
85
+
86
+ Card power down.
87
+
88
+ ```java
89
+ boolean powerDown(byte cardSlot)
90
+ ```
91
+
92
+ - **类路径:** `com.urovo.sdk.insertcard.InsertCardHandlerImpl`
93
+ - **Demo Activity(参考):** ICReaderActivity
94
+ - **源文档章节:** 9.2
95
+
96
+ - Source section: `9.2`
97
+
98
+ - Package/class path: `com.urovo.sdk.insertcard.InsertCardHandlerImpl`
99
+
100
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/ICReaderActivity.java`
101
+
102
+
103
+
104
+ Purpose:
105
+ Card power down.
106
+
107
+
108
+ Signature/prototype:
109
+ ```java
110
+ boolean powerDown(byte cardSlot)
111
+ ```
112
+
113
+
114
+ Parameters:
115
+ Input
116
+ cardSlot -0:user card ,1:psam1,2:psam2.
117
+ Output
118
+ None
119
+
120
+
121
+ Return value:
122
+ Return true when power down successful, return false when power down failed.
123
+
124
+
125
+ Source details:
126
+ ```text
127
+ Prototype
128
+ boolean powerDown(byte cardSlot)
129
+ Description
130
+ Card power down.
131
+ Parameters
132
+ Input
133
+ cardSlot -0:user card ,1:psam1,2:psam2.
134
+ Output
135
+ None
136
+ Return
137
+ Return true when power down successful, return false when power down failed.
138
+ Remark
139
+ ```
140
+
141
+ ## IisCardIn
142
+
143
+ Is the card in place.
144
+
145
+ ```java
146
+ boolean isCardIn()
147
+ ```
148
+
149
+ - **类路径:** `com.urovo.sdk.insertcard.InsertCardHandlerImpl`
150
+ - **Demo Activity(参考):** ICReaderActivity
151
+ - **源文档章节:** 9.3
152
+
153
+ - Source section: `9.3`
154
+
155
+ - Package/class path: `com.urovo.sdk.insertcard.InsertCardHandlerImpl`
156
+
157
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/ICReaderActivity.java`
158
+
159
+
160
+
161
+ Purpose:
162
+ Is the card in place.
163
+
164
+
165
+ Signature/prototype:
166
+ ```java
167
+ boolean isCardIn()
168
+ ```
169
+
170
+
171
+ Parameters:
172
+ Input
173
+ None
174
+ Output
175
+ None
176
+
177
+
178
+ Return value:
179
+ Return true when card exist, return false when card does not exist.
180
+
181
+
182
+ Source details:
183
+ ```text
184
+ Prototype
185
+ boolean isCardIn()
186
+ Description
187
+ Is the card in place.
188
+ Parameters
189
+ Input
190
+ None
191
+ Output
192
+ None
193
+ Return
194
+ Return true when card exist, return false when card does not exist.
195
+ Remark
196
+ ```
197
+
198
+ ## exchangeApdu
199
+
200
+ APDU data communication.
201
+
202
+ ```java
203
+ byte[] exchangeApdu(byte cardSlot, byte[] apdu)
204
+ ```
205
+
206
+ - **类路径:** `com.urovo.sdk.insertcard.InsertCardHandlerImpl`
207
+ - **Demo Activity(参考):** ICReaderActivity
208
+ - **源文档章节:** 9.4
209
+
210
+ - Source section: `9.4`
211
+
212
+ - Package/class path: `com.urovo.sdk.insertcard.InsertCardHandlerImpl`
213
+
214
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/ICReaderActivity.java`
215
+
216
+
217
+
218
+ Purpose:
219
+ APDU data communication.
220
+
221
+
222
+ Signature/prototype:
223
+ ```java
224
+ byte[] exchangeApdu(byte cardSlot, byte[] apdu)
225
+ ```
226
+
227
+
228
+ Parameters:
229
+ Input
230
+ cardSlot - 0:user card ,1:psam1,2:psam2.
231
+ apdu - apdu data.
232
+ Output
233
+ None
234
+
235
+
236
+ Return value:
237
+ Return card response data when communication successful, return null when communication failed.
238
+
239
+
240
+ Simplified example:
241
+ ```java
242
+ byte[] response = InsertCardHandlerImpl.getInstance().exchangeApdu(Constant.SlotType.USER_CARD, commandApdu);
243
+ ```
244
+
245
+
246
+ Source details:
247
+ ```text
248
+ Prototype
249
+ byte[] exchangeApdu(byte cardSlot, byte[] apdu)
250
+ Description
251
+ APDU data communication.
252
+ Parameters
253
+ Input
254
+ cardSlot - 0:user card ,1:psam1,2:psam2.
255
+ apdu - apdu data.
256
+ Output
257
+ None
258
+ Return
259
+ Return card response data when communication successful, return null when communication failed.
260
+ Remark
261
+ ```
262
+
263
+ ## isPSAMCardExist
264
+
265
+ Is the psam card in place.
266
+
267
+ ```java
268
+ boolean isPSAMCardExist(byte cardSlot)
269
+ ```
270
+
271
+ - **类路径:** `com.urovo.sdk.insertcard.InsertCardHandlerImpl`
272
+ - **Demo Activity(参考):** ICReaderActivity
273
+ - **源文档章节:** 9.5
274
+
275
+ - Source section: `9.5`
276
+
277
+ - Package/class path: `com.urovo.sdk.insertcard.InsertCardHandlerImpl`
278
+
279
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/ICReaderActivity.java`
280
+
281
+
282
+
283
+ Purpose:
284
+ Is the psam card in place.
285
+
286
+
287
+ Signature/prototype:
288
+ ```java
289
+ boolean isPSAMCardExist(byte cardSlot)
290
+ ```
291
+
292
+
293
+ Parameters:
294
+ Input
295
+ cardSlot: psam card slot.
296
+
297
+
298
+ Source details:
299
+ ```text
300
+ Prototype
301
+ boolean isPSAMCardExist(byte cardSlot)
302
+ Description
303
+ Is the psam card in place.
304
+ Parameters
305
+ Input
306
+ cardSlot: psam card slot.
307
+ ```
@@ -0,0 +1,202 @@
1
+ ---
2
+ title: Install Manager API
3
+ module: Install Manager
4
+ domain: general
5
+ tags: ["general", "install-manager", "install manager"]
6
+ ---
7
+ # Install Manager
8
+
9
+ 共 **2** 个 API/条目,来源 `general_sdk.md`。
10
+
11
+ ## API 索引
12
+
13
+ | 方法 | 类路径 | Demo Activity |
14
+ |------|--------|---------------|
15
+ | [install](#install) | `com.urovo.sdk.install.InstallManagerImpl` | - |
16
+ | [uninstall](#uninstall) | `com.urovo.sdk.install.InstallManagerImpl` | - |
17
+
18
+ ## install
19
+
20
+ Override installation, silence.
21
+
22
+ ```java
23
+ void install(String apkPath, final InstallApkListener listener)
24
+ ```
25
+
26
+ - **类路径:** `com.urovo.sdk.install.InstallManagerImpl`
27
+ - **源文档章节:** 11.1
28
+
29
+ - Source section: `11.1`
30
+
31
+ - Package/class path: `com.urovo.sdk.install.InstallManagerImpl`
32
+
33
+
34
+
35
+ Purpose:
36
+ Override installation, silence.
37
+
38
+
39
+ Signature/prototype:
40
+ ```java
41
+ void install(String apkPath, final InstallApkListener listener)
42
+ ```
43
+
44
+
45
+ Parameters:
46
+ Input
47
+ apkPath - the apk file path in the device.
48
+ listener - installation and uninstallation result callback.
49
+ Output
50
+ None
51
+
52
+
53
+ Usage notes:
54
+ /**
55
+ * installation result callback listener interface definition
56
+ */
57
+ interface InstallApkListener {
58
+ /**
59
+ * installation result
60
+ * @param packageName- app package name
61
+ * @param returnCode- result code.(Refer to the InstallAppCodeConstant).
62
+ * @param returnMsg- result description message
63
+ */
64
+ void onInstallFinished(String packageName, int returnCode, String returnMsg);
65
+ /**
66
+ * uninstallation result
67
+ * @param packageName- app package name
68
+ * @param returnCode- result code.(Refer to InstallAppCodeConstant).
69
+ * @param returnMsg- result description message
70
+ */
71
+ void onUnInstallFinished(String packageName, int returnCode, String returnMsg);
72
+ }
73
+
74
+
75
+ Source details:
76
+ ```text
77
+ Prototype
78
+ void install(String apkPath, final InstallApkListener listener)
79
+ Description
80
+ Override installation, silence.
81
+ Parameters
82
+ Input
83
+ apkPath - the apk file path in the device.
84
+ listener - installation and uninstallation result callback.
85
+ Output
86
+ None
87
+ Return
88
+
89
+ Remark
90
+ /**
91
+ * installation result callback listener interface definition
92
+ */
93
+ interface InstallApkListener {
94
+ /**
95
+ * installation result
96
+ * @param packageName- app package name
97
+ * @param returnCode- result code.(Refer to the InstallAppCodeConstant).
98
+ * @param returnMsg- result description message
99
+ */
100
+ void onInstallFinished(String packageName, int returnCode, String returnMsg);
101
+ /**
102
+ * uninstallation result
103
+ * @param packageName- app package name
104
+ * @param returnCode- result code.(Refer to InstallAppCodeConstant).
105
+ * @param returnMsg- result description message
106
+ */
107
+ void onUnInstallFinished(String packageName, int returnCode, String returnMsg);
108
+ }
109
+ ```
110
+
111
+ ## uninstall
112
+
113
+ Uninstallation, silence.
114
+
115
+ ```java
116
+ void uninstall(String packageName, final InstallApkListener listaner)
117
+ ```
118
+
119
+ - **类路径:** `com.urovo.sdk.install.InstallManagerImpl`
120
+ - **源文档章节:** 11.2
121
+
122
+ - Source section: `11.2`
123
+
124
+ - Package/class path: `com.urovo.sdk.install.InstallManagerImpl`
125
+
126
+
127
+
128
+ Purpose:
129
+ Uninstallation, silence.
130
+
131
+
132
+ Signature/prototype:
133
+ ```java
134
+ void uninstall(String packageName, final InstallApkListener listaner)
135
+ ```
136
+
137
+
138
+ Parameters:
139
+ Input
140
+ packageName - the app package name.
141
+ listener - installation and uninstallation result callback.
142
+ Output
143
+ None
144
+
145
+
146
+ Usage notes:
147
+ /**
148
+ * installation result callback listener interface definition
149
+ */
150
+ interface InstallApkListener {
151
+ /**
152
+ * installation result
153
+ * @param packageName- app package name
154
+ * @param returnCode- result code
155
+ * @param returnMsg- result description message
156
+ */
157
+ void onInstallFinished(String packageName, int returnCode, String returnMsg);
158
+ /**
159
+ * uninstallation result
160
+ * @param packageName- app package name
161
+ * @param returnCode- result code
162
+ * @param returnMsg- result description message
163
+ */
164
+ void onUnInstallFinished(String packageName, int returnCode, String returnMsg);
165
+ }
166
+
167
+
168
+ Source details:
169
+ ```text
170
+ Prototype
171
+ void uninstall(String packageName, final InstallApkListener listaner)
172
+ Description
173
+ Uninstallation, silence.
174
+ Parameters
175
+ Input
176
+ packageName - the app package name.
177
+ listener - installation and uninstallation result callback.
178
+ Output
179
+ None
180
+ Return
181
+
182
+ Remark
183
+ /**
184
+ * installation result callback listener interface definition
185
+ */
186
+ interface InstallApkListener {
187
+ /**
188
+ * installation result
189
+ * @param packageName- app package name
190
+ * @param returnCode- result code
191
+ * @param returnMsg- result description message
192
+ */
193
+ void onInstallFinished(String packageName, int returnCode, String returnMsg);
194
+ /**
195
+ * uninstallation result
196
+ * @param packageName- app package name
197
+ * @param returnCode- result code
198
+ * @param returnMsg- result description message
199
+ */
200
+ void onUnInstallFinished(String packageName, int returnCode, String returnMsg);
201
+ }
202
+ ```
@@ -0,0 +1,144 @@
1
+ ---
2
+ title: LED Light API
3
+ module: LED Light
4
+ domain: general
5
+ tags: ["general", "led-light", "led light"]
6
+ ---
7
+ # LED Light
8
+
9
+ 共 **2** 个 API/条目,来源 `general_sdk.md`。
10
+
11
+ ## API 索引
12
+
13
+ | 方法 | 类路径 | Demo Activity |
14
+ |------|--------|---------------|
15
+ | [turnOn](#turnon) | `com.urovo.sdk.led.LEDDriverImpl` | LedActivity |
16
+ | [turnOff](#turnoff) | `com.urovo.sdk.led.LEDDriverImpl` | LedActivity |
17
+
18
+ ## turnOn
19
+
20
+ Turn on LED light
21
+
22
+ ```java
23
+ void turnOn(int led)
24
+ ```
25
+
26
+ - **类路径:** `com.urovo.sdk.led.LEDDriverImpl`
27
+ - **Demo Activity(参考):** LedActivity
28
+ - **源文档章节:** 2.1
29
+
30
+ - Source section: `2.1`
31
+
32
+ - Package/class path: `com.urovo.sdk.led.LEDDriverImpl`
33
+
34
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/LedActivity.java`
35
+
36
+
37
+
38
+ Purpose:
39
+ Turn on LED light
40
+
41
+
42
+ Signature/prototype:
43
+ ```java
44
+ void turnOn(int led)
45
+ ```
46
+
47
+
48
+ Parameters:
49
+ Input
50
+ led - 1: blue light, 2: yellow light, 3: green light, 4: red
51
+ Output
52
+ None
53
+
54
+
55
+ Usage notes:
56
+ Refer to Constant.Light.
57
+
58
+
59
+ Simplified example:
60
+ ```java
61
+ LEDDriverImpl.getInstance().turnOn(Constant.Light.BLUE);
62
+ ```
63
+
64
+
65
+ Source details:
66
+ ```text
67
+ Prototype
68
+ void turnOn(int led)
69
+ Description
70
+ Turn on LED light
71
+ Parameters
72
+ Input
73
+ led - 1: blue light, 2: yellow light, 3: green light, 4: red
74
+ Output
75
+ None
76
+ Return
77
+
78
+ Remark
79
+ Refer to Constant.Light.
80
+ ```
81
+
82
+ ## turnOff
83
+
84
+ Turn off LED light
85
+
86
+ ```java
87
+ void turnOff(int led)
88
+ ```
89
+
90
+ - **类路径:** `com.urovo.sdk.led.LEDDriverImpl`
91
+ - **Demo Activity(参考):** LedActivity
92
+ - **源文档章节:** 2.2
93
+
94
+ - Source section: `2.2`
95
+
96
+ - Package/class path: `com.urovo.sdk.led.LEDDriverImpl`
97
+
98
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/LedActivity.java`
99
+
100
+
101
+
102
+ Purpose:
103
+ Turn off LED light
104
+
105
+
106
+ Signature/prototype:
107
+ ```java
108
+ void turnOff(int led)
109
+ ```
110
+
111
+
112
+ Parameters:
113
+ Input
114
+ led - 1: blue light, 2: yellow light, 3: green light, 4: red.
115
+ Output
116
+ None
117
+
118
+
119
+ Usage notes:
120
+ Refer to Constant.Light.
121
+
122
+
123
+ Simplified example:
124
+ ```java
125
+ LEDDriverImpl.getInstance().turnOff(Constant.Light.BLUE);
126
+ ```
127
+
128
+
129
+ Source details:
130
+ ```text
131
+ Prototype
132
+ void turnOff(int led)
133
+ Description
134
+ Turn off LED light
135
+ Parameters
136
+ Input
137
+ led - 1: blue light, 2: yellow light, 3: green light, 4: red.
138
+ Output
139
+ None
140
+ Return
141
+
142
+ Remark
143
+ Refer to Constant.Light.
144
+ ```