@onekeyfe/hd-transport 1.2.8-alpha.113 → 1.2.8-alpha.115
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.
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/package.json +2 -2
- package/src/constants.ts +3 -1
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,KAAO,CAAC;AAG1C,eAAO,MAAM,uBAAuB,KAAO,CAAC;AAG5C,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAGjD,eAAO,MAAM,2BAA2B,QAAqC,CAAC;AAG9E,eAAO,MAAM,+BAA+B,QAAQ,CAAC;AAGrD,eAAO,MAAM,gCAAgC,QAA0C,CAAC;AAKxF,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAGhD,eAAO,MAAM,kCAAkC,OAAO,CAAC;AAGvD,eAAO,MAAM,+BAA+B,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,KAAO,CAAC;AAG1C,eAAO,MAAM,uBAAuB,KAAO,CAAC;AAG5C,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAGjD,eAAO,MAAM,2BAA2B,QAAqC,CAAC;AAG9E,eAAO,MAAM,+BAA+B,QAAQ,CAAC;AAGrD,eAAO,MAAM,gCAAgC,QAA0C,CAAC;AAKxF,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAGhD,eAAO,MAAM,kCAAkC,OAAO,CAAC;AAGvD,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAOpD,eAAO,MAAM,wCAAwC,OAAO,CAAC;AAG7D,eAAO,MAAM,oCAAoC,MAAM,CAAC;AAGxD,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAQpD,eAAO,MAAM,sCAAsC,IAAI,CAAC;AAGxD,eAAO,MAAM,2BAA2B,OAAqC,CAAC;AAM9E,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAG5C,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAQhD,eAAO,MAAM,uCAAuC,QAAgB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7020,8 +7020,9 @@ declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
|
|
|
7020
7020
|
/** Generic FilesystemFileWrite chunk size over BLE, including support for long filesystem paths. */
|
|
7021
7021
|
declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
7022
7022
|
/**
|
|
7023
|
-
* FirmwareUpdateV4 chunk size for its fixed BLE staging paths.
|
|
7023
|
+
* FirmwareUpdateV4 chunk size for its fixed BLE staging paths when writes are serial.
|
|
7024
7024
|
* The longest current path still leaves 28 bytes below the 2048-byte BLE frame limit.
|
|
7025
|
+
* Pipelined writes use PROTOCOL_V2_BLE_FILE_CHUNK_SIZE so two frames fit the UART FIFO.
|
|
7025
7026
|
*/
|
|
7026
7027
|
declare const PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE = 1960;
|
|
7027
7028
|
/** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
|
|
@@ -7032,6 +7033,7 @@ declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
|
|
|
7032
7033
|
* FilesystemFileWrite frames kept in flight by a file write pipeline. The main MCU copies a
|
|
7033
7034
|
* complete frame out of its UART FIFO before handling it, but a frame waiting to be parsed and
|
|
7034
7035
|
* the next one being received can both be resident: two full frames must fit (4096-byte FIFO).
|
|
7036
|
+
* With 1800-byte chunks two frames take about 3.75 KB.
|
|
7035
7037
|
*/
|
|
7036
7038
|
declare const PROTOCOL_V2_FILE_WRITE_PIPELINE_WINDOW = 2;
|
|
7037
7039
|
/** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport",
|
|
3
|
-
"version": "1.2.8-alpha.
|
|
3
|
+
"version": "1.2.8-alpha.115",
|
|
4
4
|
"description": "Transport layer abstractions and utilities for OneKey hardware SDK.",
|
|
5
5
|
"author": "OneKey",
|
|
6
6
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"long": "^4.0.0",
|
|
29
29
|
"protobufjs": "^6.11.2"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "4f30138a51d564cd664fa9886f30229bebe469a5"
|
|
32
32
|
}
|
package/src/constants.ts
CHANGED
|
@@ -30,8 +30,9 @@ export const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
|
|
|
30
30
|
export const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* FirmwareUpdateV4 chunk size for its fixed BLE staging paths.
|
|
33
|
+
* FirmwareUpdateV4 chunk size for its fixed BLE staging paths when writes are serial.
|
|
34
34
|
* The longest current path still leaves 28 bytes below the 2048-byte BLE frame limit.
|
|
35
|
+
* Pipelined writes use PROTOCOL_V2_BLE_FILE_CHUNK_SIZE so two frames fit the UART FIFO.
|
|
35
36
|
*/
|
|
36
37
|
export const PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE = 1960;
|
|
37
38
|
|
|
@@ -45,6 +46,7 @@ export const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
|
|
|
45
46
|
* FilesystemFileWrite frames kept in flight by a file write pipeline. The main MCU copies a
|
|
46
47
|
* complete frame out of its UART FIFO before handling it, but a frame waiting to be parsed and
|
|
47
48
|
* the next one being received can both be resident: two full frames must fit (4096-byte FIFO).
|
|
49
|
+
* With 1800-byte chunks two frames take about 3.75 KB.
|
|
48
50
|
*/
|
|
49
51
|
export const PROTOCOL_V2_FILE_WRITE_PIPELINE_WINDOW = 2;
|
|
50
52
|
|