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

Pollustat E: Problems reading multi telegram #105

Open
mape1 opened this issue May 16, 2016 · 5 comments
Open

Pollustat E: Problems reading multi telegram #105

mape1 opened this issue May 16, 2016 · 5 comments

Comments

@mape1
Copy link

mape1 commented May 16, 2016

I am trying to read out data from a Sensus Pollustat E. Using MiniCom I can see that the meter is reporting multiple telegrams but when I use libmbus to request data I only get a single telegram which seems to be the oldest one (using mbus-serial-request-data-multi-reply). If I reconfigure the meter using MiniCom to only report single telegrams I will get the correct data (the newest telegram).

Am I misuing mbus-serial-request-data-multi-reply in some way or doesnt libmbus support multi telegram readouts for this meter?

@lategoodbye
Copy link
Collaborator

Hi @mape1,
could you please write down your complete commandline of mbus-serial-request-data-multi-reply ?
Do you use the latest github version?
Could you please attach the output with parameter -d ?

@mape1
Copy link
Author

mape1 commented May 19, 2016

Hi @lategoodbye!

Sorry for the late response. I need some more time to be able to extract the information that you requested. I do not have direct access to the meter right now, but I will update the issue as soon as I have all relevant info for you.

@delreich
Copy link

delreich commented May 20, 2016

Workaround: use secondary addressing, and always use the multi-reply tool. Might need to use wildcards for the manufacturer/version/media bit (i.e. the last 8 hex-digits).

The issue: the mbus-serial-request-data* tools currently doesn't handle SND_NKE and the FCB-bit correctly. SND_NKE is only ever sent to secondary address, and (initial) FCB-bit is fixed. Your Pollustat is stuck in a state where it previously sent the last frame in response to a request with a set FCB-bit, so when you next fire up mbus-serial-request-data-multi-reply and it sends a request with a set FCB-bit (without resetting first), the meter responds with the same frame.

Related: Issues #90, #97, and PR #95.

@mape1
Copy link
Author

mape1 commented Jun 2, 2016

Thanks for the advice, @delreich. I will try this out as soon as possible.

Do you know if there are any plans currently to solve this issue?

@lategoodbye
Copy link
Collaborator

Currently i don't have a testing environment. But fixes are always welcome.

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

No branches or pull requests

3 participants