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
I am using openups with firmware 1.9 and the configuration set is in the attached file.
While trying to run the following code inside GetStatus() method of object HIDOpenups:
" ret = sendMessage(OPENUPS_CLOCK_OUT, 0);
usleep(1000);
recvMessage(recv);
parseMessage(recv);
"
I get the following error:
"
hid_interrupt_read failed with return code -110
Read error [0xc0]: -110
"
it reads the capacity and the RTE but puts to 0 all the other values.
If I comment this part of code I get all the values with correct values except for the RTE and capacity and the error is not present.
Furthermore I saw that the windows interface doesn't have this problem.
It seems that I have got it working reliably by removing all delays and sending the OPENUPS_CLOCK_OUT message twice. In particular, I changed GetStatus into this:
void HIDOpenUPS::GetStatus()
{
unsigned char recv[32];
int ret;
sendMessage(OPENUPS_GET_ALL_VALUES, 0);
recvMessage(recv);
parseMessage(recv);
ret = sendMessage(OPENUPS_GET_ALL_VALUES_2, 0);
recvMessage(recv);
parseMessage(recv);
ret = sendMessage(OPENUPS_CLOCK_OUT, 0);
recvMessage(recv);
parseMessage(recv);
ret = sendMessage(OPENUPS_CLOCK_OUT, 0);
recvMessage(recv);
parseMessage(recv);
}
This is on a little rpi zero w, running Raspbian GNU/Linux 11 (bullseye). I was having the same problem as you described it above.
I am using openups with firmware 1.9 and the configuration set is in the attached file.
While trying to run the following code inside GetStatus() method of object HIDOpenups:
" ret = sendMessage(OPENUPS_CLOCK_OUT, 0);
usleep(1000);
recvMessage(recv);
parseMessage(recv);
"
I get the following error:
"
hid_interrupt_read failed with return code -110
Read error [0xc0]: -110
"
it reads the capacity and the RTE but puts to 0 all the other values.
If I comment this part of code I get all the values with correct values except for the RTE and capacity and the error is not present.
Furthermore I saw that the windows interface doesn't have this problem.
settings.txt
The text was updated successfully, but these errors were encountered: