@springfield/ham-radio-utils 4.8.0 → 4.9.0
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.
|
@@ -124,6 +124,14 @@
|
|
|
124
124
|
"rtscts": {
|
|
125
125
|
"type": "boolean",
|
|
126
126
|
"description": "Hardware RTS/CTS flow control (Kenwood TH-D74 clone on macOS)"
|
|
127
|
+
},
|
|
128
|
+
"rts": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"description": "RTS line after open. TH-F6 live CAT needs false"
|
|
131
|
+
},
|
|
132
|
+
"dtr": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"description": "DTR line after open"
|
|
127
135
|
}
|
|
128
136
|
}
|
|
129
137
|
},
|
|
@@ -198,7 +206,7 @@
|
|
|
198
206
|
},
|
|
199
207
|
"definitions": {
|
|
200
208
|
"protocolStep": {
|
|
201
|
-
"description": "A single protocol step: an exchange, a chunked read, or a
|
|
209
|
+
"description": "A single protocol step: an exchange, a chunked read, a chunked write, or a live CAT memory loop",
|
|
202
210
|
"oneOf": [
|
|
203
211
|
{
|
|
204
212
|
"$ref": "#/definitions/readStep"
|
|
@@ -206,6 +214,12 @@
|
|
|
206
214
|
{
|
|
207
215
|
"$ref": "#/definitions/writeStep"
|
|
208
216
|
},
|
|
217
|
+
{
|
|
218
|
+
"$ref": "#/definitions/catReadStep"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"$ref": "#/definitions/catWriteStep"
|
|
222
|
+
},
|
|
209
223
|
{
|
|
210
224
|
"$ref": "#/definitions/exchangeStep"
|
|
211
225
|
}
|
|
@@ -258,9 +272,112 @@
|
|
|
258
272
|
"minimum": 1
|
|
259
273
|
}
|
|
260
274
|
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "object",
|
|
278
|
+
"required": [
|
|
279
|
+
"until"
|
|
280
|
+
],
|
|
281
|
+
"additionalProperties": false,
|
|
282
|
+
"properties": {
|
|
283
|
+
"until": {
|
|
284
|
+
"$ref": "#/definitions/byteToken",
|
|
285
|
+
"description": "Read until this delimiter byte; the delimiter is not included (Kenwood CAT CR)"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
261
288
|
}
|
|
262
289
|
]
|
|
263
290
|
},
|
|
291
|
+
"catMemory": {
|
|
292
|
+
"type": "object",
|
|
293
|
+
"description": "Live CAT memory loop over logical channel records",
|
|
294
|
+
"required": [
|
|
295
|
+
"segment",
|
|
296
|
+
"count",
|
|
297
|
+
"recordSize",
|
|
298
|
+
"pack"
|
|
299
|
+
],
|
|
300
|
+
"additionalProperties": false,
|
|
301
|
+
"properties": {
|
|
302
|
+
"segment": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"description": "Memory segment that receives packed records"
|
|
305
|
+
},
|
|
306
|
+
"count": {
|
|
307
|
+
"type": "integer",
|
|
308
|
+
"description": "Number of channel indexes to scan",
|
|
309
|
+
"minimum": 1
|
|
310
|
+
},
|
|
311
|
+
"recordSize": {
|
|
312
|
+
"type": "integer",
|
|
313
|
+
"description": "Packed logical record size in bytes",
|
|
314
|
+
"minimum": 1
|
|
315
|
+
},
|
|
316
|
+
"pack": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"description": "CAT reply packer",
|
|
319
|
+
"enum": [
|
|
320
|
+
"kenwood-th-f6"
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
"indexWidth": {
|
|
324
|
+
"type": "integer",
|
|
325
|
+
"description": "Zero-padded decimal width of the memory index (TH-F6 uses 3)",
|
|
326
|
+
"minimum": 1,
|
|
327
|
+
"maximum": 6,
|
|
328
|
+
"default": 3
|
|
329
|
+
},
|
|
330
|
+
"emptyByte": {
|
|
331
|
+
"type": "integer",
|
|
332
|
+
"description": "Fill byte for empty memories",
|
|
333
|
+
"minimum": 0,
|
|
334
|
+
"maximum": 255,
|
|
335
|
+
"default": 255
|
|
336
|
+
},
|
|
337
|
+
"timeout": {
|
|
338
|
+
"type": "integer",
|
|
339
|
+
"description": "Timeout in milliseconds for each CAT line",
|
|
340
|
+
"minimum": 1
|
|
341
|
+
},
|
|
342
|
+
"interCommandDelayMs": {
|
|
343
|
+
"type": "integer",
|
|
344
|
+
"description": "Milliseconds to wait between CAT commands",
|
|
345
|
+
"minimum": 0
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"catReadStep": {
|
|
350
|
+
"type": "object",
|
|
351
|
+
"description": "Read memories with live CAT commands",
|
|
352
|
+
"required": [
|
|
353
|
+
"catRead"
|
|
354
|
+
],
|
|
355
|
+
"additionalProperties": false,
|
|
356
|
+
"properties": {
|
|
357
|
+
"description": {
|
|
358
|
+
"type": "string"
|
|
359
|
+
},
|
|
360
|
+
"catRead": {
|
|
361
|
+
"$ref": "#/definitions/catMemory"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"catWriteStep": {
|
|
366
|
+
"type": "object",
|
|
367
|
+
"description": "Write memories with live CAT commands",
|
|
368
|
+
"required": [
|
|
369
|
+
"catWrite"
|
|
370
|
+
],
|
|
371
|
+
"additionalProperties": false,
|
|
372
|
+
"properties": {
|
|
373
|
+
"description": {
|
|
374
|
+
"type": "string"
|
|
375
|
+
},
|
|
376
|
+
"catWrite": {
|
|
377
|
+
"$ref": "#/definitions/catMemory"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
264
381
|
"exchangeStep": {
|
|
265
382
|
"type": "object",
|
|
266
383
|
"description": "Send bytes and/or wait for a reply",
|
|
@@ -299,6 +416,11 @@
|
|
|
299
416
|
"minimum": 1,
|
|
300
417
|
"default": 5000
|
|
301
418
|
},
|
|
419
|
+
"delay": {
|
|
420
|
+
"type": "integer",
|
|
421
|
+
"description": "Milliseconds to wait after send",
|
|
422
|
+
"minimum": 0
|
|
423
|
+
},
|
|
302
424
|
"setBaudRate": {
|
|
303
425
|
"type": "integer",
|
|
304
426
|
"description": "Switch serial baud rate before send/expect (TH-D74 clone transfers at 57600)",
|
package/package.json
CHANGED
|
@@ -124,6 +124,14 @@
|
|
|
124
124
|
"rtscts": {
|
|
125
125
|
"type": "boolean",
|
|
126
126
|
"description": "Hardware RTS/CTS flow control (Kenwood TH-D74 clone on macOS)"
|
|
127
|
+
},
|
|
128
|
+
"rts": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"description": "RTS line after open. TH-F6 live CAT needs false"
|
|
131
|
+
},
|
|
132
|
+
"dtr": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"description": "DTR line after open"
|
|
127
135
|
}
|
|
128
136
|
}
|
|
129
137
|
},
|
|
@@ -198,7 +206,7 @@
|
|
|
198
206
|
},
|
|
199
207
|
"definitions": {
|
|
200
208
|
"protocolStep": {
|
|
201
|
-
"description": "A single protocol step: an exchange, a chunked read, or a
|
|
209
|
+
"description": "A single protocol step: an exchange, a chunked read, a chunked write, or a live CAT memory loop",
|
|
202
210
|
"oneOf": [
|
|
203
211
|
{
|
|
204
212
|
"$ref": "#/definitions/readStep"
|
|
@@ -206,6 +214,12 @@
|
|
|
206
214
|
{
|
|
207
215
|
"$ref": "#/definitions/writeStep"
|
|
208
216
|
},
|
|
217
|
+
{
|
|
218
|
+
"$ref": "#/definitions/catReadStep"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"$ref": "#/definitions/catWriteStep"
|
|
222
|
+
},
|
|
209
223
|
{
|
|
210
224
|
"$ref": "#/definitions/exchangeStep"
|
|
211
225
|
}
|
|
@@ -258,9 +272,112 @@
|
|
|
258
272
|
"minimum": 1
|
|
259
273
|
}
|
|
260
274
|
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "object",
|
|
278
|
+
"required": [
|
|
279
|
+
"until"
|
|
280
|
+
],
|
|
281
|
+
"additionalProperties": false,
|
|
282
|
+
"properties": {
|
|
283
|
+
"until": {
|
|
284
|
+
"$ref": "#/definitions/byteToken",
|
|
285
|
+
"description": "Read until this delimiter byte; the delimiter is not included (Kenwood CAT CR)"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
261
288
|
}
|
|
262
289
|
]
|
|
263
290
|
},
|
|
291
|
+
"catMemory": {
|
|
292
|
+
"type": "object",
|
|
293
|
+
"description": "Live CAT memory loop over logical channel records",
|
|
294
|
+
"required": [
|
|
295
|
+
"segment",
|
|
296
|
+
"count",
|
|
297
|
+
"recordSize",
|
|
298
|
+
"pack"
|
|
299
|
+
],
|
|
300
|
+
"additionalProperties": false,
|
|
301
|
+
"properties": {
|
|
302
|
+
"segment": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"description": "Memory segment that receives packed records"
|
|
305
|
+
},
|
|
306
|
+
"count": {
|
|
307
|
+
"type": "integer",
|
|
308
|
+
"description": "Number of channel indexes to scan",
|
|
309
|
+
"minimum": 1
|
|
310
|
+
},
|
|
311
|
+
"recordSize": {
|
|
312
|
+
"type": "integer",
|
|
313
|
+
"description": "Packed logical record size in bytes",
|
|
314
|
+
"minimum": 1
|
|
315
|
+
},
|
|
316
|
+
"pack": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"description": "CAT reply packer",
|
|
319
|
+
"enum": [
|
|
320
|
+
"kenwood-th-f6"
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
"indexWidth": {
|
|
324
|
+
"type": "integer",
|
|
325
|
+
"description": "Zero-padded decimal width of the memory index (TH-F6 uses 3)",
|
|
326
|
+
"minimum": 1,
|
|
327
|
+
"maximum": 6,
|
|
328
|
+
"default": 3
|
|
329
|
+
},
|
|
330
|
+
"emptyByte": {
|
|
331
|
+
"type": "integer",
|
|
332
|
+
"description": "Fill byte for empty memories",
|
|
333
|
+
"minimum": 0,
|
|
334
|
+
"maximum": 255,
|
|
335
|
+
"default": 255
|
|
336
|
+
},
|
|
337
|
+
"timeout": {
|
|
338
|
+
"type": "integer",
|
|
339
|
+
"description": "Timeout in milliseconds for each CAT line",
|
|
340
|
+
"minimum": 1
|
|
341
|
+
},
|
|
342
|
+
"interCommandDelayMs": {
|
|
343
|
+
"type": "integer",
|
|
344
|
+
"description": "Milliseconds to wait between CAT commands",
|
|
345
|
+
"minimum": 0
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"catReadStep": {
|
|
350
|
+
"type": "object",
|
|
351
|
+
"description": "Read memories with live CAT commands",
|
|
352
|
+
"required": [
|
|
353
|
+
"catRead"
|
|
354
|
+
],
|
|
355
|
+
"additionalProperties": false,
|
|
356
|
+
"properties": {
|
|
357
|
+
"description": {
|
|
358
|
+
"type": "string"
|
|
359
|
+
},
|
|
360
|
+
"catRead": {
|
|
361
|
+
"$ref": "#/definitions/catMemory"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"catWriteStep": {
|
|
366
|
+
"type": "object",
|
|
367
|
+
"description": "Write memories with live CAT commands",
|
|
368
|
+
"required": [
|
|
369
|
+
"catWrite"
|
|
370
|
+
],
|
|
371
|
+
"additionalProperties": false,
|
|
372
|
+
"properties": {
|
|
373
|
+
"description": {
|
|
374
|
+
"type": "string"
|
|
375
|
+
},
|
|
376
|
+
"catWrite": {
|
|
377
|
+
"$ref": "#/definitions/catMemory"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
264
381
|
"exchangeStep": {
|
|
265
382
|
"type": "object",
|
|
266
383
|
"description": "Send bytes and/or wait for a reply",
|
|
@@ -299,6 +416,11 @@
|
|
|
299
416
|
"minimum": 1,
|
|
300
417
|
"default": 5000
|
|
301
418
|
},
|
|
419
|
+
"delay": {
|
|
420
|
+
"type": "integer",
|
|
421
|
+
"description": "Milliseconds to wait after send",
|
|
422
|
+
"minimum": 0
|
|
423
|
+
},
|
|
302
424
|
"setBaudRate": {
|
|
303
425
|
"type": "integer",
|
|
304
426
|
"description": "Switch serial baud rate before send/expect (TH-D74 clone transfers at 57600)",
|