@onekeyfe/hd-transport-react-native 1.2.0-alpha.6 → 1.2.0-alpha.63

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.
@@ -10,9 +10,7 @@ export default class BleTransport {
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,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;gBAGpB,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,cAAc,EACnC,oBAAoB,EAAE,cAAc;IAQhC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlD"}
@@ -3,9 +3,7 @@ export type BleWriteCapability = {
3
3
  isWritableWithResponse?: boolean | null;
4
4
  isWritableWithoutResponse?: boolean | null;
5
5
  };
6
- export type BleWriteMode = 'withResponse' | 'withoutResponse';
7
6
  export declare function hasWritableCapability(characteristic: BleWriteCapability): boolean;
8
- export declare function resolveBleWriteMode(characteristic: BleWriteCapability, preferredMode?: BleWriteMode): BleWriteMode;
9
7
  export declare function resolveProtocolV2PacketCapacity({ platform, iosPacketLength, androidPacketLength, mtu, }: {
10
8
  platform: BlePlatform;
11
9
  iosPacketLength?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"bleStrategy.d.ts","sourceRoot":"","sources":["../src/bleStrategy.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,sBAAsB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxC,yBAAyB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG,iBAAiB,CAAC;AAE9D,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,kBAAkB,WAEvE;AAED,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,kBAAkB,EAClC,aAAa,GAAE,YAAgC,GAC9C,YAAY,CAkBd;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,QAAQ,EACR,eAAmC,EACnC,mBAA2C,EAC3C,GAAG,GACJ,EAAE;IACD,QAAQ,EAAE,WAAW,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,UAWA"}
1
+ {"version":3,"file":"bleStrategy.d.ts","sourceRoot":"","sources":["../src/bleStrategy.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,sBAAsB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxC,yBAAyB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5C,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,kBAAkB,WAEvE;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,QAAQ,EACR,eAAmC,EACnC,mBAA2C,EAC3C,GAAG,GACJ,EAAE;IACD,QAAQ,EAAE,WAAW,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,UAWA"}
@@ -8,6 +8,5 @@ export declare const getInfosForServiceUuid: (serviceUuid: string, deviceType: '
8
8
  notifyUuid?: string | undefined;
9
9
  } | null;
10
10
  export declare const normalizeBleUuid: (uuid?: string | null) => string;
11
- export declare const getBleUuidKey: (uuid?: string | null) => string;
12
11
  export declare const isSameBleUuid: (left?: string | null, right?: string | null) => boolean;
13
12
  //# 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,mBAAmB,KAAK,CAAC;AA8BtC,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
@@ -15,10 +15,8 @@ declare class BleTransport {
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
+ writeWithRetry(data: string): Promise<void>;
22
20
  }
23
21
 
24
22
  type TransportOptions = {
@@ -28,50 +26,80 @@ type BleAcquireInput = {
28
26
  uuid: string;
29
27
  forceCleanRunPromise?: boolean;
30
28
  expectedProtocol?: ProtocolType;
29
+ protocolHint?: ProtocolType;
31
30
  };
32
31
 
32
+ type FirmwareUploadWriteRetryType = 'congested';
33
33
  type ResolvedBleCharacteristics = {
34
34
  writeCharacteristic: Characteristic;
35
35
  notifyCharacteristic: Characteristic;
36
36
  };
37
+ declare const getFirmwareUploadWriteRetryType: (error: unknown) => FirmwareUploadWriteRetryType | null;
38
+ /**
39
+ * Per-packet write budget. iOS only resolves writeWithoutResponse once CoreBluetooth
40
+ * reports the peripheral ready again; a peripheral wedged by its own firmware reboot
41
+ * stops reporting ready while staying connected, so the write promise never settles.
42
+ * Response timeouts cannot cover that — they are armed after the writes complete —
43
+ * and an unbounded write leaves the whole transport unusable until the process dies.
44
+ * A healthy packet completes in milliseconds, so this only fires on a dead link.
45
+ */
46
+ declare const BLE_WRITE_PACKET_TIMEOUT_MS = 10000;
47
+ /** Consecutive wedged writes on one device before the BLE manager itself is recreated. */
48
+ declare const BLE_WRITE_TIMEOUT_MANAGER_RESET_THRESHOLD = 2;
37
49
  type ProtocolV2BleTuning = {
38
50
  iosPacketLength?: number;
39
51
  androidPacketLength?: number;
40
- highVolumeWriteBurstSize?: number;
41
- highVolumeWritePauseMs?: number;
42
- highVolumeWriteFlushDelayMs?: number;
43
- highVolumeWriteWithResponse?: boolean;
44
52
  };
45
53
  declare function configureProtocolV2BleTuning(tuning?: ProtocolV2BleTuning): void;
46
54
  declare function resetProtocolV2BleTuning(): void;
47
55
  declare function getProtocolV2BleTuning(): {
48
56
  iosPacketLength: number;
49
57
  androidPacketLength: number;
50
- highVolumeWriteBurstSize: number;
51
- highVolumeWritePauseMs: number;
52
- highVolumeWriteFlushDelayMs: number;
53
- highVolumeWriteWithResponse: boolean;
54
58
  };
59
+ /**
60
+ * JS backstop for connect. The native adapter applies its own 3s budget, but it
61
+ * schedules that timeout on its serial queue, so a busy queue (e.g. right after a
62
+ * firmware install tears the link down) can leave the promise unsettled — observed
63
+ * blocking a reconnect for 61s until the app-level timeout. Healthy connects finish
64
+ * inside the native budget, so this only fires when the native timeout did not.
65
+ */
66
+ declare const BLE_CONNECT_TIMEOUT_MS: number;
67
+ /** Consecutive connect timeouts on one device before the BLE manager itself is recreated. */
68
+ declare const BLE_CONNECT_TIMEOUT_MANAGER_RESET_THRESHOLD = 2;
55
69
  type IOneKeyDevice = OneKeyDeviceInfoBase & Device;
56
70
  declare class ReactNativeBleTransport {
57
71
  blePlxManager: BleManager | undefined;
58
72
  _messages: ReturnType<typeof transport__default.parseConfigure> | undefined;
59
73
  _messagesV2: ReturnType<typeof transport__default.parseConfigure> | undefined;
74
+ private protocolV2SchemaConfiguration;
60
75
  name: string;
61
76
  configured: boolean;
62
77
  stopped: boolean;
63
78
  scanTimeout: number;
64
79
  runPromise: Deferred<any> | null;
80
+ private runPromiseDeviceId;
65
81
  emitter?: EventEmitter;
66
82
  firmwareUploadWriteRecoveryIds: Set<string>;
83
+ /** Per-device protocol type detected by active wire-level probe after connect. */
67
84
  private deviceProtocol;
85
+ /**
86
+ * Protocol a probe is currently trying, before the device has confirmed it. Calls
87
+ * must route with it, but acquire() must not treat it as a detected protocol: a
88
+ * probe that never answers would otherwise leave the reuse fast path handing out a
89
+ * transport that was never validated.
90
+ */
91
+ private probingProtocols;
92
+ /** Consecutive write timeouts per device; reset by any write that completes. */
93
+ private writeTimeoutCounts;
94
+ /** Consecutive connect timeouts per device; reset by any connect that settles. */
95
+ private connectTimeoutCounts;
68
96
  private deviceProtocolHints;
69
97
  private protocolV2Assemblers;
70
98
  private protocolV2FrameQueues;
71
99
  private protocolV2FramePromises;
72
- private activeProtocolV2Call;
73
- private nextProtocolV2CallToken;
100
+ private protocolV2Links;
74
101
  private monitorTokens;
102
+ private disconnectEventTokens;
75
103
  private nextMonitorToken;
76
104
  constructor(options: TransportOptions);
77
105
  init(logger: any, emitter: EventEmitter): void;
@@ -81,24 +109,58 @@ declare class ReactNativeBleTransport {
81
109
  getPlxManager(): Promise<BleManager>;
82
110
  resolveCharacteristics(device: Device): Promise<ResolvedBleCharacteristics>;
83
111
  attachDisconnectSubscription(transport: BleTransport, device: Device, uuid: string): void;
112
+ private emitDeviceDisconnect;
84
113
  reconnectFirmwareUploadTransport(uuid: string, transport: BleTransport): Promise<void>;
114
+ /**
115
+ * 获取设备列表
116
+ * 在搜索超过超时时间或设备数量大于 5 台时,返回 OneKey 设备,
117
+ * @returns
118
+ */
85
119
  enumerate(): Promise<IOneKeyDevice[]>;
120
+ private installTransportForAcquire;
86
121
  acquire(input: BleAcquireInput): Promise<{
87
122
  uuid: string;
88
123
  protocolType: ProtocolType;
89
124
  }>;
90
125
  _monitorCharacteristic(characteristic: Characteristic, uuid: string, monitorToken: number, notifyTransactionId: string): Subscription;
91
126
  release(uuid: string, onclose?: boolean): Promise<boolean>;
127
+ private releaseNative;
92
128
  post(session: string, name: string, data: Record<string, unknown>): Promise<void>;
93
129
  call(uuid: string, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<transport.MessageFromOneKey>;
94
130
  private callProtocolV1;
95
131
  stop(): void;
96
132
  disconnect(session: string): Promise<void>;
97
133
  cancel(): void;
134
+ /** Run a native connect under the JS backstop budget. */
135
+ private connectWithTimeout;
136
+ /**
137
+ * Give up on a connect the native layer never settled. The abandoned attempt still
138
+ * holds a native "connecting" entry that would cancel the NEXT attempt out from under
139
+ * itself, so it is cleared here — fire and forget, because that call talks to the very
140
+ * queue that just stopped responding.
141
+ */
142
+ private abandonStalledConnect;
98
143
  private getCachedTransport;
144
+ /**
145
+ * Write one packet under a bounded budget. A write that never settles means the
146
+ * peripheral is wedged even though the GATT link still reports connected, so the
147
+ * link is torn down: releasing JS state alone would leave the poisoned peripheral
148
+ * cached and every later call would hang on it again.
149
+ */
150
+ private writeBlePacket;
151
+ /**
152
+ * Drop a link whose writes stopped completing. The JS state is purged synchronously
153
+ * so the next acquire() cannot reuse the dead transport, while the native teardown is
154
+ * intentionally NOT awaited: it talks to the very layer that just stopped settling
155
+ * promises, so awaiting it could hang exactly like the write it is recovering from.
156
+ */
157
+ private tearDownWedgedLink;
158
+ private resetPlxManager;
99
159
  private createProtocolMismatchError;
100
160
  private createProtocolDetectionError;
101
161
  private clearProbeProtocol;
162
+ /** Protocol to route a call with: confirmed if known, otherwise the one being probed. */
163
+ private getActiveProtocol;
102
164
  private detectProtocol;
103
165
  private resetProbeStateAfterProtocolProbe;
104
166
  private probeProtocolV1;
@@ -106,13 +168,14 @@ declare class ReactNativeBleTransport {
106
168
  private handleProtocolV2Notification;
107
169
  private getProtocolV2FrameQueue;
108
170
  private resolveProtocolV2Frame;
109
- private rejectAllProtocolV2Frames;
110
171
  private resetProtocolV2Frames;
111
- private isActiveProtocolV2Call;
172
+ private rejectProtocolV2Frames;
112
173
  private readProtocolV2Frame;
174
+ private writeProtocolV2Packet;
113
175
  private writeProtocolV2Frame;
114
176
  private callProtocolV2;
177
+ private createProtocolV2Adapter;
115
178
  getProtocolType(path: string): ProtocolType | undefined;
116
179
  }
117
180
 
118
- export { IOneKeyDevice, ProtocolV2BleTuning, configureProtocolV2BleTuning, ReactNativeBleTransport as default, getProtocolV2BleTuning, resetProtocolV2BleTuning };
181
+ export { BLE_CONNECT_TIMEOUT_MANAGER_RESET_THRESHOLD, BLE_CONNECT_TIMEOUT_MS, BLE_WRITE_PACKET_TIMEOUT_MS, BLE_WRITE_TIMEOUT_MANAGER_RESET_THRESHOLD, IOneKeyDevice, 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,EAGzB,KAAK,YAAY,EAGjB,KAAK,oBAAoB,EAE1B,MAAM,wBAAwB,CAAC;AAmBhC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAI1C,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,EAAE,MAAM,SAAS,CAAC;AAkBjE,KAAK,0BAA0B,GAAG;IAChC,mBAAmB,EAAE,cAAc,CAAC;IACpC,oBAAoB,EAAE,cAAc,CAAC;CACtC,CAAC;AAkDF,MAAM,MAAM,mBAAmB,GAAG;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC;AAqBF,wBAAgB,4BAA4B,CAAC,MAAM,GAAE,mBAAwB,QA0B5E;AAED,wBAAgB,wBAAwB,SAGvC;AAED,wBAAgB,sBAAsB;;;;;;;EAErC;AA4BD,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG,MAAM,CAAC;AA2D1D,MAAM,CAAC,OAAO,OAAO,uBAAuB;IAC1C,aAAa,EAAE,aAAa,GAAG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