Skip to content
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

fix parsing code for Itron ACE3000 Typ 260, MT173 and added dump_file option #108

Merged
merged 2 commits into from Jan 11, 2015

Conversation

mbehr1
Copy link
Contributor

@mbehr1 mbehr1 commented Jan 11, 2015

  • fixed/improved parsing code found for Itron ACE3000 Typ 260 (problem reported from Stefan)
  • fixes problems reported by Udo for MT173 as well
  • with those fixes timeouts are still occurring with above meters. anyhow the successful read codes are now returned.
  • added "dump_file" option (disabled by default) for D0 meter to write full communication hex-dump like into a file to allow easier debugging of reported problems (incl. the timeouts).
  • tested with EHZ361 (and above meters)

…write communication to D0 device into a file
// d) 0x0d 0x0a ? -> ignore, so stay in END state.
// above is new! Previous versions ended on all but ? ("assuming !")

if (byte == '!'){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you put spaces before/after curly braces?

@mbehr1
Copy link
Contributor Author

mbehr1 commented Jan 11, 2015

updated PR with spaces before/after curly braces

@andig
Copy link
Contributor

andig commented Jan 11, 2015

sure. btw. are the some coding-styles described somewhere?

Not really, but I aim to keep it consistent at least inside the code I add ;) Again, it would imho have been better to update the existing commit ("amend") instead of creating a new one.

andig added a commit that referenced this pull request Jan 11, 2015
fix parsing code for Itron ACE3000 Typ 260, MT173 and added dump_file option
@andig andig merged commit dfcc8bb into volkszaehler:master Jan 11, 2015
@mbehr1 mbehr1 deleted the meterd0_dump_fix_ace branch January 24, 2015 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants