-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
New Phoenix Contact modbus UPS models #2856
base: master
Are you sure you want to change the base?
New Phoenix Contact modbus UPS models #2856
Conversation
Signed-off-by: RikyPlaza <[email protected]>
…and updated upsdrv_initinfo function. Signed-off-by: RikyPlaza <[email protected]>
…or OB, OL, CHRG and LB flags. Signed-off-by: RikyPlaza <[email protected]>
…output.voltage variable Signed-off-by: RikyPlaza <[email protected]>
…s for TRIO and TRIO-2G models. Signed-off-by: RikyPlaza <[email protected]>
…mation. Signed-off-by: RikyPlaza <[email protected]>
…com/RikyPlaza/nut into PhoenixContactModbus-add-new-models
Signed-off-by: RikyPlaza <[email protected]>
Signed-off-by: RikyPlaza <[email protected]>
Signed-off-by: RikyPlaza <[email protected]>
Signed-off-by: RikyPlaza <[email protected]>
Signed-off-by: RikyPlaza <[email protected]>
Signed-off-by: RikyPlaza <[email protected]>
…since not available. Signed-off-by: RikyPlaza <[email protected]>
❌ Build nut 2.8.2.2877-master failed (commit 1859212d9b by @RikyPlaza) |
No idea why these errors are coming up now :( |
drivers/phoenixcontact_modbus.c
Outdated
mrir(modbus_ctx, 0x0006, 1, &PartNumber2); | ||
mrir(modbus_ctx, 0x0007, 1, &PartNumber3); | ||
mrir(modbus_ctx, 0x0008, 1, &PartNumber4); | ||
mrir(modbus_ctx, 0x0005, 4, &tab_reg); |
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.
Previously you were sending address of uint16_t
to mrir()
and now you send address of array, but the method signature seems not changed. Did you mean to read the register into just the zero'th element? Or did you drop the other 4 mrir
lines by mistake?
drivers/phoenixcontact_modbus.c
Outdated
PartNumber = (PartNumber * 65536) + PartNumber1; | ||
PartNumber = (tab_reg[3] * 65536) + tab_reg[2]; | ||
PartNumber = (PartNumber * 65536) + tab_reg[1]; | ||
PartNumber = (PartNumber * 65536) + tab_reg[0]; |
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.
Sanity check: are you sure maths are not truncated here by a 16-bit number?
What does this multiplication achieve? (A bit shift would be more idiomatic)
Signed-off-by: RikyPlaza <[email protected]>
…com/RikyPlaza/nut into PhoenixContactModbus-add-new-models
❌ Build nut 2.8.2.2888-master failed (commit 38b94f9089 by @RikyPlaza) |
What is the expected value of |
Management of new Phoenix Contact UPS models.