-
-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase timeout from 250 to 750 ms to allow more time for UPS response #543
Increase timeout from 250 to 750 ms to allow more time for UPS response #543
Conversation
… 750 ms to allow more time for UPS response
… 750 ms to allow more time for UPS response Signed-off-by: Steve Gilbert <[email protected]>
I've added an empty commit with sign-off line hoping that will make the difference and get this pull request accepted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sign-off line is not needed.
It would have been nice to get some confirmation that this commit worked with other hardware, but I guess we can always revert it later.
Hi whats the status of this? Is there a branch thats stable I can pull with the merged changes and build manually? I believe the commit @stevegilbert23 wrote is now cherry picked into: https://github.com/networkupstools/nut/tree/libusb-1.0%2B0.1 is this branch stable? when is that branch going to be merged into master? Is there any other useful changes in that branch which may help fix my problems? I saw quite a bit of talk about the issues with older libusb version here: #300 I suspect this is whats causing my problems with powerwalker UPS and
|
Whoa my appoligies I noticed you only just cherry picked the commit 20 hours ago or so. So if it seems sudden to be asking when its going into a release my appologies but hopefull a rough idea if not point me to which branch is best for me to build manually with those changes. Perhaps I will just clone master and modify that line locally myself? But then I maybe missing out on other fixes related to my issue in the libusb branch. I am running the following system:
The following libusb versions:
|
It seems others have similair issues which aren't resolved fully: #475 |
@2E0PGS the Closing this PR since the original 250-to-750-ms commit was cherry-picked onto the intended branch. |
@clepple - Appreciate you taking the change. It doesn't matter to me but I thought I should mention this in case you are not aware. Some developers now have goals at their jobs like "Contribute to 3 open source projects per year" and typically the metric used is number of pull requests accepted. In those cases, not accepting a pull request could actually affect someone's compensation. I've also heard (although this is anecdotal) that in some countries, taking a contribution without attribution may be considered theft. I have heard this is one reason for requiring the "signed off" lines. As I said, it does not affect me; I am just sharing. |
I've also heard (although this is anecdotal) that in some countries, taking a contribution without attribution may be considered theft. I have heard this is one reason for requiring the "signed off" lines.
I am all for giving credit where credit is due, but the Signed-off-by line doesn't convey much additional information in the absence of something like a Developer's Certificate of Origin. NUT does not have as many layers of reviewers as the projects with DCOs, so the Author line should be sufficient for attribution.
My goal is to keep the main NUT tree from turning into spaghetti. Pull requests with only one or two commits make it harder to separate actual code changes from meta-changes like merges. Commits with no code changes do not help the situation, and probably should be squashed into the previous commit by the original author.
|
Ok finally running a custom build of branch Will update on the results. |
Dammit still happening :P
Is there a script I could tap into so when that broadcast message is sent I can have it restart the nut-client service? Sure its a dodgy fix but it maybe the only option for now if alot more work needs to be done to fix compatibility. I do wonder if there is a magic packet that the original software sends which stops the USP from dropping off. I do have USB packet captures of the data between the UPS and it's original software. I also noted the issue can be related to this: https://unix.stackexchange.com/a/336030 I created such symlink and that is what I use in the config but it makes no difference. Same goes for the restart script in the udev rule since it never gets hit when the device drops comms. |
That's another idea:
I could poll the I am currently playing with pollfrequency at the moment however I'm sure I tried all that before. Worth a try again. Something I havn't tried before is adjusting |
One thing possibly worth trying is using Or possibly this commit while sticking with my current driver. networkupstools/nut-ddl@3ceb327 So perhaps a master build and then trying both sets of drivers on that. |
Ok with adjusting the |
… 750 ms to allow more time for UPS response (cherry picked from commit 5cea18c --@clepple) Closes: networkupstools#543 Closes: networkupstools#542
Hello, Another idea is, make the timout as config. Than everybody could use what he/she needs. Thank in advance |
This pull request attempts to resolve issue reported in: #542