diff --git a/docs/api/driver.md b/docs/api/driver.md index 38aafc04ec34..f1e37ac96f03 100644 --- a/docs/api/driver.md +++ b/docs/api/driver.md @@ -613,9 +613,9 @@ interface ZWaveOptions { /** * How long to wait for a controller response. Usually this timeout should never elapse, - * so this is merely a safeguard against the driver stalling + * so this is merely a safeguard against the driver stalling. */ - response: number; // [500...5000], default: 1600 ms + response: number; // [500...20000], default: 10000 ms /** How long to wait for a callback from the host for a SendData[Multicast]Request */ sendDataCallback: number; // >=10000, default: 65000 ms diff --git a/packages/zwave-js/src/lib/driver/Driver.ts b/packages/zwave-js/src/lib/driver/Driver.ts index 565cda4f5403..56fb7141a712 100644 --- a/packages/zwave-js/src/lib/driver/Driver.ts +++ b/packages/zwave-js/src/lib/driver/Driver.ts @@ -196,7 +196,7 @@ const defaultOptions: ZWaveOptions = { timeouts: { ack: 1000, byte: 150, - response: 1600, + response: 10000, report: 1000, // ReportTime timeout SHOULD be set to CommandTime + 1 second nonce: 5000, sendDataCallback: 65000, // as defined in INS13954 @@ -245,9 +245,9 @@ function checkOptions(options: ZWaveOptions): void { ZWaveErrorCodes.Driver_InvalidOptions, ); } - if (options.timeouts.response < 500 || options.timeouts.response > 5000) { + if (options.timeouts.response < 500 || options.timeouts.response > 20000) { throw new ZWaveError( - `The Response timeout must be between 500 and 5000 milliseconds!`, + `The Response timeout must be between 500 and 20000 milliseconds!`, ZWaveErrorCodes.Driver_InvalidOptions, ); } diff --git a/packages/zwave-js/src/lib/driver/ZWaveOptions.ts b/packages/zwave-js/src/lib/driver/ZWaveOptions.ts index 15325198b1ca..7b8cab5a10fd 100644 --- a/packages/zwave-js/src/lib/driver/ZWaveOptions.ts +++ b/packages/zwave-js/src/lib/driver/ZWaveOptions.ts @@ -12,9 +12,9 @@ export interface ZWaveOptions { /** * How long to wait for a controller response. Usually this timeout should never elapse, - * so this is merely a safeguard against the driver stalling + * so this is merely a safeguard against the driver stalling. */ - response: number; // [500...5000], default: 1600 ms + response: number; // [500...20000], default: 10000 ms /** How long to wait for a callback from the host for a SendData[Multicast]Request */ sendDataCallback: number; // >=10000, default: 65000 ms