From 76e28f3642f53cce57c45bf511e1f4153f0739f1 Mon Sep 17 00:00:00 2001 From: Adi Azulay Date: Wed, 18 Nov 2020 16:02:14 -0600 Subject: [PATCH 1/3] add buad rates up to 2M --- src/serialmonitor/serialMonitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serialmonitor/serialMonitor.ts b/src/serialmonitor/serialMonitor.ts index 5153972c..bc005fa2 100644 --- a/src/serialmonitor/serialMonitor.ts +++ b/src/serialmonitor/serialMonitor.ts @@ -22,7 +22,7 @@ export class SerialMonitor implements vscode.Disposable { public static DEFAULT_BAUD_RATE: number = 115200; public static listBaudRates(): number[] { - return [300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 74880, 115200, 230400, 250000]; + return [300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 74880, 115200, 230400, 250000,500000, 1000000, 2000000]; } public static getInstance(): SerialMonitor { From c2f0f9edf9b15ed18f979d62aa76ec50145b0389 Mon Sep 17 00:00:00 2001 From: Adi Azulay Date: Wed, 18 Nov 2020 16:02:36 -0600 Subject: [PATCH 2/3] add rts signal on serial open and buad rate change --- src/serialmonitor/serialportctrl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serialmonitor/serialportctrl.ts b/src/serialmonitor/serialportctrl.ts index ec02d6b9..27204eb6 100644 --- a/src/serialmonitor/serialportctrl.ts +++ b/src/serialmonitor/serialportctrl.ts @@ -79,7 +79,7 @@ export class SerialPortCtrl { reject(err); } else { this._outputChannel.appendLine(`[Info] Opened the serial port - ${this._currentPort}`); - this._currentSerialPort.set(["dtr=true"], (err) => { + this._currentSerialPort.set(["dtr=true", "rts=true"], (err) => { if (err) { reject(err); } @@ -169,7 +169,7 @@ export class SerialPortCtrl { if (err) { reject(err); } else { - this._currentSerialPort.set(["dtr=true"], (err) => { + this._currentSerialPort.set(["dtr=true", "rts=true"], (err) => { if (err) { reject(err); } else { From c03fe752225559e5aab7487c9902f3e8d11841ae Mon Sep 17 00:00:00 2001 From: Adi Azulay Date: Thu, 19 Nov 2020 09:48:15 -0600 Subject: [PATCH 3/3] add missing space in baud rate array --- src/serialmonitor/serialMonitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serialmonitor/serialMonitor.ts b/src/serialmonitor/serialMonitor.ts index bc005fa2..812801d5 100644 --- a/src/serialmonitor/serialMonitor.ts +++ b/src/serialmonitor/serialMonitor.ts @@ -22,7 +22,7 @@ export class SerialMonitor implements vscode.Disposable { public static DEFAULT_BAUD_RATE: number = 115200; public static listBaudRates(): number[] { - return [300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 74880, 115200, 230400, 250000,500000, 1000000, 2000000]; + return [300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 74880, 115200, 230400, 250000, 500000, 1000000, 2000000]; } public static getInstance(): SerialMonitor {