-
Notifications
You must be signed in to change notification settings - Fork 513
My Meter DDSU666 (Implementing a device) #3307
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
base: develop
Are you sure you want to change the base?
Conversation
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.
please apply the prepare-commit.sh script again
|
|
||
| @Override | ||
| protected ModbusProtocol defineModbusProtocol() { | ||
| // TODO implement ModbusProtocol |
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.
Remove unnecessary Comment
| OpenemsComponent.getModbusSlaveNatureTable(accessMode), | ||
| ElectricityMeter.getModbusSlaveNatureTable(accessMode), | ||
|
|
||
| // Custom channels của DDSu666 |
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.
english please
| @Override | ||
| public ModbusSlaveTable getModbusSlaveTable(AccessMode accessMode) { | ||
| return new ModbusSlaveTable( | ||
| // Các nature tables cơ bản |
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.
english please
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.
Personally I would name the Package meter.chint and under this Package implement the ddsu666 as there are many more (I am working on the DTSU-666 which is the 3-Phase Version of the DDSU
Well - AI told you wrong :D This is not the Case right now :) |
|
You did not change anything right now since my last Comments - maybe check them first. |
I have worked on the integration of the DDSU666 Meter in OpenEMS.
However, there may still be issues in the mapping of Modbus registers, Channel IDs, and data types (FLOAT32, INT16, etc.).
The goals of this PR are to:
Ensure accurate reading of Voltage, Current, Active Power, Reactive Power, Power Factor, and Energy from the DDSU666.
Verify register addresses against the official DDSU666 datasheet.
Keep the code consistent with the OpenEMS coding style.
Request for Support
I would appreciate if the community could:
Review the DDSU666 mapping code.
Cross-check register addresses and data types with the DDSU666 documentation.
Suggest corrections if any registers or logic are incorrect.
Why This Matters
The DDSU666 is a commonly used energy meter in monitoring systems. Incorrect mapping may lead to:
Inaccurate data readings (e.g., wrong power or energy values).
Incorrect visualizations in ThingsBoard dashboards or rule chains.
Next Steps
I will update this PR based on review feedback.
Once finalized, the code will allow stable and accurate data reading from DDSU666 in OpenEMS.