From c7d26d468129a6ebc1a68b7b2485cf8d981fe250 Mon Sep 17 00:00:00 2001 From: Guillaume DELVIT Date: Wed, 29 Apr 2020 20:18:04 +0200 Subject: [PATCH 1/7] Add full options to serial Add : bytesize, parity, stopbits, xonxoff, rtscts, dsrdtr. With default value unchanged so it doesn't break previous config. --- source/_integrations/serial.markdown | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/source/_integrations/serial.markdown b/source/_integrations/serial.markdown index abf12d281c4f..b5833ce96c7f 100644 --- a/source/_integrations/serial.markdown +++ b/source/_integrations/serial.markdown @@ -43,6 +43,36 @@ baudrate: required: false default: 9600 Bps type: integer +bytesize: + description: Number of data bits. Possible values: 5=FIVEBITS, 6=SIXBITS, 7=SEVENBITS, 8=EIGHTBITS + required: false + default: EIGHTBITS + type: integer +parity: + description: Enable parity checking. Possible values: PARITY_NONE, PARITY_EVEN, PARITY_ODD PARITY_MARK, PARITY_SPACE + required: false + default: PARITY_NONE + type: string +stopbits: + description: Number of stop bits. Possible values: 1=STOPBITS_ONE, 1.5=STOPBITS_ONE_POINT_FIVE, 2=STOPBITS_TWO + required: false + default: STOPBITS_ONE + type: float +xonxoff: + description: Enable software flow control. + required: false + default: False + type: boolean +rtscts: + description: Enable hardware (RTS/CTS) flow control. + required: false + default: False + type: boolean +dsrdtr: + description: Enable hardware (DSR/DTR) flow control. + required: false + default: False + type: boolean value_template: description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the serial line." required: false From c413e496b657098aa22beaa30cde26947a9f6fb3 Mon Sep 17 00:00:00 2001 From: Guillaume DELVIT Date: Thu, 30 Apr 2020 00:28:15 +0200 Subject: [PATCH 2/7] Update source/_integrations/serial.markdown Co-Authored-By: Klaas Schoute --- source/_integrations/serial.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/serial.markdown b/source/_integrations/serial.markdown index b5833ce96c7f..9caee82a90bc 100644 --- a/source/_integrations/serial.markdown +++ b/source/_integrations/serial.markdown @@ -44,7 +44,7 @@ baudrate: default: 9600 Bps type: integer bytesize: - description: Number of data bits. Possible values: 5=FIVEBITS, 6=SIXBITS, 7=SEVENBITS, 8=EIGHTBITS + description: "Number of data bits. Possible values: `5=FIVEBITS`, `6=SIXBITS`, `7=SEVENBITS`, `8=EIGHTBITS`." required: false default: EIGHTBITS type: integer From a5098481a42daffd0bf4a8fbe77b1a75fdc63d54 Mon Sep 17 00:00:00 2001 From: Guillaume DELVIT Date: Thu, 30 Apr 2020 00:28:22 +0200 Subject: [PATCH 3/7] Update source/_integrations/serial.markdown Co-Authored-By: Klaas Schoute --- source/_integrations/serial.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/serial.markdown b/source/_integrations/serial.markdown index 9caee82a90bc..4912b3b68e64 100644 --- a/source/_integrations/serial.markdown +++ b/source/_integrations/serial.markdown @@ -49,7 +49,7 @@ bytesize: default: EIGHTBITS type: integer parity: - description: Enable parity checking. Possible values: PARITY_NONE, PARITY_EVEN, PARITY_ODD PARITY_MARK, PARITY_SPACE + description: "Enable parity checking. Possible values: `PARITY_NONE`, `PARITY_EVEN`, `PARITY_ODD PARITY_MARK`, `PARITY_SPACE`." required: false default: PARITY_NONE type: string From 831d590e04b9c35b9c20a724433a6bd49fca0aa4 Mon Sep 17 00:00:00 2001 From: Guillaume DELVIT Date: Thu, 30 Apr 2020 00:28:30 +0200 Subject: [PATCH 4/7] Update source/_integrations/serial.markdown Co-Authored-By: Klaas Schoute --- source/_integrations/serial.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/serial.markdown b/source/_integrations/serial.markdown index 4912b3b68e64..a837242618cd 100644 --- a/source/_integrations/serial.markdown +++ b/source/_integrations/serial.markdown @@ -54,7 +54,7 @@ parity: default: PARITY_NONE type: string stopbits: - description: Number of stop bits. Possible values: 1=STOPBITS_ONE, 1.5=STOPBITS_ONE_POINT_FIVE, 2=STOPBITS_TWO + description: "Number of stop bits. Possible values: `1=STOPBITS_ONE`, `1.5=STOPBITS_ONE_POINT_FIVE`, `2=STOPBITS_TWO`." required: false default: STOPBITS_ONE type: float From 335acbc702b8d1b20217024eb504baf7b6659ed7 Mon Sep 17 00:00:00 2001 From: Guillaume DELVIT Date: Thu, 30 Apr 2020 00:28:41 +0200 Subject: [PATCH 5/7] Update source/_integrations/serial.markdown Co-Authored-By: Klaas Schoute --- source/_integrations/serial.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/serial.markdown b/source/_integrations/serial.markdown index a837242618cd..a6252bb07c07 100644 --- a/source/_integrations/serial.markdown +++ b/source/_integrations/serial.markdown @@ -56,7 +56,7 @@ parity: stopbits: description: "Number of stop bits. Possible values: `1=STOPBITS_ONE`, `1.5=STOPBITS_ONE_POINT_FIVE`, `2=STOPBITS_TWO`." required: false - default: STOPBITS_ONE + default: 1 type: float xonxoff: description: Enable software flow control. From 19097c078596d74c12a03c00aa597882459707b5 Mon Sep 17 00:00:00 2001 From: Guillaume DELVIT Date: Thu, 30 Apr 2020 00:28:50 +0200 Subject: [PATCH 6/7] Update source/_integrations/serial.markdown Co-Authored-By: Klaas Schoute --- source/_integrations/serial.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/serial.markdown b/source/_integrations/serial.markdown index a6252bb07c07..a69ad341d95e 100644 --- a/source/_integrations/serial.markdown +++ b/source/_integrations/serial.markdown @@ -46,7 +46,7 @@ baudrate: bytesize: description: "Number of data bits. Possible values: `5=FIVEBITS`, `6=SIXBITS`, `7=SEVENBITS`, `8=EIGHTBITS`." required: false - default: EIGHTBITS + default: 8 type: integer parity: description: "Enable parity checking. Possible values: `PARITY_NONE`, `PARITY_EVEN`, `PARITY_ODD PARITY_MARK`, `PARITY_SPACE`." From d23c586c8e1395fb11d1fa33a0d00506fb231c64 Mon Sep 17 00:00:00 2001 From: Guillaume DELVIT Date: Thu, 30 Apr 2020 00:31:51 +0200 Subject: [PATCH 7/7] Fix parity String and Typo Fix Parity related example as correction you show me. Thx for review --- source/_integrations/serial.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_integrations/serial.markdown b/source/_integrations/serial.markdown index a69ad341d95e..d75b4df2f1dd 100644 --- a/source/_integrations/serial.markdown +++ b/source/_integrations/serial.markdown @@ -49,9 +49,9 @@ bytesize: default: 8 type: integer parity: - description: "Enable parity checking. Possible values: `PARITY_NONE`, `PARITY_EVEN`, `PARITY_ODD PARITY_MARK`, `PARITY_SPACE`." + description: "Enable parity checking. Possible values: `N=PARITY_NONE`, `E=PARITY_EVEN`, `O=PARITY_ODD`, `M=PARITY_MARK`, `S=PARITY_SPACE`." required: false - default: PARITY_NONE + default: "N" type: string stopbits: description: "Number of stop bits. Possible values: `1=STOPBITS_ONE`, `1.5=STOPBITS_ONE_POINT_FIVE`, `2=STOPBITS_TWO`."