@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,406 @@
1
+ ---
2
+ title: Serial Port(Deprecated, suggest using module 14.SerialTool) API
3
+ module: Serial Port(Deprecated, suggest using module 14.SerialTool)
4
+ domain: general
5
+ tags: ["general", "serial-port-deprecated-suggest-using-module-14-serialtool", "serial port(deprecated, suggest using module 14.serialtool)"]
6
+ ---
7
+ # Serial Port(Deprecated, suggest using module 14.SerialTool)
8
+
9
+ 共 **6** 个 API/条目,来源 `general_sdk.md`。
10
+
11
+ ## API 索引
12
+
13
+ | 方法 | 类路径 | Demo Activity |
14
+ |------|--------|---------------|
15
+ | [Open](#open) | `com.urovo.smartpos.device.core.SerialPortDriverImpl` | - |
16
+ | [close](#close) | `com.urovo.smartpos.device.core.SerialPortDriverImpl` | - |
17
+ | [read](#read) | `com.urovo.smartpos.device.core.SerialPortDriverImpl` | - |
18
+ | [send](#send) | `com.urovo.smartpos.device.core.SerialPortDriverImpl` | - |
19
+ | [clearInputBuffer](#clearinputbuffer) | `com.urovo.smartpos.device.core.SerialPortDriverImpl` | - |
20
+ | [isbufferEmpty](#isbufferempty) | `com.urovo.smartpos.device.core.SerialPortDriverImpl` | - |
21
+
22
+ ## Open
23
+
24
+ Open the serial port.
25
+
26
+ ```java
27
+ boolean open(String portPath, int bps, int par, int dbs)
28
+ ```
29
+
30
+ - **类路径:** `com.urovo.smartpos.device.core.SerialPortDriverImpl`
31
+ - **源文档章节:** 5.1
32
+
33
+ - Source section: `5.1`
34
+
35
+ - Package/class path: `com.urovo.smartpos.device.core.SerialPortDriverImpl`
36
+
37
+
38
+
39
+ Purpose:
40
+ Open the serial port.
41
+
42
+
43
+ Signature/prototype:
44
+ ```java
45
+ boolean open(String portPath, int bps, int par, int dbs)
46
+ ```
47
+
48
+
49
+ Parameters:
50
+ Input
51
+ portPath - The serial port path.
52
+
53
+ bps - Baud rate
54
+ *
55
+ * - BPS_1200(0x01) - 1200
56
+ * - BPS_2400(0x02) - 2400
57
+ * - BPS_4800(0x03) - 4800
58
+ * - BPS_9600(0x04) - 9600
59
+ * - BPS_14400(0x05) - 14400
60
+ * - BPS_28800(0x06) - 28800
61
+ * - BPS_19200(0x07) - 19200
62
+ * - BPS_57600(0x08) - 57600
63
+ * - BPS_115200(0x09) - 115200
64
+ * - BPS_38400(0x0A) - 38400
65
+ *
66
+ par - check
67
+ *
68
+ * - PAR_NOPAR('N')
69
+ * - PAR_EVEN('E')
70
+ * - PAR_ODD('O')
71
+ *
72
+ dbs - data bits
73
+ *
74
+ * - DBS_7(0x07) - 7
75
+ * - DBS_8(0x08) - 8
76
+ *
77
+ Output
78
+ None
79
+
80
+
81
+ Return value:
82
+ Return true when update successful, return false when update failed.
83
+
84
+
85
+ Source details:
86
+ ```text
87
+ Prototype
88
+ boolean open(String portPath, int bps, int par, int dbs)
89
+ Description
90
+ Open the serial port.
91
+ Parameters
92
+ Input
93
+ portPath - The serial port path.
94
+
95
+ bps - Baud rate
96
+ *
97
+ * - BPS_1200(0x01) - 1200
98
+ * - BPS_2400(0x02) - 2400
99
+ * - BPS_4800(0x03) - 4800
100
+ * - BPS_9600(0x04) - 9600
101
+ * - BPS_14400(0x05) - 14400
102
+ * - BPS_28800(0x06) - 28800
103
+ * - BPS_19200(0x07) - 19200
104
+ * - BPS_57600(0x08) - 57600
105
+ * - BPS_115200(0x09) - 115200
106
+ * - BPS_38400(0x0A) - 38400
107
+ *
108
+ par - check
109
+ *
110
+ * - PAR_NOPAR('N')
111
+ * - PAR_EVEN('E')
112
+ * - PAR_ODD('O')
113
+ *
114
+ dbs - data bits
115
+ *
116
+ * - DBS_7(0x07) - 7
117
+ * - DBS_8(0x08) - 8
118
+ *
119
+ Output
120
+ None
121
+ Return
122
+ Return true when update successful, return false when update failed.
123
+ Remark
124
+ ```
125
+
126
+ ## close
127
+
128
+ Stop the serial port.
129
+
130
+ ```java
131
+ boolean close()
132
+ ```
133
+
134
+ - **类路径:** `com.urovo.smartpos.device.core.SerialPortDriverImpl`
135
+ - **源文档章节:** 5.2
136
+
137
+ - Source section: `5.2`
138
+
139
+ - Package/class path: `com.urovo.smartpos.device.core.SerialPortDriverImpl`
140
+
141
+
142
+
143
+ Purpose:
144
+ Stop the serial port.
145
+
146
+
147
+ Signature/prototype:
148
+ ```java
149
+ boolean close()
150
+ ```
151
+
152
+
153
+ Parameters:
154
+ Input
155
+ None
156
+ Output
157
+ None
158
+
159
+
160
+ Return value:
161
+ None
162
+
163
+
164
+ Usage notes:
165
+ Return true when update successful, return false when update failed.
166
+
167
+
168
+ Source details:
169
+ ```text
170
+ Prototype
171
+ boolean close()
172
+ Description
173
+ Stop the serial port.
174
+ Parameters
175
+ Input
176
+ None
177
+ Output
178
+ None
179
+ Return
180
+ None
181
+ Remark
182
+ Return true when update successful, return false when update failed.
183
+ ```
184
+
185
+ ## read
186
+
187
+ Read data from serial port.
188
+
189
+ ```java
190
+ int read(out byte[] buffer, int timeout)
191
+ ```
192
+
193
+ - **类路径:** `com.urovo.smartpos.device.core.SerialPortDriverImpl`
194
+ - **源文档章节:** 5.3
195
+
196
+ - Source section: `5.3`
197
+
198
+ - Package/class path: `com.urovo.smartpos.device.core.SerialPortDriverImpl`
199
+
200
+
201
+
202
+ Purpose:
203
+ Read data from serial port.
204
+
205
+
206
+ Signature/prototype:
207
+ ```java
208
+ int read(out byte[] buffer, int timeout)
209
+ ```
210
+
211
+
212
+ Parameters:
213
+ Input
214
+ timeout - tiem out(millisecond)
215
+ Output
216
+ buffer - read data buffer
217
+
218
+
219
+ Return value:
220
+ Return true when update successful, return false when update failed.
221
+
222
+
223
+ Source details:
224
+ ```text
225
+ Prototype
226
+ int read(out byte[] buffer, int timeout)
227
+ Description
228
+ Read data from serial port.
229
+ Parameters
230
+ Input
231
+ timeout - tiem out(millisecond)
232
+ Output
233
+ buffer - read data buffer
234
+ Return
235
+ Return true when update successful, return false when update failed.
236
+ Remark
237
+ ```
238
+
239
+ ## send
240
+
241
+ Send data to serial port.
242
+
243
+ ```java
244
+ int write(byte[] data, int timeout)
245
+ ```
246
+
247
+ - **类路径:** `com.urovo.smartpos.device.core.SerialPortDriverImpl`
248
+ - **源文档章节:** 5.4
249
+
250
+ - Source section: `5.4`
251
+
252
+ - Package/class path: `com.urovo.smartpos.device.core.SerialPortDriverImpl`
253
+
254
+
255
+
256
+ Purpose:
257
+ Send data to serial port.
258
+
259
+
260
+ Signature/prototype:
261
+ ```java
262
+ int write(byte[] data, int timeout)
263
+ ```
264
+
265
+
266
+ Parameters:
267
+ Input
268
+ data - data sent.
269
+ timeout - tiem out(millisecond)
270
+ Output
271
+ None
272
+
273
+
274
+ Return value:
275
+ None
276
+
277
+
278
+ Usage notes:
279
+ Return the number of bytes actually sent when sent successful, return -1 when sent failed.
280
+
281
+
282
+ Source details:
283
+ ```text
284
+ Prototype
285
+ int write(byte[] data, int timeout)
286
+ Description
287
+ Send data to serial port.
288
+ Parameters
289
+ Input
290
+ data - data sent.
291
+ timeout - tiem out(millisecond)
292
+ Output
293
+ None
294
+ Return
295
+ None
296
+ Remark
297
+ Return the number of bytes actually sent when sent successful, return -1 when sent failed.
298
+ ```
299
+
300
+ ## clearInputBuffer
301
+
302
+ Empty reveive buffer.
303
+
304
+ ```java
305
+ boolean clearInputBuffer()
306
+ ```
307
+
308
+ - **类路径:** `com.urovo.smartpos.device.core.SerialPortDriverImpl`
309
+ - **源文档章节:** 5.5
310
+
311
+ - Source section: `5.5`
312
+
313
+ - Package/class path: `com.urovo.smartpos.device.core.SerialPortDriverImpl`
314
+
315
+
316
+
317
+ Purpose:
318
+ Empty reveive buffer.
319
+
320
+
321
+ Signature/prototype:
322
+ ```java
323
+ boolean clearInputBuffer()
324
+ ```
325
+
326
+
327
+ Parameters:
328
+ Input
329
+ None
330
+ Output
331
+ None
332
+
333
+
334
+ Return value:
335
+ Return true when update successful, return false when update failed.
336
+
337
+
338
+ Source details:
339
+ ```text
340
+ Prototype
341
+ boolean clearInputBuffer()
342
+ Description
343
+ Empty reveive buffer.
344
+ Parameters
345
+ Input
346
+ None
347
+ Output
348
+ None
349
+ Return
350
+ Return true when update successful, return false when update failed.
351
+ Remark
352
+ ```
353
+
354
+ ## isbufferEmpty
355
+
356
+ Check that the buffer is empty.
357
+
358
+ ```java
359
+ boolean isBufferEmpty(boolean input)
360
+ ```
361
+
362
+ - **类路径:** `com.urovo.smartpos.device.core.SerialPortDriverImpl`
363
+ - **源文档章节:** 5.6
364
+
365
+ - Source section: `5.6`
366
+
367
+ - Package/class path: `com.urovo.smartpos.device.core.SerialPortDriverImpl`
368
+
369
+
370
+
371
+ Purpose:
372
+ Check that the buffer is empty.
373
+
374
+
375
+ Signature/prototype:
376
+ ```java
377
+ boolean isBufferEmpty(boolean input)
378
+ ```
379
+
380
+
381
+ Parameters:
382
+ Input
383
+ input - true(input buffer), false(output buff).
384
+ Output
385
+ None
386
+
387
+
388
+ Return value:
389
+ Return true when update successful, return false when update failed.
390
+
391
+
392
+ Source details:
393
+ ```text
394
+ Prototype
395
+ boolean isBufferEmpty(boolean input)
396
+ Description
397
+ Check that the buffer is empty.
398
+ Parameters
399
+ Input
400
+ input - true(input buffer), false(output buff).
401
+ Output
402
+ None
403
+ Return
404
+ Return true when update successful, return false when update failed.
405
+ Remark
406
+ ```
@@ -0,0 +1,326 @@
1
+ ---
2
+ title: Serial Port API
3
+ module: Serial Port
4
+ domain: general
5
+ tags: ["general", "serial-port", "serial port"]
6
+ ---
7
+ # Serial Port
8
+
9
+ 共 **4** 个 API/条目,来源 `general_sdk.md`。
10
+
11
+ ## API 索引
12
+
13
+ | 方法 | 类路径 | Demo Activity |
14
+ |------|--------|---------------|
15
+ | [setOnListener](#setonlistener) | `com.urovo.serial.utils.SerialPortTool` | - |
16
+ | [openSerialPort](#openserialport) | `com.urovo.serial.utils.SerialPortTool` | - |
17
+ | [close](#close) | `com.urovo.serial.utils.SerialPortTool` | - |
18
+ | [sendData](#senddata) | `com.urovo.serial.utils.SerialPortTool` | - |
19
+
20
+ ## setOnListener
21
+
22
+ set up data receiving listener.
23
+
24
+ ```java
25
+ void setOnListener(SerialPortListener listener)
26
+ ```
27
+
28
+ - **类路径:** `com.urovo.serial.utils.SerialPortTool`
29
+ - **源文档章节:** 14.1
30
+
31
+ - Source section: `14.1`
32
+
33
+ - Package/class path: `com.urovo.serial.utils.SerialPortTool`
34
+
35
+
36
+
37
+ Purpose:
38
+ set up data receiving listener.
39
+
40
+
41
+ Signature/prototype:
42
+ ```java
43
+ void setOnListener(SerialPortListener listener)
44
+ ```
45
+
46
+
47
+ Parameters:
48
+ Input
49
+ listener - tiem out(millisecond)
50
+ Output
51
+ None
52
+
53
+
54
+ Usage notes:
55
+ Data receiving listener interface definition:
56
+ interface SerialPortListener {
57
+ /**
58
+ * Received data successfully.
59
+ * @param data- response data.
60
+ */
61
+ void onReceive(byte[] data);
62
+
63
+ * Received data failed.
64
+ * @param code- error code.
65
+ * @param msg- error message.
66
+ */
67
+ void onFail(String code, String msg);
68
+ }
69
+
70
+
71
+ Source details:
72
+ ```text
73
+ Prototype
74
+ void setOnListener(SerialPortListener listener)
75
+ Description
76
+ set up data receiving listener.
77
+ Parameters
78
+ Input
79
+ listener - tiem out(millisecond)
80
+ Output
81
+ None
82
+ Return
83
+
84
+ Remark
85
+ Data receiving listener interface definition:
86
+ interface SerialPortListener {
87
+ /**
88
+ * Received data successfully.
89
+ * @param data- response data.
90
+ */
91
+ void onReceive(byte[] data);
92
+
93
+ * Received data failed.
94
+ * @param code- error code.
95
+ * @param msg- error message.
96
+ */
97
+ void onFail(String code, String msg);
98
+ }
99
+ ```
100
+
101
+ ## openSerialPort
102
+
103
+ Open the serial port.
104
+
105
+ ```java
106
+ int openSerialPort(List<String> pathNameList, int bps)
107
+ ```
108
+
109
+ - **类路径:** `com.urovo.serial.utils.SerialPortTool`
110
+ - **源文档章节:** 14.2
111
+
112
+ - Source section: `14.2`
113
+
114
+ - Package/class path: `com.urovo.serial.utils.SerialPortTool`
115
+
116
+
117
+
118
+ Purpose:
119
+ Open the serial port.
120
+
121
+
122
+ Signature/prototype:
123
+ ```java
124
+ int openSerialPort(List<String> pathNameList, int bps)
125
+ ```
126
+
127
+
128
+ Parameters:
129
+ Input
130
+ portPath - the serial port path.
131
+ bps - Baud rate
132
+ *
133
+ * - BPS_1200(0x01) - 1200
134
+ * - BPS_2400(0x02) - 2400
135
+ * - BPS_4800(0x03) - 4800
136
+ * - BPS_9600(0x04) - 9600
137
+ * - BPS_14400(0x05) - 14400
138
+ * - BPS_28800(0x06) - 28800
139
+ * - BPS_19200(0x07) - 19200
140
+ * - BPS_57600(0x08) - 57600
141
+ * - BPS_115200(0x09) - 115200
142
+ * - BPS_38400(0x0A) - 38400
143
+ *
144
+
145
+ bps - Baud rate
146
+ *
147
+ * - BPS_1200(0x01) - 1200
148
+ * - BPS_2400(0x02) - 2400
149
+ * - BPS_4800(0x03) - 4800
150
+ * - BPS_9600(0x04) - 9600
151
+ * - BPS_14400(0x05) - 14400
152
+ * - BPS_28800(0x06) - 28800
153
+ * - BPS_19200(0x07) - 19200
154
+ * - BPS_57600(0x08) - 57600
155
+ * - BPS_115200(0x09) - 115200
156
+ * - BPS_38400(0x0A) - 38400
157
+ *
158
+ Output
159
+ None
160
+
161
+
162
+ Return value:
163
+ 0:success, others:failed.
164
+
165
+
166
+ Usage notes:
167
+ Refer to the
168
+ com.urovo.serial.common.GlobalConstant..getErrorMessage(int errorCode).
169
+
170
+
171
+ Source details:
172
+ ```text
173
+ Prototype
174
+ int openSerialPort(List<String> pathNameList, int bps)
175
+ Description
176
+ Open the serial port.
177
+ Parameters
178
+ Input
179
+ portPath - the serial port path.
180
+ bps - Baud rate
181
+ *
182
+ * - BPS_1200(0x01) - 1200
183
+ * - BPS_2400(0x02) - 2400
184
+ * - BPS_4800(0x03) - 4800
185
+ * - BPS_9600(0x04) - 9600
186
+ * - BPS_14400(0x05) - 14400
187
+ * - BPS_28800(0x06) - 28800
188
+ * - BPS_19200(0x07) - 19200
189
+ * - BPS_57600(0x08) - 57600
190
+ * - BPS_115200(0x09) - 115200
191
+ * - BPS_38400(0x0A) - 38400
192
+ *
193
+
194
+ bps - Baud rate
195
+ *
196
+ * - BPS_1200(0x01) - 1200
197
+ * - BPS_2400(0x02) - 2400
198
+ * - BPS_4800(0x03) - 4800
199
+ * - BPS_9600(0x04) - 9600
200
+ * - BPS_14400(0x05) - 14400
201
+ * - BPS_28800(0x06) - 28800
202
+ * - BPS_19200(0x07) - 19200
203
+ * - BPS_57600(0x08) - 57600
204
+ * - BPS_115200(0x09) - 115200
205
+ * - BPS_38400(0x0A) - 38400
206
+ *
207
+ Output
208
+ None
209
+ Return
210
+ 0:success, others:failed.
211
+ Remark
212
+ Refer to the
213
+ com.urovo.serial.common.GlobalConstant..getErrorMessage(int errorCode).
214
+ ```
215
+
216
+ ## close
217
+
218
+ Stop the serila port.
219
+
220
+ ```java
221
+ boolean close()
222
+ ```
223
+
224
+ - **类路径:** `com.urovo.serial.utils.SerialPortTool`
225
+ - **源文档章节:** 14.3
226
+
227
+ - Source section: `14.3`
228
+
229
+ - Package/class path: `com.urovo.serial.utils.SerialPortTool`
230
+
231
+
232
+
233
+ Purpose:
234
+ Stop the serila port.
235
+
236
+
237
+ Signature/prototype:
238
+ ```java
239
+ boolean close()
240
+ ```
241
+
242
+
243
+ Parameters:
244
+ Input
245
+ None
246
+ Output
247
+ None
248
+
249
+
250
+ Return value:
251
+ None
252
+
253
+
254
+ Source details:
255
+ ```text
256
+ Prototype
257
+ boolean close()
258
+ Description
259
+ Stop the serila port.
260
+ Parameters
261
+ Input
262
+ None
263
+ Output
264
+ None
265
+ Return
266
+ None
267
+ Remark
268
+ ```
269
+
270
+ ## sendData
271
+
272
+ Send data to serial port.
273
+
274
+ ```java
275
+ String sendData(byte[] SendBuff, int len)
276
+ ```
277
+
278
+ - **类路径:** `com.urovo.serial.utils.SerialPortTool`
279
+ - **源文档章节:** 14.4
280
+
281
+ - Source section: `14.4`
282
+
283
+ - Package/class path: `com.urovo.serial.utils.SerialPortTool`
284
+
285
+
286
+
287
+ Purpose:
288
+ Send data to serial port.
289
+
290
+
291
+ Signature/prototype:
292
+ ```java
293
+ String sendData(byte[] SendBuff, int len)
294
+ ```
295
+
296
+
297
+ Parameters:
298
+ Input
299
+ data - data.
300
+
301
+ len- data length.
302
+ Output
303
+ None
304
+
305
+
306
+ Return value:
307
+ null - success, others - failed.
308
+
309
+
310
+ Source details:
311
+ ```text
312
+ Prototype
313
+ String sendData(byte[] SendBuff, int len)
314
+ Description
315
+ Send data to serial port.
316
+ Parameters
317
+ Input
318
+ data - data.
319
+
320
+ len- data length.
321
+ Output
322
+ None
323
+ Return
324
+ null - success, others - failed.
325
+ Remark
326
+ ```