Skip to content

Commit 88ff367

Browse files
authored
Merge 4640bfc into 28e3bf0
2 parents 28e3bf0 + 4640bfc commit 88ff367

3 files changed

Lines changed: 413 additions & 146 deletions

File tree

NEWS.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ https://github.com/networkupstools/nut/milestone/13
6363
authentication configuration discovery. It accepts `default`, `none`,
6464
or a specific authconf file path. [issue #3329]
6565

66+
- `nhs_ser` driver updates:
67+
* Modernized serial communication and added validated settings for baud
68+
rate, data bits, parity, stop bits, flow control, per-byte read timeout,
69+
and transmission pacing. Also improved serial resource handling and
70+
reconnection behavior. [issue #3510, PR #3543]
71+
6672
- `nutdrv_qx` driver updates:
6773
* Only claim a USB device as "supported" during discovery out of the box
6874
if `subdriver_command` was assigned (`1A86:7523` is used by CH340/341

docs/man/nhs_ser.txt

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,29 @@ EXTRA ARGUMENTS
3232
This driver also supports the following optional settings:
3333

3434
*baud*='num'::
35-
Set the value of serial port baud rate (default: 2400)
35+
Set the serial port baud rate. The value must be one of the rates available
36+
in the current build (default: 2400).
37+
38+
*serial_data_bits*='num'::
39+
Set the number of data bits to 5, 6, 7, or 8 (default: 8).
40+
41+
*serial_parity*='value'::
42+
Set serial parity to `none`, `even`, or `odd` (default: `none`).
43+
44+
*serial_stop_bits*='num'::
45+
Set the number of stop bits to 1 or 2 (default: 1).
46+
47+
*serial_flow_control*='value'::
48+
Set serial flow control to `none`, `hardware`, `software`, or `both`
49+
(default: `hardware`).
50+
51+
*serial_read_timeout_ms*='num'::
52+
Set the timeout for reading each byte, in milliseconds. Values from 0 to
53+
60000 are accepted; 0 requests a non-blocking read (default: 100).
54+
55+
*serial_send_pace_us*='num'::
56+
Set the delay between transmitted bytes, in microseconds. Values from 0 to
57+
999999 are accepted; 0 disables transmission pacing (default: 0).
3658

3759
*ah*='num'::
3860
Battery discharge capacity in Ampere/hour.

0 commit comments

Comments
 (0)