@onekeyfe/hd-transport-react-native 1.2.0-alpha.14 → 1.2.0-alpha.140

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.
@@ -3,16 +3,14 @@ export default class BleTransport {
3
3
  id: string;
4
4
  name: string;
5
5
  device: Device;
6
- mtuSize: number;
6
+ mtuSize: number | undefined;
7
7
  writeCharacteristic: Characteristic;
8
8
  notifyCharacteristic: Characteristic;
9
9
  notifySubscription?: Subscription;
10
10
  disconnectSubscription?: Subscription;
11
11
  notifyTransactionId?: string;
12
12
  monitorToken?: number;
13
- static MAX_RETRIES: number;
14
- static RETRY_DELAY: number;
15
13
  constructor(device: Device, writeCharacteristic: Characteristic, notifyCharacteristic: Characteristic);
16
- writeWithRetry(data: string, retryCount?: number): Promise<void>;
14
+ writeWithRetry(data: string): Promise<void>;
17
15
  }
18
16
  //# sourceMappingURL=BleTransport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BleTransport.d.ts","sourceRoot":"","sources":["../src/BleTransport.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAIjF,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,SAA6B;IAEjC,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,SAAM;IAEb,mBAAmB,EAAE,cAAc,CAAC;IAEpC,oBAAoB,EAAE,cAAc,CAAC;IAErC,kBAAkB,CAAC,EAAE,YAAY,CAAC;IAElC,sBAAsB,CAAC,EAAE,YAAY,CAAC;IAEtC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,WAAW,SAAK;IAEvB,MAAM,CAAC,WAAW,SAAQ;gBAGxB,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,cAAc,EACnC,oBAAoB,EAAE,cAAc;IAchC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,SAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;CA2BzF"}
1
+ {"version":3,"file":"BleTransport.d.ts","sourceRoot":"","sources":["../src/BleTransport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,SAA6B;IAEjC,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5B,mBAAmB,EAAE,cAAc,CAAC;IAEpC,oBAAoB,EAAE,cAAc,CAAC;IAErC,kBAAkB,CAAC,EAAE,YAAY,CAAC;IAElC,sBAAsB,CAAC,EAAE,YAAY,CAAC;IAEtC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,YAAY,CAAC,EAAE,MAAM,CAAC;gBAGpB,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,cAAc,EACnC,oBAAoB,EAAE,cAAc;IAiBhC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlD"}
@@ -10,4 +10,11 @@ export declare function resolveProtocolV2PacketCapacity({ platform, iosPacketLen
10
10
  androidPacketLength?: number;
11
11
  mtu?: number | null;
12
12
  }): number;
13
+ export declare function shouldRefreshNegotiatedMtu(mtu?: number | null): boolean;
14
+ export declare function shouldWriteProtocolV2WithResponse({ platform, highThroughput, requestedWithResponse, characteristic, }: {
15
+ platform: BlePlatform;
16
+ highThroughput: boolean;
17
+ requestedWithResponse?: boolean;
18
+ characteristic: BleWriteCapability;
19
+ }): boolean;
13
20
  //# sourceMappingURL=bleStrategy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bleStrategy.d.ts","sourceRoot":"","sources":["../src/bleStr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;AAED,wBAAgB,iCAAiC,CAAC,EAChD,QAAQ,EACR,cAAc,EACd,qBAAqB,EACrB,cAAc,GACf,EAAE;IACD,QAAQ,EAAE,WAAW,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,cAAc,EAAE,kBAAkB,CAAC;CACpC,WAIA"}
@@ -1,6 +1,7 @@
1
1
  export declare const IOS_PACKET_LENGTH = 128;
2
2
  export declare const ANDROID_PACKET_LENGTH = 192;
3
- export declare const ANDROID_DEFAULT_MTU = 23;
3
+ export declare const IOS_PROTOCOL_V2_PACKET_LENGTH = 244;
4
+ export declare const ANDROID_PROTOCOL_V2_PACKET_LENGTH = 244;
4
5
  export declare const getBluetoothServiceUuids: () => string[];
5
6
  export declare const getInfosForServiceUuid: (serviceUuid: string, deviceType: 'classic') => {
6
7
  serviceUuid: string;
@@ -8,6 +9,5 @@ export declare const getInfosForServiceUuid: (serviceUuid: string, deviceType: '
8
9
  notifyUuid?: string | undefined;
9
10
  } | null;
10
11
  export declare const normalizeBleUuid: (uuid?: string | null) => string;
11
- export declare const getBleUuidKey: (uuid?: string | null) => string;
12
12
  export declare const isSameBleUuid: (left?: string | null, right?: string | null) => boolean;
13
13
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AA8BtC,eAAO,MAAM,wBAAwB,gBAA0B,CAAC;AAChE,eAAO,MAAM,sBAAsB,gBAAiB,MAAM,cAAc,SAAS;iBA1BhE,MAAM;;;QAyCtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,MAAM,GAAG,IAAI,WACP,CAAC;AAE/C,eAAO,MAAM,aAAa,UAAW,MAAM,GAAG,IAAI,WAGjD,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,MAAM,GAAG,IAAI,UAAU,MAAM,GAAG,IAAI,YAQxE,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,iCAAiC,MAAM,CAAC;AA8BrD,eAAO,MAAM,wBAAwB,gBAA0B,CAAC;AAChE,eAAO,MAAM,sBAAsB,gBAAiB,MAAM,cAAc,SAAS;iBA1BhE,MAAM;;;QA2CtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,MAAM,GAAG,IAAI,WACP,CAAC;AAE/C,eAAO,MAAM,aAAa,UAAW,MAAM,GAAG,IAAI,UAAU,MAAM,GAAG,IAAI,YAGxE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -8,17 +8,24 @@ declare class BleTransport {
8
8
  id: string;
9
9
  name: string;
10
10
  device: Device;
11
- mtuSize: number;
11
+ mtuSize: number | undefined;
12
12
  writeCharacteristic: Characteristic;
13
13
  notifyCharacteristic: Characteristic;
14
14
  notifySubscription?: Subscription;
15
15
  disconnectSubscription?: Subscription;
16
16
  notifyTransactionId?: string;
17
17
  monitorToken?: number;
18
- static MAX_RETRIES: number;
19
- static RETRY_DELAY: number;
20
18
  constructor(device: Device, writeCharacteristic: Characteristic, notifyCharacteristic: Characteristic);
21
- writeWithRetry(data: string, retryCount?: number): Promise<void>;
19
+ /**
20
+ * Bulk-transfer write (Protocol V1 FirmwareUpload / EmmcFileWrite only).
21
+ *
22
+ * Must stay writeWithoutResponse on every platform. writeWithResponse serialises
23
+ * each packet into its own connection-interval round trip, which on iOS turned a
24
+ * 1.7MB firmware upload (~13.5k packets) into a >10 minute transfer that never
25
+ * finished before the app-level timeout. Protocol V2 and ordinary V1 control
26
+ * messages pick their write type separately and are unaffected by this method.
27
+ */
28
+ writeWithRetry(data: string): Promise<void>;
22
29
  }
23
30
 
24
31
  type TransportOptions = {
@@ -28,12 +35,27 @@ type BleAcquireInput = {
28
35
  uuid: string;
29
36
  forceCleanRunPromise?: boolean;
30
37
  expectedProtocol?: ProtocolType;
38
+ protocolHint?: ProtocolType;
31
39
  };
32
40
 
41
+ type FirmwareUploadWriteRetryType = 'congested';
33
42
  type ResolvedBleCharacteristics = {
34
43
  writeCharacteristic: Characteristic;
35
44
  notifyCharacteristic: Characteristic;
36
45
  };
46
+ declare const getFirmwareUploadWriteRetryType: (error: unknown) => FirmwareUploadWriteRetryType | null;
47
+ /**
48
+ * Per-packet write budget. iOS only resolves writeWithoutResponse once CoreBluetooth
49
+ * reports the peripheral ready again; a peripheral wedged by its own firmware reboot
50
+ * stops reporting ready while staying connected, so the write promise never settles.
51
+ * Response timeouts cannot cover that — they are armed after the writes complete —
52
+ * and an unbounded write leaves the whole transport unusable until the process dies.
53
+ * A healthy packet completes in milliseconds, so this only fires on a dead link.
54
+ */
55
+ declare const BLE_WRITE_PACKET_TIMEOUT_MS = 10000;
56
+ declare const BLE_NATIVE_TEARDOWN_TIMEOUT_MS = 3000;
57
+ /** Consecutive wedged writes on one device before the BLE manager itself is recreated. */
58
+ declare const BLE_WRITE_TIMEOUT_MANAGER_RESET_THRESHOLD = 2;
37
59
  type ProtocolV2BleTuning = {
38
60
  iosPacketLength?: number;
39
61
  androidPacketLength?: number;
@@ -44,26 +66,75 @@ declare function getProtocolV2BleTuning(): {
44
66
  iosPacketLength: number;
45
67
  androidPacketLength: number;
46
68
  };
69
+ /**
70
+ * JS backstop for connect. The native adapter applies its own 3s budget, but it
71
+ * schedules that timeout on its serial queue, so a busy queue (e.g. right after a
72
+ * firmware install tears the link down) can leave the promise unsettled — observed
73
+ * blocking a reconnect for 61s until the app-level timeout. Healthy connects finish
74
+ * inside the native budget, so this only fires when the native timeout did not.
75
+ */
76
+ declare const BLE_CONNECT_TIMEOUT_MS: number;
77
+ /**
78
+ * Service discovery and characteristic resolution run after connect() succeeds, but
79
+ * CoreBluetooth schedules them on the same serial queue. If that queue is wedged by a
80
+ * device reboot, these calls can remain pending forever unless they have their own
81
+ * budget.
82
+ */
83
+ declare const BLE_GATT_SETUP_TIMEOUT_MS = 10000;
84
+ /**
85
+ * How many times a known device may fail its own protocol before we probe the others
86
+ * again. Reconnect polling during a device reboot repeats this every few seconds, and
87
+ * probing Protocol V2 costs a 10s Ping timeout, so paying it on every attempt for a
88
+ * device we just spoke V1 to dominates the wait. A firmware update can legitimately
89
+ * change a device's protocol, so the shortcut has to expire rather than stick.
90
+ */
91
+ declare const PROTOCOL_REPROBE_FALLBACK_ATTEMPTS = 3;
92
+ /** BLE setup timeouts since the last successful setup before the manager is recreated. */
93
+ declare const BLE_CONNECT_TIMEOUT_MANAGER_RESET_THRESHOLD = 2;
47
94
  type IOneKeyDevice = OneKeyDeviceInfoBase & Device;
48
95
  declare class ReactNativeBleTransport {
49
96
  blePlxManager: BleManager | undefined;
50
97
  _messages: ReturnType<typeof transport__default.parseConfigure> | undefined;
51
98
  _messagesV2: ReturnType<typeof transport__default.parseConfigure> | undefined;
99
+ private protocolV2SchemaConfiguration;
52
100
  name: string;
53
101
  configured: boolean;
54
102
  stopped: boolean;
55
103
  scanTimeout: number;
56
104
  runPromise: Deferred<any> | null;
105
+ private runPromiseDeviceId;
57
106
  emitter?: EventEmitter;
58
107
  firmwareUploadWriteRecoveryIds: Set<string>;
108
+ /** Per-device protocol type detected by active wire-level probe after connect. */
59
109
  private deviceProtocol;
110
+ /**
111
+ * Protocol a probe is currently trying, before the device has confirmed it. Calls
112
+ * must route with it, but acquire() must not treat it as a detected protocol: a
113
+ * probe that never answers would otherwise leave the reuse fast path handing out a
114
+ * transport that was never validated.
115
+ */
116
+ private probingProtocols;
117
+ /** Consecutive write timeouts per device; reset by any write that completes. */
118
+ private writeTimeoutCounts;
119
+ /** BLE setup timeouts per device since the last complete characteristic resolution. */
120
+ private connectionSetupTimeoutCounts;
60
121
  private deviceProtocolHints;
122
+ /** Protocol this device actually answered on, kept across reconnects of one session. */
123
+ private sessionProtocols;
124
+ /** Consecutive detections that failed while trusting sessionProtocols. */
125
+ private protocolReprobeFailures;
61
126
  private protocolV2Assemblers;
62
127
  private protocolV2FrameQueues;
63
128
  private protocolV2FramePromises;
64
129
  private protocolV2Links;
65
130
  private monitorTokens;
131
+ private disconnectEventTokens;
132
+ private protocolV2HighVolumeLogSignatures;
133
+ private androidHighPriorityDevices;
134
+ private androidPriorityResetTimers;
66
135
  private nextMonitorToken;
136
+ /** Serializes transport lifecycle changes for the same physical device. */
137
+ private lifecycleOperations;
67
138
  constructor(options: TransportOptions);
68
139
  init(logger: any, emitter: EventEmitter): void;
69
140
  configure(signedData: any): void;
@@ -72,24 +143,65 @@ declare class ReactNativeBleTransport {
72
143
  getPlxManager(): Promise<BleManager>;
73
144
  resolveCharacteristics(device: Device): Promise<ResolvedBleCharacteristics>;
74
145
  attachDisconnectSubscription(transport: BleTransport, device: Device, uuid: string): void;
146
+ private emitDeviceDisconnect;
75
147
  reconnectFirmwareUploadTransport(uuid: string, transport: BleTransport): Promise<void>;
148
+ /**
149
+ * 获取设备列表
150
+ * 在搜索超过超时时间或设备数量大于 5 台时,返回 OneKey 设备,
151
+ * @returns
152
+ */
76
153
  enumerate(): Promise<IOneKeyDevice[]>;
154
+ private installTransportForAcquire;
77
155
  acquire(input: BleAcquireInput): Promise<{
78
156
  uuid: string;
79
157
  protocolType: ProtocolType;
80
158
  }>;
159
+ private acquireUnlocked;
81
160
  _monitorCharacteristic(characteristic: Characteristic, uuid: string, monitorToken: number, notifyTransactionId: string): Subscription;
82
161
  release(uuid: string, onclose?: boolean): Promise<boolean>;
162
+ private releaseUnlocked;
163
+ private releaseNative;
83
164
  post(session: string, name: string, data: Record<string, unknown>): Promise<void>;
84
165
  call(uuid: string, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<transport.MessageFromOneKey>;
85
166
  private callProtocolV1;
86
167
  stop(): void;
87
168
  disconnect(session: string): Promise<void>;
169
+ private disconnectUnlocked;
170
+ private runNativeTeardown;
171
+ private runBestEffortNativeOperation;
172
+ private runLifecycleOperation;
88
173
  cancel(): void;
174
+ /** Run a native connect under the JS backstop budget. */
175
+ private connectWithTimeout;
176
+ /** Resolve the complete GATT shape under a budget so acquire() always settles. */
177
+ private resolveCharacteristicsWithTimeout;
178
+ /**
179
+ * Give up on a BLE setup operation the native layer did not settle. The abandoned
180
+ * operation still owns native connection/GATT state that can poison the next attempt,
181
+ * so it is cleared here without awaiting the same queue that stopped responding.
182
+ */
183
+ private abandonStalledConnection;
89
184
  private getCachedTransport;
185
+ /**
186
+ * Write one packet under a bounded budget. A write that never settles means the
187
+ * peripheral is wedged even though the GATT link still reports connected, so the
188
+ * link is torn down: releasing JS state alone would leave the poisoned peripheral
189
+ * cached and every later call would hang on it again.
190
+ */
191
+ private writeBlePacket;
192
+ /**
193
+ * Drop a link whose writes stopped completing. The JS state is purged synchronously
194
+ * so the next acquire() cannot reuse the dead transport, while the native teardown is
195
+ * intentionally NOT awaited: it talks to the very layer that just stopped settling
196
+ * promises, so awaiting it could hang exactly like the write it is recovering from.
197
+ */
198
+ private tearDownWedgedLink;
199
+ private resetPlxManager;
90
200
  private createProtocolMismatchError;
91
201
  private createProtocolDetectionError;
92
202
  private clearProbeProtocol;
203
+ /** Protocol to route a call with: confirmed if known, otherwise the one being probed. */
204
+ private getActiveProtocol;
93
205
  private detectProtocol;
94
206
  private resetProbeStateAfterProtocolProbe;
95
207
  private probeProtocolV1;
@@ -97,14 +209,19 @@ declare class ReactNativeBleTransport {
97
209
  private handleProtocolV2Notification;
98
210
  private getProtocolV2FrameQueue;
99
211
  private resolveProtocolV2Frame;
100
- private rejectAllProtocolV2Frames;
101
212
  private resetProtocolV2Frames;
102
213
  private rejectProtocolV2Frames;
103
214
  private readProtocolV2Frame;
215
+ private writeProtocolV2Packet;
104
216
  private writeProtocolV2Frame;
105
217
  private callProtocolV2;
218
+ private ensureProtocolV2HighThroughputMtu;
219
+ private clearAndroidPriorityResetTimer;
220
+ private enableAndroidHighConnectionPriority;
221
+ private scheduleAndroidBalancedConnectionPriority;
222
+ private restoreAndroidConnectionPriority;
106
223
  private createProtocolV2Adapter;
107
224
  getProtocolType(path: string): ProtocolType | undefined;
108
225
  }
109
226
 
110
- export { IOneKeyDevice, ProtocolV2BleTuning, configureProtocolV2BleTuning, ReactNativeBleTransport as default, getProtocolV2BleTuning, resetProtocolV2BleTuning };
227
+ export { BLE_CONNECT_TIMEOUT_MANAGER_RESET_THRESHOLD, BLE_CONNECT_TIMEOUT_MS, BLE_GATT_SETUP_TIMEOUT_MS, BLE_NATIVE_TEARDOWN_TIMEOUT_MS, BLE_WRITE_PACKET_TIMEOUT_MS, BLE_WRITE_TIMEOUT_MANAGER_RESET_THRESHOLD, IOneKeyDevice, PROTOCOL_REPROBE_FALLBACK_ATTEMPTS, ProtocolV2BleTuning, configureProtocolV2BleTuning, ReactNativeBleTransport as default, getFirmwareUploadWriteRetryType, getProtocolV2BleTuning, resetProtocolV2BleTuning };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAIL,UAAU,IAAI,aAAa,EAE5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,SAAS,EAAE,EAEhB,KAAK,oBAAoB,EAIzB,KAAK,YAAY,EAGjB,KAAK,oBAAoB,EAE1B,MAAM,wBAAwB,CAAC;AAehC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAK1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB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