Set default baud rate to 115200 (confirmed working with device)

Tested on COM1 - device responds correctly at 115200 baud with CR+LF
termination. Verified identify and measure commands work.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-11 10:13:19 +07:00
parent 1594a240c0
commit dc4ea820cf
3 changed files with 7 additions and 7 deletions

View File

@@ -37,11 +37,11 @@ prodigit send "CC CURR:HIGH 5.0"
## Serial Connection
Default: **COM1**, 9600 baud, 8N1, RTS/CTS hardware flow control.
Default: **COM1**, 115200 baud, 8N1, RTS/CTS hardware flow control.
```bash
# Use a different port or baud rate
prodigit -p COM3 -b 115200 identify
prodigit -p COM3 -b 9600 identify
```
## Python API
@@ -49,7 +49,7 @@ prodigit -p COM3 -b 115200 identify
```python
from prodigit3366g import Prodigit3366G
with Prodigit3366G("COM1", baudrate=9600) as load:
with Prodigit3366G("COM1", baudrate=115200) as load:
load.remote()
load.set_mode("CC")
load.set_cc_current(10.0)

View File

@@ -269,8 +269,8 @@ examples:
help="Serial port (default: COM1)",
)
parser.add_argument(
"-b", "--baudrate", type=int, default=9600,
help="Baud rate (default: 9600)",
"-b", "--baudrate", type=int, default=115200,
help="Baud rate (default: 115200)",
)
parser.add_argument(
"--timeout", type=float, default=2.0,

View File

@@ -43,7 +43,7 @@ class Prodigit3366G:
Args:
port: Serial port name, e.g. "COM1" or "/dev/ttyUSB0".
baudrate: Baud rate (must match front panel setting). Default 9600.
baudrate: Baud rate (must match front panel setting). Default 115200.
timeout: Read timeout in seconds.
"""
@@ -61,7 +61,7 @@ class Prodigit3366G:
def __init__(
self,
port: str = "COM1",
baudrate: int = 9600,
baudrate: int = 115200,
timeout: float = 2.0,
) -> None:
self._port_name = port