Skip to content

Commit 5cca3ed

Browse files
committed
drivers/tripplitesu.c: add 1s delay in command_send
Intermittent communication timeouts were observed when multiple commands were sent in rapid succession. Adding a 1-second delay at the beginning of command_send() ensures the hardware buffer is ready and prevents the "read timeout" errors. Signed-off-by: TomZanna <git@tomzanna.com>
1 parent 6719fd5 commit 5cca3ed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

data/driver.list.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,7 @@
15681568
"Tripp Lite" "ups" "3" "SU3000XLCD" "USB (protocol 4004)" "usbhid-ups" # http://www.tripplite.com/en/products/model.cfm?txtSeriesID=744&txtModelID=5342
15691569
"Tripp Lite" "ups" "3" "SUINT1000RTXL2UA" "USB (protocol 4001)" "usbhid-ups" # http://www.tripplite.com/en/products/model.cfm?txtModelID=3983
15701570
"Tripp Lite" "ups" "3" "SUINT1500RTXL2UA" "USB (protocol 4001)" "usbhid-ups" # http://www.tripplite.com/en/products/model.cfm?txtSeriesID=934&txtModelID=2720
1571+
"Tripp Lite" "ups" "3" "SUINT1500RTXL2UA" "Serial" "tripplitesu" # http://www.tripplite.com/en/products/model.cfm?txtSeriesID=934&txtModelID=2720
15711572
"Tripp Lite" "ups" "3" "SUINT2200RTXL2UA" "USB (protocol 4001)" "usbhid-ups" # http://www.tripplite.com/en/products/model.cfm?txtSeriesID=934&txtModelID=3970
15721573
"Tripp Lite" "ups" "3" "SUINT3000RTXL2U" "USB (protocol 4005)" "usbhid-ups" # http://www.tripplite.com/en/products/model.cfm?txtModelID=4523
15731574

drivers/tripplitesu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
#include "nut_stdint.h"
127127

128128
#define DRIVER_NAME "Tripp Lite SmartOnline driver"
129-
#define DRIVER_VERSION "0.11"
129+
#define DRIVER_VERSION "0.12"
130130

131131
/* driver description structure */
132132
upsdrv_info_t upsdrv_info = {
@@ -222,6 +222,7 @@ static ssize_t do_command(char type, const char *command, const char *parameters
222222
size_t count;
223223
ssize_t ret;
224224

225+
usleep(1E6);
225226
ser_flush_io(upsfd);
226227

227228
if (response) {

0 commit comments

Comments
 (0)