-
-
Notifications
You must be signed in to change notification settings - Fork 390
apc_modbus: Support for APC Modbus protocol #2063
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,12 @@ | |
# if you want to hide at the bottom, that's fine by me. Just clarify | ||
# your preference when submitting changes to this file. | ||
|
||
N: Axel Gembe | ||
E: [email protected] | ||
W: http://axel.gembe.net/ | ||
D: Added APC Modbus support | ||
P: rsa4096/43109AAC 11E6 515C B8A4 26C6 07C1 36A4 1CB3 AA21 4310 9AAC | ||
|
||
N: Stephen Brown | ||
E: [email protected] | ||
W: http://www.datalimbo.net/ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
APC_MODBUS(8) | ||
============= | ||
|
||
NAME | ||
---- | ||
|
||
apc_modbus - Driver for APC Smart-UPS Modbus protocol | ||
|
||
SUPPORTED HARDWARE | ||
------------------ | ||
|
||
Generally this driver should work for all the APC Modbus UPS devices. Some | ||
devices might expose more than is currently supported, like multiple phases. | ||
|
||
Tested with the following hardware: | ||
|
||
- SMT1500 (Smart-UPS 1500, Firmware 9.6) | ||
- SMX750 (Smart-UPS X 750, Firmware 10.1) | ||
- SMX1500 (Smart-UPS X 1500, Firmware 15.0) | ||
|
||
Note that you will have to enable Modbus communication. In the front panel of | ||
the UPS, go to Advanced Menu mode, under Configuration and enable Modbus. | ||
|
||
EXTRA ARGUMENTS | ||
--------------- | ||
|
||
This driver also supports the following optional settings: | ||
|
||
include::nut_usb_addvars.txt[] | ||
|
||
*porttype*='value':: | ||
Set the type of the port used. Available values are serial for RS232/485 based | ||
connections, tcp for TCP/IP connections and usb for USB connections. | ||
|
||
*port*='value':: | ||
Depending on the port type you can select a port here. For usb only auto is | ||
supported, for serial you can pass a device path like /dev/ttyS0 and for tcp you | ||
can pass a hostname with optional port like example.com:502. | ||
|
||
*baudrate*='num':: | ||
Set the speed of the serial connection. The default baudrate is 9600. | ||
|
||
*parity*='value':: | ||
Set the parity of the serial connection. Available values are N for none, E for | ||
even and O for odd. The default parity is N (none). | ||
|
||
*databits*='num':: | ||
Set the data bits of the serial connection. The default databits is 8. | ||
|
||
*stopbits*='num':: | ||
Set the stop bits of the serial connection. The default stopbits is 1. | ||
|
||
*slaveid*='num':: | ||
Set the Modbus slave id. The default slave id is 1. | ||
|
||
*response_timeout_ms*='num':: | ||
Set the Modbus response timeout. The default timeout is set by libmodbus. It can | ||
be good to set a higher timeout on TCP connections with high latency. | ||
|
||
AUTHORS | ||
------- | ||
|
||
* Axel Gembe <[email protected]> | ||
|
||
SEE ALSO | ||
-------- | ||
|
||
The core driver | ||
~~~~~~~~~~~~~~~~ | ||
|
||
linkman:nutupsdrv[8], linkman:ups.conf[5] | ||
|
||
Internet resources | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
The NUT (Network UPS Tools) home page: https://www.networkupstools.org/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Any serial or TCP models to report as successes here? (NUT DDL PRs with data dumps, or at least comment posts here, from various devices, would also be appreciated).
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.
@jimklimov @PrplHaz4 tested his SMX1500I using TCP and I tested my SMT1500I using serial.
Uh oh!
There was an error while loading. Please reload this page.
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.
Also, regarding this block as a removal of older entries: didn't
usbhid-ups
at least somehow handle those devices (possibly with older firmware versions, or different devices with same brand/model name, if we can attest and comment about that)? It is okay to list several suitable drivers (on separate lines) - e.g.nutdrv_qx
andblazer_(ser|usb)
have a lot of that ;)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.
Yes, all of these models should work with
usbhid-ups
too, I'll add that.