You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commit ba336aa
Author: Bill C <[email protected]>
Date: Wed Mar 5 20:36:21 2025 -0600
Add 30s retry to USBRelay Init for reliable boot-time USB detection
Add 30s retry to USBRelay Init for reliable boot-time USB detection
- Added delay to handle USB enumeration timing (~15-30s)
- Ensures CH340 and ICStation relays initialize consistently
commit 39902f9
Author: Bill C <[email protected]>
Date: Sun Mar 2 20:46:19 2025 -0600
Revert "trying stuff until I get it"
This reverts commit c6bd365.
commit c6bd365
Author: Bill C <[email protected]>
Date: Sun Mar 2 08:44:18 2025 -0600
trying stuff until I get it
commit 0c0d46a
Author: Bill Carriveau <[email protected]>
Date: Sat Mar 1 09:27:26 2025 -0600
Update co-other.php
Trying to keep things the way they were before. :)
commit f53ad80
Author: Bill C <[email protected]>
Date: Fri Feb 28 23:16:46 2025 -0600
Add CH340 UsbRelay
Have compiling and verified working on pi
LogErr(VB_CHANNELOUT, "Invalid Config, missing device or invalid type\n");
80
70
return0;
81
71
}
72
+
82
73
if (!setupSerialPort(config, 9600, "8N1")) {
83
74
return0;
84
75
}
@@ -94,10 +85,9 @@ int USBRelayOutput::Init(Json::Value config) {
94
85
usleep(500000);
95
86
96
87
bool foundICS = false;
97
-
int res = 0;
98
-
res = read(m_fd, &c_reply, 1);
88
+
int res = read(m_fd, &c_reply, 1);
99
89
if (res == 0) {
100
-
LogWarn(VB_CHANNELOUT, "Did not receive a response byte from ICstation relay, unable to confirm number of relays. Using configuration value from UI\n");
90
+
LogWarn(VB_CHANNELOUT, "Did not receive a response byte from ICstation relay\n");
101
91
} elseif (c_reply == 0xAB) {
102
92
LogInfo(VB_CHANNELOUT, "Found a 4-channel ICStation relay module\n");
103
93
m_relayCount = 4;
@@ -118,53 +108,56 @@ int USBRelayOutput::Init(Json::Value config) {
118
108
119
109
if (foundICS)
120
110
write(m_fd, &c_open, 1);
111
+
} elseif (m_subType == RELAY_DVC_CH340) {
112
+
LogInfo(VB_CHANNELOUT, "Initializing CH340 USB Relay with %d channels\n", m_relayCount);
0 commit comments